]>
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 | |
0085ce49 RD |
988 | /* for raw pointers */ |
989 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
990 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
991 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
992 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
993 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
994 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
995 | #define swig_owntype int | |
994141e6 | 996 | |
0085ce49 RD |
997 | /* for raw packed data */ |
998 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
999 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
994141e6 | 1000 | |
0085ce49 RD |
1001 | /* for class or struct pointers */ |
1002 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1003 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
d14a1e28 | 1004 | |
0085ce49 RD |
1005 | /* for C or C++ function pointers */ |
1006 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1007 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
d14a1e28 | 1008 | |
0085ce49 RD |
1009 | /* for C++ member pointers, ie, member methods */ |
1010 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1011 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
32fe5131 | 1012 | |
d14a1e28 | 1013 | |
0085ce49 | 1014 | /* Runtime API */ |
15afbcd0 | 1015 | |
0085ce49 RD |
1016 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1017 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1018 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
32fe5131 | 1019 | |
0085ce49 RD |
1020 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1021 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1022 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1023 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1024 | #define SWIG_fail goto fail | |
32fe5131 | 1025 | |
15afbcd0 | 1026 | |
0085ce49 | 1027 | /* Runtime API implementation */ |
994141e6 | 1028 | |
0085ce49 | 1029 | /* Error manipulation */ |
994141e6 | 1030 | |
0085ce49 RD |
1031 | SWIGINTERN void |
1032 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1033 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1034 | PyErr_SetObject(errtype, obj); | |
1035 | Py_DECREF(obj); | |
1036 | SWIG_PYTHON_THREAD_END_BLOCK; | |
c32bde28 | 1037 | } |
15afbcd0 | 1038 | |
0085ce49 RD |
1039 | SWIGINTERN void |
1040 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1041 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1042 | PyErr_SetString(errtype, (char *) msg); | |
1043 | SWIG_PYTHON_THREAD_END_BLOCK; | |
15afbcd0 RD |
1044 | } |
1045 | ||
0085ce49 | 1046 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1047 | |
0085ce49 | 1048 | /* Set a constant value */ |
15afbcd0 | 1049 | |
0085ce49 RD |
1050 | SWIGINTERN void |
1051 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1052 | PyDict_SetItemString(d, (char*) name, obj); | |
1053 | Py_DECREF(obj); | |
c32bde28 | 1054 | } |
15afbcd0 | 1055 | |
0085ce49 | 1056 | /* Append a value to the result obj */ |
994141e6 | 1057 | |
0085ce49 RD |
1058 | SWIGINTERN PyObject* |
1059 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1060 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1061 | if (!result) { | |
1062 | result = obj; | |
1063 | } else if (result == Py_None) { | |
1064 | Py_DECREF(result); | |
1065 | result = obj; | |
1066 | } else { | |
1067 | if (!PyList_Check(result)) { | |
1068 | PyObject *o2 = result; | |
1069 | result = PyList_New(1); | |
1070 | PyList_SetItem(result, 0, o2); | |
1071 | } | |
1072 | PyList_Append(result,obj); | |
1073 | Py_DECREF(obj); | |
1074 | } | |
1075 | return result; | |
1076 | #else | |
1077 | PyObject* o2; | |
1078 | PyObject* o3; | |
1079 | if (!result) { | |
1080 | result = obj; | |
1081 | } else if (result == Py_None) { | |
1082 | Py_DECREF(result); | |
1083 | result = obj; | |
093d3ff1 | 1084 | } else { |
0085ce49 RD |
1085 | if (!PyTuple_Check(result)) { |
1086 | o2 = result; | |
1087 | result = PyTuple_New(1); | |
1088 | PyTuple_SET_ITEM(result, 0, o2); | |
1089 | } | |
1090 | o3 = PyTuple_New(1); | |
1091 | PyTuple_SET_ITEM(o3, 0, obj); | |
1092 | o2 = result; | |
1093 | result = PySequence_Concat(o2, o3); | |
1094 | Py_DECREF(o2); | |
1095 | Py_DECREF(o3); | |
c32bde28 | 1096 | } |
0085ce49 RD |
1097 | return result; |
1098 | #endif | |
c32bde28 RD |
1099 | } |
1100 | ||
0085ce49 | 1101 | /* Unpack the argument tuple */ |
15afbcd0 | 1102 | |
0085ce49 RD |
1103 | SWIGINTERN int |
1104 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1105 | { | |
1106 | if (!args) { | |
1107 | if (!min && !max) { | |
1108 | return 1; | |
1109 | } else { | |
1110 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1111 | name, (min == max ? "" : "at least "), min); | |
1112 | return 0; | |
1113 | } | |
1114 | } | |
1115 | if (!PyTuple_Check(args)) { | |
1116 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1117 | return 0; | |
1118 | } else { | |
1119 | register int l = PyTuple_GET_SIZE(args); | |
1120 | if (l < min) { | |
1121 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1122 | name, (min == max ? "" : "at least "), min, l); | |
1123 | return 0; | |
1124 | } else if (l > max) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at most "), max, l); | |
1127 | return 0; | |
1128 | } else { | |
1129 | register int i; | |
1130 | for (i = 0; i < l; ++i) { | |
1131 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1132 | } | |
1133 | for (; l < max; ++l) { | |
1134 | objs[l] = 0; | |
1135 | } | |
1136 | return i + 1; | |
1137 | } | |
1138 | } | |
1139 | } | |
1140 | ||
1141 | /* A functor is a function object with one single object argument */ | |
1142 | #if PY_VERSION_HEX >= 0x02020000 | |
1143 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1144 | #else | |
1145 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1146 | #endif | |
1147 | ||
1148 | /* | |
1149 | Helper for static pointer initialization for both C and C++ code, for example | |
1150 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1151 | */ | |
1152 | #ifdef __cplusplus | |
1153 | #define SWIG_STATIC_POINTER(var) var | |
1154 | #else | |
1155 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1156 | #endif | |
1157 | ||
1158 | /* ----------------------------------------------------------------------------- | |
1159 | * Pointer declarations | |
1160 | * ----------------------------------------------------------------------------- */ | |
1161 | ||
1162 | /* Flags for new pointer objects */ | |
1163 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1164 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1165 | ||
1166 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1167 | ||
1168 | #ifdef __cplusplus | |
1169 | extern "C" { | |
1170 | #if 0 | |
1171 | } /* cc-mode */ | |
1172 | #endif | |
1173 | #endif | |
1174 | ||
1175 | /* How to access Py_None */ | |
1176 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1177 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1178 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1179 | # define SWIG_PYTHON_BUILD_NONE | |
1180 | # endif | |
1181 | # endif | |
1182 | #endif | |
1183 | ||
1184 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1185 | # ifdef Py_None | |
1186 | # undef Py_None | |
1187 | # define Py_None SWIG_Py_None() | |
1188 | # endif | |
1189 | SWIGRUNTIMEINLINE PyObject * | |
1190 | _SWIG_Py_None(void) | |
1191 | { | |
1192 | PyObject *none = Py_BuildValue(""); | |
1193 | Py_DECREF(none); | |
1194 | return none; | |
1195 | } | |
1196 | SWIGRUNTIME PyObject * | |
1197 | SWIG_Py_None(void) | |
1198 | { | |
1199 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1200 | return none; | |
1201 | } | |
1202 | #endif | |
1203 | ||
1204 | /* The python void return value */ | |
1205 | ||
1206 | SWIGRUNTIMEINLINE PyObject * | |
1207 | SWIG_Py_Void(void) | |
1208 | { | |
1209 | PyObject *none = Py_None; | |
1210 | Py_INCREF(none); | |
1211 | return none; | |
1212 | } | |
1213 | ||
1214 | /* PySwigClientData */ | |
1215 | ||
1216 | typedef struct { | |
1217 | PyObject *klass; | |
1218 | PyObject *newraw; | |
1219 | PyObject *newargs; | |
1220 | PyObject *destroy; | |
1221 | int delargs; | |
1222 | int implicitconv; | |
1223 | } PySwigClientData; | |
1224 | ||
1225 | SWIGRUNTIMEINLINE int | |
1226 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1227 | { | |
1228 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1229 | return data ? data->implicitconv : 0; | |
1230 | } | |
1231 | ||
1232 | SWIGRUNTIMEINLINE PyObject * | |
1233 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1234 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1235 | PyObject *klass = data ? data->klass : 0; | |
1236 | return (klass ? klass : PyExc_RuntimeError); | |
1237 | } | |
1238 | ||
1239 | ||
1240 | SWIGRUNTIME PySwigClientData * | |
1241 | PySwigClientData_New(PyObject* obj) | |
1242 | { | |
1243 | if (!obj) { | |
1244 | return 0; | |
1245 | } else { | |
1246 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1247 | /* the klass element */ | |
1248 | data->klass = obj; | |
1249 | Py_INCREF(data->klass); | |
1250 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1251 | if (PyClass_Check(obj)) { | |
1252 | data->newraw = 0; | |
1253 | data->newargs = obj; | |
1254 | Py_INCREF(obj); | |
1255 | } else { | |
1256 | #if (PY_VERSION_HEX < 0x02020000) | |
1257 | data->newraw = 0; | |
1258 | #else | |
1259 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1260 | #endif | |
1261 | if (data->newraw) { | |
1262 | Py_INCREF(data->newraw); | |
1263 | data->newargs = PyTuple_New(1); | |
1264 | PyTuple_SetItem(data->newargs, 0, obj); | |
1265 | } else { | |
1266 | data->newargs = obj; | |
1267 | } | |
1268 | Py_INCREF(data->newargs); | |
1269 | } | |
1270 | /* the destroy method, aka as the C++ delete method */ | |
1271 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1272 | if (PyErr_Occurred()) { | |
1273 | PyErr_Clear(); | |
1274 | data->destroy = 0; | |
1275 | } | |
1276 | if (data->destroy) { | |
1277 | int flags; | |
1278 | Py_INCREF(data->destroy); | |
1279 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1280 | #ifdef METH_O | |
1281 | data->delargs = !(flags & (METH_O)); | |
1282 | #else | |
1283 | data->delargs = 0; | |
1284 | #endif | |
1285 | } else { | |
1286 | data->delargs = 0; | |
1287 | } | |
1288 | data->implicitconv = 0; | |
1289 | return data; | |
1290 | } | |
1291 | } | |
1292 | ||
1293 | SWIGRUNTIME void | |
1294 | PySwigClientData_Del(PySwigClientData* data) | |
1295 | { | |
1296 | Py_XDECREF(data->newraw); | |
1297 | Py_XDECREF(data->newargs); | |
1298 | Py_XDECREF(data->destroy); | |
1299 | } | |
1300 | ||
1301 | /* =============== PySwigObject =====================*/ | |
1302 | ||
1303 | typedef struct { | |
1304 | PyObject_HEAD | |
1305 | void *ptr; | |
1306 | swig_type_info *ty; | |
1307 | int own; | |
1308 | PyObject *next; | |
1309 | } PySwigObject; | |
1310 | ||
1311 | SWIGRUNTIME PyObject * | |
1312 | PySwigObject_long(PySwigObject *v) | |
1313 | { | |
1314 | return PyLong_FromVoidPtr(v->ptr); | |
1315 | } | |
1316 | ||
1317 | SWIGRUNTIME PyObject * | |
1318 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1319 | { | |
1320 | PyObject *res = NULL; | |
1321 | PyObject *args = PyTuple_New(1); | |
1322 | if (args) { | |
1323 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1324 | PyObject *ofmt = PyString_FromString(fmt); | |
1325 | if (ofmt) { | |
1326 | res = PyString_Format(ofmt,args); | |
1327 | Py_DECREF(ofmt); | |
1328 | } | |
1329 | Py_DECREF(args); | |
1330 | } | |
1331 | } | |
1332 | return res; | |
1333 | } | |
1334 | ||
1335 | SWIGRUNTIME PyObject * | |
1336 | PySwigObject_oct(PySwigObject *v) | |
1337 | { | |
1338 | return PySwigObject_format("%o",v); | |
1339 | } | |
1340 | ||
1341 | SWIGRUNTIME PyObject * | |
1342 | PySwigObject_hex(PySwigObject *v) | |
1343 | { | |
1344 | return PySwigObject_format("%x",v); | |
1345 | } | |
1346 | ||
1347 | SWIGRUNTIME PyObject * | |
1348 | #ifdef METH_NOARGS | |
1349 | PySwigObject_repr(PySwigObject *v) | |
1350 | #else | |
1351 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1352 | #endif | |
1353 | { | |
1354 | const char *name = SWIG_TypePrettyName(v->ty); | |
1355 | PyObject *hex = PySwigObject_hex(v); | |
1356 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1357 | Py_DECREF(hex); | |
1358 | if (v->next) { | |
1359 | #ifdef METH_NOARGS | |
1360 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1361 | #else | |
1362 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1363 | #endif | |
1364 | PyString_ConcatAndDel(&repr,nrep); | |
1365 | } | |
1366 | return repr; | |
1367 | } | |
1368 | ||
1369 | SWIGRUNTIME int | |
1370 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1371 | { | |
1372 | #ifdef METH_NOARGS | |
1373 | PyObject *repr = PySwigObject_repr(v); | |
1374 | #else | |
1375 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1376 | #endif | |
1377 | if (repr) { | |
1378 | fputs(PyString_AsString(repr), fp); | |
1379 | Py_DECREF(repr); | |
1380 | return 0; | |
1381 | } else { | |
1382 | return 1; | |
1383 | } | |
1384 | } | |
1385 | ||
1386 | SWIGRUNTIME PyObject * | |
1387 | PySwigObject_str(PySwigObject *v) | |
1388 | { | |
1389 | char result[SWIG_BUFFER_SIZE]; | |
1390 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1391 | PyString_FromString(result) : 0; | |
1392 | } | |
1393 | ||
1394 | SWIGRUNTIME int | |
1395 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1396 | { | |
1397 | void *i = v->ptr; | |
1398 | void *j = w->ptr; | |
1399 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1400 | } | |
1401 | ||
1402 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1403 | ||
1404 | SWIGRUNTIME PyTypeObject* | |
1405 | PySwigObject_type(void) { | |
1406 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1407 | return type; | |
1408 | } | |
1409 | ||
1410 | SWIGRUNTIMEINLINE int | |
1411 | PySwigObject_Check(PyObject *op) { | |
1412 | return ((op)->ob_type == PySwigObject_type()) | |
1413 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1414 | } | |
1415 | ||
1416 | SWIGRUNTIME PyObject * | |
1417 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1418 | ||
1419 | SWIGRUNTIME void | |
1420 | PySwigObject_dealloc(PyObject *v) | |
1421 | { | |
1422 | PySwigObject *sobj = (PySwigObject *) v; | |
1423 | PyObject *next = sobj->next; | |
1424 | if (sobj->own) { | |
1425 | swig_type_info *ty = sobj->ty; | |
1426 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1427 | PyObject *destroy = data ? data->destroy : 0; | |
1428 | if (destroy) { | |
1429 | /* destroy is always a VARARGS method */ | |
1430 | PyObject *res; | |
1431 | if (data->delargs) { | |
1432 | /* we need to create a temporal object to carry the destroy operation */ | |
1433 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1434 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1435 | Py_DECREF(tmp); | |
1436 | } else { | |
1437 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1438 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1439 | res = ((*meth)(mself, v)); | |
1440 | } | |
1441 | Py_XDECREF(res); | |
1442 | } else { | |
1443 | const char *name = SWIG_TypePrettyName(ty); | |
1444 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1445 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1446 | #endif | |
1447 | } | |
1448 | } | |
1449 | Py_XDECREF(next); | |
1450 | PyObject_DEL(v); | |
1451 | } | |
1452 | ||
1453 | SWIGRUNTIME PyObject* | |
1454 | PySwigObject_append(PyObject* v, PyObject* next) | |
1455 | { | |
1456 | PySwigObject *sobj = (PySwigObject *) v; | |
1457 | #ifndef METH_O | |
1458 | PyObject *tmp = 0; | |
1459 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1460 | next = tmp; | |
1461 | #endif | |
1462 | if (!PySwigObject_Check(next)) { | |
1463 | return NULL; | |
1464 | } | |
1465 | sobj->next = next; | |
1466 | Py_INCREF(next); | |
1467 | return SWIG_Py_Void(); | |
1468 | } | |
1469 | ||
1470 | SWIGRUNTIME PyObject* | |
1471 | #ifdef METH_NOARGS | |
1472 | PySwigObject_next(PyObject* v) | |
1473 | #else | |
1474 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1475 | #endif | |
1476 | { | |
1477 | PySwigObject *sobj = (PySwigObject *) v; | |
1478 | if (sobj->next) { | |
1479 | Py_INCREF(sobj->next); | |
1480 | return sobj->next; | |
1481 | } else { | |
1482 | return SWIG_Py_Void(); | |
1483 | } | |
1484 | } | |
1485 | ||
1486 | SWIGINTERN PyObject* | |
1487 | #ifdef METH_NOARGS | |
1488 | PySwigObject_disown(PyObject *v) | |
1489 | #else | |
1490 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1491 | #endif | |
1492 | { | |
1493 | PySwigObject *sobj = (PySwigObject *)v; | |
1494 | sobj->own = 0; | |
1495 | return SWIG_Py_Void(); | |
1496 | } | |
1497 | ||
1498 | SWIGINTERN PyObject* | |
1499 | #ifdef METH_NOARGS | |
1500 | PySwigObject_acquire(PyObject *v) | |
1501 | #else | |
1502 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1503 | #endif | |
1504 | { | |
1505 | PySwigObject *sobj = (PySwigObject *)v; | |
1506 | sobj->own = SWIG_POINTER_OWN; | |
1507 | return SWIG_Py_Void(); | |
1508 | } | |
1509 | ||
1510 | SWIGINTERN PyObject* | |
1511 | PySwigObject_own(PyObject *v, PyObject *args) | |
1512 | { | |
1513 | PyObject *val = 0; | |
1514 | #if (PY_VERSION_HEX < 0x02020000) | |
1515 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1516 | #else | |
1517 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1518 | #endif | |
1519 | { | |
1520 | return NULL; | |
1521 | } | |
1522 | else | |
1523 | { | |
1524 | PySwigObject *sobj = (PySwigObject *)v; | |
1525 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1526 | if (val) { | |
1527 | #ifdef METH_NOARGS | |
1528 | if (PyObject_IsTrue(val)) { | |
1529 | PySwigObject_acquire(v); | |
1530 | } else { | |
1531 | PySwigObject_disown(v); | |
1532 | } | |
1533 | #else | |
1534 | if (PyObject_IsTrue(val)) { | |
1535 | PySwigObject_acquire(v,args); | |
1536 | } else { | |
1537 | PySwigObject_disown(v,args); | |
1538 | } | |
1539 | #endif | |
1540 | } | |
1541 | return obj; | |
1542 | } | |
1543 | } | |
1544 | ||
1545 | #ifdef METH_O | |
1546 | static PyMethodDef | |
1547 | swigobject_methods[] = { | |
1548 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1549 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1550 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1551 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1552 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1553 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1554 | {0, 0, 0, 0} | |
1555 | }; | |
1556 | #else | |
1557 | static PyMethodDef | |
1558 | swigobject_methods[] = { | |
1559 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1560 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1561 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1562 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1563 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1564 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1565 | {0, 0, 0, 0} | |
1566 | }; | |
1567 | #endif | |
1568 | ||
1569 | #if PY_VERSION_HEX < 0x02020000 | |
1570 | SWIGINTERN PyObject * | |
1571 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1572 | { | |
1573 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1574 | } | |
1575 | #endif | |
1576 | ||
1577 | SWIGRUNTIME PyTypeObject* | |
1578 | _PySwigObject_type(void) { | |
1579 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1580 | ||
1581 | static PyNumberMethods PySwigObject_as_number = { | |
1582 | (binaryfunc)0, /*nb_add*/ | |
1583 | (binaryfunc)0, /*nb_subtract*/ | |
1584 | (binaryfunc)0, /*nb_multiply*/ | |
1585 | (binaryfunc)0, /*nb_divide*/ | |
1586 | (binaryfunc)0, /*nb_remainder*/ | |
093d3ff1 RD |
1587 | (binaryfunc)0, /*nb_divmod*/ |
1588 | (ternaryfunc)0,/*nb_power*/ | |
1589 | (unaryfunc)0, /*nb_negative*/ | |
1590 | (unaryfunc)0, /*nb_positive*/ | |
1591 | (unaryfunc)0, /*nb_absolute*/ | |
1592 | (inquiry)0, /*nb_nonzero*/ | |
1593 | 0, /*nb_invert*/ | |
1594 | 0, /*nb_lshift*/ | |
1595 | 0, /*nb_rshift*/ | |
1596 | 0, /*nb_and*/ | |
1597 | 0, /*nb_xor*/ | |
1598 | 0, /*nb_or*/ | |
1599 | (coercion)0, /*nb_coerce*/ | |
1600 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1601 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1602 | (unaryfunc)0, /*nb_float*/ | |
1603 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1604 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 1605 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 1606 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
1607 | #elif PY_VERSION_HEX >= 0x02000000 |
1608 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
1609 | #endif |
1610 | }; | |
1611 | ||
0085ce49 | 1612 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1613 | static int type_init = 0; |
093d3ff1 | 1614 | if (!type_init) { |
0085ce49 RD |
1615 | const PyTypeObject tmp |
1616 | = { | |
1617 | PyObject_HEAD_INIT(NULL) | |
1618 | 0, /* ob_size */ | |
1619 | (char *)"PySwigObject", /* tp_name */ | |
1620 | sizeof(PySwigObject), /* tp_basicsize */ | |
1621 | 0, /* tp_itemsize */ | |
1622 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1623 | (printfunc)PySwigObject_print, /* tp_print */ | |
1624 | #if PY_VERSION_HEX < 0x02020000 | |
1625 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1626 | #else | |
1627 | (getattrfunc)0, /* tp_getattr */ | |
093d3ff1 | 1628 | #endif |
0085ce49 RD |
1629 | (setattrfunc)0, /* tp_setattr */ |
1630 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1631 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1632 | &PySwigObject_as_number, /* tp_as_number */ | |
1633 | 0, /* tp_as_sequence */ | |
1634 | 0, /* tp_as_mapping */ | |
1635 | (hashfunc)0, /* tp_hash */ | |
1636 | (ternaryfunc)0, /* tp_call */ | |
1637 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1638 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1639 | 0, /* tp_setattro */ | |
1640 | 0, /* tp_as_buffer */ | |
1641 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1642 | swigobject_doc, /* tp_doc */ | |
1643 | 0, /* tp_traverse */ | |
1644 | 0, /* tp_clear */ | |
1645 | 0, /* tp_richcompare */ | |
1646 | 0, /* tp_weaklistoffset */ | |
093d3ff1 | 1647 | #if PY_VERSION_HEX >= 0x02020000 |
0085ce49 RD |
1648 | 0, /* tp_iter */ |
1649 | 0, /* tp_iternext */ | |
1650 | swigobject_methods, /* tp_methods */ | |
1651 | 0, /* tp_members */ | |
1652 | 0, /* tp_getset */ | |
1653 | 0, /* tp_base */ | |
1654 | 0, /* tp_dict */ | |
1655 | 0, /* tp_descr_get */ | |
1656 | 0, /* tp_descr_set */ | |
1657 | 0, /* tp_dictoffset */ | |
1658 | 0, /* tp_init */ | |
1659 | 0, /* tp_alloc */ | |
1660 | 0, /* tp_new */ | |
1661 | 0, /* tp_free */ | |
1662 | 0, /* tp_is_gc */ | |
1663 | 0, /* tp_bases */ | |
1664 | 0, /* tp_mro */ | |
1665 | 0, /* tp_cache */ | |
1666 | 0, /* tp_subclasses */ | |
1667 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1668 | #endif |
1669 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1670 | 0, /* tp_del */ |
093d3ff1 RD |
1671 | #endif |
1672 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1673 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1674 | #endif |
0085ce49 | 1675 | }; |
32fe5131 | 1676 | pyswigobject_type = tmp; |
0085ce49 | 1677 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1678 | type_init = 1; |
1679 | } | |
32fe5131 | 1680 | return &pyswigobject_type; |
093d3ff1 RD |
1681 | } |
1682 | ||
1683 | SWIGRUNTIME PyObject * | |
0085ce49 | 1684 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
c32bde28 | 1685 | { |
0085ce49 RD |
1686 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1687 | if (sobj) { | |
1688 | sobj->ptr = ptr; | |
1689 | sobj->ty = ty; | |
1690 | sobj->own = own; | |
1691 | sobj->next = 0; | |
32fe5131 | 1692 | } |
0085ce49 | 1693 | return (PyObject *)sobj; |
093d3ff1 | 1694 | } |
d14a1e28 | 1695 | |
093d3ff1 RD |
1696 | /* ----------------------------------------------------------------------------- |
1697 | * Implements a simple Swig Packed type, and use it instead of string | |
1698 | * ----------------------------------------------------------------------------- */ | |
994141e6 | 1699 | |
093d3ff1 RD |
1700 | typedef struct { |
1701 | PyObject_HEAD | |
1702 | void *pack; | |
0085ce49 | 1703 | swig_type_info *ty; |
093d3ff1 RD |
1704 | size_t size; |
1705 | } PySwigPacked; | |
c32bde28 | 1706 | |
093d3ff1 | 1707 | SWIGRUNTIME int |
0085ce49 | 1708 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
994141e6 | 1709 | { |
093d3ff1 RD |
1710 | char result[SWIG_BUFFER_SIZE]; |
1711 | fputs("<Swig Packed ", fp); | |
1712 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1713 | fputs("at ", fp); | |
1714 | fputs(result, fp); | |
1715 | } | |
0085ce49 | 1716 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1717 | fputs(">", fp); |
1718 | return 0; | |
1719 | } | |
1720 | ||
1721 | SWIGRUNTIME PyObject * | |
1722 | PySwigPacked_repr(PySwigPacked *v) | |
1723 | { | |
1724 | char result[SWIG_BUFFER_SIZE]; | |
1725 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
0085ce49 | 1726 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1727 | } else { |
0085ce49 | 1728 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 | 1729 | } |
15afbcd0 RD |
1730 | } |
1731 | ||
093d3ff1 RD |
1732 | SWIGRUNTIME PyObject * |
1733 | PySwigPacked_str(PySwigPacked *v) | |
1734 | { | |
1735 | char result[SWIG_BUFFER_SIZE]; | |
1736 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
0085ce49 | 1737 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1738 | } else { |
0085ce49 | 1739 | return PyString_FromString(v->ty->name); |
093d3ff1 RD |
1740 | } |
1741 | } | |
15afbcd0 | 1742 | |
093d3ff1 RD |
1743 | SWIGRUNTIME int |
1744 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
15afbcd0 | 1745 | { |
0085ce49 RD |
1746 | size_t i = v->size; |
1747 | size_t j = w->size; | |
1748 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1749 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
c32bde28 RD |
1750 | } |
1751 | ||
0085ce49 | 1752 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
994141e6 | 1753 | |
093d3ff1 | 1754 | SWIGRUNTIME PyTypeObject* |
32fe5131 | 1755 | PySwigPacked_type(void) { |
0085ce49 RD |
1756 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1757 | return type; | |
1758 | } | |
1759 | ||
1760 | SWIGRUNTIMEINLINE int | |
1761 | PySwigPacked_Check(PyObject *op) { | |
1762 | return ((op)->ob_type == _PySwigPacked_type()) | |
1763 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1764 | } | |
1765 | ||
1766 | SWIGRUNTIME void | |
1767 | PySwigPacked_dealloc(PyObject *v) | |
1768 | { | |
1769 | if (PySwigPacked_Check(v)) { | |
1770 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1771 | free(sobj->pack); | |
1772 | } | |
1773 | PyObject_DEL(v); | |
1774 | } | |
1775 | ||
1776 | SWIGRUNTIME PyTypeObject* | |
1777 | _PySwigPacked_type(void) { | |
1778 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1779 | static PyTypeObject pyswigpacked_type; | |
1780 | static int type_init = 0; | |
1781 | if (!type_init) { | |
1782 | const PyTypeObject tmp | |
1783 | = { | |
1784 | PyObject_HEAD_INIT(NULL) | |
1785 | 0, /* ob_size */ | |
1786 | (char *)"PySwigPacked", /* tp_name */ | |
1787 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1788 | 0, /* tp_itemsize */ | |
1789 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1790 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1791 | (getattrfunc)0, /* tp_getattr */ | |
1792 | (setattrfunc)0, /* tp_setattr */ | |
1793 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1794 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1795 | 0, /* tp_as_number */ | |
1796 | 0, /* tp_as_sequence */ | |
1797 | 0, /* tp_as_mapping */ | |
1798 | (hashfunc)0, /* tp_hash */ | |
1799 | (ternaryfunc)0, /* tp_call */ | |
1800 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1801 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1802 | 0, /* tp_setattro */ | |
1803 | 0, /* tp_as_buffer */ | |
1804 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1805 | swigpacked_doc, /* tp_doc */ | |
1806 | 0, /* tp_traverse */ | |
1807 | 0, /* tp_clear */ | |
1808 | 0, /* tp_richcompare */ | |
1809 | 0, /* tp_weaklistoffset */ | |
1810 | #if PY_VERSION_HEX >= 0x02020000 | |
1811 | 0, /* tp_iter */ | |
1812 | 0, /* tp_iternext */ | |
1813 | 0, /* tp_methods */ | |
1814 | 0, /* tp_members */ | |
1815 | 0, /* tp_getset */ | |
1816 | 0, /* tp_base */ | |
1817 | 0, /* tp_dict */ | |
1818 | 0, /* tp_descr_get */ | |
1819 | 0, /* tp_descr_set */ | |
1820 | 0, /* tp_dictoffset */ | |
1821 | 0, /* tp_init */ | |
1822 | 0, /* tp_alloc */ | |
1823 | 0, /* tp_new */ | |
1824 | 0, /* tp_free */ | |
1825 | 0, /* tp_is_gc */ | |
1826 | 0, /* tp_bases */ | |
1827 | 0, /* tp_mro */ | |
1828 | 0, /* tp_cache */ | |
1829 | 0, /* tp_subclasses */ | |
1830 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1831 | #endif |
1832 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1833 | 0, /* tp_del */ |
093d3ff1 RD |
1834 | #endif |
1835 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1836 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1837 | #endif |
0085ce49 | 1838 | }; |
32fe5131 | 1839 | pyswigpacked_type = tmp; |
0085ce49 | 1840 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1841 | type_init = 1; |
1842 | } | |
32fe5131 | 1843 | return &pyswigpacked_type; |
093d3ff1 | 1844 | } |
d14a1e28 | 1845 | |
093d3ff1 | 1846 | SWIGRUNTIME PyObject * |
0085ce49 | 1847 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
093d3ff1 | 1848 | { |
0085ce49 RD |
1849 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1850 | if (sobj) { | |
093d3ff1 | 1851 | void *pack = malloc(size); |
32fe5131 RD |
1852 | if (pack) { |
1853 | memcpy(pack, ptr, size); | |
0085ce49 RD |
1854 | sobj->pack = pack; |
1855 | sobj->ty = ty; | |
1856 | sobj->size = size; | |
1857 | } else { | |
1858 | PyObject_DEL((PyObject *) sobj); | |
1859 | sobj = 0; | |
32fe5131 | 1860 | } |
093d3ff1 | 1861 | } |
0085ce49 | 1862 | return (PyObject *) sobj; |
093d3ff1 | 1863 | } |
d14a1e28 | 1864 | |
0085ce49 | 1865 | SWIGRUNTIME swig_type_info * |
093d3ff1 | 1866 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
d14a1e28 | 1867 | { |
0085ce49 RD |
1868 | if (PySwigPacked_Check(obj)) { |
1869 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1870 | if (sobj->size != size) return 0; | |
1871 | memcpy(ptr, sobj->pack, size); | |
1872 | return sobj->ty; | |
1873 | } else { | |
1874 | return 0; | |
1875 | } | |
093d3ff1 | 1876 | } |
d14a1e28 | 1877 | |
093d3ff1 | 1878 | /* ----------------------------------------------------------------------------- |
0085ce49 | 1879 | * pointers/data manipulation |
093d3ff1 | 1880 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 1881 | |
0085ce49 RD |
1882 | SWIGRUNTIMEINLINE PyObject * |
1883 | _SWIG_This(void) | |
1884 | { | |
1885 | return PyString_FromString("this"); | |
1886 | } | |
d14a1e28 | 1887 | |
0085ce49 RD |
1888 | SWIGRUNTIME PyObject * |
1889 | SWIG_This(void) | |
1890 | { | |
1891 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1892 | return swig_this; | |
1893 | } | |
d14a1e28 | 1894 | |
0085ce49 | 1895 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
d14a1e28 | 1896 | |
0085ce49 RD |
1897 | SWIGRUNTIME PySwigObject * |
1898 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
093d3ff1 | 1899 | { |
0085ce49 RD |
1900 | if (PySwigObject_Check(pyobj)) { |
1901 | return (PySwigObject *) pyobj; | |
1902 | } else { | |
1903 | PyObject *obj = 0; | |
1904 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1905 | if (PyInstance_Check(pyobj)) { | |
1906 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1907 | } else { | |
1908 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1909 | if (dictptr != NULL) { | |
1910 | PyObject *dict = *dictptr; | |
1911 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1912 | } else { | |
1913 | #ifdef PyWeakref_CheckProxy | |
1914 | if (PyWeakref_CheckProxy(pyobj)) { | |
1915 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1916 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1917 | } | |
1918 | #endif | |
1919 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1920 | if (obj) { | |
1921 | Py_DECREF(obj); | |
093d3ff1 | 1922 | } else { |
0085ce49 RD |
1923 | if (PyErr_Occurred()) PyErr_Clear(); |
1924 | return 0; | |
093d3ff1 | 1925 | } |
093d3ff1 | 1926 | } |
0085ce49 RD |
1927 | } |
1928 | #else | |
1929 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1930 | if (obj) { | |
1931 | Py_DECREF(obj); | |
1932 | } else { | |
1933 | if (PyErr_Occurred()) PyErr_Clear(); | |
1934 | return 0; | |
1935 | } | |
1936 | #endif | |
1937 | if (obj && !PySwigObject_Check(obj)) { | |
1938 | /* a PyObject is called 'this', try to get the 'real this' | |
1939 | PySwigObject from it */ | |
1940 | return SWIG_Python_GetSwigThis(obj); | |
1941 | } | |
1942 | return (PySwigObject *)obj; | |
093d3ff1 RD |
1943 | } |
1944 | } | |
d14a1e28 | 1945 | |
0085ce49 RD |
1946 | /* Acquire a pointer value */ |
1947 | ||
1948 | SWIGRUNTIME int | |
1949 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1950 | if (own) { | |
1951 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1952 | if (sobj) { | |
1953 | int oldown = sobj->own; | |
1954 | sobj->own = own; | |
1955 | return oldown; | |
1956 | } | |
093d3ff1 | 1957 | } |
0085ce49 | 1958 | return 0; |
093d3ff1 | 1959 | } |
d14a1e28 | 1960 | |
0085ce49 RD |
1961 | /* Convert a pointer value */ |
1962 | ||
093d3ff1 | 1963 | SWIGRUNTIME int |
0085ce49 RD |
1964 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1965 | if (!obj) return SWIG_ERROR; | |
1966 | if (obj == Py_None) { | |
1967 | if (ptr) *ptr = 0; | |
1968 | return SWIG_OK; | |
1969 | } else { | |
1970 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1971 | while (sobj) { | |
1972 | void *vptr = sobj->ptr; | |
1973 | if (ty) { | |
1974 | swig_type_info *to = sobj->ty; | |
1975 | if (to == ty) { | |
1976 | /* no type cast needed */ | |
1977 | if (ptr) *ptr = vptr; | |
1978 | break; | |
1979 | } else { | |
1980 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1981 | if (!tc) { | |
1982 | sobj = (PySwigObject *)sobj->next; | |
1983 | } else { | |
1984 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1985 | break; | |
1986 | } | |
1987 | } | |
093d3ff1 | 1988 | } else { |
0085ce49 RD |
1989 | if (ptr) *ptr = vptr; |
1990 | break; | |
093d3ff1 | 1991 | } |
093d3ff1 | 1992 | } |
0085ce49 RD |
1993 | if (sobj) { |
1994 | if (own) *own = sobj->own; | |
1995 | if (flags & SWIG_POINTER_DISOWN) { | |
1996 | sobj->own = 0; | |
1997 | } | |
1998 | return SWIG_OK; | |
1999 | } else { | |
2000 | int res = SWIG_ERROR; | |
2001 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2002 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2003 | if (data && !data->implicitconv) { | |
2004 | PyObject *klass = data->klass; | |
2005 | if (klass) { | |
2006 | PyObject *impconv; | |
2007 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2008 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2009 | data->implicitconv = 0; | |
2010 | if (PyErr_Occurred()) { | |
2011 | PyErr_Clear(); | |
2012 | impconv = 0; | |
2013 | } | |
2014 | if (impconv) { | |
2015 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2016 | if (iobj) { | |
2017 | void *vptr; | |
2018 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2019 | if (SWIG_IsOK(res)) { | |
2020 | if (ptr) { | |
2021 | *ptr = vptr; | |
2022 | /* transfer the ownership to 'ptr' */ | |
2023 | iobj->own = 0; | |
2024 | res = SWIG_AddCast(res); | |
2025 | res = SWIG_AddNewMask(res); | |
2026 | } else { | |
2027 | res = SWIG_AddCast(res); | |
2028 | } | |
2029 | } | |
2030 | } | |
2031 | Py_DECREF(impconv); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | } | |
2036 | return res; | |
2037 | } | |
093d3ff1 RD |
2038 | } |
2039 | } | |
d14a1e28 | 2040 | |
0085ce49 RD |
2041 | /* Convert a function ptr value */ |
2042 | ||
093d3ff1 | 2043 | SWIGRUNTIME int |
0085ce49 RD |
2044 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2045 | if (!PyCFunction_Check(obj)) { | |
2046 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
093d3ff1 | 2047 | } else { |
0085ce49 RD |
2048 | void *vptr = 0; |
2049 | ||
2050 | /* here we get the method pointer for callbacks */ | |
2051 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
2052 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; | |
2053 | if (desc) { | |
2054 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2055 | if (!desc) return SWIG_ERROR; | |
2056 | } | |
2057 | if (ty) { | |
2058 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2059 | if (!tc) return SWIG_ERROR; | |
2060 | *ptr = SWIG_TypeCast(tc,vptr); | |
2061 | } else { | |
2062 | *ptr = vptr; | |
2063 | } | |
2064 | return SWIG_OK; | |
093d3ff1 RD |
2065 | } |
2066 | } | |
d14a1e28 | 2067 | |
0085ce49 | 2068 | /* Convert a packed value value */ |
d14a1e28 | 2069 | |
093d3ff1 | 2070 | SWIGRUNTIME int |
0085ce49 RD |
2071 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2072 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2073 | if (!to) return SWIG_ERROR; | |
2074 | if (ty) { | |
2075 | if (to != ty) { | |
2076 | /* check type cast? */ | |
2077 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2078 | if (!tc) return SWIG_ERROR; | |
2079 | } | |
093d3ff1 | 2080 | } |
0085ce49 RD |
2081 | return SWIG_OK; |
2082 | } | |
d14a1e28 | 2083 | |
0085ce49 RD |
2084 | /* ----------------------------------------------------------------------------- |
2085 | * Create a new pointer object | |
2086 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 2087 | |
0085ce49 RD |
2088 | /* |
2089 | Create a new instance object, whitout calling __init__, and set the | |
2090 | 'this' attribute. | |
2091 | */ | |
d14a1e28 | 2092 | |
0085ce49 RD |
2093 | SWIGRUNTIME PyObject* |
2094 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2095 | { | |
2096 | #if (PY_VERSION_HEX >= 0x02020000) | |
2097 | PyObject *inst = 0; | |
2098 | PyObject *newraw = data->newraw; | |
2099 | if (newraw) { | |
2100 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2101 | if (inst) { | |
2102 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2103 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2104 | if (dictptr != NULL) { | |
2105 | PyObject *dict = *dictptr; | |
2106 | if (dict == NULL) { | |
2107 | dict = PyDict_New(); | |
2108 | *dictptr = dict; | |
2109 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2110 | } | |
093d3ff1 | 2111 | } |
0085ce49 RD |
2112 | #else |
2113 | PyObject *key = SWIG_This(); | |
2114 | PyObject_SetAttr(inst, key, swig_this); | |
2115 | #endif | |
093d3ff1 | 2116 | } |
0085ce49 RD |
2117 | } else { |
2118 | PyObject *dict = PyDict_New(); | |
2119 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2120 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2121 | Py_DECREF(dict); | |
093d3ff1 | 2122 | } |
0085ce49 RD |
2123 | return inst; |
2124 | #else | |
2125 | #if (PY_VERSION_HEX >= 0x02010000) | |
2126 | PyObject *inst; | |
2127 | PyObject *dict = PyDict_New(); | |
2128 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2129 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2130 | Py_DECREF(dict); | |
2131 | return (PyObject *) inst; | |
2132 | #else | |
2133 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2134 | if (inst == NULL) { | |
2135 | return NULL; | |
093d3ff1 | 2136 | } |
0085ce49 RD |
2137 | inst->in_class = (PyClassObject *)data->newargs; |
2138 | Py_INCREF(inst->in_class); | |
2139 | inst->in_dict = PyDict_New(); | |
2140 | if (inst->in_dict == NULL) { | |
2141 | Py_DECREF(inst); | |
2142 | return NULL; | |
093d3ff1 | 2143 | } |
0085ce49 RD |
2144 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2145 | inst->in_weakreflist = NULL; | |
2146 | #endif | |
2147 | #ifdef Py_TPFLAGS_GC | |
2148 | PyObject_GC_Init(inst); | |
2149 | #endif | |
2150 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2151 | return (PyObject *) inst; | |
2152 | #endif | |
2153 | #endif | |
093d3ff1 | 2154 | } |
d14a1e28 | 2155 | |
0085ce49 RD |
2156 | SWIGRUNTIME void |
2157 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2158 | { | |
2159 | PyObject *dict; | |
2160 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2161 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2162 | if (dictptr != NULL) { | |
2163 | dict = *dictptr; | |
2164 | if (dict == NULL) { | |
2165 | dict = PyDict_New(); | |
2166 | *dictptr = dict; | |
2167 | } | |
2168 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2169 | return; | |
2170 | } | |
093d3ff1 | 2171 | #endif |
0085ce49 RD |
2172 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2173 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2174 | Py_DECREF(dict); | |
2175 | } | |
d14a1e28 | 2176 | |
0085ce49 RD |
2177 | |
2178 | SWIGINTERN PyObject * | |
2179 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2180 | PyObject *obj[2]; | |
2181 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2182 | return NULL; | |
2183 | } else { | |
2184 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2185 | if (sthis) { | |
2186 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
093d3ff1 | 2187 | } else { |
0085ce49 | 2188 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2189 | } |
0085ce49 | 2190 | return SWIG_Py_Void(); |
093d3ff1 | 2191 | } |
0085ce49 RD |
2192 | } |
2193 | ||
2194 | /* Create a new pointer object */ | |
093d3ff1 | 2195 | |
093d3ff1 | 2196 | SWIGRUNTIME PyObject * |
0085ce49 | 2197 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2198 | if (!ptr) { |
0085ce49 RD |
2199 | return SWIG_Py_Void(); |
2200 | } else { | |
2201 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2202 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2203 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2204 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2205 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2206 | if (inst) { | |
2207 | Py_DECREF(robj); | |
2208 | robj = inst; | |
093d3ff1 | 2209 | } |
093d3ff1 | 2210 | } |
0085ce49 | 2211 | return robj; |
093d3ff1 | 2212 | } |
093d3ff1 RD |
2213 | } |
2214 | ||
0085ce49 RD |
2215 | /* Create a new packed object */ |
2216 | ||
2217 | SWIGRUNTIMEINLINE PyObject * | |
093d3ff1 | 2218 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
0085ce49 | 2219 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
093d3ff1 RD |
2220 | } |
2221 | ||
2222 | /* -----------------------------------------------------------------------------* | |
2223 | * Get type list | |
2224 | * -----------------------------------------------------------------------------*/ | |
2225 | ||
2226 | #ifdef SWIG_LINK_RUNTIME | |
2227 | void *SWIG_ReturnGlobalTypeList(void *); | |
2228 | #endif | |
2229 | ||
32fe5131 RD |
2230 | SWIGRUNTIME swig_module_info * |
2231 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
2232 | static void *type_pointer = (void *)0; |
2233 | /* first check if module already created */ | |
2234 | if (!type_pointer) { | |
2235 | #ifdef SWIG_LINK_RUNTIME | |
2236 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
2237 | #else | |
2238 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2239 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2240 | if (PyErr_Occurred()) { | |
2241 | PyErr_Clear(); | |
2242 | type_pointer = (void *)0; | |
2243 | } | |
093d3ff1 | 2244 | #endif |
32fe5131 RD |
2245 | } |
2246 | return (swig_module_info *) type_pointer; | |
093d3ff1 RD |
2247 | } |
2248 | ||
32fe5131 RD |
2249 | #if PY_MAJOR_VERSION < 2 |
2250 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
0085ce49 | 2251 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 RD |
2252 | SWIGINTERN int |
2253 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2254 | { | |
2255 | PyObject *dict; | |
2256 | if (!PyModule_Check(m)) { | |
2257 | PyErr_SetString(PyExc_TypeError, | |
2258 | "PyModule_AddObject() needs module as first arg"); | |
0085ce49 | 2259 | return SWIG_ERROR; |
32fe5131 RD |
2260 | } |
2261 | if (!o) { | |
2262 | PyErr_SetString(PyExc_TypeError, | |
2263 | "PyModule_AddObject() needs non-NULL value"); | |
0085ce49 | 2264 | return SWIG_ERROR; |
32fe5131 RD |
2265 | } |
2266 | ||
2267 | dict = PyModule_GetDict(m); | |
2268 | if (dict == NULL) { | |
2269 | /* Internal error -- modules must have a dict! */ | |
2270 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2271 | PyModule_GetName(m)); | |
0085ce49 | 2272 | return SWIG_ERROR; |
32fe5131 RD |
2273 | } |
2274 | if (PyDict_SetItemString(dict, name, o)) | |
0085ce49 | 2275 | return SWIG_ERROR; |
32fe5131 | 2276 | Py_DECREF(o); |
0085ce49 | 2277 | return SWIG_OK; |
093d3ff1 | 2278 | } |
32fe5131 | 2279 | #endif |
093d3ff1 | 2280 | |
0085ce49 RD |
2281 | SWIGRUNTIME void |
2282 | SWIG_Python_DestroyModule(void *vptr) | |
2283 | { | |
2284 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2285 | swig_type_info **types = swig_module->types; | |
2286 | size_t i; | |
2287 | for (i =0; i < swig_module->size; ++i) { | |
2288 | swig_type_info *ty = types[i]; | |
2289 | if (ty->owndata) { | |
2290 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2291 | if (data) PySwigClientData_Del(data); | |
2292 | } | |
2293 | } | |
2294 | Py_DECREF(SWIG_This()); | |
2295 | } | |
2296 | ||
32fe5131 RD |
2297 | SWIGRUNTIME void |
2298 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2299 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2300 | ||
2301 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2302 | swig_empty_runtime_method_table); | |
0085ce49 | 2303 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2304 | if (pointer && module) { |
2305 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
0085ce49 RD |
2306 | } else { |
2307 | Py_XDECREF(pointer); | |
32fe5131 RD |
2308 | } |
2309 | } | |
093d3ff1 | 2310 | |
0085ce49 RD |
2311 | /* The python cached type query */ |
2312 | SWIGRUNTIME PyObject * | |
2313 | SWIG_Python_TypeCache() { | |
2314 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2315 | return cache; | |
093d3ff1 | 2316 | } |
093d3ff1 | 2317 | |
0085ce49 RD |
2318 | SWIGRUNTIME swig_type_info * |
2319 | SWIG_Python_TypeQuery(const char *type) | |
2320 | { | |
2321 | PyObject *cache = SWIG_Python_TypeCache(); | |
2322 | PyObject *key = PyString_FromString(type); | |
2323 | PyObject *obj = PyDict_GetItem(cache, key); | |
2324 | swig_type_info *descriptor; | |
2325 | if (obj) { | |
2326 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2327 | } else { | |
2328 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2329 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2330 | if (descriptor) { | |
2331 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2332 | PyDict_SetItem(cache, key, obj); | |
2333 | Py_DECREF(obj); | |
2334 | } | |
2335 | } | |
2336 | Py_DECREF(key); | |
2337 | return descriptor; | |
2338 | } | |
2339 | ||
2340 | /* | |
2341 | For backward compatibility only | |
2342 | */ | |
2343 | #define SWIG_POINTER_EXCEPTION 0 | |
2344 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2345 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2346 | ||
2347 | SWIGRUNTIME int | |
2348 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2349 | { | |
2350 | if (PyErr_Occurred()) { | |
2351 | PyObject *type = 0; | |
2352 | PyObject *value = 0; | |
2353 | PyObject *traceback = 0; | |
2354 | PyErr_Fetch(&type, &value, &traceback); | |
2355 | if (value) { | |
2356 | PyObject *old_str = PyObject_Str(value); | |
2357 | Py_XINCREF(type); | |
2358 | PyErr_Clear(); | |
2359 | if (infront) { | |
2360 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2361 | } else { | |
2362 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2363 | } | |
2364 | Py_DECREF(old_str); | |
2365 | } | |
2366 | return 1; | |
2367 | } else { | |
2368 | return 0; | |
2369 | } | |
2370 | } | |
2371 | ||
2372 | SWIGRUNTIME int | |
2373 | SWIG_Python_ArgFail(int argnum) | |
2374 | { | |
2375 | if (PyErr_Occurred()) { | |
2376 | /* add information about failing argument */ | |
2377 | char mesg[256]; | |
2378 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2379 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2380 | } else { | |
2381 | return 0; | |
2382 | } | |
2383 | } | |
2384 | ||
2385 | SWIGRUNTIMEINLINE const char * | |
2386 | PySwigObject_GetDesc(PyObject *self) | |
2387 | { | |
2388 | PySwigObject *v = (PySwigObject *)self; | |
2389 | swig_type_info *ty = v ? v->ty : 0; | |
2390 | return ty ? ty->str : (char*)""; | |
2391 | } | |
2392 | ||
2393 | SWIGRUNTIME void | |
2394 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2395 | { | |
2396 | if (type) { | |
2397 | #if defined(SWIG_COBJECT_TYPES) | |
2398 | if (obj && PySwigObject_Check(obj)) { | |
2399 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2400 | if (otype) { | |
2401 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2402 | type, otype); | |
2403 | return; | |
2404 | } | |
2405 | } else | |
2406 | #endif | |
2407 | { | |
2408 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2409 | if (otype) { | |
2410 | PyObject *str = PyObject_Str(obj); | |
2411 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2412 | if (cstr) { | |
2413 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2414 | type, otype, cstr); | |
2415 | } else { | |
2416 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2417 | type, otype); | |
2418 | } | |
2419 | Py_XDECREF(str); | |
2420 | return; | |
2421 | } | |
2422 | } | |
2423 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2424 | } else { | |
2425 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2426 | } | |
2427 | } | |
2428 | ||
2429 | ||
2430 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2431 | SWIGRUNTIME void * | |
2432 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2433 | void *result; | |
2434 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2435 | PyErr_Clear(); | |
2436 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2437 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2438 | SWIG_Python_ArgFail(argnum); | |
2439 | } | |
2440 | } | |
2441 | return result; | |
2442 | } | |
2443 | ||
2444 | ||
2445 | #ifdef __cplusplus | |
2446 | #if 0 | |
2447 | { /* cc-mode */ | |
2448 | #endif | |
2449 | } | |
2450 | #endif | |
2451 | ||
2452 | ||
2453 | ||
2454 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2455 | ||
2456 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2457 | ||
2458 | ||
2459 | ||
2460 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2461 | ||
2462 | #define SWIGTYPE_p_char swig_types[0] | |
2463 | #define SWIGTYPE_p_form_ops_t swig_types[1] | |
2464 | #define SWIGTYPE_p_int swig_types[2] | |
32fe5131 RD |
2465 | #define SWIGTYPE_p_unsigned_char swig_types[3] |
2466 | #define SWIGTYPE_p_unsigned_int swig_types[4] | |
2467 | #define SWIGTYPE_p_unsigned_long swig_types[5] | |
2468 | #define SWIGTYPE_p_wxANIHandler swig_types[6] | |
2469 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[7] | |
2470 | #define SWIGTYPE_p_wxActivateEvent swig_types[8] | |
2471 | #define SWIGTYPE_p_wxArrayInt swig_types[9] | |
2472 | #define SWIGTYPE_p_wxBMPHandler swig_types[10] | |
2473 | #define SWIGTYPE_p_wxBitmap swig_types[11] | |
2474 | #define SWIGTYPE_p_wxBoxSizer swig_types[12] | |
2475 | #define SWIGTYPE_p_wxCURHandler swig_types[13] | |
2476 | #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[14] | |
2477 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[15] | |
2478 | #define SWIGTYPE_p_wxCloseEvent swig_types[16] | |
2479 | #define SWIGTYPE_p_wxColour swig_types[17] | |
2480 | #define SWIGTYPE_p_wxColourData swig_types[18] | |
2481 | #define SWIGTYPE_p_wxColourDialog swig_types[19] | |
2482 | #define SWIGTYPE_p_wxCommandEvent swig_types[20] | |
2483 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[21] | |
2484 | #define SWIGTYPE_p_wxControl swig_types[22] | |
2485 | #define SWIGTYPE_p_wxControlWithItems swig_types[23] | |
2486 | #define SWIGTYPE_p_wxDC swig_types[24] | |
2487 | #define SWIGTYPE_p_wxDateEvent swig_types[25] | |
2488 | #define SWIGTYPE_p_wxDialog swig_types[26] | |
2489 | #define SWIGTYPE_p_wxDirDialog swig_types[27] | |
2490 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[28] | |
2491 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[29] | |
2492 | #define SWIGTYPE_p_wxDuplexMode swig_types[30] | |
2493 | #define SWIGTYPE_p_wxEraseEvent swig_types[31] | |
2494 | #define SWIGTYPE_p_wxEvent swig_types[32] | |
2495 | #define SWIGTYPE_p_wxEvtHandler swig_types[33] | |
2496 | #define SWIGTYPE_p_wxFSFile swig_types[34] | |
2497 | #define SWIGTYPE_p_wxFileDialog swig_types[35] | |
2498 | #define SWIGTYPE_p_wxFileSystem swig_types[36] | |
2499 | #define SWIGTYPE_p_wxFindDialogEvent swig_types[37] | |
2500 | #define SWIGTYPE_p_wxFindReplaceData swig_types[38] | |
2501 | #define SWIGTYPE_p_wxFindReplaceDialog swig_types[39] | |
2502 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[40] | |
2503 | #define SWIGTYPE_p_wxFocusEvent swig_types[41] | |
2504 | #define SWIGTYPE_p_wxFont swig_types[42] | |
2505 | #define SWIGTYPE_p_wxFontData swig_types[43] | |
2506 | #define SWIGTYPE_p_wxFontDialog swig_types[44] | |
2507 | #define SWIGTYPE_p_wxFrame swig_types[45] | |
2508 | #define SWIGTYPE_p_wxGBSizerItem swig_types[46] | |
2509 | #define SWIGTYPE_p_wxGIFHandler swig_types[47] | |
2510 | #define SWIGTYPE_p_wxGridBagSizer swig_types[48] | |
2511 | #define SWIGTYPE_p_wxGridSizer swig_types[49] | |
2512 | #define SWIGTYPE_p_wxICOHandler swig_types[50] | |
2513 | #define SWIGTYPE_p_wxIcon swig_types[51] | |
2514 | #define SWIGTYPE_p_wxIconBundle swig_types[52] | |
2515 | #define SWIGTYPE_p_wxIconizeEvent swig_types[53] | |
2516 | #define SWIGTYPE_p_wxIdleEvent swig_types[54] | |
2517 | #define SWIGTYPE_p_wxImage swig_types[55] | |
2518 | #define SWIGTYPE_p_wxImageHandler swig_types[56] | |
2519 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[57] | |
2520 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[58] | |
2521 | #define SWIGTYPE_p_wxJPEGHandler swig_types[59] | |
2522 | #define SWIGTYPE_p_wxKeyEvent swig_types[60] | |
2523 | #define SWIGTYPE_p_wxLayoutAlgorithm swig_types[61] | |
2524 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[62] | |
2525 | #define SWIGTYPE_p_wxMDIChildFrame swig_types[63] | |
2526 | #define SWIGTYPE_p_wxMDIClientWindow swig_types[64] | |
2527 | #define SWIGTYPE_p_wxMDIParentFrame swig_types[65] | |
2528 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[66] | |
2529 | #define SWIGTYPE_p_wxMenu swig_types[67] | |
2530 | #define SWIGTYPE_p_wxMenuBar swig_types[68] | |
2531 | #define SWIGTYPE_p_wxMenuEvent swig_types[69] | |
2532 | #define SWIGTYPE_p_wxMenuItem swig_types[70] | |
2533 | #define SWIGTYPE_p_wxMessageDialog swig_types[71] | |
2534 | #define SWIGTYPE_p_wxMiniFrame swig_types[72] | |
2535 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[73] | |
2536 | #define SWIGTYPE_p_wxMouseEvent swig_types[74] | |
2537 | #define SWIGTYPE_p_wxMoveEvent swig_types[75] | |
2538 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[76] | |
2539 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[77] | |
2540 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[78] | |
2541 | #define SWIGTYPE_p_wxNotifyEvent swig_types[79] | |
2542 | #define SWIGTYPE_p_wxObject swig_types[80] | |
2543 | #define SWIGTYPE_p_wxPCXHandler swig_types[81] | |
2544 | #define SWIGTYPE_p_wxPNGHandler swig_types[82] | |
2545 | #define SWIGTYPE_p_wxPNMHandler swig_types[83] | |
2546 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[84] | |
2547 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[85] | |
2548 | #define SWIGTYPE_p_wxPaintEvent swig_types[86] | |
2549 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[87] | |
2550 | #define SWIGTYPE_p_wxPanel swig_types[88] | |
2551 | #define SWIGTYPE_p_wxPaperSize swig_types[89] | |
2552 | #define SWIGTYPE_p_wxPasswordEntryDialog swig_types[90] | |
2553 | #define SWIGTYPE_p_wxPoint swig_types[91] | |
2554 | #define SWIGTYPE_p_wxPopupWindow swig_types[92] | |
2555 | #define SWIGTYPE_p_wxPreviewCanvas swig_types[93] | |
2556 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[94] | |
2557 | #define SWIGTYPE_p_wxPreviewFrame swig_types[95] | |
2558 | #define SWIGTYPE_p_wxPrintData swig_types[96] | |
2559 | #define SWIGTYPE_p_wxPrintDialog swig_types[97] | |
2560 | #define SWIGTYPE_p_wxPrintDialogData swig_types[98] | |
2561 | #define SWIGTYPE_p_wxPrintPreview swig_types[99] | |
2562 | #define SWIGTYPE_p_wxPrinter swig_types[100] | |
2563 | #define SWIGTYPE_p_wxProgressDialog swig_types[101] | |
2564 | #define SWIGTYPE_p_wxPyApp swig_types[102] | |
2565 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[103] | |
2566 | #define SWIGTYPE_p_wxPyEvent swig_types[104] | |
2567 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[105] | |
2568 | #define SWIGTYPE_p_wxPyImageHandler swig_types[106] | |
2569 | #define SWIGTYPE_p_wxPyPanel swig_types[107] | |
2570 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[108] | |
2571 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[109] | |
2572 | #define SWIGTYPE_p_wxPyPreviewFrame swig_types[110] | |
2573 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[111] | |
2574 | #define SWIGTYPE_p_wxPyPrintout swig_types[112] | |
2575 | #define SWIGTYPE_p_wxPyScrolledWindow swig_types[113] | |
2576 | #define SWIGTYPE_p_wxPySizer swig_types[114] | |
2577 | #define SWIGTYPE_p_wxPyTaskBarIcon swig_types[115] | |
2578 | #define SWIGTYPE_p_wxPyVListBox swig_types[116] | |
2579 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[117] | |
2580 | #define SWIGTYPE_p_wxPyValidator swig_types[118] | |
2581 | #define SWIGTYPE_p_wxPyWindow swig_types[119] | |
2582 | #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[120] | |
2583 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[121] | |
2584 | #define SWIGTYPE_p_wxRect swig_types[122] | |
2585 | #define SWIGTYPE_p_wxRegion swig_types[123] | |
2586 | #define SWIGTYPE_p_wxSashEvent swig_types[124] | |
2587 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[125] | |
2588 | #define SWIGTYPE_p_wxSashWindow swig_types[126] | |
2589 | #define SWIGTYPE_p_wxScrollEvent swig_types[127] | |
2590 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[128] | |
2591 | #define SWIGTYPE_p_wxScrolledWindow swig_types[129] | |
2592 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[130] | |
2593 | #define SWIGTYPE_p_wxShowEvent swig_types[131] | |
2594 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[132] | |
2595 | #define SWIGTYPE_p_wxSize swig_types[133] | |
2596 | #define SWIGTYPE_p_wxSizeEvent swig_types[134] | |
2597 | #define SWIGTYPE_p_wxSizer swig_types[135] | |
2598 | #define SWIGTYPE_p_wxSizerItem swig_types[136] | |
2599 | #define SWIGTYPE_p_wxSplashScreen swig_types[137] | |
2600 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[138] | |
2601 | #define SWIGTYPE_p_wxSplitterEvent swig_types[139] | |
2602 | #define SWIGTYPE_p_wxSplitterWindow swig_types[140] | |
2603 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[141] | |
2604 | #define SWIGTYPE_p_wxStatusBar swig_types[142] | |
2605 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[143] | |
2606 | #define SWIGTYPE_p_wxString swig_types[144] | |
2607 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[145] | |
2608 | #define SWIGTYPE_p_wxTIFFHandler swig_types[146] | |
2609 | #define SWIGTYPE_p_wxTaskBarIcon swig_types[147] | |
2610 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[148] | |
2611 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[149] | |
2612 | #define SWIGTYPE_p_wxTipWindow swig_types[150] | |
2613 | #define SWIGTYPE_p_wxToolBar swig_types[151] | |
2614 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[152] | |
2615 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[153] | |
2616 | #define SWIGTYPE_p_wxValidator swig_types[154] | |
2617 | #define SWIGTYPE_p_wxVisualAttributes swig_types[155] | |
2618 | #define SWIGTYPE_p_wxWindow swig_types[156] | |
2619 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[157] | |
2620 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[158] | |
2621 | #define SWIGTYPE_p_wxXPMHandler swig_types[159] | |
0085ce49 RD |
2622 | static swig_type_info *swig_types[161]; |
2623 | static swig_module_info swig_module = {swig_types, 160, 0, 0, 0, 0}; | |
32fe5131 RD |
2624 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2625 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
093d3ff1 RD |
2626 | |
2627 | /* -------- TYPES TABLE (END) -------- */ | |
2628 | ||
0085ce49 RD |
2629 | #if (PY_VERSION_HEX <= 0x02000000) |
2630 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2631 | # error "This python version requires to use swig with the '-classic' option" | |
2632 | # endif | |
2633 | #endif | |
2634 | #if (PY_VERSION_HEX <= 0x02020000) | |
2635 | # error "This python version requires to use swig with the '-nomodern' option" | |
2636 | #endif | |
2637 | #if (PY_VERSION_HEX <= 0x02020000) | |
2638 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2639 | #endif | |
2640 | #ifndef METH_O | |
2641 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2642 | #endif | |
093d3ff1 RD |
2643 | |
2644 | /*----------------------------------------------- | |
2645 | @(target):= _windows_.so | |
2646 | ------------------------------------------------*/ | |
2647 | #define SWIG_init init_windows_ | |
2648 | ||
2649 | #define SWIG_name "_windows_" | |
2650 | ||
0085ce49 | 2651 | #define SWIGVERSION 0x010329 |
093d3ff1 | 2652 | |
093d3ff1 | 2653 | |
0085ce49 RD |
2654 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
2655 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
093d3ff1 RD |
2656 | |
2657 | ||
0085ce49 | 2658 | #include <stdexcept> |
093d3ff1 RD |
2659 | |
2660 | ||
0085ce49 RD |
2661 | namespace swig { |
2662 | class PyObject_ptr { | |
2663 | protected: | |
2664 | PyObject *_obj; | |
093d3ff1 | 2665 | |
0085ce49 RD |
2666 | public: |
2667 | PyObject_ptr() :_obj(0) | |
2668 | { | |
2669 | } | |
093d3ff1 | 2670 | |
0085ce49 RD |
2671 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) |
2672 | { | |
2673 | Py_XINCREF(_obj); | |
093d3ff1 | 2674 | } |
0085ce49 RD |
2675 | |
2676 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2677 | { | |
2678 | if (initial_ref) Py_XINCREF(_obj); | |
093d3ff1 | 2679 | } |
0085ce49 RD |
2680 | |
2681 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2682 | { | |
2683 | Py_XINCREF(item._obj); | |
2684 | Py_XDECREF(_obj); | |
2685 | _obj = item._obj; | |
2686 | return *this; | |
2687 | } | |
2688 | ||
2689 | ~PyObject_ptr() | |
2690 | { | |
2691 | Py_XDECREF(_obj); | |
2692 | } | |
2693 | ||
2694 | operator PyObject *() const | |
2695 | { | |
2696 | return _obj; | |
2697 | } | |
2698 | ||
2699 | PyObject *operator->() const | |
2700 | { | |
2701 | return _obj; | |
2702 | } | |
2703 | }; | |
093d3ff1 RD |
2704 | } |
2705 | ||
2706 | ||
0085ce49 RD |
2707 | namespace swig { |
2708 | struct PyObject_var : PyObject_ptr { | |
2709 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2710 | ||
2711 | PyObject_var & operator = (PyObject* obj) | |
2712 | { | |
2713 | Py_XDECREF(_obj); | |
2714 | _obj = obj; | |
2715 | return *this; | |
093d3ff1 | 2716 | } |
0085ce49 | 2717 | }; |
093d3ff1 | 2718 | } |
093d3ff1 RD |
2719 | |
2720 | ||
0085ce49 RD |
2721 | #include "wx/wxPython/wxPython.h" |
2722 | #include "wx/wxPython/pyclasses.h" | |
2723 | ||
093d3ff1 | 2724 | |
0085ce49 RD |
2725 | static const wxString wxPyEmptyString(wxEmptyString); |
2726 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
093d3ff1 | 2727 | |
093d3ff1 | 2728 | |
0085ce49 RD |
2729 | |
2730 | #include <limits.h> | |
2731 | #ifndef LLONG_MIN | |
2732 | # define LLONG_MIN LONG_LONG_MIN | |
2733 | #endif | |
2734 | #ifndef LLONG_MAX | |
2735 | # define LLONG_MAX LONG_LONG_MAX | |
2736 | #endif | |
2737 | #ifndef ULLONG_MAX | |
2738 | # define ULLONG_MAX ULONG_LONG_MAX | |
2739 | #endif | |
2740 | ||
2741 | ||
2742 | SWIGINTERN int | |
2743 | SWIG_AsVal_long (PyObject* obj, long* val) | |
093d3ff1 | 2744 | { |
0085ce49 RD |
2745 | if (PyNumber_Check(obj)) { |
2746 | if (val) *val = PyInt_AsLong(obj); | |
2747 | return SWIG_OK; | |
2748 | } | |
2749 | return SWIG_TypeError; | |
093d3ff1 RD |
2750 | } |
2751 | ||
0085ce49 RD |
2752 | |
2753 | SWIGINTERN int | |
2754 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2755 | { |
0085ce49 RD |
2756 | long v; |
2757 | int res = SWIG_AsVal_long (obj, &v); | |
2758 | if (SWIG_IsOK(res)) { | |
2759 | if ((v < INT_MIN || v > INT_MAX)) { | |
2760 | return SWIG_OverflowError; | |
2761 | } else { | |
2762 | if (val) *val = static_cast< int >(v); | |
2763 | } | |
2764 | } | |
2765 | return res; | |
093d3ff1 RD |
2766 | } |
2767 | ||
2768 | ||
2769 | SWIGINTERN int | |
0085ce49 | 2770 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
093d3ff1 RD |
2771 | { |
2772 | if (obj == Py_True) { | |
2773 | if (val) *val = true; | |
0085ce49 RD |
2774 | return SWIG_OK; |
2775 | } else if (obj == Py_False) { | |
093d3ff1 | 2776 | if (val) *val = false; |
0085ce49 | 2777 | return SWIG_OK; |
093d3ff1 | 2778 | } else { |
0085ce49 RD |
2779 | long v = 0; |
2780 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2781 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2782 | return res; | |
093d3ff1 | 2783 | } |
093d3ff1 RD |
2784 | } |
2785 | ||
2786 | ||
0085ce49 | 2787 | #define SWIG_From_long PyInt_FromLong |
093d3ff1 RD |
2788 | |
2789 | ||
0085ce49 RD |
2790 | SWIGINTERNINLINE PyObject * |
2791 | SWIG_From_int (int value) | |
2792 | { | |
2793 | return SWIG_From_long (value); | |
2794 | } | |
093d3ff1 RD |
2795 | |
2796 | ||
2797 | SWIGINTERN int | |
0085ce49 | 2798 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
2799 | { |
2800 | if (PyNumber_Check(obj)) { | |
2801 | if (val) *val = PyFloat_AsDouble(obj); | |
0085ce49 | 2802 | return SWIG_OK; |
093d3ff1 | 2803 | } |
0085ce49 | 2804 | return SWIG_TypeError; |
093d3ff1 RD |
2805 | } |
2806 | ||
2807 | ||
0085ce49 | 2808 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 RD |
2809 | |
2810 | static const wxString wxPyFrameNameStr(wxFrameNameStr); | |
2811 | static const wxString wxPyDialogNameStr(wxDialogNameStr); | |
2812 | static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); | |
2813 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
0085ce49 RD |
2814 | SWIGINTERN void wxTopLevelWindow_MacSetMetalAppearance(wxTopLevelWindow *self,bool on){ /*wxPyRaiseNotImplemented();*/ } |
2815 | SWIGINTERN bool wxTopLevelWindow_MacGetMetalAppearance(wxTopLevelWindow const *self){ /*wxPyRaiseNotImplemented();*/ return false; } | |
093d3ff1 RD |
2816 | |
2817 | ||
0085ce49 | 2818 | SWIGINTERN wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ |
093d3ff1 RD |
2819 | wxRect r; |
2820 | self->GetFieldRect(i, r); | |
2821 | return r; | |
2822 | } | |
2823 | static const wxString wxPySplitterNameStr(wxT("splitter")); | |
2824 | static const wxString wxPySashNameStr(wxT("sashWindow")); | |
2825 | static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); | |
2826 | ||
2827 | #include <wx/popupwin.h> | |
2828 | ||
2829 | ||
2830 | class wxPyPopupTransientWindow : public wxPopupTransientWindow | |
2831 | { | |
2832 | public: | |
2833 | wxPyPopupTransientWindow() : wxPopupTransientWindow() {} | |
2834 | wxPyPopupTransientWindow(wxWindow* parent, int style = wxBORDER_NONE) | |
2835 | : wxPopupTransientWindow(parent, style) {} | |
2836 | ||
2837 | DEC_PYCALLBACK_BOOL_ME(ProcessLeftDown); | |
2838 | DEC_PYCALLBACK__(OnDismiss); | |
2839 | DEC_PYCALLBACK_BOOL_(CanDismiss); | |
2840 | PYPRIVATE; | |
2841 | }; | |
2842 | ||
2843 | ||
2844 | IMP_PYCALLBACK_BOOL_ME(wxPyPopupTransientWindow, wxPopupTransientWindow, ProcessLeftDown); | |
2845 | IMP_PYCALLBACK__(wxPyPopupTransientWindow, wxPopupTransientWindow, OnDismiss); | |
2846 | IMP_PYCALLBACK_BOOL_(wxPyPopupTransientWindow, wxPopupTransientWindow, CanDismiss); | |
2847 | ||
2848 | ||
2849 | #include <wx/tipwin.h> | |
2850 | ||
0085ce49 | 2851 | SWIGINTERN wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength=100,wxRect *rectBound=NULL){ |
093d3ff1 RD |
2852 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); |
2853 | } | |
2854 | ||
2855 | #include <wx/tipwin.h> | |
2856 | ||
2857 | ||
2858 | #include <wx/vscroll.h> | |
2859 | ||
2860 | ||
2861 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
2862 | { | |
32fe5131 | 2863 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow) |
093d3ff1 RD |
2864 | public: |
2865 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
2866 | ||
2867 | wxPyVScrolledWindow(wxWindow *parent, | |
2868 | wxWindowID id = wxID_ANY, | |
2869 | const wxPoint& pos = wxDefaultPosition, | |
2870 | const wxSize& size = wxDefaultSize, | |
2871 | long style = 0, | |
2872 | const wxString& name = wxPyPanelNameStr) | |
2873 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
2874 | {} | |
2875 | ||
2876 | // Overridable virtuals | |
2877 | ||
2878 | // this function must be overridden in the derived class and it should | |
2879 | // return the height of the given line in pixels | |
2880 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
2881 | ||
2882 | ||
2883 | // this function doesn't have to be overridden but it may be useful to do | |
2884 | // it if calculating the lines heights is a relatively expensive operation | |
2885 | // as it gives the user code a possibility to calculate several of them at | |
2886 | // once | |
2887 | // | |
2888 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
2889 | // shouldn't rely on the latter being called for all lines in the interval | |
2890 | // specified here. It is also possible that OnGetLineHeight() will be | |
2891 | // called for the lines outside of this interval, so this is really just a | |
2892 | // hint, not a promise. | |
2893 | // | |
2894 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
2895 | // usual | |
2896 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
2897 | ||
2898 | ||
2899 | // when the number of lines changes, we try to estimate the total height | |
2900 | // of all lines which is a rather expensive operation in terms of lines | |
2901 | // access, so if the user code may estimate the average height | |
2902 | // better/faster than we do, it should override this function to implement | |
2903 | // its own logic | |
2904 | // | |
2905 | // this function should return the best guess for the total height it may | |
2906 | // make | |
2907 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
2908 | ||
2909 | ||
2910 | // Also expose some other interesting protected methods | |
2911 | ||
2912 | ||
2913 | // find the index of the line we need to show at the top of the window such | |
2914 | // that the last (fully or partially) visible line is the given one | |
2915 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = false) | |
2916 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } | |
2917 | ||
2918 | // get the total height of the lines between lineMin (inclusive) and | |
2919 | // lineMax (exclusive) | |
2920 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
2921 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
d14a1e28 RD |
2922 | |
2923 | ||
2924 | PYPRIVATE; | |
2925 | }; | |
2926 | ||
2927 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
2928 | ||
2929 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
2930 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
2931 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
2932 | ||
2933 | ||
093d3ff1 | 2934 | SWIGINTERN int |
0085ce49 | 2935 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) |
15afbcd0 | 2936 | { |
c32bde28 RD |
2937 | long v = 0; |
2938 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
0085ce49 | 2939 | return SWIG_TypeError; |
15afbcd0 | 2940 | } |
c32bde28 RD |
2941 | else if (val) |
2942 | *val = (unsigned long)v; | |
0085ce49 | 2943 | return SWIG_OK; |
15afbcd0 RD |
2944 | } |
2945 | ||
2946 | ||
32fe5131 | 2947 | SWIGINTERNINLINE int |
0085ce49 | 2948 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
c32bde28 | 2949 | { |
0085ce49 RD |
2950 | unsigned long v; |
2951 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
2952 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
2953 | return res; | |
15afbcd0 RD |
2954 | } |
2955 | ||
2956 | ||
32fe5131 | 2957 | SWIGINTERNINLINE PyObject* |
0085ce49 | 2958 | SWIG_From_unsigned_SS_long (unsigned long value) |
994141e6 | 2959 | { |
15afbcd0 | 2960 | return (value > LONG_MAX) ? |
0085ce49 RD |
2961 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); |
2962 | } | |
2963 | ||
2964 | ||
2965 | SWIGINTERNINLINE PyObject * | |
2966 | SWIG_From_size_t (size_t value) | |
2967 | { | |
2968 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
994141e6 RD |
2969 | } |
2970 | ||
2971 | ||
d14a1e28 | 2972 | #include <wx/vlbox.h> |
d14a1e28 | 2973 | |
b2dc1044 | 2974 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); |
d14a1e28 RD |
2975 | |
2976 | class wxPyVListBox : public wxVListBox | |
2977 | { | |
32fe5131 | 2978 | DECLARE_ABSTRACT_CLASS(wxPyVListBox) |
d14a1e28 RD |
2979 | public: |
2980 | wxPyVListBox() : wxVListBox() {} | |
2981 | ||
2982 | wxPyVListBox(wxWindow *parent, | |
2983 | wxWindowID id = wxID_ANY, | |
2984 | const wxPoint& pos = wxDefaultPosition, | |
2985 | const wxSize& size = wxDefaultSize, | |
2986 | long style = 0, | |
2987 | const wxString& name = wxPyVListBoxNameStr) | |
2988 | : wxVListBox(parent, id, pos, size, style, name) | |
2989 | {} | |
2990 | ||
2991 | // Overridable virtuals | |
2992 | ||
2993 | // the derived class must implement this function to actually draw the item | |
2994 | // with the given index on the provided DC | |
2995 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
2996 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
2997 | ||
2998 | ||
2999 | // the derived class must implement this method to return the height of the | |
3000 | // specified item | |
3001 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
3002 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
3003 | ||
3004 | ||
3005 | // this method may be used to draw separators between the lines; note that | |
3006 | // the rectangle may be modified, typically to deflate it a bit before | |
3007 | // passing to OnDrawItem() | |
3008 | // | |
3009 | // the base class version doesn't do anything | |
3010 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
3011 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawSeparator); | |
3012 | ||
3013 | ||
3014 | // this method is used to draw the items background and, maybe, a border | |
3015 | // around it | |
3016 | // | |
3017 | // the base class version implements a reasonable default behaviour which | |
3018 | // consists in drawing the selected item with the standard background | |
3019 | // colour and drawing a border around the item if it is either selected or | |
3020 | // current | |
3021 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
3022 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
3023 | ||
3024 | ||
3025 | PYPRIVATE; | |
3026 | }; | |
3027 | ||
3028 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
3029 | ||
3030 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
3031 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
3032 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawSeparator); | |
3033 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); | |
3034 | ||
3035 | ||
0085ce49 | 3036 | SWIGINTERN PyObject *wxPyVListBox_GetFirstSelected(wxPyVListBox *self){ |
09c21d3b RD |
3037 | unsigned long cookie = 0; |
3038 | int selected = self->GetFirstSelected(cookie); | |
5a446332 | 3039 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
09c21d3b RD |
3040 | PyObject* tup = PyTuple_New(2); |
3041 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
3042 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
3043 | wxPyEndBlockThreads(blocked); | |
3044 | return tup; | |
3045 | } | |
0085ce49 | 3046 | SWIGINTERN PyObject *wxPyVListBox_GetNextSelected(wxPyVListBox *self,unsigned long cookie){ |
09c21d3b | 3047 | int selected = self->GetNextSelected(cookie); |
5a446332 | 3048 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
09c21d3b RD |
3049 | PyObject* tup = PyTuple_New(2); |
3050 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
3051 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
3052 | wxPyEndBlockThreads(blocked); | |
3053 | return tup; | |
3054 | } | |
d14a1e28 RD |
3055 | |
3056 | #include <wx/htmllbox.h> | |
3057 | ||
3058 | ||
3059 | class wxPyHtmlListBox : public wxHtmlListBox | |
3060 | { | |
32fe5131 | 3061 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox) |
d14a1e28 RD |
3062 | public: |
3063 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
3064 | ||
3065 | wxPyHtmlListBox(wxWindow *parent, | |
3066 | wxWindowID id = wxID_ANY, | |
3067 | const wxPoint& pos = wxDefaultPosition, | |
3068 | const wxSize& size = wxDefaultSize, | |
3069 | long style = 0, | |
3070 | const wxString& name = wxPyVListBoxNameStr) | |
3071 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
3072 | {} | |
3073 | ||
3074 | // Overridable virtuals | |
3075 | ||
3076 | // this method must be implemented in the derived class and should return | |
3077 | // the body (i.e. without <html>) of the HTML for the given item | |
3078 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
3079 | ||
3080 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
3081 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
3082 | ||
3083 | // TODO: | |
3084 | // // this method allows to customize the selection appearance: it may be used | |
3085 | // // to specify the colour of the text which normally has the given colour | |
3086 | // // colFg when it is inside the selection | |
3087 | // // | |
3088 | // // by default, the original colour is not used at all and all text has the | |
3089 | // // same (default for this system) colour inside selection | |
3090 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
3091 | ||
3092 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
3093 | // // background colour -- this is even more rarely used as you can change it | |
3094 | // // globally using SetSelectionBackground() | |
3095 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
3096 | ||
3097 | ||
3098 | PYPRIVATE; | |
3099 | }; | |
3100 | ||
3101 | ||
3102 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
3103 | ||
3104 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
3105 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
3106 | ||
3107 | ||
3108 | ||
3109 | ||
3110 | ||
ae8162c8 RD |
3111 | #ifndef wxHAS_TASK_BAR_ICON |
3112 | // implement dummy classes for platforms that don't have it | |
d14a1e28 RD |
3113 | |
3114 | class wxTaskBarIcon : public wxEvtHandler | |
3115 | { | |
3116 | public: | |
39f61e25 | 3117 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } |
d14a1e28 | 3118 | }; |
09c21d3b | 3119 | |
d14a1e28 RD |
3120 | |
3121 | class wxTaskBarIconEvent : public wxEvent | |
3122 | { | |
3123 | public: | |
3124 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
39f61e25 | 3125 | { wxPyRaiseNotImplemented(); } |
d14a1e28 | 3126 | virtual wxEvent* Clone() const { return NULL; } |
ae8162c8 RD |
3127 | bool IsOk() const { return false; } |
3128 | bool IsIconInstalled() const { return false; } | |
3129 | bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxPyEmptyString) { return false; } | |
3130 | bool RemoveIcon() { return false; } | |
3131 | bool PopupMenu(wxMenu *menu) { return false; } | |
d14a1e28 RD |
3132 | }; |
3133 | ||
3134 | enum { | |
3135 | wxEVT_TASKBAR_MOVE = 0, | |
3136 | wxEVT_TASKBAR_LEFT_DOWN = 0, | |
3137 | wxEVT_TASKBAR_LEFT_UP = 0, | |
3138 | wxEVT_TASKBAR_RIGHT_DOWN = 0, | |
3139 | wxEVT_TASKBAR_RIGHT_UP = 0, | |
3140 | wxEVT_TASKBAR_LEFT_DCLICK = 0, | |
3141 | wxEVT_TASKBAR_RIGHT_DCLICK = 0, | |
3142 | }; | |
09c21d3b RD |
3143 | |
3144 | ||
3145 | #else | |
5e483524 RD |
3146 | // Otherwise make a class that can virtualize CreatePopupMenu |
3147 | class wxPyTaskBarIcon : public wxTaskBarIcon | |
3148 | { | |
32fe5131 | 3149 | DECLARE_ABSTRACT_CLASS(wxPyTaskBarIcon) |
5e483524 RD |
3150 | public: |
3151 | wxPyTaskBarIcon() : wxTaskBarIcon() | |
3152 | {} | |
3153 | ||
3154 | wxMenu* CreatePopupMenu() { | |
3155 | wxMenu *rval = NULL; | |
3156 | bool found; | |
5a446332 | 3157 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
5e483524 RD |
3158 | if ((found = wxPyCBH_findCallback(m_myInst, "CreatePopupMenu"))) { |
3159 | PyObject* ro; | |
3160 | wxMenu* ptr; | |
3161 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
3162 | if (ro) { | |
3163 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxMenu"))) | |
3164 | rval = ptr; | |
3165 | Py_DECREF(ro); | |
3166 | } | |
3167 | } | |
3168 | wxPyEndBlockThreads(blocked); | |
3169 | if (! found) | |
3170 | rval = wxTaskBarIcon::CreatePopupMenu(); | |
3171 | return rval; | |
3172 | } | |
3173 | ||
3174 | PYPRIVATE; | |
3175 | }; | |
3176 | ||
3177 | IMPLEMENT_ABSTRACT_CLASS(wxPyTaskBarIcon, wxTaskBarIcon); | |
09c21d3b | 3178 | |
d14a1e28 RD |
3179 | #endif |
3180 | ||
0085ce49 | 3181 | SWIGINTERN void wxPyTaskBarIcon_Destroy(wxPyTaskBarIcon *self){ |
74a57fcd | 3182 | self->RemoveIcon(); |
5e483524 | 3183 | delete self; |
74a57fcd | 3184 | } |
b2dc1044 RD |
3185 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
3186 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
3187 | static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); | |
3188 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
3189 | static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); | |
3190 | static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); | |
0085ce49 | 3191 | SWIGINTERN PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ |
d14a1e28 RD |
3192 | wxArrayString arr; |
3193 | self->GetFilenames(arr); | |
3194 | return wxArrayString2PyList_helper(arr); | |
3195 | } | |
0085ce49 | 3196 | SWIGINTERN PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ |
d14a1e28 RD |
3197 | wxArrayString arr; |
3198 | self->GetPaths(arr); | |
3199 | return wxArrayString2PyList_helper(arr); | |
3200 | } | |
0085ce49 | 3201 | SWIGINTERN PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ |
d14a1e28 RD |
3202 | return wxArrayInt2PyList_helper(self->GetSelections()); |
3203 | } | |
0085ce49 | 3204 | 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 |
3205 | return new wxSingleChoiceDialog(parent, message, caption, |
3206 | choices, choices_array, NULL, style, pos); | |
3207 | } | |
d3b6e4ff | 3208 | static const wxString wxPyGetPasswordFromUserPromptStr(wxGetPasswordFromUserPromptStr); |
d14a1e28 RD |
3209 | |
3210 | #include <wx/mdi.h> | |
3211 | ||
3212 | // C++ version of Python aware wxWindow | |
3213 | class wxPyWindow : public wxWindow | |
3214 | { | |
3215 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
3216 | public: | |
3217 | wxPyWindow() : wxWindow() {} | |
3218 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
3219 | const wxPoint& pos = wxDefaultPosition, | |
3220 | const wxSize& size = wxDefaultSize, | |
3221 | long style = 0, | |
3222 | const wxString& name = wxPyPanelNameStr) | |
3223 | : wxWindow(parent, id, pos, size, style, name) {} | |
3224 | ||
db3e571a | 3225 | void SetBestSize(const wxSize& size) { wxWindow::SetBestSize(size); } |
d14a1e28 | 3226 | |
976dbff5 RD |
3227 | bool DoEraseBackground(wxDC* dc) { |
3228 | #ifdef __WXMSW__ | |
3229 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3230 | #else | |
3231 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3232 | dc->Clear(); | |
3233 | return true; | |
3234 | #endif | |
3235 | } | |
3236 | ||
d14a1e28 RD |
3237 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); |
3238 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3239 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3240 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3241 | ||
3242 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3243 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3244 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3245 | ||
3246 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3247 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3248 | ||
3249 | DEC_PYCALLBACK__(InitDialog); | |
3250 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3251 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3252 | DEC_PYCALLBACK_BOOL_(Validate); | |
3253 | ||
3254 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3255 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3256 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3257 | ||
3258 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3259 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3260 | ||
db3e571a | 3261 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
db3e571a | 3262 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 3263 | |
51b83b37 RD |
3264 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3265 | ||
8d38bd1d RD |
3266 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3267 | ||
d14a1e28 RD |
3268 | PYPRIVATE; |
3269 | }; | |
3270 | ||
3271 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
3272 | ||
3273 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
3274 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
3275 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
3276 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
3277 | ||
3278 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
3279 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
3280 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
3281 | ||
3282 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
3283 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
3284 | ||
3285 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
3286 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
3287 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
3288 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
3289 | ||
3290 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
3291 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
3292 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
3293 | ||
3294 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); | |
3295 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); | |
3296 | ||
db3e571a | 3297 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours); |
db3e571a | 3298 | IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes); |
51b83b37 RD |
3299 | |
3300 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, HasTransparentBackground); | |
d14a1e28 | 3301 | |
8d38bd1d RD |
3302 | IMP_PYCALLBACK_VOID_(wxPyWindow, wxWindow, OnInternalIdle); |
3303 | ||
d14a1e28 RD |
3304 | // C++ version of Python aware wxPanel |
3305 | class wxPyPanel : public wxPanel | |
3306 | { | |
3307 | DECLARE_DYNAMIC_CLASS(wxPyPanel) | |
3308 | public: | |
3309 | wxPyPanel() : wxPanel() {} | |
3310 | wxPyPanel(wxWindow* parent, const wxWindowID id, | |
3311 | const wxPoint& pos = wxDefaultPosition, | |
3312 | const wxSize& size = wxDefaultSize, | |
3313 | long style = 0, | |
3314 | const wxString& name = wxPyPanelNameStr) | |
3315 | : wxPanel(parent, id, pos, size, style, name) {} | |
3316 | ||
db3e571a | 3317 | void SetBestSize(const wxSize& size) { wxPanel::SetBestSize(size); } |
976dbff5 RD |
3318 | bool DoEraseBackground(wxDC* dc) { |
3319 | #ifdef __WXMSW__ | |
3320 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3321 | #else | |
3322 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3323 | dc->Clear(); | |
3324 | return true; | |
3325 | #endif | |
3326 | } | |
db3e571a | 3327 | |
d14a1e28 RD |
3328 | |
3329 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
3330 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3331 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3332 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3333 | ||
3334 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3335 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3336 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3337 | ||
3338 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3339 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3340 | ||
3341 | DEC_PYCALLBACK__(InitDialog); | |
3342 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3343 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3344 | DEC_PYCALLBACK_BOOL_(Validate); | |
3345 | ||
3346 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3347 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3348 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3349 | ||
3350 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3351 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3352 | ||
db3e571a | 3353 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
db3e571a | 3354 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 3355 | |
51b83b37 RD |
3356 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3357 | ||
8d38bd1d RD |
3358 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3359 | ||
d14a1e28 RD |
3360 | PYPRIVATE; |
3361 | }; | |
3362 | ||
3363 | IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); | |
3364 | ||
3365 | IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); | |
3366 | IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); | |
3367 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); | |
3368 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); | |
3369 | ||
3370 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); | |
3371 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); | |
3372 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); | |
3373 | ||
3374 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); | |
3375 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); | |
3376 | ||
3377 | IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); | |
3378 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); | |
3379 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); | |
3380 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); | |
3381 | ||
3382 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); | |
3383 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); | |
3384 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); | |
3385 | ||
3386 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); | |
3387 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); | |
3388 | ||
db3e571a | 3389 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours); |
db3e571a | 3390 | IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes); |
1cb4a8aa | 3391 | |
51b83b37 RD |
3392 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, HasTransparentBackground); |
3393 | ||
8d38bd1d RD |
3394 | IMP_PYCALLBACK_VOID_(wxPyPanel, wxPanel, OnInternalIdle); |
3395 | ||
1cb4a8aa RD |
3396 | // C++ version of Python aware wxScrolledWindow |
3397 | class wxPyScrolledWindow : public wxScrolledWindow | |
3398 | { | |
3399 | DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow) | |
3400 | public: | |
3401 | wxPyScrolledWindow() : wxScrolledWindow() {} | |
3402 | wxPyScrolledWindow(wxWindow* parent, const wxWindowID id, | |
3403 | const wxPoint& pos = wxDefaultPosition, | |
3404 | const wxSize& size = wxDefaultSize, | |
3405 | long style = 0, | |
3406 | const wxString& name = wxPyPanelNameStr) | |
3407 | : wxScrolledWindow(parent, id, pos, size, style, name) {} | |
3408 | ||
db3e571a | 3409 | void SetBestSize(const wxSize& size) { wxScrolledWindow::SetBestSize(size); } |
976dbff5 RD |
3410 | bool DoEraseBackground(wxDC* dc) { |
3411 | #ifdef __WXMSW__ | |
3412 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3413 | #else | |
3414 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3415 | dc->Clear(); | |
3416 | return true; | |
3417 | #endif | |
3418 | } | |
1cb4a8aa RD |
3419 | |
3420 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
3421 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3422 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3423 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3424 | ||
3425 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3426 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3427 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3428 | ||
3429 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3430 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3431 | ||
3432 | DEC_PYCALLBACK__(InitDialog); | |
3433 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3434 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3435 | DEC_PYCALLBACK_BOOL_(Validate); | |
3436 | ||
3437 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3438 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3439 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3440 | ||
3441 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3442 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3443 | ||
db3e571a | 3444 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
db3e571a | 3445 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
1cb4a8aa | 3446 | |
51b83b37 RD |
3447 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3448 | ||
8d38bd1d RD |
3449 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3450 | ||
1cb4a8aa RD |
3451 | PYPRIVATE; |
3452 | }; | |
3453 | ||
3454 | IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow); | |
3455 | ||
3456 | IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow); | |
3457 | IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize); | |
3458 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize); | |
3459 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize); | |
3460 | ||
3461 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize); | |
3462 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize); | |
3463 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition); | |
3464 | ||
3465 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize); | |
3466 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize); | |
3467 | ||
3468 | IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog); | |
3469 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow); | |
3470 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow); | |
3471 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate); | |
3472 | ||
3473 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus); | |
3474 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard); | |
3475 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize); | |
3476 | ||
3477 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild); | |
3478 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild); | |
3479 | ||
db3e571a | 3480 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours); |
db3e571a RD |
3481 | IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes); |
3482 | ||
51b83b37 | 3483 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, HasTransparentBackground); |
d14a1e28 | 3484 | |
8d38bd1d RD |
3485 | IMP_PYCALLBACK_VOID_(wxPyScrolledWindow, wxScrolledWindow, OnInternalIdle); |
3486 | ||
d14a1e28 RD |
3487 | |
3488 | #include "wx/wxPython/printfw.h" | |
3489 | ||
d14a1e28 | 3490 | |
33b885b9 RD |
3491 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); |
3492 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
0085ce49 | 3493 | SWIGINTERN PyObject *wxPrintData_GetPrivData(wxPrintData *self){ |
b9d6a5f3 | 3494 | PyObject* data; |
5a446332 | 3495 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
b9d6a5f3 RD |
3496 | data = PyString_FromStringAndSize(self->GetPrivData(), |
3497 | self->GetPrivDataLen()); | |
3498 | wxPyEndBlockThreads(blocked); | |
3499 | return data; | |
3500 | } | |
0085ce49 | 3501 | SWIGINTERN void wxPrintData_SetPrivData(wxPrintData *self,PyObject *data){ |
b9d6a5f3 RD |
3502 | if (! PyString_Check(data)) { |
3503 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, | |
3504 | "Expected string object")); | |
3505 | return /* NULL */ ; | |
3506 | } | |
3507 | ||
5a446332 | 3508 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
b9d6a5f3 RD |
3509 | self->SetPrivData(PyString_AS_STRING(data), PyString_GET_SIZE(data)); |
3510 | wxPyEndBlockThreads(blocked); | |
3511 | } | |
d14a1e28 RD |
3512 | |
3513 | ||
a68b8331 | 3514 | IMPLEMENT_ABSTRACT_CLASS(wxPyPrintout, wxPrintout); |
d14a1e28 RD |
3515 | |
3516 | // Since this one would be tough and ugly to do with the Macros... | |
3517 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
ae8162c8 | 3518 | bool hadErr = false; |
d14a1e28 RD |
3519 | bool found; |
3520 | ||
5a446332 | 3521 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
3522 | if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { |
3523 | PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
3524 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
3525 | PyObject* val; | |
3526 | ||
3527 | val = PyTuple_GetItem(result, 0); | |
3528 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
ae8162c8 | 3529 | else hadErr = true; |
d14a1e28 RD |
3530 | |
3531 | val = PyTuple_GetItem(result, 1); | |
3532 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
ae8162c8 | 3533 | else hadErr = true; |
d14a1e28 RD |
3534 | |
3535 | val = PyTuple_GetItem(result, 2); | |
3536 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
ae8162c8 | 3537 | else hadErr = true; |
d14a1e28 RD |
3538 | |
3539 | val = PyTuple_GetItem(result, 3); | |
3540 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
ae8162c8 | 3541 | else hadErr = true; |
d14a1e28 RD |
3542 | } |
3543 | else | |
ae8162c8 | 3544 | hadErr = true; |
d14a1e28 RD |
3545 | |
3546 | if (hadErr) { | |
3547 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
3548 | PyErr_Print(); | |
3549 | } | |
3550 | Py_DECREF(result); | |
3551 | } | |
4f89f6a3 | 3552 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3553 | if (! found) |
3554 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
3555 | } | |
3556 | ||
d14a1e28 RD |
3557 | |
3558 | ||
3559 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
3560 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
3561 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
3562 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
3563 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
3564 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
3565 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
3566 | ||
3567 | ||
3568 | ||
3569 | ||
3570 | ||
ae8162c8 | 3571 | #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ |
c26d9ab4 | 3572 | bool CBNAME(wxPreviewCanvas* a, wxDC& b) |
d14a1e28 RD |
3573 | |
3574 | ||
ae8162c8 RD |
3575 | #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ |
3576 | bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
3577 | bool rval=false; \ | |
3578 | bool found; \ | |
32fe5131 | 3579 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); \ |
ae8162c8 RD |
3580 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
3581 | PyObject* win = wxPyMake_wxObject(a,false); \ | |
3582 | PyObject* dc = wxPyMake_wxObject(&b,false); \ | |
3583 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc)); \ | |
3584 | Py_DECREF(win); \ | |
3585 | Py_DECREF(dc); \ | |
3586 | } \ | |
3587 | wxPyEndBlockThreads(blocked); \ | |
3588 | if (! found) \ | |
3589 | rval = PCLASS::CBNAME(a, b); \ | |
3590 | return rval; \ | |
c26d9ab4 | 3591 | } |
d14a1e28 RD |
3592 | |
3593 | ||
3594 | ||
3595 | ||
3596 | class wxPyPrintPreview : public wxPrintPreview | |
3597 | { | |
3598 | DECLARE_CLASS(wxPyPrintPreview) | |
3599 | public: | |
4276dc52 RD |
3600 | wxPyPrintPreview(wxPyPrintout* printout, |
3601 | wxPyPrintout* printoutForPrinting, | |
3602 | wxPrintDialogData* data=NULL) | |
3603 | : wxPrintPreview(printout, printoutForPrinting, data) | |
3604 | {} | |
d14a1e28 RD |
3605 | wxPyPrintPreview(wxPyPrintout* printout, |
3606 | wxPyPrintout* printoutForPrinting, | |
32fe5131 | 3607 | wxPrintData* data) |
d14a1e28 RD |
3608 | : wxPrintPreview(printout, printoutForPrinting, data) |
3609 | {} | |
3610 | ||
3611 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
3612 | DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); | |
3613 | DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); | |
3614 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
3615 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
3616 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
3617 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
3618 | ||
3619 | PYPRIVATE; | |
3620 | }; | |
3621 | ||
3622 | // Stupid renamed classes... Fix this in 2.5... | |
3623 | #if defined(__WXMSW__) | |
3624 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
3625 | #elif defined(__WXMAC__) | |
3626 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
3627 | #else | |
3628 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
3629 | #endif | |
3630 | ||
3631 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
3632 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
3633 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
3634 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
3635 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
3636 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
3637 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
3638 | ||
3639 | ||
3640 | class wxPyPreviewFrame : public wxPreviewFrame | |
3641 | { | |
32fe5131 | 3642 | DECLARE_CLASS(wxPyPreviewFrame) |
d14a1e28 RD |
3643 | public: |
3644 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
3645 | const wxString& title, | |
3646 | const wxPoint& pos = wxDefaultPosition, | |
3647 | const wxSize& size = wxDefaultSize, | |
3648 | long style = wxDEFAULT_FRAME_STYLE, | |
3649 | const wxString& name = wxPyFrameNameStr) | |
3650 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
3651 | {} | |
3652 | ||
3653 | void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } | |
3654 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
3655 | ||
3656 | DEC_PYCALLBACK_VOID_(Initialize); | |
3657 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
3658 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
3659 | ||
3660 | PYPRIVATE; | |
3661 | }; | |
3662 | ||
3663 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
3664 | ||
3665 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
3666 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
3667 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
3668 | ||
3669 | ||
3670 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
3671 | { | |
32fe5131 | 3672 | DECLARE_CLASS(wxPyPreviewControlBar) |
d14a1e28 RD |
3673 | public: |
3674 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
3675 | long buttons, | |
3676 | wxWindow *parent, | |
3677 | const wxPoint& pos = wxDefaultPosition, | |
3678 | const wxSize& size = wxDefaultSize, | |
3679 | long style = 0, | |
3680 | const wxString& name = wxPyPanelNameStr) | |
3681 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
3682 | {} | |
3683 | ||
3684 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
3685 | ||
3686 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
3687 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
3688 | ||
3689 | PYPRIVATE; | |
3690 | }; | |
3691 | ||
3692 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
3693 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
3694 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
3695 | ||
3696 | #ifdef __cplusplus | |
3697 | extern "C" { | |
3698 | #endif | |
0085ce49 RD |
3699 | SWIGINTERN PyObject *_wrap_new_Panel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3700 | PyObject *resultobj = 0; | |
3701 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3702 | int arg2 = (int) (int)-1 ; | |
3703 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
3704 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3705 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3706 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
3707 | long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
3708 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
3709 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
3710 | wxPanel *result = 0 ; | |
3711 | void *argp1 = 0 ; | |
3712 | int res1 = 0 ; | |
3713 | int val2 ; | |
3714 | int ecode2 = 0 ; | |
3715 | wxPoint temp3 ; | |
3716 | wxSize temp4 ; | |
3717 | long val5 ; | |
3718 | int ecode5 = 0 ; | |
3719 | bool temp6 = false ; | |
3720 | PyObject * obj0 = 0 ; | |
3721 | PyObject * obj1 = 0 ; | |
3722 | PyObject * obj2 = 0 ; | |
3723 | PyObject * obj3 = 0 ; | |
3724 | PyObject * obj4 = 0 ; | |
3725 | PyObject * obj5 = 0 ; | |
3726 | char * kwnames[] = { | |
3727 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3728 | }; | |
3729 | ||
3730 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
3731 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3732 | if (!SWIG_IsOK(res1)) { | |
3733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Panel" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3734 | } | |
3735 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3736 | if (obj1) { | |
3737 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3738 | if (!SWIG_IsOK(ecode2)) { | |
3739 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Panel" "', expected argument " "2"" of type '" "int""'"); | |
3740 | } | |
3741 | arg2 = static_cast< int >(val2); | |
3742 | } | |
3743 | if (obj2) { | |
d14a1e28 | 3744 | { |
0085ce49 RD |
3745 | arg3 = &temp3; |
3746 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 3747 | } |
0085ce49 RD |
3748 | } |
3749 | if (obj3) { | |
d14a1e28 | 3750 | { |
0085ce49 RD |
3751 | arg4 = &temp4; |
3752 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 3753 | } |
0085ce49 RD |
3754 | } |
3755 | if (obj4) { | |
3756 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
3757 | if (!SWIG_IsOK(ecode5)) { | |
3758 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Panel" "', expected argument " "5"" of type '" "long""'"); | |
3759 | } | |
3760 | arg5 = static_cast< long >(val5); | |
3761 | } | |
3762 | if (obj5) { | |
d14a1e28 | 3763 | { |
0085ce49 RD |
3764 | arg6 = wxString_in_helper(obj5); |
3765 | if (arg6 == NULL) SWIG_fail; | |
3766 | temp6 = true; | |
3767 | } | |
3768 | } | |
3769 | { | |
3770 | if (!wxPyCheckForApp()) SWIG_fail; | |
3771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3772 | result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
3773 | wxPyEndAllowThreads(__tstate); | |
3774 | if (PyErr_Occurred()) SWIG_fail; | |
3775 | } | |
3776 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPanel, SWIG_POINTER_NEW | 0 ); | |
3777 | { | |
3778 | if (temp6) | |
3779 | delete arg6; | |
3780 | } | |
3781 | return resultobj; | |
3782 | fail: | |
3783 | { | |
3784 | if (temp6) | |
3785 | delete arg6; | |
3786 | } | |
3787 | return NULL; | |
d14a1e28 RD |
3788 | } |
3789 | ||
3790 | ||
0085ce49 RD |
3791 | SWIGINTERN PyObject *_wrap_new_PrePanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3792 | PyObject *resultobj = 0; | |
3793 | wxPanel *result = 0 ; | |
3794 | ||
3795 | if (!SWIG_Python_UnpackTuple(args,"new_PrePanel",0,0,0)) SWIG_fail; | |
3796 | { | |
3797 | if (!wxPyCheckForApp()) SWIG_fail; | |
3798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3799 | result = (wxPanel *)new wxPanel(); | |
3800 | wxPyEndAllowThreads(__tstate); | |
3801 | if (PyErr_Occurred()) SWIG_fail; | |
3802 | } | |
3803 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPanel, SWIG_POINTER_OWN | 0 ); | |
3804 | return resultobj; | |
3805 | fail: | |
3806 | return NULL; | |
3807 | } | |
3808 | ||
3809 | ||
3810 | SWIGINTERN PyObject *_wrap_Panel_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3811 | PyObject *resultobj = 0; | |
3812 | wxPanel *arg1 = (wxPanel *) 0 ; | |
3813 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3814 | int arg3 = (int) (int)-1 ; | |
3815 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3816 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3817 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3818 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3819 | long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
3820 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
3821 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3822 | bool result; | |
3823 | void *argp1 = 0 ; | |
3824 | int res1 = 0 ; | |
3825 | void *argp2 = 0 ; | |
3826 | int res2 = 0 ; | |
3827 | int val3 ; | |
3828 | int ecode3 = 0 ; | |
3829 | wxPoint temp4 ; | |
3830 | wxSize temp5 ; | |
3831 | long val6 ; | |
3832 | int ecode6 = 0 ; | |
3833 | bool temp7 = false ; | |
3834 | PyObject * obj0 = 0 ; | |
3835 | PyObject * obj1 = 0 ; | |
3836 | PyObject * obj2 = 0 ; | |
3837 | PyObject * obj3 = 0 ; | |
3838 | PyObject * obj4 = 0 ; | |
3839 | PyObject * obj5 = 0 ; | |
3840 | PyObject * obj6 = 0 ; | |
3841 | char * kwnames[] = { | |
3842 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3843 | }; | |
3844 | ||
3845 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
3846 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPanel, 0 | 0 ); | |
3847 | if (!SWIG_IsOK(res1)) { | |
3848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Panel_Create" "', expected argument " "1"" of type '" "wxPanel *""'"); | |
3849 | } | |
3850 | arg1 = reinterpret_cast< wxPanel * >(argp1); | |
3851 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3852 | if (!SWIG_IsOK(res2)) { | |
3853 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Panel_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3854 | } | |
3855 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3856 | if (obj2) { | |
3857 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3858 | if (!SWIG_IsOK(ecode3)) { | |
3859 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Panel_Create" "', expected argument " "3"" of type '" "int""'"); | |
3860 | } | |
3861 | arg3 = static_cast< int >(val3); | |
3862 | } | |
3863 | if (obj3) { | |
4f89f6a3 | 3864 | { |
0085ce49 RD |
3865 | arg4 = &temp4; |
3866 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 3867 | } |
0085ce49 RD |
3868 | } |
3869 | if (obj4) { | |
d14a1e28 | 3870 | { |
0085ce49 RD |
3871 | arg5 = &temp5; |
3872 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 3873 | } |
0085ce49 RD |
3874 | } |
3875 | if (obj5) { | |
3876 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3877 | if (!SWIG_IsOK(ecode6)) { | |
3878 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Panel_Create" "', expected argument " "6"" of type '" "long""'"); | |
3879 | } | |
3880 | arg6 = static_cast< long >(val6); | |
3881 | } | |
3882 | if (obj6) { | |
d14a1e28 | 3883 | { |
0085ce49 RD |
3884 | arg7 = wxString_in_helper(obj6); |
3885 | if (arg7 == NULL) SWIG_fail; | |
3886 | temp7 = true; | |
d14a1e28 | 3887 | } |
0085ce49 RD |
3888 | } |
3889 | { | |
3890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3891 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3892 | wxPyEndAllowThreads(__tstate); | |
3893 | if (PyErr_Occurred()) SWIG_fail; | |
3894 | } | |
3895 | { | |
3896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3897 | } | |
3898 | { | |
3899 | if (temp7) | |
3900 | delete arg7; | |
3901 | } | |
3902 | return resultobj; | |
3903 | fail: | |
3904 | { | |
3905 | if (temp7) | |
3906 | delete arg7; | |
3907 | } | |
3908 | return NULL; | |
5cbf236d RD |
3909 | } |
3910 | ||
3911 | ||
0085ce49 RD |
3912 | SWIGINTERN PyObject *_wrap_Panel_SetFocusIgnoringChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3913 | PyObject *resultobj = 0; | |
3914 | wxPanel *arg1 = (wxPanel *) 0 ; | |
3915 | void *argp1 = 0 ; | |
3916 | int res1 = 0 ; | |
3917 | PyObject *swig_obj[1] ; | |
3918 | ||
3919 | if (!args) SWIG_fail; | |
3920 | swig_obj[0] = args; | |
3921 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPanel, 0 | 0 ); | |
3922 | if (!SWIG_IsOK(res1)) { | |
3923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Panel_SetFocusIgnoringChildren" "', expected argument " "1"" of type '" "wxPanel *""'"); | |
3924 | } | |
3925 | arg1 = reinterpret_cast< wxPanel * >(argp1); | |
3926 | { | |
3927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3928 | (arg1)->SetFocusIgnoringChildren(); | |
3929 | wxPyEndAllowThreads(__tstate); | |
3930 | if (PyErr_Occurred()) SWIG_fail; | |
3931 | } | |
3932 | resultobj = SWIG_Py_Void(); | |
3933 | return resultobj; | |
3934 | fail: | |
3935 | return NULL; | |
3936 | } | |
3937 | ||
3938 | ||
3939 | SWIGINTERN PyObject *_wrap_Panel_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3940 | PyObject *resultobj = 0; | |
3941 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
3942 | SwigValueWrapper<wxVisualAttributes > result; | |
3943 | int val1 ; | |
3944 | int ecode1 = 0 ; | |
3945 | PyObject * obj0 = 0 ; | |
3946 | char * kwnames[] = { | |
3947 | (char *) "variant", NULL | |
3948 | }; | |
3949 | ||
3950 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Panel_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
3951 | if (obj0) { | |
3952 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
3953 | if (!SWIG_IsOK(ecode1)) { | |
3954 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Panel_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
3955 | } | |
3956 | arg1 = static_cast< wxWindowVariant >(val1); | |
3957 | } | |
3958 | { | |
3959 | if (!wxPyCheckForApp()) SWIG_fail; | |
3960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3961 | result = wxPanel::GetClassDefaultAttributes(arg1); | |
3962 | wxPyEndAllowThreads(__tstate); | |
3963 | if (PyErr_Occurred()) SWIG_fail; | |
3964 | } | |
3965 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
3966 | return resultobj; | |
3967 | fail: | |
3968 | return NULL; | |
3969 | } | |
3970 | ||
3971 | ||
3972 | SWIGINTERN PyObject *Panel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3973 | PyObject *obj; | |
3974 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3975 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPanel, SWIG_NewClientData(obj)); | |
3976 | return SWIG_Py_Void(); | |
3977 | } | |
3978 | ||
3979 | SWIGINTERN PyObject *Panel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3980 | return SWIG_Python_InitShadowInstance(args); | |
3981 | } | |
3982 | ||
3983 | SWIGINTERN PyObject *_wrap_new_ScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3984 | PyObject *resultobj = 0; | |
3985 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3986 | int arg2 = (int) (int)-1 ; | |
3987 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
3988 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3989 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3990 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
3991 | long arg5 = (long) wxHSCROLL|wxVSCROLL ; | |
3992 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
3993 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
3994 | wxScrolledWindow *result = 0 ; | |
3995 | void *argp1 = 0 ; | |
3996 | int res1 = 0 ; | |
3997 | int val2 ; | |
3998 | int ecode2 = 0 ; | |
3999 | wxPoint temp3 ; | |
4000 | wxSize temp4 ; | |
4001 | long val5 ; | |
4002 | int ecode5 = 0 ; | |
4003 | bool temp6 = false ; | |
4004 | PyObject * obj0 = 0 ; | |
4005 | PyObject * obj1 = 0 ; | |
4006 | PyObject * obj2 = 0 ; | |
4007 | PyObject * obj3 = 0 ; | |
4008 | PyObject * obj4 = 0 ; | |
4009 | PyObject * obj5 = 0 ; | |
4010 | char * kwnames[] = { | |
4011 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4012 | }; | |
4013 | ||
4014 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
4015 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4016 | if (!SWIG_IsOK(res1)) { | |
4017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
4018 | } | |
4019 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
4020 | if (obj1) { | |
4021 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4022 | if (!SWIG_IsOK(ecode2)) { | |
4023 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
4024 | } | |
4025 | arg2 = static_cast< int >(val2); | |
4026 | } | |
4027 | if (obj2) { | |
5cbf236d | 4028 | { |
0085ce49 RD |
4029 | arg3 = &temp3; |
4030 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22bfe96c | 4031 | } |
0085ce49 RD |
4032 | } |
4033 | if (obj3) { | |
22bfe96c | 4034 | { |
0085ce49 RD |
4035 | arg4 = &temp4; |
4036 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22bfe96c | 4037 | } |
0085ce49 RD |
4038 | } |
4039 | if (obj4) { | |
4040 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
4041 | if (!SWIG_IsOK(ecode5)) { | |
4042 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
4043 | } | |
4044 | arg5 = static_cast< long >(val5); | |
4045 | } | |
4046 | if (obj5) { | |
22bfe96c | 4047 | { |
0085ce49 RD |
4048 | arg6 = wxString_in_helper(obj5); |
4049 | if (arg6 == NULL) SWIG_fail; | |
4050 | temp6 = true; | |
22bfe96c | 4051 | } |
0085ce49 RD |
4052 | } |
4053 | { | |
4054 | if (!wxPyCheckForApp()) SWIG_fail; | |
4055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4056 | result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4057 | wxPyEndAllowThreads(__tstate); | |
4058 | if (PyErr_Occurred()) SWIG_fail; | |
4059 | } | |
4060 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
4061 | { | |
4062 | if (temp6) | |
4063 | delete arg6; | |
4064 | } | |
4065 | return resultobj; | |
4066 | fail: | |
4067 | { | |
4068 | if (temp6) | |
4069 | delete arg6; | |
4070 | } | |
4071 | return NULL; | |
22bfe96c RD |
4072 | } |
4073 | ||
4074 | ||
0085ce49 RD |
4075 | SWIGINTERN PyObject *_wrap_new_PreScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4076 | PyObject *resultobj = 0; | |
4077 | wxScrolledWindow *result = 0 ; | |
4078 | ||
4079 | if (!SWIG_Python_UnpackTuple(args,"new_PreScrolledWindow",0,0,0)) SWIG_fail; | |
4080 | { | |
4081 | if (!wxPyCheckForApp()) SWIG_fail; | |
4082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4083 | result = (wxScrolledWindow *)new wxScrolledWindow(); | |
4084 | wxPyEndAllowThreads(__tstate); | |
4085 | if (PyErr_Occurred()) SWIG_fail; | |
4086 | } | |
4087 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
4088 | return resultobj; | |
4089 | fail: | |
4090 | return NULL; | |
4091 | } | |
4092 | ||
4093 | ||
4094 | SWIGINTERN PyObject *_wrap_ScrolledWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4095 | PyObject *resultobj = 0; | |
4096 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4097 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4098 | int arg3 = (int) (int)-1 ; | |
4099 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4100 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4101 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4102 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4103 | long arg6 = (long) wxHSCROLL|wxVSCROLL ; | |
4104 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
4105 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4106 | bool result; | |
4107 | void *argp1 = 0 ; | |
4108 | int res1 = 0 ; | |
4109 | void *argp2 = 0 ; | |
4110 | int res2 = 0 ; | |
4111 | int val3 ; | |
4112 | int ecode3 = 0 ; | |
4113 | wxPoint temp4 ; | |
4114 | wxSize temp5 ; | |
4115 | long val6 ; | |
4116 | int ecode6 = 0 ; | |
4117 | bool temp7 = false ; | |
4118 | PyObject * obj0 = 0 ; | |
4119 | PyObject * obj1 = 0 ; | |
4120 | PyObject * obj2 = 0 ; | |
4121 | PyObject * obj3 = 0 ; | |
4122 | PyObject * obj4 = 0 ; | |
4123 | PyObject * obj5 = 0 ; | |
4124 | PyObject * obj6 = 0 ; | |
4125 | char * kwnames[] = { | |
4126 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4127 | }; | |
4128 | ||
4129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
4130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4131 | if (!SWIG_IsOK(res1)) { | |
4132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_Create" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4133 | } | |
4134 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4135 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4136 | if (!SWIG_IsOK(res2)) { | |
4137 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4138 | } | |
4139 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4140 | if (obj2) { | |
4141 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4142 | if (!SWIG_IsOK(ecode3)) { | |
4143 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
4144 | } | |
4145 | arg3 = static_cast< int >(val3); | |
4146 | } | |
4147 | if (obj3) { | |
d14a1e28 | 4148 | { |
0085ce49 RD |
4149 | arg4 = &temp4; |
4150 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4151 | } | |
4152 | } | |
4153 | if (obj4) { | |
d14a1e28 | 4154 | { |
0085ce49 RD |
4155 | arg5 = &temp5; |
4156 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 4157 | } |
0085ce49 RD |
4158 | } |
4159 | if (obj5) { | |
4160 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
4161 | if (!SWIG_IsOK(ecode6)) { | |
4162 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrolledWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
4163 | } | |
4164 | arg6 = static_cast< long >(val6); | |
4165 | } | |
4166 | if (obj6) { | |
d14a1e28 | 4167 | { |
0085ce49 RD |
4168 | arg7 = wxString_in_helper(obj6); |
4169 | if (arg7 == NULL) SWIG_fail; | |
4170 | temp7 = true; | |
d14a1e28 | 4171 | } |
0085ce49 RD |
4172 | } |
4173 | { | |
4174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4175 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4176 | wxPyEndAllowThreads(__tstate); | |
4177 | if (PyErr_Occurred()) SWIG_fail; | |
4178 | } | |
4179 | { | |
4180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4181 | } | |
4182 | { | |
4183 | if (temp7) | |
4184 | delete arg7; | |
4185 | } | |
4186 | return resultobj; | |
4187 | fail: | |
4188 | { | |
4189 | if (temp7) | |
4190 | delete arg7; | |
4191 | } | |
4192 | return NULL; | |
4193 | } | |
4194 | ||
4195 | ||
4196 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4197 | PyObject *resultobj = 0; | |
4198 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4199 | int arg2 ; | |
4200 | int arg3 ; | |
4201 | int arg4 ; | |
4202 | int arg5 ; | |
4203 | int arg6 = (int) 0 ; | |
4204 | int arg7 = (int) 0 ; | |
4205 | bool arg8 = (bool) false ; | |
4206 | void *argp1 = 0 ; | |
4207 | int res1 = 0 ; | |
4208 | int val2 ; | |
4209 | int ecode2 = 0 ; | |
4210 | int val3 ; | |
4211 | int ecode3 = 0 ; | |
4212 | int val4 ; | |
4213 | int ecode4 = 0 ; | |
4214 | int val5 ; | |
4215 | int ecode5 = 0 ; | |
4216 | int val6 ; | |
4217 | int ecode6 = 0 ; | |
4218 | int val7 ; | |
4219 | int ecode7 = 0 ; | |
4220 | bool val8 ; | |
4221 | int ecode8 = 0 ; | |
4222 | PyObject * obj0 = 0 ; | |
4223 | PyObject * obj1 = 0 ; | |
4224 | PyObject * obj2 = 0 ; | |
4225 | PyObject * obj3 = 0 ; | |
4226 | PyObject * obj4 = 0 ; | |
4227 | PyObject * obj5 = 0 ; | |
4228 | PyObject * obj6 = 0 ; | |
4229 | PyObject * obj7 = 0 ; | |
4230 | char * kwnames[] = { | |
4231 | (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL | |
4232 | }; | |
4233 | ||
4234 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
4235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4236 | if (!SWIG_IsOK(res1)) { | |
4237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4238 | } | |
4239 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4240 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4241 | if (!SWIG_IsOK(ecode2)) { | |
4242 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "2"" of type '" "int""'"); | |
4243 | } | |
4244 | arg2 = static_cast< int >(val2); | |
4245 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4246 | if (!SWIG_IsOK(ecode3)) { | |
4247 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "3"" of type '" "int""'"); | |
4248 | } | |
4249 | arg3 = static_cast< int >(val3); | |
4250 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
4251 | if (!SWIG_IsOK(ecode4)) { | |
4252 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "4"" of type '" "int""'"); | |
4253 | } | |
4254 | arg4 = static_cast< int >(val4); | |
4255 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
4256 | if (!SWIG_IsOK(ecode5)) { | |
4257 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "5"" of type '" "int""'"); | |
4258 | } | |
4259 | arg5 = static_cast< int >(val5); | |
4260 | if (obj5) { | |
4261 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
4262 | if (!SWIG_IsOK(ecode6)) { | |
4263 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "6"" of type '" "int""'"); | |
4264 | } | |
4265 | arg6 = static_cast< int >(val6); | |
4266 | } | |
4267 | if (obj6) { | |
4268 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
4269 | if (!SWIG_IsOK(ecode7)) { | |
4270 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "7"" of type '" "int""'"); | |
4271 | } | |
4272 | arg7 = static_cast< int >(val7); | |
4273 | } | |
4274 | if (obj7) { | |
4275 | ecode8 = SWIG_AsVal_bool(obj7, &val8); | |
4276 | if (!SWIG_IsOK(ecode8)) { | |
4277 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "8"" of type '" "bool""'"); | |
4278 | } | |
4279 | arg8 = static_cast< bool >(val8); | |
4280 | } | |
4281 | { | |
4282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4283 | (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); | |
4284 | wxPyEndAllowThreads(__tstate); | |
4285 | if (PyErr_Occurred()) SWIG_fail; | |
4286 | } | |
4287 | resultobj = SWIG_Py_Void(); | |
4288 | return resultobj; | |
4289 | fail: | |
4290 | return NULL; | |
4291 | } | |
4292 | ||
4293 | ||
4294 | SWIGINTERN PyObject *_wrap_ScrolledWindow_Scroll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4295 | PyObject *resultobj = 0; | |
4296 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4297 | int arg2 ; | |
4298 | int arg3 ; | |
4299 | void *argp1 = 0 ; | |
4300 | int res1 = 0 ; | |
4301 | int val2 ; | |
4302 | int ecode2 = 0 ; | |
4303 | int val3 ; | |
4304 | int ecode3 = 0 ; | |
4305 | PyObject * obj0 = 0 ; | |
4306 | PyObject * obj1 = 0 ; | |
4307 | PyObject * obj2 = 0 ; | |
4308 | char * kwnames[] = { | |
4309 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4310 | }; | |
4311 | ||
4312 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4313 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4314 | if (!SWIG_IsOK(res1)) { | |
4315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_Scroll" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4316 | } | |
4317 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4318 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4319 | if (!SWIG_IsOK(ecode2)) { | |
4320 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_Scroll" "', expected argument " "2"" of type '" "int""'"); | |
4321 | } | |
4322 | arg2 = static_cast< int >(val2); | |
4323 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4324 | if (!SWIG_IsOK(ecode3)) { | |
4325 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_Scroll" "', expected argument " "3"" of type '" "int""'"); | |
4326 | } | |
4327 | arg3 = static_cast< int >(val3); | |
4328 | { | |
4329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4330 | (arg1)->Scroll(arg2,arg3); | |
4331 | wxPyEndAllowThreads(__tstate); | |
4332 | if (PyErr_Occurred()) SWIG_fail; | |
4333 | } | |
4334 | resultobj = SWIG_Py_Void(); | |
4335 | return resultobj; | |
4336 | fail: | |
4337 | return NULL; | |
4338 | } | |
4339 | ||
4340 | ||
4341 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4342 | PyObject *resultobj = 0; | |
4343 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4344 | int arg2 ; | |
4345 | int result; | |
4346 | void *argp1 = 0 ; | |
4347 | int res1 = 0 ; | |
4348 | int val2 ; | |
4349 | int ecode2 = 0 ; | |
4350 | PyObject * obj0 = 0 ; | |
4351 | PyObject * obj1 = 0 ; | |
4352 | char * kwnames[] = { | |
4353 | (char *) "self",(char *) "orient", NULL | |
4354 | }; | |
4355 | ||
4356 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
4357 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4358 | if (!SWIG_IsOK(res1)) { | |
4359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScrollPageSize" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4360 | } | |
4361 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4362 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4363 | if (!SWIG_IsOK(ecode2)) { | |
4364 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_GetScrollPageSize" "', expected argument " "2"" of type '" "int""'"); | |
4365 | } | |
4366 | arg2 = static_cast< int >(val2); | |
4367 | { | |
4368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4369 | result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); | |
4370 | wxPyEndAllowThreads(__tstate); | |
4371 | if (PyErr_Occurred()) SWIG_fail; | |
4372 | } | |
4373 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4374 | return resultobj; | |
4375 | fail: | |
4376 | return NULL; | |
4377 | } | |
4378 | ||
4379 | ||
4380 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4381 | PyObject *resultobj = 0; | |
4382 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4383 | int arg2 ; | |
4384 | int arg3 ; | |
4385 | void *argp1 = 0 ; | |
4386 | int res1 = 0 ; | |
4387 | int val2 ; | |
4388 | int ecode2 = 0 ; | |
4389 | int val3 ; | |
4390 | int ecode3 = 0 ; | |
4391 | PyObject * obj0 = 0 ; | |
4392 | PyObject * obj1 = 0 ; | |
4393 | PyObject * obj2 = 0 ; | |
4394 | char * kwnames[] = { | |
4395 | (char *) "self",(char *) "orient",(char *) "pageSize", NULL | |
4396 | }; | |
4397 | ||
4398 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4399 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4400 | if (!SWIG_IsOK(res1)) { | |
4401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4402 | } | |
4403 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4404 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4405 | if (!SWIG_IsOK(ecode2)) { | |
4406 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "2"" of type '" "int""'"); | |
4407 | } | |
4408 | arg2 = static_cast< int >(val2); | |
4409 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4410 | if (!SWIG_IsOK(ecode3)) { | |
4411 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "3"" of type '" "int""'"); | |
4412 | } | |
4413 | arg3 = static_cast< int >(val3); | |
4414 | { | |
4415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4416 | (arg1)->SetScrollPageSize(arg2,arg3); | |
4417 | wxPyEndAllowThreads(__tstate); | |
4418 | if (PyErr_Occurred()) SWIG_fail; | |
4419 | } | |
4420 | resultobj = SWIG_Py_Void(); | |
4421 | return resultobj; | |
4422 | fail: | |
4423 | return NULL; | |
4424 | } | |
4425 | ||
4426 | ||
4427 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4428 | PyObject *resultobj = 0; | |
4429 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4430 | int arg2 ; | |
4431 | int arg3 ; | |
4432 | void *argp1 = 0 ; | |
4433 | int res1 = 0 ; | |
4434 | int val2 ; | |
4435 | int ecode2 = 0 ; | |
4436 | int val3 ; | |
4437 | int ecode3 = 0 ; | |
4438 | PyObject * obj0 = 0 ; | |
4439 | PyObject * obj1 = 0 ; | |
4440 | PyObject * obj2 = 0 ; | |
4441 | char * kwnames[] = { | |
4442 | (char *) "self",(char *) "xstep",(char *) "ystep", NULL | |
4443 | }; | |
4444 | ||
4445 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4446 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4447 | if (!SWIG_IsOK(res1)) { | |
4448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4449 | } | |
4450 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4451 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4452 | if (!SWIG_IsOK(ecode2)) { | |
4453 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "2"" of type '" "int""'"); | |
4454 | } | |
4455 | arg2 = static_cast< int >(val2); | |
4456 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4457 | if (!SWIG_IsOK(ecode3)) { | |
4458 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "3"" of type '" "int""'"); | |
4459 | } | |
4460 | arg3 = static_cast< int >(val3); | |
4461 | { | |
4462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4463 | (arg1)->SetScrollRate(arg2,arg3); | |
4464 | wxPyEndAllowThreads(__tstate); | |
4465 | if (PyErr_Occurred()) SWIG_fail; | |
4466 | } | |
4467 | resultobj = SWIG_Py_Void(); | |
4468 | return resultobj; | |
4469 | fail: | |
4470 | return NULL; | |
4471 | } | |
4472 | ||
4473 | ||
4474 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4475 | PyObject *resultobj = 0; | |
4476 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4477 | int *arg2 = (int *) 0 ; | |
4478 | int *arg3 = (int *) 0 ; | |
4479 | void *argp1 = 0 ; | |
4480 | int res1 = 0 ; | |
4481 | int temp2 ; | |
4482 | int res2 = SWIG_TMPOBJ ; | |
4483 | int temp3 ; | |
4484 | int res3 = SWIG_TMPOBJ ; | |
4485 | PyObject *swig_obj[1] ; | |
4486 | ||
4487 | arg2 = &temp2; | |
4488 | arg3 = &temp3; | |
4489 | if (!args) SWIG_fail; | |
4490 | swig_obj[0] = args; | |
4491 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4492 | if (!SWIG_IsOK(res1)) { | |
4493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScrollPixelsPerUnit" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4494 | } | |
4495 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4496 | { | |
4497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4498 | ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); | |
4499 | wxPyEndAllowThreads(__tstate); | |
4500 | if (PyErr_Occurred()) SWIG_fail; | |
4501 | } | |
4502 | resultobj = SWIG_Py_Void(); | |
4503 | if (SWIG_IsTmpObj(res2)) { | |
4504 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
4505 | } else { | |
4506 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4507 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
4508 | } | |
4509 | if (SWIG_IsTmpObj(res3)) { | |
4510 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
4511 | } else { | |
4512 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4513 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
4514 | } | |
4515 | return resultobj; | |
4516 | fail: | |
4517 | return NULL; | |
4518 | } | |
4519 | ||
4520 | ||
4521 | SWIGINTERN PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4522 | PyObject *resultobj = 0; | |
4523 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4524 | bool arg2 ; | |
4525 | bool arg3 ; | |
4526 | void *argp1 = 0 ; | |
4527 | int res1 = 0 ; | |
4528 | bool val2 ; | |
4529 | int ecode2 = 0 ; | |
4530 | bool val3 ; | |
4531 | int ecode3 = 0 ; | |
4532 | PyObject * obj0 = 0 ; | |
4533 | PyObject * obj1 = 0 ; | |
4534 | PyObject * obj2 = 0 ; | |
4535 | char * kwnames[] = { | |
4536 | (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL | |
4537 | }; | |
4538 | ||
4539 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4541 | if (!SWIG_IsOK(res1)) { | |
4542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4543 | } | |
4544 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4545 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4546 | if (!SWIG_IsOK(ecode2)) { | |
4547 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "2"" of type '" "bool""'"); | |
4548 | } | |
4549 | arg2 = static_cast< bool >(val2); | |
4550 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
4551 | if (!SWIG_IsOK(ecode3)) { | |
4552 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "3"" of type '" "bool""'"); | |
4553 | } | |
4554 | arg3 = static_cast< bool >(val3); | |
4555 | { | |
4556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4557 | (arg1)->EnableScrolling(arg2,arg3); | |
4558 | wxPyEndAllowThreads(__tstate); | |
4559 | if (PyErr_Occurred()) SWIG_fail; | |
4560 | } | |
4561 | resultobj = SWIG_Py_Void(); | |
4562 | return resultobj; | |
4563 | fail: | |
4564 | return NULL; | |
4565 | } | |
4566 | ||
4567 | ||
4568 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4569 | PyObject *resultobj = 0; | |
4570 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4571 | int *arg2 = (int *) 0 ; | |
4572 | int *arg3 = (int *) 0 ; | |
4573 | void *argp1 = 0 ; | |
4574 | int res1 = 0 ; | |
4575 | int temp2 ; | |
4576 | int res2 = SWIG_TMPOBJ ; | |
4577 | int temp3 ; | |
4578 | int res3 = SWIG_TMPOBJ ; | |
4579 | PyObject *swig_obj[1] ; | |
4580 | ||
4581 | arg2 = &temp2; | |
4582 | arg3 = &temp3; | |
4583 | if (!args) SWIG_fail; | |
4584 | swig_obj[0] = args; | |
4585 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4586 | if (!SWIG_IsOK(res1)) { | |
4587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetViewStart" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4588 | } | |
4589 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4590 | { | |
4591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4592 | ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); | |
4593 | wxPyEndAllowThreads(__tstate); | |
4594 | if (PyErr_Occurred()) SWIG_fail; | |
4595 | } | |
4596 | resultobj = SWIG_Py_Void(); | |
4597 | if (SWIG_IsTmpObj(res2)) { | |
4598 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
4599 | } else { | |
4600 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4601 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
4602 | } | |
4603 | if (SWIG_IsTmpObj(res3)) { | |
4604 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
4605 | } else { | |
4606 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4607 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
4608 | } | |
4609 | return resultobj; | |
4610 | fail: | |
4611 | return NULL; | |
4612 | } | |
4613 | ||
4614 | ||
4615 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4616 | PyObject *resultobj = 0; | |
4617 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4618 | double arg2 ; | |
4619 | double arg3 ; | |
4620 | void *argp1 = 0 ; | |
4621 | int res1 = 0 ; | |
4622 | double val2 ; | |
4623 | int ecode2 = 0 ; | |
4624 | double val3 ; | |
4625 | int ecode3 = 0 ; | |
4626 | PyObject * obj0 = 0 ; | |
4627 | PyObject * obj1 = 0 ; | |
4628 | PyObject * obj2 = 0 ; | |
4629 | char * kwnames[] = { | |
4630 | (char *) "self",(char *) "xs",(char *) "ys", NULL | |
4631 | }; | |
4632 | ||
4633 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4634 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4635 | if (!SWIG_IsOK(res1)) { | |
4636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScale" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4637 | } | |
4638 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4639 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
4640 | if (!SWIG_IsOK(ecode2)) { | |
4641 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScale" "', expected argument " "2"" of type '" "double""'"); | |
4642 | } | |
4643 | arg2 = static_cast< double >(val2); | |
4644 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
4645 | if (!SWIG_IsOK(ecode3)) { | |
4646 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScale" "', expected argument " "3"" of type '" "double""'"); | |
4647 | } | |
4648 | arg3 = static_cast< double >(val3); | |
4649 | { | |
4650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4651 | (arg1)->SetScale(arg2,arg3); | |
4652 | wxPyEndAllowThreads(__tstate); | |
4653 | if (PyErr_Occurred()) SWIG_fail; | |
4654 | } | |
4655 | resultobj = SWIG_Py_Void(); | |
4656 | return resultobj; | |
4657 | fail: | |
4658 | return NULL; | |
d14a1e28 RD |
4659 | } |
4660 | ||
4661 | ||
0085ce49 RD |
4662 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4663 | PyObject *resultobj = 0; | |
4664 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4665 | double result; | |
4666 | void *argp1 = 0 ; | |
4667 | int res1 = 0 ; | |
4668 | PyObject *swig_obj[1] ; | |
4669 | ||
4670 | if (!args) SWIG_fail; | |
4671 | swig_obj[0] = args; | |
4672 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4673 | if (!SWIG_IsOK(res1)) { | |
4674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScaleX" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4675 | } | |
4676 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4677 | { | |
4678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4679 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); | |
4680 | wxPyEndAllowThreads(__tstate); | |
4681 | if (PyErr_Occurred()) SWIG_fail; | |
4682 | } | |
4683 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
4684 | return resultobj; | |
4685 | fail: | |
4686 | return NULL; | |
d14a1e28 RD |
4687 | } |
4688 | ||
4689 | ||
0085ce49 RD |
4690 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4691 | PyObject *resultobj = 0; | |
4692 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4693 | double result; | |
4694 | void *argp1 = 0 ; | |
4695 | int res1 = 0 ; | |
4696 | PyObject *swig_obj[1] ; | |
4697 | ||
4698 | if (!args) SWIG_fail; | |
4699 | swig_obj[0] = args; | |
4700 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4701 | if (!SWIG_IsOK(res1)) { | |
4702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScaleY" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4703 | } | |
4704 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4705 | { | |
4706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4707 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); | |
4708 | wxPyEndAllowThreads(__tstate); | |
4709 | if (PyErr_Occurred()) SWIG_fail; | |
4710 | } | |
4711 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
4712 | return resultobj; | |
4713 | fail: | |
4714 | return NULL; | |
d14a1e28 RD |
4715 | } |
4716 | ||
4717 | ||
0085ce49 RD |
4718 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
4719 | PyObject *resultobj = 0; | |
4720 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4721 | wxPoint *arg2 = 0 ; | |
4722 | wxPoint result; | |
4723 | void *argp1 = 0 ; | |
4724 | int res1 = 0 ; | |
4725 | wxPoint temp2 ; | |
4726 | ||
4727 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
4728 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4729 | if (!SWIG_IsOK(res1)) { | |
4730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4731 | } | |
4732 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4733 | { | |
4734 | arg2 = &temp2; | |
4735 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
4736 | } | |
4737 | { | |
4738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4739 | result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); | |
4740 | wxPyEndAllowThreads(__tstate); | |
4741 | if (PyErr_Occurred()) SWIG_fail; | |
4742 | } | |
4743 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
4744 | return resultobj; | |
4745 | fail: | |
4746 | return NULL; | |
4747 | } | |
4748 | ||
4749 | ||
4750 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
4751 | PyObject *resultobj = 0; | |
4752 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4753 | int arg2 ; | |
4754 | int arg3 ; | |
4755 | int *arg4 = (int *) 0 ; | |
4756 | int *arg5 = (int *) 0 ; | |
4757 | void *argp1 = 0 ; | |
4758 | int res1 = 0 ; | |
4759 | int val2 ; | |
4760 | int ecode2 = 0 ; | |
4761 | int val3 ; | |
4762 | int ecode3 = 0 ; | |
4763 | int temp4 ; | |
4764 | int res4 = SWIG_TMPOBJ ; | |
4765 | int temp5 ; | |
4766 | int res5 = SWIG_TMPOBJ ; | |
4767 | ||
4768 | arg4 = &temp4; | |
4769 | arg5 = &temp5; | |
4770 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
4771 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4772 | if (!SWIG_IsOK(res1)) { | |
4773 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4774 | } | |
4775 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4776 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
4777 | if (!SWIG_IsOK(ecode2)) { | |
4778 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "2"" of type '" "int""'"); | |
4779 | } | |
4780 | arg2 = static_cast< int >(val2); | |
4781 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
4782 | if (!SWIG_IsOK(ecode3)) { | |
4783 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "3"" of type '" "int""'"); | |
4784 | } | |
4785 | arg3 = static_cast< int >(val3); | |
4786 | { | |
4787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4788 | ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); | |
4789 | wxPyEndAllowThreads(__tstate); | |
4790 | if (PyErr_Occurred()) SWIG_fail; | |
4791 | } | |
4792 | resultobj = SWIG_Py_Void(); | |
4793 | if (SWIG_IsTmpObj(res4)) { | |
4794 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
4795 | } else { | |
4796 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4797 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
4798 | } | |
4799 | if (SWIG_IsTmpObj(res5)) { | |
4800 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
4801 | } else { | |
4802 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4803 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
4804 | } | |
4805 | return resultobj; | |
4806 | fail: | |
4807 | return NULL; | |
d14a1e28 RD |
4808 | } |
4809 | ||
4810 | ||
0085ce49 RD |
4811 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { |
4812 | int argc; | |
4813 | PyObject *argv[4]; | |
4814 | ||
4815 | if (!(argc = SWIG_Python_UnpackTuple(args,"ScrolledWindow_CalcScrolledPosition",0,3,argv))) SWIG_fail; | |
4816 | --argc; | |
4817 | if (argc == 2) { | |
4818 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self, argc, argv); | |
4819 | } | |
4820 | if (argc == 3) { | |
4821 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self, argc, argv); | |
4822 | } | |
4823 | ||
4824 | fail: | |
4825 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); | |
4826 | return NULL; | |
d14a1e28 RD |
4827 | } |
4828 | ||
4829 | ||
0085ce49 RD |
4830 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
4831 | PyObject *resultobj = 0; | |
4832 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4833 | wxPoint *arg2 = 0 ; | |
4834 | wxPoint result; | |
4835 | void *argp1 = 0 ; | |
4836 | int res1 = 0 ; | |
4837 | wxPoint temp2 ; | |
4838 | ||
4839 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
4840 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4841 | if (!SWIG_IsOK(res1)) { | |
4842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4843 | } | |
4844 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4845 | { | |
4846 | arg2 = &temp2; | |
4847 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
4848 | } | |
4849 | { | |
4850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4851 | result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); | |
4852 | wxPyEndAllowThreads(__tstate); | |
4853 | if (PyErr_Occurred()) SWIG_fail; | |
4854 | } | |
4855 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
4856 | return resultobj; | |
4857 | fail: | |
4858 | return NULL; | |
4859 | } | |
4860 | ||
4861 | ||
4862 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
4863 | PyObject *resultobj = 0; | |
4864 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4865 | int arg2 ; | |
4866 | int arg3 ; | |
4867 | int *arg4 = (int *) 0 ; | |
4868 | int *arg5 = (int *) 0 ; | |
4869 | void *argp1 = 0 ; | |
4870 | int res1 = 0 ; | |
4871 | int val2 ; | |
4872 | int ecode2 = 0 ; | |
4873 | int val3 ; | |
4874 | int ecode3 = 0 ; | |
4875 | int temp4 ; | |
4876 | int res4 = SWIG_TMPOBJ ; | |
4877 | int temp5 ; | |
4878 | int res5 = SWIG_TMPOBJ ; | |
4879 | ||
4880 | arg4 = &temp4; | |
4881 | arg5 = &temp5; | |
4882 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
4883 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4884 | if (!SWIG_IsOK(res1)) { | |
4885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4886 | } | |
4887 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4888 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
4889 | if (!SWIG_IsOK(ecode2)) { | |
4890 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "2"" of type '" "int""'"); | |
4891 | } | |
4892 | arg2 = static_cast< int >(val2); | |
4893 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
4894 | if (!SWIG_IsOK(ecode3)) { | |
4895 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "3"" of type '" "int""'"); | |
4896 | } | |
4897 | arg3 = static_cast< int >(val3); | |
4898 | { | |
4899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4900 | ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); | |
4901 | wxPyEndAllowThreads(__tstate); | |
4902 | if (PyErr_Occurred()) SWIG_fail; | |
4903 | } | |
4904 | resultobj = SWIG_Py_Void(); | |
4905 | if (SWIG_IsTmpObj(res4)) { | |
4906 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
4907 | } else { | |
4908 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4909 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
4910 | } | |
4911 | if (SWIG_IsTmpObj(res5)) { | |
4912 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
4913 | } else { | |
4914 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4915 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
4916 | } | |
4917 | return resultobj; | |
4918 | fail: | |
4919 | return NULL; | |
d14a1e28 RD |
4920 | } |
4921 | ||
4922 | ||
0085ce49 RD |
4923 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { |
4924 | int argc; | |
4925 | PyObject *argv[4]; | |
4926 | ||
4927 | if (!(argc = SWIG_Python_UnpackTuple(args,"ScrolledWindow_CalcUnscrolledPosition",0,3,argv))) SWIG_fail; | |
4928 | --argc; | |
4929 | if (argc == 2) { | |
4930 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self, argc, argv); | |
4931 | } | |
4932 | if (argc == 3) { | |
4933 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self, argc, argv); | |
4934 | } | |
4935 | ||
4936 | fail: | |
4937 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); | |
4938 | return NULL; | |
d14a1e28 RD |
4939 | } |
4940 | ||
4941 | ||
0085ce49 RD |
4942 | SWIGINTERN PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4943 | PyObject *resultobj = 0; | |
4944 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4945 | void *argp1 = 0 ; | |
4946 | int res1 = 0 ; | |
4947 | PyObject *swig_obj[1] ; | |
4948 | ||
4949 | if (!args) SWIG_fail; | |
4950 | swig_obj[0] = args; | |
4951 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4952 | if (!SWIG_IsOK(res1)) { | |
4953 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_AdjustScrollbars" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4954 | } | |
4955 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4956 | { | |
4957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4958 | (arg1)->AdjustScrollbars(); | |
4959 | wxPyEndAllowThreads(__tstate); | |
4960 | if (PyErr_Occurred()) SWIG_fail; | |
4961 | } | |
4962 | resultobj = SWIG_Py_Void(); | |
4963 | return resultobj; | |
4964 | fail: | |
4965 | return NULL; | |
4966 | } | |
4967 | ||
4968 | ||
4969 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4970 | PyObject *resultobj = 0; | |
4971 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4972 | wxScrollWinEvent *arg2 = 0 ; | |
4973 | int result; | |
4974 | void *argp1 = 0 ; | |
4975 | int res1 = 0 ; | |
4976 | void *argp2 = 0 ; | |
4977 | int res2 = 0 ; | |
4978 | PyObject * obj0 = 0 ; | |
4979 | PyObject * obj1 = 0 ; | |
4980 | char * kwnames[] = { | |
4981 | (char *) "self",(char *) "event", NULL | |
4982 | }; | |
4983 | ||
4984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) SWIG_fail; | |
4985 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4986 | if (!SWIG_IsOK(res1)) { | |
4987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4988 | } | |
4989 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4990 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxScrollWinEvent, 0 ); | |
4991 | if (!SWIG_IsOK(res2)) { | |
4992 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "2"" of type '" "wxScrollWinEvent &""'"); | |
4993 | } | |
4994 | if (!argp2) { | |
4995 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "2"" of type '" "wxScrollWinEvent &""'"); | |
4996 | } | |
4997 | arg2 = reinterpret_cast< wxScrollWinEvent * >(argp2); | |
4998 | { | |
4999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5000 | result = (int)(arg1)->CalcScrollInc(*arg2); | |
5001 | wxPyEndAllowThreads(__tstate); | |
5002 | if (PyErr_Occurred()) SWIG_fail; | |
5003 | } | |
5004 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5005 | return resultobj; | |
5006 | fail: | |
5007 | return NULL; | |
5008 | } | |
5009 | ||
5010 | ||
5011 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5012 | PyObject *resultobj = 0; | |
5013 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5014 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5015 | void *argp1 = 0 ; | |
5016 | int res1 = 0 ; | |
5017 | void *argp2 = 0 ; | |
5018 | int res2 = 0 ; | |
5019 | PyObject * obj0 = 0 ; | |
5020 | PyObject * obj1 = 0 ; | |
5021 | char * kwnames[] = { | |
5022 | (char *) "self",(char *) "target", NULL | |
5023 | }; | |
5024 | ||
5025 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
5026 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5027 | if (!SWIG_IsOK(res1)) { | |
5028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetTargetWindow" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5029 | } | |
5030 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5031 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5032 | if (!SWIG_IsOK(res2)) { | |
5033 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_SetTargetWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5034 | } | |
5035 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5036 | { | |
5037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5038 | (arg1)->SetTargetWindow(arg2); | |
5039 | wxPyEndAllowThreads(__tstate); | |
5040 | if (PyErr_Occurred()) SWIG_fail; | |
5041 | } | |
5042 | resultobj = SWIG_Py_Void(); | |
5043 | return resultobj; | |
5044 | fail: | |
5045 | return NULL; | |
d14a1e28 RD |
5046 | } |
5047 | ||
5048 | ||
0085ce49 RD |
5049 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5050 | PyObject *resultobj = 0; | |
5051 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5052 | wxWindow *result = 0 ; | |
5053 | void *argp1 = 0 ; | |
5054 | int res1 = 0 ; | |
5055 | PyObject *swig_obj[1] ; | |
5056 | ||
5057 | if (!args) SWIG_fail; | |
5058 | swig_obj[0] = args; | |
5059 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5060 | if (!SWIG_IsOK(res1)) { | |
5061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetTargetWindow" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
5062 | } | |
5063 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5064 | { | |
5065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5066 | result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); | |
5067 | wxPyEndAllowThreads(__tstate); | |
5068 | if (PyErr_Occurred()) SWIG_fail; | |
5069 | } | |
5070 | { | |
5071 | resultobj = wxPyMake_wxObject(result, 0); | |
5072 | } | |
5073 | return resultobj; | |
5074 | fail: | |
5075 | return NULL; | |
5076 | } | |
5077 | ||
5078 | ||
5079 | SWIGINTERN PyObject *_wrap_ScrolledWindow_DoPrepareDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5080 | PyObject *resultobj = 0; | |
5081 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5082 | wxDC *arg2 = 0 ; | |
5083 | void *argp1 = 0 ; | |
5084 | int res1 = 0 ; | |
5085 | void *argp2 = 0 ; | |
5086 | int res2 = 0 ; | |
5087 | PyObject * obj0 = 0 ; | |
5088 | PyObject * obj1 = 0 ; | |
5089 | char * kwnames[] = { | |
5090 | (char *) "self",(char *) "dc", NULL | |
5091 | }; | |
5092 | ||
5093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_DoPrepareDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
5094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5095 | if (!SWIG_IsOK(res1)) { | |
5096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5097 | } | |
5098 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5099 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
5100 | if (!SWIG_IsOK(res2)) { | |
5101 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "2"" of type '" "wxDC &""'"); | |
5102 | } | |
5103 | if (!argp2) { | |
5104 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "2"" of type '" "wxDC &""'"); | |
5105 | } | |
5106 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
5107 | { | |
5108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5109 | (arg1)->DoPrepareDC(*arg2); | |
5110 | wxPyEndAllowThreads(__tstate); | |
5111 | if (PyErr_Occurred()) SWIG_fail; | |
5112 | } | |
5113 | resultobj = SWIG_Py_Void(); | |
5114 | return resultobj; | |
5115 | fail: | |
5116 | return NULL; | |
5117 | } | |
5118 | ||
5119 | ||
5120 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5121 | PyObject *resultobj = 0; | |
5122 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5123 | SwigValueWrapper<wxVisualAttributes > result; | |
5124 | int val1 ; | |
5125 | int ecode1 = 0 ; | |
5126 | PyObject * obj0 = 0 ; | |
5127 | char * kwnames[] = { | |
5128 | (char *) "variant", NULL | |
5129 | }; | |
5130 | ||
5131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrolledWindow_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5132 | if (obj0) { | |
5133 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5134 | if (!SWIG_IsOK(ecode1)) { | |
5135 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrolledWindow_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5136 | } | |
5137 | arg1 = static_cast< wxWindowVariant >(val1); | |
5138 | } | |
5139 | { | |
5140 | if (!wxPyCheckForApp()) SWIG_fail; | |
5141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5142 | result = wxScrolledWindow::GetClassDefaultAttributes(arg1); | |
5143 | wxPyEndAllowThreads(__tstate); | |
5144 | if (PyErr_Occurred()) SWIG_fail; | |
5145 | } | |
5146 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5147 | return resultobj; | |
5148 | fail: | |
5149 | return NULL; | |
d14a1e28 RD |
5150 | } |
5151 | ||
5152 | ||
0085ce49 RD |
5153 | SWIGINTERN PyObject *ScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5154 | PyObject *obj; | |
5155 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5156 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScrolledWindow, SWIG_NewClientData(obj)); | |
5157 | return SWIG_Py_Void(); | |
d14a1e28 RD |
5158 | } |
5159 | ||
0085ce49 RD |
5160 | SWIGINTERN PyObject *ScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5161 | return SWIG_Python_InitShadowInstance(args); | |
5162 | } | |
d14a1e28 | 5163 | |
0085ce49 RD |
5164 | SWIGINTERN int FrameNameStr_set(PyObject *) { |
5165 | SWIG_Error(SWIG_AttributeError,"Variable FrameNameStr is read-only."); | |
5166 | return 1; | |
d14a1e28 RD |
5167 | } |
5168 | ||
5169 | ||
0085ce49 RD |
5170 | SWIGINTERN PyObject *FrameNameStr_get(void) { |
5171 | PyObject *pyobj = 0; | |
5172 | ||
5173 | { | |
5174 | #if wxUSE_UNICODE | |
5175 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
5176 | #else | |
5177 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
5178 | #endif | |
5179 | } | |
5180 | return pyobj; | |
d14a1e28 RD |
5181 | } |
5182 | ||
5183 | ||
0085ce49 RD |
5184 | SWIGINTERN int DialogNameStr_set(PyObject *) { |
5185 | SWIG_Error(SWIG_AttributeError,"Variable DialogNameStr is read-only."); | |
5186 | return 1; | |
d14a1e28 RD |
5187 | } |
5188 | ||
5189 | ||
0085ce49 RD |
5190 | SWIGINTERN PyObject *DialogNameStr_get(void) { |
5191 | PyObject *pyobj = 0; | |
5192 | ||
5193 | { | |
5194 | #if wxUSE_UNICODE | |
5195 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
5196 | #else | |
5197 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
5198 | #endif | |
5199 | } | |
5200 | return pyobj; | |
d14a1e28 RD |
5201 | } |
5202 | ||
5203 | ||
0085ce49 RD |
5204 | SWIGINTERN int StatusLineNameStr_set(PyObject *) { |
5205 | SWIG_Error(SWIG_AttributeError,"Variable StatusLineNameStr is read-only."); | |
5206 | return 1; | |
d14a1e28 RD |
5207 | } |
5208 | ||
5209 | ||
0085ce49 RD |
5210 | SWIGINTERN PyObject *StatusLineNameStr_get(void) { |
5211 | PyObject *pyobj = 0; | |
5212 | ||
5213 | { | |
5214 | #if wxUSE_UNICODE | |
5215 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
5216 | #else | |
5217 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
5218 | #endif | |
5219 | } | |
5220 | return pyobj; | |
d14a1e28 RD |
5221 | } |
5222 | ||
5223 | ||
0085ce49 RD |
5224 | SWIGINTERN int ToolBarNameStr_set(PyObject *) { |
5225 | SWIG_Error(SWIG_AttributeError,"Variable ToolBarNameStr is read-only."); | |
5226 | return 1; | |
d14a1e28 RD |
5227 | } |
5228 | ||
5229 | ||
0085ce49 RD |
5230 | SWIGINTERN PyObject *ToolBarNameStr_get(void) { |
5231 | PyObject *pyobj = 0; | |
5232 | ||
5233 | { | |
5234 | #if wxUSE_UNICODE | |
5235 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
5236 | #else | |
5237 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
5238 | #endif | |
5239 | } | |
5240 | return pyobj; | |
5241 | } | |
5242 | ||
5243 | ||
5244 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Maximize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5245 | PyObject *resultobj = 0; | |
5246 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5247 | bool arg2 = (bool) true ; | |
5248 | void *argp1 = 0 ; | |
5249 | int res1 = 0 ; | |
5250 | bool val2 ; | |
5251 | int ecode2 = 0 ; | |
5252 | PyObject * obj0 = 0 ; | |
5253 | PyObject * obj1 = 0 ; | |
5254 | char * kwnames[] = { | |
5255 | (char *) "self",(char *) "maximize", NULL | |
5256 | }; | |
5257 | ||
5258 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) SWIG_fail; | |
5259 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5260 | if (!SWIG_IsOK(res1)) { | |
5261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Maximize" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5262 | } | |
5263 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5264 | if (obj1) { | |
5265 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5266 | if (!SWIG_IsOK(ecode2)) { | |
5267 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_Maximize" "', expected argument " "2"" of type '" "bool""'"); | |
5268 | } | |
5269 | arg2 = static_cast< bool >(val2); | |
5270 | } | |
5271 | { | |
5272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5273 | (arg1)->Maximize(arg2); | |
5274 | wxPyEndAllowThreads(__tstate); | |
5275 | if (PyErr_Occurred()) SWIG_fail; | |
5276 | } | |
5277 | resultobj = SWIG_Py_Void(); | |
5278 | return resultobj; | |
5279 | fail: | |
5280 | return NULL; | |
d14a1e28 RD |
5281 | } |
5282 | ||
5283 | ||
0085ce49 RD |
5284 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5285 | PyObject *resultobj = 0; | |
5286 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5287 | void *argp1 = 0 ; | |
5288 | int res1 = 0 ; | |
5289 | PyObject *swig_obj[1] ; | |
5290 | ||
5291 | if (!args) SWIG_fail; | |
5292 | swig_obj[0] = args; | |
5293 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5294 | if (!SWIG_IsOK(res1)) { | |
5295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Restore" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5296 | } | |
5297 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5298 | { | |
5299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5300 | (arg1)->Restore(); | |
5301 | wxPyEndAllowThreads(__tstate); | |
5302 | if (PyErr_Occurred()) SWIG_fail; | |
5303 | } | |
5304 | resultobj = SWIG_Py_Void(); | |
5305 | return resultobj; | |
5306 | fail: | |
5307 | return NULL; | |
5308 | } | |
5309 | ||
5310 | ||
5311 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Iconize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5312 | PyObject *resultobj = 0; | |
5313 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5314 | bool arg2 = (bool) true ; | |
5315 | void *argp1 = 0 ; | |
5316 | int res1 = 0 ; | |
5317 | bool val2 ; | |
5318 | int ecode2 = 0 ; | |
5319 | PyObject * obj0 = 0 ; | |
5320 | PyObject * obj1 = 0 ; | |
5321 | char * kwnames[] = { | |
5322 | (char *) "self",(char *) "iconize", NULL | |
5323 | }; | |
5324 | ||
5325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) SWIG_fail; | |
5326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5327 | if (!SWIG_IsOK(res1)) { | |
5328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Iconize" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5329 | } | |
5330 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5331 | if (obj1) { | |
5332 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5333 | if (!SWIG_IsOK(ecode2)) { | |
5334 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_Iconize" "', expected argument " "2"" of type '" "bool""'"); | |
5335 | } | |
5336 | arg2 = static_cast< bool >(val2); | |
5337 | } | |
5338 | { | |
5339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5340 | (arg1)->Iconize(arg2); | |
5341 | wxPyEndAllowThreads(__tstate); | |
5342 | if (PyErr_Occurred()) SWIG_fail; | |
5343 | } | |
5344 | resultobj = SWIG_Py_Void(); | |
5345 | return resultobj; | |
5346 | fail: | |
5347 | return NULL; | |
d14a1e28 RD |
5348 | } |
5349 | ||
5350 | ||
0085ce49 RD |
5351 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5352 | PyObject *resultobj = 0; | |
5353 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5354 | bool result; | |
5355 | void *argp1 = 0 ; | |
5356 | int res1 = 0 ; | |
5357 | PyObject *swig_obj[1] ; | |
5358 | ||
5359 | if (!args) SWIG_fail; | |
5360 | swig_obj[0] = args; | |
5361 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5362 | if (!SWIG_IsOK(res1)) { | |
5363 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsMaximized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5364 | } | |
5365 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5366 | { | |
5367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5368 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
5369 | wxPyEndAllowThreads(__tstate); | |
5370 | if (PyErr_Occurred()) SWIG_fail; | |
5371 | } | |
5372 | { | |
5373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5374 | } | |
5375 | return resultobj; | |
5376 | fail: | |
5377 | return NULL; | |
d14a1e28 RD |
5378 | } |
5379 | ||
5380 | ||
0085ce49 RD |
5381 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5382 | PyObject *resultobj = 0; | |
5383 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5384 | bool result; | |
5385 | void *argp1 = 0 ; | |
5386 | int res1 = 0 ; | |
5387 | PyObject *swig_obj[1] ; | |
5388 | ||
5389 | if (!args) SWIG_fail; | |
5390 | swig_obj[0] = args; | |
5391 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5392 | if (!SWIG_IsOK(res1)) { | |
5393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsIconized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5394 | } | |
5395 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5396 | { | |
5397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5398 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
5399 | wxPyEndAllowThreads(__tstate); | |
5400 | if (PyErr_Occurred()) SWIG_fail; | |
5401 | } | |
5402 | { | |
5403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5404 | } | |
5405 | return resultobj; | |
5406 | fail: | |
5407 | return NULL; | |
f5b96ee1 RD |
5408 | } |
5409 | ||
5410 | ||
0085ce49 RD |
5411 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5412 | PyObject *resultobj = 0; | |
5413 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5414 | wxIcon result; | |
5415 | void *argp1 = 0 ; | |
5416 | int res1 = 0 ; | |
5417 | PyObject *swig_obj[1] ; | |
5418 | ||
5419 | if (!args) SWIG_fail; | |
5420 | swig_obj[0] = args; | |
5421 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5422 | if (!SWIG_IsOK(res1)) { | |
5423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetIcon" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5424 | } | |
5425 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5426 | { | |
5427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5428 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
5429 | wxPyEndAllowThreads(__tstate); | |
5430 | if (PyErr_Occurred()) SWIG_fail; | |
5431 | } | |
5432 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
5433 | return resultobj; | |
5434 | fail: | |
5435 | return NULL; | |
5436 | } | |
5437 | ||
5438 | ||
5439 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5440 | PyObject *resultobj = 0; | |
5441 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5442 | wxIcon *arg2 = 0 ; | |
5443 | void *argp1 = 0 ; | |
5444 | int res1 = 0 ; | |
5445 | void *argp2 = 0 ; | |
5446 | int res2 = 0 ; | |
5447 | PyObject * obj0 = 0 ; | |
5448 | PyObject * obj1 = 0 ; | |
5449 | char * kwnames[] = { | |
5450 | (char *) "self",(char *) "icon", NULL | |
5451 | }; | |
5452 | ||
5453 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
5454 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5455 | if (!SWIG_IsOK(res1)) { | |
5456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetIcon" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5457 | } | |
5458 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5459 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
5460 | if (!SWIG_IsOK(res2)) { | |
5461 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
5462 | } | |
5463 | if (!argp2) { | |
5464 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
5465 | } | |
5466 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
5467 | { | |
5468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5469 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5470 | wxPyEndAllowThreads(__tstate); | |
5471 | if (PyErr_Occurred()) SWIG_fail; | |
5472 | } | |
5473 | resultobj = SWIG_Py_Void(); | |
5474 | return resultobj; | |
5475 | fail: | |
5476 | return NULL; | |
5477 | } | |
5478 | ||
5479 | ||
5480 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5481 | PyObject *resultobj = 0; | |
5482 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5483 | wxIconBundle *arg2 = 0 ; | |
5484 | void *argp1 = 0 ; | |
5485 | int res1 = 0 ; | |
5486 | void *argp2 = 0 ; | |
5487 | int res2 = 0 ; | |
5488 | PyObject * obj0 = 0 ; | |
5489 | PyObject * obj1 = 0 ; | |
5490 | char * kwnames[] = { | |
5491 | (char *) "self",(char *) "icons", NULL | |
5492 | }; | |
5493 | ||
5494 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) SWIG_fail; | |
5495 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5496 | if (!SWIG_IsOK(res1)) { | |
5497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetIcons" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5498 | } | |
5499 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5500 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIconBundle, 0 | 0); | |
5501 | if (!SWIG_IsOK(res2)) { | |
5502 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetIcons" "', expected argument " "2"" of type '" "wxIconBundle const &""'"); | |
5503 | } | |
5504 | if (!argp2) { | |
5505 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetIcons" "', expected argument " "2"" of type '" "wxIconBundle const &""'"); | |
5506 | } | |
5507 | arg2 = reinterpret_cast< wxIconBundle * >(argp2); | |
5508 | { | |
5509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5510 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
5511 | wxPyEndAllowThreads(__tstate); | |
5512 | if (PyErr_Occurred()) SWIG_fail; | |
5513 | } | |
5514 | resultobj = SWIG_Py_Void(); | |
5515 | return resultobj; | |
5516 | fail: | |
5517 | return NULL; | |
5518 | } | |
5519 | ||
5520 | ||
5521 | SWIGINTERN PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5522 | PyObject *resultobj = 0; | |
5523 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5524 | bool arg2 ; | |
5525 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
5526 | bool result; | |
5527 | void *argp1 = 0 ; | |
5528 | int res1 = 0 ; | |
5529 | bool val2 ; | |
5530 | int ecode2 = 0 ; | |
5531 | long val3 ; | |
5532 | int ecode3 = 0 ; | |
5533 | PyObject * obj0 = 0 ; | |
5534 | PyObject * obj1 = 0 ; | |
5535 | PyObject * obj2 = 0 ; | |
5536 | char * kwnames[] = { | |
5537 | (char *) "self",(char *) "show",(char *) "style", NULL | |
5538 | }; | |
5539 | ||
5540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5541 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5542 | if (!SWIG_IsOK(res1)) { | |
5543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5544 | } | |
5545 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5546 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5547 | if (!SWIG_IsOK(ecode2)) { | |
5548 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "2"" of type '" "bool""'"); | |
5549 | } | |
5550 | arg2 = static_cast< bool >(val2); | |
5551 | if (obj2) { | |
5552 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
5553 | if (!SWIG_IsOK(ecode3)) { | |
5554 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "3"" of type '" "long""'"); | |
5555 | } | |
5556 | arg3 = static_cast< long >(val3); | |
5557 | } | |
5558 | { | |
5559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5560 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
5561 | wxPyEndAllowThreads(__tstate); | |
5562 | if (PyErr_Occurred()) SWIG_fail; | |
5563 | } | |
5564 | { | |
5565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5566 | } | |
5567 | return resultobj; | |
5568 | fail: | |
5569 | return NULL; | |
22bfe96c RD |
5570 | } |
5571 | ||
5572 | ||
0085ce49 RD |
5573 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5574 | PyObject *resultobj = 0; | |
5575 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5576 | bool result; | |
5577 | void *argp1 = 0 ; | |
5578 | int res1 = 0 ; | |
5579 | PyObject *swig_obj[1] ; | |
5580 | ||
5581 | if (!args) SWIG_fail; | |
5582 | swig_obj[0] = args; | |
5583 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5584 | if (!SWIG_IsOK(res1)) { | |
5585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsFullScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5586 | } | |
5587 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5588 | { | |
5589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5590 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
5591 | wxPyEndAllowThreads(__tstate); | |
5592 | if (PyErr_Occurred()) SWIG_fail; | |
5593 | } | |
5594 | { | |
5595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5596 | } | |
5597 | return resultobj; | |
5598 | fail: | |
5599 | return NULL; | |
5600 | } | |
5601 | ||
5602 | ||
5603 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5604 | PyObject *resultobj = 0; | |
5605 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5606 | wxString *arg2 = 0 ; | |
5607 | void *argp1 = 0 ; | |
5608 | int res1 = 0 ; | |
5609 | bool temp2 = false ; | |
5610 | PyObject * obj0 = 0 ; | |
5611 | PyObject * obj1 = 0 ; | |
5612 | char * kwnames[] = { | |
5613 | (char *) "self",(char *) "title", NULL | |
5614 | }; | |
5615 | ||
5616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5618 | if (!SWIG_IsOK(res1)) { | |
5619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetTitle" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5620 | } | |
5621 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5622 | { | |
5623 | arg2 = wxString_in_helper(obj1); | |
5624 | if (arg2 == NULL) SWIG_fail; | |
5625 | temp2 = true; | |
5626 | } | |
5627 | { | |
5628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5629 | (arg1)->SetTitle((wxString const &)*arg2); | |
5630 | wxPyEndAllowThreads(__tstate); | |
5631 | if (PyErr_Occurred()) SWIG_fail; | |
5632 | } | |
5633 | resultobj = SWIG_Py_Void(); | |
5634 | { | |
5635 | if (temp2) | |
5636 | delete arg2; | |
5637 | } | |
5638 | return resultobj; | |
5639 | fail: | |
5640 | { | |
5641 | if (temp2) | |
5642 | delete arg2; | |
5643 | } | |
5644 | return NULL; | |
b2dc1044 RD |
5645 | } |
5646 | ||
5647 | ||
0085ce49 RD |
5648 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5649 | PyObject *resultobj = 0; | |
5650 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5651 | wxString result; | |
5652 | void *argp1 = 0 ; | |
5653 | int res1 = 0 ; | |
5654 | PyObject *swig_obj[1] ; | |
5655 | ||
5656 | if (!args) SWIG_fail; | |
5657 | swig_obj[0] = args; | |
5658 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5659 | if (!SWIG_IsOK(res1)) { | |
5660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetTitle" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5661 | } | |
5662 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5663 | { | |
5664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5665 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
5666 | wxPyEndAllowThreads(__tstate); | |
5667 | if (PyErr_Occurred()) SWIG_fail; | |
5668 | } | |
5669 | { | |
b2dc1044 | 5670 | #if wxUSE_UNICODE |
0085ce49 | 5671 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 5672 | #else |
0085ce49 | 5673 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 5674 | #endif |
0085ce49 RD |
5675 | } |
5676 | return resultobj; | |
5677 | fail: | |
5678 | return NULL; | |
5679 | } | |
5680 | ||
5681 | ||
5682 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5683 | PyObject *resultobj = 0; | |
5684 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5685 | wxRegion *arg2 = 0 ; | |
5686 | bool result; | |
5687 | void *argp1 = 0 ; | |
5688 | int res1 = 0 ; | |
5689 | void *argp2 = 0 ; | |
5690 | int res2 = 0 ; | |
5691 | PyObject * obj0 = 0 ; | |
5692 | PyObject * obj1 = 0 ; | |
5693 | char * kwnames[] = { | |
5694 | (char *) "self",(char *) "region", NULL | |
5695 | }; | |
5696 | ||
5697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",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_SetShape" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5701 | } | |
5702 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5703 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
5704 | if (!SWIG_IsOK(res2)) { | |
5705 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetShape" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
5706 | } | |
5707 | if (!argp2) { | |
5708 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetShape" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
5709 | } | |
5710 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
5711 | { | |
5712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5713 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
5714 | wxPyEndAllowThreads(__tstate); | |
5715 | if (PyErr_Occurred()) SWIG_fail; | |
5716 | } | |
5717 | { | |
5718 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5719 | } | |
5720 | return resultobj; | |
5721 | fail: | |
5722 | return NULL; | |
5723 | } | |
5724 | ||
5725 | ||
5726 | SWIGINTERN PyObject *_wrap_TopLevelWindow_RequestUserAttention(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5727 | PyObject *resultobj = 0; | |
5728 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5729 | int arg2 = (int) wxUSER_ATTENTION_INFO ; | |
5730 | void *argp1 = 0 ; | |
5731 | int res1 = 0 ; | |
5732 | int val2 ; | |
5733 | int ecode2 = 0 ; | |
5734 | PyObject * obj0 = 0 ; | |
5735 | PyObject * obj1 = 0 ; | |
5736 | char * kwnames[] = { | |
5737 | (char *) "self",(char *) "flags", NULL | |
5738 | }; | |
5739 | ||
5740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_RequestUserAttention",kwnames,&obj0,&obj1)) SWIG_fail; | |
5741 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5742 | if (!SWIG_IsOK(res1)) { | |
5743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_RequestUserAttention" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5744 | } | |
5745 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5746 | if (obj1) { | |
5747 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5748 | if (!SWIG_IsOK(ecode2)) { | |
5749 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_RequestUserAttention" "', expected argument " "2"" of type '" "int""'"); | |
5750 | } | |
5751 | arg2 = static_cast< int >(val2); | |
5752 | } | |
5753 | { | |
5754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5755 | (arg1)->RequestUserAttention(arg2); | |
5756 | wxPyEndAllowThreads(__tstate); | |
5757 | if (PyErr_Occurred()) SWIG_fail; | |
5758 | } | |
5759 | resultobj = SWIG_Py_Void(); | |
5760 | return resultobj; | |
5761 | fail: | |
5762 | return NULL; | |
b2dc1044 RD |
5763 | } |
5764 | ||
5765 | ||
0085ce49 RD |
5766 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5767 | PyObject *resultobj = 0; | |
5768 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5769 | bool result; | |
5770 | void *argp1 = 0 ; | |
5771 | int res1 = 0 ; | |
5772 | PyObject *swig_obj[1] ; | |
5773 | ||
5774 | if (!args) SWIG_fail; | |
5775 | swig_obj[0] = args; | |
5776 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5777 | if (!SWIG_IsOK(res1)) { | |
5778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsActive" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5779 | } | |
5780 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5781 | { | |
5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5783 | result = (bool)(arg1)->IsActive(); | |
5784 | wxPyEndAllowThreads(__tstate); | |
5785 | if (PyErr_Occurred()) SWIG_fail; | |
5786 | } | |
5787 | { | |
5788 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5789 | } | |
5790 | return resultobj; | |
5791 | fail: | |
5792 | return NULL; | |
5793 | } | |
5794 | ||
5795 | ||
5796 | SWIGINTERN PyObject *_wrap_TopLevelWindow_MacSetMetalAppearance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5797 | PyObject *resultobj = 0; | |
5798 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5799 | bool arg2 ; | |
5800 | void *argp1 = 0 ; | |
5801 | int res1 = 0 ; | |
5802 | bool val2 ; | |
5803 | int ecode2 = 0 ; | |
5804 | PyObject * obj0 = 0 ; | |
5805 | PyObject * obj1 = 0 ; | |
5806 | char * kwnames[] = { | |
5807 | (char *) "self",(char *) "on", NULL | |
5808 | }; | |
5809 | ||
5810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_MacSetMetalAppearance",kwnames,&obj0,&obj1)) SWIG_fail; | |
5811 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5812 | if (!SWIG_IsOK(res1)) { | |
5813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_MacSetMetalAppearance" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5814 | } | |
5815 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5816 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5817 | if (!SWIG_IsOK(ecode2)) { | |
5818 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_MacSetMetalAppearance" "', expected argument " "2"" of type '" "bool""'"); | |
5819 | } | |
5820 | arg2 = static_cast< bool >(val2); | |
5821 | { | |
5822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5823 | wxTopLevelWindow_MacSetMetalAppearance(arg1,arg2); | |
5824 | wxPyEndAllowThreads(__tstate); | |
5825 | if (PyErr_Occurred()) SWIG_fail; | |
5826 | } | |
5827 | resultobj = SWIG_Py_Void(); | |
5828 | return resultobj; | |
5829 | fail: | |
5830 | return NULL; | |
b2dc1044 RD |
5831 | } |
5832 | ||
5833 | ||
0085ce49 RD |
5834 | SWIGINTERN PyObject *_wrap_TopLevelWindow_MacGetMetalAppearance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5835 | PyObject *resultobj = 0; | |
5836 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5837 | bool result; | |
5838 | void *argp1 = 0 ; | |
5839 | int res1 = 0 ; | |
5840 | PyObject *swig_obj[1] ; | |
5841 | ||
5842 | if (!args) SWIG_fail; | |
5843 | swig_obj[0] = args; | |
5844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5845 | if (!SWIG_IsOK(res1)) { | |
5846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_MacGetMetalAppearance" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5847 | } | |
5848 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5849 | { | |
5850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5851 | result = (bool)wxTopLevelWindow_MacGetMetalAppearance((wxTopLevelWindow const *)arg1); | |
5852 | wxPyEndAllowThreads(__tstate); | |
5853 | if (PyErr_Occurred()) SWIG_fail; | |
5854 | } | |
5855 | { | |
5856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5857 | } | |
5858 | return resultobj; | |
5859 | fail: | |
5860 | return NULL; | |
5861 | } | |
5862 | ||
5863 | ||
5864 | SWIGINTERN PyObject *_wrap_TopLevelWindow_CenterOnScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5865 | PyObject *resultobj = 0; | |
5866 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5867 | int arg2 = (int) wxBOTH ; | |
5868 | void *argp1 = 0 ; | |
5869 | int res1 = 0 ; | |
5870 | int val2 ; | |
5871 | int ecode2 = 0 ; | |
5872 | PyObject * obj0 = 0 ; | |
5873 | PyObject * obj1 = 0 ; | |
5874 | char * kwnames[] = { | |
5875 | (char *) "self",(char *) "dir", NULL | |
5876 | }; | |
5877 | ||
5878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_CenterOnScreen",kwnames,&obj0,&obj1)) SWIG_fail; | |
5879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5880 | if (!SWIG_IsOK(res1)) { | |
5881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_CenterOnScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5882 | } | |
5883 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5884 | if (obj1) { | |
5885 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5886 | if (!SWIG_IsOK(ecode2)) { | |
5887 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_CenterOnScreen" "', expected argument " "2"" of type '" "int""'"); | |
5888 | } | |
5889 | arg2 = static_cast< int >(val2); | |
5890 | } | |
5891 | { | |
5892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5893 | (arg1)->CenterOnScreen(arg2); | |
5894 | wxPyEndAllowThreads(__tstate); | |
5895 | if (PyErr_Occurred()) SWIG_fail; | |
5896 | } | |
5897 | resultobj = SWIG_Py_Void(); | |
5898 | return resultobj; | |
5899 | fail: | |
5900 | return NULL; | |
5901 | } | |
5902 | ||
5903 | ||
5904 | SWIGINTERN PyObject *TopLevelWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5905 | PyObject *obj; | |
5906 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5907 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTopLevelWindow, SWIG_NewClientData(obj)); | |
5908 | return SWIG_Py_Void(); | |
5909 | } | |
5910 | ||
5911 | SWIGINTERN PyObject *_wrap_new_Frame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5912 | PyObject *resultobj = 0; | |
5913 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5914 | int arg2 = (int) (int)-1 ; | |
5915 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5916 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5917 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5918 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5919 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5920 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5921 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
5922 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
5923 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5924 | wxFrame *result = 0 ; | |
5925 | void *argp1 = 0 ; | |
5926 | int res1 = 0 ; | |
5927 | int val2 ; | |
5928 | int ecode2 = 0 ; | |
5929 | bool temp3 = false ; | |
5930 | wxPoint temp4 ; | |
5931 | wxSize temp5 ; | |
5932 | long val6 ; | |
5933 | int ecode6 = 0 ; | |
5934 | bool temp7 = false ; | |
5935 | PyObject * obj0 = 0 ; | |
5936 | PyObject * obj1 = 0 ; | |
5937 | PyObject * obj2 = 0 ; | |
5938 | PyObject * obj3 = 0 ; | |
5939 | PyObject * obj4 = 0 ; | |
5940 | PyObject * obj5 = 0 ; | |
5941 | PyObject * obj6 = 0 ; | |
5942 | char * kwnames[] = { | |
5943 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5944 | }; | |
5945 | ||
5946 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
5947 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5948 | if (!SWIG_IsOK(res1)) { | |
5949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Frame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5950 | } | |
5951 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5952 | if (obj1) { | |
5953 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5954 | if (!SWIG_IsOK(ecode2)) { | |
5955 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Frame" "', expected argument " "2"" of type '" "int""'"); | |
5956 | } | |
5957 | arg2 = static_cast< int >(val2); | |
5958 | } | |
5959 | if (obj2) { | |
b2dc1044 | 5960 | { |
0085ce49 RD |
5961 | arg3 = wxString_in_helper(obj2); |
5962 | if (arg3 == NULL) SWIG_fail; | |
5963 | temp3 = true; | |
b2dc1044 | 5964 | } |
0085ce49 RD |
5965 | } |
5966 | if (obj3) { | |
b2dc1044 | 5967 | { |
0085ce49 RD |
5968 | arg4 = &temp4; |
5969 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
b2dc1044 | 5970 | } |
0085ce49 RD |
5971 | } |
5972 | if (obj4) { | |
b2dc1044 | 5973 | { |
0085ce49 RD |
5974 | arg5 = &temp5; |
5975 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 5976 | } |
0085ce49 RD |
5977 | } |
5978 | if (obj5) { | |
5979 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
5980 | if (!SWIG_IsOK(ecode6)) { | |
5981 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Frame" "', expected argument " "6"" of type '" "long""'"); | |
5982 | } | |
5983 | arg6 = static_cast< long >(val6); | |
5984 | } | |
5985 | if (obj6) { | |
d14a1e28 | 5986 | { |
0085ce49 RD |
5987 | arg7 = wxString_in_helper(obj6); |
5988 | if (arg7 == NULL) SWIG_fail; | |
5989 | temp7 = true; | |
d14a1e28 | 5990 | } |
0085ce49 RD |
5991 | } |
5992 | { | |
5993 | if (!wxPyCheckForApp()) SWIG_fail; | |
5994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5995 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5996 | wxPyEndAllowThreads(__tstate); | |
5997 | if (PyErr_Occurred()) SWIG_fail; | |
5998 | } | |
5999 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFrame, SWIG_POINTER_NEW | 0 ); | |
6000 | { | |
6001 | if (temp3) | |
6002 | delete arg3; | |
6003 | } | |
6004 | { | |
6005 | if (temp7) | |
6006 | delete arg7; | |
6007 | } | |
6008 | return resultobj; | |
6009 | fail: | |
6010 | { | |
6011 | if (temp3) | |
6012 | delete arg3; | |
6013 | } | |
6014 | { | |
6015 | if (temp7) | |
6016 | delete arg7; | |
6017 | } | |
6018 | return NULL; | |
d14a1e28 RD |
6019 | } |
6020 | ||
6021 | ||
0085ce49 RD |
6022 | SWIGINTERN PyObject *_wrap_new_PreFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6023 | PyObject *resultobj = 0; | |
6024 | wxFrame *result = 0 ; | |
6025 | ||
6026 | if (!SWIG_Python_UnpackTuple(args,"new_PreFrame",0,0,0)) SWIG_fail; | |
6027 | { | |
6028 | if (!wxPyCheckForApp()) SWIG_fail; | |
6029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6030 | result = (wxFrame *)new wxFrame(); | |
6031 | wxPyEndAllowThreads(__tstate); | |
6032 | if (PyErr_Occurred()) SWIG_fail; | |
6033 | } | |
6034 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFrame, SWIG_POINTER_OWN | 0 ); | |
6035 | return resultobj; | |
6036 | fail: | |
6037 | return NULL; | |
6038 | } | |
6039 | ||
6040 | ||
6041 | SWIGINTERN PyObject *_wrap_Frame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6042 | PyObject *resultobj = 0; | |
6043 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6044 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6045 | int arg3 = (int) (int)-1 ; | |
6046 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6047 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6048 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6049 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6050 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6051 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6052 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
6053 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
6054 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6055 | bool result; | |
6056 | void *argp1 = 0 ; | |
6057 | int res1 = 0 ; | |
6058 | void *argp2 = 0 ; | |
6059 | int res2 = 0 ; | |
6060 | int val3 ; | |
6061 | int ecode3 = 0 ; | |
6062 | bool temp4 = false ; | |
6063 | wxPoint temp5 ; | |
6064 | wxSize temp6 ; | |
6065 | long val7 ; | |
6066 | int ecode7 = 0 ; | |
6067 | bool temp8 = false ; | |
6068 | PyObject * obj0 = 0 ; | |
6069 | PyObject * obj1 = 0 ; | |
6070 | PyObject * obj2 = 0 ; | |
6071 | PyObject * obj3 = 0 ; | |
6072 | PyObject * obj4 = 0 ; | |
6073 | PyObject * obj5 = 0 ; | |
6074 | PyObject * obj6 = 0 ; | |
6075 | PyObject * obj7 = 0 ; | |
6076 | char * kwnames[] = { | |
6077 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6078 | }; | |
6079 | ||
6080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
6081 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6082 | if (!SWIG_IsOK(res1)) { | |
6083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_Create" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6084 | } | |
6085 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6086 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6087 | if (!SWIG_IsOK(res2)) { | |
6088 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6089 | } | |
6090 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6091 | if (obj2) { | |
6092 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6093 | if (!SWIG_IsOK(ecode3)) { | |
6094 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_Create" "', expected argument " "3"" of type '" "int""'"); | |
6095 | } | |
6096 | arg3 = static_cast< int >(val3); | |
6097 | } | |
6098 | if (obj3) { | |
d14a1e28 | 6099 | { |
0085ce49 RD |
6100 | arg4 = wxString_in_helper(obj3); |
6101 | if (arg4 == NULL) SWIG_fail; | |
6102 | temp4 = true; | |
d14a1e28 | 6103 | } |
0085ce49 RD |
6104 | } |
6105 | if (obj4) { | |
4f89f6a3 | 6106 | { |
0085ce49 RD |
6107 | arg5 = &temp5; |
6108 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 6109 | } |
0085ce49 RD |
6110 | } |
6111 | if (obj5) { | |
d14a1e28 | 6112 | { |
0085ce49 RD |
6113 | arg6 = &temp6; |
6114 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 6115 | } |
0085ce49 RD |
6116 | } |
6117 | if (obj6) { | |
6118 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
6119 | if (!SWIG_IsOK(ecode7)) { | |
6120 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Frame_Create" "', expected argument " "7"" of type '" "long""'"); | |
6121 | } | |
6122 | arg7 = static_cast< long >(val7); | |
6123 | } | |
6124 | if (obj7) { | |
4f89f6a3 | 6125 | { |
0085ce49 RD |
6126 | arg8 = wxString_in_helper(obj7); |
6127 | if (arg8 == NULL) SWIG_fail; | |
6128 | temp8 = true; | |
4f89f6a3 | 6129 | } |
0085ce49 RD |
6130 | } |
6131 | { | |
6132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6133 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6134 | wxPyEndAllowThreads(__tstate); | |
6135 | if (PyErr_Occurred()) SWIG_fail; | |
6136 | } | |
6137 | { | |
6138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6139 | } | |
6140 | { | |
6141 | if (temp4) | |
6142 | delete arg4; | |
6143 | } | |
6144 | { | |
6145 | if (temp8) | |
6146 | delete arg8; | |
6147 | } | |
6148 | return resultobj; | |
6149 | fail: | |
6150 | { | |
6151 | if (temp4) | |
6152 | delete arg4; | |
6153 | } | |
6154 | { | |
6155 | if (temp8) | |
6156 | delete arg8; | |
6157 | } | |
6158 | return NULL; | |
d14a1e28 RD |
6159 | } |
6160 | ||
6161 | ||
0085ce49 RD |
6162 | SWIGINTERN PyObject *_wrap_Frame_SendSizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6163 | PyObject *resultobj = 0; | |
6164 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6165 | void *argp1 = 0 ; | |
6166 | int res1 = 0 ; | |
6167 | PyObject *swig_obj[1] ; | |
6168 | ||
6169 | if (!args) SWIG_fail; | |
6170 | swig_obj[0] = args; | |
6171 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6172 | if (!SWIG_IsOK(res1)) { | |
6173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SendSizeEvent" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6174 | } | |
6175 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6176 | { | |
6177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6178 | (arg1)->SendSizeEvent(); | |
6179 | wxPyEndAllowThreads(__tstate); | |
6180 | if (PyErr_Occurred()) SWIG_fail; | |
6181 | } | |
6182 | resultobj = SWIG_Py_Void(); | |
6183 | return resultobj; | |
6184 | fail: | |
6185 | return NULL; | |
6186 | } | |
6187 | ||
6188 | ||
6189 | SWIGINTERN PyObject *_wrap_Frame_SetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6190 | PyObject *resultobj = 0; | |
6191 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6192 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
6193 | void *argp1 = 0 ; | |
6194 | int res1 = 0 ; | |
6195 | void *argp2 = 0 ; | |
6196 | int res2 = 0 ; | |
6197 | PyObject * obj0 = 0 ; | |
6198 | PyObject * obj1 = 0 ; | |
6199 | char * kwnames[] = { | |
6200 | (char *) "self",(char *) "menubar", NULL | |
6201 | }; | |
6202 | ||
6203 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6204 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6205 | if (!SWIG_IsOK(res1)) { | |
6206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetMenuBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6207 | } | |
6208 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6209 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuBar, 0 | 0 ); | |
6210 | if (!SWIG_IsOK(res2)) { | |
6211 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetMenuBar" "', expected argument " "2"" of type '" "wxMenuBar *""'"); | |
6212 | } | |
6213 | arg2 = reinterpret_cast< wxMenuBar * >(argp2); | |
6214 | { | |
6215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6216 | (arg1)->SetMenuBar(arg2); | |
6217 | wxPyEndAllowThreads(__tstate); | |
6218 | if (PyErr_Occurred()) SWIG_fail; | |
6219 | } | |
6220 | resultobj = SWIG_Py_Void(); | |
6221 | return resultobj; | |
6222 | fail: | |
6223 | return NULL; | |
d14a1e28 RD |
6224 | } |
6225 | ||
6226 | ||
0085ce49 RD |
6227 | SWIGINTERN PyObject *_wrap_Frame_GetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6228 | PyObject *resultobj = 0; | |
6229 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6230 | wxMenuBar *result = 0 ; | |
6231 | void *argp1 = 0 ; | |
6232 | int res1 = 0 ; | |
6233 | PyObject *swig_obj[1] ; | |
6234 | ||
6235 | if (!args) SWIG_fail; | |
6236 | swig_obj[0] = args; | |
6237 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6238 | if (!SWIG_IsOK(res1)) { | |
6239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetMenuBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6240 | } | |
6241 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6242 | { | |
6243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6244 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
6245 | wxPyEndAllowThreads(__tstate); | |
6246 | if (PyErr_Occurred()) SWIG_fail; | |
6247 | } | |
6248 | { | |
6249 | resultobj = wxPyMake_wxObject(result, 0); | |
6250 | } | |
6251 | return resultobj; | |
6252 | fail: | |
6253 | return NULL; | |
6254 | } | |
6255 | ||
6256 | ||
6257 | SWIGINTERN PyObject *_wrap_Frame_ProcessCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6258 | PyObject *resultobj = 0; | |
6259 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6260 | int arg2 ; | |
6261 | bool result; | |
6262 | void *argp1 = 0 ; | |
6263 | int res1 = 0 ; | |
6264 | int val2 ; | |
6265 | int ecode2 = 0 ; | |
6266 | PyObject * obj0 = 0 ; | |
6267 | PyObject * obj1 = 0 ; | |
6268 | char * kwnames[] = { | |
6269 | (char *) "self",(char *) "winid", NULL | |
6270 | }; | |
6271 | ||
6272 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) SWIG_fail; | |
6273 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6274 | if (!SWIG_IsOK(res1)) { | |
6275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_ProcessCommand" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6276 | } | |
6277 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6278 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6279 | if (!SWIG_IsOK(ecode2)) { | |
6280 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_ProcessCommand" "', expected argument " "2"" of type '" "int""'"); | |
6281 | } | |
6282 | arg2 = static_cast< int >(val2); | |
6283 | { | |
6284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6285 | result = (bool)(arg1)->ProcessCommand(arg2); | |
6286 | wxPyEndAllowThreads(__tstate); | |
6287 | if (PyErr_Occurred()) SWIG_fail; | |
6288 | } | |
6289 | { | |
6290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6291 | } | |
6292 | return resultobj; | |
6293 | fail: | |
6294 | return NULL; | |
6295 | } | |
6296 | ||
6297 | ||
6298 | SWIGINTERN PyObject *_wrap_Frame_CreateStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6299 | PyObject *resultobj = 0; | |
6300 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6301 | int arg2 = (int) 1 ; | |
6302 | long arg3 = (long) wxDEFAULT_STATUSBAR_STYLE ; | |
6303 | int arg4 = (int) 0 ; | |
6304 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
6305 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
6306 | wxStatusBar *result = 0 ; | |
6307 | void *argp1 = 0 ; | |
6308 | int res1 = 0 ; | |
6309 | int val2 ; | |
6310 | int ecode2 = 0 ; | |
6311 | long val3 ; | |
6312 | int ecode3 = 0 ; | |
6313 | int val4 ; | |
6314 | int ecode4 = 0 ; | |
6315 | bool temp5 = false ; | |
6316 | PyObject * obj0 = 0 ; | |
6317 | PyObject * obj1 = 0 ; | |
6318 | PyObject * obj2 = 0 ; | |
6319 | PyObject * obj3 = 0 ; | |
6320 | PyObject * obj4 = 0 ; | |
6321 | char * kwnames[] = { | |
6322 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
6323 | }; | |
6324 | ||
6325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
6326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6327 | if (!SWIG_IsOK(res1)) { | |
6328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_CreateStatusBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6329 | } | |
6330 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6331 | if (obj1) { | |
6332 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6333 | if (!SWIG_IsOK(ecode2)) { | |
6334 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_CreateStatusBar" "', expected argument " "2"" of type '" "int""'"); | |
6335 | } | |
6336 | arg2 = static_cast< int >(val2); | |
6337 | } | |
6338 | if (obj2) { | |
6339 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6340 | if (!SWIG_IsOK(ecode3)) { | |
6341 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_CreateStatusBar" "', expected argument " "3"" of type '" "long""'"); | |
6342 | } | |
6343 | arg3 = static_cast< long >(val3); | |
6344 | } | |
6345 | if (obj3) { | |
6346 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6347 | if (!SWIG_IsOK(ecode4)) { | |
6348 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Frame_CreateStatusBar" "', expected argument " "4"" of type '" "int""'"); | |
6349 | } | |
6350 | arg4 = static_cast< int >(val4); | |
6351 | } | |
6352 | if (obj4) { | |
093d3ff1 | 6353 | { |
0085ce49 RD |
6354 | arg5 = wxString_in_helper(obj4); |
6355 | if (arg5 == NULL) SWIG_fail; | |
6356 | temp5 = true; | |
d14a1e28 | 6357 | } |
0085ce49 RD |
6358 | } |
6359 | { | |
6360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6361 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
6362 | wxPyEndAllowThreads(__tstate); | |
6363 | if (PyErr_Occurred()) SWIG_fail; | |
6364 | } | |
6365 | { | |
6366 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6367 | } | |
6368 | { | |
6369 | if (temp5) | |
6370 | delete arg5; | |
6371 | } | |
6372 | return resultobj; | |
6373 | fail: | |
6374 | { | |
6375 | if (temp5) | |
6376 | delete arg5; | |
6377 | } | |
6378 | return NULL; | |
d14a1e28 RD |
6379 | } |
6380 | ||
6381 | ||
0085ce49 RD |
6382 | SWIGINTERN PyObject *_wrap_Frame_GetStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6383 | PyObject *resultobj = 0; | |
6384 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6385 | wxStatusBar *result = 0 ; | |
6386 | void *argp1 = 0 ; | |
6387 | int res1 = 0 ; | |
6388 | PyObject *swig_obj[1] ; | |
6389 | ||
6390 | if (!args) SWIG_fail; | |
6391 | swig_obj[0] = args; | |
6392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6393 | if (!SWIG_IsOK(res1)) { | |
6394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetStatusBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6395 | } | |
6396 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6397 | { | |
6398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6399 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
6400 | wxPyEndAllowThreads(__tstate); | |
6401 | if (PyErr_Occurred()) SWIG_fail; | |
6402 | } | |
6403 | { | |
6404 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6405 | } | |
6406 | return resultobj; | |
6407 | fail: | |
6408 | return NULL; | |
6409 | } | |
6410 | ||
6411 | ||
6412 | SWIGINTERN PyObject *_wrap_Frame_SetStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6413 | PyObject *resultobj = 0; | |
6414 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6415 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
6416 | void *argp1 = 0 ; | |
6417 | int res1 = 0 ; | |
6418 | void *argp2 = 0 ; | |
6419 | int res2 = 0 ; | |
6420 | PyObject * obj0 = 0 ; | |
6421 | PyObject * obj1 = 0 ; | |
6422 | char * kwnames[] = { | |
6423 | (char *) "self",(char *) "statBar", NULL | |
6424 | }; | |
6425 | ||
6426 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6427 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6428 | if (!SWIG_IsOK(res1)) { | |
6429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6430 | } | |
6431 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6432 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
6433 | if (!SWIG_IsOK(res2)) { | |
6434 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetStatusBar" "', expected argument " "2"" of type '" "wxStatusBar *""'"); | |
6435 | } | |
6436 | arg2 = reinterpret_cast< wxStatusBar * >(argp2); | |
6437 | { | |
6438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6439 | (arg1)->SetStatusBar(arg2); | |
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_SetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6451 | PyObject *resultobj = 0; | |
6452 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6453 | wxString *arg2 = 0 ; | |
6454 | int arg3 = (int) 0 ; | |
6455 | void *argp1 = 0 ; | |
6456 | int res1 = 0 ; | |
6457 | bool temp2 = false ; | |
6458 | int val3 ; | |
6459 | int ecode3 = 0 ; | |
6460 | PyObject * obj0 = 0 ; | |
6461 | PyObject * obj1 = 0 ; | |
6462 | PyObject * obj2 = 0 ; | |
6463 | char * kwnames[] = { | |
6464 | (char *) "self",(char *) "text",(char *) "number", NULL | |
6465 | }; | |
6466 | ||
6467 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6468 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6469 | if (!SWIG_IsOK(res1)) { | |
6470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6471 | } | |
6472 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6473 | { | |
6474 | arg2 = wxString_in_helper(obj1); | |
6475 | if (arg2 == NULL) SWIG_fail; | |
6476 | temp2 = true; | |
6477 | } | |
6478 | if (obj2) { | |
6479 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6480 | if (!SWIG_IsOK(ecode3)) { | |
6481 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_SetStatusText" "', expected argument " "3"" of type '" "int""'"); | |
6482 | } | |
6483 | arg3 = static_cast< int >(val3); | |
6484 | } | |
6485 | { | |
6486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6487 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
6488 | wxPyEndAllowThreads(__tstate); | |
6489 | if (PyErr_Occurred()) SWIG_fail; | |
6490 | } | |
6491 | resultobj = SWIG_Py_Void(); | |
6492 | { | |
6493 | if (temp2) | |
6494 | delete arg2; | |
6495 | } | |
6496 | return resultobj; | |
6497 | fail: | |
6498 | { | |
6499 | if (temp2) | |
6500 | delete arg2; | |
6501 | } | |
6502 | return NULL; | |
d14a1e28 RD |
6503 | } |
6504 | ||
6505 | ||
0085ce49 RD |
6506 | SWIGINTERN PyObject *_wrap_Frame_SetStatusWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6507 | PyObject *resultobj = 0; | |
6508 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6509 | int arg2 ; | |
6510 | int *arg3 = (int *) 0 ; | |
6511 | void *argp1 = 0 ; | |
6512 | int res1 = 0 ; | |
6513 | PyObject * obj0 = 0 ; | |
6514 | PyObject * obj1 = 0 ; | |
6515 | char * kwnames[] = { | |
6516 | (char *) "self",(char *) "widths", NULL | |
6517 | }; | |
6518 | ||
6519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) SWIG_fail; | |
6520 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6521 | if (!SWIG_IsOK(res1)) { | |
6522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusWidths" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6523 | } | |
6524 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6525 | { | |
6526 | arg2 = PyList_Size(obj1); | |
6527 | arg3 = int_LIST_helper(obj1); | |
6528 | if (arg3 == NULL) SWIG_fail; | |
6529 | } | |
6530 | { | |
6531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6532 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
6533 | wxPyEndAllowThreads(__tstate); | |
6534 | if (PyErr_Occurred()) SWIG_fail; | |
6535 | } | |
6536 | resultobj = SWIG_Py_Void(); | |
6537 | { | |
6538 | if (arg3) delete [] arg3; | |
6539 | } | |
6540 | return resultobj; | |
6541 | fail: | |
6542 | { | |
6543 | if (arg3) delete [] arg3; | |
6544 | } | |
6545 | return NULL; | |
6546 | } | |
6547 | ||
6548 | ||
6549 | SWIGINTERN PyObject *_wrap_Frame_PushStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6550 | PyObject *resultobj = 0; | |
6551 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6552 | wxString *arg2 = 0 ; | |
6553 | int arg3 = (int) 0 ; | |
6554 | void *argp1 = 0 ; | |
6555 | int res1 = 0 ; | |
6556 | bool temp2 = false ; | |
6557 | int val3 ; | |
6558 | int ecode3 = 0 ; | |
6559 | PyObject * obj0 = 0 ; | |
6560 | PyObject * obj1 = 0 ; | |
6561 | PyObject * obj2 = 0 ; | |
6562 | char * kwnames[] = { | |
6563 | (char *) "self",(char *) "text",(char *) "number", NULL | |
6564 | }; | |
6565 | ||
6566 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6567 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6568 | if (!SWIG_IsOK(res1)) { | |
6569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_PushStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6570 | } | |
6571 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6572 | { | |
6573 | arg2 = wxString_in_helper(obj1); | |
6574 | if (arg2 == NULL) SWIG_fail; | |
6575 | temp2 = true; | |
6576 | } | |
6577 | if (obj2) { | |
6578 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6579 | if (!SWIG_IsOK(ecode3)) { | |
6580 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_PushStatusText" "', expected argument " "3"" of type '" "int""'"); | |
6581 | } | |
6582 | arg3 = static_cast< int >(val3); | |
6583 | } | |
6584 | { | |
6585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6586 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
6587 | wxPyEndAllowThreads(__tstate); | |
6588 | if (PyErr_Occurred()) SWIG_fail; | |
6589 | } | |
6590 | resultobj = SWIG_Py_Void(); | |
6591 | { | |
6592 | if (temp2) | |
6593 | delete arg2; | |
6594 | } | |
6595 | return resultobj; | |
6596 | fail: | |
6597 | { | |
6598 | if (temp2) | |
6599 | delete arg2; | |
6600 | } | |
6601 | return NULL; | |
6602 | } | |
6603 | ||
6604 | ||
6605 | SWIGINTERN PyObject *_wrap_Frame_PopStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6606 | PyObject *resultobj = 0; | |
6607 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6608 | int arg2 = (int) 0 ; | |
6609 | void *argp1 = 0 ; | |
6610 | int res1 = 0 ; | |
6611 | int val2 ; | |
6612 | int ecode2 = 0 ; | |
6613 | PyObject * obj0 = 0 ; | |
6614 | PyObject * obj1 = 0 ; | |
6615 | char * kwnames[] = { | |
6616 | (char *) "self",(char *) "number", NULL | |
6617 | }; | |
6618 | ||
6619 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
6620 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6621 | if (!SWIG_IsOK(res1)) { | |
6622 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_PopStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6623 | } | |
6624 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6625 | if (obj1) { | |
6626 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6627 | if (!SWIG_IsOK(ecode2)) { | |
6628 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_PopStatusText" "', expected argument " "2"" of type '" "int""'"); | |
6629 | } | |
6630 | arg2 = static_cast< int >(val2); | |
6631 | } | |
6632 | { | |
6633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6634 | (arg1)->PopStatusText(arg2); | |
6635 | wxPyEndAllowThreads(__tstate); | |
6636 | if (PyErr_Occurred()) SWIG_fail; | |
6637 | } | |
6638 | resultobj = SWIG_Py_Void(); | |
6639 | return resultobj; | |
6640 | fail: | |
6641 | return NULL; | |
6642 | } | |
6643 | ||
6644 | ||
6645 | SWIGINTERN PyObject *_wrap_Frame_SetStatusBarPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6646 | PyObject *resultobj = 0; | |
6647 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6648 | int arg2 ; | |
6649 | void *argp1 = 0 ; | |
6650 | int res1 = 0 ; | |
6651 | int val2 ; | |
6652 | int ecode2 = 0 ; | |
6653 | PyObject * obj0 = 0 ; | |
6654 | PyObject * obj1 = 0 ; | |
6655 | char * kwnames[] = { | |
6656 | (char *) "self",(char *) "n", NULL | |
6657 | }; | |
6658 | ||
6659 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) SWIG_fail; | |
6660 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6661 | if (!SWIG_IsOK(res1)) { | |
6662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusBarPane" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6663 | } | |
6664 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6665 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6666 | if (!SWIG_IsOK(ecode2)) { | |
6667 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_SetStatusBarPane" "', expected argument " "2"" of type '" "int""'"); | |
6668 | } | |
6669 | arg2 = static_cast< int >(val2); | |
6670 | { | |
6671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6672 | (arg1)->SetStatusBarPane(arg2); | |
6673 | wxPyEndAllowThreads(__tstate); | |
6674 | if (PyErr_Occurred()) SWIG_fail; | |
6675 | } | |
6676 | resultobj = SWIG_Py_Void(); | |
6677 | return resultobj; | |
6678 | fail: | |
6679 | return NULL; | |
d14a1e28 RD |
6680 | } |
6681 | ||
6682 | ||
0085ce49 RD |
6683 | SWIGINTERN PyObject *_wrap_Frame_GetStatusBarPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6684 | PyObject *resultobj = 0; | |
6685 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6686 | int result; | |
6687 | void *argp1 = 0 ; | |
6688 | int res1 = 0 ; | |
6689 | PyObject *swig_obj[1] ; | |
6690 | ||
6691 | if (!args) SWIG_fail; | |
6692 | swig_obj[0] = args; | |
6693 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6694 | if (!SWIG_IsOK(res1)) { | |
6695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetStatusBarPane" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6696 | } | |
6697 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6698 | { | |
6699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6700 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
6701 | wxPyEndAllowThreads(__tstate); | |
6702 | if (PyErr_Occurred()) SWIG_fail; | |
6703 | } | |
6704 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6705 | return resultobj; | |
6706 | fail: | |
6707 | return NULL; | |
6708 | } | |
6709 | ||
6710 | ||
6711 | SWIGINTERN PyObject *_wrap_Frame_CreateToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6712 | PyObject *resultobj = 0; | |
6713 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6714 | long arg2 = (long) -1 ; | |
6715 | int arg3 = (int) -1 ; | |
6716 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; | |
6717 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6718 | wxToolBar *result = 0 ; | |
6719 | void *argp1 = 0 ; | |
6720 | int res1 = 0 ; | |
6721 | long val2 ; | |
6722 | int ecode2 = 0 ; | |
6723 | int val3 ; | |
6724 | int ecode3 = 0 ; | |
6725 | bool temp4 = false ; | |
6726 | PyObject * obj0 = 0 ; | |
6727 | PyObject * obj1 = 0 ; | |
6728 | PyObject * obj2 = 0 ; | |
6729 | PyObject * obj3 = 0 ; | |
6730 | char * kwnames[] = { | |
6731 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
6732 | }; | |
6733 | ||
6734 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6735 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6736 | if (!SWIG_IsOK(res1)) { | |
6737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_CreateToolBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6738 | } | |
6739 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6740 | if (obj1) { | |
6741 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6742 | if (!SWIG_IsOK(ecode2)) { | |
6743 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_CreateToolBar" "', expected argument " "2"" of type '" "long""'"); | |
6744 | } | |
6745 | arg2 = static_cast< long >(val2); | |
6746 | } | |
6747 | if (obj2) { | |
6748 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6749 | if (!SWIG_IsOK(ecode3)) { | |
6750 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_CreateToolBar" "', expected argument " "3"" of type '" "int""'"); | |
6751 | } | |
6752 | arg3 = static_cast< int >(val3); | |
6753 | } | |
6754 | if (obj3) { | |
4f89f6a3 | 6755 | { |
0085ce49 RD |
6756 | arg4 = wxString_in_helper(obj3); |
6757 | if (arg4 == NULL) SWIG_fail; | |
6758 | temp4 = true; | |
4f89f6a3 | 6759 | } |
0085ce49 RD |
6760 | } |
6761 | { | |
6762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6763 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
6764 | wxPyEndAllowThreads(__tstate); | |
6765 | if (PyErr_Occurred()) SWIG_fail; | |
6766 | } | |
6767 | { | |
6768 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6769 | } | |
6770 | { | |
6771 | if (temp4) | |
6772 | delete arg4; | |
6773 | } | |
6774 | return resultobj; | |
6775 | fail: | |
6776 | { | |
6777 | if (temp4) | |
6778 | delete arg4; | |
6779 | } | |
6780 | return NULL; | |
d14a1e28 RD |
6781 | } |
6782 | ||
6783 | ||
0085ce49 RD |
6784 | SWIGINTERN PyObject *_wrap_Frame_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6785 | PyObject *resultobj = 0; | |
6786 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6787 | wxToolBar *result = 0 ; | |
6788 | void *argp1 = 0 ; | |
6789 | int res1 = 0 ; | |
6790 | PyObject *swig_obj[1] ; | |
6791 | ||
6792 | if (!args) SWIG_fail; | |
6793 | swig_obj[0] = args; | |
6794 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6795 | if (!SWIG_IsOK(res1)) { | |
6796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetToolBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6797 | } | |
6798 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6799 | { | |
6800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6801 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
6802 | wxPyEndAllowThreads(__tstate); | |
6803 | if (PyErr_Occurred()) SWIG_fail; | |
6804 | } | |
6805 | { | |
6806 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6807 | } | |
6808 | return resultobj; | |
6809 | fail: | |
6810 | return NULL; | |
6811 | } | |
6812 | ||
6813 | ||
6814 | SWIGINTERN PyObject *_wrap_Frame_SetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6815 | PyObject *resultobj = 0; | |
6816 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6817 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
6818 | void *argp1 = 0 ; | |
6819 | int res1 = 0 ; | |
6820 | void *argp2 = 0 ; | |
6821 | int res2 = 0 ; | |
6822 | PyObject * obj0 = 0 ; | |
6823 | PyObject * obj1 = 0 ; | |
6824 | char * kwnames[] = { | |
6825 | (char *) "self",(char *) "toolbar", NULL | |
6826 | }; | |
6827 | ||
6828 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6829 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6830 | if (!SWIG_IsOK(res1)) { | |
6831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetToolBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6832 | } | |
6833 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6834 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
6835 | if (!SWIG_IsOK(res2)) { | |
6836 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetToolBar" "', expected argument " "2"" of type '" "wxToolBar *""'"); | |
6837 | } | |
6838 | arg2 = reinterpret_cast< wxToolBar * >(argp2); | |
6839 | { | |
6840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6841 | (arg1)->SetToolBar(arg2); | |
6842 | wxPyEndAllowThreads(__tstate); | |
6843 | if (PyErr_Occurred()) SWIG_fail; | |
6844 | } | |
6845 | resultobj = SWIG_Py_Void(); | |
6846 | return resultobj; | |
6847 | fail: | |
6848 | return NULL; | |
6849 | } | |
6850 | ||
6851 | ||
6852 | SWIGINTERN PyObject *_wrap_Frame_DoGiveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6853 | PyObject *resultobj = 0; | |
6854 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6855 | wxString *arg2 = 0 ; | |
6856 | bool arg3 ; | |
6857 | void *argp1 = 0 ; | |
6858 | int res1 = 0 ; | |
6859 | bool temp2 = false ; | |
6860 | bool val3 ; | |
6861 | int ecode3 = 0 ; | |
6862 | PyObject * obj0 = 0 ; | |
6863 | PyObject * obj1 = 0 ; | |
6864 | PyObject * obj2 = 0 ; | |
6865 | char * kwnames[] = { | |
6866 | (char *) "self",(char *) "text",(char *) "show", NULL | |
6867 | }; | |
6868 | ||
6869 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6870 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6871 | if (!SWIG_IsOK(res1)) { | |
6872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_DoGiveHelp" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6873 | } | |
6874 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6875 | { | |
6876 | arg2 = wxString_in_helper(obj1); | |
6877 | if (arg2 == NULL) SWIG_fail; | |
6878 | temp2 = true; | |
6879 | } | |
6880 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
6881 | if (!SWIG_IsOK(ecode3)) { | |
6882 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_DoGiveHelp" "', expected argument " "3"" of type '" "bool""'"); | |
6883 | } | |
6884 | arg3 = static_cast< bool >(val3); | |
6885 | { | |
6886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6887 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
6888 | wxPyEndAllowThreads(__tstate); | |
6889 | if (PyErr_Occurred()) SWIG_fail; | |
6890 | } | |
6891 | resultobj = SWIG_Py_Void(); | |
6892 | { | |
6893 | if (temp2) | |
6894 | delete arg2; | |
6895 | } | |
6896 | return resultobj; | |
6897 | fail: | |
6898 | { | |
6899 | if (temp2) | |
6900 | delete arg2; | |
6901 | } | |
6902 | return NULL; | |
6903 | } | |
6904 | ||
6905 | ||
6906 | SWIGINTERN PyObject *_wrap_Frame_DoMenuUpdates(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6907 | PyObject *resultobj = 0; | |
6908 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6909 | wxMenu *arg2 = (wxMenu *) NULL ; | |
6910 | void *argp1 = 0 ; | |
6911 | int res1 = 0 ; | |
6912 | void *argp2 = 0 ; | |
6913 | int res2 = 0 ; | |
6914 | PyObject * obj0 = 0 ; | |
6915 | PyObject * obj1 = 0 ; | |
6916 | char * kwnames[] = { | |
6917 | (char *) "self",(char *) "menu", NULL | |
6918 | }; | |
6919 | ||
6920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",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_DoMenuUpdates" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6924 | } | |
6925 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6926 | if (obj1) { | |
6927 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
6928 | if (!SWIG_IsOK(res2)) { | |
6929 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_DoMenuUpdates" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
d14a1e28 | 6930 | } |
0085ce49 RD |
6931 | arg2 = reinterpret_cast< wxMenu * >(argp2); |
6932 | } | |
6933 | { | |
6934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6935 | (arg1)->DoMenuUpdates(arg2); | |
6936 | wxPyEndAllowThreads(__tstate); | |
6937 | if (PyErr_Occurred()) SWIG_fail; | |
6938 | } | |
6939 | resultobj = SWIG_Py_Void(); | |
6940 | return resultobj; | |
6941 | fail: | |
6942 | return NULL; | |
6943 | } | |
6944 | ||
6945 | ||
6946 | SWIGINTERN PyObject *_wrap_Frame_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6947 | PyObject *resultobj = 0; | |
6948 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
6949 | SwigValueWrapper<wxVisualAttributes > result; | |
6950 | int val1 ; | |
6951 | int ecode1 = 0 ; | |
6952 | PyObject * obj0 = 0 ; | |
6953 | char * kwnames[] = { | |
6954 | (char *) "variant", NULL | |
6955 | }; | |
6956 | ||
6957 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Frame_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
6958 | if (obj0) { | |
6959 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6960 | if (!SWIG_IsOK(ecode1)) { | |
6961 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Frame_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
6962 | } | |
6963 | arg1 = static_cast< wxWindowVariant >(val1); | |
6964 | } | |
6965 | { | |
6966 | if (!wxPyCheckForApp()) SWIG_fail; | |
6967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6968 | result = wxFrame::GetClassDefaultAttributes(arg1); | |
6969 | wxPyEndAllowThreads(__tstate); | |
6970 | if (PyErr_Occurred()) SWIG_fail; | |
6971 | } | |
6972 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
6973 | return resultobj; | |
6974 | fail: | |
6975 | return NULL; | |
6976 | } | |
6977 | ||
6978 | ||
6979 | SWIGINTERN PyObject *Frame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6980 | PyObject *obj; | |
6981 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6982 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFrame, SWIG_NewClientData(obj)); | |
6983 | return SWIG_Py_Void(); | |
6984 | } | |
6985 | ||
6986 | SWIGINTERN PyObject *Frame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6987 | return SWIG_Python_InitShadowInstance(args); | |
6988 | } | |
6989 | ||
6990 | SWIGINTERN PyObject *_wrap_new_Dialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6991 | PyObject *resultobj = 0; | |
6992 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6993 | int arg2 = (int) (int)-1 ; | |
6994 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6995 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6996 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6997 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6998 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6999 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7000 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
7001 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
7002 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7003 | wxDialog *result = 0 ; | |
7004 | void *argp1 = 0 ; | |
7005 | int res1 = 0 ; | |
7006 | int val2 ; | |
7007 | int ecode2 = 0 ; | |
7008 | bool temp3 = false ; | |
7009 | wxPoint temp4 ; | |
7010 | wxSize temp5 ; | |
7011 | long val6 ; | |
7012 | int ecode6 = 0 ; | |
7013 | bool temp7 = false ; | |
7014 | PyObject * obj0 = 0 ; | |
7015 | PyObject * obj1 = 0 ; | |
7016 | PyObject * obj2 = 0 ; | |
7017 | PyObject * obj3 = 0 ; | |
7018 | PyObject * obj4 = 0 ; | |
7019 | PyObject * obj5 = 0 ; | |
7020 | PyObject * obj6 = 0 ; | |
7021 | char * kwnames[] = { | |
7022 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7023 | }; | |
7024 | ||
7025 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7026 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7027 | if (!SWIG_IsOK(res1)) { | |
7028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Dialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7029 | } | |
7030 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7031 | if (obj1) { | |
7032 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7033 | if (!SWIG_IsOK(ecode2)) { | |
7034 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Dialog" "', expected argument " "2"" of type '" "int""'"); | |
7035 | } | |
7036 | arg2 = static_cast< int >(val2); | |
7037 | } | |
7038 | if (obj2) { | |
d14a1e28 | 7039 | { |
0085ce49 RD |
7040 | arg3 = wxString_in_helper(obj2); |
7041 | if (arg3 == NULL) SWIG_fail; | |
7042 | temp3 = true; | |
d14a1e28 | 7043 | } |
0085ce49 RD |
7044 | } |
7045 | if (obj3) { | |
d14a1e28 | 7046 | { |
0085ce49 RD |
7047 | arg4 = &temp4; |
7048 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 7049 | } |
0085ce49 RD |
7050 | } |
7051 | if (obj4) { | |
d14a1e28 | 7052 | { |
0085ce49 RD |
7053 | arg5 = &temp5; |
7054 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 7055 | } |
0085ce49 RD |
7056 | } |
7057 | if (obj5) { | |
7058 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7059 | if (!SWIG_IsOK(ecode6)) { | |
7060 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Dialog" "', expected argument " "6"" of type '" "long""'"); | |
7061 | } | |
7062 | arg6 = static_cast< long >(val6); | |
7063 | } | |
7064 | if (obj6) { | |
d14a1e28 | 7065 | { |
0085ce49 RD |
7066 | arg7 = wxString_in_helper(obj6); |
7067 | if (arg7 == NULL) SWIG_fail; | |
7068 | temp7 = true; | |
d14a1e28 | 7069 | } |
0085ce49 RD |
7070 | } |
7071 | { | |
7072 | if (!wxPyCheckForApp()) SWIG_fail; | |
7073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7074 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7075 | wxPyEndAllowThreads(__tstate); | |
7076 | if (PyErr_Occurred()) SWIG_fail; | |
7077 | } | |
7078 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDialog, SWIG_POINTER_NEW | 0 ); | |
7079 | { | |
7080 | if (temp3) | |
7081 | delete arg3; | |
7082 | } | |
7083 | { | |
7084 | if (temp7) | |
7085 | delete arg7; | |
7086 | } | |
7087 | return resultobj; | |
7088 | fail: | |
7089 | { | |
7090 | if (temp3) | |
7091 | delete arg3; | |
7092 | } | |
7093 | { | |
7094 | if (temp7) | |
7095 | delete arg7; | |
7096 | } | |
7097 | return NULL; | |
d14a1e28 RD |
7098 | } |
7099 | ||
7100 | ||
0085ce49 RD |
7101 | SWIGINTERN PyObject *_wrap_new_PreDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7102 | PyObject *resultobj = 0; | |
7103 | wxDialog *result = 0 ; | |
7104 | ||
7105 | if (!SWIG_Python_UnpackTuple(args,"new_PreDialog",0,0,0)) SWIG_fail; | |
7106 | { | |
7107 | if (!wxPyCheckForApp()) SWIG_fail; | |
7108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7109 | result = (wxDialog *)new wxDialog(); | |
7110 | wxPyEndAllowThreads(__tstate); | |
7111 | if (PyErr_Occurred()) SWIG_fail; | |
7112 | } | |
7113 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDialog, SWIG_POINTER_OWN | 0 ); | |
7114 | return resultobj; | |
7115 | fail: | |
7116 | return NULL; | |
7117 | } | |
7118 | ||
7119 | ||
7120 | SWIGINTERN PyObject *_wrap_Dialog_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7121 | PyObject *resultobj = 0; | |
7122 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7123 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7124 | int arg3 = (int) (int)-1 ; | |
7125 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7126 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7127 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7128 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7129 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7130 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7131 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
7132 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
7133 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7134 | bool result; | |
7135 | void *argp1 = 0 ; | |
7136 | int res1 = 0 ; | |
7137 | void *argp2 = 0 ; | |
7138 | int res2 = 0 ; | |
7139 | int val3 ; | |
7140 | int ecode3 = 0 ; | |
7141 | bool temp4 = false ; | |
7142 | wxPoint temp5 ; | |
7143 | wxSize temp6 ; | |
7144 | long val7 ; | |
7145 | int ecode7 = 0 ; | |
7146 | bool temp8 = false ; | |
7147 | PyObject * obj0 = 0 ; | |
7148 | PyObject * obj1 = 0 ; | |
7149 | PyObject * obj2 = 0 ; | |
7150 | PyObject * obj3 = 0 ; | |
7151 | PyObject * obj4 = 0 ; | |
7152 | PyObject * obj5 = 0 ; | |
7153 | PyObject * obj6 = 0 ; | |
7154 | PyObject * obj7 = 0 ; | |
7155 | char * kwnames[] = { | |
7156 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7157 | }; | |
7158 | ||
7159 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
7160 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7161 | if (!SWIG_IsOK(res1)) { | |
7162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_Create" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7163 | } | |
7164 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7165 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7166 | if (!SWIG_IsOK(res2)) { | |
7167 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Dialog_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7168 | } | |
7169 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7170 | if (obj2) { | |
7171 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7172 | if (!SWIG_IsOK(ecode3)) { | |
7173 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Dialog_Create" "', expected argument " "3"" of type '" "int""'"); | |
7174 | } | |
7175 | arg3 = static_cast< int >(val3); | |
7176 | } | |
7177 | if (obj3) { | |
093d3ff1 | 7178 | { |
0085ce49 RD |
7179 | arg4 = wxString_in_helper(obj3); |
7180 | if (arg4 == NULL) SWIG_fail; | |
7181 | temp4 = true; | |
d14a1e28 | 7182 | } |
0085ce49 RD |
7183 | } |
7184 | if (obj4) { | |
d14a1e28 | 7185 | { |
0085ce49 RD |
7186 | arg5 = &temp5; |
7187 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 7188 | } |
0085ce49 RD |
7189 | } |
7190 | if (obj5) { | |
4f89f6a3 | 7191 | { |
0085ce49 RD |
7192 | arg6 = &temp6; |
7193 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
c32bde28 | 7194 | } |
0085ce49 RD |
7195 | } |
7196 | if (obj6) { | |
7197 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
7198 | if (!SWIG_IsOK(ecode7)) { | |
7199 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Dialog_Create" "', expected argument " "7"" of type '" "long""'"); | |
7200 | } | |
7201 | arg7 = static_cast< long >(val7); | |
7202 | } | |
7203 | if (obj7) { | |
c32bde28 | 7204 | { |
0085ce49 RD |
7205 | arg8 = wxString_in_helper(obj7); |
7206 | if (arg8 == NULL) SWIG_fail; | |
7207 | temp8 = true; | |
7208 | } | |
7209 | } | |
7210 | { | |
7211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7212 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7213 | wxPyEndAllowThreads(__tstate); | |
7214 | if (PyErr_Occurred()) SWIG_fail; | |
7215 | } | |
7216 | { | |
7217 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7218 | } | |
7219 | { | |
7220 | if (temp4) | |
7221 | delete arg4; | |
7222 | } | |
7223 | { | |
7224 | if (temp8) | |
7225 | delete arg8; | |
7226 | } | |
7227 | return resultobj; | |
7228 | fail: | |
7229 | { | |
7230 | if (temp4) | |
7231 | delete arg4; | |
7232 | } | |
7233 | { | |
7234 | if (temp8) | |
7235 | delete arg8; | |
7236 | } | |
7237 | return NULL; | |
7238 | } | |
7239 | ||
7240 | ||
7241 | SWIGINTERN PyObject *_wrap_Dialog_SetReturnCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7242 | PyObject *resultobj = 0; | |
7243 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7244 | int arg2 ; | |
7245 | void *argp1 = 0 ; | |
7246 | int res1 = 0 ; | |
7247 | int val2 ; | |
7248 | int ecode2 = 0 ; | |
7249 | PyObject * obj0 = 0 ; | |
7250 | PyObject * obj1 = 0 ; | |
7251 | char * kwnames[] = { | |
7252 | (char *) "self",(char *) "returnCode", NULL | |
7253 | }; | |
7254 | ||
7255 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) SWIG_fail; | |
7256 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7257 | if (!SWIG_IsOK(res1)) { | |
7258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetReturnCode" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7259 | } | |
7260 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7261 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7262 | if (!SWIG_IsOK(ecode2)) { | |
7263 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetReturnCode" "', expected argument " "2"" of type '" "int""'"); | |
7264 | } | |
7265 | arg2 = static_cast< int >(val2); | |
7266 | { | |
7267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7268 | (arg1)->SetReturnCode(arg2); | |
7269 | wxPyEndAllowThreads(__tstate); | |
7270 | if (PyErr_Occurred()) SWIG_fail; | |
7271 | } | |
7272 | resultobj = SWIG_Py_Void(); | |
7273 | return resultobj; | |
7274 | fail: | |
7275 | return NULL; | |
c32bde28 RD |
7276 | } |
7277 | ||
7278 | ||
0085ce49 RD |
7279 | SWIGINTERN PyObject *_wrap_Dialog_GetReturnCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7280 | PyObject *resultobj = 0; | |
7281 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7282 | int result; | |
7283 | void *argp1 = 0 ; | |
7284 | int res1 = 0 ; | |
7285 | PyObject *swig_obj[1] ; | |
7286 | ||
7287 | if (!args) SWIG_fail; | |
7288 | swig_obj[0] = args; | |
7289 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7290 | if (!SWIG_IsOK(res1)) { | |
7291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetReturnCode" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7292 | } | |
7293 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7294 | { | |
7295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7296 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
7297 | wxPyEndAllowThreads(__tstate); | |
7298 | if (PyErr_Occurred()) SWIG_fail; | |
7299 | } | |
7300 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7301 | return resultobj; | |
7302 | fail: | |
7303 | return NULL; | |
7304 | } | |
7305 | ||
7306 | ||
7307 | SWIGINTERN PyObject *_wrap_Dialog_SetAffirmativeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7308 | PyObject *resultobj = 0; | |
7309 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7310 | int arg2 ; | |
7311 | void *argp1 = 0 ; | |
7312 | int res1 = 0 ; | |
7313 | int val2 ; | |
7314 | int ecode2 = 0 ; | |
7315 | PyObject * obj0 = 0 ; | |
7316 | PyObject * obj1 = 0 ; | |
7317 | char * kwnames[] = { | |
7318 | (char *) "self",(char *) "affirmativeId", NULL | |
7319 | }; | |
7320 | ||
7321 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetAffirmativeId",kwnames,&obj0,&obj1)) SWIG_fail; | |
7322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7323 | if (!SWIG_IsOK(res1)) { | |
7324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetAffirmativeId" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7325 | } | |
7326 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7327 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7328 | if (!SWIG_IsOK(ecode2)) { | |
7329 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetAffirmativeId" "', expected argument " "2"" of type '" "int""'"); | |
7330 | } | |
7331 | arg2 = static_cast< int >(val2); | |
7332 | { | |
7333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7334 | (arg1)->SetAffirmativeId(arg2); | |
7335 | wxPyEndAllowThreads(__tstate); | |
7336 | if (PyErr_Occurred()) SWIG_fail; | |
7337 | } | |
7338 | resultobj = SWIG_Py_Void(); | |
7339 | return resultobj; | |
7340 | fail: | |
7341 | return NULL; | |
b6294124 RD |
7342 | } |
7343 | ||
7344 | ||
0085ce49 RD |
7345 | SWIGINTERN PyObject *_wrap_Dialog_GetAffirmativeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7346 | PyObject *resultobj = 0; | |
7347 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7348 | int result; | |
7349 | void *argp1 = 0 ; | |
7350 | int res1 = 0 ; | |
7351 | PyObject *swig_obj[1] ; | |
7352 | ||
7353 | if (!args) SWIG_fail; | |
7354 | swig_obj[0] = args; | |
7355 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7356 | if (!SWIG_IsOK(res1)) { | |
7357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetAffirmativeId" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7358 | } | |
7359 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7360 | { | |
7361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7362 | result = (int)((wxDialog const *)arg1)->GetAffirmativeId(); | |
7363 | wxPyEndAllowThreads(__tstate); | |
7364 | if (PyErr_Occurred()) SWIG_fail; | |
7365 | } | |
7366 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7367 | return resultobj; | |
7368 | fail: | |
7369 | return NULL; | |
7370 | } | |
7371 | ||
7372 | ||
7373 | SWIGINTERN PyObject *_wrap_Dialog_SetEscapeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7374 | PyObject *resultobj = 0; | |
7375 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7376 | int arg2 ; | |
7377 | void *argp1 = 0 ; | |
7378 | int res1 = 0 ; | |
7379 | int val2 ; | |
7380 | int ecode2 = 0 ; | |
7381 | PyObject * obj0 = 0 ; | |
7382 | PyObject * obj1 = 0 ; | |
7383 | char * kwnames[] = { | |
7384 | (char *) "self",(char *) "escapeId", NULL | |
7385 | }; | |
7386 | ||
7387 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetEscapeId",kwnames,&obj0,&obj1)) SWIG_fail; | |
7388 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7389 | if (!SWIG_IsOK(res1)) { | |
7390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetEscapeId" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7391 | } | |
7392 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7393 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7394 | if (!SWIG_IsOK(ecode2)) { | |
7395 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetEscapeId" "', expected argument " "2"" of type '" "int""'"); | |
7396 | } | |
7397 | arg2 = static_cast< int >(val2); | |
7398 | { | |
7399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7400 | (arg1)->SetEscapeId(arg2); | |
7401 | wxPyEndAllowThreads(__tstate); | |
7402 | if (PyErr_Occurred()) SWIG_fail; | |
7403 | } | |
7404 | resultobj = SWIG_Py_Void(); | |
7405 | return resultobj; | |
7406 | fail: | |
7407 | return NULL; | |
84f85550 RD |
7408 | } |
7409 | ||
7410 | ||
0085ce49 RD |
7411 | SWIGINTERN PyObject *_wrap_Dialog_GetEscapeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7412 | PyObject *resultobj = 0; | |
7413 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7414 | int result; | |
7415 | void *argp1 = 0 ; | |
7416 | int res1 = 0 ; | |
7417 | PyObject *swig_obj[1] ; | |
7418 | ||
7419 | if (!args) SWIG_fail; | |
7420 | swig_obj[0] = args; | |
7421 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7422 | if (!SWIG_IsOK(res1)) { | |
7423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetEscapeId" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7424 | } | |
7425 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7426 | { | |
7427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7428 | result = (int)((wxDialog const *)arg1)->GetEscapeId(); | |
7429 | wxPyEndAllowThreads(__tstate); | |
7430 | if (PyErr_Occurred()) SWIG_fail; | |
7431 | } | |
7432 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7433 | return resultobj; | |
7434 | fail: | |
7435 | return NULL; | |
7436 | } | |
7437 | ||
7438 | ||
7439 | SWIGINTERN PyObject *_wrap_Dialog_CreateTextSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7440 | PyObject *resultobj = 0; | |
7441 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7442 | wxString *arg2 = 0 ; | |
7443 | wxSizer *result = 0 ; | |
7444 | void *argp1 = 0 ; | |
7445 | int res1 = 0 ; | |
7446 | bool temp2 = false ; | |
7447 | PyObject * obj0 = 0 ; | |
7448 | PyObject * obj1 = 0 ; | |
7449 | char * kwnames[] = { | |
7450 | (char *) "self",(char *) "message", NULL | |
7451 | }; | |
7452 | ||
7453 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7454 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7455 | if (!SWIG_IsOK(res1)) { | |
7456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateTextSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7457 | } | |
7458 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7459 | { | |
7460 | arg2 = wxString_in_helper(obj1); | |
7461 | if (arg2 == NULL) SWIG_fail; | |
7462 | temp2 = true; | |
7463 | } | |
7464 | { | |
7465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7466 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
7467 | wxPyEndAllowThreads(__tstate); | |
7468 | if (PyErr_Occurred()) SWIG_fail; | |
7469 | } | |
7470 | { | |
7471 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7472 | } | |
7473 | { | |
7474 | if (temp2) | |
7475 | delete arg2; | |
7476 | } | |
7477 | return resultobj; | |
7478 | fail: | |
7479 | { | |
7480 | if (temp2) | |
7481 | delete arg2; | |
7482 | } | |
7483 | return NULL; | |
7484 | } | |
7485 | ||
7486 | ||
7487 | SWIGINTERN PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7488 | PyObject *resultobj = 0; | |
7489 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7490 | long arg2 ; | |
7491 | bool arg3 = (bool) false ; | |
7492 | int arg4 = (int) 0 ; | |
7493 | wxSizer *result = 0 ; | |
7494 | void *argp1 = 0 ; | |
7495 | int res1 = 0 ; | |
7496 | long val2 ; | |
7497 | int ecode2 = 0 ; | |
7498 | bool val3 ; | |
7499 | int ecode3 = 0 ; | |
7500 | int val4 ; | |
7501 | int ecode4 = 0 ; | |
7502 | PyObject * obj0 = 0 ; | |
7503 | PyObject * obj1 = 0 ; | |
7504 | PyObject * obj2 = 0 ; | |
7505 | PyObject * obj3 = 0 ; | |
7506 | char * kwnames[] = { | |
7507 | (char *) "self",(char *) "flags",(char *) "separated",(char *) "distance", NULL | |
7508 | }; | |
7509 | ||
7510 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7511 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7512 | if (!SWIG_IsOK(res1)) { | |
7513 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7514 | } | |
7515 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7516 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7517 | if (!SWIG_IsOK(ecode2)) { | |
7518 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "2"" of type '" "long""'"); | |
7519 | } | |
7520 | arg2 = static_cast< long >(val2); | |
7521 | if (obj2) { | |
7522 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
7523 | if (!SWIG_IsOK(ecode3)) { | |
7524 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "3"" of type '" "bool""'"); | |
7525 | } | |
7526 | arg3 = static_cast< bool >(val3); | |
7527 | } | |
7528 | if (obj3) { | |
7529 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7530 | if (!SWIG_IsOK(ecode4)) { | |
7531 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "4"" of type '" "int""'"); | |
7532 | } | |
7533 | arg4 = static_cast< int >(val4); | |
7534 | } | |
7535 | { | |
7536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7537 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2,arg3,arg4); | |
7538 | wxPyEndAllowThreads(__tstate); | |
7539 | if (PyErr_Occurred()) SWIG_fail; | |
7540 | } | |
7541 | { | |
7542 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7543 | } | |
7544 | return resultobj; | |
7545 | fail: | |
7546 | return NULL; | |
7547 | } | |
7548 | ||
7549 | ||
7550 | SWIGINTERN PyObject *_wrap_Dialog_CreateStdDialogButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7551 | PyObject *resultobj = 0; | |
7552 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7553 | long arg2 ; | |
7554 | wxStdDialogButtonSizer *result = 0 ; | |
7555 | void *argp1 = 0 ; | |
7556 | int res1 = 0 ; | |
7557 | long val2 ; | |
7558 | int ecode2 = 0 ; | |
7559 | PyObject * obj0 = 0 ; | |
7560 | PyObject * obj1 = 0 ; | |
7561 | char * kwnames[] = { | |
7562 | (char *) "self",(char *) "flags", NULL | |
7563 | }; | |
7564 | ||
7565 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateStdDialogButtonSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7566 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7567 | if (!SWIG_IsOK(res1)) { | |
7568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateStdDialogButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7569 | } | |
7570 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7571 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7572 | if (!SWIG_IsOK(ecode2)) { | |
7573 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateStdDialogButtonSizer" "', expected argument " "2"" of type '" "long""'"); | |
7574 | } | |
7575 | arg2 = static_cast< long >(val2); | |
7576 | { | |
7577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7578 | result = (wxStdDialogButtonSizer *)(arg1)->CreateStdDialogButtonSizer(arg2); | |
7579 | wxPyEndAllowThreads(__tstate); | |
7580 | if (PyErr_Occurred()) SWIG_fail; | |
7581 | } | |
7582 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 ); | |
7583 | return resultobj; | |
7584 | fail: | |
7585 | return NULL; | |
84f85550 RD |
7586 | } |
7587 | ||
7588 | ||
0085ce49 RD |
7589 | SWIGINTERN PyObject *_wrap_Dialog_IsModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7590 | PyObject *resultobj = 0; | |
7591 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7592 | bool result; | |
7593 | void *argp1 = 0 ; | |
7594 | int res1 = 0 ; | |
7595 | PyObject *swig_obj[1] ; | |
7596 | ||
7597 | if (!args) SWIG_fail; | |
7598 | swig_obj[0] = args; | |
7599 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7600 | if (!SWIG_IsOK(res1)) { | |
7601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_IsModal" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7602 | } | |
7603 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7604 | { | |
7605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7606 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
7607 | wxPyEndAllowThreads(__tstate); | |
7608 | if (PyErr_Occurred()) SWIG_fail; | |
7609 | } | |
7610 | { | |
7611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7612 | } | |
7613 | return resultobj; | |
7614 | fail: | |
7615 | return NULL; | |
b1fcee84 RD |
7616 | } |
7617 | ||
7618 | ||
0085ce49 RD |
7619 | SWIGINTERN PyObject *_wrap_Dialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7620 | PyObject *resultobj = 0; | |
7621 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7622 | int result; | |
7623 | void *argp1 = 0 ; | |
7624 | int res1 = 0 ; | |
7625 | PyObject *swig_obj[1] ; | |
7626 | ||
7627 | if (!args) SWIG_fail; | |
7628 | swig_obj[0] = args; | |
7629 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7630 | if (!SWIG_IsOK(res1)) { | |
7631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_ShowModal" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7632 | } | |
7633 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7634 | { | |
7635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7636 | result = (int)(arg1)->ShowModal(); | |
7637 | wxPyEndAllowThreads(__tstate); | |
7638 | if (PyErr_Occurred()) SWIG_fail; | |
7639 | } | |
7640 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7641 | return resultobj; | |
7642 | fail: | |
7643 | return NULL; | |
7644 | } | |
7645 | ||
7646 | ||
7647 | SWIGINTERN PyObject *_wrap_Dialog_EndModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7648 | PyObject *resultobj = 0; | |
7649 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7650 | int arg2 ; | |
7651 | void *argp1 = 0 ; | |
7652 | int res1 = 0 ; | |
7653 | int val2 ; | |
7654 | int ecode2 = 0 ; | |
7655 | PyObject * obj0 = 0 ; | |
7656 | PyObject * obj1 = 0 ; | |
7657 | char * kwnames[] = { | |
7658 | (char *) "self",(char *) "retCode", NULL | |
7659 | }; | |
7660 | ||
7661 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) SWIG_fail; | |
7662 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7663 | if (!SWIG_IsOK(res1)) { | |
7664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_EndModal" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7665 | } | |
7666 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7667 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7668 | if (!SWIG_IsOK(ecode2)) { | |
7669 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_EndModal" "', expected argument " "2"" of type '" "int""'"); | |
7670 | } | |
7671 | arg2 = static_cast< int >(val2); | |
7672 | { | |
7673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7674 | (arg1)->EndModal(arg2); | |
7675 | wxPyEndAllowThreads(__tstate); | |
7676 | if (PyErr_Occurred()) SWIG_fail; | |
7677 | } | |
7678 | resultobj = SWIG_Py_Void(); | |
7679 | return resultobj; | |
7680 | fail: | |
7681 | return NULL; | |
7682 | } | |
7683 | ||
7684 | ||
7685 | SWIGINTERN PyObject *_wrap_Dialog_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7686 | PyObject *resultobj = 0; | |
7687 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7688 | SwigValueWrapper<wxVisualAttributes > result; | |
7689 | int val1 ; | |
7690 | int ecode1 = 0 ; | |
7691 | PyObject * obj0 = 0 ; | |
7692 | char * kwnames[] = { | |
7693 | (char *) "variant", NULL | |
7694 | }; | |
7695 | ||
7696 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Dialog_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7697 | if (obj0) { | |
7698 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7699 | if (!SWIG_IsOK(ecode1)) { | |
7700 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Dialog_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7701 | } | |
7702 | arg1 = static_cast< wxWindowVariant >(val1); | |
7703 | } | |
7704 | { | |
7705 | if (!wxPyCheckForApp()) SWIG_fail; | |
7706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7707 | result = wxDialog::GetClassDefaultAttributes(arg1); | |
7708 | wxPyEndAllowThreads(__tstate); | |
7709 | if (PyErr_Occurred()) SWIG_fail; | |
7710 | } | |
7711 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7712 | return resultobj; | |
7713 | fail: | |
7714 | return NULL; | |
7715 | } | |
7716 | ||
7717 | ||
7718 | SWIGINTERN PyObject *Dialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7719 | PyObject *obj; | |
7720 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7721 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDialog, SWIG_NewClientData(obj)); | |
7722 | return SWIG_Py_Void(); | |
7723 | } | |
7724 | ||
7725 | SWIGINTERN PyObject *Dialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7726 | return SWIG_Python_InitShadowInstance(args); | |
7727 | } | |
7728 | ||
7729 | SWIGINTERN PyObject *_wrap_new_MiniFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7730 | PyObject *resultobj = 0; | |
7731 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7732 | int arg2 = (int) (int)-1 ; | |
7733 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7734 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7735 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7736 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7737 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7738 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7739 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
7740 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
7741 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7742 | wxMiniFrame *result = 0 ; | |
7743 | void *argp1 = 0 ; | |
7744 | int res1 = 0 ; | |
7745 | int val2 ; | |
7746 | int ecode2 = 0 ; | |
7747 | bool temp3 = false ; | |
7748 | wxPoint temp4 ; | |
7749 | wxSize temp5 ; | |
7750 | long val6 ; | |
7751 | int ecode6 = 0 ; | |
7752 | bool temp7 = false ; | |
7753 | PyObject * obj0 = 0 ; | |
7754 | PyObject * obj1 = 0 ; | |
7755 | PyObject * obj2 = 0 ; | |
7756 | PyObject * obj3 = 0 ; | |
7757 | PyObject * obj4 = 0 ; | |
7758 | PyObject * obj5 = 0 ; | |
7759 | PyObject * obj6 = 0 ; | |
7760 | char * kwnames[] = { | |
7761 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7762 | }; | |
7763 | ||
7764 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7765 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7766 | if (!SWIG_IsOK(res1)) { | |
7767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MiniFrame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7768 | } | |
7769 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7770 | if (obj1) { | |
7771 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7772 | if (!SWIG_IsOK(ecode2)) { | |
7773 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MiniFrame" "', expected argument " "2"" of type '" "int""'"); | |
7774 | } | |
7775 | arg2 = static_cast< int >(val2); | |
7776 | } | |
7777 | if (obj2) { | |
d14a1e28 | 7778 | { |
0085ce49 RD |
7779 | arg3 = wxString_in_helper(obj2); |
7780 | if (arg3 == NULL) SWIG_fail; | |
7781 | temp3 = true; | |
d14a1e28 | 7782 | } |
0085ce49 RD |
7783 | } |
7784 | if (obj3) { | |
d14a1e28 | 7785 | { |
0085ce49 RD |
7786 | arg4 = &temp4; |
7787 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 7788 | } |
0085ce49 RD |
7789 | } |
7790 | if (obj4) { | |
d14a1e28 | 7791 | { |
0085ce49 RD |
7792 | arg5 = &temp5; |
7793 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 7794 | } |
0085ce49 RD |
7795 | } |
7796 | if (obj5) { | |
7797 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7798 | if (!SWIG_IsOK(ecode6)) { | |
7799 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MiniFrame" "', expected argument " "6"" of type '" "long""'"); | |
7800 | } | |
7801 | arg6 = static_cast< long >(val6); | |
7802 | } | |
7803 | if (obj6) { | |
d14a1e28 | 7804 | { |
0085ce49 RD |
7805 | arg7 = wxString_in_helper(obj6); |
7806 | if (arg7 == NULL) SWIG_fail; | |
7807 | temp7 = true; | |
d14a1e28 | 7808 | } |
0085ce49 RD |
7809 | } |
7810 | { | |
7811 | if (!wxPyCheckForApp()) SWIG_fail; | |
7812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7813 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7814 | wxPyEndAllowThreads(__tstate); | |
7815 | if (PyErr_Occurred()) SWIG_fail; | |
7816 | } | |
7817 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMiniFrame, SWIG_POINTER_NEW | 0 ); | |
7818 | { | |
7819 | if (temp3) | |
7820 | delete arg3; | |
7821 | } | |
7822 | { | |
7823 | if (temp7) | |
7824 | delete arg7; | |
7825 | } | |
7826 | return resultobj; | |
7827 | fail: | |
7828 | { | |
7829 | if (temp3) | |
7830 | delete arg3; | |
7831 | } | |
7832 | { | |
7833 | if (temp7) | |
7834 | delete arg7; | |
7835 | } | |
7836 | return NULL; | |
d14a1e28 RD |
7837 | } |
7838 | ||
7839 | ||
0085ce49 RD |
7840 | SWIGINTERN PyObject *_wrap_new_PreMiniFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7841 | PyObject *resultobj = 0; | |
7842 | wxMiniFrame *result = 0 ; | |
7843 | ||
7844 | if (!SWIG_Python_UnpackTuple(args,"new_PreMiniFrame",0,0,0)) SWIG_fail; | |
7845 | { | |
7846 | if (!wxPyCheckForApp()) SWIG_fail; | |
7847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7848 | result = (wxMiniFrame *)new wxMiniFrame(); | |
7849 | wxPyEndAllowThreads(__tstate); | |
7850 | if (PyErr_Occurred()) SWIG_fail; | |
7851 | } | |
7852 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMiniFrame, SWIG_POINTER_OWN | 0 ); | |
7853 | return resultobj; | |
7854 | fail: | |
7855 | return NULL; | |
7856 | } | |
7857 | ||
7858 | ||
7859 | SWIGINTERN PyObject *_wrap_MiniFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7860 | PyObject *resultobj = 0; | |
7861 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
7862 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7863 | int arg3 = (int) (int)-1 ; | |
7864 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7865 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7866 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7867 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7868 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7869 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7870 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
7871 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
7872 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7873 | bool result; | |
7874 | void *argp1 = 0 ; | |
7875 | int res1 = 0 ; | |
7876 | void *argp2 = 0 ; | |
7877 | int res2 = 0 ; | |
7878 | int val3 ; | |
7879 | int ecode3 = 0 ; | |
7880 | bool temp4 = false ; | |
7881 | wxPoint temp5 ; | |
7882 | wxSize temp6 ; | |
7883 | long val7 ; | |
7884 | int ecode7 = 0 ; | |
7885 | bool temp8 = false ; | |
7886 | PyObject * obj0 = 0 ; | |
7887 | PyObject * obj1 = 0 ; | |
7888 | PyObject * obj2 = 0 ; | |
7889 | PyObject * obj3 = 0 ; | |
7890 | PyObject * obj4 = 0 ; | |
7891 | PyObject * obj5 = 0 ; | |
7892 | PyObject * obj6 = 0 ; | |
7893 | PyObject * obj7 = 0 ; | |
7894 | char * kwnames[] = { | |
7895 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7896 | }; | |
7897 | ||
7898 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
7899 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMiniFrame, 0 | 0 ); | |
7900 | if (!SWIG_IsOK(res1)) { | |
7901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MiniFrame_Create" "', expected argument " "1"" of type '" "wxMiniFrame *""'"); | |
7902 | } | |
7903 | arg1 = reinterpret_cast< wxMiniFrame * >(argp1); | |
7904 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7905 | if (!SWIG_IsOK(res2)) { | |
7906 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MiniFrame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7907 | } | |
7908 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7909 | if (obj2) { | |
7910 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7911 | if (!SWIG_IsOK(ecode3)) { | |
7912 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MiniFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
7913 | } | |
7914 | arg3 = static_cast< int >(val3); | |
7915 | } | |
7916 | if (obj3) { | |
d14a1e28 | 7917 | { |
0085ce49 RD |
7918 | arg4 = wxString_in_helper(obj3); |
7919 | if (arg4 == NULL) SWIG_fail; | |
7920 | temp4 = true; | |
d14a1e28 | 7921 | } |
0085ce49 RD |
7922 | } |
7923 | if (obj4) { | |
4f89f6a3 | 7924 | { |
0085ce49 RD |
7925 | arg5 = &temp5; |
7926 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 7927 | } |
0085ce49 RD |
7928 | } |
7929 | if (obj5) { | |
d14a1e28 | 7930 | { |
0085ce49 RD |
7931 | arg6 = &temp6; |
7932 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 7933 | } |
0085ce49 RD |
7934 | } |
7935 | if (obj6) { | |
7936 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
7937 | if (!SWIG_IsOK(ecode7)) { | |
7938 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MiniFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
7939 | } | |
7940 | arg7 = static_cast< long >(val7); | |
7941 | } | |
7942 | if (obj7) { | |
d14a1e28 | 7943 | { |
0085ce49 RD |
7944 | arg8 = wxString_in_helper(obj7); |
7945 | if (arg8 == NULL) SWIG_fail; | |
7946 | temp8 = true; | |
d14a1e28 | 7947 | } |
0085ce49 RD |
7948 | } |
7949 | { | |
7950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7951 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7952 | wxPyEndAllowThreads(__tstate); | |
7953 | if (PyErr_Occurred()) SWIG_fail; | |
7954 | } | |
7955 | { | |
7956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7957 | } | |
7958 | { | |
7959 | if (temp4) | |
7960 | delete arg4; | |
7961 | } | |
7962 | { | |
7963 | if (temp8) | |
7964 | delete arg8; | |
7965 | } | |
7966 | return resultobj; | |
7967 | fail: | |
7968 | { | |
7969 | if (temp4) | |
7970 | delete arg4; | |
7971 | } | |
7972 | { | |
7973 | if (temp8) | |
7974 | delete arg8; | |
7975 | } | |
7976 | return NULL; | |
7977 | } | |
7978 | ||
7979 | ||
7980 | SWIGINTERN PyObject *MiniFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7981 | PyObject *obj; | |
7982 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7983 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMiniFrame, SWIG_NewClientData(obj)); | |
7984 | return SWIG_Py_Void(); | |
7985 | } | |
7986 | ||
7987 | SWIGINTERN PyObject *MiniFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7988 | return SWIG_Python_InitShadowInstance(args); | |
7989 | } | |
7990 | ||
7991 | SWIGINTERN PyObject *_wrap_new_SplashScreenWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7992 | PyObject *resultobj = 0; | |
7993 | wxBitmap *arg1 = 0 ; | |
7994 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7995 | int arg3 ; | |
7996 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7997 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7998 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7999 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8000 | long arg6 = (long) wxNO_BORDER ; | |
8001 | wxSplashScreenWindow *result = 0 ; | |
8002 | void *argp1 = 0 ; | |
8003 | int res1 = 0 ; | |
8004 | void *argp2 = 0 ; | |
8005 | int res2 = 0 ; | |
8006 | int val3 ; | |
8007 | int ecode3 = 0 ; | |
8008 | wxPoint temp4 ; | |
8009 | wxSize temp5 ; | |
8010 | long val6 ; | |
8011 | int ecode6 = 0 ; | |
8012 | PyObject * obj0 = 0 ; | |
8013 | PyObject * obj1 = 0 ; | |
8014 | PyObject * obj2 = 0 ; | |
8015 | PyObject * obj3 = 0 ; | |
8016 | PyObject * obj4 = 0 ; | |
8017 | PyObject * obj5 = 0 ; | |
8018 | char * kwnames[] = { | |
8019 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
8020 | }; | |
8021 | ||
8022 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
8023 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8024 | if (!SWIG_IsOK(res1)) { | |
8025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplashScreenWindow" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8026 | } | |
8027 | if (!argp1) { | |
8028 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SplashScreenWindow" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8029 | } | |
8030 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8031 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8032 | if (!SWIG_IsOK(res2)) { | |
8033 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SplashScreenWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8034 | } | |
8035 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8036 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8037 | if (!SWIG_IsOK(ecode3)) { | |
8038 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplashScreenWindow" "', expected argument " "3"" of type '" "int""'"); | |
8039 | } | |
8040 | arg3 = static_cast< int >(val3); | |
8041 | if (obj3) { | |
d14a1e28 | 8042 | { |
0085ce49 RD |
8043 | arg4 = &temp4; |
8044 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 8045 | } |
0085ce49 RD |
8046 | } |
8047 | if (obj4) { | |
d14a1e28 | 8048 | { |
0085ce49 RD |
8049 | arg5 = &temp5; |
8050 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 8051 | } |
0085ce49 RD |
8052 | } |
8053 | if (obj5) { | |
8054 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8055 | if (!SWIG_IsOK(ecode6)) { | |
8056 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SplashScreenWindow" "', expected argument " "6"" of type '" "long""'"); | |
8057 | } | |
8058 | arg6 = static_cast< long >(val6); | |
8059 | } | |
8060 | { | |
8061 | if (!wxPyCheckForApp()) SWIG_fail; | |
8062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8063 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
8064 | wxPyEndAllowThreads(__tstate); | |
8065 | if (PyErr_Occurred()) SWIG_fail; | |
8066 | } | |
8067 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreenWindow, SWIG_POINTER_NEW | 0 ); | |
8068 | return resultobj; | |
8069 | fail: | |
8070 | return NULL; | |
8071 | } | |
8072 | ||
8073 | ||
8074 | SWIGINTERN PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8075 | PyObject *resultobj = 0; | |
8076 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
8077 | wxBitmap *arg2 = 0 ; | |
8078 | void *argp1 = 0 ; | |
8079 | int res1 = 0 ; | |
8080 | void *argp2 = 0 ; | |
8081 | int res2 = 0 ; | |
8082 | PyObject * obj0 = 0 ; | |
8083 | PyObject * obj1 = 0 ; | |
8084 | char * kwnames[] = { | |
8085 | (char *) "self",(char *) "bitmap", NULL | |
8086 | }; | |
8087 | ||
8088 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8089 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8090 | if (!SWIG_IsOK(res1)) { | |
8091 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "1"" of type '" "wxSplashScreenWindow *""'"); | |
8092 | } | |
8093 | arg1 = reinterpret_cast< wxSplashScreenWindow * >(argp1); | |
8094 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8095 | if (!SWIG_IsOK(res2)) { | |
8096 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8097 | } | |
8098 | if (!argp2) { | |
8099 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8100 | } | |
8101 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8102 | { | |
8103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8104 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
8105 | wxPyEndAllowThreads(__tstate); | |
8106 | if (PyErr_Occurred()) SWIG_fail; | |
8107 | } | |
8108 | resultobj = SWIG_Py_Void(); | |
8109 | return resultobj; | |
8110 | fail: | |
8111 | return NULL; | |
d14a1e28 RD |
8112 | } |
8113 | ||
8114 | ||
0085ce49 RD |
8115 | SWIGINTERN PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8116 | PyObject *resultobj = 0; | |
8117 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
8118 | wxBitmap *result = 0 ; | |
8119 | void *argp1 = 0 ; | |
8120 | int res1 = 0 ; | |
8121 | PyObject *swig_obj[1] ; | |
8122 | ||
8123 | if (!args) SWIG_fail; | |
8124 | swig_obj[0] = args; | |
8125 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8126 | if (!SWIG_IsOK(res1)) { | |
8127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreenWindow_GetBitmap" "', expected argument " "1"" of type '" "wxSplashScreenWindow *""'"); | |
8128 | } | |
8129 | arg1 = reinterpret_cast< wxSplashScreenWindow * >(argp1); | |
8130 | { | |
8131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8132 | { | |
8133 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
8134 | result = (wxBitmap *) &_result_ref; | |
8135 | } | |
8136 | wxPyEndAllowThreads(__tstate); | |
8137 | if (PyErr_Occurred()) SWIG_fail; | |
8138 | } | |
8139 | { | |
8140 | wxBitmap* resultptr = new wxBitmap(*result); | |
8141 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
8142 | } | |
8143 | return resultobj; | |
8144 | fail: | |
8145 | return NULL; | |
8146 | } | |
8147 | ||
8148 | ||
8149 | SWIGINTERN PyObject *SplashScreenWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8150 | PyObject *obj; | |
8151 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8152 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplashScreenWindow, SWIG_NewClientData(obj)); | |
8153 | return SWIG_Py_Void(); | |
8154 | } | |
8155 | ||
8156 | SWIGINTERN PyObject *SplashScreenWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8157 | return SWIG_Python_InitShadowInstance(args); | |
8158 | } | |
8159 | ||
8160 | SWIGINTERN PyObject *_wrap_new_SplashScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8161 | PyObject *resultobj = 0; | |
8162 | wxBitmap *arg1 = 0 ; | |
8163 | long arg2 ; | |
8164 | int arg3 ; | |
8165 | wxWindow *arg4 = (wxWindow *) 0 ; | |
8166 | int arg5 = (int) -1 ; | |
8167 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
8168 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
8169 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
8170 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
8171 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
8172 | wxSplashScreen *result = 0 ; | |
8173 | void *argp1 = 0 ; | |
8174 | int res1 = 0 ; | |
8175 | long val2 ; | |
8176 | int ecode2 = 0 ; | |
8177 | int val3 ; | |
8178 | int ecode3 = 0 ; | |
8179 | void *argp4 = 0 ; | |
8180 | int res4 = 0 ; | |
8181 | int val5 ; | |
8182 | int ecode5 = 0 ; | |
8183 | wxPoint temp6 ; | |
8184 | wxSize temp7 ; | |
8185 | long val8 ; | |
8186 | int ecode8 = 0 ; | |
8187 | PyObject * obj0 = 0 ; | |
8188 | PyObject * obj1 = 0 ; | |
8189 | PyObject * obj2 = 0 ; | |
8190 | PyObject * obj3 = 0 ; | |
8191 | PyObject * obj4 = 0 ; | |
8192 | PyObject * obj5 = 0 ; | |
8193 | PyObject * obj6 = 0 ; | |
8194 | PyObject * obj7 = 0 ; | |
8195 | char * kwnames[] = { | |
8196 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
8197 | }; | |
8198 | ||
8199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8200 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8201 | if (!SWIG_IsOK(res1)) { | |
8202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplashScreen" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8203 | } | |
8204 | if (!argp1) { | |
8205 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SplashScreen" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8206 | } | |
8207 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8208 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8209 | if (!SWIG_IsOK(ecode2)) { | |
8210 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplashScreen" "', expected argument " "2"" of type '" "long""'"); | |
8211 | } | |
8212 | arg2 = static_cast< long >(val2); | |
8213 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8214 | if (!SWIG_IsOK(ecode3)) { | |
8215 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplashScreen" "', expected argument " "3"" of type '" "int""'"); | |
8216 | } | |
8217 | arg3 = static_cast< int >(val3); | |
8218 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8219 | if (!SWIG_IsOK(res4)) { | |
8220 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SplashScreen" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
8221 | } | |
8222 | arg4 = reinterpret_cast< wxWindow * >(argp4); | |
8223 | if (obj4) { | |
8224 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8225 | if (!SWIG_IsOK(ecode5)) { | |
8226 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SplashScreen" "', expected argument " "5"" of type '" "int""'"); | |
8227 | } | |
8228 | arg5 = static_cast< int >(val5); | |
8229 | } | |
8230 | if (obj5) { | |
d14a1e28 | 8231 | { |
0085ce49 RD |
8232 | arg6 = &temp6; |
8233 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 8234 | } |
0085ce49 RD |
8235 | } |
8236 | if (obj6) { | |
d14a1e28 | 8237 | { |
0085ce49 RD |
8238 | arg7 = &temp7; |
8239 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
d14a1e28 | 8240 | } |
0085ce49 RD |
8241 | } |
8242 | if (obj7) { | |
8243 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
8244 | if (!SWIG_IsOK(ecode8)) { | |
8245 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SplashScreen" "', expected argument " "8"" of type '" "long""'"); | |
8246 | } | |
8247 | arg8 = static_cast< long >(val8); | |
8248 | } | |
8249 | { | |
8250 | if (!wxPyCheckForApp()) SWIG_fail; | |
8251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8252 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
8253 | wxPyEndAllowThreads(__tstate); | |
8254 | if (PyErr_Occurred()) SWIG_fail; | |
8255 | } | |
8256 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreen, SWIG_POINTER_NEW | 0 ); | |
8257 | return resultobj; | |
8258 | fail: | |
8259 | return NULL; | |
d14a1e28 RD |
8260 | } |
8261 | ||
8262 | ||
0085ce49 RD |
8263 | SWIGINTERN PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8264 | PyObject *resultobj = 0; | |
8265 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8266 | long result; | |
8267 | void *argp1 = 0 ; | |
8268 | int res1 = 0 ; | |
8269 | PyObject *swig_obj[1] ; | |
8270 | ||
8271 | if (!args) SWIG_fail; | |
8272 | swig_obj[0] = args; | |
8273 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8274 | if (!SWIG_IsOK(res1)) { | |
8275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetSplashStyle" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8276 | } | |
8277 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8278 | { | |
8279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8280 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
8281 | wxPyEndAllowThreads(__tstate); | |
8282 | if (PyErr_Occurred()) SWIG_fail; | |
8283 | } | |
8284 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8285 | return resultobj; | |
8286 | fail: | |
8287 | return NULL; | |
d14a1e28 RD |
8288 | } |
8289 | ||
8290 | ||
0085ce49 RD |
8291 | SWIGINTERN PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8292 | PyObject *resultobj = 0; | |
8293 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8294 | wxSplashScreenWindow *result = 0 ; | |
8295 | void *argp1 = 0 ; | |
8296 | int res1 = 0 ; | |
8297 | PyObject *swig_obj[1] ; | |
8298 | ||
8299 | if (!args) SWIG_fail; | |
8300 | swig_obj[0] = args; | |
8301 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8302 | if (!SWIG_IsOK(res1)) { | |
8303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetSplashWindow" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8304 | } | |
8305 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8306 | { | |
8307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8308 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
8309 | wxPyEndAllowThreads(__tstate); | |
8310 | if (PyErr_Occurred()) SWIG_fail; | |
8311 | } | |
8312 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8313 | return resultobj; | |
8314 | fail: | |
8315 | return NULL; | |
d14a1e28 RD |
8316 | } |
8317 | ||
8318 | ||
0085ce49 RD |
8319 | SWIGINTERN PyObject *_wrap_SplashScreen_GetTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8320 | PyObject *resultobj = 0; | |
8321 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8322 | int result; | |
8323 | void *argp1 = 0 ; | |
8324 | int res1 = 0 ; | |
8325 | PyObject *swig_obj[1] ; | |
8326 | ||
8327 | if (!args) SWIG_fail; | |
8328 | swig_obj[0] = args; | |
8329 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8330 | if (!SWIG_IsOK(res1)) { | |
8331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetTimeout" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8332 | } | |
8333 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8334 | { | |
8335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8336 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
8337 | wxPyEndAllowThreads(__tstate); | |
8338 | if (PyErr_Occurred()) SWIG_fail; | |
8339 | } | |
8340 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8341 | return resultobj; | |
8342 | fail: | |
8343 | return NULL; | |
8344 | } | |
8345 | ||
8346 | ||
8347 | SWIGINTERN PyObject *SplashScreen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8348 | PyObject *obj; | |
8349 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8350 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplashScreen, SWIG_NewClientData(obj)); | |
8351 | return SWIG_Py_Void(); | |
8352 | } | |
8353 | ||
8354 | SWIGINTERN PyObject *SplashScreen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8355 | return SWIG_Python_InitShadowInstance(args); | |
8356 | } | |
8357 | ||
8358 | SWIGINTERN PyObject *_wrap_new_StatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8359 | PyObject *resultobj = 0; | |
8360 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8361 | int arg2 = (int) -1 ; | |
8362 | long arg3 = (long) wxDEFAULT_STATUSBAR_STYLE ; | |
8363 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
8364 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8365 | wxStatusBar *result = 0 ; | |
8366 | void *argp1 = 0 ; | |
8367 | int res1 = 0 ; | |
8368 | int val2 ; | |
8369 | int ecode2 = 0 ; | |
8370 | long val3 ; | |
8371 | int ecode3 = 0 ; | |
8372 | bool temp4 = false ; | |
8373 | PyObject * obj0 = 0 ; | |
8374 | PyObject * obj1 = 0 ; | |
8375 | PyObject * obj2 = 0 ; | |
8376 | PyObject * obj3 = 0 ; | |
8377 | char * kwnames[] = { | |
8378 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
8379 | }; | |
8380 | ||
8381 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8382 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8383 | if (!SWIG_IsOK(res1)) { | |
8384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StatusBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8385 | } | |
8386 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8387 | if (obj1) { | |
8388 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8389 | if (!SWIG_IsOK(ecode2)) { | |
8390 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StatusBar" "', expected argument " "2"" of type '" "int""'"); | |
8391 | } | |
8392 | arg2 = static_cast< int >(val2); | |
8393 | } | |
8394 | if (obj2) { | |
8395 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
8396 | if (!SWIG_IsOK(ecode3)) { | |
8397 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_StatusBar" "', expected argument " "3"" of type '" "long""'"); | |
8398 | } | |
8399 | arg3 = static_cast< long >(val3); | |
8400 | } | |
8401 | if (obj3) { | |
d14a1e28 | 8402 | { |
0085ce49 RD |
8403 | arg4 = wxString_in_helper(obj3); |
8404 | if (arg4 == NULL) SWIG_fail; | |
8405 | temp4 = true; | |
d14a1e28 | 8406 | } |
0085ce49 RD |
8407 | } |
8408 | { | |
8409 | if (!wxPyCheckForApp()) SWIG_fail; | |
8410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8411 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
8412 | wxPyEndAllowThreads(__tstate); | |
8413 | if (PyErr_Occurred()) SWIG_fail; | |
8414 | } | |
8415 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStatusBar, SWIG_POINTER_NEW | 0 ); | |
8416 | { | |
8417 | if (temp4) | |
8418 | delete arg4; | |
8419 | } | |
8420 | return resultobj; | |
8421 | fail: | |
8422 | { | |
8423 | if (temp4) | |
8424 | delete arg4; | |
8425 | } | |
8426 | return NULL; | |
d14a1e28 RD |
8427 | } |
8428 | ||
8429 | ||
0085ce49 RD |
8430 | SWIGINTERN PyObject *_wrap_new_PreStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8431 | PyObject *resultobj = 0; | |
8432 | wxStatusBar *result = 0 ; | |
8433 | ||
8434 | if (!SWIG_Python_UnpackTuple(args,"new_PreStatusBar",0,0,0)) SWIG_fail; | |
8435 | { | |
8436 | if (!wxPyCheckForApp()) SWIG_fail; | |
8437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8438 | result = (wxStatusBar *)new wxStatusBar(); | |
8439 | wxPyEndAllowThreads(__tstate); | |
8440 | if (PyErr_Occurred()) SWIG_fail; | |
8441 | } | |
8442 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStatusBar, SWIG_POINTER_OWN | 0 ); | |
8443 | return resultobj; | |
8444 | fail: | |
8445 | return NULL; | |
8446 | } | |
8447 | ||
8448 | ||
8449 | SWIGINTERN PyObject *_wrap_StatusBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8450 | PyObject *resultobj = 0; | |
8451 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8452 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8453 | int arg3 = (int) -1 ; | |
8454 | long arg4 = (long) wxST_SIZEGRIP ; | |
8455 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
8456 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
8457 | bool result; | |
8458 | void *argp1 = 0 ; | |
8459 | int res1 = 0 ; | |
8460 | void *argp2 = 0 ; | |
8461 | int res2 = 0 ; | |
8462 | int val3 ; | |
8463 | int ecode3 = 0 ; | |
8464 | long val4 ; | |
8465 | int ecode4 = 0 ; | |
8466 | bool temp5 = false ; | |
8467 | PyObject * obj0 = 0 ; | |
8468 | PyObject * obj1 = 0 ; | |
8469 | PyObject * obj2 = 0 ; | |
8470 | PyObject * obj3 = 0 ; | |
8471 | PyObject * obj4 = 0 ; | |
8472 | char * kwnames[] = { | |
8473 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
8474 | }; | |
8475 | ||
8476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8478 | if (!SWIG_IsOK(res1)) { | |
8479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_Create" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8480 | } | |
8481 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8482 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8483 | if (!SWIG_IsOK(res2)) { | |
8484 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StatusBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8485 | } | |
8486 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8487 | if (obj2) { | |
8488 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8489 | if (!SWIG_IsOK(ecode3)) { | |
8490 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
8491 | } | |
8492 | arg3 = static_cast< int >(val3); | |
8493 | } | |
8494 | if (obj3) { | |
8495 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
8496 | if (!SWIG_IsOK(ecode4)) { | |
8497 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StatusBar_Create" "', expected argument " "4"" of type '" "long""'"); | |
8498 | } | |
8499 | arg4 = static_cast< long >(val4); | |
8500 | } | |
8501 | if (obj4) { | |
d14a1e28 | 8502 | { |
0085ce49 RD |
8503 | arg5 = wxString_in_helper(obj4); |
8504 | if (arg5 == NULL) SWIG_fail; | |
8505 | temp5 = true; | |
d14a1e28 | 8506 | } |
0085ce49 RD |
8507 | } |
8508 | { | |
8509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8510 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
8511 | wxPyEndAllowThreads(__tstate); | |
8512 | if (PyErr_Occurred()) SWIG_fail; | |
8513 | } | |
8514 | { | |
8515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8516 | } | |
8517 | { | |
8518 | if (temp5) | |
8519 | delete arg5; | |
8520 | } | |
8521 | return resultobj; | |
8522 | fail: | |
8523 | { | |
8524 | if (temp5) | |
8525 | delete arg5; | |
8526 | } | |
8527 | return NULL; | |
8528 | } | |
8529 | ||
8530 | ||
8531 | SWIGINTERN PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8532 | PyObject *resultobj = 0; | |
8533 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8534 | int arg2 = (int) 1 ; | |
8535 | void *argp1 = 0 ; | |
8536 | int res1 = 0 ; | |
8537 | int val2 ; | |
8538 | int ecode2 = 0 ; | |
8539 | PyObject * obj0 = 0 ; | |
8540 | PyObject * obj1 = 0 ; | |
8541 | char * kwnames[] = { | |
8542 | (char *) "self",(char *) "number", NULL | |
8543 | }; | |
8544 | ||
8545 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
8546 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8547 | if (!SWIG_IsOK(res1)) { | |
8548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetFieldsCount" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8549 | } | |
8550 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8551 | if (obj1) { | |
8552 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8553 | if (!SWIG_IsOK(ecode2)) { | |
8554 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_SetFieldsCount" "', expected argument " "2"" of type '" "int""'"); | |
8555 | } | |
8556 | arg2 = static_cast< int >(val2); | |
8557 | } | |
8558 | { | |
8559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8560 | (arg1)->SetFieldsCount(arg2); | |
8561 | wxPyEndAllowThreads(__tstate); | |
8562 | if (PyErr_Occurred()) SWIG_fail; | |
8563 | } | |
8564 | resultobj = SWIG_Py_Void(); | |
8565 | return resultobj; | |
8566 | fail: | |
8567 | return NULL; | |
d14a1e28 RD |
8568 | } |
8569 | ||
8570 | ||
0085ce49 RD |
8571 | SWIGINTERN PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8572 | PyObject *resultobj = 0; | |
8573 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8574 | int result; | |
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_wxStatusBar, 0 | 0 ); | |
8582 | if (!SWIG_IsOK(res1)) { | |
8583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetFieldsCount" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
8584 | } | |
8585 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8586 | { | |
8587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8588 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
8589 | wxPyEndAllowThreads(__tstate); | |
8590 | if (PyErr_Occurred()) SWIG_fail; | |
8591 | } | |
8592 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8593 | return resultobj; | |
8594 | fail: | |
8595 | return NULL; | |
8596 | } | |
8597 | ||
8598 | ||
8599 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8600 | PyObject *resultobj = 0; | |
8601 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8602 | wxString *arg2 = 0 ; | |
8603 | int arg3 = (int) 0 ; | |
8604 | void *argp1 = 0 ; | |
8605 | int res1 = 0 ; | |
8606 | bool temp2 = false ; | |
8607 | int val3 ; | |
8608 | int ecode3 = 0 ; | |
8609 | PyObject * obj0 = 0 ; | |
8610 | PyObject * obj1 = 0 ; | |
8611 | PyObject * obj2 = 0 ; | |
8612 | char * kwnames[] = { | |
8613 | (char *) "self",(char *) "text",(char *) "number", NULL | |
8614 | }; | |
8615 | ||
8616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8618 | if (!SWIG_IsOK(res1)) { | |
8619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8620 | } | |
8621 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8622 | { | |
8623 | arg2 = wxString_in_helper(obj1); | |
8624 | if (arg2 == NULL) SWIG_fail; | |
8625 | temp2 = true; | |
8626 | } | |
8627 | if (obj2) { | |
8628 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8629 | if (!SWIG_IsOK(ecode3)) { | |
8630 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_SetStatusText" "', expected argument " "3"" of type '" "int""'"); | |
8631 | } | |
8632 | arg3 = static_cast< int >(val3); | |
8633 | } | |
8634 | { | |
8635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8636 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
8637 | wxPyEndAllowThreads(__tstate); | |
8638 | if (PyErr_Occurred()) SWIG_fail; | |
8639 | } | |
8640 | resultobj = SWIG_Py_Void(); | |
8641 | { | |
8642 | if (temp2) | |
8643 | delete arg2; | |
8644 | } | |
8645 | return resultobj; | |
8646 | fail: | |
8647 | { | |
8648 | if (temp2) | |
8649 | delete arg2; | |
8650 | } | |
8651 | return NULL; | |
8652 | } | |
8653 | ||
8654 | ||
8655 | SWIGINTERN PyObject *_wrap_StatusBar_GetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8656 | PyObject *resultobj = 0; | |
8657 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8658 | int arg2 = (int) 0 ; | |
8659 | wxString result; | |
8660 | void *argp1 = 0 ; | |
8661 | int res1 = 0 ; | |
8662 | int val2 ; | |
8663 | int ecode2 = 0 ; | |
8664 | PyObject * obj0 = 0 ; | |
8665 | PyObject * obj1 = 0 ; | |
8666 | char * kwnames[] = { | |
8667 | (char *) "self",(char *) "number", NULL | |
8668 | }; | |
8669 | ||
8670 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
8671 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8672 | if (!SWIG_IsOK(res1)) { | |
8673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetStatusText" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
8674 | } | |
8675 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8676 | if (obj1) { | |
8677 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8678 | if (!SWIG_IsOK(ecode2)) { | |
8679 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_GetStatusText" "', expected argument " "2"" of type '" "int""'"); | |
8680 | } | |
8681 | arg2 = static_cast< int >(val2); | |
8682 | } | |
8683 | { | |
8684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8685 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
8686 | wxPyEndAllowThreads(__tstate); | |
8687 | if (PyErr_Occurred()) SWIG_fail; | |
8688 | } | |
8689 | { | |
8690 | #if wxUSE_UNICODE | |
8691 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8692 | #else | |
8693 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8694 | #endif | |
8695 | } | |
8696 | return resultobj; | |
8697 | fail: | |
8698 | return NULL; | |
8699 | } | |
8700 | ||
8701 | ||
8702 | SWIGINTERN PyObject *_wrap_StatusBar_PushStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8703 | PyObject *resultobj = 0; | |
8704 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8705 | wxString *arg2 = 0 ; | |
8706 | int arg3 = (int) 0 ; | |
8707 | void *argp1 = 0 ; | |
8708 | int res1 = 0 ; | |
8709 | bool temp2 = false ; | |
8710 | int val3 ; | |
8711 | int ecode3 = 0 ; | |
8712 | PyObject * obj0 = 0 ; | |
8713 | PyObject * obj1 = 0 ; | |
8714 | PyObject * obj2 = 0 ; | |
8715 | char * kwnames[] = { | |
8716 | (char *) "self",(char *) "text",(char *) "number", NULL | |
8717 | }; | |
8718 | ||
8719 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8720 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8721 | if (!SWIG_IsOK(res1)) { | |
8722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_PushStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8723 | } | |
8724 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8725 | { | |
8726 | arg2 = wxString_in_helper(obj1); | |
8727 | if (arg2 == NULL) SWIG_fail; | |
8728 | temp2 = true; | |
8729 | } | |
8730 | if (obj2) { | |
8731 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8732 | if (!SWIG_IsOK(ecode3)) { | |
8733 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_PushStatusText" "', expected argument " "3"" of type '" "int""'"); | |
8734 | } | |
8735 | arg3 = static_cast< int >(val3); | |
8736 | } | |
8737 | { | |
8738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8739 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
8740 | wxPyEndAllowThreads(__tstate); | |
8741 | if (PyErr_Occurred()) SWIG_fail; | |
8742 | } | |
8743 | resultobj = SWIG_Py_Void(); | |
8744 | { | |
8745 | if (temp2) | |
8746 | delete arg2; | |
8747 | } | |
8748 | return resultobj; | |
8749 | fail: | |
8750 | { | |
8751 | if (temp2) | |
8752 | delete arg2; | |
8753 | } | |
8754 | return NULL; | |
8755 | } | |
8756 | ||
8757 | ||
8758 | SWIGINTERN PyObject *_wrap_StatusBar_PopStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8759 | PyObject *resultobj = 0; | |
8760 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8761 | int arg2 = (int) 0 ; | |
8762 | void *argp1 = 0 ; | |
8763 | int res1 = 0 ; | |
8764 | int val2 ; | |
8765 | int ecode2 = 0 ; | |
8766 | PyObject * obj0 = 0 ; | |
8767 | PyObject * obj1 = 0 ; | |
8768 | char * kwnames[] = { | |
8769 | (char *) "self",(char *) "number", NULL | |
8770 | }; | |
8771 | ||
8772 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
8773 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8774 | if (!SWIG_IsOK(res1)) { | |
8775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_PopStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8776 | } | |
8777 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8778 | if (obj1) { | |
8779 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8780 | if (!SWIG_IsOK(ecode2)) { | |
8781 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_PopStatusText" "', expected argument " "2"" of type '" "int""'"); | |
8782 | } | |
8783 | arg2 = static_cast< int >(val2); | |
8784 | } | |
8785 | { | |
8786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8787 | (arg1)->PopStatusText(arg2); | |
8788 | wxPyEndAllowThreads(__tstate); | |
8789 | if (PyErr_Occurred()) SWIG_fail; | |
8790 | } | |
8791 | resultobj = SWIG_Py_Void(); | |
8792 | return resultobj; | |
8793 | fail: | |
8794 | return NULL; | |
8795 | } | |
8796 | ||
8797 | ||
8798 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8799 | PyObject *resultobj = 0; | |
8800 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8801 | int arg2 ; | |
8802 | int *arg3 = (int *) 0 ; | |
8803 | void *argp1 = 0 ; | |
8804 | int res1 = 0 ; | |
8805 | PyObject * obj0 = 0 ; | |
8806 | PyObject * obj1 = 0 ; | |
8807 | char * kwnames[] = { | |
8808 | (char *) "self",(char *) "widths", NULL | |
8809 | }; | |
8810 | ||
8811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) SWIG_fail; | |
8812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8813 | if (!SWIG_IsOK(res1)) { | |
8814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusWidths" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8815 | } | |
8816 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8817 | { | |
8818 | arg2 = PyList_Size(obj1); | |
8819 | arg3 = int_LIST_helper(obj1); | |
8820 | if (arg3 == NULL) SWIG_fail; | |
8821 | } | |
8822 | { | |
8823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8824 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
8825 | wxPyEndAllowThreads(__tstate); | |
8826 | if (PyErr_Occurred()) SWIG_fail; | |
8827 | } | |
8828 | resultobj = SWIG_Py_Void(); | |
8829 | { | |
8830 | if (arg3) delete [] arg3; | |
8831 | } | |
8832 | return resultobj; | |
8833 | fail: | |
8834 | { | |
8835 | if (arg3) delete [] arg3; | |
8836 | } | |
8837 | return NULL; | |
d14a1e28 RD |
8838 | } |
8839 | ||
8840 | ||
0085ce49 RD |
8841 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8842 | PyObject *resultobj = 0; | |
8843 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8844 | int arg2 ; | |
8845 | int *arg3 = (int *) 0 ; | |
8846 | void *argp1 = 0 ; | |
8847 | int res1 = 0 ; | |
8848 | PyObject * obj0 = 0 ; | |
8849 | PyObject * obj1 = 0 ; | |
8850 | char * kwnames[] = { | |
8851 | (char *) "self",(char *) "styles", NULL | |
8852 | }; | |
8853 | ||
8854 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusStyles",kwnames,&obj0,&obj1)) SWIG_fail; | |
8855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8856 | if (!SWIG_IsOK(res1)) { | |
8857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusStyles" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8858 | } | |
8859 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8860 | { | |
8861 | arg2 = PyList_Size(obj1); | |
8862 | arg3 = int_LIST_helper(obj1); | |
8863 | if (arg3 == NULL) SWIG_fail; | |
8864 | } | |
8865 | { | |
8866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8867 | (arg1)->SetStatusStyles(arg2,(int const *)arg3); | |
8868 | wxPyEndAllowThreads(__tstate); | |
8869 | if (PyErr_Occurred()) SWIG_fail; | |
8870 | } | |
8871 | resultobj = SWIG_Py_Void(); | |
8872 | { | |
8873 | if (arg3) delete [] arg3; | |
8874 | } | |
8875 | return resultobj; | |
8876 | fail: | |
8877 | { | |
8878 | if (arg3) delete [] arg3; | |
8879 | } | |
8880 | return NULL; | |
8881 | } | |
8882 | ||
8883 | ||
8884 | SWIGINTERN PyObject *_wrap_StatusBar_GetFieldRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8885 | PyObject *resultobj = 0; | |
8886 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8887 | int arg2 ; | |
8888 | wxRect result; | |
8889 | void *argp1 = 0 ; | |
8890 | int res1 = 0 ; | |
8891 | int val2 ; | |
8892 | int ecode2 = 0 ; | |
8893 | PyObject * obj0 = 0 ; | |
8894 | PyObject * obj1 = 0 ; | |
8895 | char * kwnames[] = { | |
8896 | (char *) "self",(char *) "i", NULL | |
8897 | }; | |
8898 | ||
8899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
8900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8901 | if (!SWIG_IsOK(res1)) { | |
8902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetFieldRect" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8903 | } | |
8904 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8905 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8906 | if (!SWIG_IsOK(ecode2)) { | |
8907 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_GetFieldRect" "', expected argument " "2"" of type '" "int""'"); | |
8908 | } | |
8909 | arg2 = static_cast< int >(val2); | |
8910 | { | |
8911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8912 | result = wxStatusBar_GetFieldRect(arg1,arg2); | |
8913 | wxPyEndAllowThreads(__tstate); | |
8914 | if (PyErr_Occurred()) SWIG_fail; | |
8915 | } | |
8916 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
8917 | return resultobj; | |
8918 | fail: | |
8919 | return NULL; | |
8920 | } | |
8921 | ||
8922 | ||
8923 | SWIGINTERN PyObject *_wrap_StatusBar_SetMinHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8924 | PyObject *resultobj = 0; | |
8925 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8926 | int arg2 ; | |
8927 | void *argp1 = 0 ; | |
8928 | int res1 = 0 ; | |
8929 | int val2 ; | |
8930 | int ecode2 = 0 ; | |
8931 | PyObject * obj0 = 0 ; | |
8932 | PyObject * obj1 = 0 ; | |
8933 | char * kwnames[] = { | |
8934 | (char *) "self",(char *) "height", NULL | |
8935 | }; | |
8936 | ||
8937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
8938 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8939 | if (!SWIG_IsOK(res1)) { | |
8940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetMinHeight" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8941 | } | |
8942 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8943 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8944 | if (!SWIG_IsOK(ecode2)) { | |
8945 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_SetMinHeight" "', expected argument " "2"" of type '" "int""'"); | |
8946 | } | |
8947 | arg2 = static_cast< int >(val2); | |
8948 | { | |
8949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8950 | (arg1)->SetMinHeight(arg2); | |
8951 | wxPyEndAllowThreads(__tstate); | |
8952 | if (PyErr_Occurred()) SWIG_fail; | |
8953 | } | |
8954 | resultobj = SWIG_Py_Void(); | |
8955 | return resultobj; | |
8956 | fail: | |
8957 | return NULL; | |
d14a1e28 RD |
8958 | } |
8959 | ||
8960 | ||
0085ce49 RD |
8961 | SWIGINTERN PyObject *_wrap_StatusBar_GetBorderX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8962 | PyObject *resultobj = 0; | |
8963 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8964 | int result; | |
8965 | void *argp1 = 0 ; | |
8966 | int res1 = 0 ; | |
8967 | PyObject *swig_obj[1] ; | |
8968 | ||
8969 | if (!args) SWIG_fail; | |
8970 | swig_obj[0] = args; | |
8971 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8972 | if (!SWIG_IsOK(res1)) { | |
8973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetBorderX" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
8974 | } | |
8975 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8976 | { | |
8977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8978 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
8979 | wxPyEndAllowThreads(__tstate); | |
8980 | if (PyErr_Occurred()) SWIG_fail; | |
8981 | } | |
8982 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8983 | return resultobj; | |
8984 | fail: | |
8985 | return NULL; | |
d14a1e28 RD |
8986 | } |
8987 | ||
8988 | ||
0085ce49 RD |
8989 | SWIGINTERN PyObject *_wrap_StatusBar_GetBorderY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8990 | PyObject *resultobj = 0; | |
8991 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8992 | int result; | |
8993 | void *argp1 = 0 ; | |
8994 | int res1 = 0 ; | |
8995 | PyObject *swig_obj[1] ; | |
8996 | ||
8997 | if (!args) SWIG_fail; | |
8998 | swig_obj[0] = args; | |
8999 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9000 | if (!SWIG_IsOK(res1)) { | |
9001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetBorderY" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
9002 | } | |
9003 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9004 | { | |
9005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9006 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
9007 | wxPyEndAllowThreads(__tstate); | |
9008 | if (PyErr_Occurred()) SWIG_fail; | |
9009 | } | |
9010 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9011 | return resultobj; | |
9012 | fail: | |
9013 | return NULL; | |
9014 | } | |
9015 | ||
9016 | ||
9017 | SWIGINTERN PyObject *_wrap_StatusBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9018 | PyObject *resultobj = 0; | |
9019 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
9020 | SwigValueWrapper<wxVisualAttributes > result; | |
9021 | int val1 ; | |
9022 | int ecode1 = 0 ; | |
9023 | PyObject * obj0 = 0 ; | |
9024 | char * kwnames[] = { | |
9025 | (char *) "variant", NULL | |
9026 | }; | |
9027 | ||
9028 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StatusBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
9029 | if (obj0) { | |
9030 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
9031 | if (!SWIG_IsOK(ecode1)) { | |
9032 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StatusBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
9033 | } | |
9034 | arg1 = static_cast< wxWindowVariant >(val1); | |
9035 | } | |
9036 | { | |
9037 | if (!wxPyCheckForApp()) SWIG_fail; | |
9038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9039 | result = wxStatusBar::GetClassDefaultAttributes(arg1); | |
9040 | wxPyEndAllowThreads(__tstate); | |
9041 | if (PyErr_Occurred()) SWIG_fail; | |
9042 | } | |
9043 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
9044 | return resultobj; | |
9045 | fail: | |
9046 | return NULL; | |
d14a1e28 RD |
9047 | } |
9048 | ||
9049 | ||
0085ce49 RD |
9050 | SWIGINTERN PyObject *StatusBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9051 | PyObject *obj; | |
9052 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9053 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStatusBar, SWIG_NewClientData(obj)); | |
9054 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9055 | } |
9056 | ||
0085ce49 RD |
9057 | SWIGINTERN PyObject *StatusBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9058 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9059 | } |
9060 | ||
0085ce49 RD |
9061 | SWIGINTERN int SplitterNameStr_set(PyObject *) { |
9062 | SWIG_Error(SWIG_AttributeError,"Variable SplitterNameStr is read-only."); | |
9063 | return 1; | |
d14a1e28 RD |
9064 | } |
9065 | ||
9066 | ||
0085ce49 RD |
9067 | SWIGINTERN PyObject *SplitterNameStr_get(void) { |
9068 | PyObject *pyobj = 0; | |
9069 | ||
9070 | { | |
9071 | #if wxUSE_UNICODE | |
9072 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
9073 | #else | |
9074 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
9075 | #endif | |
9076 | } | |
9077 | return pyobj; | |
9078 | } | |
9079 | ||
9080 | ||
9081 | SWIGINTERN PyObject *_wrap_new_SplitterWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9082 | PyObject *resultobj = 0; | |
9083 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9084 | int arg2 = (int) -1 ; | |
9085 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9086 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9087 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9088 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9089 | long arg5 = (long) wxSP_3D ; | |
9090 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
9091 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9092 | wxSplitterWindow *result = 0 ; | |
9093 | void *argp1 = 0 ; | |
9094 | int res1 = 0 ; | |
9095 | int val2 ; | |
9096 | int ecode2 = 0 ; | |
9097 | wxPoint temp3 ; | |
9098 | wxSize temp4 ; | |
9099 | long val5 ; | |
9100 | int ecode5 = 0 ; | |
9101 | bool temp6 = false ; | |
9102 | PyObject * obj0 = 0 ; | |
9103 | PyObject * obj1 = 0 ; | |
9104 | PyObject * obj2 = 0 ; | |
9105 | PyObject * obj3 = 0 ; | |
9106 | PyObject * obj4 = 0 ; | |
9107 | PyObject * obj5 = 0 ; | |
9108 | char * kwnames[] = { | |
9109 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9110 | }; | |
9111 | ||
9112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
9113 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9114 | if (!SWIG_IsOK(res1)) { | |
9115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplitterWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
9116 | } | |
9117 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
9118 | if (obj1) { | |
9119 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9120 | if (!SWIG_IsOK(ecode2)) { | |
9121 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterWindow" "', expected argument " "2"" of type '" "int""'"); | |
9122 | } | |
9123 | arg2 = static_cast< int >(val2); | |
9124 | } | |
9125 | if (obj2) { | |
093d3ff1 | 9126 | { |
0085ce49 RD |
9127 | arg3 = &temp3; |
9128 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 9129 | } |
0085ce49 RD |
9130 | } |
9131 | if (obj3) { | |
d14a1e28 | 9132 | { |
0085ce49 RD |
9133 | arg4 = &temp4; |
9134 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 9135 | } |
0085ce49 RD |
9136 | } |
9137 | if (obj4) { | |
9138 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
9139 | if (!SWIG_IsOK(ecode5)) { | |
9140 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SplitterWindow" "', expected argument " "5"" of type '" "long""'"); | |
9141 | } | |
9142 | arg5 = static_cast< long >(val5); | |
9143 | } | |
9144 | if (obj5) { | |
093d3ff1 | 9145 | { |
0085ce49 RD |
9146 | arg6 = wxString_in_helper(obj5); |
9147 | if (arg6 == NULL) SWIG_fail; | |
9148 | temp6 = true; | |
093d3ff1 | 9149 | } |
0085ce49 RD |
9150 | } |
9151 | { | |
9152 | if (!wxPyCheckForApp()) SWIG_fail; | |
9153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9154 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9155 | wxPyEndAllowThreads(__tstate); | |
9156 | if (PyErr_Occurred()) SWIG_fail; | |
9157 | } | |
9158 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterWindow, SWIG_POINTER_NEW | 0 ); | |
9159 | { | |
9160 | if (temp6) | |
9161 | delete arg6; | |
9162 | } | |
9163 | return resultobj; | |
9164 | fail: | |
9165 | { | |
9166 | if (temp6) | |
9167 | delete arg6; | |
9168 | } | |
9169 | return NULL; | |
d14a1e28 RD |
9170 | } |
9171 | ||
9172 | ||
0085ce49 RD |
9173 | SWIGINTERN PyObject *_wrap_new_PreSplitterWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9174 | PyObject *resultobj = 0; | |
9175 | wxSplitterWindow *result = 0 ; | |
9176 | ||
9177 | if (!SWIG_Python_UnpackTuple(args,"new_PreSplitterWindow",0,0,0)) SWIG_fail; | |
9178 | { | |
9179 | if (!wxPyCheckForApp()) SWIG_fail; | |
9180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9181 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
9182 | wxPyEndAllowThreads(__tstate); | |
9183 | if (PyErr_Occurred()) SWIG_fail; | |
9184 | } | |
9185 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterWindow, SWIG_POINTER_OWN | 0 ); | |
9186 | return resultobj; | |
9187 | fail: | |
9188 | return NULL; | |
9189 | } | |
9190 | ||
9191 | ||
9192 | SWIGINTERN PyObject *_wrap_SplitterWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9193 | PyObject *resultobj = 0; | |
9194 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9195 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9196 | int arg3 = (int) -1 ; | |
9197 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9198 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9199 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9200 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9201 | long arg6 = (long) wxSP_3D ; | |
9202 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
9203 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9204 | bool result; | |
9205 | void *argp1 = 0 ; | |
9206 | int res1 = 0 ; | |
9207 | void *argp2 = 0 ; | |
9208 | int res2 = 0 ; | |
9209 | int val3 ; | |
9210 | int ecode3 = 0 ; | |
9211 | wxPoint temp4 ; | |
9212 | wxSize temp5 ; | |
9213 | long val6 ; | |
9214 | int ecode6 = 0 ; | |
9215 | bool temp7 = false ; | |
9216 | PyObject * obj0 = 0 ; | |
9217 | PyObject * obj1 = 0 ; | |
9218 | PyObject * obj2 = 0 ; | |
9219 | PyObject * obj3 = 0 ; | |
9220 | PyObject * obj4 = 0 ; | |
9221 | PyObject * obj5 = 0 ; | |
9222 | PyObject * obj6 = 0 ; | |
9223 | char * kwnames[] = { | |
9224 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9225 | }; | |
9226 | ||
9227 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
9228 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9229 | if (!SWIG_IsOK(res1)) { | |
9230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Create" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9231 | } | |
9232 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9233 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9234 | if (!SWIG_IsOK(res2)) { | |
9235 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9236 | } | |
9237 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9238 | if (obj2) { | |
9239 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9240 | if (!SWIG_IsOK(ecode3)) { | |
9241 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
9242 | } | |
9243 | arg3 = static_cast< int >(val3); | |
9244 | } | |
9245 | if (obj3) { | |
d14a1e28 | 9246 | { |
0085ce49 RD |
9247 | arg4 = &temp4; |
9248 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 9249 | } |
0085ce49 RD |
9250 | } |
9251 | if (obj4) { | |
d14a1e28 | 9252 | { |
0085ce49 RD |
9253 | arg5 = &temp5; |
9254 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 9255 | } |
0085ce49 RD |
9256 | } |
9257 | if (obj5) { | |
9258 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
9259 | if (!SWIG_IsOK(ecode6)) { | |
9260 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SplitterWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
9261 | } | |
9262 | arg6 = static_cast< long >(val6); | |
9263 | } | |
9264 | if (obj6) { | |
d14a1e28 | 9265 | { |
0085ce49 RD |
9266 | arg7 = wxString_in_helper(obj6); |
9267 | if (arg7 == NULL) SWIG_fail; | |
9268 | temp7 = true; | |
d14a1e28 | 9269 | } |
0085ce49 RD |
9270 | } |
9271 | { | |
9272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9273 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9274 | wxPyEndAllowThreads(__tstate); | |
9275 | if (PyErr_Occurred()) SWIG_fail; | |
9276 | } | |
9277 | { | |
9278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9279 | } | |
9280 | { | |
9281 | if (temp7) | |
9282 | delete arg7; | |
9283 | } | |
9284 | return resultobj; | |
9285 | fail: | |
9286 | { | |
9287 | if (temp7) | |
9288 | delete arg7; | |
9289 | } | |
9290 | return NULL; | |
d14a1e28 RD |
9291 | } |
9292 | ||
9293 | ||
0085ce49 RD |
9294 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9295 | PyObject *resultobj = 0; | |
9296 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9297 | wxWindow *result = 0 ; | |
9298 | void *argp1 = 0 ; | |
9299 | int res1 = 0 ; | |
9300 | PyObject *swig_obj[1] ; | |
9301 | ||
9302 | if (!args) SWIG_fail; | |
9303 | swig_obj[0] = args; | |
9304 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9305 | if (!SWIG_IsOK(res1)) { | |
9306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetWindow1" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9307 | } | |
9308 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9309 | { | |
9310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9311 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
9312 | wxPyEndAllowThreads(__tstate); | |
9313 | if (PyErr_Occurred()) SWIG_fail; | |
9314 | } | |
9315 | { | |
9316 | resultobj = wxPyMake_wxObject(result, 0); | |
9317 | } | |
9318 | return resultobj; | |
9319 | fail: | |
9320 | return NULL; | |
d14a1e28 RD |
9321 | } |
9322 | ||
9323 | ||
0085ce49 RD |
9324 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9325 | PyObject *resultobj = 0; | |
9326 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9327 | wxWindow *result = 0 ; | |
9328 | void *argp1 = 0 ; | |
9329 | int res1 = 0 ; | |
9330 | PyObject *swig_obj[1] ; | |
9331 | ||
9332 | if (!args) SWIG_fail; | |
9333 | swig_obj[0] = args; | |
9334 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9335 | if (!SWIG_IsOK(res1)) { | |
9336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetWindow2" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9337 | } | |
9338 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9339 | { | |
9340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9341 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
9342 | wxPyEndAllowThreads(__tstate); | |
9343 | if (PyErr_Occurred()) SWIG_fail; | |
9344 | } | |
9345 | { | |
9346 | resultobj = wxPyMake_wxObject(result, 0); | |
9347 | } | |
9348 | return resultobj; | |
9349 | fail: | |
9350 | return NULL; | |
9351 | } | |
9352 | ||
9353 | ||
9354 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9355 | PyObject *resultobj = 0; | |
9356 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9357 | int arg2 ; | |
9358 | void *argp1 = 0 ; | |
9359 | int res1 = 0 ; | |
9360 | int val2 ; | |
9361 | int ecode2 = 0 ; | |
9362 | PyObject * obj0 = 0 ; | |
9363 | PyObject * obj1 = 0 ; | |
9364 | char * kwnames[] = { | |
9365 | (char *) "self",(char *) "mode", NULL | |
9366 | }; | |
9367 | ||
9368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
9369 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9370 | if (!SWIG_IsOK(res1)) { | |
9371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSplitMode" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9372 | } | |
9373 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9374 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9375 | if (!SWIG_IsOK(ecode2)) { | |
9376 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSplitMode" "', expected argument " "2"" of type '" "int""'"); | |
9377 | } | |
9378 | arg2 = static_cast< int >(val2); | |
9379 | { | |
9380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9381 | (arg1)->SetSplitMode(arg2); | |
9382 | wxPyEndAllowThreads(__tstate); | |
9383 | if (PyErr_Occurred()) SWIG_fail; | |
9384 | } | |
9385 | resultobj = SWIG_Py_Void(); | |
9386 | return resultobj; | |
9387 | fail: | |
9388 | return NULL; | |
d14a1e28 RD |
9389 | } |
9390 | ||
9391 | ||
0085ce49 RD |
9392 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9393 | PyObject *resultobj = 0; | |
9394 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9395 | wxSplitMode result; | |
9396 | void *argp1 = 0 ; | |
9397 | int res1 = 0 ; | |
9398 | PyObject *swig_obj[1] ; | |
9399 | ||
9400 | if (!args) SWIG_fail; | |
9401 | swig_obj[0] = args; | |
9402 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9403 | if (!SWIG_IsOK(res1)) { | |
9404 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSplitMode" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9405 | } | |
9406 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9407 | { | |
9408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9409 | result = (wxSplitMode)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
9410 | wxPyEndAllowThreads(__tstate); | |
9411 | if (PyErr_Occurred()) SWIG_fail; | |
9412 | } | |
9413 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9414 | return resultobj; | |
9415 | fail: | |
9416 | return NULL; | |
9417 | } | |
9418 | ||
9419 | ||
9420 | SWIGINTERN PyObject *_wrap_SplitterWindow_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9421 | PyObject *resultobj = 0; | |
9422 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9423 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9424 | void *argp1 = 0 ; | |
9425 | int res1 = 0 ; | |
9426 | void *argp2 = 0 ; | |
9427 | int res2 = 0 ; | |
9428 | PyObject * obj0 = 0 ; | |
9429 | PyObject * obj1 = 0 ; | |
9430 | char * kwnames[] = { | |
9431 | (char *) "self",(char *) "window", NULL | |
9432 | }; | |
9433 | ||
9434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9435 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9436 | if (!SWIG_IsOK(res1)) { | |
9437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Initialize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9438 | } | |
9439 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9440 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9441 | if (!SWIG_IsOK(res2)) { | |
9442 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Initialize" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9443 | } | |
9444 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9445 | { | |
9446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9447 | (arg1)->Initialize(arg2); | |
9448 | wxPyEndAllowThreads(__tstate); | |
9449 | if (PyErr_Occurred()) SWIG_fail; | |
9450 | } | |
9451 | resultobj = SWIG_Py_Void(); | |
9452 | return resultobj; | |
9453 | fail: | |
9454 | return NULL; | |
9455 | } | |
9456 | ||
9457 | ||
9458 | SWIGINTERN PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9459 | PyObject *resultobj = 0; | |
9460 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9461 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9462 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9463 | int arg4 = (int) 0 ; | |
9464 | bool result; | |
9465 | void *argp1 = 0 ; | |
9466 | int res1 = 0 ; | |
9467 | void *argp2 = 0 ; | |
9468 | int res2 = 0 ; | |
9469 | void *argp3 = 0 ; | |
9470 | int res3 = 0 ; | |
9471 | int val4 ; | |
9472 | int ecode4 = 0 ; | |
9473 | PyObject * obj0 = 0 ; | |
9474 | PyObject * obj1 = 0 ; | |
9475 | PyObject * obj2 = 0 ; | |
9476 | PyObject * obj3 = 0 ; | |
9477 | char * kwnames[] = { | |
9478 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
9479 | }; | |
9480 | ||
9481 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9482 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9483 | if (!SWIG_IsOK(res1)) { | |
9484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9485 | } | |
9486 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9487 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9488 | if (!SWIG_IsOK(res2)) { | |
9489 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9490 | } | |
9491 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9492 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9493 | if (!SWIG_IsOK(res3)) { | |
9494 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9495 | } | |
9496 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9497 | if (obj3) { | |
9498 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9499 | if (!SWIG_IsOK(ecode4)) { | |
9500 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "4"" of type '" "int""'"); | |
9501 | } | |
9502 | arg4 = static_cast< int >(val4); | |
9503 | } | |
9504 | { | |
9505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9506 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
9507 | wxPyEndAllowThreads(__tstate); | |
9508 | if (PyErr_Occurred()) SWIG_fail; | |
9509 | } | |
9510 | { | |
9511 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9512 | } | |
9513 | return resultobj; | |
9514 | fail: | |
9515 | return NULL; | |
9516 | } | |
9517 | ||
9518 | ||
9519 | SWIGINTERN PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9520 | PyObject *resultobj = 0; | |
9521 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9522 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9523 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9524 | int arg4 = (int) 0 ; | |
9525 | bool result; | |
9526 | void *argp1 = 0 ; | |
9527 | int res1 = 0 ; | |
9528 | void *argp2 = 0 ; | |
9529 | int res2 = 0 ; | |
9530 | void *argp3 = 0 ; | |
9531 | int res3 = 0 ; | |
9532 | int val4 ; | |
9533 | int ecode4 = 0 ; | |
9534 | PyObject * obj0 = 0 ; | |
9535 | PyObject * obj1 = 0 ; | |
9536 | PyObject * obj2 = 0 ; | |
9537 | PyObject * obj3 = 0 ; | |
9538 | char * kwnames[] = { | |
9539 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
9540 | }; | |
9541 | ||
9542 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9543 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9544 | if (!SWIG_IsOK(res1)) { | |
9545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9546 | } | |
9547 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9548 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9549 | if (!SWIG_IsOK(res2)) { | |
9550 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9551 | } | |
9552 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9553 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9554 | if (!SWIG_IsOK(res3)) { | |
9555 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9556 | } | |
9557 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9558 | if (obj3) { | |
9559 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9560 | if (!SWIG_IsOK(ecode4)) { | |
9561 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "4"" of type '" "int""'"); | |
9562 | } | |
9563 | arg4 = static_cast< int >(val4); | |
9564 | } | |
9565 | { | |
9566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9567 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
9568 | wxPyEndAllowThreads(__tstate); | |
9569 | if (PyErr_Occurred()) SWIG_fail; | |
9570 | } | |
9571 | { | |
9572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9573 | } | |
9574 | return resultobj; | |
9575 | fail: | |
9576 | return NULL; | |
9577 | } | |
9578 | ||
9579 | ||
9580 | SWIGINTERN PyObject *_wrap_SplitterWindow_Unsplit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9581 | PyObject *resultobj = 0; | |
9582 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9583 | wxWindow *arg2 = (wxWindow *) NULL ; | |
9584 | bool result; | |
9585 | void *argp1 = 0 ; | |
9586 | int res1 = 0 ; | |
9587 | void *argp2 = 0 ; | |
9588 | int res2 = 0 ; | |
9589 | PyObject * obj0 = 0 ; | |
9590 | PyObject * obj1 = 0 ; | |
9591 | char * kwnames[] = { | |
9592 | (char *) "self",(char *) "toRemove", NULL | |
9593 | }; | |
9594 | ||
9595 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) SWIG_fail; | |
9596 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9597 | if (!SWIG_IsOK(res1)) { | |
9598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Unsplit" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9599 | } | |
9600 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9601 | if (obj1) { | |
9602 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9603 | if (!SWIG_IsOK(res2)) { | |
9604 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Unsplit" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
d14a1e28 | 9605 | } |
0085ce49 RD |
9606 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
9607 | } | |
9608 | { | |
9609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9610 | result = (bool)(arg1)->Unsplit(arg2); | |
9611 | wxPyEndAllowThreads(__tstate); | |
9612 | if (PyErr_Occurred()) SWIG_fail; | |
9613 | } | |
9614 | { | |
9615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9616 | } | |
9617 | return resultobj; | |
9618 | fail: | |
9619 | return NULL; | |
9620 | } | |
9621 | ||
9622 | ||
9623 | SWIGINTERN PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9624 | PyObject *resultobj = 0; | |
9625 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9626 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9627 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9628 | bool result; | |
9629 | void *argp1 = 0 ; | |
9630 | int res1 = 0 ; | |
9631 | void *argp2 = 0 ; | |
9632 | int res2 = 0 ; | |
9633 | void *argp3 = 0 ; | |
9634 | int res3 = 0 ; | |
9635 | PyObject * obj0 = 0 ; | |
9636 | PyObject * obj1 = 0 ; | |
9637 | PyObject * obj2 = 0 ; | |
9638 | char * kwnames[] = { | |
9639 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
9640 | }; | |
9641 | ||
9642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9643 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9644 | if (!SWIG_IsOK(res1)) { | |
9645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9646 | } | |
9647 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9648 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9649 | if (!SWIG_IsOK(res2)) { | |
9650 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9651 | } | |
9652 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9653 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9654 | if (!SWIG_IsOK(res3)) { | |
9655 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9656 | } | |
9657 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9658 | { | |
9659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9660 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
9661 | wxPyEndAllowThreads(__tstate); | |
9662 | if (PyErr_Occurred()) SWIG_fail; | |
9663 | } | |
9664 | { | |
9665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9666 | } | |
9667 | return resultobj; | |
9668 | fail: | |
9669 | return NULL; | |
d14a1e28 RD |
9670 | } |
9671 | ||
9672 | ||
0085ce49 RD |
9673 | SWIGINTERN PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9674 | PyObject *resultobj = 0; | |
9675 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9676 | void *argp1 = 0 ; | |
9677 | int res1 = 0 ; | |
9678 | PyObject *swig_obj[1] ; | |
9679 | ||
9680 | if (!args) SWIG_fail; | |
9681 | swig_obj[0] = args; | |
9682 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9683 | if (!SWIG_IsOK(res1)) { | |
9684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_UpdateSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9685 | } | |
9686 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9687 | { | |
9688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9689 | (arg1)->UpdateSize(); | |
9690 | wxPyEndAllowThreads(__tstate); | |
9691 | if (PyErr_Occurred()) SWIG_fail; | |
9692 | } | |
9693 | resultobj = SWIG_Py_Void(); | |
9694 | return resultobj; | |
9695 | fail: | |
9696 | return NULL; | |
22bfe96c RD |
9697 | } |
9698 | ||
9699 | ||
0085ce49 RD |
9700 | SWIGINTERN PyObject *_wrap_SplitterWindow_IsSplit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9701 | PyObject *resultobj = 0; | |
9702 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9703 | bool result; | |
9704 | void *argp1 = 0 ; | |
9705 | int res1 = 0 ; | |
9706 | PyObject *swig_obj[1] ; | |
9707 | ||
9708 | if (!args) SWIG_fail; | |
9709 | swig_obj[0] = args; | |
9710 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9711 | if (!SWIG_IsOK(res1)) { | |
9712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_IsSplit" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9713 | } | |
9714 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9715 | { | |
9716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9717 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
9718 | wxPyEndAllowThreads(__tstate); | |
9719 | if (PyErr_Occurred()) SWIG_fail; | |
9720 | } | |
9721 | { | |
9722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9723 | } | |
9724 | return resultobj; | |
9725 | fail: | |
9726 | return NULL; | |
9727 | } | |
9728 | ||
9729 | ||
9730 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9731 | PyObject *resultobj = 0; | |
9732 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9733 | int arg2 ; | |
9734 | void *argp1 = 0 ; | |
9735 | int res1 = 0 ; | |
9736 | int val2 ; | |
9737 | int ecode2 = 0 ; | |
9738 | PyObject * obj0 = 0 ; | |
9739 | PyObject * obj1 = 0 ; | |
9740 | char * kwnames[] = { | |
9741 | (char *) "self",(char *) "width", NULL | |
9742 | }; | |
9743 | ||
9744 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9745 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9746 | if (!SWIG_IsOK(res1)) { | |
9747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9748 | } | |
9749 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9750 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9751 | if (!SWIG_IsOK(ecode2)) { | |
9752 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashSize" "', expected argument " "2"" of type '" "int""'"); | |
9753 | } | |
9754 | arg2 = static_cast< int >(val2); | |
9755 | { | |
9756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9757 | (arg1)->SetSashSize(arg2); | |
9758 | wxPyEndAllowThreads(__tstate); | |
9759 | if (PyErr_Occurred()) SWIG_fail; | |
9760 | } | |
9761 | resultobj = SWIG_Py_Void(); | |
9762 | return resultobj; | |
9763 | fail: | |
9764 | return NULL; | |
9765 | } | |
9766 | ||
9767 | ||
9768 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9769 | PyObject *resultobj = 0; | |
9770 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9771 | int arg2 ; | |
9772 | void *argp1 = 0 ; | |
9773 | int res1 = 0 ; | |
9774 | int val2 ; | |
9775 | int ecode2 = 0 ; | |
9776 | PyObject * obj0 = 0 ; | |
9777 | PyObject * obj1 = 0 ; | |
9778 | char * kwnames[] = { | |
9779 | (char *) "self",(char *) "width", NULL | |
9780 | }; | |
9781 | ||
9782 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9783 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9784 | if (!SWIG_IsOK(res1)) { | |
9785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetBorderSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9786 | } | |
9787 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9788 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9789 | if (!SWIG_IsOK(ecode2)) { | |
9790 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
9791 | } | |
9792 | arg2 = static_cast< int >(val2); | |
9793 | { | |
9794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9795 | (arg1)->SetBorderSize(arg2); | |
9796 | wxPyEndAllowThreads(__tstate); | |
9797 | if (PyErr_Occurred()) SWIG_fail; | |
9798 | } | |
9799 | resultobj = SWIG_Py_Void(); | |
9800 | return resultobj; | |
9801 | fail: | |
9802 | return NULL; | |
d14a1e28 RD |
9803 | } |
9804 | ||
9805 | ||
0085ce49 RD |
9806 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9807 | PyObject *resultobj = 0; | |
9808 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9809 | int result; | |
9810 | void *argp1 = 0 ; | |
9811 | int res1 = 0 ; | |
9812 | PyObject *swig_obj[1] ; | |
9813 | ||
9814 | if (!args) SWIG_fail; | |
9815 | swig_obj[0] = args; | |
9816 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9817 | if (!SWIG_IsOK(res1)) { | |
9818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9819 | } | |
9820 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9821 | { | |
9822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9823 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
9824 | wxPyEndAllowThreads(__tstate); | |
9825 | if (PyErr_Occurred()) SWIG_fail; | |
9826 | } | |
9827 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9828 | return resultobj; | |
9829 | fail: | |
9830 | return NULL; | |
d14a1e28 RD |
9831 | } |
9832 | ||
9833 | ||
0085ce49 RD |
9834 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9835 | PyObject *resultobj = 0; | |
9836 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9837 | int result; | |
9838 | void *argp1 = 0 ; | |
9839 | int res1 = 0 ; | |
9840 | PyObject *swig_obj[1] ; | |
9841 | ||
9842 | if (!args) SWIG_fail; | |
9843 | swig_obj[0] = args; | |
9844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9845 | if (!SWIG_IsOK(res1)) { | |
9846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetBorderSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9847 | } | |
9848 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9849 | { | |
9850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9851 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
9852 | wxPyEndAllowThreads(__tstate); | |
9853 | if (PyErr_Occurred()) SWIG_fail; | |
9854 | } | |
9855 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9856 | return resultobj; | |
9857 | fail: | |
9858 | return NULL; | |
9859 | } | |
9860 | ||
9861 | ||
9862 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9863 | PyObject *resultobj = 0; | |
9864 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9865 | int arg2 ; | |
9866 | bool arg3 = (bool) true ; | |
9867 | void *argp1 = 0 ; | |
9868 | int res1 = 0 ; | |
9869 | int val2 ; | |
9870 | int ecode2 = 0 ; | |
9871 | bool val3 ; | |
9872 | int ecode3 = 0 ; | |
9873 | PyObject * obj0 = 0 ; | |
9874 | PyObject * obj1 = 0 ; | |
9875 | PyObject * obj2 = 0 ; | |
9876 | char * kwnames[] = { | |
9877 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
9878 | }; | |
9879 | ||
9880 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9881 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9882 | if (!SWIG_IsOK(res1)) { | |
9883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9884 | } | |
9885 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9886 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9887 | if (!SWIG_IsOK(ecode2)) { | |
9888 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "2"" of type '" "int""'"); | |
9889 | } | |
9890 | arg2 = static_cast< int >(val2); | |
9891 | if (obj2) { | |
9892 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
9893 | if (!SWIG_IsOK(ecode3)) { | |
9894 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "3"" of type '" "bool""'"); | |
9895 | } | |
9896 | arg3 = static_cast< bool >(val3); | |
9897 | } | |
9898 | { | |
9899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9900 | (arg1)->SetSashPosition(arg2,arg3); | |
9901 | wxPyEndAllowThreads(__tstate); | |
9902 | if (PyErr_Occurred()) SWIG_fail; | |
9903 | } | |
9904 | resultobj = SWIG_Py_Void(); | |
9905 | return resultobj; | |
9906 | fail: | |
9907 | return NULL; | |
d14a1e28 RD |
9908 | } |
9909 | ||
9910 | ||
0085ce49 RD |
9911 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9912 | PyObject *resultobj = 0; | |
9913 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9914 | int result; | |
9915 | void *argp1 = 0 ; | |
9916 | int res1 = 0 ; | |
9917 | PyObject *swig_obj[1] ; | |
9918 | ||
9919 | if (!args) SWIG_fail; | |
9920 | swig_obj[0] = args; | |
9921 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9922 | if (!SWIG_IsOK(res1)) { | |
9923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashPosition" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9924 | } | |
9925 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9926 | { | |
9927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9928 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
9929 | wxPyEndAllowThreads(__tstate); | |
9930 | if (PyErr_Occurred()) SWIG_fail; | |
9931 | } | |
9932 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9933 | return resultobj; | |
9934 | fail: | |
9935 | return NULL; | |
9936 | } | |
9937 | ||
9938 | ||
9939 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashGravity(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9940 | PyObject *resultobj = 0; | |
9941 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9942 | double arg2 ; | |
9943 | void *argp1 = 0 ; | |
9944 | int res1 = 0 ; | |
9945 | double val2 ; | |
9946 | int ecode2 = 0 ; | |
9947 | PyObject * obj0 = 0 ; | |
9948 | PyObject * obj1 = 0 ; | |
9949 | char * kwnames[] = { | |
9950 | (char *) "self",(char *) "gravity", NULL | |
9951 | }; | |
9952 | ||
9953 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashGravity",kwnames,&obj0,&obj1)) SWIG_fail; | |
9954 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9955 | if (!SWIG_IsOK(res1)) { | |
9956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashGravity" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9957 | } | |
9958 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9959 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
9960 | if (!SWIG_IsOK(ecode2)) { | |
9961 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashGravity" "', expected argument " "2"" of type '" "double""'"); | |
9962 | } | |
9963 | arg2 = static_cast< double >(val2); | |
9964 | { | |
9965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9966 | (arg1)->SetSashGravity(arg2); | |
9967 | wxPyEndAllowThreads(__tstate); | |
9968 | if (PyErr_Occurred()) SWIG_fail; | |
9969 | } | |
9970 | resultobj = SWIG_Py_Void(); | |
9971 | return resultobj; | |
9972 | fail: | |
9973 | return NULL; | |
d14a1e28 RD |
9974 | } |
9975 | ||
9976 | ||
0085ce49 RD |
9977 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashGravity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9978 | PyObject *resultobj = 0; | |
9979 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9980 | double result; | |
9981 | void *argp1 = 0 ; | |
9982 | int res1 = 0 ; | |
9983 | PyObject *swig_obj[1] ; | |
9984 | ||
9985 | if (!args) SWIG_fail; | |
9986 | swig_obj[0] = args; | |
9987 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9988 | if (!SWIG_IsOK(res1)) { | |
9989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashGravity" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9990 | } | |
9991 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9992 | { | |
9993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9994 | result = (double)((wxSplitterWindow const *)arg1)->GetSashGravity(); | |
9995 | wxPyEndAllowThreads(__tstate); | |
9996 | if (PyErr_Occurred()) SWIG_fail; | |
9997 | } | |
9998 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
9999 | return resultobj; | |
10000 | fail: | |
10001 | return NULL; | |
10002 | } | |
10003 | ||
10004 | ||
10005 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10006 | PyObject *resultobj = 0; | |
10007 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10008 | int arg2 ; | |
10009 | void *argp1 = 0 ; | |
10010 | int res1 = 0 ; | |
10011 | int val2 ; | |
10012 | int ecode2 = 0 ; | |
10013 | PyObject * obj0 = 0 ; | |
10014 | PyObject * obj1 = 0 ; | |
10015 | char * kwnames[] = { | |
10016 | (char *) "self",(char *) "min", NULL | |
10017 | }; | |
10018 | ||
10019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10021 | if (!SWIG_IsOK(res1)) { | |
10022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetMinimumPaneSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10023 | } | |
10024 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10025 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10026 | if (!SWIG_IsOK(ecode2)) { | |
10027 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetMinimumPaneSize" "', expected argument " "2"" of type '" "int""'"); | |
10028 | } | |
10029 | arg2 = static_cast< int >(val2); | |
10030 | { | |
10031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10032 | (arg1)->SetMinimumPaneSize(arg2); | |
10033 | wxPyEndAllowThreads(__tstate); | |
10034 | if (PyErr_Occurred()) SWIG_fail; | |
10035 | } | |
10036 | resultobj = SWIG_Py_Void(); | |
10037 | return resultobj; | |
10038 | fail: | |
10039 | return NULL; | |
d14a1e28 RD |
10040 | } |
10041 | ||
10042 | ||
0085ce49 RD |
10043 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10044 | PyObject *resultobj = 0; | |
10045 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10046 | int result; | |
10047 | void *argp1 = 0 ; | |
10048 | int res1 = 0 ; | |
10049 | PyObject *swig_obj[1] ; | |
10050 | ||
10051 | if (!args) SWIG_fail; | |
10052 | swig_obj[0] = args; | |
10053 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10054 | if (!SWIG_IsOK(res1)) { | |
10055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetMinimumPaneSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10056 | } | |
10057 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10058 | { | |
10059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10060 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
10061 | wxPyEndAllowThreads(__tstate); | |
10062 | if (PyErr_Occurred()) SWIG_fail; | |
10063 | } | |
10064 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10065 | return resultobj; | |
10066 | fail: | |
10067 | return NULL; | |
10068 | } | |
10069 | ||
10070 | ||
10071 | SWIGINTERN PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10072 | PyObject *resultobj = 0; | |
10073 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10074 | int arg2 ; | |
10075 | int arg3 ; | |
10076 | int arg4 = (int) 5 ; | |
10077 | bool result; | |
10078 | void *argp1 = 0 ; | |
10079 | int res1 = 0 ; | |
10080 | int val2 ; | |
10081 | int ecode2 = 0 ; | |
10082 | int val3 ; | |
10083 | int ecode3 = 0 ; | |
10084 | int val4 ; | |
10085 | int ecode4 = 0 ; | |
10086 | PyObject * obj0 = 0 ; | |
10087 | PyObject * obj1 = 0 ; | |
10088 | PyObject * obj2 = 0 ; | |
10089 | PyObject * obj3 = 0 ; | |
10090 | char * kwnames[] = { | |
10091 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
10092 | }; | |
10093 | ||
10094 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10095 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10096 | if (!SWIG_IsOK(res1)) { | |
10097 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10098 | } | |
10099 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10100 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10101 | if (!SWIG_IsOK(ecode2)) { | |
10102 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "2"" of type '" "int""'"); | |
10103 | } | |
10104 | arg2 = static_cast< int >(val2); | |
10105 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10106 | if (!SWIG_IsOK(ecode3)) { | |
10107 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "3"" of type '" "int""'"); | |
10108 | } | |
10109 | arg3 = static_cast< int >(val3); | |
10110 | if (obj3) { | |
10111 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10112 | if (!SWIG_IsOK(ecode4)) { | |
10113 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "4"" of type '" "int""'"); | |
10114 | } | |
10115 | arg4 = static_cast< int >(val4); | |
10116 | } | |
10117 | { | |
10118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10119 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
10120 | wxPyEndAllowThreads(__tstate); | |
10121 | if (PyErr_Occurred()) SWIG_fail; | |
10122 | } | |
10123 | { | |
10124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10125 | } | |
10126 | return resultobj; | |
10127 | fail: | |
10128 | return NULL; | |
b1fcee84 RD |
10129 | } |
10130 | ||
10131 | ||
0085ce49 RD |
10132 | SWIGINTERN PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10133 | PyObject *resultobj = 0; | |
10134 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10135 | void *argp1 = 0 ; | |
10136 | int res1 = 0 ; | |
10137 | PyObject *swig_obj[1] ; | |
10138 | ||
10139 | if (!args) SWIG_fail; | |
10140 | swig_obj[0] = args; | |
10141 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10142 | if (!SWIG_IsOK(res1)) { | |
10143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SizeWindows" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10144 | } | |
10145 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10146 | { | |
10147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10148 | (arg1)->SizeWindows(); | |
10149 | wxPyEndAllowThreads(__tstate); | |
10150 | if (PyErr_Occurred()) SWIG_fail; | |
10151 | } | |
10152 | resultobj = SWIG_Py_Void(); | |
10153 | return resultobj; | |
10154 | fail: | |
10155 | return NULL; | |
10156 | } | |
10157 | ||
10158 | ||
10159 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10160 | PyObject *resultobj = 0; | |
10161 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10162 | bool arg2 ; | |
10163 | void *argp1 = 0 ; | |
10164 | int res1 = 0 ; | |
10165 | bool val2 ; | |
10166 | int ecode2 = 0 ; | |
10167 | PyObject * obj0 = 0 ; | |
10168 | PyObject * obj1 = 0 ; | |
10169 | char * kwnames[] = { | |
10170 | (char *) "self",(char *) "needUpdating", NULL | |
10171 | }; | |
10172 | ||
10173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) SWIG_fail; | |
10174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10175 | if (!SWIG_IsOK(res1)) { | |
10176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetNeedUpdating" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10177 | } | |
10178 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10179 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
10180 | if (!SWIG_IsOK(ecode2)) { | |
10181 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetNeedUpdating" "', expected argument " "2"" of type '" "bool""'"); | |
10182 | } | |
10183 | arg2 = static_cast< bool >(val2); | |
10184 | { | |
10185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10186 | (arg1)->SetNeedUpdating(arg2); | |
10187 | wxPyEndAllowThreads(__tstate); | |
10188 | if (PyErr_Occurred()) SWIG_fail; | |
10189 | } | |
10190 | resultobj = SWIG_Py_Void(); | |
10191 | return resultobj; | |
10192 | fail: | |
10193 | return NULL; | |
b1fcee84 RD |
10194 | } |
10195 | ||
10196 | ||
0085ce49 RD |
10197 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10198 | PyObject *resultobj = 0; | |
10199 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10200 | bool result; | |
10201 | void *argp1 = 0 ; | |
10202 | int res1 = 0 ; | |
10203 | PyObject *swig_obj[1] ; | |
10204 | ||
10205 | if (!args) SWIG_fail; | |
10206 | swig_obj[0] = args; | |
10207 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10208 | if (!SWIG_IsOK(res1)) { | |
10209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetNeedUpdating" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10210 | } | |
10211 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10212 | { | |
10213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10214 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
10215 | wxPyEndAllowThreads(__tstate); | |
10216 | if (PyErr_Occurred()) SWIG_fail; | |
10217 | } | |
10218 | { | |
10219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10220 | } | |
10221 | return resultobj; | |
10222 | fail: | |
10223 | return NULL; | |
b1fcee84 RD |
10224 | } |
10225 | ||
10226 | ||
0085ce49 RD |
10227 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10228 | PyObject *resultobj = 0; | |
10229 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
10230 | SwigValueWrapper<wxVisualAttributes > result; | |
10231 | int val1 ; | |
10232 | int ecode1 = 0 ; | |
10233 | PyObject * obj0 = 0 ; | |
10234 | char * kwnames[] = { | |
10235 | (char *) "variant", NULL | |
10236 | }; | |
10237 | ||
10238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SplitterWindow_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
10239 | if (obj0) { | |
10240 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10241 | if (!SWIG_IsOK(ecode1)) { | |
10242 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SplitterWindow_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
10243 | } | |
10244 | arg1 = static_cast< wxWindowVariant >(val1); | |
10245 | } | |
10246 | { | |
10247 | if (!wxPyCheckForApp()) SWIG_fail; | |
10248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10249 | result = wxSplitterWindow::GetClassDefaultAttributes(arg1); | |
10250 | wxPyEndAllowThreads(__tstate); | |
10251 | if (PyErr_Occurred()) SWIG_fail; | |
10252 | } | |
10253 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
10254 | return resultobj; | |
10255 | fail: | |
10256 | return NULL; | |
b1fcee84 RD |
10257 | } |
10258 | ||
10259 | ||
0085ce49 RD |
10260 | SWIGINTERN PyObject *SplitterWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10261 | PyObject *obj; | |
10262 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10263 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterWindow, SWIG_NewClientData(obj)); | |
10264 | return SWIG_Py_Void(); | |
d14a1e28 RD |
10265 | } |
10266 | ||
0085ce49 RD |
10267 | SWIGINTERN PyObject *SplitterWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10268 | return SWIG_Python_InitShadowInstance(args); | |
e505d15e RD |
10269 | } |
10270 | ||
0085ce49 RD |
10271 | SWIGINTERN PyObject *_wrap_new_SplitterEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10272 | PyObject *resultobj = 0; | |
10273 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10274 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
10275 | wxSplitterEvent *result = 0 ; | |
10276 | int val1 ; | |
10277 | int ecode1 = 0 ; | |
10278 | void *argp2 = 0 ; | |
10279 | int res2 = 0 ; | |
10280 | PyObject * obj0 = 0 ; | |
10281 | PyObject * obj1 = 0 ; | |
10282 | char * kwnames[] = { | |
10283 | (char *) "type",(char *) "splitter", NULL | |
10284 | }; | |
10285 | ||
10286 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10287 | if (obj0) { | |
10288 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10289 | if (!SWIG_IsOK(ecode1)) { | |
10290 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
10291 | } | |
10292 | arg1 = static_cast< wxEventType >(val1); | |
10293 | } | |
10294 | if (obj1) { | |
10295 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10296 | if (!SWIG_IsOK(res2)) { | |
10297 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SplitterEvent" "', expected argument " "2"" of type '" "wxSplitterWindow *""'"); | |
4f89f6a3 | 10298 | } |
0085ce49 RD |
10299 | arg2 = reinterpret_cast< wxSplitterWindow * >(argp2); |
10300 | } | |
10301 | { | |
10302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10303 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
10304 | wxPyEndAllowThreads(__tstate); | |
10305 | if (PyErr_Occurred()) SWIG_fail; | |
10306 | } | |
10307 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterEvent, SWIG_POINTER_NEW | 0 ); | |
10308 | return resultobj; | |
10309 | fail: | |
10310 | return NULL; | |
10311 | } | |
10312 | ||
10313 | ||
10314 | SWIGINTERN PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10315 | PyObject *resultobj = 0; | |
10316 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10317 | int arg2 ; | |
10318 | void *argp1 = 0 ; | |
10319 | int res1 = 0 ; | |
10320 | int val2 ; | |
10321 | int ecode2 = 0 ; | |
10322 | PyObject * obj0 = 0 ; | |
10323 | PyObject * obj1 = 0 ; | |
10324 | char * kwnames[] = { | |
10325 | (char *) "self",(char *) "pos", NULL | |
10326 | }; | |
10327 | ||
10328 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
10329 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10330 | if (!SWIG_IsOK(res1)) { | |
10331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_SetSashPosition" "', expected argument " "1"" of type '" "wxSplitterEvent *""'"); | |
10332 | } | |
10333 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10334 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10335 | if (!SWIG_IsOK(ecode2)) { | |
10336 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterEvent_SetSashPosition" "', expected argument " "2"" of type '" "int""'"); | |
10337 | } | |
10338 | arg2 = static_cast< int >(val2); | |
10339 | { | |
10340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10341 | (arg1)->SetSashPosition(arg2); | |
10342 | wxPyEndAllowThreads(__tstate); | |
10343 | if (PyErr_Occurred()) SWIG_fail; | |
10344 | } | |
10345 | resultobj = SWIG_Py_Void(); | |
10346 | return resultobj; | |
10347 | fail: | |
10348 | return NULL; | |
d14a1e28 RD |
10349 | } |
10350 | ||
10351 | ||
0085ce49 RD |
10352 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10353 | PyObject *resultobj = 0; | |
10354 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10355 | int result; | |
10356 | void *argp1 = 0 ; | |
10357 | int res1 = 0 ; | |
10358 | PyObject *swig_obj[1] ; | |
10359 | ||
10360 | if (!args) SWIG_fail; | |
10361 | swig_obj[0] = args; | |
10362 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10363 | if (!SWIG_IsOK(res1)) { | |
10364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetSashPosition" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10365 | } | |
10366 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10367 | { | |
10368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10369 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
10370 | wxPyEndAllowThreads(__tstate); | |
10371 | if (PyErr_Occurred()) SWIG_fail; | |
10372 | } | |
10373 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10374 | return resultobj; | |
10375 | fail: | |
10376 | return NULL; | |
d14a1e28 RD |
10377 | } |
10378 | ||
10379 | ||
0085ce49 RD |
10380 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10381 | PyObject *resultobj = 0; | |
10382 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10383 | wxWindow *result = 0 ; | |
10384 | void *argp1 = 0 ; | |
10385 | int res1 = 0 ; | |
10386 | PyObject *swig_obj[1] ; | |
10387 | ||
10388 | if (!args) SWIG_fail; | |
10389 | swig_obj[0] = args; | |
10390 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10391 | if (!SWIG_IsOK(res1)) { | |
10392 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetWindowBeingRemoved" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10393 | } | |
10394 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10395 | { | |
10396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10397 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
10398 | wxPyEndAllowThreads(__tstate); | |
10399 | if (PyErr_Occurred()) SWIG_fail; | |
10400 | } | |
10401 | { | |
10402 | resultobj = wxPyMake_wxObject(result, 0); | |
10403 | } | |
10404 | return resultobj; | |
10405 | fail: | |
10406 | return NULL; | |
d14a1e28 RD |
10407 | } |
10408 | ||
10409 | ||
0085ce49 RD |
10410 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10411 | PyObject *resultobj = 0; | |
10412 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10413 | int result; | |
10414 | void *argp1 = 0 ; | |
10415 | int res1 = 0 ; | |
10416 | PyObject *swig_obj[1] ; | |
10417 | ||
10418 | if (!args) SWIG_fail; | |
10419 | swig_obj[0] = args; | |
10420 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10421 | if (!SWIG_IsOK(res1)) { | |
10422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetX" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10423 | } | |
10424 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10425 | { | |
10426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10427 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
10428 | wxPyEndAllowThreads(__tstate); | |
10429 | if (PyErr_Occurred()) SWIG_fail; | |
10430 | } | |
10431 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10432 | return resultobj; | |
10433 | fail: | |
10434 | return NULL; | |
22bfe96c RD |
10435 | } |
10436 | ||
10437 | ||
0085ce49 RD |
10438 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10439 | PyObject *resultobj = 0; | |
10440 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10441 | int result; | |
10442 | void *argp1 = 0 ; | |
10443 | int res1 = 0 ; | |
10444 | PyObject *swig_obj[1] ; | |
10445 | ||
10446 | if (!args) SWIG_fail; | |
10447 | swig_obj[0] = args; | |
10448 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10449 | if (!SWIG_IsOK(res1)) { | |
10450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetY" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10451 | } | |
10452 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10453 | { | |
10454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10455 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
10456 | wxPyEndAllowThreads(__tstate); | |
10457 | if (PyErr_Occurred()) SWIG_fail; | |
10458 | } | |
10459 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10460 | return resultobj; | |
10461 | fail: | |
10462 | return NULL; | |
d14a1e28 RD |
10463 | } |
10464 | ||
10465 | ||
0085ce49 RD |
10466 | SWIGINTERN PyObject *SplitterEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10467 | PyObject *obj; | |
10468 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10469 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterEvent, SWIG_NewClientData(obj)); | |
10470 | return SWIG_Py_Void(); | |
d14a1e28 RD |
10471 | } |
10472 | ||
0085ce49 RD |
10473 | SWIGINTERN PyObject *SplitterEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10474 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
10475 | } |
10476 | ||
0085ce49 RD |
10477 | SWIGINTERN int SashNameStr_set(PyObject *) { |
10478 | SWIG_Error(SWIG_AttributeError,"Variable SashNameStr is read-only."); | |
10479 | return 1; | |
d14a1e28 RD |
10480 | } |
10481 | ||
10482 | ||
0085ce49 RD |
10483 | SWIGINTERN PyObject *SashNameStr_get(void) { |
10484 | PyObject *pyobj = 0; | |
10485 | ||
10486 | { | |
10487 | #if wxUSE_UNICODE | |
10488 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
10489 | #else | |
10490 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
10491 | #endif | |
10492 | } | |
10493 | return pyobj; | |
d14a1e28 RD |
10494 | } |
10495 | ||
10496 | ||
0085ce49 RD |
10497 | SWIGINTERN int SashLayoutNameStr_set(PyObject *) { |
10498 | SWIG_Error(SWIG_AttributeError,"Variable SashLayoutNameStr is read-only."); | |
10499 | return 1; | |
d14a1e28 RD |
10500 | } |
10501 | ||
10502 | ||
0085ce49 RD |
10503 | SWIGINTERN PyObject *SashLayoutNameStr_get(void) { |
10504 | PyObject *pyobj = 0; | |
10505 | ||
10506 | { | |
10507 | #if wxUSE_UNICODE | |
10508 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
10509 | #else | |
10510 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
10511 | #endif | |
10512 | } | |
10513 | return pyobj; | |
10514 | } | |
10515 | ||
10516 | ||
10517 | SWIGINTERN PyObject *_wrap_new_SashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10518 | PyObject *resultobj = 0; | |
10519 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10520 | int arg2 = (int) -1 ; | |
10521 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10522 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10523 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10524 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10525 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
10526 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
10527 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10528 | wxSashWindow *result = 0 ; | |
10529 | void *argp1 = 0 ; | |
10530 | int res1 = 0 ; | |
10531 | int val2 ; | |
10532 | int ecode2 = 0 ; | |
10533 | wxPoint temp3 ; | |
10534 | wxSize temp4 ; | |
10535 | long val5 ; | |
10536 | int ecode5 = 0 ; | |
10537 | bool temp6 = false ; | |
10538 | PyObject * obj0 = 0 ; | |
10539 | PyObject * obj1 = 0 ; | |
10540 | PyObject * obj2 = 0 ; | |
10541 | PyObject * obj3 = 0 ; | |
10542 | PyObject * obj4 = 0 ; | |
10543 | PyObject * obj5 = 0 ; | |
10544 | char * kwnames[] = { | |
10545 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10546 | }; | |
10547 | ||
10548 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
10549 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10550 | if (!SWIG_IsOK(res1)) { | |
10551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SashWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
10552 | } | |
10553 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
10554 | if (obj1) { | |
10555 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10556 | if (!SWIG_IsOK(ecode2)) { | |
10557 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashWindow" "', expected argument " "2"" of type '" "int""'"); | |
10558 | } | |
10559 | arg2 = static_cast< int >(val2); | |
10560 | } | |
10561 | if (obj2) { | |
093d3ff1 | 10562 | { |
0085ce49 RD |
10563 | arg3 = &temp3; |
10564 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
994141e6 | 10565 | } |
0085ce49 RD |
10566 | } |
10567 | if (obj3) { | |
d14a1e28 | 10568 | { |
0085ce49 RD |
10569 | arg4 = &temp4; |
10570 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 10571 | } |
0085ce49 RD |
10572 | } |
10573 | if (obj4) { | |
10574 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
10575 | if (!SWIG_IsOK(ecode5)) { | |
10576 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SashWindow" "', expected argument " "5"" of type '" "long""'"); | |
10577 | } | |
10578 | arg5 = static_cast< long >(val5); | |
10579 | } | |
10580 | if (obj5) { | |
093d3ff1 | 10581 | { |
0085ce49 RD |
10582 | arg6 = wxString_in_helper(obj5); |
10583 | if (arg6 == NULL) SWIG_fail; | |
10584 | temp6 = true; | |
093d3ff1 | 10585 | } |
0085ce49 RD |
10586 | } |
10587 | { | |
10588 | if (!wxPyCheckForApp()) SWIG_fail; | |
10589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10590 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10591 | wxPyEndAllowThreads(__tstate); | |
10592 | if (PyErr_Occurred()) SWIG_fail; | |
10593 | } | |
10594 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashWindow, SWIG_POINTER_NEW | 0 ); | |
10595 | { | |
10596 | if (temp6) | |
10597 | delete arg6; | |
10598 | } | |
10599 | return resultobj; | |
10600 | fail: | |
10601 | { | |
10602 | if (temp6) | |
10603 | delete arg6; | |
10604 | } | |
10605 | return NULL; | |
d14a1e28 RD |
10606 | } |
10607 | ||
10608 | ||
0085ce49 RD |
10609 | SWIGINTERN PyObject *_wrap_new_PreSashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10610 | PyObject *resultobj = 0; | |
10611 | wxSashWindow *result = 0 ; | |
10612 | ||
10613 | if (!SWIG_Python_UnpackTuple(args,"new_PreSashWindow",0,0,0)) SWIG_fail; | |
10614 | { | |
10615 | if (!wxPyCheckForApp()) SWIG_fail; | |
10616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10617 | result = (wxSashWindow *)new wxSashWindow(); | |
10618 | wxPyEndAllowThreads(__tstate); | |
10619 | if (PyErr_Occurred()) SWIG_fail; | |
10620 | } | |
10621 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashWindow, SWIG_POINTER_OWN | 0 ); | |
10622 | return resultobj; | |
10623 | fail: | |
10624 | return NULL; | |
10625 | } | |
10626 | ||
10627 | ||
10628 | SWIGINTERN PyObject *_wrap_SashWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10629 | PyObject *resultobj = 0; | |
10630 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10631 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10632 | int arg3 = (int) -1 ; | |
10633 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10634 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10635 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10636 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10637 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
10638 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
10639 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10640 | bool result; | |
10641 | void *argp1 = 0 ; | |
10642 | int res1 = 0 ; | |
10643 | void *argp2 = 0 ; | |
10644 | int res2 = 0 ; | |
10645 | int val3 ; | |
10646 | int ecode3 = 0 ; | |
10647 | wxPoint temp4 ; | |
10648 | wxSize temp5 ; | |
10649 | long val6 ; | |
10650 | int ecode6 = 0 ; | |
10651 | bool temp7 = false ; | |
10652 | PyObject * obj0 = 0 ; | |
10653 | PyObject * obj1 = 0 ; | |
10654 | PyObject * obj2 = 0 ; | |
10655 | PyObject * obj3 = 0 ; | |
10656 | PyObject * obj4 = 0 ; | |
10657 | PyObject * obj5 = 0 ; | |
10658 | PyObject * obj6 = 0 ; | |
10659 | char * kwnames[] = { | |
10660 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10661 | }; | |
10662 | ||
10663 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
10664 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10665 | if (!SWIG_IsOK(res1)) { | |
10666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_Create" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
10667 | } | |
10668 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10669 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10670 | if (!SWIG_IsOK(res2)) { | |
10671 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SashWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
10672 | } | |
10673 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
10674 | if (obj2) { | |
10675 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10676 | if (!SWIG_IsOK(ecode3)) { | |
10677 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
10678 | } | |
10679 | arg3 = static_cast< int >(val3); | |
10680 | } | |
10681 | if (obj3) { | |
093d3ff1 | 10682 | { |
0085ce49 RD |
10683 | arg4 = &temp4; |
10684 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 10685 | } |
0085ce49 RD |
10686 | } |
10687 | if (obj4) { | |
d14a1e28 | 10688 | { |
0085ce49 RD |
10689 | arg5 = &temp5; |
10690 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 10691 | } |
0085ce49 RD |
10692 | } |
10693 | if (obj5) { | |
10694 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
10695 | if (!SWIG_IsOK(ecode6)) { | |
10696 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SashWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
10697 | } | |
10698 | arg6 = static_cast< long >(val6); | |
10699 | } | |
10700 | if (obj6) { | |
d14a1e28 | 10701 | { |
0085ce49 RD |
10702 | arg7 = wxString_in_helper(obj6); |
10703 | if (arg7 == NULL) SWIG_fail; | |
10704 | temp7 = true; | |
d14a1e28 | 10705 | } |
0085ce49 RD |
10706 | } |
10707 | { | |
10708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10709 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10710 | wxPyEndAllowThreads(__tstate); | |
10711 | if (PyErr_Occurred()) SWIG_fail; | |
10712 | } | |
10713 | { | |
10714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10715 | } | |
10716 | { | |
10717 | if (temp7) | |
10718 | delete arg7; | |
10719 | } | |
10720 | return resultobj; | |
10721 | fail: | |
10722 | { | |
10723 | if (temp7) | |
10724 | delete arg7; | |
10725 | } | |
10726 | return NULL; | |
10727 | } | |
10728 | ||
10729 | ||
10730 | SWIGINTERN PyObject *_wrap_SashWindow_SetSashVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10731 | PyObject *resultobj = 0; | |
10732 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10733 | wxSashEdgePosition arg2 ; | |
10734 | bool arg3 ; | |
10735 | void *argp1 = 0 ; | |
10736 | int res1 = 0 ; | |
10737 | int val2 ; | |
10738 | int ecode2 = 0 ; | |
10739 | bool val3 ; | |
10740 | int ecode3 = 0 ; | |
10741 | PyObject * obj0 = 0 ; | |
10742 | PyObject * obj1 = 0 ; | |
10743 | PyObject * obj2 = 0 ; | |
10744 | char * kwnames[] = { | |
10745 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
10746 | }; | |
10747 | ||
10748 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10749 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10750 | if (!SWIG_IsOK(res1)) { | |
10751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetSashVisible" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
10752 | } | |
10753 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10754 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10755 | if (!SWIG_IsOK(ecode2)) { | |
10756 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetSashVisible" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
10757 | } | |
10758 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
10759 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
10760 | if (!SWIG_IsOK(ecode3)) { | |
10761 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SetSashVisible" "', expected argument " "3"" of type '" "bool""'"); | |
10762 | } | |
10763 | arg3 = static_cast< bool >(val3); | |
10764 | { | |
10765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10766 | (arg1)->SetSashVisible(arg2,arg3); | |
10767 | wxPyEndAllowThreads(__tstate); | |
10768 | if (PyErr_Occurred()) SWIG_fail; | |
10769 | } | |
10770 | resultobj = SWIG_Py_Void(); | |
10771 | return resultobj; | |
10772 | fail: | |
10773 | return NULL; | |
10774 | } | |
10775 | ||
10776 | ||
10777 | SWIGINTERN PyObject *_wrap_SashWindow_GetSashVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10778 | PyObject *resultobj = 0; | |
10779 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10780 | wxSashEdgePosition arg2 ; | |
10781 | bool result; | |
10782 | void *argp1 = 0 ; | |
10783 | int res1 = 0 ; | |
10784 | int val2 ; | |
10785 | int ecode2 = 0 ; | |
10786 | PyObject * obj0 = 0 ; | |
10787 | PyObject * obj1 = 0 ; | |
10788 | char * kwnames[] = { | |
10789 | (char *) "self",(char *) "edge", NULL | |
10790 | }; | |
10791 | ||
10792 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
10793 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10794 | if (!SWIG_IsOK(res1)) { | |
10795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetSashVisible" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
10796 | } | |
10797 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10798 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10799 | if (!SWIG_IsOK(ecode2)) { | |
10800 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_GetSashVisible" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
10801 | } | |
10802 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
10803 | { | |
10804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10805 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible(arg2); | |
10806 | wxPyEndAllowThreads(__tstate); | |
10807 | if (PyErr_Occurred()) SWIG_fail; | |
10808 | } | |
10809 | { | |
10810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10811 | } | |
10812 | return resultobj; | |
10813 | fail: | |
10814 | return NULL; | |
10815 | } | |
10816 | ||
10817 | ||
10818 | SWIGINTERN PyObject *_wrap_SashWindow_SetSashBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10819 | PyObject *resultobj = 0; | |
10820 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10821 | wxSashEdgePosition arg2 ; | |
10822 | bool arg3 ; | |
10823 | void *argp1 = 0 ; | |
10824 | int res1 = 0 ; | |
10825 | int val2 ; | |
10826 | int ecode2 = 0 ; | |
10827 | bool val3 ; | |
10828 | int ecode3 = 0 ; | |
10829 | PyObject * obj0 = 0 ; | |
10830 | PyObject * obj1 = 0 ; | |
10831 | PyObject * obj2 = 0 ; | |
10832 | char * kwnames[] = { | |
10833 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
10834 | }; | |
10835 | ||
10836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10837 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10838 | if (!SWIG_IsOK(res1)) { | |
10839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetSashBorder" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
10840 | } | |
10841 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10842 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10843 | if (!SWIG_IsOK(ecode2)) { | |
10844 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetSashBorder" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
10845 | } | |
10846 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
10847 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
10848 | if (!SWIG_IsOK(ecode3)) { | |
10849 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SetSashBorder" "', expected argument " "3"" of type '" "bool""'"); | |
10850 | } | |
10851 | arg3 = static_cast< bool >(val3); | |
10852 | { | |
10853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10854 | (arg1)->SetSashBorder(arg2,arg3); | |
10855 | wxPyEndAllowThreads(__tstate); | |
10856 | if (PyErr_Occurred()) SWIG_fail; | |
10857 | } | |
10858 | resultobj = SWIG_Py_Void(); | |
10859 | return resultobj; | |
10860 | fail: | |
10861 | return NULL; | |
10862 | } | |
10863 | ||
10864 | ||
10865 | SWIGINTERN PyObject *_wrap_SashWindow_HasBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10866 | PyObject *resultobj = 0; | |
10867 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10868 | wxSashEdgePosition arg2 ; | |
10869 | bool result; | |
10870 | void *argp1 = 0 ; | |
10871 | int res1 = 0 ; | |
10872 | int val2 ; | |
10873 | int ecode2 = 0 ; | |
10874 | PyObject * obj0 = 0 ; | |
10875 | PyObject * obj1 = 0 ; | |
10876 | char * kwnames[] = { | |
10877 | (char *) "self",(char *) "edge", NULL | |
10878 | }; | |
10879 | ||
10880 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) SWIG_fail; | |
10881 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10882 | if (!SWIG_IsOK(res1)) { | |
10883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_HasBorder" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
10884 | } | |
10885 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10886 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10887 | if (!SWIG_IsOK(ecode2)) { | |
10888 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_HasBorder" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
10889 | } | |
10890 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
10891 | { | |
10892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10893 | result = (bool)((wxSashWindow const *)arg1)->HasBorder(arg2); | |
10894 | wxPyEndAllowThreads(__tstate); | |
10895 | if (PyErr_Occurred()) SWIG_fail; | |
10896 | } | |
10897 | { | |
10898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10899 | } | |
10900 | return resultobj; | |
10901 | fail: | |
10902 | return NULL; | |
10903 | } | |
10904 | ||
10905 | ||
10906 | SWIGINTERN PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10907 | PyObject *resultobj = 0; | |
10908 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10909 | wxSashEdgePosition arg2 ; | |
10910 | int result; | |
10911 | void *argp1 = 0 ; | |
10912 | int res1 = 0 ; | |
10913 | int val2 ; | |
10914 | int ecode2 = 0 ; | |
10915 | PyObject * obj0 = 0 ; | |
10916 | PyObject * obj1 = 0 ; | |
10917 | char * kwnames[] = { | |
10918 | (char *) "self",(char *) "edge", NULL | |
10919 | }; | |
10920 | ||
10921 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
10922 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10923 | if (!SWIG_IsOK(res1)) { | |
10924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetEdgeMargin" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
10925 | } | |
10926 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10927 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10928 | if (!SWIG_IsOK(ecode2)) { | |
10929 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_GetEdgeMargin" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
10930 | } | |
10931 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
10932 | { | |
10933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10934 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin(arg2); | |
10935 | wxPyEndAllowThreads(__tstate); | |
10936 | if (PyErr_Occurred()) SWIG_fail; | |
10937 | } | |
10938 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10939 | return resultobj; | |
10940 | fail: | |
10941 | return NULL; | |
10942 | } | |
10943 | ||
10944 | ||
10945 | SWIGINTERN PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10946 | PyObject *resultobj = 0; | |
10947 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10948 | int arg2 ; | |
10949 | void *argp1 = 0 ; | |
10950 | int res1 = 0 ; | |
10951 | int val2 ; | |
10952 | int ecode2 = 0 ; | |
10953 | PyObject * obj0 = 0 ; | |
10954 | PyObject * obj1 = 0 ; | |
10955 | char * kwnames[] = { | |
10956 | (char *) "self",(char *) "width", NULL | |
10957 | }; | |
10958 | ||
10959 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10960 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10961 | if (!SWIG_IsOK(res1)) { | |
10962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetDefaultBorderSize" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
10963 | } | |
10964 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10965 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10966 | if (!SWIG_IsOK(ecode2)) { | |
10967 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetDefaultBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
10968 | } | |
10969 | arg2 = static_cast< int >(val2); | |
10970 | { | |
10971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10972 | (arg1)->SetDefaultBorderSize(arg2); | |
10973 | wxPyEndAllowThreads(__tstate); | |
10974 | if (PyErr_Occurred()) SWIG_fail; | |
10975 | } | |
10976 | resultobj = SWIG_Py_Void(); | |
10977 | return resultobj; | |
10978 | fail: | |
10979 | return NULL; | |
d14a1e28 RD |
10980 | } |
10981 | ||
10982 | ||
0085ce49 RD |
10983 | SWIGINTERN PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10984 | PyObject *resultobj = 0; | |
10985 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10986 | int result; | |
10987 | void *argp1 = 0 ; | |
10988 | int res1 = 0 ; | |
10989 | PyObject *swig_obj[1] ; | |
10990 | ||
10991 | if (!args) SWIG_fail; | |
10992 | swig_obj[0] = args; | |
10993 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10994 | if (!SWIG_IsOK(res1)) { | |
10995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetDefaultBorderSize" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
10996 | } | |
10997 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10998 | { | |
10999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11000 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
11001 | wxPyEndAllowThreads(__tstate); | |
11002 | if (PyErr_Occurred()) SWIG_fail; | |
11003 | } | |
11004 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11005 | return resultobj; | |
11006 | fail: | |
11007 | return NULL; | |
11008 | } | |
11009 | ||
11010 | ||
11011 | SWIGINTERN PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11012 | PyObject *resultobj = 0; | |
11013 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11014 | int arg2 ; | |
11015 | void *argp1 = 0 ; | |
11016 | int res1 = 0 ; | |
11017 | int val2 ; | |
11018 | int ecode2 = 0 ; | |
11019 | PyObject * obj0 = 0 ; | |
11020 | PyObject * obj1 = 0 ; | |
11021 | char * kwnames[] = { | |
11022 | (char *) "self",(char *) "width", NULL | |
11023 | }; | |
11024 | ||
11025 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11026 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11027 | if (!SWIG_IsOK(res1)) { | |
11028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetExtraBorderSize" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11029 | } | |
11030 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11031 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11032 | if (!SWIG_IsOK(ecode2)) { | |
11033 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetExtraBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
11034 | } | |
11035 | arg2 = static_cast< int >(val2); | |
11036 | { | |
11037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11038 | (arg1)->SetExtraBorderSize(arg2); | |
11039 | wxPyEndAllowThreads(__tstate); | |
11040 | if (PyErr_Occurred()) SWIG_fail; | |
11041 | } | |
11042 | resultobj = SWIG_Py_Void(); | |
11043 | return resultobj; | |
11044 | fail: | |
11045 | return NULL; | |
d14a1e28 RD |
11046 | } |
11047 | ||
11048 | ||
0085ce49 RD |
11049 | SWIGINTERN PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11050 | PyObject *resultobj = 0; | |
11051 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11052 | int result; | |
11053 | void *argp1 = 0 ; | |
11054 | int res1 = 0 ; | |
11055 | PyObject *swig_obj[1] ; | |
11056 | ||
11057 | if (!args) SWIG_fail; | |
11058 | swig_obj[0] = args; | |
11059 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11060 | if (!SWIG_IsOK(res1)) { | |
11061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetExtraBorderSize" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11062 | } | |
11063 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11064 | { | |
11065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11066 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
11067 | wxPyEndAllowThreads(__tstate); | |
11068 | if (PyErr_Occurred()) SWIG_fail; | |
11069 | } | |
11070 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11071 | return resultobj; | |
11072 | fail: | |
11073 | return NULL; | |
11074 | } | |
11075 | ||
11076 | ||
11077 | SWIGINTERN PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11078 | PyObject *resultobj = 0; | |
11079 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11080 | int arg2 ; | |
11081 | void *argp1 = 0 ; | |
11082 | int res1 = 0 ; | |
11083 | int val2 ; | |
11084 | int ecode2 = 0 ; | |
11085 | PyObject * obj0 = 0 ; | |
11086 | PyObject * obj1 = 0 ; | |
11087 | char * kwnames[] = { | |
11088 | (char *) "self",(char *) "min", NULL | |
11089 | }; | |
11090 | ||
11091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) SWIG_fail; | |
11092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11093 | if (!SWIG_IsOK(res1)) { | |
11094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMinimumSizeX" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11095 | } | |
11096 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11097 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11098 | if (!SWIG_IsOK(ecode2)) { | |
11099 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMinimumSizeX" "', expected argument " "2"" of type '" "int""'"); | |
11100 | } | |
11101 | arg2 = static_cast< int >(val2); | |
11102 | { | |
11103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11104 | (arg1)->SetMinimumSizeX(arg2); | |
11105 | wxPyEndAllowThreads(__tstate); | |
11106 | if (PyErr_Occurred()) SWIG_fail; | |
11107 | } | |
11108 | resultobj = SWIG_Py_Void(); | |
11109 | return resultobj; | |
11110 | fail: | |
11111 | return NULL; | |
11112 | } | |
11113 | ||
11114 | ||
11115 | SWIGINTERN PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11116 | PyObject *resultobj = 0; | |
11117 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11118 | int arg2 ; | |
11119 | void *argp1 = 0 ; | |
11120 | int res1 = 0 ; | |
11121 | int val2 ; | |
11122 | int ecode2 = 0 ; | |
11123 | PyObject * obj0 = 0 ; | |
11124 | PyObject * obj1 = 0 ; | |
11125 | char * kwnames[] = { | |
11126 | (char *) "self",(char *) "min", NULL | |
11127 | }; | |
11128 | ||
11129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) SWIG_fail; | |
11130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11131 | if (!SWIG_IsOK(res1)) { | |
11132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMinimumSizeY" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11133 | } | |
11134 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11135 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11136 | if (!SWIG_IsOK(ecode2)) { | |
11137 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMinimumSizeY" "', expected argument " "2"" of type '" "int""'"); | |
11138 | } | |
11139 | arg2 = static_cast< int >(val2); | |
11140 | { | |
11141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11142 | (arg1)->SetMinimumSizeY(arg2); | |
11143 | wxPyEndAllowThreads(__tstate); | |
11144 | if (PyErr_Occurred()) SWIG_fail; | |
11145 | } | |
11146 | resultobj = SWIG_Py_Void(); | |
11147 | return resultobj; | |
11148 | fail: | |
11149 | return NULL; | |
d14a1e28 RD |
11150 | } |
11151 | ||
11152 | ||
0085ce49 RD |
11153 | SWIGINTERN PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11154 | PyObject *resultobj = 0; | |
11155 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11156 | int result; | |
11157 | void *argp1 = 0 ; | |
11158 | int res1 = 0 ; | |
11159 | PyObject *swig_obj[1] ; | |
11160 | ||
11161 | if (!args) SWIG_fail; | |
11162 | swig_obj[0] = args; | |
11163 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11164 | if (!SWIG_IsOK(res1)) { | |
11165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMinimumSizeX" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11166 | } | |
11167 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11168 | { | |
11169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11170 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
11171 | wxPyEndAllowThreads(__tstate); | |
11172 | if (PyErr_Occurred()) SWIG_fail; | |
11173 | } | |
11174 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11175 | return resultobj; | |
11176 | fail: | |
11177 | return NULL; | |
d14a1e28 RD |
11178 | } |
11179 | ||
11180 | ||
0085ce49 RD |
11181 | SWIGINTERN PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11182 | PyObject *resultobj = 0; | |
11183 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11184 | int result; | |
11185 | void *argp1 = 0 ; | |
11186 | int res1 = 0 ; | |
11187 | PyObject *swig_obj[1] ; | |
11188 | ||
11189 | if (!args) SWIG_fail; | |
11190 | swig_obj[0] = args; | |
11191 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11192 | if (!SWIG_IsOK(res1)) { | |
11193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMinimumSizeY" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11194 | } | |
11195 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11196 | { | |
11197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11198 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
11199 | wxPyEndAllowThreads(__tstate); | |
11200 | if (PyErr_Occurred()) SWIG_fail; | |
11201 | } | |
11202 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11203 | return resultobj; | |
11204 | fail: | |
11205 | return NULL; | |
11206 | } | |
11207 | ||
11208 | ||
11209 | SWIGINTERN PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11210 | PyObject *resultobj = 0; | |
11211 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11212 | int arg2 ; | |
11213 | void *argp1 = 0 ; | |
11214 | int res1 = 0 ; | |
11215 | int val2 ; | |
11216 | int ecode2 = 0 ; | |
11217 | PyObject * obj0 = 0 ; | |
11218 | PyObject * obj1 = 0 ; | |
11219 | char * kwnames[] = { | |
11220 | (char *) "self",(char *) "max", NULL | |
11221 | }; | |
11222 | ||
11223 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) SWIG_fail; | |
11224 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11225 | if (!SWIG_IsOK(res1)) { | |
11226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMaximumSizeX" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11227 | } | |
11228 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11229 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11230 | if (!SWIG_IsOK(ecode2)) { | |
11231 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMaximumSizeX" "', expected argument " "2"" of type '" "int""'"); | |
11232 | } | |
11233 | arg2 = static_cast< int >(val2); | |
11234 | { | |
11235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11236 | (arg1)->SetMaximumSizeX(arg2); | |
11237 | wxPyEndAllowThreads(__tstate); | |
11238 | if (PyErr_Occurred()) SWIG_fail; | |
11239 | } | |
11240 | resultobj = SWIG_Py_Void(); | |
11241 | return resultobj; | |
11242 | fail: | |
11243 | return NULL; | |
11244 | } | |
11245 | ||
11246 | ||
11247 | SWIGINTERN PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11248 | PyObject *resultobj = 0; | |
11249 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11250 | int arg2 ; | |
11251 | void *argp1 = 0 ; | |
11252 | int res1 = 0 ; | |
11253 | int val2 ; | |
11254 | int ecode2 = 0 ; | |
11255 | PyObject * obj0 = 0 ; | |
11256 | PyObject * obj1 = 0 ; | |
11257 | char * kwnames[] = { | |
11258 | (char *) "self",(char *) "max", NULL | |
11259 | }; | |
11260 | ||
11261 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) SWIG_fail; | |
11262 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11263 | if (!SWIG_IsOK(res1)) { | |
11264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMaximumSizeY" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11265 | } | |
11266 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11267 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11268 | if (!SWIG_IsOK(ecode2)) { | |
11269 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMaximumSizeY" "', expected argument " "2"" of type '" "int""'"); | |
11270 | } | |
11271 | arg2 = static_cast< int >(val2); | |
11272 | { | |
11273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11274 | (arg1)->SetMaximumSizeY(arg2); | |
11275 | wxPyEndAllowThreads(__tstate); | |
11276 | if (PyErr_Occurred()) SWIG_fail; | |
11277 | } | |
11278 | resultobj = SWIG_Py_Void(); | |
11279 | return resultobj; | |
11280 | fail: | |
11281 | return NULL; | |
d14a1e28 RD |
11282 | } |
11283 | ||
11284 | ||
0085ce49 RD |
11285 | SWIGINTERN PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11286 | PyObject *resultobj = 0; | |
11287 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11288 | int result; | |
11289 | void *argp1 = 0 ; | |
11290 | int res1 = 0 ; | |
11291 | PyObject *swig_obj[1] ; | |
11292 | ||
11293 | if (!args) SWIG_fail; | |
11294 | swig_obj[0] = args; | |
11295 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11296 | if (!SWIG_IsOK(res1)) { | |
11297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMaximumSizeX" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11298 | } | |
11299 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11300 | { | |
11301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11302 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
11303 | wxPyEndAllowThreads(__tstate); | |
11304 | if (PyErr_Occurred()) SWIG_fail; | |
11305 | } | |
11306 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11307 | return resultobj; | |
11308 | fail: | |
11309 | return NULL; | |
d14a1e28 RD |
11310 | } |
11311 | ||
11312 | ||
0085ce49 RD |
11313 | SWIGINTERN PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11314 | PyObject *resultobj = 0; | |
11315 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11316 | int result; | |
11317 | void *argp1 = 0 ; | |
11318 | int res1 = 0 ; | |
11319 | PyObject *swig_obj[1] ; | |
11320 | ||
11321 | if (!args) SWIG_fail; | |
11322 | swig_obj[0] = args; | |
11323 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11324 | if (!SWIG_IsOK(res1)) { | |
11325 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMaximumSizeY" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11326 | } | |
11327 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11328 | { | |
11329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11330 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
11331 | wxPyEndAllowThreads(__tstate); | |
11332 | if (PyErr_Occurred()) SWIG_fail; | |
11333 | } | |
11334 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11335 | return resultobj; | |
11336 | fail: | |
11337 | return NULL; | |
11338 | } | |
11339 | ||
11340 | ||
11341 | SWIGINTERN PyObject *_wrap_SashWindow_SashHitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11342 | PyObject *resultobj = 0; | |
11343 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11344 | int arg2 ; | |
11345 | int arg3 ; | |
11346 | int arg4 = (int) 2 ; | |
11347 | wxSashEdgePosition result; | |
11348 | void *argp1 = 0 ; | |
11349 | int res1 = 0 ; | |
11350 | int val2 ; | |
11351 | int ecode2 = 0 ; | |
11352 | int val3 ; | |
11353 | int ecode3 = 0 ; | |
11354 | int val4 ; | |
11355 | int ecode4 = 0 ; | |
11356 | PyObject * obj0 = 0 ; | |
11357 | PyObject * obj1 = 0 ; | |
11358 | PyObject * obj2 = 0 ; | |
11359 | PyObject * obj3 = 0 ; | |
11360 | char * kwnames[] = { | |
11361 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
11362 | }; | |
11363 | ||
11364 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11365 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11366 | if (!SWIG_IsOK(res1)) { | |
11367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SashHitTest" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11368 | } | |
11369 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11370 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11371 | if (!SWIG_IsOK(ecode2)) { | |
11372 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SashHitTest" "', expected argument " "2"" of type '" "int""'"); | |
11373 | } | |
11374 | arg2 = static_cast< int >(val2); | |
11375 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11376 | if (!SWIG_IsOK(ecode3)) { | |
11377 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SashHitTest" "', expected argument " "3"" of type '" "int""'"); | |
11378 | } | |
11379 | arg3 = static_cast< int >(val3); | |
11380 | if (obj3) { | |
11381 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11382 | if (!SWIG_IsOK(ecode4)) { | |
11383 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SashWindow_SashHitTest" "', expected argument " "4"" of type '" "int""'"); | |
11384 | } | |
11385 | arg4 = static_cast< int >(val4); | |
11386 | } | |
11387 | { | |
11388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11389 | result = (wxSashEdgePosition)(arg1)->SashHitTest(arg2,arg3,arg4); | |
11390 | wxPyEndAllowThreads(__tstate); | |
11391 | if (PyErr_Occurred()) SWIG_fail; | |
11392 | } | |
11393 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11394 | return resultobj; | |
11395 | fail: | |
11396 | return NULL; | |
d14a1e28 RD |
11397 | } |
11398 | ||
11399 | ||
0085ce49 RD |
11400 | SWIGINTERN PyObject *_wrap_SashWindow_SizeWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11401 | PyObject *resultobj = 0; | |
11402 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11403 | void *argp1 = 0 ; | |
11404 | int res1 = 0 ; | |
11405 | PyObject *swig_obj[1] ; | |
11406 | ||
11407 | if (!args) SWIG_fail; | |
11408 | swig_obj[0] = args; | |
11409 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11410 | if (!SWIG_IsOK(res1)) { | |
11411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SizeWindows" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11412 | } | |
11413 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11414 | { | |
11415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11416 | (arg1)->SizeWindows(); | |
11417 | wxPyEndAllowThreads(__tstate); | |
11418 | if (PyErr_Occurred()) SWIG_fail; | |
11419 | } | |
11420 | resultobj = SWIG_Py_Void(); | |
11421 | return resultobj; | |
11422 | fail: | |
11423 | return NULL; | |
d14a1e28 RD |
11424 | } |
11425 | ||
11426 | ||
0085ce49 RD |
11427 | SWIGINTERN PyObject *SashWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11428 | PyObject *obj; | |
11429 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11430 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashWindow, SWIG_NewClientData(obj)); | |
11431 | return SWIG_Py_Void(); | |
d14a1e28 RD |
11432 | } |
11433 | ||
0085ce49 RD |
11434 | SWIGINTERN PyObject *SashWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11435 | return SWIG_Python_InitShadowInstance(args); | |
f16ab95d RD |
11436 | } |
11437 | ||
0085ce49 RD |
11438 | SWIGINTERN PyObject *_wrap_new_SashEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11439 | PyObject *resultobj = 0; | |
11440 | int arg1 = (int) 0 ; | |
11441 | wxSashEdgePosition arg2 = (wxSashEdgePosition) wxSASH_NONE ; | |
11442 | wxSashEvent *result = 0 ; | |
11443 | int val1 ; | |
11444 | int ecode1 = 0 ; | |
11445 | int val2 ; | |
11446 | int ecode2 = 0 ; | |
11447 | PyObject * obj0 = 0 ; | |
11448 | PyObject * obj1 = 0 ; | |
11449 | char * kwnames[] = { | |
11450 | (char *) "id",(char *) "edge", NULL | |
11451 | }; | |
11452 | ||
11453 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
11454 | if (obj0) { | |
11455 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11456 | if (!SWIG_IsOK(ecode1)) { | |
11457 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SashEvent" "', expected argument " "1"" of type '" "int""'"); | |
11458 | } | |
11459 | arg1 = static_cast< int >(val1); | |
11460 | } | |
11461 | if (obj1) { | |
11462 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11463 | if (!SWIG_IsOK(ecode2)) { | |
11464 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashEvent" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11465 | } | |
11466 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11467 | } | |
11468 | { | |
11469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11470 | result = (wxSashEvent *)new wxSashEvent(arg1,arg2); | |
11471 | wxPyEndAllowThreads(__tstate); | |
11472 | if (PyErr_Occurred()) SWIG_fail; | |
11473 | } | |
11474 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashEvent, SWIG_POINTER_NEW | 0 ); | |
11475 | return resultobj; | |
11476 | fail: | |
11477 | return NULL; | |
11478 | } | |
11479 | ||
11480 | ||
11481 | SWIGINTERN PyObject *_wrap_SashEvent_SetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11482 | PyObject *resultobj = 0; | |
11483 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11484 | wxSashEdgePosition arg2 ; | |
11485 | void *argp1 = 0 ; | |
11486 | int res1 = 0 ; | |
11487 | int val2 ; | |
11488 | int ecode2 = 0 ; | |
11489 | PyObject * obj0 = 0 ; | |
11490 | PyObject * obj1 = 0 ; | |
11491 | char * kwnames[] = { | |
11492 | (char *) "self",(char *) "edge", NULL | |
11493 | }; | |
11494 | ||
11495 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) SWIG_fail; | |
11496 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11497 | if (!SWIG_IsOK(res1)) { | |
11498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetEdge" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11499 | } | |
11500 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11501 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11502 | if (!SWIG_IsOK(ecode2)) { | |
11503 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashEvent_SetEdge" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11504 | } | |
11505 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11506 | { | |
11507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11508 | (arg1)->SetEdge(arg2); | |
11509 | wxPyEndAllowThreads(__tstate); | |
11510 | if (PyErr_Occurred()) SWIG_fail; | |
11511 | } | |
11512 | resultobj = SWIG_Py_Void(); | |
11513 | return resultobj; | |
11514 | fail: | |
11515 | return NULL; | |
d14a1e28 RD |
11516 | } |
11517 | ||
11518 | ||
0085ce49 RD |
11519 | SWIGINTERN PyObject *_wrap_SashEvent_GetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11520 | PyObject *resultobj = 0; | |
11521 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11522 | wxSashEdgePosition result; | |
11523 | void *argp1 = 0 ; | |
11524 | int res1 = 0 ; | |
11525 | PyObject *swig_obj[1] ; | |
11526 | ||
11527 | if (!args) SWIG_fail; | |
11528 | swig_obj[0] = args; | |
11529 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11530 | if (!SWIG_IsOK(res1)) { | |
11531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetEdge" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11532 | } | |
11533 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11534 | { | |
11535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11536 | result = (wxSashEdgePosition)((wxSashEvent const *)arg1)->GetEdge(); | |
11537 | wxPyEndAllowThreads(__tstate); | |
11538 | if (PyErr_Occurred()) SWIG_fail; | |
11539 | } | |
11540 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11541 | return resultobj; | |
11542 | fail: | |
11543 | return NULL; | |
11544 | } | |
11545 | ||
11546 | ||
11547 | SWIGINTERN PyObject *_wrap_SashEvent_SetDragRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11548 | PyObject *resultobj = 0; | |
11549 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11550 | wxRect *arg2 = 0 ; | |
11551 | void *argp1 = 0 ; | |
11552 | int res1 = 0 ; | |
11553 | wxRect temp2 ; | |
11554 | PyObject * obj0 = 0 ; | |
11555 | PyObject * obj1 = 0 ; | |
11556 | char * kwnames[] = { | |
11557 | (char *) "self",(char *) "rect", NULL | |
11558 | }; | |
11559 | ||
11560 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11561 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11562 | if (!SWIG_IsOK(res1)) { | |
11563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetDragRect" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11564 | } | |
11565 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11566 | { | |
11567 | arg2 = &temp2; | |
11568 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11569 | } | |
11570 | { | |
11571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11572 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
11573 | wxPyEndAllowThreads(__tstate); | |
11574 | if (PyErr_Occurred()) SWIG_fail; | |
11575 | } | |
11576 | resultobj = SWIG_Py_Void(); | |
11577 | return resultobj; | |
11578 | fail: | |
11579 | return NULL; | |
d14a1e28 RD |
11580 | } |
11581 | ||
11582 | ||
0085ce49 RD |
11583 | SWIGINTERN PyObject *_wrap_SashEvent_GetDragRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11584 | PyObject *resultobj = 0; | |
11585 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11586 | wxRect result; | |
11587 | void *argp1 = 0 ; | |
11588 | int res1 = 0 ; | |
11589 | PyObject *swig_obj[1] ; | |
11590 | ||
11591 | if (!args) SWIG_fail; | |
11592 | swig_obj[0] = args; | |
11593 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11594 | if (!SWIG_IsOK(res1)) { | |
11595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetDragRect" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11596 | } | |
11597 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11598 | { | |
11599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11600 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
11601 | wxPyEndAllowThreads(__tstate); | |
11602 | if (PyErr_Occurred()) SWIG_fail; | |
11603 | } | |
11604 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11605 | return resultobj; | |
11606 | fail: | |
11607 | return NULL; | |
11608 | } | |
11609 | ||
11610 | ||
11611 | SWIGINTERN PyObject *_wrap_SashEvent_SetDragStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11612 | PyObject *resultobj = 0; | |
11613 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11614 | wxSashDragStatus arg2 ; | |
11615 | void *argp1 = 0 ; | |
11616 | int res1 = 0 ; | |
11617 | int val2 ; | |
11618 | int ecode2 = 0 ; | |
11619 | PyObject * obj0 = 0 ; | |
11620 | PyObject * obj1 = 0 ; | |
11621 | char * kwnames[] = { | |
11622 | (char *) "self",(char *) "status", NULL | |
11623 | }; | |
11624 | ||
11625 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) SWIG_fail; | |
11626 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11627 | if (!SWIG_IsOK(res1)) { | |
11628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetDragStatus" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11629 | } | |
11630 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11631 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11632 | if (!SWIG_IsOK(ecode2)) { | |
11633 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashEvent_SetDragStatus" "', expected argument " "2"" of type '" "wxSashDragStatus""'"); | |
11634 | } | |
11635 | arg2 = static_cast< wxSashDragStatus >(val2); | |
11636 | { | |
11637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11638 | (arg1)->SetDragStatus(arg2); | |
11639 | wxPyEndAllowThreads(__tstate); | |
11640 | if (PyErr_Occurred()) SWIG_fail; | |
11641 | } | |
11642 | resultobj = SWIG_Py_Void(); | |
11643 | return resultobj; | |
11644 | fail: | |
11645 | return NULL; | |
d14a1e28 RD |
11646 | } |
11647 | ||
11648 | ||
0085ce49 RD |
11649 | SWIGINTERN PyObject *_wrap_SashEvent_GetDragStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11650 | PyObject *resultobj = 0; | |
11651 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11652 | wxSashDragStatus result; | |
11653 | void *argp1 = 0 ; | |
11654 | int res1 = 0 ; | |
11655 | PyObject *swig_obj[1] ; | |
11656 | ||
11657 | if (!args) SWIG_fail; | |
11658 | swig_obj[0] = args; | |
11659 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11660 | if (!SWIG_IsOK(res1)) { | |
11661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetDragStatus" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11662 | } | |
11663 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11664 | { | |
11665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11666 | result = (wxSashDragStatus)((wxSashEvent const *)arg1)->GetDragStatus(); | |
11667 | wxPyEndAllowThreads(__tstate); | |
11668 | if (PyErr_Occurred()) SWIG_fail; | |
11669 | } | |
11670 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11671 | return resultobj; | |
11672 | fail: | |
11673 | return NULL; | |
d14a1e28 RD |
11674 | } |
11675 | ||
11676 | ||
0085ce49 RD |
11677 | SWIGINTERN PyObject *SashEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11678 | PyObject *obj; | |
11679 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11680 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashEvent, SWIG_NewClientData(obj)); | |
11681 | return SWIG_Py_Void(); | |
22bfe96c RD |
11682 | } |
11683 | ||
0085ce49 RD |
11684 | SWIGINTERN PyObject *SashEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11685 | return SWIG_Python_InitShadowInstance(args); | |
b2dc1044 RD |
11686 | } |
11687 | ||
0085ce49 RD |
11688 | SWIGINTERN PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11689 | PyObject *resultobj = 0; | |
11690 | int arg1 = (int) 0 ; | |
11691 | wxQueryLayoutInfoEvent *result = 0 ; | |
11692 | int val1 ; | |
11693 | int ecode1 = 0 ; | |
11694 | PyObject * obj0 = 0 ; | |
11695 | char * kwnames[] = { | |
11696 | (char *) "id", NULL | |
11697 | }; | |
11698 | ||
11699 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) SWIG_fail; | |
11700 | if (obj0) { | |
11701 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11702 | if (!SWIG_IsOK(ecode1)) { | |
11703 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QueryLayoutInfoEvent" "', expected argument " "1"" of type '" "int""'"); | |
11704 | } | |
11705 | arg1 = static_cast< int >(val1); | |
11706 | } | |
11707 | { | |
11708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11709 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
11710 | wxPyEndAllowThreads(__tstate); | |
11711 | if (PyErr_Occurred()) SWIG_fail; | |
11712 | } | |
11713 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, SWIG_POINTER_NEW | 0 ); | |
11714 | return resultobj; | |
11715 | fail: | |
11716 | return NULL; | |
11717 | } | |
11718 | ||
11719 | ||
11720 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11721 | PyObject *resultobj = 0; | |
11722 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11723 | int arg2 ; | |
11724 | void *argp1 = 0 ; | |
11725 | int res1 = 0 ; | |
11726 | int val2 ; | |
11727 | int ecode2 = 0 ; | |
11728 | PyObject * obj0 = 0 ; | |
11729 | PyObject * obj1 = 0 ; | |
11730 | char * kwnames[] = { | |
11731 | (char *) "self",(char *) "length", NULL | |
11732 | }; | |
11733 | ||
11734 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
11735 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11736 | if (!SWIG_IsOK(res1)) { | |
11737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetRequestedLength" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
11738 | } | |
11739 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11740 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11741 | if (!SWIG_IsOK(ecode2)) { | |
11742 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetRequestedLength" "', expected argument " "2"" of type '" "int""'"); | |
11743 | } | |
11744 | arg2 = static_cast< int >(val2); | |
11745 | { | |
11746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11747 | (arg1)->SetRequestedLength(arg2); | |
11748 | wxPyEndAllowThreads(__tstate); | |
11749 | if (PyErr_Occurred()) SWIG_fail; | |
11750 | } | |
11751 | resultobj = SWIG_Py_Void(); | |
11752 | return resultobj; | |
11753 | fail: | |
11754 | return NULL; | |
d14a1e28 RD |
11755 | } |
11756 | ||
11757 | ||
0085ce49 RD |
11758 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11759 | PyObject *resultobj = 0; | |
11760 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11761 | int result; | |
11762 | void *argp1 = 0 ; | |
11763 | int res1 = 0 ; | |
11764 | PyObject *swig_obj[1] ; | |
11765 | ||
11766 | if (!args) SWIG_fail; | |
11767 | swig_obj[0] = args; | |
11768 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11769 | if (!SWIG_IsOK(res1)) { | |
11770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetRequestedLength" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
11771 | } | |
11772 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11773 | { | |
11774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11775 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
11776 | wxPyEndAllowThreads(__tstate); | |
11777 | if (PyErr_Occurred()) SWIG_fail; | |
11778 | } | |
11779 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11780 | return resultobj; | |
11781 | fail: | |
11782 | return NULL; | |
11783 | } | |
11784 | ||
11785 | ||
11786 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11787 | PyObject *resultobj = 0; | |
11788 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11789 | int arg2 ; | |
11790 | void *argp1 = 0 ; | |
11791 | int res1 = 0 ; | |
11792 | int val2 ; | |
11793 | int ecode2 = 0 ; | |
11794 | PyObject * obj0 = 0 ; | |
11795 | PyObject * obj1 = 0 ; | |
11796 | char * kwnames[] = { | |
11797 | (char *) "self",(char *) "flags", NULL | |
11798 | }; | |
11799 | ||
11800 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
11801 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11802 | if (!SWIG_IsOK(res1)) { | |
11803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetFlags" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
11804 | } | |
11805 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11806 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11807 | if (!SWIG_IsOK(ecode2)) { | |
11808 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
11809 | } | |
11810 | arg2 = static_cast< int >(val2); | |
11811 | { | |
11812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11813 | (arg1)->SetFlags(arg2); | |
11814 | wxPyEndAllowThreads(__tstate); | |
11815 | if (PyErr_Occurred()) SWIG_fail; | |
11816 | } | |
11817 | resultobj = SWIG_Py_Void(); | |
11818 | return resultobj; | |
11819 | fail: | |
11820 | return NULL; | |
d14a1e28 RD |
11821 | } |
11822 | ||
11823 | ||
0085ce49 RD |
11824 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11825 | PyObject *resultobj = 0; | |
11826 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11827 | int result; | |
11828 | void *argp1 = 0 ; | |
11829 | int res1 = 0 ; | |
11830 | PyObject *swig_obj[1] ; | |
11831 | ||
11832 | if (!args) SWIG_fail; | |
11833 | swig_obj[0] = args; | |
11834 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11835 | if (!SWIG_IsOK(res1)) { | |
11836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetFlags" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
11837 | } | |
11838 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11839 | { | |
11840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11841 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
11842 | wxPyEndAllowThreads(__tstate); | |
11843 | if (PyErr_Occurred()) SWIG_fail; | |
11844 | } | |
11845 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11846 | return resultobj; | |
11847 | fail: | |
11848 | return NULL; | |
11849 | } | |
11850 | ||
11851 | ||
11852 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11853 | PyObject *resultobj = 0; | |
11854 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11855 | wxSize *arg2 = 0 ; | |
11856 | void *argp1 = 0 ; | |
11857 | int res1 = 0 ; | |
11858 | wxSize temp2 ; | |
11859 | PyObject * obj0 = 0 ; | |
11860 | PyObject * obj1 = 0 ; | |
11861 | char * kwnames[] = { | |
11862 | (char *) "self",(char *) "size", NULL | |
11863 | }; | |
11864 | ||
11865 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11866 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11867 | if (!SWIG_IsOK(res1)) { | |
11868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetSize" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
11869 | } | |
11870 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11871 | { | |
11872 | arg2 = &temp2; | |
11873 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
11874 | } | |
11875 | { | |
11876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11877 | (arg1)->SetSize((wxSize const &)*arg2); | |
11878 | wxPyEndAllowThreads(__tstate); | |
11879 | if (PyErr_Occurred()) SWIG_fail; | |
11880 | } | |
11881 | resultobj = SWIG_Py_Void(); | |
11882 | return resultobj; | |
11883 | fail: | |
11884 | return NULL; | |
d14a1e28 RD |
11885 | } |
11886 | ||
11887 | ||
0085ce49 RD |
11888 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11889 | PyObject *resultobj = 0; | |
11890 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11891 | wxSize result; | |
11892 | void *argp1 = 0 ; | |
11893 | int res1 = 0 ; | |
11894 | PyObject *swig_obj[1] ; | |
11895 | ||
11896 | if (!args) SWIG_fail; | |
11897 | swig_obj[0] = args; | |
11898 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11899 | if (!SWIG_IsOK(res1)) { | |
11900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetSize" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
11901 | } | |
11902 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11903 | { | |
11904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11905 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
11906 | wxPyEndAllowThreads(__tstate); | |
11907 | if (PyErr_Occurred()) SWIG_fail; | |
11908 | } | |
11909 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
11910 | return resultobj; | |
11911 | fail: | |
11912 | return NULL; | |
11913 | } | |
11914 | ||
11915 | ||
11916 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11917 | PyObject *resultobj = 0; | |
11918 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11919 | wxLayoutOrientation arg2 ; | |
11920 | void *argp1 = 0 ; | |
11921 | int res1 = 0 ; | |
11922 | int val2 ; | |
11923 | int ecode2 = 0 ; | |
11924 | PyObject * obj0 = 0 ; | |
11925 | PyObject * obj1 = 0 ; | |
11926 | char * kwnames[] = { | |
11927 | (char *) "self",(char *) "orient", NULL | |
11928 | }; | |
11929 | ||
11930 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
11931 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11932 | if (!SWIG_IsOK(res1)) { | |
11933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetOrientation" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
11934 | } | |
11935 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11936 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11937 | if (!SWIG_IsOK(ecode2)) { | |
11938 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetOrientation" "', expected argument " "2"" of type '" "wxLayoutOrientation""'"); | |
11939 | } | |
11940 | arg2 = static_cast< wxLayoutOrientation >(val2); | |
11941 | { | |
11942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11943 | (arg1)->SetOrientation(arg2); | |
11944 | wxPyEndAllowThreads(__tstate); | |
11945 | if (PyErr_Occurred()) SWIG_fail; | |
11946 | } | |
11947 | resultobj = SWIG_Py_Void(); | |
11948 | return resultobj; | |
11949 | fail: | |
11950 | return NULL; | |
d14a1e28 RD |
11951 | } |
11952 | ||
11953 | ||
0085ce49 RD |
11954 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11955 | PyObject *resultobj = 0; | |
11956 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11957 | wxLayoutOrientation result; | |
11958 | void *argp1 = 0 ; | |
11959 | int res1 = 0 ; | |
11960 | PyObject *swig_obj[1] ; | |
11961 | ||
11962 | if (!args) SWIG_fail; | |
11963 | swig_obj[0] = args; | |
11964 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11965 | if (!SWIG_IsOK(res1)) { | |
11966 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetOrientation" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
11967 | } | |
11968 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11969 | { | |
11970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11971 | result = (wxLayoutOrientation)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
11972 | wxPyEndAllowThreads(__tstate); | |
11973 | if (PyErr_Occurred()) SWIG_fail; | |
11974 | } | |
11975 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11976 | return resultobj; | |
11977 | fail: | |
11978 | return NULL; | |
11979 | } | |
11980 | ||
11981 | ||
11982 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11983 | PyObject *resultobj = 0; | |
11984 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11985 | wxLayoutAlignment arg2 ; | |
11986 | void *argp1 = 0 ; | |
11987 | int res1 = 0 ; | |
11988 | int val2 ; | |
11989 | int ecode2 = 0 ; | |
11990 | PyObject * obj0 = 0 ; | |
11991 | PyObject * obj1 = 0 ; | |
11992 | char * kwnames[] = { | |
11993 | (char *) "self",(char *) "align", NULL | |
11994 | }; | |
11995 | ||
11996 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
11997 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11998 | if (!SWIG_IsOK(res1)) { | |
11999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetAlignment" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12000 | } | |
12001 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12002 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12003 | if (!SWIG_IsOK(ecode2)) { | |
12004 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetAlignment" "', expected argument " "2"" of type '" "wxLayoutAlignment""'"); | |
12005 | } | |
12006 | arg2 = static_cast< wxLayoutAlignment >(val2); | |
12007 | { | |
12008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12009 | (arg1)->SetAlignment(arg2); | |
12010 | wxPyEndAllowThreads(__tstate); | |
12011 | if (PyErr_Occurred()) SWIG_fail; | |
12012 | } | |
12013 | resultobj = SWIG_Py_Void(); | |
12014 | return resultobj; | |
12015 | fail: | |
12016 | return NULL; | |
d14a1e28 RD |
12017 | } |
12018 | ||
12019 | ||
0085ce49 RD |
12020 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12021 | PyObject *resultobj = 0; | |
12022 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12023 | wxLayoutAlignment result; | |
12024 | void *argp1 = 0 ; | |
12025 | int res1 = 0 ; | |
12026 | PyObject *swig_obj[1] ; | |
12027 | ||
12028 | if (!args) SWIG_fail; | |
12029 | swig_obj[0] = args; | |
12030 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12031 | if (!SWIG_IsOK(res1)) { | |
12032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetAlignment" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12033 | } | |
12034 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12035 | { | |
12036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12037 | result = (wxLayoutAlignment)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
12038 | wxPyEndAllowThreads(__tstate); | |
12039 | if (PyErr_Occurred()) SWIG_fail; | |
12040 | } | |
12041 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12042 | return resultobj; | |
12043 | fail: | |
12044 | return NULL; | |
d14a1e28 RD |
12045 | } |
12046 | ||
12047 | ||
0085ce49 RD |
12048 | SWIGINTERN PyObject *QueryLayoutInfoEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12049 | PyObject *obj; | |
12050 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12051 | SWIG_TypeNewClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, SWIG_NewClientData(obj)); | |
12052 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12053 | } |
12054 | ||
0085ce49 RD |
12055 | SWIGINTERN PyObject *QueryLayoutInfoEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12056 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12057 | } |
12058 | ||
0085ce49 RD |
12059 | SWIGINTERN PyObject *_wrap_new_CalculateLayoutEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12060 | PyObject *resultobj = 0; | |
12061 | int arg1 = (int) 0 ; | |
12062 | wxCalculateLayoutEvent *result = 0 ; | |
12063 | int val1 ; | |
12064 | int ecode1 = 0 ; | |
12065 | PyObject * obj0 = 0 ; | |
12066 | char * kwnames[] = { | |
12067 | (char *) "id", NULL | |
12068 | }; | |
12069 | ||
12070 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) SWIG_fail; | |
12071 | if (obj0) { | |
12072 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
12073 | if (!SWIG_IsOK(ecode1)) { | |
12074 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CalculateLayoutEvent" "', expected argument " "1"" of type '" "int""'"); | |
12075 | } | |
12076 | arg1 = static_cast< int >(val1); | |
12077 | } | |
12078 | { | |
12079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12080 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
12081 | wxPyEndAllowThreads(__tstate); | |
12082 | if (PyErr_Occurred()) SWIG_fail; | |
12083 | } | |
12084 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCalculateLayoutEvent, SWIG_POINTER_NEW | 0 ); | |
12085 | return resultobj; | |
12086 | fail: | |
12087 | return NULL; | |
12088 | } | |
12089 | ||
12090 | ||
12091 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12092 | PyObject *resultobj = 0; | |
12093 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12094 | int arg2 ; | |
12095 | void *argp1 = 0 ; | |
12096 | int res1 = 0 ; | |
12097 | int val2 ; | |
12098 | int ecode2 = 0 ; | |
12099 | PyObject * obj0 = 0 ; | |
12100 | PyObject * obj1 = 0 ; | |
12101 | char * kwnames[] = { | |
12102 | (char *) "self",(char *) "flags", NULL | |
12103 | }; | |
12104 | ||
12105 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
12106 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12107 | if (!SWIG_IsOK(res1)) { | |
12108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_SetFlags" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent *""'"); | |
12109 | } | |
12110 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12111 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12112 | if (!SWIG_IsOK(ecode2)) { | |
12113 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalculateLayoutEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
12114 | } | |
12115 | arg2 = static_cast< int >(val2); | |
12116 | { | |
12117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12118 | (arg1)->SetFlags(arg2); | |
12119 | wxPyEndAllowThreads(__tstate); | |
12120 | if (PyErr_Occurred()) SWIG_fail; | |
12121 | } | |
12122 | resultobj = SWIG_Py_Void(); | |
12123 | return resultobj; | |
12124 | fail: | |
12125 | return NULL; | |
d14a1e28 RD |
12126 | } |
12127 | ||
12128 | ||
0085ce49 RD |
12129 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12130 | PyObject *resultobj = 0; | |
12131 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12132 | int result; | |
12133 | void *argp1 = 0 ; | |
12134 | int res1 = 0 ; | |
12135 | PyObject *swig_obj[1] ; | |
12136 | ||
12137 | if (!args) SWIG_fail; | |
12138 | swig_obj[0] = args; | |
12139 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12140 | if (!SWIG_IsOK(res1)) { | |
12141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_GetFlags" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent const *""'"); | |
12142 | } | |
12143 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12144 | { | |
12145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12146 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
12147 | wxPyEndAllowThreads(__tstate); | |
12148 | if (PyErr_Occurred()) SWIG_fail; | |
12149 | } | |
12150 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12151 | return resultobj; | |
12152 | fail: | |
12153 | return NULL; | |
12154 | } | |
12155 | ||
12156 | ||
12157 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12158 | PyObject *resultobj = 0; | |
12159 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12160 | wxRect *arg2 = 0 ; | |
12161 | void *argp1 = 0 ; | |
12162 | int res1 = 0 ; | |
12163 | wxRect temp2 ; | |
12164 | PyObject * obj0 = 0 ; | |
12165 | PyObject * obj1 = 0 ; | |
12166 | char * kwnames[] = { | |
12167 | (char *) "self",(char *) "rect", NULL | |
12168 | }; | |
12169 | ||
12170 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
12171 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12172 | if (!SWIG_IsOK(res1)) { | |
12173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_SetRect" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent *""'"); | |
12174 | } | |
12175 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12176 | { | |
12177 | arg2 = &temp2; | |
12178 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12179 | } | |
12180 | { | |
12181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12182 | (arg1)->SetRect((wxRect const &)*arg2); | |
12183 | wxPyEndAllowThreads(__tstate); | |
12184 | if (PyErr_Occurred()) SWIG_fail; | |
12185 | } | |
12186 | resultobj = SWIG_Py_Void(); | |
12187 | return resultobj; | |
12188 | fail: | |
12189 | return NULL; | |
d14a1e28 RD |
12190 | } |
12191 | ||
12192 | ||
0085ce49 RD |
12193 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12194 | PyObject *resultobj = 0; | |
12195 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12196 | wxRect result; | |
12197 | void *argp1 = 0 ; | |
12198 | int res1 = 0 ; | |
12199 | PyObject *swig_obj[1] ; | |
12200 | ||
12201 | if (!args) SWIG_fail; | |
12202 | swig_obj[0] = args; | |
12203 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12204 | if (!SWIG_IsOK(res1)) { | |
12205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_GetRect" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent const *""'"); | |
12206 | } | |
12207 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12208 | { | |
12209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12210 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
12211 | wxPyEndAllowThreads(__tstate); | |
12212 | if (PyErr_Occurred()) SWIG_fail; | |
12213 | } | |
12214 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
12215 | return resultobj; | |
12216 | fail: | |
12217 | return NULL; | |
12218 | } | |
12219 | ||
12220 | ||
12221 | SWIGINTERN PyObject *CalculateLayoutEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12222 | PyObject *obj; | |
12223 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12224 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCalculateLayoutEvent, SWIG_NewClientData(obj)); | |
12225 | return SWIG_Py_Void(); | |
12226 | } | |
12227 | ||
12228 | SWIGINTERN PyObject *CalculateLayoutEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12229 | return SWIG_Python_InitShadowInstance(args); | |
12230 | } | |
12231 | ||
12232 | SWIGINTERN PyObject *_wrap_new_SashLayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12233 | PyObject *resultobj = 0; | |
12234 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12235 | int arg2 = (int) -1 ; | |
12236 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
12237 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12238 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12239 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12240 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
12241 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
12242 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12243 | wxSashLayoutWindow *result = 0 ; | |
12244 | void *argp1 = 0 ; | |
12245 | int res1 = 0 ; | |
12246 | int val2 ; | |
12247 | int ecode2 = 0 ; | |
12248 | wxPoint temp3 ; | |
12249 | wxSize temp4 ; | |
12250 | long val5 ; | |
12251 | int ecode5 = 0 ; | |
12252 | bool temp6 = false ; | |
12253 | PyObject * obj0 = 0 ; | |
12254 | PyObject * obj1 = 0 ; | |
12255 | PyObject * obj2 = 0 ; | |
12256 | PyObject * obj3 = 0 ; | |
12257 | PyObject * obj4 = 0 ; | |
12258 | PyObject * obj5 = 0 ; | |
12259 | char * kwnames[] = { | |
12260 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12261 | }; | |
12262 | ||
12263 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
12264 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12265 | if (!SWIG_IsOK(res1)) { | |
12266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SashLayoutWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
12267 | } | |
12268 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
12269 | if (obj1) { | |
12270 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12271 | if (!SWIG_IsOK(ecode2)) { | |
12272 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashLayoutWindow" "', expected argument " "2"" of type '" "int""'"); | |
12273 | } | |
12274 | arg2 = static_cast< int >(val2); | |
12275 | } | |
12276 | if (obj2) { | |
4f89f6a3 | 12277 | { |
0085ce49 RD |
12278 | arg3 = &temp3; |
12279 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4f89f6a3 | 12280 | } |
0085ce49 RD |
12281 | } |
12282 | if (obj3) { | |
d14a1e28 | 12283 | { |
0085ce49 RD |
12284 | arg4 = &temp4; |
12285 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 12286 | } |
0085ce49 RD |
12287 | } |
12288 | if (obj4) { | |
12289 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
12290 | if (!SWIG_IsOK(ecode5)) { | |
12291 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SashLayoutWindow" "', expected argument " "5"" of type '" "long""'"); | |
12292 | } | |
12293 | arg5 = static_cast< long >(val5); | |
12294 | } | |
12295 | if (obj5) { | |
4f89f6a3 | 12296 | { |
0085ce49 RD |
12297 | arg6 = wxString_in_helper(obj5); |
12298 | if (arg6 == NULL) SWIG_fail; | |
12299 | temp6 = true; | |
4f89f6a3 | 12300 | } |
0085ce49 RD |
12301 | } |
12302 | { | |
12303 | if (!wxPyCheckForApp()) SWIG_fail; | |
12304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12305 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12306 | wxPyEndAllowThreads(__tstate); | |
12307 | if (PyErr_Occurred()) SWIG_fail; | |
12308 | } | |
12309 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashLayoutWindow, SWIG_POINTER_NEW | 0 ); | |
12310 | { | |
12311 | if (temp6) | |
12312 | delete arg6; | |
12313 | } | |
12314 | return resultobj; | |
12315 | fail: | |
12316 | { | |
12317 | if (temp6) | |
12318 | delete arg6; | |
12319 | } | |
12320 | return NULL; | |
d14a1e28 RD |
12321 | } |
12322 | ||
12323 | ||
0085ce49 RD |
12324 | SWIGINTERN PyObject *_wrap_new_PreSashLayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12325 | PyObject *resultobj = 0; | |
12326 | wxSashLayoutWindow *result = 0 ; | |
12327 | ||
12328 | if (!SWIG_Python_UnpackTuple(args,"new_PreSashLayoutWindow",0,0,0)) SWIG_fail; | |
12329 | { | |
12330 | if (!wxPyCheckForApp()) SWIG_fail; | |
12331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12332 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
12333 | wxPyEndAllowThreads(__tstate); | |
12334 | if (PyErr_Occurred()) SWIG_fail; | |
12335 | } | |
12336 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashLayoutWindow, SWIG_POINTER_OWN | 0 ); | |
12337 | return resultobj; | |
12338 | fail: | |
12339 | return NULL; | |
12340 | } | |
12341 | ||
12342 | ||
12343 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12344 | PyObject *resultobj = 0; | |
12345 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12346 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12347 | int arg3 = (int) -1 ; | |
12348 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12349 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12350 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12351 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12352 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
12353 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
12354 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12355 | bool result; | |
12356 | void *argp1 = 0 ; | |
12357 | int res1 = 0 ; | |
12358 | void *argp2 = 0 ; | |
12359 | int res2 = 0 ; | |
12360 | int val3 ; | |
12361 | int ecode3 = 0 ; | |
12362 | wxPoint temp4 ; | |
12363 | wxSize temp5 ; | |
12364 | long val6 ; | |
12365 | int ecode6 = 0 ; | |
12366 | bool temp7 = false ; | |
12367 | PyObject * obj0 = 0 ; | |
12368 | PyObject * obj1 = 0 ; | |
12369 | PyObject * obj2 = 0 ; | |
12370 | PyObject * obj3 = 0 ; | |
12371 | PyObject * obj4 = 0 ; | |
12372 | PyObject * obj5 = 0 ; | |
12373 | PyObject * obj6 = 0 ; | |
12374 | char * kwnames[] = { | |
12375 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12376 | }; | |
12377 | ||
12378 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
12379 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12380 | if (!SWIG_IsOK(res1)) { | |
12381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_Create" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12382 | } | |
12383 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12384 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12385 | if (!SWIG_IsOK(res2)) { | |
12386 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SashLayoutWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
12387 | } | |
12388 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
12389 | if (obj2) { | |
12390 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12391 | if (!SWIG_IsOK(ecode3)) { | |
12392 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashLayoutWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
12393 | } | |
12394 | arg3 = static_cast< int >(val3); | |
12395 | } | |
12396 | if (obj3) { | |
d00d1b88 | 12397 | { |
0085ce49 RD |
12398 | arg4 = &temp4; |
12399 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12400 | } | |
12401 | } | |
12402 | if (obj4) { | |
d14a1e28 | 12403 | { |
0085ce49 RD |
12404 | arg5 = &temp5; |
12405 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 12406 | } |
0085ce49 RD |
12407 | } |
12408 | if (obj5) { | |
12409 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
12410 | if (!SWIG_IsOK(ecode6)) { | |
12411 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SashLayoutWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
12412 | } | |
12413 | arg6 = static_cast< long >(val6); | |
12414 | } | |
12415 | if (obj6) { | |
4f89f6a3 | 12416 | { |
0085ce49 RD |
12417 | arg7 = wxString_in_helper(obj6); |
12418 | if (arg7 == NULL) SWIG_fail; | |
12419 | temp7 = true; | |
4f89f6a3 | 12420 | } |
0085ce49 RD |
12421 | } |
12422 | { | |
12423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12424 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12425 | wxPyEndAllowThreads(__tstate); | |
12426 | if (PyErr_Occurred()) SWIG_fail; | |
12427 | } | |
12428 | { | |
12429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12430 | } | |
12431 | { | |
12432 | if (temp7) | |
12433 | delete arg7; | |
12434 | } | |
12435 | return resultobj; | |
12436 | fail: | |
12437 | { | |
12438 | if (temp7) | |
12439 | delete arg7; | |
12440 | } | |
12441 | return NULL; | |
d14a1e28 RD |
12442 | } |
12443 | ||
12444 | ||
0085ce49 RD |
12445 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12446 | PyObject *resultobj = 0; | |
12447 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12448 | wxLayoutAlignment result; | |
12449 | void *argp1 = 0 ; | |
12450 | int res1 = 0 ; | |
12451 | PyObject *swig_obj[1] ; | |
12452 | ||
12453 | if (!args) SWIG_fail; | |
12454 | swig_obj[0] = args; | |
12455 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12456 | if (!SWIG_IsOK(res1)) { | |
12457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_GetAlignment" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12458 | } | |
12459 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12460 | { | |
12461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12462 | result = (wxLayoutAlignment)(arg1)->GetAlignment(); | |
12463 | wxPyEndAllowThreads(__tstate); | |
12464 | if (PyErr_Occurred()) SWIG_fail; | |
12465 | } | |
12466 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12467 | return resultobj; | |
12468 | fail: | |
12469 | return NULL; | |
d14a1e28 RD |
12470 | } |
12471 | ||
12472 | ||
0085ce49 RD |
12473 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12474 | PyObject *resultobj = 0; | |
12475 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12476 | wxLayoutOrientation 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_wxSashLayoutWindow, 0 | 0 ); | |
12484 | if (!SWIG_IsOK(res1)) { | |
12485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_GetOrientation" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12486 | } | |
12487 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12488 | { | |
12489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12490 | result = (wxLayoutOrientation)(arg1)->GetOrientation(); | |
12491 | wxPyEndAllowThreads(__tstate); | |
12492 | if (PyErr_Occurred()) SWIG_fail; | |
12493 | } | |
12494 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12495 | return resultobj; | |
12496 | fail: | |
12497 | return NULL; | |
12498 | } | |
12499 | ||
12500 | ||
12501 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12502 | PyObject *resultobj = 0; | |
12503 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12504 | wxLayoutAlignment arg2 ; | |
12505 | void *argp1 = 0 ; | |
12506 | int res1 = 0 ; | |
12507 | int val2 ; | |
12508 | int ecode2 = 0 ; | |
12509 | PyObject * obj0 = 0 ; | |
12510 | PyObject * obj1 = 0 ; | |
12511 | char * kwnames[] = { | |
12512 | (char *) "self",(char *) "alignment", NULL | |
12513 | }; | |
12514 | ||
12515 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
12516 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12517 | if (!SWIG_IsOK(res1)) { | |
12518 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetAlignment" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12519 | } | |
12520 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12521 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12522 | if (!SWIG_IsOK(ecode2)) { | |
12523 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashLayoutWindow_SetAlignment" "', expected argument " "2"" of type '" "wxLayoutAlignment""'"); | |
12524 | } | |
12525 | arg2 = static_cast< wxLayoutAlignment >(val2); | |
12526 | { | |
12527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12528 | (arg1)->SetAlignment(arg2); | |
12529 | wxPyEndAllowThreads(__tstate); | |
12530 | if (PyErr_Occurred()) SWIG_fail; | |
12531 | } | |
12532 | resultobj = SWIG_Py_Void(); | |
12533 | return resultobj; | |
12534 | fail: | |
12535 | return NULL; | |
12536 | } | |
12537 | ||
12538 | ||
12539 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12540 | PyObject *resultobj = 0; | |
12541 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12542 | wxSize *arg2 = 0 ; | |
12543 | void *argp1 = 0 ; | |
12544 | int res1 = 0 ; | |
12545 | wxSize temp2 ; | |
12546 | PyObject * obj0 = 0 ; | |
12547 | PyObject * obj1 = 0 ; | |
12548 | char * kwnames[] = { | |
12549 | (char *) "self",(char *) "size", NULL | |
12550 | }; | |
12551 | ||
12552 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12553 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12554 | if (!SWIG_IsOK(res1)) { | |
12555 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetDefaultSize" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12556 | } | |
12557 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12558 | { | |
12559 | arg2 = &temp2; | |
12560 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12561 | } | |
12562 | { | |
12563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12564 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
12565 | wxPyEndAllowThreads(__tstate); | |
12566 | if (PyErr_Occurred()) SWIG_fail; | |
12567 | } | |
12568 | resultobj = SWIG_Py_Void(); | |
12569 | return resultobj; | |
12570 | fail: | |
12571 | return NULL; | |
12572 | } | |
12573 | ||
12574 | ||
12575 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12576 | PyObject *resultobj = 0; | |
12577 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12578 | wxLayoutOrientation arg2 ; | |
12579 | void *argp1 = 0 ; | |
12580 | int res1 = 0 ; | |
12581 | int val2 ; | |
12582 | int ecode2 = 0 ; | |
12583 | PyObject * obj0 = 0 ; | |
12584 | PyObject * obj1 = 0 ; | |
12585 | char * kwnames[] = { | |
12586 | (char *) "self",(char *) "orientation", NULL | |
12587 | }; | |
12588 | ||
12589 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
12590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12591 | if (!SWIG_IsOK(res1)) { | |
12592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetOrientation" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12593 | } | |
12594 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12595 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12596 | if (!SWIG_IsOK(ecode2)) { | |
12597 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashLayoutWindow_SetOrientation" "', expected argument " "2"" of type '" "wxLayoutOrientation""'"); | |
12598 | } | |
12599 | arg2 = static_cast< wxLayoutOrientation >(val2); | |
12600 | { | |
12601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12602 | (arg1)->SetOrientation(arg2); | |
12603 | wxPyEndAllowThreads(__tstate); | |
12604 | if (PyErr_Occurred()) SWIG_fail; | |
12605 | } | |
12606 | resultobj = SWIG_Py_Void(); | |
12607 | return resultobj; | |
12608 | fail: | |
12609 | return NULL; | |
d14a1e28 RD |
12610 | } |
12611 | ||
12612 | ||
0085ce49 RD |
12613 | SWIGINTERN PyObject *SashLayoutWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12614 | PyObject *obj; | |
12615 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12616 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashLayoutWindow, SWIG_NewClientData(obj)); | |
12617 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12618 | } |
12619 | ||
0085ce49 RD |
12620 | SWIGINTERN PyObject *SashLayoutWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12621 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12622 | } |
12623 | ||
0085ce49 RD |
12624 | SWIGINTERN PyObject *_wrap_new_LayoutAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12625 | PyObject *resultobj = 0; | |
12626 | wxLayoutAlgorithm *result = 0 ; | |
12627 | ||
12628 | if (!SWIG_Python_UnpackTuple(args,"new_LayoutAlgorithm",0,0,0)) SWIG_fail; | |
12629 | { | |
12630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12631 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
12632 | wxPyEndAllowThreads(__tstate); | |
12633 | if (PyErr_Occurred()) SWIG_fail; | |
12634 | } | |
12635 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLayoutAlgorithm, SWIG_POINTER_NEW | 0 ); | |
12636 | return resultobj; | |
12637 | fail: | |
12638 | return NULL; | |
d14a1e28 RD |
12639 | } |
12640 | ||
12641 | ||
0085ce49 RD |
12642 | SWIGINTERN PyObject *_wrap_delete_LayoutAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12643 | PyObject *resultobj = 0; | |
12644 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12645 | void *argp1 = 0 ; | |
12646 | int res1 = 0 ; | |
12647 | PyObject *swig_obj[1] ; | |
12648 | ||
12649 | if (!args) SWIG_fail; | |
12650 | swig_obj[0] = args; | |
12651 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutAlgorithm, SWIG_POINTER_DISOWN | 0 ); | |
12652 | if (!SWIG_IsOK(res1)) { | |
12653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LayoutAlgorithm" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12654 | } | |
12655 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12656 | { | |
12657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12658 | delete arg1; | |
d14a1e28 | 12659 | |
0085ce49 RD |
12660 | wxPyEndAllowThreads(__tstate); |
12661 | if (PyErr_Occurred()) SWIG_fail; | |
12662 | } | |
12663 | resultobj = SWIG_Py_Void(); | |
12664 | return resultobj; | |
12665 | fail: | |
12666 | return NULL; | |
12667 | } | |
12668 | ||
12669 | ||
12670 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12671 | PyObject *resultobj = 0; | |
12672 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12673 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
12674 | wxRect *arg3 = (wxRect *) NULL ; | |
12675 | bool result; | |
12676 | void *argp1 = 0 ; | |
12677 | int res1 = 0 ; | |
12678 | void *argp2 = 0 ; | |
12679 | int res2 = 0 ; | |
12680 | void *argp3 = 0 ; | |
12681 | int res3 = 0 ; | |
12682 | PyObject * obj0 = 0 ; | |
12683 | PyObject * obj1 = 0 ; | |
12684 | PyObject * obj2 = 0 ; | |
12685 | char * kwnames[] = { | |
12686 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
12687 | }; | |
12688 | ||
12689 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12690 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
12691 | if (!SWIG_IsOK(res1)) { | |
12692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12693 | } | |
12694 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12695 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
12696 | if (!SWIG_IsOK(res2)) { | |
12697 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
12698 | } | |
12699 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
12700 | if (obj2) { | |
12701 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxRect, 0 | 0 ); | |
12702 | if (!SWIG_IsOK(res3)) { | |
12703 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "3"" of type '" "wxRect *""'"); | |
d14a1e28 | 12704 | } |
0085ce49 RD |
12705 | arg3 = reinterpret_cast< wxRect * >(argp3); |
12706 | } | |
12707 | { | |
12708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12709 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
12710 | wxPyEndAllowThreads(__tstate); | |
12711 | if (PyErr_Occurred()) SWIG_fail; | |
12712 | } | |
12713 | { | |
12714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12715 | } | |
12716 | return resultobj; | |
12717 | fail: | |
12718 | return NULL; | |
12719 | } | |
12720 | ||
12721 | ||
12722 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12723 | PyObject *resultobj = 0; | |
12724 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12725 | wxFrame *arg2 = (wxFrame *) 0 ; | |
12726 | wxWindow *arg3 = (wxWindow *) NULL ; | |
12727 | bool result; | |
12728 | void *argp1 = 0 ; | |
12729 | int res1 = 0 ; | |
12730 | void *argp2 = 0 ; | |
12731 | int res2 = 0 ; | |
12732 | void *argp3 = 0 ; | |
12733 | int res3 = 0 ; | |
12734 | PyObject * obj0 = 0 ; | |
12735 | PyObject * obj1 = 0 ; | |
12736 | PyObject * obj2 = 0 ; | |
12737 | char * kwnames[] = { | |
12738 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
12739 | }; | |
12740 | ||
12741 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12742 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
12743 | if (!SWIG_IsOK(res1)) { | |
12744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12745 | } | |
12746 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12747 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
12748 | if (!SWIG_IsOK(res2)) { | |
12749 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
12750 | } | |
12751 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
12752 | if (obj2) { | |
12753 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12754 | if (!SWIG_IsOK(res3)) { | |
12755 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
093d3ff1 | 12756 | } |
0085ce49 RD |
12757 | arg3 = reinterpret_cast< wxWindow * >(argp3); |
12758 | } | |
12759 | { | |
12760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12761 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
12762 | wxPyEndAllowThreads(__tstate); | |
12763 | if (PyErr_Occurred()) SWIG_fail; | |
12764 | } | |
12765 | { | |
12766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12767 | } | |
12768 | return resultobj; | |
12769 | fail: | |
12770 | return NULL; | |
12771 | } | |
12772 | ||
12773 | ||
12774 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12775 | PyObject *resultobj = 0; | |
12776 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12777 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12778 | wxWindow *arg3 = (wxWindow *) NULL ; | |
12779 | bool result; | |
12780 | void *argp1 = 0 ; | |
12781 | int res1 = 0 ; | |
12782 | void *argp2 = 0 ; | |
12783 | int res2 = 0 ; | |
12784 | void *argp3 = 0 ; | |
12785 | int res3 = 0 ; | |
12786 | PyObject * obj0 = 0 ; | |
12787 | PyObject * obj1 = 0 ; | |
12788 | PyObject * obj2 = 0 ; | |
12789 | char * kwnames[] = { | |
12790 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
12791 | }; | |
12792 | ||
12793 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12794 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
12795 | if (!SWIG_IsOK(res1)) { | |
12796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12797 | } | |
12798 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12799 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12800 | if (!SWIG_IsOK(res2)) { | |
12801 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
12802 | } | |
12803 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
12804 | if (obj2) { | |
12805 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12806 | if (!SWIG_IsOK(res3)) { | |
12807 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
093d3ff1 | 12808 | } |
0085ce49 RD |
12809 | arg3 = reinterpret_cast< wxWindow * >(argp3); |
12810 | } | |
12811 | { | |
12812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12813 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
12814 | wxPyEndAllowThreads(__tstate); | |
12815 | if (PyErr_Occurred()) SWIG_fail; | |
12816 | } | |
12817 | { | |
12818 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12819 | } | |
12820 | return resultobj; | |
12821 | fail: | |
12822 | return NULL; | |
5cbf236d RD |
12823 | } |
12824 | ||
12825 | ||
0085ce49 RD |
12826 | SWIGINTERN PyObject *LayoutAlgorithm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12827 | PyObject *obj; | |
12828 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12829 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLayoutAlgorithm, SWIG_NewClientData(obj)); | |
12830 | return SWIG_Py_Void(); | |
5cbf236d RD |
12831 | } |
12832 | ||
0085ce49 RD |
12833 | SWIGINTERN PyObject *LayoutAlgorithm_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12834 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12835 | } |
12836 | ||
0085ce49 RD |
12837 | SWIGINTERN PyObject *_wrap_new_PopupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12838 | PyObject *resultobj = 0; | |
12839 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12840 | int arg2 = (int) wxBORDER_NONE ; | |
12841 | wxPopupWindow *result = 0 ; | |
12842 | void *argp1 = 0 ; | |
12843 | int res1 = 0 ; | |
12844 | int val2 ; | |
12845 | int ecode2 = 0 ; | |
12846 | PyObject * obj0 = 0 ; | |
12847 | PyObject * obj1 = 0 ; | |
12848 | char * kwnames[] = { | |
12849 | (char *) "parent",(char *) "flags", NULL | |
12850 | }; | |
12851 | ||
12852 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
12853 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12854 | if (!SWIG_IsOK(res1)) { | |
12855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PopupWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
12856 | } | |
12857 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
12858 | if (obj1) { | |
12859 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12860 | if (!SWIG_IsOK(ecode2)) { | |
12861 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PopupWindow" "', expected argument " "2"" of type '" "int""'"); | |
12862 | } | |
12863 | arg2 = static_cast< int >(val2); | |
12864 | } | |
12865 | { | |
12866 | if (!wxPyCheckForApp()) SWIG_fail; | |
12867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12868 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
12869 | wxPyEndAllowThreads(__tstate); | |
12870 | if (PyErr_Occurred()) SWIG_fail; | |
12871 | } | |
12872 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPopupWindow, SWIG_POINTER_NEW | 0 ); | |
12873 | return resultobj; | |
12874 | fail: | |
12875 | return NULL; | |
d14a1e28 RD |
12876 | } |
12877 | ||
12878 | ||
0085ce49 RD |
12879 | SWIGINTERN PyObject *_wrap_new_PrePopupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12880 | PyObject *resultobj = 0; | |
12881 | wxPopupWindow *result = 0 ; | |
12882 | ||
12883 | if (!SWIG_Python_UnpackTuple(args,"new_PrePopupWindow",0,0,0)) SWIG_fail; | |
12884 | { | |
12885 | if (!wxPyCheckForApp()) SWIG_fail; | |
12886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12887 | result = (wxPopupWindow *)new wxPopupWindow(); | |
12888 | wxPyEndAllowThreads(__tstate); | |
12889 | if (PyErr_Occurred()) SWIG_fail; | |
12890 | } | |
12891 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPopupWindow, SWIG_POINTER_OWN | 0 ); | |
12892 | return resultobj; | |
12893 | fail: | |
12894 | return NULL; | |
12895 | } | |
12896 | ||
12897 | ||
12898 | SWIGINTERN PyObject *_wrap_PopupWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12899 | PyObject *resultobj = 0; | |
12900 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
12901 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12902 | int arg3 = (int) wxBORDER_NONE ; | |
12903 | bool result; | |
12904 | void *argp1 = 0 ; | |
12905 | int res1 = 0 ; | |
12906 | void *argp2 = 0 ; | |
12907 | int res2 = 0 ; | |
12908 | int val3 ; | |
12909 | int ecode3 = 0 ; | |
12910 | PyObject * obj0 = 0 ; | |
12911 | PyObject * obj1 = 0 ; | |
12912 | PyObject * obj2 = 0 ; | |
12913 | char * kwnames[] = { | |
12914 | (char *) "self",(char *) "parent",(char *) "flags", NULL | |
12915 | }; | |
12916 | ||
12917 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PopupWindow_Create",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12918 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPopupWindow, 0 | 0 ); | |
12919 | if (!SWIG_IsOK(res1)) { | |
12920 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupWindow_Create" "', expected argument " "1"" of type '" "wxPopupWindow *""'"); | |
12921 | } | |
12922 | arg1 = reinterpret_cast< wxPopupWindow * >(argp1); | |
12923 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12924 | if (!SWIG_IsOK(res2)) { | |
12925 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PopupWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
12926 | } | |
12927 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
12928 | if (obj2) { | |
12929 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12930 | if (!SWIG_IsOK(ecode3)) { | |
12931 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PopupWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
12932 | } | |
12933 | arg3 = static_cast< int >(val3); | |
12934 | } | |
12935 | { | |
12936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12937 | result = (bool)(arg1)->Create(arg2,arg3); | |
12938 | wxPyEndAllowThreads(__tstate); | |
12939 | if (PyErr_Occurred()) SWIG_fail; | |
12940 | } | |
12941 | { | |
12942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12943 | } | |
12944 | return resultobj; | |
12945 | fail: | |
12946 | return NULL; | |
12947 | } | |
12948 | ||
12949 | ||
12950 | SWIGINTERN PyObject *_wrap_PopupWindow_Position(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12951 | PyObject *resultobj = 0; | |
12952 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
12953 | wxPoint *arg2 = 0 ; | |
12954 | wxSize *arg3 = 0 ; | |
12955 | void *argp1 = 0 ; | |
12956 | int res1 = 0 ; | |
12957 | wxPoint temp2 ; | |
12958 | wxSize temp3 ; | |
12959 | PyObject * obj0 = 0 ; | |
12960 | PyObject * obj1 = 0 ; | |
12961 | PyObject * obj2 = 0 ; | |
12962 | char * kwnames[] = { | |
12963 | (char *) "self",(char *) "ptOrigin",(char *) "size", NULL | |
12964 | }; | |
12965 | ||
12966 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupWindow_Position",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12967 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPopupWindow, 0 | 0 ); | |
12968 | if (!SWIG_IsOK(res1)) { | |
12969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupWindow_Position" "', expected argument " "1"" of type '" "wxPopupWindow *""'"); | |
12970 | } | |
12971 | arg1 = reinterpret_cast< wxPopupWindow * >(argp1); | |
12972 | { | |
12973 | arg2 = &temp2; | |
12974 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12975 | } | |
12976 | { | |
12977 | arg3 = &temp3; | |
12978 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12979 | } | |
12980 | { | |
12981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12982 | (arg1)->Position((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
12983 | wxPyEndAllowThreads(__tstate); | |
12984 | if (PyErr_Occurred()) SWIG_fail; | |
12985 | } | |
12986 | resultobj = SWIG_Py_Void(); | |
12987 | return resultobj; | |
12988 | fail: | |
12989 | return NULL; | |
d14a1e28 RD |
12990 | } |
12991 | ||
12992 | ||
0085ce49 RD |
12993 | SWIGINTERN PyObject *PopupWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12994 | PyObject *obj; | |
12995 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12996 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPopupWindow, SWIG_NewClientData(obj)); | |
12997 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12998 | } |
12999 | ||
0085ce49 RD |
13000 | SWIGINTERN PyObject *PopupWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13001 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
13002 | } |
13003 | ||
0085ce49 RD |
13004 | SWIGINTERN PyObject *_wrap_new_PopupTransientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13005 | PyObject *resultobj = 0; | |
13006 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13007 | int arg2 = (int) wxBORDER_NONE ; | |
13008 | wxPyPopupTransientWindow *result = 0 ; | |
13009 | void *argp1 = 0 ; | |
13010 | int res1 = 0 ; | |
13011 | int val2 ; | |
13012 | int ecode2 = 0 ; | |
13013 | PyObject * obj0 = 0 ; | |
13014 | PyObject * obj1 = 0 ; | |
13015 | char * kwnames[] = { | |
13016 | (char *) "parent",(char *) "style", NULL | |
13017 | }; | |
13018 | ||
13019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
13020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13021 | if (!SWIG_IsOK(res1)) { | |
13022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PopupTransientWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13023 | } | |
13024 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13025 | if (obj1) { | |
13026 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13027 | if (!SWIG_IsOK(ecode2)) { | |
13028 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PopupTransientWindow" "', expected argument " "2"" of type '" "int""'"); | |
13029 | } | |
13030 | arg2 = static_cast< int >(val2); | |
13031 | } | |
13032 | { | |
13033 | if (!wxPyCheckForApp()) SWIG_fail; | |
13034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13035 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
13036 | wxPyEndAllowThreads(__tstate); | |
13037 | if (PyErr_Occurred()) SWIG_fail; | |
13038 | } | |
13039 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_POINTER_NEW | 0 ); | |
13040 | return resultobj; | |
13041 | fail: | |
13042 | return NULL; | |
d14a1e28 RD |
13043 | } |
13044 | ||
13045 | ||
0085ce49 RD |
13046 | SWIGINTERN PyObject *_wrap_new_PrePopupTransientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13047 | PyObject *resultobj = 0; | |
13048 | wxPyPopupTransientWindow *result = 0 ; | |
13049 | ||
13050 | if (!SWIG_Python_UnpackTuple(args,"new_PrePopupTransientWindow",0,0,0)) SWIG_fail; | |
13051 | { | |
13052 | if (!wxPyCheckForApp()) SWIG_fail; | |
13053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13054 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
13055 | wxPyEndAllowThreads(__tstate); | |
13056 | if (PyErr_Occurred()) SWIG_fail; | |
13057 | } | |
13058 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_POINTER_OWN | 0 ); | |
13059 | return resultobj; | |
13060 | fail: | |
13061 | return NULL; | |
13062 | } | |
13063 | ||
13064 | ||
13065 | SWIGINTERN PyObject *_wrap_PopupTransientWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13066 | PyObject *resultobj = 0; | |
13067 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
13068 | PyObject *arg2 = (PyObject *) 0 ; | |
13069 | PyObject *arg3 = (PyObject *) 0 ; | |
13070 | void *argp1 = 0 ; | |
13071 | int res1 = 0 ; | |
13072 | PyObject * obj0 = 0 ; | |
13073 | PyObject * obj1 = 0 ; | |
13074 | PyObject * obj2 = 0 ; | |
13075 | char * kwnames[] = { | |
13076 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13077 | }; | |
13078 | ||
13079 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupTransientWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13080 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPopupTransientWindow, 0 | 0 ); | |
13081 | if (!SWIG_IsOK(res1)) { | |
13082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupTransientWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPopupTransientWindow *""'"); | |
13083 | } | |
13084 | arg1 = reinterpret_cast< wxPyPopupTransientWindow * >(argp1); | |
13085 | arg2 = obj1; | |
13086 | arg3 = obj2; | |
13087 | { | |
13088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13089 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13090 | wxPyEndAllowThreads(__tstate); | |
13091 | if (PyErr_Occurred()) SWIG_fail; | |
13092 | } | |
13093 | resultobj = SWIG_Py_Void(); | |
13094 | return resultobj; | |
13095 | fail: | |
13096 | return NULL; | |
13097 | } | |
13098 | ||
13099 | ||
13100 | SWIGINTERN PyObject *_wrap_PopupTransientWindow_Popup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13101 | PyObject *resultobj = 0; | |
13102 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
13103 | wxWindow *arg2 = (wxWindow *) NULL ; | |
13104 | void *argp1 = 0 ; | |
13105 | int res1 = 0 ; | |
13106 | void *argp2 = 0 ; | |
13107 | int res2 = 0 ; | |
13108 | PyObject * obj0 = 0 ; | |
13109 | PyObject * obj1 = 0 ; | |
13110 | char * kwnames[] = { | |
13111 | (char *) "self",(char *) "focus", NULL | |
13112 | }; | |
13113 | ||
13114 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PopupTransientWindow_Popup",kwnames,&obj0,&obj1)) SWIG_fail; | |
13115 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPopupTransientWindow, 0 | 0 ); | |
13116 | if (!SWIG_IsOK(res1)) { | |
13117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupTransientWindow_Popup" "', expected argument " "1"" of type '" "wxPyPopupTransientWindow *""'"); | |
13118 | } | |
13119 | arg1 = reinterpret_cast< wxPyPopupTransientWindow * >(argp1); | |
13120 | if (obj1) { | |
13121 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13122 | if (!SWIG_IsOK(res2)) { | |
13123 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PopupTransientWindow_Popup" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
22bfe96c | 13124 | } |
0085ce49 RD |
13125 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
13126 | } | |
13127 | { | |
13128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13129 | (arg1)->Popup(arg2); | |
13130 | wxPyEndAllowThreads(__tstate); | |
13131 | if (PyErr_Occurred()) SWIG_fail; | |
13132 | } | |
13133 | resultobj = SWIG_Py_Void(); | |
13134 | return resultobj; | |
13135 | fail: | |
13136 | return NULL; | |
22bfe96c RD |
13137 | } |
13138 | ||
13139 | ||
0085ce49 RD |
13140 | SWIGINTERN PyObject *_wrap_PopupTransientWindow_Dismiss(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13141 | PyObject *resultobj = 0; | |
13142 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
13143 | void *argp1 = 0 ; | |
13144 | int res1 = 0 ; | |
13145 | PyObject *swig_obj[1] ; | |
13146 | ||
13147 | if (!args) SWIG_fail; | |
13148 | swig_obj[0] = args; | |
13149 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPopupTransientWindow, 0 | 0 ); | |
13150 | if (!SWIG_IsOK(res1)) { | |
13151 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupTransientWindow_Dismiss" "', expected argument " "1"" of type '" "wxPyPopupTransientWindow *""'"); | |
13152 | } | |
13153 | arg1 = reinterpret_cast< wxPyPopupTransientWindow * >(argp1); | |
13154 | { | |
13155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13156 | (arg1)->Dismiss(); | |
13157 | wxPyEndAllowThreads(__tstate); | |
13158 | if (PyErr_Occurred()) SWIG_fail; | |
13159 | } | |
13160 | resultobj = SWIG_Py_Void(); | |
13161 | return resultobj; | |
13162 | fail: | |
13163 | return NULL; | |
13164 | } | |
13165 | ||
13166 | ||
13167 | SWIGINTERN PyObject *PopupTransientWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13168 | PyObject *obj; | |
13169 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13170 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_NewClientData(obj)); | |
13171 | return SWIG_Py_Void(); | |
13172 | } | |
13173 | ||
13174 | SWIGINTERN PyObject *PopupTransientWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13175 | return SWIG_Python_InitShadowInstance(args); | |
13176 | } | |
13177 | ||
13178 | SWIGINTERN PyObject *_wrap_new_TipWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13179 | PyObject *resultobj = 0; | |
13180 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13181 | wxString *arg2 = 0 ; | |
13182 | int arg3 = (int) 100 ; | |
13183 | wxRect *arg4 = (wxRect *) NULL ; | |
13184 | wxTipWindow *result = 0 ; | |
13185 | void *argp1 = 0 ; | |
13186 | int res1 = 0 ; | |
13187 | bool temp2 = false ; | |
13188 | int val3 ; | |
13189 | int ecode3 = 0 ; | |
13190 | void *argp4 = 0 ; | |
13191 | int res4 = 0 ; | |
13192 | PyObject * obj0 = 0 ; | |
13193 | PyObject * obj1 = 0 ; | |
13194 | PyObject * obj2 = 0 ; | |
13195 | PyObject * obj3 = 0 ; | |
13196 | char * kwnames[] = { | |
13197 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
13198 | }; | |
13199 | ||
13200 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13201 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13202 | if (!SWIG_IsOK(res1)) { | |
13203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TipWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13204 | } | |
13205 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13206 | { | |
13207 | arg2 = wxString_in_helper(obj1); | |
13208 | if (arg2 == NULL) SWIG_fail; | |
13209 | temp2 = true; | |
13210 | } | |
13211 | if (obj2) { | |
13212 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13213 | if (!SWIG_IsOK(ecode3)) { | |
13214 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TipWindow" "', expected argument " "3"" of type '" "int""'"); | |
13215 | } | |
13216 | arg3 = static_cast< int >(val3); | |
13217 | } | |
13218 | if (obj3) { | |
13219 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxRect, 0 | 0 ); | |
13220 | if (!SWIG_IsOK(res4)) { | |
13221 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_TipWindow" "', expected argument " "4"" of type '" "wxRect *""'"); | |
d14a1e28 | 13222 | } |
0085ce49 RD |
13223 | arg4 = reinterpret_cast< wxRect * >(argp4); |
13224 | } | |
13225 | { | |
13226 | if (!wxPyCheckForApp()) SWIG_fail; | |
13227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13228 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
13229 | wxPyEndAllowThreads(__tstate); | |
13230 | if (PyErr_Occurred()) SWIG_fail; | |
13231 | } | |
13232 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTipWindow, SWIG_POINTER_NEW | 0 ); | |
13233 | { | |
13234 | if (temp2) | |
13235 | delete arg2; | |
13236 | } | |
13237 | return resultobj; | |
13238 | fail: | |
13239 | { | |
13240 | if (temp2) | |
13241 | delete arg2; | |
13242 | } | |
13243 | return NULL; | |
d14a1e28 RD |
13244 | } |
13245 | ||
13246 | ||
0085ce49 RD |
13247 | SWIGINTERN PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13248 | PyObject *resultobj = 0; | |
13249 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
13250 | wxRect *arg2 = 0 ; | |
13251 | void *argp1 = 0 ; | |
13252 | int res1 = 0 ; | |
13253 | wxRect temp2 ; | |
13254 | PyObject * obj0 = 0 ; | |
13255 | PyObject * obj1 = 0 ; | |
13256 | char * kwnames[] = { | |
13257 | (char *) "self",(char *) "rectBound", NULL | |
13258 | }; | |
13259 | ||
13260 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
13261 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTipWindow, 0 | 0 ); | |
13262 | if (!SWIG_IsOK(res1)) { | |
13263 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipWindow_SetBoundingRect" "', expected argument " "1"" of type '" "wxTipWindow *""'"); | |
13264 | } | |
13265 | arg1 = reinterpret_cast< wxTipWindow * >(argp1); | |
13266 | { | |
13267 | arg2 = &temp2; | |
13268 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
13269 | } | |
13270 | { | |
13271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13272 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
13273 | wxPyEndAllowThreads(__tstate); | |
13274 | if (PyErr_Occurred()) SWIG_fail; | |
13275 | } | |
13276 | resultobj = SWIG_Py_Void(); | |
13277 | return resultobj; | |
13278 | fail: | |
13279 | return NULL; | |
d14a1e28 RD |
13280 | } |
13281 | ||
13282 | ||
0085ce49 RD |
13283 | SWIGINTERN PyObject *_wrap_TipWindow_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13284 | PyObject *resultobj = 0; | |
13285 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
13286 | void *argp1 = 0 ; | |
13287 | int res1 = 0 ; | |
13288 | PyObject *swig_obj[1] ; | |
13289 | ||
13290 | if (!args) SWIG_fail; | |
13291 | swig_obj[0] = args; | |
13292 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTipWindow, 0 | 0 ); | |
13293 | if (!SWIG_IsOK(res1)) { | |
13294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipWindow_Close" "', expected argument " "1"" of type '" "wxTipWindow *""'"); | |
13295 | } | |
13296 | arg1 = reinterpret_cast< wxTipWindow * >(argp1); | |
13297 | { | |
13298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13299 | (arg1)->Close(); | |
13300 | wxPyEndAllowThreads(__tstate); | |
13301 | if (PyErr_Occurred()) SWIG_fail; | |
13302 | } | |
13303 | resultobj = SWIG_Py_Void(); | |
13304 | return resultobj; | |
13305 | fail: | |
13306 | return NULL; | |
13307 | } | |
13308 | ||
13309 | ||
13310 | SWIGINTERN PyObject *TipWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13311 | PyObject *obj; | |
13312 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13313 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTipWindow, SWIG_NewClientData(obj)); | |
13314 | return SWIG_Py_Void(); | |
13315 | } | |
13316 | ||
13317 | SWIGINTERN PyObject *TipWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13318 | return SWIG_Python_InitShadowInstance(args); | |
13319 | } | |
13320 | ||
13321 | SWIGINTERN PyObject *_wrap_new_VScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13322 | PyObject *resultobj = 0; | |
13323 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13324 | int arg2 = (int) wxID_ANY ; | |
13325 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
13326 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13327 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13328 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13329 | long arg5 = (long) 0 ; | |
13330 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
13331 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13332 | wxPyVScrolledWindow *result = 0 ; | |
13333 | void *argp1 = 0 ; | |
13334 | int res1 = 0 ; | |
13335 | int val2 ; | |
13336 | int ecode2 = 0 ; | |
13337 | wxPoint temp3 ; | |
13338 | wxSize temp4 ; | |
13339 | long val5 ; | |
13340 | int ecode5 = 0 ; | |
13341 | bool temp6 = false ; | |
13342 | PyObject * obj0 = 0 ; | |
13343 | PyObject * obj1 = 0 ; | |
13344 | PyObject * obj2 = 0 ; | |
13345 | PyObject * obj3 = 0 ; | |
13346 | PyObject * obj4 = 0 ; | |
13347 | PyObject * obj5 = 0 ; | |
13348 | char * kwnames[] = { | |
13349 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13350 | }; | |
13351 | ||
13352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
13353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13354 | if (!SWIG_IsOK(res1)) { | |
13355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13356 | } | |
13357 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13358 | if (obj1) { | |
13359 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13360 | if (!SWIG_IsOK(ecode2)) { | |
13361 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
13362 | } | |
13363 | arg2 = static_cast< int >(val2); | |
13364 | } | |
13365 | if (obj2) { | |
093d3ff1 | 13366 | { |
0085ce49 RD |
13367 | arg3 = &temp3; |
13368 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 13369 | } |
0085ce49 RD |
13370 | } |
13371 | if (obj3) { | |
d14a1e28 | 13372 | { |
0085ce49 RD |
13373 | arg4 = &temp4; |
13374 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 13375 | } |
0085ce49 RD |
13376 | } |
13377 | if (obj4) { | |
13378 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
13379 | if (!SWIG_IsOK(ecode5)) { | |
13380 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_VScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
13381 | } | |
13382 | arg5 = static_cast< long >(val5); | |
13383 | } | |
13384 | if (obj5) { | |
d14a1e28 | 13385 | { |
0085ce49 RD |
13386 | arg6 = wxString_in_helper(obj5); |
13387 | if (arg6 == NULL) SWIG_fail; | |
13388 | temp6 = true; | |
d14a1e28 | 13389 | } |
0085ce49 RD |
13390 | } |
13391 | { | |
13392 | if (!wxPyCheckForApp()) SWIG_fail; | |
13393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13394 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
13395 | wxPyEndAllowThreads(__tstate); | |
13396 | if (PyErr_Occurred()) SWIG_fail; | |
13397 | } | |
13398 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
13399 | { | |
13400 | if (temp6) | |
13401 | delete arg6; | |
13402 | } | |
13403 | return resultobj; | |
13404 | fail: | |
13405 | { | |
13406 | if (temp6) | |
13407 | delete arg6; | |
13408 | } | |
13409 | return NULL; | |
d14a1e28 RD |
13410 | } |
13411 | ||
13412 | ||
0085ce49 RD |
13413 | SWIGINTERN PyObject *_wrap_new_PreVScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13414 | PyObject *resultobj = 0; | |
13415 | wxPyVScrolledWindow *result = 0 ; | |
13416 | ||
13417 | if (!SWIG_Python_UnpackTuple(args,"new_PreVScrolledWindow",0,0,0)) SWIG_fail; | |
13418 | { | |
13419 | if (!wxPyCheckForApp()) SWIG_fail; | |
13420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13421 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
13422 | wxPyEndAllowThreads(__tstate); | |
13423 | if (PyErr_Occurred()) SWIG_fail; | |
13424 | } | |
13425 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
13426 | return resultobj; | |
13427 | fail: | |
13428 | return NULL; | |
13429 | } | |
13430 | ||
13431 | ||
13432 | SWIGINTERN PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13433 | PyObject *resultobj = 0; | |
13434 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13435 | PyObject *arg2 = (PyObject *) 0 ; | |
13436 | PyObject *arg3 = (PyObject *) 0 ; | |
13437 | void *argp1 = 0 ; | |
13438 | int res1 = 0 ; | |
13439 | PyObject * obj0 = 0 ; | |
13440 | PyObject * obj1 = 0 ; | |
13441 | PyObject * obj2 = 0 ; | |
13442 | char * kwnames[] = { | |
13443 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13444 | }; | |
13445 | ||
13446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13447 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13448 | if (!SWIG_IsOK(res1)) { | |
13449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13450 | } | |
13451 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13452 | arg2 = obj1; | |
13453 | arg3 = obj2; | |
13454 | { | |
13455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13456 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13457 | wxPyEndAllowThreads(__tstate); | |
13458 | if (PyErr_Occurred()) SWIG_fail; | |
13459 | } | |
13460 | resultobj = SWIG_Py_Void(); | |
13461 | return resultobj; | |
13462 | fail: | |
13463 | return NULL; | |
13464 | } | |
13465 | ||
13466 | ||
13467 | SWIGINTERN PyObject *_wrap_VScrolledWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13468 | PyObject *resultobj = 0; | |
13469 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13470 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13471 | int arg3 = (int) wxID_ANY ; | |
13472 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13473 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13474 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13475 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13476 | long arg6 = (long) 0 ; | |
13477 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
13478 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13479 | bool result; | |
13480 | void *argp1 = 0 ; | |
13481 | int res1 = 0 ; | |
13482 | void *argp2 = 0 ; | |
13483 | int res2 = 0 ; | |
13484 | int val3 ; | |
13485 | int ecode3 = 0 ; | |
13486 | wxPoint temp4 ; | |
13487 | wxSize temp5 ; | |
13488 | long val6 ; | |
13489 | int ecode6 = 0 ; | |
13490 | bool temp7 = false ; | |
13491 | PyObject * obj0 = 0 ; | |
13492 | PyObject * obj1 = 0 ; | |
13493 | PyObject * obj2 = 0 ; | |
13494 | PyObject * obj3 = 0 ; | |
13495 | PyObject * obj4 = 0 ; | |
13496 | PyObject * obj5 = 0 ; | |
13497 | PyObject * obj6 = 0 ; | |
13498 | char * kwnames[] = { | |
13499 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13500 | }; | |
13501 | ||
13502 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13503 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13504 | if (!SWIG_IsOK(res1)) { | |
13505 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_Create" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13506 | } | |
13507 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13508 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13509 | if (!SWIG_IsOK(res2)) { | |
13510 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VScrolledWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13511 | } | |
13512 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13513 | if (obj2) { | |
13514 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13515 | if (!SWIG_IsOK(ecode3)) { | |
13516 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
13517 | } | |
13518 | arg3 = static_cast< int >(val3); | |
13519 | } | |
13520 | if (obj3) { | |
d14a1e28 | 13521 | { |
0085ce49 RD |
13522 | arg4 = &temp4; |
13523 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 13524 | } |
0085ce49 RD |
13525 | } |
13526 | if (obj4) { | |
093d3ff1 | 13527 | { |
0085ce49 RD |
13528 | arg5 = &temp5; |
13529 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 13530 | } |
0085ce49 RD |
13531 | } |
13532 | if (obj5) { | |
13533 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
13534 | if (!SWIG_IsOK(ecode6)) { | |
13535 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VScrolledWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
13536 | } | |
13537 | arg6 = static_cast< long >(val6); | |
13538 | } | |
13539 | if (obj6) { | |
13540 | { | |
13541 | arg7 = wxString_in_helper(obj6); | |
13542 | if (arg7 == NULL) SWIG_fail; | |
13543 | temp7 = true; | |
13544 | } | |
13545 | } | |
13546 | { | |
13547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13548 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
13549 | wxPyEndAllowThreads(__tstate); | |
13550 | if (PyErr_Occurred()) SWIG_fail; | |
13551 | } | |
13552 | { | |
13553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13554 | } | |
13555 | { | |
13556 | if (temp7) | |
13557 | delete arg7; | |
13558 | } | |
13559 | return resultobj; | |
13560 | fail: | |
13561 | { | |
13562 | if (temp7) | |
13563 | delete arg7; | |
13564 | } | |
13565 | return NULL; | |
13566 | } | |
13567 | ||
13568 | ||
13569 | SWIGINTERN PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13570 | PyObject *resultobj = 0; | |
13571 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13572 | size_t arg2 ; | |
13573 | void *argp1 = 0 ; | |
13574 | int res1 = 0 ; | |
13575 | size_t val2 ; | |
13576 | int ecode2 = 0 ; | |
13577 | PyObject * obj0 = 0 ; | |
13578 | PyObject * obj1 = 0 ; | |
13579 | char * kwnames[] = { | |
13580 | (char *) "self",(char *) "count", NULL | |
13581 | }; | |
13582 | ||
13583 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
13584 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13585 | if (!SWIG_IsOK(res1)) { | |
13586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_SetLineCount" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13587 | } | |
13588 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13589 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13590 | if (!SWIG_IsOK(ecode2)) { | |
13591 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_SetLineCount" "', expected argument " "2"" of type '" "size_t""'"); | |
13592 | } | |
13593 | arg2 = static_cast< size_t >(val2); | |
13594 | { | |
13595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13596 | (arg1)->SetLineCount(arg2); | |
13597 | wxPyEndAllowThreads(__tstate); | |
13598 | if (PyErr_Occurred()) SWIG_fail; | |
13599 | } | |
13600 | resultobj = SWIG_Py_Void(); | |
13601 | return resultobj; | |
13602 | fail: | |
13603 | return NULL; | |
13604 | } | |
13605 | ||
13606 | ||
13607 | SWIGINTERN PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13608 | PyObject *resultobj = 0; | |
13609 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13610 | size_t arg2 ; | |
13611 | bool result; | |
13612 | void *argp1 = 0 ; | |
13613 | int res1 = 0 ; | |
13614 | size_t val2 ; | |
13615 | int ecode2 = 0 ; | |
13616 | PyObject * obj0 = 0 ; | |
13617 | PyObject * obj1 = 0 ; | |
13618 | char * kwnames[] = { | |
13619 | (char *) "self",(char *) "line", NULL | |
13620 | }; | |
13621 | ||
13622 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) SWIG_fail; | |
13623 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13624 | if (!SWIG_IsOK(res1)) { | |
13625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_ScrollToLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13626 | } | |
13627 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13628 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13629 | if (!SWIG_IsOK(ecode2)) { | |
13630 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_ScrollToLine" "', expected argument " "2"" of type '" "size_t""'"); | |
13631 | } | |
13632 | arg2 = static_cast< size_t >(val2); | |
13633 | { | |
13634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13635 | result = (bool)(arg1)->ScrollToLine(arg2); | |
13636 | wxPyEndAllowThreads(__tstate); | |
13637 | if (PyErr_Occurred()) SWIG_fail; | |
13638 | } | |
13639 | { | |
13640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13641 | } | |
13642 | return resultobj; | |
13643 | fail: | |
13644 | return NULL; | |
13645 | } | |
13646 | ||
13647 | ||
13648 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13649 | PyObject *resultobj = 0; | |
13650 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13651 | size_t arg2 ; | |
13652 | void *argp1 = 0 ; | |
13653 | int res1 = 0 ; | |
13654 | size_t val2 ; | |
13655 | int ecode2 = 0 ; | |
13656 | PyObject * obj0 = 0 ; | |
13657 | PyObject * obj1 = 0 ; | |
13658 | char * kwnames[] = { | |
13659 | (char *) "self",(char *) "line", NULL | |
13660 | }; | |
13661 | ||
13662 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) SWIG_fail; | |
13663 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13664 | if (!SWIG_IsOK(res1)) { | |
13665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13666 | } | |
13667 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13668 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13669 | if (!SWIG_IsOK(ecode2)) { | |
13670 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_RefreshLine" "', expected argument " "2"" of type '" "size_t""'"); | |
13671 | } | |
13672 | arg2 = static_cast< size_t >(val2); | |
13673 | { | |
13674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13675 | (arg1)->RefreshLine(arg2); | |
13676 | wxPyEndAllowThreads(__tstate); | |
13677 | if (PyErr_Occurred()) SWIG_fail; | |
13678 | } | |
13679 | resultobj = SWIG_Py_Void(); | |
13680 | return resultobj; | |
13681 | fail: | |
13682 | return NULL; | |
13683 | } | |
13684 | ||
13685 | ||
13686 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13687 | PyObject *resultobj = 0; | |
13688 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13689 | size_t arg2 ; | |
13690 | size_t arg3 ; | |
13691 | void *argp1 = 0 ; | |
13692 | int res1 = 0 ; | |
13693 | size_t val2 ; | |
13694 | int ecode2 = 0 ; | |
13695 | size_t val3 ; | |
13696 | int ecode3 = 0 ; | |
13697 | PyObject * obj0 = 0 ; | |
13698 | PyObject * obj1 = 0 ; | |
13699 | PyObject * obj2 = 0 ; | |
13700 | char * kwnames[] = { | |
13701 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
13702 | }; | |
13703 | ||
13704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13706 | if (!SWIG_IsOK(res1)) { | |
13707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13708 | } | |
13709 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13710 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13711 | if (!SWIG_IsOK(ecode2)) { | |
13712 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "2"" of type '" "size_t""'"); | |
13713 | } | |
13714 | arg2 = static_cast< size_t >(val2); | |
13715 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
13716 | if (!SWIG_IsOK(ecode3)) { | |
13717 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "3"" of type '" "size_t""'"); | |
13718 | } | |
13719 | arg3 = static_cast< size_t >(val3); | |
13720 | { | |
13721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13722 | (arg1)->RefreshLines(arg2,arg3); | |
13723 | wxPyEndAllowThreads(__tstate); | |
13724 | if (PyErr_Occurred()) SWIG_fail; | |
13725 | } | |
13726 | resultobj = SWIG_Py_Void(); | |
13727 | return resultobj; | |
13728 | fail: | |
13729 | return NULL; | |
13730 | } | |
13731 | ||
13732 | ||
13733 | SWIGINTERN PyObject *_wrap_VScrolledWindow_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13734 | PyObject *resultobj = 0; | |
13735 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13736 | int arg2 ; | |
13737 | int arg3 ; | |
13738 | int result; | |
13739 | void *argp1 = 0 ; | |
13740 | int res1 = 0 ; | |
13741 | int val2 ; | |
13742 | int ecode2 = 0 ; | |
13743 | int val3 ; | |
13744 | int ecode3 = 0 ; | |
13745 | PyObject * obj0 = 0 ; | |
13746 | PyObject * obj1 = 0 ; | |
13747 | PyObject * obj2 = 0 ; | |
13748 | char * kwnames[] = { | |
13749 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13750 | }; | |
13751 | ||
13752 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13753 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13754 | if (!SWIG_IsOK(res1)) { | |
13755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13756 | } | |
13757 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13758 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13759 | if (!SWIG_IsOK(ecode2)) { | |
13760 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "2"" of type '" "int""'"); | |
13761 | } | |
13762 | arg2 = static_cast< int >(val2); | |
13763 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13764 | if (!SWIG_IsOK(ecode3)) { | |
13765 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "3"" of type '" "int""'"); | |
13766 | } | |
13767 | arg3 = static_cast< int >(val3); | |
13768 | { | |
13769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13770 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
13771 | wxPyEndAllowThreads(__tstate); | |
13772 | if (PyErr_Occurred()) SWIG_fail; | |
13773 | } | |
13774 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13775 | return resultobj; | |
13776 | fail: | |
13777 | return NULL; | |
13778 | } | |
13779 | ||
13780 | ||
13781 | SWIGINTERN PyObject *_wrap_VScrolledWindow_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13782 | PyObject *resultobj = 0; | |
13783 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13784 | wxPoint *arg2 = 0 ; | |
13785 | int result; | |
13786 | void *argp1 = 0 ; | |
13787 | int res1 = 0 ; | |
13788 | wxPoint temp2 ; | |
13789 | PyObject * obj0 = 0 ; | |
13790 | PyObject * obj1 = 0 ; | |
13791 | char * kwnames[] = { | |
13792 | (char *) "self",(char *) "pt", NULL | |
13793 | }; | |
13794 | ||
13795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
13796 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13797 | if (!SWIG_IsOK(res1)) { | |
13798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_HitTest" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13799 | } | |
13800 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13801 | { | |
13802 | arg2 = &temp2; | |
13803 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13804 | } | |
13805 | { | |
13806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13807 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
13808 | wxPyEndAllowThreads(__tstate); | |
13809 | if (PyErr_Occurred()) SWIG_fail; | |
13810 | } | |
13811 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13812 | return resultobj; | |
13813 | fail: | |
13814 | return NULL; | |
d14a1e28 RD |
13815 | } |
13816 | ||
13817 | ||
0085ce49 RD |
13818 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13819 | PyObject *resultobj = 0; | |
13820 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13821 | void *argp1 = 0 ; | |
13822 | int res1 = 0 ; | |
13823 | PyObject *swig_obj[1] ; | |
13824 | ||
13825 | if (!args) SWIG_fail; | |
13826 | swig_obj[0] = args; | |
13827 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13828 | if (!SWIG_IsOK(res1)) { | |
13829 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshAll" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13830 | } | |
13831 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13832 | { | |
13833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13834 | (arg1)->RefreshAll(); | |
13835 | wxPyEndAllowThreads(__tstate); | |
13836 | if (PyErr_Occurred()) SWIG_fail; | |
13837 | } | |
13838 | resultobj = SWIG_Py_Void(); | |
13839 | return resultobj; | |
13840 | fail: | |
13841 | return NULL; | |
b2dc1044 RD |
13842 | } |
13843 | ||
13844 | ||
0085ce49 RD |
13845 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13846 | PyObject *resultobj = 0; | |
13847 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13848 | size_t result; | |
13849 | void *argp1 = 0 ; | |
13850 | int res1 = 0 ; | |
13851 | PyObject *swig_obj[1] ; | |
13852 | ||
13853 | if (!args) SWIG_fail; | |
13854 | swig_obj[0] = args; | |
13855 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13856 | if (!SWIG_IsOK(res1)) { | |
13857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLineCount" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13858 | } | |
13859 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13860 | { | |
13861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13862 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
13863 | wxPyEndAllowThreads(__tstate); | |
13864 | if (PyErr_Occurred()) SWIG_fail; | |
13865 | } | |
13866 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13867 | return resultobj; | |
13868 | fail: | |
13869 | return NULL; | |
b2dc1044 RD |
13870 | } |
13871 | ||
13872 | ||
0085ce49 RD |
13873 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetVisibleBegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13874 | PyObject *resultobj = 0; | |
13875 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13876 | size_t result; | |
13877 | void *argp1 = 0 ; | |
13878 | int res1 = 0 ; | |
13879 | PyObject *swig_obj[1] ; | |
13880 | ||
13881 | if (!args) SWIG_fail; | |
13882 | swig_obj[0] = args; | |
13883 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13884 | if (!SWIG_IsOK(res1)) { | |
13885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetVisibleBegin" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13886 | } | |
13887 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13888 | { | |
13889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13890 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetVisibleBegin(); | |
13891 | wxPyEndAllowThreads(__tstate); | |
13892 | if (PyErr_Occurred()) SWIG_fail; | |
13893 | } | |
13894 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13895 | return resultobj; | |
13896 | fail: | |
13897 | return NULL; | |
b2dc1044 RD |
13898 | } |
13899 | ||
13900 | ||
0085ce49 RD |
13901 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetVisibleEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13902 | PyObject *resultobj = 0; | |
13903 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13904 | size_t result; | |
13905 | void *argp1 = 0 ; | |
13906 | int res1 = 0 ; | |
13907 | PyObject *swig_obj[1] ; | |
13908 | ||
13909 | if (!args) SWIG_fail; | |
13910 | swig_obj[0] = args; | |
13911 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13912 | if (!SWIG_IsOK(res1)) { | |
13913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetVisibleEnd" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13914 | } | |
13915 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13916 | { | |
13917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13918 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetVisibleEnd(); | |
13919 | wxPyEndAllowThreads(__tstate); | |
13920 | if (PyErr_Occurred()) SWIG_fail; | |
13921 | } | |
13922 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13923 | return resultobj; | |
13924 | fail: | |
13925 | return NULL; | |
13926 | } | |
13927 | ||
13928 | ||
13929 | SWIGINTERN PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13930 | PyObject *resultobj = 0; | |
13931 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13932 | size_t arg2 ; | |
13933 | bool result; | |
13934 | void *argp1 = 0 ; | |
13935 | int res1 = 0 ; | |
13936 | size_t val2 ; | |
13937 | int ecode2 = 0 ; | |
13938 | PyObject * obj0 = 0 ; | |
13939 | PyObject * obj1 = 0 ; | |
13940 | char * kwnames[] = { | |
13941 | (char *) "self",(char *) "line", NULL | |
13942 | }; | |
13943 | ||
13944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
13945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13946 | if (!SWIG_IsOK(res1)) { | |
13947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_IsVisible" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13948 | } | |
13949 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13950 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13951 | if (!SWIG_IsOK(ecode2)) { | |
13952 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_IsVisible" "', expected argument " "2"" of type '" "size_t""'"); | |
13953 | } | |
13954 | arg2 = static_cast< size_t >(val2); | |
13955 | { | |
13956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13957 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
13958 | wxPyEndAllowThreads(__tstate); | |
13959 | if (PyErr_Occurred()) SWIG_fail; | |
13960 | } | |
13961 | { | |
13962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13963 | } | |
13964 | return resultobj; | |
13965 | fail: | |
13966 | return NULL; | |
d14a1e28 RD |
13967 | } |
13968 | ||
13969 | ||
0085ce49 RD |
13970 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13971 | PyObject *resultobj = 0; | |
13972 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13973 | size_t result; | |
13974 | void *argp1 = 0 ; | |
13975 | int res1 = 0 ; | |
13976 | PyObject *swig_obj[1] ; | |
13977 | ||
13978 | if (!args) SWIG_fail; | |
13979 | swig_obj[0] = args; | |
13980 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13981 | if (!SWIG_IsOK(res1)) { | |
13982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetFirstVisibleLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13983 | } | |
13984 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13985 | { | |
13986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13987 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
13988 | wxPyEndAllowThreads(__tstate); | |
13989 | if (PyErr_Occurred()) SWIG_fail; | |
13990 | } | |
13991 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13992 | return resultobj; | |
13993 | fail: | |
13994 | return NULL; | |
d14a1e28 RD |
13995 | } |
13996 | ||
13997 | ||
0085ce49 RD |
13998 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13999 | PyObject *resultobj = 0; | |
14000 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14001 | size_t result; | |
14002 | void *argp1 = 0 ; | |
14003 | int res1 = 0 ; | |
14004 | PyObject *swig_obj[1] ; | |
14005 | ||
14006 | if (!args) SWIG_fail; | |
14007 | swig_obj[0] = args; | |
14008 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14009 | if (!SWIG_IsOK(res1)) { | |
14010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLastVisibleLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14011 | } | |
14012 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14013 | { | |
14014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14015 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
14016 | wxPyEndAllowThreads(__tstate); | |
14017 | if (PyErr_Occurred()) SWIG_fail; | |
14018 | } | |
14019 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14020 | return resultobj; | |
14021 | fail: | |
14022 | return NULL; | |
14023 | } | |
14024 | ||
14025 | ||
14026 | SWIGINTERN PyObject *_wrap_VScrolledWindow_FindFirstFromBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14027 | PyObject *resultobj = 0; | |
14028 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14029 | size_t arg2 ; | |
14030 | bool arg3 = (bool) false ; | |
14031 | size_t result; | |
14032 | void *argp1 = 0 ; | |
14033 | int res1 = 0 ; | |
14034 | size_t val2 ; | |
14035 | int ecode2 = 0 ; | |
14036 | bool val3 ; | |
14037 | int ecode3 = 0 ; | |
14038 | PyObject * obj0 = 0 ; | |
14039 | PyObject * obj1 = 0 ; | |
14040 | PyObject * obj2 = 0 ; | |
14041 | char * kwnames[] = { | |
14042 | (char *) "self",(char *) "lineLast",(char *) "fullyVisible", NULL | |
14043 | }; | |
14044 | ||
14045 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VScrolledWindow_FindFirstFromBottom",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14046 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14047 | if (!SWIG_IsOK(res1)) { | |
14048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
14049 | } | |
14050 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14051 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14052 | if (!SWIG_IsOK(ecode2)) { | |
14053 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "2"" of type '" "size_t""'"); | |
14054 | } | |
14055 | arg2 = static_cast< size_t >(val2); | |
14056 | if (obj2) { | |
14057 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
14058 | if (!SWIG_IsOK(ecode3)) { | |
14059 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "3"" of type '" "bool""'"); | |
14060 | } | |
14061 | arg3 = static_cast< bool >(val3); | |
14062 | } | |
14063 | { | |
14064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14065 | result = (size_t)(arg1)->FindFirstFromBottom(arg2,arg3); | |
14066 | wxPyEndAllowThreads(__tstate); | |
14067 | if (PyErr_Occurred()) SWIG_fail; | |
14068 | } | |
14069 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14070 | return resultobj; | |
14071 | fail: | |
14072 | return NULL; | |
14073 | } | |
14074 | ||
14075 | ||
14076 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLinesHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14077 | PyObject *resultobj = 0; | |
14078 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14079 | size_t arg2 ; | |
14080 | size_t arg3 ; | |
14081 | int result; | |
14082 | void *argp1 = 0 ; | |
14083 | int res1 = 0 ; | |
14084 | size_t val2 ; | |
14085 | int ecode2 = 0 ; | |
14086 | size_t val3 ; | |
14087 | int ecode3 = 0 ; | |
14088 | PyObject * obj0 = 0 ; | |
14089 | PyObject * obj1 = 0 ; | |
14090 | PyObject * obj2 = 0 ; | |
14091 | char * kwnames[] = { | |
14092 | (char *) "self",(char *) "lineMin",(char *) "lineMax", NULL | |
14093 | }; | |
14094 | ||
14095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_GetLinesHeight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14096 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14097 | if (!SWIG_IsOK(res1)) { | |
14098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14099 | } | |
14100 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14101 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14102 | if (!SWIG_IsOK(ecode2)) { | |
14103 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "2"" of type '" "size_t""'"); | |
14104 | } | |
14105 | arg2 = static_cast< size_t >(val2); | |
14106 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
14107 | if (!SWIG_IsOK(ecode3)) { | |
14108 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "3"" of type '" "size_t""'"); | |
14109 | } | |
14110 | arg3 = static_cast< size_t >(val3); | |
14111 | { | |
14112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14113 | result = (int)((wxPyVScrolledWindow const *)arg1)->GetLinesHeight(arg2,arg3); | |
14114 | wxPyEndAllowThreads(__tstate); | |
14115 | if (PyErr_Occurred()) SWIG_fail; | |
14116 | } | |
14117 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14118 | return resultobj; | |
14119 | fail: | |
14120 | return NULL; | |
d14a1e28 RD |
14121 | } |
14122 | ||
14123 | ||
0085ce49 RD |
14124 | SWIGINTERN PyObject *VScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14125 | PyObject *obj; | |
14126 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14127 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyVScrolledWindow, SWIG_NewClientData(obj)); | |
14128 | return SWIG_Py_Void(); | |
d14a1e28 RD |
14129 | } |
14130 | ||
0085ce49 RD |
14131 | SWIGINTERN PyObject *VScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14132 | return SWIG_Python_InitShadowInstance(args); | |
14133 | } | |
d14a1e28 | 14134 | |
0085ce49 RD |
14135 | SWIGINTERN int VListBoxNameStr_set(PyObject *) { |
14136 | SWIG_Error(SWIG_AttributeError,"Variable VListBoxNameStr is read-only."); | |
14137 | return 1; | |
d14a1e28 RD |
14138 | } |
14139 | ||
14140 | ||
0085ce49 RD |
14141 | SWIGINTERN PyObject *VListBoxNameStr_get(void) { |
14142 | PyObject *pyobj = 0; | |
14143 | ||
14144 | { | |
14145 | #if wxUSE_UNICODE | |
14146 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
14147 | #else | |
14148 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
14149 | #endif | |
14150 | } | |
14151 | return pyobj; | |
14152 | } | |
14153 | ||
14154 | ||
14155 | SWIGINTERN PyObject *_wrap_new_VListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14156 | PyObject *resultobj = 0; | |
14157 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14158 | int arg2 = (int) wxID_ANY ; | |
14159 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14160 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14161 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14162 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14163 | long arg5 = (long) 0 ; | |
14164 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
14165 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14166 | wxPyVListBox *result = 0 ; | |
14167 | void *argp1 = 0 ; | |
14168 | int res1 = 0 ; | |
14169 | int val2 ; | |
14170 | int ecode2 = 0 ; | |
14171 | wxPoint temp3 ; | |
14172 | wxSize temp4 ; | |
14173 | long val5 ; | |
14174 | int ecode5 = 0 ; | |
14175 | bool temp6 = false ; | |
14176 | PyObject * obj0 = 0 ; | |
14177 | PyObject * obj1 = 0 ; | |
14178 | PyObject * obj2 = 0 ; | |
14179 | PyObject * obj3 = 0 ; | |
14180 | PyObject * obj4 = 0 ; | |
14181 | PyObject * obj5 = 0 ; | |
14182 | char * kwnames[] = { | |
14183 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14184 | }; | |
14185 | ||
14186 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
14187 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14188 | if (!SWIG_IsOK(res1)) { | |
14189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14190 | } | |
14191 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14192 | if (obj1) { | |
14193 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14194 | if (!SWIG_IsOK(ecode2)) { | |
14195 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VListBox" "', expected argument " "2"" of type '" "int""'"); | |
14196 | } | |
14197 | arg2 = static_cast< int >(val2); | |
14198 | } | |
14199 | if (obj2) { | |
093d3ff1 | 14200 | { |
0085ce49 RD |
14201 | arg3 = &temp3; |
14202 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 14203 | } |
0085ce49 RD |
14204 | } |
14205 | if (obj3) { | |
093d3ff1 | 14206 | { |
0085ce49 RD |
14207 | arg4 = &temp4; |
14208 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 14209 | } |
0085ce49 RD |
14210 | } |
14211 | if (obj4) { | |
14212 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14213 | if (!SWIG_IsOK(ecode5)) { | |
14214 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_VListBox" "', expected argument " "5"" of type '" "long""'"); | |
14215 | } | |
14216 | arg5 = static_cast< long >(val5); | |
14217 | } | |
14218 | if (obj5) { | |
d14a1e28 | 14219 | { |
0085ce49 RD |
14220 | arg6 = wxString_in_helper(obj5); |
14221 | if (arg6 == NULL) SWIG_fail; | |
14222 | temp6 = true; | |
14223 | } | |
14224 | } | |
14225 | { | |
14226 | if (!wxPyCheckForApp()) SWIG_fail; | |
14227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14228 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14229 | wxPyEndAllowThreads(__tstate); | |
14230 | if (PyErr_Occurred()) SWIG_fail; | |
14231 | } | |
14232 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVListBox, SWIG_POINTER_NEW | 0 ); | |
14233 | { | |
14234 | if (temp6) | |
14235 | delete arg6; | |
14236 | } | |
14237 | return resultobj; | |
14238 | fail: | |
14239 | { | |
14240 | if (temp6) | |
14241 | delete arg6; | |
14242 | } | |
14243 | return NULL; | |
d14a1e28 RD |
14244 | } |
14245 | ||
14246 | ||
0085ce49 RD |
14247 | SWIGINTERN PyObject *_wrap_new_PreVListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14248 | PyObject *resultobj = 0; | |
14249 | wxPyVListBox *result = 0 ; | |
14250 | ||
14251 | if (!SWIG_Python_UnpackTuple(args,"new_PreVListBox",0,0,0)) SWIG_fail; | |
14252 | { | |
14253 | if (!wxPyCheckForApp()) SWIG_fail; | |
14254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14255 | result = (wxPyVListBox *)new wxPyVListBox(); | |
14256 | wxPyEndAllowThreads(__tstate); | |
14257 | if (PyErr_Occurred()) SWIG_fail; | |
14258 | } | |
14259 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVListBox, SWIG_POINTER_OWN | 0 ); | |
14260 | return resultobj; | |
14261 | fail: | |
14262 | return NULL; | |
14263 | } | |
14264 | ||
14265 | ||
14266 | SWIGINTERN PyObject *_wrap_VListBox__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14267 | PyObject *resultobj = 0; | |
14268 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14269 | PyObject *arg2 = (PyObject *) 0 ; | |
14270 | PyObject *arg3 = (PyObject *) 0 ; | |
14271 | void *argp1 = 0 ; | |
14272 | int res1 = 0 ; | |
14273 | PyObject * obj0 = 0 ; | |
14274 | PyObject * obj1 = 0 ; | |
14275 | PyObject * obj2 = 0 ; | |
14276 | char * kwnames[] = { | |
14277 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14278 | }; | |
14279 | ||
14280 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14281 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14282 | if (!SWIG_IsOK(res1)) { | |
14283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14284 | } | |
14285 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14286 | arg2 = obj1; | |
14287 | arg3 = obj2; | |
14288 | { | |
14289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14290 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14291 | wxPyEndAllowThreads(__tstate); | |
14292 | if (PyErr_Occurred()) SWIG_fail; | |
14293 | } | |
14294 | resultobj = SWIG_Py_Void(); | |
14295 | return resultobj; | |
14296 | fail: | |
14297 | return NULL; | |
14298 | } | |
14299 | ||
14300 | ||
14301 | SWIGINTERN PyObject *_wrap_VListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14302 | PyObject *resultobj = 0; | |
14303 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14304 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14305 | int arg3 = (int) wxID_ANY ; | |
14306 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14307 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14308 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14309 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14310 | long arg6 = (long) 0 ; | |
14311 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
14312 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14313 | bool result; | |
14314 | void *argp1 = 0 ; | |
14315 | int res1 = 0 ; | |
14316 | void *argp2 = 0 ; | |
14317 | int res2 = 0 ; | |
14318 | int val3 ; | |
14319 | int ecode3 = 0 ; | |
14320 | wxPoint temp4 ; | |
14321 | wxSize temp5 ; | |
14322 | long val6 ; | |
14323 | int ecode6 = 0 ; | |
14324 | bool temp7 = false ; | |
14325 | PyObject * obj0 = 0 ; | |
14326 | PyObject * obj1 = 0 ; | |
14327 | PyObject * obj2 = 0 ; | |
14328 | PyObject * obj3 = 0 ; | |
14329 | PyObject * obj4 = 0 ; | |
14330 | PyObject * obj5 = 0 ; | |
14331 | PyObject * obj6 = 0 ; | |
14332 | char * kwnames[] = { | |
14333 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14334 | }; | |
14335 | ||
14336 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14337 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14338 | if (!SWIG_IsOK(res1)) { | |
14339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Create" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14340 | } | |
14341 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14342 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14343 | if (!SWIG_IsOK(res2)) { | |
14344 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14345 | } | |
14346 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14347 | if (obj2) { | |
14348 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14349 | if (!SWIG_IsOK(ecode3)) { | |
14350 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
14351 | } | |
14352 | arg3 = static_cast< int >(val3); | |
14353 | } | |
14354 | if (obj3) { | |
093d3ff1 | 14355 | { |
0085ce49 RD |
14356 | arg4 = &temp4; |
14357 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 14358 | } |
0085ce49 RD |
14359 | } |
14360 | if (obj4) { | |
d14a1e28 | 14361 | { |
0085ce49 RD |
14362 | arg5 = &temp5; |
14363 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 14364 | } |
0085ce49 RD |
14365 | } |
14366 | if (obj5) { | |
14367 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14368 | if (!SWIG_IsOK(ecode6)) { | |
14369 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VListBox_Create" "', expected argument " "6"" of type '" "long""'"); | |
14370 | } | |
14371 | arg6 = static_cast< long >(val6); | |
14372 | } | |
14373 | if (obj6) { | |
4f89f6a3 | 14374 | { |
0085ce49 RD |
14375 | arg7 = wxString_in_helper(obj6); |
14376 | if (arg7 == NULL) SWIG_fail; | |
14377 | temp7 = true; | |
4f89f6a3 | 14378 | } |
0085ce49 RD |
14379 | } |
14380 | { | |
14381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14382 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14383 | wxPyEndAllowThreads(__tstate); | |
14384 | if (PyErr_Occurred()) SWIG_fail; | |
14385 | } | |
14386 | { | |
14387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14388 | } | |
14389 | { | |
14390 | if (temp7) | |
14391 | delete arg7; | |
14392 | } | |
14393 | return resultobj; | |
14394 | fail: | |
14395 | { | |
14396 | if (temp7) | |
14397 | delete arg7; | |
14398 | } | |
14399 | return NULL; | |
d14a1e28 RD |
14400 | } |
14401 | ||
14402 | ||
0085ce49 RD |
14403 | SWIGINTERN PyObject *_wrap_VListBox_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14404 | PyObject *resultobj = 0; | |
14405 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14406 | size_t result; | |
14407 | void *argp1 = 0 ; | |
14408 | int res1 = 0 ; | |
14409 | PyObject *swig_obj[1] ; | |
14410 | ||
14411 | if (!args) SWIG_fail; | |
14412 | swig_obj[0] = args; | |
14413 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14414 | if (!SWIG_IsOK(res1)) { | |
14415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetItemCount" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14416 | } | |
14417 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14418 | { | |
14419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14420 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
14421 | wxPyEndAllowThreads(__tstate); | |
14422 | if (PyErr_Occurred()) SWIG_fail; | |
14423 | } | |
14424 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14425 | return resultobj; | |
14426 | fail: | |
14427 | return NULL; | |
d14a1e28 RD |
14428 | } |
14429 | ||
14430 | ||
0085ce49 RD |
14431 | SWIGINTERN PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14432 | PyObject *resultobj = 0; | |
14433 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14434 | bool result; | |
14435 | void *argp1 = 0 ; | |
14436 | int res1 = 0 ; | |
14437 | PyObject *swig_obj[1] ; | |
14438 | ||
14439 | if (!args) SWIG_fail; | |
14440 | swig_obj[0] = args; | |
14441 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14442 | if (!SWIG_IsOK(res1)) { | |
14443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_HasMultipleSelection" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14444 | } | |
14445 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14446 | { | |
14447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14448 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
14449 | wxPyEndAllowThreads(__tstate); | |
14450 | if (PyErr_Occurred()) SWIG_fail; | |
14451 | } | |
14452 | { | |
14453 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14454 | } | |
14455 | return resultobj; | |
14456 | fail: | |
14457 | return NULL; | |
d14a1e28 RD |
14458 | } |
14459 | ||
14460 | ||
0085ce49 RD |
14461 | SWIGINTERN PyObject *_wrap_VListBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14462 | PyObject *resultobj = 0; | |
14463 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14464 | int result; | |
14465 | void *argp1 = 0 ; | |
14466 | int res1 = 0 ; | |
14467 | PyObject *swig_obj[1] ; | |
14468 | ||
14469 | if (!args) SWIG_fail; | |
14470 | swig_obj[0] = args; | |
14471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14472 | if (!SWIG_IsOK(res1)) { | |
14473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelection" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14474 | } | |
14475 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14476 | { | |
14477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14478 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
14479 | wxPyEndAllowThreads(__tstate); | |
14480 | if (PyErr_Occurred()) SWIG_fail; | |
14481 | } | |
14482 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14483 | return resultobj; | |
14484 | fail: | |
14485 | return NULL; | |
14486 | } | |
14487 | ||
14488 | ||
14489 | SWIGINTERN PyObject *_wrap_VListBox_IsCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14490 | PyObject *resultobj = 0; | |
14491 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14492 | size_t arg2 ; | |
14493 | bool result; | |
14494 | void *argp1 = 0 ; | |
14495 | int res1 = 0 ; | |
14496 | size_t val2 ; | |
14497 | int ecode2 = 0 ; | |
14498 | PyObject * obj0 = 0 ; | |
14499 | PyObject * obj1 = 0 ; | |
14500 | char * kwnames[] = { | |
14501 | (char *) "self",(char *) "item", NULL | |
14502 | }; | |
14503 | ||
14504 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) SWIG_fail; | |
14505 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14506 | if (!SWIG_IsOK(res1)) { | |
14507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_IsCurrent" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14508 | } | |
14509 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14510 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14511 | if (!SWIG_IsOK(ecode2)) { | |
14512 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_IsCurrent" "', expected argument " "2"" of type '" "size_t""'"); | |
14513 | } | |
14514 | arg2 = static_cast< size_t >(val2); | |
14515 | { | |
14516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14517 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
14518 | wxPyEndAllowThreads(__tstate); | |
14519 | if (PyErr_Occurred()) SWIG_fail; | |
14520 | } | |
14521 | { | |
14522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14523 | } | |
14524 | return resultobj; | |
14525 | fail: | |
14526 | return NULL; | |
14527 | } | |
14528 | ||
14529 | ||
14530 | SWIGINTERN PyObject *_wrap_VListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14531 | PyObject *resultobj = 0; | |
14532 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14533 | size_t arg2 ; | |
14534 | bool result; | |
14535 | void *argp1 = 0 ; | |
14536 | int res1 = 0 ; | |
14537 | size_t val2 ; | |
14538 | int ecode2 = 0 ; | |
14539 | PyObject * obj0 = 0 ; | |
14540 | PyObject * obj1 = 0 ; | |
14541 | char * kwnames[] = { | |
14542 | (char *) "self",(char *) "item", NULL | |
14543 | }; | |
14544 | ||
14545 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
14546 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14547 | if (!SWIG_IsOK(res1)) { | |
14548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_IsSelected" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14549 | } | |
14550 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14551 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14552 | if (!SWIG_IsOK(ecode2)) { | |
14553 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_IsSelected" "', expected argument " "2"" of type '" "size_t""'"); | |
14554 | } | |
14555 | arg2 = static_cast< size_t >(val2); | |
14556 | { | |
14557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14558 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
14559 | wxPyEndAllowThreads(__tstate); | |
14560 | if (PyErr_Occurred()) SWIG_fail; | |
14561 | } | |
14562 | { | |
14563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14564 | } | |
14565 | return resultobj; | |
14566 | fail: | |
14567 | return NULL; | |
d14a1e28 RD |
14568 | } |
14569 | ||
14570 | ||
0085ce49 RD |
14571 | SWIGINTERN PyObject *_wrap_VListBox_GetSelectedCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14572 | PyObject *resultobj = 0; | |
14573 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14574 | size_t result; | |
14575 | void *argp1 = 0 ; | |
14576 | int res1 = 0 ; | |
14577 | PyObject *swig_obj[1] ; | |
14578 | ||
14579 | if (!args) SWIG_fail; | |
14580 | swig_obj[0] = args; | |
14581 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14582 | if (!SWIG_IsOK(res1)) { | |
14583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelectedCount" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14584 | } | |
14585 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14586 | { | |
14587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14588 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
14589 | wxPyEndAllowThreads(__tstate); | |
14590 | if (PyErr_Occurred()) SWIG_fail; | |
14591 | } | |
14592 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14593 | return resultobj; | |
14594 | fail: | |
14595 | return NULL; | |
d14a1e28 RD |
14596 | } |
14597 | ||
14598 | ||
0085ce49 RD |
14599 | SWIGINTERN PyObject *_wrap_VListBox_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14600 | PyObject *resultobj = 0; | |
14601 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14602 | PyObject *result = 0 ; | |
14603 | void *argp1 = 0 ; | |
14604 | int res1 = 0 ; | |
14605 | PyObject *swig_obj[1] ; | |
14606 | ||
14607 | if (!args) SWIG_fail; | |
14608 | swig_obj[0] = args; | |
14609 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14610 | if (!SWIG_IsOK(res1)) { | |
14611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetFirstSelected" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14612 | } | |
14613 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14614 | { | |
14615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14616 | result = (PyObject *)wxPyVListBox_GetFirstSelected(arg1); | |
14617 | wxPyEndAllowThreads(__tstate); | |
14618 | if (PyErr_Occurred()) SWIG_fail; | |
14619 | } | |
14620 | resultobj = result; | |
14621 | return resultobj; | |
14622 | fail: | |
14623 | return NULL; | |
14624 | } | |
14625 | ||
14626 | ||
14627 | SWIGINTERN PyObject *_wrap_VListBox_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14628 | PyObject *resultobj = 0; | |
14629 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14630 | unsigned long arg2 ; | |
14631 | PyObject *result = 0 ; | |
14632 | void *argp1 = 0 ; | |
14633 | int res1 = 0 ; | |
14634 | unsigned long val2 ; | |
14635 | int ecode2 = 0 ; | |
14636 | PyObject * obj0 = 0 ; | |
14637 | PyObject * obj1 = 0 ; | |
14638 | char * kwnames[] = { | |
14639 | (char *) "self",(char *) "cookie", NULL | |
14640 | }; | |
14641 | ||
14642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
14643 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14644 | if (!SWIG_IsOK(res1)) { | |
14645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetNextSelected" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14646 | } | |
14647 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14648 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
14649 | if (!SWIG_IsOK(ecode2)) { | |
14650 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_GetNextSelected" "', expected argument " "2"" of type '" "unsigned long""'"); | |
14651 | } | |
14652 | arg2 = static_cast< unsigned long >(val2); | |
14653 | { | |
14654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14655 | result = (PyObject *)wxPyVListBox_GetNextSelected(arg1,arg2); | |
14656 | wxPyEndAllowThreads(__tstate); | |
14657 | if (PyErr_Occurred()) SWIG_fail; | |
14658 | } | |
14659 | resultobj = result; | |
14660 | return resultobj; | |
14661 | fail: | |
14662 | return NULL; | |
d14a1e28 RD |
14663 | } |
14664 | ||
14665 | ||
0085ce49 RD |
14666 | SWIGINTERN PyObject *_wrap_VListBox_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14667 | PyObject *resultobj = 0; | |
14668 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14669 | wxPoint result; | |
14670 | void *argp1 = 0 ; | |
14671 | int res1 = 0 ; | |
14672 | PyObject *swig_obj[1] ; | |
14673 | ||
14674 | if (!args) SWIG_fail; | |
14675 | swig_obj[0] = args; | |
14676 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14677 | if (!SWIG_IsOK(res1)) { | |
14678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetMargins" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14679 | } | |
14680 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14681 | { | |
14682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14683 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
14684 | wxPyEndAllowThreads(__tstate); | |
14685 | if (PyErr_Occurred()) SWIG_fail; | |
14686 | } | |
14687 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
14688 | return resultobj; | |
14689 | fail: | |
14690 | return NULL; | |
d14a1e28 RD |
14691 | } |
14692 | ||
14693 | ||
0085ce49 RD |
14694 | SWIGINTERN PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14695 | PyObject *resultobj = 0; | |
14696 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14697 | wxColour *result = 0 ; | |
14698 | void *argp1 = 0 ; | |
14699 | int res1 = 0 ; | |
14700 | PyObject *swig_obj[1] ; | |
14701 | ||
14702 | if (!args) SWIG_fail; | |
14703 | swig_obj[0] = args; | |
14704 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14705 | if (!SWIG_IsOK(res1)) { | |
14706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelectionBackground" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14707 | } | |
14708 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14709 | { | |
14710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14711 | { |
0085ce49 RD |
14712 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); |
14713 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 14714 | } |
0085ce49 RD |
14715 | wxPyEndAllowThreads(__tstate); |
14716 | if (PyErr_Occurred()) SWIG_fail; | |
14717 | } | |
14718 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
14719 | return resultobj; | |
14720 | fail: | |
14721 | return NULL; | |
14722 | } | |
14723 | ||
14724 | ||
14725 | SWIGINTERN PyObject *_wrap_VListBox_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14726 | PyObject *resultobj = 0; | |
14727 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14728 | size_t arg2 ; | |
14729 | void *argp1 = 0 ; | |
14730 | int res1 = 0 ; | |
14731 | size_t val2 ; | |
14732 | int ecode2 = 0 ; | |
14733 | PyObject * obj0 = 0 ; | |
14734 | PyObject * obj1 = 0 ; | |
14735 | char * kwnames[] = { | |
14736 | (char *) "self",(char *) "count", NULL | |
14737 | }; | |
14738 | ||
14739 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
14740 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14741 | if (!SWIG_IsOK(res1)) { | |
14742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetItemCount" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14743 | } | |
14744 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14745 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14746 | if (!SWIG_IsOK(ecode2)) { | |
14747 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetItemCount" "', expected argument " "2"" of type '" "size_t""'"); | |
14748 | } | |
14749 | arg2 = static_cast< size_t >(val2); | |
14750 | { | |
14751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14752 | (arg1)->SetItemCount(arg2); | |
14753 | wxPyEndAllowThreads(__tstate); | |
14754 | if (PyErr_Occurred()) SWIG_fail; | |
14755 | } | |
14756 | resultobj = SWIG_Py_Void(); | |
14757 | return resultobj; | |
14758 | fail: | |
14759 | return NULL; | |
d14a1e28 RD |
14760 | } |
14761 | ||
14762 | ||
0085ce49 RD |
14763 | SWIGINTERN PyObject *_wrap_VListBox_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14764 | PyObject *resultobj = 0; | |
14765 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14766 | void *argp1 = 0 ; | |
14767 | int res1 = 0 ; | |
14768 | PyObject *swig_obj[1] ; | |
14769 | ||
14770 | if (!args) SWIG_fail; | |
14771 | swig_obj[0] = args; | |
14772 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14773 | if (!SWIG_IsOK(res1)) { | |
14774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Clear" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14775 | } | |
14776 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14777 | { | |
14778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14779 | (arg1)->Clear(); | |
14780 | wxPyEndAllowThreads(__tstate); | |
14781 | if (PyErr_Occurred()) SWIG_fail; | |
14782 | } | |
14783 | resultobj = SWIG_Py_Void(); | |
14784 | return resultobj; | |
14785 | fail: | |
14786 | return NULL; | |
14787 | } | |
14788 | ||
14789 | ||
14790 | SWIGINTERN PyObject *_wrap_VListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14791 | PyObject *resultobj = 0; | |
14792 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14793 | int arg2 ; | |
14794 | void *argp1 = 0 ; | |
14795 | int res1 = 0 ; | |
14796 | int val2 ; | |
14797 | int ecode2 = 0 ; | |
14798 | PyObject * obj0 = 0 ; | |
14799 | PyObject * obj1 = 0 ; | |
14800 | char * kwnames[] = { | |
14801 | (char *) "self",(char *) "selection", NULL | |
14802 | }; | |
14803 | ||
14804 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
14805 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14806 | if (!SWIG_IsOK(res1)) { | |
14807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetSelection" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14808 | } | |
14809 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14810 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14811 | if (!SWIG_IsOK(ecode2)) { | |
14812 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
14813 | } | |
14814 | arg2 = static_cast< int >(val2); | |
14815 | { | |
14816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14817 | (arg1)->SetSelection(arg2); | |
14818 | wxPyEndAllowThreads(__tstate); | |
14819 | if (PyErr_Occurred()) SWIG_fail; | |
14820 | } | |
14821 | resultobj = SWIG_Py_Void(); | |
14822 | return resultobj; | |
14823 | fail: | |
14824 | return NULL; | |
14825 | } | |
14826 | ||
14827 | ||
14828 | SWIGINTERN PyObject *_wrap_VListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14829 | PyObject *resultobj = 0; | |
14830 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14831 | size_t arg2 ; | |
14832 | bool arg3 = (bool) true ; | |
14833 | bool result; | |
14834 | void *argp1 = 0 ; | |
14835 | int res1 = 0 ; | |
14836 | size_t val2 ; | |
14837 | int ecode2 = 0 ; | |
14838 | bool val3 ; | |
14839 | int ecode3 = 0 ; | |
14840 | PyObject * obj0 = 0 ; | |
14841 | PyObject * obj1 = 0 ; | |
14842 | PyObject * obj2 = 0 ; | |
14843 | char * kwnames[] = { | |
14844 | (char *) "self",(char *) "item",(char *) "select", NULL | |
14845 | }; | |
14846 | ||
14847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14849 | if (!SWIG_IsOK(res1)) { | |
14850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Select" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14851 | } | |
14852 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14853 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14854 | if (!SWIG_IsOK(ecode2)) { | |
14855 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_Select" "', expected argument " "2"" of type '" "size_t""'"); | |
14856 | } | |
14857 | arg2 = static_cast< size_t >(val2); | |
14858 | if (obj2) { | |
14859 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
14860 | if (!SWIG_IsOK(ecode3)) { | |
14861 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_Select" "', expected argument " "3"" of type '" "bool""'"); | |
14862 | } | |
14863 | arg3 = static_cast< bool >(val3); | |
14864 | } | |
14865 | { | |
14866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14867 | result = (bool)(arg1)->Select(arg2,arg3); | |
14868 | wxPyEndAllowThreads(__tstate); | |
14869 | if (PyErr_Occurred()) SWIG_fail; | |
14870 | } | |
14871 | { | |
14872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14873 | } | |
14874 | return resultobj; | |
14875 | fail: | |
14876 | return NULL; | |
14877 | } | |
14878 | ||
14879 | ||
14880 | SWIGINTERN PyObject *_wrap_VListBox_SelectRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14881 | PyObject *resultobj = 0; | |
14882 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14883 | size_t arg2 ; | |
14884 | size_t arg3 ; | |
14885 | bool result; | |
14886 | void *argp1 = 0 ; | |
14887 | int res1 = 0 ; | |
14888 | size_t val2 ; | |
14889 | int ecode2 = 0 ; | |
14890 | size_t val3 ; | |
14891 | int ecode3 = 0 ; | |
14892 | PyObject * obj0 = 0 ; | |
14893 | PyObject * obj1 = 0 ; | |
14894 | PyObject * obj2 = 0 ; | |
14895 | char * kwnames[] = { | |
14896 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
14897 | }; | |
14898 | ||
14899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14901 | if (!SWIG_IsOK(res1)) { | |
14902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SelectRange" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14903 | } | |
14904 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14905 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14906 | if (!SWIG_IsOK(ecode2)) { | |
14907 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SelectRange" "', expected argument " "2"" of type '" "size_t""'"); | |
14908 | } | |
14909 | arg2 = static_cast< size_t >(val2); | |
14910 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
14911 | if (!SWIG_IsOK(ecode3)) { | |
14912 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_SelectRange" "', expected argument " "3"" of type '" "size_t""'"); | |
14913 | } | |
14914 | arg3 = static_cast< size_t >(val3); | |
14915 | { | |
14916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14917 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
14918 | wxPyEndAllowThreads(__tstate); | |
14919 | if (PyErr_Occurred()) SWIG_fail; | |
14920 | } | |
14921 | { | |
14922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14923 | } | |
14924 | return resultobj; | |
14925 | fail: | |
14926 | return NULL; | |
14927 | } | |
14928 | ||
14929 | ||
14930 | SWIGINTERN PyObject *_wrap_VListBox_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14931 | PyObject *resultobj = 0; | |
14932 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14933 | size_t arg2 ; | |
14934 | void *argp1 = 0 ; | |
14935 | int res1 = 0 ; | |
14936 | size_t val2 ; | |
14937 | int ecode2 = 0 ; | |
14938 | PyObject * obj0 = 0 ; | |
14939 | PyObject * obj1 = 0 ; | |
14940 | char * kwnames[] = { | |
14941 | (char *) "self",(char *) "item", NULL | |
14942 | }; | |
14943 | ||
14944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
14945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14946 | if (!SWIG_IsOK(res1)) { | |
14947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Toggle" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14948 | } | |
14949 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14950 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14951 | if (!SWIG_IsOK(ecode2)) { | |
14952 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_Toggle" "', expected argument " "2"" of type '" "size_t""'"); | |
14953 | } | |
14954 | arg2 = static_cast< size_t >(val2); | |
14955 | { | |
14956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14957 | (arg1)->Toggle(arg2); | |
14958 | wxPyEndAllowThreads(__tstate); | |
14959 | if (PyErr_Occurred()) SWIG_fail; | |
14960 | } | |
14961 | resultobj = SWIG_Py_Void(); | |
14962 | return resultobj; | |
14963 | fail: | |
14964 | return NULL; | |
d14a1e28 RD |
14965 | } |
14966 | ||
14967 | ||
0085ce49 RD |
14968 | SWIGINTERN PyObject *_wrap_VListBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14969 | PyObject *resultobj = 0; | |
14970 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14971 | bool result; | |
14972 | void *argp1 = 0 ; | |
14973 | int res1 = 0 ; | |
14974 | PyObject *swig_obj[1] ; | |
14975 | ||
14976 | if (!args) SWIG_fail; | |
14977 | swig_obj[0] = args; | |
14978 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14979 | if (!SWIG_IsOK(res1)) { | |
14980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SelectAll" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14981 | } | |
14982 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14983 | { | |
14984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14985 | result = (bool)(arg1)->SelectAll(); | |
14986 | wxPyEndAllowThreads(__tstate); | |
14987 | if (PyErr_Occurred()) SWIG_fail; | |
14988 | } | |
14989 | { | |
14990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14991 | } | |
14992 | return resultobj; | |
14993 | fail: | |
14994 | return NULL; | |
d14a1e28 RD |
14995 | } |
14996 | ||
14997 | ||
0085ce49 RD |
14998 | SWIGINTERN PyObject *_wrap_VListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14999 | PyObject *resultobj = 0; | |
15000 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15001 | bool result; | |
15002 | void *argp1 = 0 ; | |
15003 | int res1 = 0 ; | |
15004 | PyObject *swig_obj[1] ; | |
15005 | ||
15006 | if (!args) SWIG_fail; | |
15007 | swig_obj[0] = args; | |
15008 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15009 | if (!SWIG_IsOK(res1)) { | |
15010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_DeselectAll" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15011 | } | |
15012 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15013 | { | |
15014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15015 | result = (bool)(arg1)->DeselectAll(); | |
15016 | wxPyEndAllowThreads(__tstate); | |
15017 | if (PyErr_Occurred()) SWIG_fail; | |
15018 | } | |
15019 | { | |
15020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15021 | } | |
15022 | return resultobj; | |
15023 | fail: | |
15024 | return NULL; | |
15025 | } | |
15026 | ||
15027 | ||
15028 | SWIGINTERN PyObject *_wrap_VListBox_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15029 | PyObject *resultobj = 0; | |
15030 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15031 | wxPoint *arg2 = 0 ; | |
15032 | void *argp1 = 0 ; | |
15033 | int res1 = 0 ; | |
15034 | wxPoint temp2 ; | |
15035 | PyObject * obj0 = 0 ; | |
15036 | PyObject * obj1 = 0 ; | |
15037 | char * kwnames[] = { | |
15038 | (char *) "self",(char *) "pt", NULL | |
15039 | }; | |
15040 | ||
15041 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
15042 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15043 | if (!SWIG_IsOK(res1)) { | |
15044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetMargins" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15045 | } | |
15046 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15047 | { | |
15048 | arg2 = &temp2; | |
15049 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15050 | } | |
15051 | { | |
15052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15053 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
15054 | wxPyEndAllowThreads(__tstate); | |
15055 | if (PyErr_Occurred()) SWIG_fail; | |
15056 | } | |
15057 | resultobj = SWIG_Py_Void(); | |
15058 | return resultobj; | |
15059 | fail: | |
15060 | return NULL; | |
15061 | } | |
15062 | ||
15063 | ||
15064 | SWIGINTERN PyObject *_wrap_VListBox_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15065 | PyObject *resultobj = 0; | |
15066 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15067 | int arg2 ; | |
15068 | int arg3 ; | |
15069 | void *argp1 = 0 ; | |
15070 | int res1 = 0 ; | |
15071 | int val2 ; | |
15072 | int ecode2 = 0 ; | |
15073 | int val3 ; | |
15074 | int ecode3 = 0 ; | |
15075 | PyObject * obj0 = 0 ; | |
15076 | PyObject * obj1 = 0 ; | |
15077 | PyObject * obj2 = 0 ; | |
15078 | char * kwnames[] = { | |
15079 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15080 | }; | |
15081 | ||
15082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15084 | if (!SWIG_IsOK(res1)) { | |
15085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetMarginsXY" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15086 | } | |
15087 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15088 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15089 | if (!SWIG_IsOK(ecode2)) { | |
15090 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetMarginsXY" "', expected argument " "2"" of type '" "int""'"); | |
15091 | } | |
15092 | arg2 = static_cast< int >(val2); | |
15093 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15094 | if (!SWIG_IsOK(ecode3)) { | |
15095 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_SetMarginsXY" "', expected argument " "3"" of type '" "int""'"); | |
15096 | } | |
15097 | arg3 = static_cast< int >(val3); | |
15098 | { | |
15099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15100 | (arg1)->SetMargins(arg2,arg3); | |
15101 | wxPyEndAllowThreads(__tstate); | |
15102 | if (PyErr_Occurred()) SWIG_fail; | |
15103 | } | |
15104 | resultobj = SWIG_Py_Void(); | |
15105 | return resultobj; | |
15106 | fail: | |
15107 | return NULL; | |
15108 | } | |
15109 | ||
15110 | ||
15111 | SWIGINTERN PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15112 | PyObject *resultobj = 0; | |
15113 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15114 | wxColour *arg2 = 0 ; | |
15115 | void *argp1 = 0 ; | |
15116 | int res1 = 0 ; | |
15117 | wxColour temp2 ; | |
15118 | PyObject * obj0 = 0 ; | |
15119 | PyObject * obj1 = 0 ; | |
15120 | char * kwnames[] = { | |
15121 | (char *) "self",(char *) "col", NULL | |
15122 | }; | |
15123 | ||
15124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
15125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15126 | if (!SWIG_IsOK(res1)) { | |
15127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetSelectionBackground" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15128 | } | |
15129 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15130 | { | |
15131 | arg2 = &temp2; | |
15132 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15133 | } | |
15134 | { | |
15135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15136 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
15137 | wxPyEndAllowThreads(__tstate); | |
15138 | if (PyErr_Occurred()) SWIG_fail; | |
15139 | } | |
15140 | resultobj = SWIG_Py_Void(); | |
15141 | return resultobj; | |
15142 | fail: | |
15143 | return NULL; | |
15144 | } | |
15145 | ||
15146 | ||
15147 | SWIGINTERN PyObject *VListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15148 | PyObject *obj; | |
15149 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15150 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyVListBox, SWIG_NewClientData(obj)); | |
15151 | return SWIG_Py_Void(); | |
15152 | } | |
15153 | ||
15154 | SWIGINTERN PyObject *VListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15155 | return SWIG_Python_InitShadowInstance(args); | |
15156 | } | |
15157 | ||
15158 | SWIGINTERN PyObject *_wrap_new_HtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15159 | PyObject *resultobj = 0; | |
15160 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15161 | int arg2 = (int) wxID_ANY ; | |
15162 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15163 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15164 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15165 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15166 | long arg5 = (long) 0 ; | |
15167 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
15168 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15169 | wxPyHtmlListBox *result = 0 ; | |
15170 | void *argp1 = 0 ; | |
15171 | int res1 = 0 ; | |
15172 | int val2 ; | |
15173 | int ecode2 = 0 ; | |
15174 | wxPoint temp3 ; | |
15175 | wxSize temp4 ; | |
15176 | long val5 ; | |
15177 | int ecode5 = 0 ; | |
15178 | bool temp6 = false ; | |
15179 | PyObject * obj0 = 0 ; | |
15180 | PyObject * obj1 = 0 ; | |
15181 | PyObject * obj2 = 0 ; | |
15182 | PyObject * obj3 = 0 ; | |
15183 | PyObject * obj4 = 0 ; | |
15184 | PyObject * obj5 = 0 ; | |
15185 | char * kwnames[] = { | |
15186 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15187 | }; | |
15188 | ||
15189 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
15190 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15191 | if (!SWIG_IsOK(res1)) { | |
15192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HtmlListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
15193 | } | |
15194 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
15195 | if (obj1) { | |
15196 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15197 | if (!SWIG_IsOK(ecode2)) { | |
15198 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HtmlListBox" "', expected argument " "2"" of type '" "int""'"); | |
15199 | } | |
15200 | arg2 = static_cast< int >(val2); | |
15201 | } | |
15202 | if (obj2) { | |
093d3ff1 | 15203 | { |
0085ce49 RD |
15204 | arg3 = &temp3; |
15205 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 15206 | } |
0085ce49 RD |
15207 | } |
15208 | if (obj3) { | |
d14a1e28 | 15209 | { |
0085ce49 RD |
15210 | arg4 = &temp4; |
15211 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 15212 | } |
0085ce49 RD |
15213 | } |
15214 | if (obj4) { | |
15215 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
15216 | if (!SWIG_IsOK(ecode5)) { | |
15217 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_HtmlListBox" "', expected argument " "5"" of type '" "long""'"); | |
15218 | } | |
15219 | arg5 = static_cast< long >(val5); | |
15220 | } | |
15221 | if (obj5) { | |
d14a1e28 | 15222 | { |
0085ce49 RD |
15223 | arg6 = wxString_in_helper(obj5); |
15224 | if (arg6 == NULL) SWIG_fail; | |
15225 | temp6 = true; | |
15226 | } | |
15227 | } | |
15228 | { | |
15229 | if (!wxPyCheckForApp()) SWIG_fail; | |
15230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15231 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15232 | wxPyEndAllowThreads(__tstate); | |
15233 | if (PyErr_Occurred()) SWIG_fail; | |
15234 | } | |
15235 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyHtmlListBox, SWIG_POINTER_NEW | 0 ); | |
15236 | { | |
15237 | if (temp6) | |
15238 | delete arg6; | |
15239 | } | |
15240 | return resultobj; | |
15241 | fail: | |
15242 | { | |
15243 | if (temp6) | |
15244 | delete arg6; | |
15245 | } | |
15246 | return NULL; | |
d14a1e28 RD |
15247 | } |
15248 | ||
15249 | ||
0085ce49 RD |
15250 | SWIGINTERN PyObject *_wrap_new_PreHtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15251 | PyObject *resultobj = 0; | |
15252 | wxPyHtmlListBox *result = 0 ; | |
15253 | ||
15254 | if (!SWIG_Python_UnpackTuple(args,"new_PreHtmlListBox",0,0,0)) SWIG_fail; | |
15255 | { | |
15256 | if (!wxPyCheckForApp()) SWIG_fail; | |
15257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15258 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
15259 | wxPyEndAllowThreads(__tstate); | |
15260 | if (PyErr_Occurred()) SWIG_fail; | |
15261 | } | |
15262 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyHtmlListBox, SWIG_POINTER_OWN | 0 ); | |
15263 | return resultobj; | |
15264 | fail: | |
15265 | return NULL; | |
15266 | } | |
15267 | ||
15268 | ||
15269 | SWIGINTERN PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15270 | PyObject *resultobj = 0; | |
15271 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15272 | PyObject *arg2 = (PyObject *) 0 ; | |
15273 | PyObject *arg3 = (PyObject *) 0 ; | |
15274 | void *argp1 = 0 ; | |
15275 | int res1 = 0 ; | |
15276 | PyObject * obj0 = 0 ; | |
15277 | PyObject * obj1 = 0 ; | |
15278 | PyObject * obj2 = 0 ; | |
15279 | char * kwnames[] = { | |
15280 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15281 | }; | |
15282 | ||
15283 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15285 | if (!SWIG_IsOK(res1)) { | |
15286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15287 | } | |
15288 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15289 | arg2 = obj1; | |
15290 | arg3 = obj2; | |
15291 | { | |
15292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15293 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15294 | wxPyEndAllowThreads(__tstate); | |
15295 | if (PyErr_Occurred()) SWIG_fail; | |
15296 | } | |
15297 | resultobj = SWIG_Py_Void(); | |
15298 | return resultobj; | |
15299 | fail: | |
15300 | return NULL; | |
15301 | } | |
15302 | ||
15303 | ||
15304 | SWIGINTERN PyObject *_wrap_HtmlListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15305 | PyObject *resultobj = 0; | |
15306 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15307 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15308 | int arg3 = (int) wxID_ANY ; | |
15309 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15310 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15311 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15312 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15313 | long arg6 = (long) 0 ; | |
15314 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
15315 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15316 | bool result; | |
15317 | void *argp1 = 0 ; | |
15318 | int res1 = 0 ; | |
15319 | void *argp2 = 0 ; | |
15320 | int res2 = 0 ; | |
15321 | int val3 ; | |
15322 | int ecode3 = 0 ; | |
15323 | wxPoint temp4 ; | |
15324 | wxSize temp5 ; | |
15325 | long val6 ; | |
15326 | int ecode6 = 0 ; | |
15327 | bool temp7 = false ; | |
15328 | PyObject * obj0 = 0 ; | |
15329 | PyObject * obj1 = 0 ; | |
15330 | PyObject * obj2 = 0 ; | |
15331 | PyObject * obj3 = 0 ; | |
15332 | PyObject * obj4 = 0 ; | |
15333 | PyObject * obj5 = 0 ; | |
15334 | PyObject * obj6 = 0 ; | |
15335 | char * kwnames[] = { | |
15336 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15337 | }; | |
15338 | ||
15339 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
15340 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15341 | if (!SWIG_IsOK(res1)) { | |
15342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_Create" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15343 | } | |
15344 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15345 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15346 | if (!SWIG_IsOK(res2)) { | |
15347 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HtmlListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
15348 | } | |
15349 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
15350 | if (obj2) { | |
15351 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15352 | if (!SWIG_IsOK(ecode3)) { | |
15353 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HtmlListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
15354 | } | |
15355 | arg3 = static_cast< int >(val3); | |
15356 | } | |
15357 | if (obj3) { | |
093d3ff1 | 15358 | { |
0085ce49 RD |
15359 | arg4 = &temp4; |
15360 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 15361 | } |
0085ce49 RD |
15362 | } |
15363 | if (obj4) { | |
d14a1e28 | 15364 | { |
0085ce49 RD |
15365 | arg5 = &temp5; |
15366 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 15367 | } |
0085ce49 RD |
15368 | } |
15369 | if (obj5) { | |
15370 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
15371 | if (!SWIG_IsOK(ecode6)) { | |
15372 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "HtmlListBox_Create" "', expected argument " "6"" of type '" "long""'"); | |
15373 | } | |
15374 | arg6 = static_cast< long >(val6); | |
15375 | } | |
15376 | if (obj6) { | |
093d3ff1 | 15377 | { |
0085ce49 RD |
15378 | arg7 = wxString_in_helper(obj6); |
15379 | if (arg7 == NULL) SWIG_fail; | |
15380 | temp7 = true; | |
093d3ff1 | 15381 | } |
0085ce49 RD |
15382 | } |
15383 | { | |
15384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15385 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15386 | wxPyEndAllowThreads(__tstate); | |
15387 | if (PyErr_Occurred()) SWIG_fail; | |
15388 | } | |
15389 | { | |
15390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15391 | } | |
15392 | { | |
15393 | if (temp7) | |
15394 | delete arg7; | |
15395 | } | |
15396 | return resultobj; | |
15397 | fail: | |
15398 | { | |
15399 | if (temp7) | |
15400 | delete arg7; | |
15401 | } | |
15402 | return NULL; | |
15403 | } | |
15404 | ||
15405 | ||
15406 | SWIGINTERN PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15407 | PyObject *resultobj = 0; | |
15408 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15409 | size_t arg2 ; | |
15410 | void *argp1 = 0 ; | |
15411 | int res1 = 0 ; | |
15412 | size_t val2 ; | |
15413 | int ecode2 = 0 ; | |
15414 | PyObject * obj0 = 0 ; | |
15415 | PyObject * obj1 = 0 ; | |
15416 | char * kwnames[] = { | |
15417 | (char *) "self",(char *) "count", NULL | |
15418 | }; | |
15419 | ||
15420 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
15421 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15422 | if (!SWIG_IsOK(res1)) { | |
15423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_SetItemCount" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15424 | } | |
15425 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15426 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15427 | if (!SWIG_IsOK(ecode2)) { | |
15428 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HtmlListBox_SetItemCount" "', expected argument " "2"" of type '" "size_t""'"); | |
15429 | } | |
15430 | arg2 = static_cast< size_t >(val2); | |
15431 | { | |
15432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15433 | (arg1)->SetItemCount(arg2); | |
15434 | wxPyEndAllowThreads(__tstate); | |
15435 | if (PyErr_Occurred()) SWIG_fail; | |
15436 | } | |
15437 | resultobj = SWIG_Py_Void(); | |
15438 | return resultobj; | |
15439 | fail: | |
15440 | return NULL; | |
d14a1e28 RD |
15441 | } |
15442 | ||
15443 | ||
0085ce49 RD |
15444 | SWIGINTERN PyObject *_wrap_HtmlListBox_GetFileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15445 | PyObject *resultobj = 0; | |
15446 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15447 | wxFileSystem *result = 0 ; | |
15448 | void *argp1 = 0 ; | |
15449 | int res1 = 0 ; | |
15450 | PyObject *swig_obj[1] ; | |
15451 | ||
15452 | if (!args) SWIG_fail; | |
15453 | swig_obj[0] = args; | |
15454 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15455 | if (!SWIG_IsOK(res1)) { | |
15456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_GetFileSystem" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15457 | } | |
15458 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15459 | { | |
15460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15461 | { |
0085ce49 RD |
15462 | wxFileSystem &_result_ref = (arg1)->GetFileSystem(); |
15463 | result = (wxFileSystem *) &_result_ref; | |
994141e6 | 15464 | } |
0085ce49 RD |
15465 | wxPyEndAllowThreads(__tstate); |
15466 | if (PyErr_Occurred()) SWIG_fail; | |
15467 | } | |
15468 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystem, 0 | 0 ); | |
15469 | return resultobj; | |
15470 | fail: | |
15471 | return NULL; | |
d14a1e28 RD |
15472 | } |
15473 | ||
15474 | ||
0085ce49 RD |
15475 | SWIGINTERN PyObject *HtmlListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15476 | PyObject *obj; | |
15477 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15478 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyHtmlListBox, SWIG_NewClientData(obj)); | |
15479 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15480 | } |
15481 | ||
0085ce49 RD |
15482 | SWIGINTERN PyObject *HtmlListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15483 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15484 | } |
15485 | ||
0085ce49 RD |
15486 | SWIGINTERN PyObject *_wrap_new_TaskBarIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15487 | PyObject *resultobj = 0; | |
15488 | wxPyTaskBarIcon *result = 0 ; | |
15489 | ||
15490 | if (!SWIG_Python_UnpackTuple(args,"new_TaskBarIcon",0,0,0)) SWIG_fail; | |
15491 | { | |
15492 | if (!wxPyCheckForApp()) SWIG_fail; | |
15493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15494 | result = (wxPyTaskBarIcon *)new wxPyTaskBarIcon(); | |
15495 | wxPyEndAllowThreads(__tstate); | |
15496 | if (PyErr_Occurred()) SWIG_fail; | |
15497 | } | |
15498 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_NEW | 0 ); | |
15499 | return resultobj; | |
15500 | fail: | |
15501 | return NULL; | |
d14a1e28 RD |
15502 | } |
15503 | ||
15504 | ||
0085ce49 RD |
15505 | SWIGINTERN PyObject *_wrap_delete_TaskBarIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15506 | PyObject *resultobj = 0; | |
15507 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15508 | void *argp1 = 0 ; | |
15509 | int res1 = 0 ; | |
15510 | PyObject *swig_obj[1] ; | |
15511 | ||
15512 | if (!args) SWIG_fail; | |
15513 | swig_obj[0] = args; | |
15514 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_DISOWN | 0 ); | |
15515 | if (!SWIG_IsOK(res1)) { | |
15516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TaskBarIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15517 | } | |
15518 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15519 | { | |
15520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15521 | delete arg1; | |
15522 | ||
15523 | wxPyEndAllowThreads(__tstate); | |
15524 | if (PyErr_Occurred()) SWIG_fail; | |
15525 | } | |
15526 | resultobj = SWIG_Py_Void(); | |
15527 | return resultobj; | |
15528 | fail: | |
15529 | return NULL; | |
15530 | } | |
15531 | ||
15532 | ||
15533 | SWIGINTERN PyObject *_wrap_TaskBarIcon__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15534 | PyObject *resultobj = 0; | |
15535 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15536 | PyObject *arg2 = (PyObject *) 0 ; | |
15537 | PyObject *arg3 = (PyObject *) 0 ; | |
15538 | int arg4 ; | |
15539 | void *argp1 = 0 ; | |
15540 | int res1 = 0 ; | |
15541 | int val4 ; | |
15542 | int ecode4 = 0 ; | |
15543 | PyObject * obj0 = 0 ; | |
15544 | PyObject * obj1 = 0 ; | |
15545 | PyObject * obj2 = 0 ; | |
15546 | PyObject * obj3 = 0 ; | |
15547 | char * kwnames[] = { | |
15548 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
15549 | }; | |
15550 | ||
15551 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TaskBarIcon__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15552 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15553 | if (!SWIG_IsOK(res1)) { | |
15554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15555 | } | |
15556 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15557 | arg2 = obj1; | |
15558 | arg3 = obj2; | |
15559 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15560 | if (!SWIG_IsOK(ecode4)) { | |
15561 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TaskBarIcon__setCallbackInfo" "', expected argument " "4"" of type '" "int""'"); | |
15562 | } | |
15563 | arg4 = static_cast< int >(val4); | |
15564 | { | |
15565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15566 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
15567 | wxPyEndAllowThreads(__tstate); | |
15568 | if (PyErr_Occurred()) SWIG_fail; | |
15569 | } | |
15570 | resultobj = SWIG_Py_Void(); | |
15571 | return resultobj; | |
15572 | fail: | |
15573 | return NULL; | |
d14a1e28 RD |
15574 | } |
15575 | ||
15576 | ||
0085ce49 RD |
15577 | SWIGINTERN PyObject *_wrap_TaskBarIcon_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15578 | PyObject *resultobj = 0; | |
15579 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15580 | void *argp1 = 0 ; | |
15581 | int res1 = 0 ; | |
15582 | PyObject *swig_obj[1] ; | |
15583 | ||
15584 | if (!args) SWIG_fail; | |
15585 | swig_obj[0] = args; | |
15586 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15587 | if (!SWIG_IsOK(res1)) { | |
15588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_Destroy" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15589 | } | |
15590 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15591 | { | |
15592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15593 | wxPyTaskBarIcon_Destroy(arg1); | |
15594 | wxPyEndAllowThreads(__tstate); | |
15595 | if (PyErr_Occurred()) SWIG_fail; | |
15596 | } | |
15597 | resultobj = SWIG_Py_Void(); | |
15598 | return resultobj; | |
15599 | fail: | |
15600 | return NULL; | |
d14a1e28 RD |
15601 | } |
15602 | ||
15603 | ||
0085ce49 RD |
15604 | SWIGINTERN PyObject *_wrap_TaskBarIcon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15605 | PyObject *resultobj = 0; | |
15606 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15607 | bool result; | |
15608 | void *argp1 = 0 ; | |
15609 | int res1 = 0 ; | |
15610 | PyObject *swig_obj[1] ; | |
15611 | ||
15612 | if (!args) SWIG_fail; | |
15613 | swig_obj[0] = args; | |
15614 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15615 | if (!SWIG_IsOK(res1)) { | |
15616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_IsOk" "', expected argument " "1"" of type '" "wxPyTaskBarIcon const *""'"); | |
15617 | } | |
15618 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15619 | { | |
15620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15621 | result = (bool)((wxPyTaskBarIcon const *)arg1)->IsOk(); | |
15622 | wxPyEndAllowThreads(__tstate); | |
15623 | if (PyErr_Occurred()) SWIG_fail; | |
15624 | } | |
15625 | { | |
15626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15627 | } | |
15628 | return resultobj; | |
15629 | fail: | |
15630 | return NULL; | |
d14a1e28 RD |
15631 | } |
15632 | ||
15633 | ||
0085ce49 RD |
15634 | SWIGINTERN PyObject *_wrap_TaskBarIcon_IsIconInstalled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15635 | PyObject *resultobj = 0; | |
15636 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15637 | bool result; | |
15638 | void *argp1 = 0 ; | |
15639 | int res1 = 0 ; | |
15640 | PyObject *swig_obj[1] ; | |
15641 | ||
15642 | if (!args) SWIG_fail; | |
15643 | swig_obj[0] = args; | |
15644 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15645 | if (!SWIG_IsOK(res1)) { | |
15646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_IsIconInstalled" "', expected argument " "1"" of type '" "wxPyTaskBarIcon const *""'"); | |
15647 | } | |
15648 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15649 | { | |
15650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15651 | result = (bool)((wxPyTaskBarIcon const *)arg1)->IsIconInstalled(); | |
15652 | wxPyEndAllowThreads(__tstate); | |
15653 | if (PyErr_Occurred()) SWIG_fail; | |
15654 | } | |
15655 | { | |
15656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15657 | } | |
15658 | return resultobj; | |
15659 | fail: | |
15660 | return NULL; | |
15661 | } | |
15662 | ||
15663 | ||
15664 | SWIGINTERN PyObject *_wrap_TaskBarIcon_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15665 | PyObject *resultobj = 0; | |
15666 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15667 | wxIcon *arg2 = 0 ; | |
15668 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15669 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15670 | bool result; | |
15671 | void *argp1 = 0 ; | |
15672 | int res1 = 0 ; | |
15673 | void *argp2 = 0 ; | |
15674 | int res2 = 0 ; | |
15675 | bool temp3 = false ; | |
15676 | PyObject * obj0 = 0 ; | |
15677 | PyObject * obj1 = 0 ; | |
15678 | PyObject * obj2 = 0 ; | |
15679 | char * kwnames[] = { | |
15680 | (char *) "self",(char *) "icon",(char *) "tooltip", NULL | |
15681 | }; | |
15682 | ||
15683 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TaskBarIcon_SetIcon",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15684 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15685 | if (!SWIG_IsOK(res1)) { | |
15686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_SetIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15687 | } | |
15688 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15689 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
15690 | if (!SWIG_IsOK(res2)) { | |
15691 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TaskBarIcon_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
15692 | } | |
15693 | if (!argp2) { | |
15694 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TaskBarIcon_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
15695 | } | |
15696 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
15697 | if (obj2) { | |
093d3ff1 | 15698 | { |
0085ce49 RD |
15699 | arg3 = wxString_in_helper(obj2); |
15700 | if (arg3 == NULL) SWIG_fail; | |
15701 | temp3 = true; | |
093d3ff1 | 15702 | } |
0085ce49 RD |
15703 | } |
15704 | { | |
15705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15706 | result = (bool)(arg1)->SetIcon((wxIcon const &)*arg2,(wxString const &)*arg3); | |
15707 | wxPyEndAllowThreads(__tstate); | |
15708 | if (PyErr_Occurred()) SWIG_fail; | |
15709 | } | |
15710 | { | |
15711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15712 | } | |
15713 | { | |
15714 | if (temp3) | |
15715 | delete arg3; | |
15716 | } | |
15717 | return resultobj; | |
15718 | fail: | |
15719 | { | |
15720 | if (temp3) | |
15721 | delete arg3; | |
15722 | } | |
15723 | return NULL; | |
d14a1e28 RD |
15724 | } |
15725 | ||
15726 | ||
0085ce49 RD |
15727 | SWIGINTERN PyObject *_wrap_TaskBarIcon_RemoveIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15728 | PyObject *resultobj = 0; | |
15729 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15730 | bool result; | |
15731 | void *argp1 = 0 ; | |
15732 | int res1 = 0 ; | |
15733 | PyObject *swig_obj[1] ; | |
15734 | ||
15735 | if (!args) SWIG_fail; | |
15736 | swig_obj[0] = args; | |
15737 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15738 | if (!SWIG_IsOK(res1)) { | |
15739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_RemoveIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15740 | } | |
15741 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15742 | { | |
15743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15744 | result = (bool)(arg1)->RemoveIcon(); | |
15745 | wxPyEndAllowThreads(__tstate); | |
15746 | if (PyErr_Occurred()) SWIG_fail; | |
15747 | } | |
15748 | { | |
15749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15750 | } | |
15751 | return resultobj; | |
15752 | fail: | |
15753 | return NULL; | |
15754 | } | |
15755 | ||
15756 | ||
15757 | SWIGINTERN PyObject *_wrap_TaskBarIcon_PopupMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15758 | PyObject *resultobj = 0; | |
15759 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15760 | wxMenu *arg2 = (wxMenu *) 0 ; | |
15761 | bool result; | |
15762 | void *argp1 = 0 ; | |
15763 | int res1 = 0 ; | |
15764 | void *argp2 = 0 ; | |
15765 | int res2 = 0 ; | |
15766 | PyObject * obj0 = 0 ; | |
15767 | PyObject * obj1 = 0 ; | |
15768 | char * kwnames[] = { | |
15769 | (char *) "self",(char *) "menu", NULL | |
15770 | }; | |
15771 | ||
15772 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TaskBarIcon_PopupMenu",kwnames,&obj0,&obj1)) SWIG_fail; | |
15773 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15774 | if (!SWIG_IsOK(res1)) { | |
15775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_PopupMenu" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15776 | } | |
15777 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15778 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
15779 | if (!SWIG_IsOK(res2)) { | |
15780 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TaskBarIcon_PopupMenu" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
15781 | } | |
15782 | arg2 = reinterpret_cast< wxMenu * >(argp2); | |
15783 | { | |
15784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15785 | result = (bool)(arg1)->PopupMenu(arg2); | |
15786 | wxPyEndAllowThreads(__tstate); | |
15787 | if (PyErr_Occurred()) SWIG_fail; | |
15788 | } | |
15789 | { | |
15790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15791 | } | |
15792 | return resultobj; | |
15793 | fail: | |
15794 | return NULL; | |
d14a1e28 RD |
15795 | } |
15796 | ||
15797 | ||
0085ce49 RD |
15798 | SWIGINTERN PyObject *TaskBarIcon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15799 | PyObject *obj; | |
15800 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15801 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTaskBarIcon, SWIG_NewClientData(obj)); | |
15802 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15803 | } |
15804 | ||
0085ce49 RD |
15805 | SWIGINTERN PyObject *TaskBarIcon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15806 | return SWIG_Python_InitShadowInstance(args); | |
15807 | } | |
d14a1e28 | 15808 | |
0085ce49 RD |
15809 | SWIGINTERN PyObject *_wrap_new_TaskBarIconEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15810 | PyObject *resultobj = 0; | |
15811 | wxEventType arg1 ; | |
15812 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
15813 | wxTaskBarIconEvent *result = 0 ; | |
15814 | int val1 ; | |
15815 | int ecode1 = 0 ; | |
15816 | void *argp2 = 0 ; | |
15817 | int res2 = 0 ; | |
15818 | PyObject * obj0 = 0 ; | |
15819 | PyObject * obj1 = 0 ; | |
15820 | char * kwnames[] = { | |
15821 | (char *) "evtType",(char *) "tbIcon", NULL | |
15822 | }; | |
15823 | ||
15824 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
15825 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15826 | if (!SWIG_IsOK(ecode1)) { | |
15827 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TaskBarIconEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
15828 | } | |
15829 | arg1 = static_cast< wxEventType >(val1); | |
15830 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTaskBarIcon, 0 | 0 ); | |
15831 | if (!SWIG_IsOK(res2)) { | |
15832 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TaskBarIconEvent" "', expected argument " "2"" of type '" "wxTaskBarIcon *""'"); | |
15833 | } | |
15834 | arg2 = reinterpret_cast< wxTaskBarIcon * >(argp2); | |
15835 | { | |
15836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15837 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
15838 | wxPyEndAllowThreads(__tstate); | |
15839 | if (PyErr_Occurred()) SWIG_fail; | |
15840 | } | |
15841 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTaskBarIconEvent, SWIG_POINTER_NEW | 0 ); | |
15842 | return resultobj; | |
15843 | fail: | |
15844 | return NULL; | |
d14a1e28 RD |
15845 | } |
15846 | ||
15847 | ||
0085ce49 RD |
15848 | SWIGINTERN PyObject *TaskBarIconEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15849 | PyObject *obj; | |
15850 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15851 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTaskBarIconEvent, SWIG_NewClientData(obj)); | |
15852 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15853 | } |
15854 | ||
0085ce49 RD |
15855 | SWIGINTERN PyObject *TaskBarIconEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15856 | return SWIG_Python_InitShadowInstance(args); | |
15857 | } | |
d14a1e28 | 15858 | |
0085ce49 RD |
15859 | SWIGINTERN int FileSelectorPromptStr_set(PyObject *) { |
15860 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only."); | |
15861 | return 1; | |
d14a1e28 RD |
15862 | } |
15863 | ||
15864 | ||
0085ce49 RD |
15865 | SWIGINTERN PyObject *FileSelectorPromptStr_get(void) { |
15866 | PyObject *pyobj = 0; | |
15867 | ||
15868 | { | |
15869 | #if wxUSE_UNICODE | |
15870 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
15871 | #else | |
15872 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
15873 | #endif | |
15874 | } | |
15875 | return pyobj; | |
d14a1e28 RD |
15876 | } |
15877 | ||
15878 | ||
0085ce49 RD |
15879 | SWIGINTERN int DirSelectorPromptStr_set(PyObject *) { |
15880 | SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only."); | |
15881 | return 1; | |
d14a1e28 RD |
15882 | } |
15883 | ||
15884 | ||
0085ce49 RD |
15885 | SWIGINTERN PyObject *DirSelectorPromptStr_get(void) { |
15886 | PyObject *pyobj = 0; | |
15887 | ||
15888 | { | |
15889 | #if wxUSE_UNICODE | |
15890 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
15891 | #else | |
15892 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
15893 | #endif | |
15894 | } | |
15895 | return pyobj; | |
d14a1e28 RD |
15896 | } |
15897 | ||
15898 | ||
0085ce49 RD |
15899 | SWIGINTERN int DirDialogNameStr_set(PyObject *) { |
15900 | SWIG_Error(SWIG_AttributeError,"Variable DirDialogNameStr is read-only."); | |
15901 | return 1; | |
d14a1e28 RD |
15902 | } |
15903 | ||
15904 | ||
0085ce49 RD |
15905 | SWIGINTERN PyObject *DirDialogNameStr_get(void) { |
15906 | PyObject *pyobj = 0; | |
15907 | ||
15908 | { | |
15909 | #if wxUSE_UNICODE | |
15910 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
15911 | #else | |
15912 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
15913 | #endif | |
15914 | } | |
15915 | return pyobj; | |
d14a1e28 RD |
15916 | } |
15917 | ||
15918 | ||
0085ce49 RD |
15919 | SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) { |
15920 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
15921 | return 1; | |
d14a1e28 RD |
15922 | } |
15923 | ||
15924 | ||
0085ce49 RD |
15925 | SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) { |
15926 | PyObject *pyobj = 0; | |
15927 | ||
15928 | { | |
15929 | #if wxUSE_UNICODE | |
15930 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
15931 | #else | |
15932 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
15933 | #endif | |
15934 | } | |
15935 | return pyobj; | |
d14a1e28 RD |
15936 | } |
15937 | ||
15938 | ||
0085ce49 RD |
15939 | SWIGINTERN int GetTextFromUserPromptStr_set(PyObject *) { |
15940 | SWIG_Error(SWIG_AttributeError,"Variable GetTextFromUserPromptStr is read-only."); | |
15941 | return 1; | |
d14a1e28 RD |
15942 | } |
15943 | ||
15944 | ||
0085ce49 RD |
15945 | SWIGINTERN PyObject *GetTextFromUserPromptStr_get(void) { |
15946 | PyObject *pyobj = 0; | |
15947 | ||
15948 | { | |
15949 | #if wxUSE_UNICODE | |
15950 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
15951 | #else | |
15952 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
15953 | #endif | |
15954 | } | |
15955 | return pyobj; | |
d14a1e28 RD |
15956 | } |
15957 | ||
15958 | ||
0085ce49 RD |
15959 | SWIGINTERN int MessageBoxCaptionStr_set(PyObject *) { |
15960 | SWIG_Error(SWIG_AttributeError,"Variable MessageBoxCaptionStr is read-only."); | |
15961 | return 1; | |
d14a1e28 RD |
15962 | } |
15963 | ||
15964 | ||
0085ce49 RD |
15965 | SWIGINTERN PyObject *MessageBoxCaptionStr_get(void) { |
15966 | PyObject *pyobj = 0; | |
15967 | ||
15968 | { | |
15969 | #if wxUSE_UNICODE | |
15970 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
15971 | #else | |
15972 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
15973 | #endif | |
15974 | } | |
15975 | return pyobj; | |
d14a1e28 RD |
15976 | } |
15977 | ||
15978 | ||
0085ce49 RD |
15979 | SWIGINTERN PyObject *_wrap_new_ColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15980 | PyObject *resultobj = 0; | |
15981 | wxColourData *result = 0 ; | |
15982 | ||
15983 | if (!SWIG_Python_UnpackTuple(args,"new_ColourData",0,0,0)) SWIG_fail; | |
15984 | { | |
15985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15986 | result = (wxColourData *)new wxColourData(); | |
15987 | wxPyEndAllowThreads(__tstate); | |
15988 | if (PyErr_Occurred()) SWIG_fail; | |
15989 | } | |
15990 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourData, SWIG_POINTER_NEW | 0 ); | |
15991 | return resultobj; | |
15992 | fail: | |
15993 | return NULL; | |
d14a1e28 RD |
15994 | } |
15995 | ||
15996 | ||
0085ce49 RD |
15997 | SWIGINTERN PyObject *_wrap_delete_ColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15998 | PyObject *resultobj = 0; | |
15999 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16000 | void *argp1 = 0 ; | |
16001 | int res1 = 0 ; | |
16002 | PyObject *swig_obj[1] ; | |
16003 | ||
16004 | if (!args) SWIG_fail; | |
16005 | swig_obj[0] = args; | |
16006 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, SWIG_POINTER_DISOWN | 0 ); | |
16007 | if (!SWIG_IsOK(res1)) { | |
16008 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourData" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16009 | } | |
16010 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16011 | { | |
16012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16013 | delete arg1; | |
d14a1e28 | 16014 | |
0085ce49 RD |
16015 | wxPyEndAllowThreads(__tstate); |
16016 | if (PyErr_Occurred()) SWIG_fail; | |
16017 | } | |
16018 | resultobj = SWIG_Py_Void(); | |
16019 | return resultobj; | |
16020 | fail: | |
16021 | return NULL; | |
d14a1e28 RD |
16022 | } |
16023 | ||
16024 | ||
0085ce49 RD |
16025 | SWIGINTERN PyObject *_wrap_ColourData_GetChooseFull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16026 | PyObject *resultobj = 0; | |
16027 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16028 | bool result; | |
16029 | void *argp1 = 0 ; | |
16030 | int res1 = 0 ; | |
16031 | PyObject *swig_obj[1] ; | |
16032 | ||
16033 | if (!args) SWIG_fail; | |
16034 | swig_obj[0] = args; | |
16035 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16036 | if (!SWIG_IsOK(res1)) { | |
16037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetChooseFull" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16038 | } | |
16039 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16040 | { | |
16041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16042 | result = (bool)(arg1)->GetChooseFull(); | |
16043 | wxPyEndAllowThreads(__tstate); | |
16044 | if (PyErr_Occurred()) SWIG_fail; | |
16045 | } | |
16046 | { | |
16047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16048 | } | |
16049 | return resultobj; | |
16050 | fail: | |
16051 | return NULL; | |
d14a1e28 RD |
16052 | } |
16053 | ||
16054 | ||
0085ce49 RD |
16055 | SWIGINTERN PyObject *_wrap_ColourData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16056 | PyObject *resultobj = 0; | |
16057 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16058 | wxColour result; | |
16059 | void *argp1 = 0 ; | |
16060 | int res1 = 0 ; | |
16061 | PyObject *swig_obj[1] ; | |
16062 | ||
16063 | if (!args) SWIG_fail; | |
16064 | swig_obj[0] = args; | |
16065 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16066 | if (!SWIG_IsOK(res1)) { | |
16067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16068 | } | |
16069 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16070 | { | |
16071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16072 | result = (arg1)->GetColour(); | |
16073 | wxPyEndAllowThreads(__tstate); | |
16074 | if (PyErr_Occurred()) SWIG_fail; | |
16075 | } | |
16076 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16077 | return resultobj; | |
16078 | fail: | |
16079 | return NULL; | |
16080 | } | |
16081 | ||
16082 | ||
16083 | SWIGINTERN PyObject *_wrap_ColourData_GetCustomColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16084 | PyObject *resultobj = 0; | |
16085 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16086 | int arg2 ; | |
16087 | wxColour result; | |
16088 | void *argp1 = 0 ; | |
16089 | int res1 = 0 ; | |
16090 | int val2 ; | |
16091 | int ecode2 = 0 ; | |
16092 | PyObject * obj0 = 0 ; | |
16093 | PyObject * obj1 = 0 ; | |
16094 | char * kwnames[] = { | |
16095 | (char *) "self",(char *) "i", NULL | |
16096 | }; | |
16097 | ||
16098 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
16099 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16100 | if (!SWIG_IsOK(res1)) { | |
16101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetCustomColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16102 | } | |
16103 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16104 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16105 | if (!SWIG_IsOK(ecode2)) { | |
16106 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_GetCustomColour" "', expected argument " "2"" of type '" "int""'"); | |
16107 | } | |
16108 | arg2 = static_cast< int >(val2); | |
16109 | { | |
16110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16111 | result = (arg1)->GetCustomColour(arg2); | |
16112 | wxPyEndAllowThreads(__tstate); | |
16113 | if (PyErr_Occurred()) SWIG_fail; | |
16114 | } | |
16115 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16116 | return resultobj; | |
16117 | fail: | |
16118 | return NULL; | |
16119 | } | |
16120 | ||
16121 | ||
16122 | SWIGINTERN PyObject *_wrap_ColourData_SetChooseFull(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16123 | PyObject *resultobj = 0; | |
16124 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16125 | int arg2 ; | |
16126 | void *argp1 = 0 ; | |
16127 | int res1 = 0 ; | |
16128 | int val2 ; | |
16129 | int ecode2 = 0 ; | |
16130 | PyObject * obj0 = 0 ; | |
16131 | PyObject * obj1 = 0 ; | |
16132 | char * kwnames[] = { | |
16133 | (char *) "self",(char *) "flag", NULL | |
16134 | }; | |
16135 | ||
16136 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) SWIG_fail; | |
16137 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16138 | if (!SWIG_IsOK(res1)) { | |
16139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetChooseFull" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16140 | } | |
16141 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16142 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16143 | if (!SWIG_IsOK(ecode2)) { | |
16144 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_SetChooseFull" "', expected argument " "2"" of type '" "int""'"); | |
16145 | } | |
16146 | arg2 = static_cast< int >(val2); | |
16147 | { | |
16148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16149 | (arg1)->SetChooseFull(arg2); | |
16150 | wxPyEndAllowThreads(__tstate); | |
16151 | if (PyErr_Occurred()) SWIG_fail; | |
16152 | } | |
16153 | resultobj = SWIG_Py_Void(); | |
16154 | return resultobj; | |
16155 | fail: | |
16156 | return NULL; | |
16157 | } | |
16158 | ||
16159 | ||
16160 | SWIGINTERN PyObject *_wrap_ColourData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16161 | PyObject *resultobj = 0; | |
16162 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16163 | wxColour *arg2 = 0 ; | |
16164 | void *argp1 = 0 ; | |
16165 | int res1 = 0 ; | |
16166 | wxColour temp2 ; | |
16167 | PyObject * obj0 = 0 ; | |
16168 | PyObject * obj1 = 0 ; | |
16169 | char * kwnames[] = { | |
16170 | (char *) "self",(char *) "colour", NULL | |
16171 | }; | |
16172 | ||
16173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
16174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16175 | if (!SWIG_IsOK(res1)) { | |
16176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16177 | } | |
16178 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16179 | { | |
16180 | arg2 = &temp2; | |
16181 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16182 | } | |
16183 | { | |
16184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16185 | (arg1)->SetColour((wxColour const &)*arg2); | |
16186 | wxPyEndAllowThreads(__tstate); | |
16187 | if (PyErr_Occurred()) SWIG_fail; | |
16188 | } | |
16189 | resultobj = SWIG_Py_Void(); | |
16190 | return resultobj; | |
16191 | fail: | |
16192 | return NULL; | |
16193 | } | |
16194 | ||
16195 | ||
16196 | SWIGINTERN PyObject *_wrap_ColourData_SetCustomColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16197 | PyObject *resultobj = 0; | |
16198 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16199 | int arg2 ; | |
16200 | wxColour *arg3 = 0 ; | |
16201 | void *argp1 = 0 ; | |
16202 | int res1 = 0 ; | |
16203 | int val2 ; | |
16204 | int ecode2 = 0 ; | |
16205 | wxColour temp3 ; | |
16206 | PyObject * obj0 = 0 ; | |
16207 | PyObject * obj1 = 0 ; | |
16208 | PyObject * obj2 = 0 ; | |
16209 | char * kwnames[] = { | |
16210 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
16211 | }; | |
16212 | ||
16213 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16214 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16215 | if (!SWIG_IsOK(res1)) { | |
16216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetCustomColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16217 | } | |
16218 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16219 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16220 | if (!SWIG_IsOK(ecode2)) { | |
16221 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_SetCustomColour" "', expected argument " "2"" of type '" "int""'"); | |
16222 | } | |
16223 | arg2 = static_cast< int >(val2); | |
16224 | { | |
16225 | arg3 = &temp3; | |
16226 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16227 | } | |
16228 | { | |
16229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16230 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
16231 | wxPyEndAllowThreads(__tstate); | |
16232 | if (PyErr_Occurred()) SWIG_fail; | |
16233 | } | |
16234 | resultobj = SWIG_Py_Void(); | |
16235 | return resultobj; | |
16236 | fail: | |
16237 | return NULL; | |
d14a1e28 RD |
16238 | } |
16239 | ||
16240 | ||
0085ce49 RD |
16241 | SWIGINTERN PyObject *ColourData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16242 | PyObject *obj; | |
16243 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16244 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourData, SWIG_NewClientData(obj)); | |
16245 | return SWIG_Py_Void(); | |
d14a1e28 RD |
16246 | } |
16247 | ||
0085ce49 RD |
16248 | SWIGINTERN PyObject *ColourData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16249 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
16250 | } |
16251 | ||
0085ce49 RD |
16252 | SWIGINTERN PyObject *_wrap_new_ColourDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16253 | PyObject *resultobj = 0; | |
16254 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16255 | wxColourData *arg2 = (wxColourData *) NULL ; | |
16256 | wxColourDialog *result = 0 ; | |
16257 | void *argp1 = 0 ; | |
16258 | int res1 = 0 ; | |
16259 | void *argp2 = 0 ; | |
16260 | int res2 = 0 ; | |
16261 | PyObject * obj0 = 0 ; | |
16262 | PyObject * obj1 = 0 ; | |
16263 | char * kwnames[] = { | |
16264 | (char *) "parent",(char *) "data", NULL | |
16265 | }; | |
16266 | ||
16267 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
16268 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16269 | if (!SWIG_IsOK(res1)) { | |
16270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16271 | } | |
16272 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16273 | if (obj1) { | |
16274 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16275 | if (!SWIG_IsOK(res2)) { | |
16276 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ColourDialog" "', expected argument " "2"" of type '" "wxColourData *""'"); | |
093d3ff1 | 16277 | } |
0085ce49 RD |
16278 | arg2 = reinterpret_cast< wxColourData * >(argp2); |
16279 | } | |
16280 | { | |
16281 | if (!wxPyCheckForApp()) SWIG_fail; | |
16282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16283 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
16284 | wxPyEndAllowThreads(__tstate); | |
16285 | if (PyErr_Occurred()) SWIG_fail; | |
16286 | } | |
16287 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDialog, SWIG_POINTER_NEW | 0 ); | |
16288 | return resultobj; | |
16289 | fail: | |
16290 | return NULL; | |
d14a1e28 RD |
16291 | } |
16292 | ||
16293 | ||
0085ce49 RD |
16294 | SWIGINTERN PyObject *_wrap_ColourDialog_GetColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16295 | PyObject *resultobj = 0; | |
16296 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
16297 | wxColourData *result = 0 ; | |
16298 | void *argp1 = 0 ; | |
16299 | int res1 = 0 ; | |
16300 | PyObject *swig_obj[1] ; | |
16301 | ||
16302 | if (!args) SWIG_fail; | |
16303 | swig_obj[0] = args; | |
16304 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDialog, 0 | 0 ); | |
16305 | if (!SWIG_IsOK(res1)) { | |
16306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDialog_GetColourData" "', expected argument " "1"" of type '" "wxColourDialog *""'"); | |
16307 | } | |
16308 | arg1 = reinterpret_cast< wxColourDialog * >(argp1); | |
16309 | { | |
16310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 16311 | { |
0085ce49 RD |
16312 | wxColourData &_result_ref = (arg1)->GetColourData(); |
16313 | result = (wxColourData *) &_result_ref; | |
d14a1e28 | 16314 | } |
0085ce49 RD |
16315 | wxPyEndAllowThreads(__tstate); |
16316 | if (PyErr_Occurred()) SWIG_fail; | |
16317 | } | |
16318 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16319 | return resultobj; | |
16320 | fail: | |
16321 | return NULL; | |
16322 | } | |
16323 | ||
16324 | ||
16325 | SWIGINTERN PyObject *ColourDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16326 | PyObject *obj; | |
16327 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16328 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDialog, SWIG_NewClientData(obj)); | |
16329 | return SWIG_Py_Void(); | |
16330 | } | |
16331 | ||
16332 | SWIGINTERN PyObject *ColourDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16333 | return SWIG_Python_InitShadowInstance(args); | |
16334 | } | |
16335 | ||
16336 | SWIGINTERN PyObject *_wrap_GetColourFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16337 | PyObject *resultobj = 0; | |
16338 | wxWindow *arg1 = (wxWindow *) (wxWindow *) NULL ; | |
16339 | wxColour const &arg2_defvalue = wxNullColour ; | |
16340 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
16341 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16342 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16343 | wxColour result; | |
16344 | void *argp1 = 0 ; | |
16345 | int res1 = 0 ; | |
16346 | wxColour temp2 ; | |
16347 | bool temp3 = false ; | |
16348 | PyObject * obj0 = 0 ; | |
16349 | PyObject * obj1 = 0 ; | |
16350 | PyObject * obj2 = 0 ; | |
16351 | char * kwnames[] = { | |
16352 | (char *) "parent",(char *) "colInit",(char *) "caption", NULL | |
16353 | }; | |
16354 | ||
16355 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:GetColourFromUser",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16356 | if (obj0) { | |
16357 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16358 | if (!SWIG_IsOK(res1)) { | |
16359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetColourFromUser" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
093d3ff1 | 16360 | } |
0085ce49 RD |
16361 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
16362 | } | |
16363 | if (obj1) { | |
d14a1e28 | 16364 | { |
0085ce49 RD |
16365 | arg2 = &temp2; |
16366 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16367 | } | |
16368 | } | |
16369 | if (obj2) { | |
d14a1e28 | 16370 | { |
0085ce49 RD |
16371 | arg3 = wxString_in_helper(obj2); |
16372 | if (arg3 == NULL) SWIG_fail; | |
16373 | temp3 = true; | |
d14a1e28 | 16374 | } |
0085ce49 RD |
16375 | } |
16376 | { | |
16377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16378 | result = wxGetColourFromUser(arg1,(wxColour const &)*arg2,(wxString const &)*arg3); | |
16379 | wxPyEndAllowThreads(__tstate); | |
16380 | if (PyErr_Occurred()) SWIG_fail; | |
16381 | } | |
16382 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16383 | { | |
16384 | if (temp3) | |
16385 | delete arg3; | |
16386 | } | |
16387 | return resultobj; | |
16388 | fail: | |
16389 | { | |
16390 | if (temp3) | |
16391 | delete arg3; | |
16392 | } | |
16393 | return NULL; | |
16394 | } | |
16395 | ||
16396 | ||
16397 | SWIGINTERN PyObject *_wrap_new_DirDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16398 | PyObject *resultobj = 0; | |
16399 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16400 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
16401 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16402 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16403 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16404 | long arg4 = (long) 0 ; | |
16405 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
16406 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
16407 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
16408 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
16409 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
16410 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16411 | wxDirDialog *result = 0 ; | |
16412 | void *argp1 = 0 ; | |
16413 | int res1 = 0 ; | |
16414 | bool temp2 = false ; | |
16415 | bool temp3 = false ; | |
16416 | long val4 ; | |
16417 | int ecode4 = 0 ; | |
16418 | wxPoint temp5 ; | |
16419 | wxSize temp6 ; | |
16420 | bool temp7 = false ; | |
16421 | PyObject * obj0 = 0 ; | |
16422 | PyObject * obj1 = 0 ; | |
16423 | PyObject * obj2 = 0 ; | |
16424 | PyObject * obj3 = 0 ; | |
16425 | PyObject * obj4 = 0 ; | |
16426 | PyObject * obj5 = 0 ; | |
16427 | PyObject * obj6 = 0 ; | |
16428 | char * kwnames[] = { | |
16429 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
16430 | }; | |
16431 | ||
16432 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
16433 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16434 | if (!SWIG_IsOK(res1)) { | |
16435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16436 | } | |
16437 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16438 | if (obj1) { | |
d14a1e28 | 16439 | { |
0085ce49 RD |
16440 | arg2 = wxString_in_helper(obj1); |
16441 | if (arg2 == NULL) SWIG_fail; | |
16442 | temp2 = true; | |
d14a1e28 | 16443 | } |
0085ce49 RD |
16444 | } |
16445 | if (obj2) { | |
4f89f6a3 | 16446 | { |
0085ce49 RD |
16447 | arg3 = wxString_in_helper(obj2); |
16448 | if (arg3 == NULL) SWIG_fail; | |
16449 | temp3 = true; | |
4f89f6a3 | 16450 | } |
0085ce49 RD |
16451 | } |
16452 | if (obj3) { | |
16453 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
16454 | if (!SWIG_IsOK(ecode4)) { | |
16455 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DirDialog" "', expected argument " "4"" of type '" "long""'"); | |
16456 | } | |
16457 | arg4 = static_cast< long >(val4); | |
16458 | } | |
16459 | if (obj4) { | |
16460 | { | |
16461 | arg5 = &temp5; | |
16462 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 16463 | } |
0085ce49 RD |
16464 | } |
16465 | if (obj5) { | |
d14a1e28 | 16466 | { |
0085ce49 RD |
16467 | arg6 = &temp6; |
16468 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 16469 | } |
0085ce49 RD |
16470 | } |
16471 | if (obj6) { | |
4f89f6a3 | 16472 | { |
0085ce49 RD |
16473 | arg7 = wxString_in_helper(obj6); |
16474 | if (arg7 == NULL) SWIG_fail; | |
16475 | temp7 = true; | |
4f89f6a3 | 16476 | } |
0085ce49 RD |
16477 | } |
16478 | { | |
16479 | if (!wxPyCheckForApp()) SWIG_fail; | |
16480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16481 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
16482 | wxPyEndAllowThreads(__tstate); | |
16483 | if (PyErr_Occurred()) SWIG_fail; | |
16484 | } | |
16485 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirDialog, SWIG_POINTER_NEW | 0 ); | |
16486 | { | |
16487 | if (temp2) | |
16488 | delete arg2; | |
16489 | } | |
16490 | { | |
16491 | if (temp3) | |
16492 | delete arg3; | |
16493 | } | |
16494 | { | |
16495 | if (temp7) | |
16496 | delete arg7; | |
16497 | } | |
16498 | return resultobj; | |
16499 | fail: | |
16500 | { | |
16501 | if (temp2) | |
16502 | delete arg2; | |
16503 | } | |
16504 | { | |
16505 | if (temp3) | |
16506 | delete arg3; | |
16507 | } | |
16508 | { | |
16509 | if (temp7) | |
16510 | delete arg7; | |
16511 | } | |
16512 | return NULL; | |
d14a1e28 RD |
16513 | } |
16514 | ||
16515 | ||
0085ce49 RD |
16516 | SWIGINTERN PyObject *_wrap_DirDialog_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16517 | PyObject *resultobj = 0; | |
16518 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16519 | wxString result; | |
16520 | void *argp1 = 0 ; | |
16521 | int res1 = 0 ; | |
16522 | PyObject *swig_obj[1] ; | |
16523 | ||
16524 | if (!args) SWIG_fail; | |
16525 | swig_obj[0] = args; | |
16526 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16527 | if (!SWIG_IsOK(res1)) { | |
16528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetPath" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16529 | } | |
16530 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16531 | { | |
16532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16533 | result = (arg1)->GetPath(); | |
16534 | wxPyEndAllowThreads(__tstate); | |
16535 | if (PyErr_Occurred()) SWIG_fail; | |
16536 | } | |
16537 | { | |
16538 | #if wxUSE_UNICODE | |
16539 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16540 | #else | |
16541 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16542 | #endif | |
16543 | } | |
16544 | return resultobj; | |
16545 | fail: | |
16546 | return NULL; | |
d14a1e28 RD |
16547 | } |
16548 | ||
16549 | ||
0085ce49 RD |
16550 | SWIGINTERN PyObject *_wrap_DirDialog_GetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16551 | PyObject *resultobj = 0; | |
16552 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16553 | wxString result; | |
16554 | void *argp1 = 0 ; | |
16555 | int res1 = 0 ; | |
16556 | PyObject *swig_obj[1] ; | |
16557 | ||
16558 | if (!args) SWIG_fail; | |
16559 | swig_obj[0] = args; | |
16560 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16561 | if (!SWIG_IsOK(res1)) { | |
16562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetMessage" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16563 | } | |
16564 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16565 | { | |
16566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16567 | result = (arg1)->GetMessage(); | |
16568 | wxPyEndAllowThreads(__tstate); | |
16569 | if (PyErr_Occurred()) SWIG_fail; | |
16570 | } | |
16571 | { | |
16572 | #if wxUSE_UNICODE | |
16573 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16574 | #else | |
16575 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16576 | #endif | |
16577 | } | |
16578 | return resultobj; | |
16579 | fail: | |
16580 | return NULL; | |
d14a1e28 RD |
16581 | } |
16582 | ||
16583 | ||
0085ce49 RD |
16584 | SWIGINTERN PyObject *_wrap_DirDialog_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16585 | PyObject *resultobj = 0; | |
16586 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16587 | long result; | |
16588 | void *argp1 = 0 ; | |
16589 | int res1 = 0 ; | |
16590 | PyObject *swig_obj[1] ; | |
16591 | ||
16592 | if (!args) SWIG_fail; | |
16593 | swig_obj[0] = args; | |
16594 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16595 | if (!SWIG_IsOK(res1)) { | |
16596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetStyle" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16597 | } | |
16598 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16599 | { | |
16600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16601 | result = (long)(arg1)->GetStyle(); | |
16602 | wxPyEndAllowThreads(__tstate); | |
16603 | if (PyErr_Occurred()) SWIG_fail; | |
16604 | } | |
16605 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
16606 | return resultobj; | |
16607 | fail: | |
16608 | return NULL; | |
16609 | } | |
16610 | ||
16611 | ||
16612 | SWIGINTERN PyObject *_wrap_DirDialog_SetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16613 | PyObject *resultobj = 0; | |
16614 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16615 | wxString *arg2 = 0 ; | |
16616 | void *argp1 = 0 ; | |
16617 | int res1 = 0 ; | |
16618 | bool temp2 = false ; | |
16619 | PyObject * obj0 = 0 ; | |
16620 | PyObject * obj1 = 0 ; | |
16621 | char * kwnames[] = { | |
16622 | (char *) "self",(char *) "message", NULL | |
16623 | }; | |
16624 | ||
16625 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) SWIG_fail; | |
16626 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16627 | if (!SWIG_IsOK(res1)) { | |
16628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_SetMessage" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16629 | } | |
16630 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16631 | { | |
16632 | arg2 = wxString_in_helper(obj1); | |
16633 | if (arg2 == NULL) SWIG_fail; | |
16634 | temp2 = true; | |
16635 | } | |
16636 | { | |
16637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16638 | (arg1)->SetMessage((wxString const &)*arg2); | |
16639 | wxPyEndAllowThreads(__tstate); | |
16640 | if (PyErr_Occurred()) SWIG_fail; | |
16641 | } | |
16642 | resultobj = SWIG_Py_Void(); | |
16643 | { | |
16644 | if (temp2) | |
16645 | delete arg2; | |
16646 | } | |
16647 | return resultobj; | |
16648 | fail: | |
16649 | { | |
16650 | if (temp2) | |
16651 | delete arg2; | |
16652 | } | |
16653 | return NULL; | |
d14a1e28 RD |
16654 | } |
16655 | ||
16656 | ||
0085ce49 RD |
16657 | SWIGINTERN PyObject *_wrap_DirDialog_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16658 | PyObject *resultobj = 0; | |
16659 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16660 | wxString *arg2 = 0 ; | |
16661 | void *argp1 = 0 ; | |
16662 | int res1 = 0 ; | |
16663 | bool temp2 = false ; | |
16664 | PyObject * obj0 = 0 ; | |
16665 | PyObject * obj1 = 0 ; | |
16666 | char * kwnames[] = { | |
16667 | (char *) "self",(char *) "path", NULL | |
16668 | }; | |
16669 | ||
16670 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
16671 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16672 | if (!SWIG_IsOK(res1)) { | |
16673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_SetPath" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16674 | } | |
16675 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16676 | { | |
16677 | arg2 = wxString_in_helper(obj1); | |
16678 | if (arg2 == NULL) SWIG_fail; | |
16679 | temp2 = true; | |
16680 | } | |
16681 | { | |
16682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16683 | (arg1)->SetPath((wxString const &)*arg2); | |
16684 | wxPyEndAllowThreads(__tstate); | |
16685 | if (PyErr_Occurred()) SWIG_fail; | |
16686 | } | |
16687 | resultobj = SWIG_Py_Void(); | |
16688 | { | |
16689 | if (temp2) | |
16690 | delete arg2; | |
16691 | } | |
16692 | return resultobj; | |
16693 | fail: | |
16694 | { | |
16695 | if (temp2) | |
16696 | delete arg2; | |
16697 | } | |
16698 | return NULL; | |
16699 | } | |
16700 | ||
16701 | ||
16702 | SWIGINTERN PyObject *DirDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16703 | PyObject *obj; | |
16704 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16705 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirDialog, SWIG_NewClientData(obj)); | |
16706 | return SWIG_Py_Void(); | |
16707 | } | |
16708 | ||
16709 | SWIGINTERN PyObject *DirDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16710 | return SWIG_Python_InitShadowInstance(args); | |
16711 | } | |
16712 | ||
16713 | SWIGINTERN PyObject *_wrap_new_FileDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16714 | PyObject *resultobj = 0; | |
16715 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16716 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
16717 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16718 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16719 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16720 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16721 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16722 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
16723 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
16724 | long arg6 = (long) 0 ; | |
16725 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
16726 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
16727 | wxFileDialog *result = 0 ; | |
16728 | void *argp1 = 0 ; | |
16729 | int res1 = 0 ; | |
16730 | bool temp2 = false ; | |
16731 | bool temp3 = false ; | |
16732 | bool temp4 = false ; | |
16733 | bool temp5 = false ; | |
16734 | long val6 ; | |
16735 | int ecode6 = 0 ; | |
16736 | wxPoint temp7 ; | |
16737 | PyObject * obj0 = 0 ; | |
16738 | PyObject * obj1 = 0 ; | |
16739 | PyObject * obj2 = 0 ; | |
16740 | PyObject * obj3 = 0 ; | |
16741 | PyObject * obj4 = 0 ; | |
16742 | PyObject * obj5 = 0 ; | |
16743 | PyObject * obj6 = 0 ; | |
16744 | char * kwnames[] = { | |
16745 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
16746 | }; | |
16747 | ||
16748 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
16749 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16750 | if (!SWIG_IsOK(res1)) { | |
16751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FileDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16752 | } | |
16753 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16754 | if (obj1) { | |
d14a1e28 | 16755 | { |
0085ce49 RD |
16756 | arg2 = wxString_in_helper(obj1); |
16757 | if (arg2 == NULL) SWIG_fail; | |
16758 | temp2 = true; | |
d14a1e28 | 16759 | } |
0085ce49 RD |
16760 | } |
16761 | if (obj2) { | |
4f89f6a3 | 16762 | { |
0085ce49 RD |
16763 | arg3 = wxString_in_helper(obj2); |
16764 | if (arg3 == NULL) SWIG_fail; | |
16765 | temp3 = true; | |
4f89f6a3 | 16766 | } |
0085ce49 RD |
16767 | } |
16768 | if (obj3) { | |
d14a1e28 | 16769 | { |
0085ce49 RD |
16770 | arg4 = wxString_in_helper(obj3); |
16771 | if (arg4 == NULL) SWIG_fail; | |
16772 | temp4 = true; | |
d14a1e28 | 16773 | } |
0085ce49 RD |
16774 | } |
16775 | if (obj4) { | |
d14a1e28 | 16776 | { |
0085ce49 RD |
16777 | arg5 = wxString_in_helper(obj4); |
16778 | if (arg5 == NULL) SWIG_fail; | |
16779 | temp5 = true; | |
d14a1e28 | 16780 | } |
0085ce49 RD |
16781 | } |
16782 | if (obj5) { | |
16783 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
16784 | if (!SWIG_IsOK(ecode6)) { | |
16785 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FileDialog" "', expected argument " "6"" of type '" "long""'"); | |
16786 | } | |
16787 | arg6 = static_cast< long >(val6); | |
16788 | } | |
16789 | if (obj6) { | |
d14a1e28 | 16790 | { |
0085ce49 RD |
16791 | arg7 = &temp7; |
16792 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
994141e6 | 16793 | } |
0085ce49 RD |
16794 | } |
16795 | { | |
16796 | if (!wxPyCheckForApp()) SWIG_fail; | |
16797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16798 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
16799 | wxPyEndAllowThreads(__tstate); | |
16800 | if (PyErr_Occurred()) SWIG_fail; | |
16801 | } | |
16802 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDialog, SWIG_POINTER_NEW | 0 ); | |
16803 | { | |
16804 | if (temp2) | |
16805 | delete arg2; | |
16806 | } | |
16807 | { | |
16808 | if (temp3) | |
16809 | delete arg3; | |
16810 | } | |
16811 | { | |
16812 | if (temp4) | |
16813 | delete arg4; | |
16814 | } | |
16815 | { | |
16816 | if (temp5) | |
16817 | delete arg5; | |
16818 | } | |
16819 | return resultobj; | |
16820 | fail: | |
16821 | { | |
16822 | if (temp2) | |
16823 | delete arg2; | |
16824 | } | |
16825 | { | |
16826 | if (temp3) | |
16827 | delete arg3; | |
16828 | } | |
16829 | { | |
16830 | if (temp4) | |
16831 | delete arg4; | |
16832 | } | |
16833 | { | |
16834 | if (temp5) | |
16835 | delete arg5; | |
16836 | } | |
16837 | return NULL; | |
d14a1e28 RD |
16838 | } |
16839 | ||
16840 | ||
0085ce49 RD |
16841 | SWIGINTERN PyObject *_wrap_FileDialog_SetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16842 | PyObject *resultobj = 0; | |
16843 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
16844 | wxString *arg2 = 0 ; | |
16845 | void *argp1 = 0 ; | |
16846 | int res1 = 0 ; | |
16847 | bool temp2 = false ; | |
16848 | PyObject * obj0 = 0 ; | |
16849 | PyObject * obj1 = 0 ; | |
16850 | char * kwnames[] = { | |
16851 | (char *) "self",(char *) "message", NULL | |
16852 | }; | |
16853 | ||
16854 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) SWIG_fail; | |
16855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
16856 | if (!SWIG_IsOK(res1)) { | |
16857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetMessage" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
16858 | } | |
16859 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
16860 | { | |
16861 | arg2 = wxString_in_helper(obj1); | |
16862 | if (arg2 == NULL) SWIG_fail; | |
16863 | temp2 = true; | |
16864 | } | |
16865 | { | |
16866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16867 | (arg1)->SetMessage((wxString const &)*arg2); | |
16868 | wxPyEndAllowThreads(__tstate); | |
16869 | if (PyErr_Occurred()) SWIG_fail; | |
16870 | } | |
16871 | resultobj = SWIG_Py_Void(); | |
16872 | { | |
16873 | if (temp2) | |
16874 | delete arg2; | |
16875 | } | |
16876 | return resultobj; | |
16877 | fail: | |
16878 | { | |
16879 | if (temp2) | |
16880 | delete arg2; | |
16881 | } | |
16882 | return NULL; | |
d14a1e28 RD |
16883 | } |
16884 | ||
16885 | ||
0085ce49 RD |
16886 | SWIGINTERN PyObject *_wrap_FileDialog_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16887 | PyObject *resultobj = 0; | |
16888 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
16889 | wxString *arg2 = 0 ; | |
16890 | void *argp1 = 0 ; | |
16891 | int res1 = 0 ; | |
16892 | bool temp2 = false ; | |
16893 | PyObject * obj0 = 0 ; | |
16894 | PyObject * obj1 = 0 ; | |
16895 | char * kwnames[] = { | |
16896 | (char *) "self",(char *) "path", NULL | |
16897 | }; | |
16898 | ||
16899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
16900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
16901 | if (!SWIG_IsOK(res1)) { | |
16902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetPath" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
16903 | } | |
16904 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
16905 | { | |
16906 | arg2 = wxString_in_helper(obj1); | |
16907 | if (arg2 == NULL) SWIG_fail; | |
16908 | temp2 = true; | |
16909 | } | |
16910 | { | |
16911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16912 | (arg1)->SetPath((wxString const &)*arg2); | |
16913 | wxPyEndAllowThreads(__tstate); | |
16914 | if (PyErr_Occurred()) SWIG_fail; | |
16915 | } | |
16916 | resultobj = SWIG_Py_Void(); | |
16917 | { | |
16918 | if (temp2) | |
16919 | delete arg2; | |
16920 | } | |
16921 | return resultobj; | |
16922 | fail: | |
16923 | { | |
16924 | if (temp2) | |
16925 | delete arg2; | |
16926 | } | |
16927 | return NULL; | |
d14a1e28 RD |
16928 | } |
16929 | ||
16930 | ||
0085ce49 RD |
16931 | SWIGINTERN PyObject *_wrap_FileDialog_SetDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16932 | PyObject *resultobj = 0; | |
16933 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
16934 | wxString *arg2 = 0 ; | |
16935 | void *argp1 = 0 ; | |
16936 | int res1 = 0 ; | |
16937 | bool temp2 = false ; | |
16938 | PyObject * obj0 = 0 ; | |
16939 | PyObject * obj1 = 0 ; | |
16940 | char * kwnames[] = { | |
16941 | (char *) "self",(char *) "dir", NULL | |
16942 | }; | |
16943 | ||
16944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) SWIG_fail; | |
16945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
16946 | if (!SWIG_IsOK(res1)) { | |
16947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetDirectory" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
16948 | } | |
16949 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
16950 | { | |
16951 | arg2 = wxString_in_helper(obj1); | |
16952 | if (arg2 == NULL) SWIG_fail; | |
16953 | temp2 = true; | |
16954 | } | |
16955 | { | |
16956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16957 | (arg1)->SetDirectory((wxString const &)*arg2); | |
16958 | wxPyEndAllowThreads(__tstate); | |
16959 | if (PyErr_Occurred()) SWIG_fail; | |
16960 | } | |
16961 | resultobj = SWIG_Py_Void(); | |
16962 | { | |
16963 | if (temp2) | |
16964 | delete arg2; | |
16965 | } | |
16966 | return resultobj; | |
16967 | fail: | |
16968 | { | |
16969 | if (temp2) | |
16970 | delete arg2; | |
16971 | } | |
16972 | return NULL; | |
d14a1e28 RD |
16973 | } |
16974 | ||
16975 | ||
0085ce49 RD |
16976 | SWIGINTERN PyObject *_wrap_FileDialog_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16977 | PyObject *resultobj = 0; | |
16978 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
16979 | wxString *arg2 = 0 ; | |
16980 | void *argp1 = 0 ; | |
16981 | int res1 = 0 ; | |
16982 | bool temp2 = false ; | |
16983 | PyObject * obj0 = 0 ; | |
16984 | PyObject * obj1 = 0 ; | |
16985 | char * kwnames[] = { | |
16986 | (char *) "self",(char *) "name", NULL | |
16987 | }; | |
16988 | ||
16989 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
16990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
16991 | if (!SWIG_IsOK(res1)) { | |
16992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetFilename" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
16993 | } | |
16994 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
16995 | { | |
16996 | arg2 = wxString_in_helper(obj1); | |
16997 | if (arg2 == NULL) SWIG_fail; | |
16998 | temp2 = true; | |
16999 | } | |
17000 | { | |
17001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17002 | (arg1)->SetFilename((wxString const &)*arg2); | |
17003 | wxPyEndAllowThreads(__tstate); | |
17004 | if (PyErr_Occurred()) SWIG_fail; | |
17005 | } | |
17006 | resultobj = SWIG_Py_Void(); | |
17007 | { | |
17008 | if (temp2) | |
17009 | delete arg2; | |
17010 | } | |
17011 | return resultobj; | |
17012 | fail: | |
17013 | { | |
17014 | if (temp2) | |
17015 | delete arg2; | |
17016 | } | |
17017 | return NULL; | |
d14a1e28 RD |
17018 | } |
17019 | ||
17020 | ||
0085ce49 RD |
17021 | SWIGINTERN PyObject *_wrap_FileDialog_SetWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17022 | PyObject *resultobj = 0; | |
17023 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17024 | wxString *arg2 = 0 ; | |
17025 | void *argp1 = 0 ; | |
17026 | int res1 = 0 ; | |
17027 | bool temp2 = false ; | |
17028 | PyObject * obj0 = 0 ; | |
17029 | PyObject * obj1 = 0 ; | |
17030 | char * kwnames[] = { | |
17031 | (char *) "self",(char *) "wildCard", NULL | |
17032 | }; | |
17033 | ||
17034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) SWIG_fail; | |
17035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17036 | if (!SWIG_IsOK(res1)) { | |
17037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetWildcard" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17038 | } | |
17039 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17040 | { | |
17041 | arg2 = wxString_in_helper(obj1); | |
17042 | if (arg2 == NULL) SWIG_fail; | |
17043 | temp2 = true; | |
17044 | } | |
17045 | { | |
17046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17047 | (arg1)->SetWildcard((wxString const &)*arg2); | |
17048 | wxPyEndAllowThreads(__tstate); | |
17049 | if (PyErr_Occurred()) SWIG_fail; | |
17050 | } | |
17051 | resultobj = SWIG_Py_Void(); | |
17052 | { | |
17053 | if (temp2) | |
17054 | delete arg2; | |
17055 | } | |
17056 | return resultobj; | |
17057 | fail: | |
17058 | { | |
17059 | if (temp2) | |
17060 | delete arg2; | |
17061 | } | |
17062 | return NULL; | |
17063 | } | |
17064 | ||
17065 | ||
17066 | SWIGINTERN PyObject *_wrap_FileDialog_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17067 | PyObject *resultobj = 0; | |
17068 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17069 | long arg2 ; | |
17070 | void *argp1 = 0 ; | |
17071 | int res1 = 0 ; | |
17072 | long val2 ; | |
17073 | int ecode2 = 0 ; | |
17074 | PyObject * obj0 = 0 ; | |
17075 | PyObject * obj1 = 0 ; | |
17076 | char * kwnames[] = { | |
17077 | (char *) "self",(char *) "style", NULL | |
17078 | }; | |
17079 | ||
17080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
17081 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17082 | if (!SWIG_IsOK(res1)) { | |
17083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetStyle" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17084 | } | |
17085 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17086 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
17087 | if (!SWIG_IsOK(ecode2)) { | |
17088 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDialog_SetStyle" "', expected argument " "2"" of type '" "long""'"); | |
17089 | } | |
17090 | arg2 = static_cast< long >(val2); | |
17091 | { | |
17092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17093 | (arg1)->SetStyle(arg2); | |
17094 | wxPyEndAllowThreads(__tstate); | |
17095 | if (PyErr_Occurred()) SWIG_fail; | |
17096 | } | |
17097 | resultobj = SWIG_Py_Void(); | |
17098 | return resultobj; | |
17099 | fail: | |
17100 | return NULL; | |
17101 | } | |
17102 | ||
17103 | ||
17104 | SWIGINTERN PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17105 | PyObject *resultobj = 0; | |
17106 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17107 | int arg2 ; | |
17108 | void *argp1 = 0 ; | |
17109 | int res1 = 0 ; | |
17110 | int val2 ; | |
17111 | int ecode2 = 0 ; | |
17112 | PyObject * obj0 = 0 ; | |
17113 | PyObject * obj1 = 0 ; | |
17114 | char * kwnames[] = { | |
17115 | (char *) "self",(char *) "filterIndex", NULL | |
17116 | }; | |
17117 | ||
17118 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
17119 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17120 | if (!SWIG_IsOK(res1)) { | |
17121 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetFilterIndex" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17122 | } | |
17123 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17124 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17125 | if (!SWIG_IsOK(ecode2)) { | |
17126 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDialog_SetFilterIndex" "', expected argument " "2"" of type '" "int""'"); | |
17127 | } | |
17128 | arg2 = static_cast< int >(val2); | |
17129 | { | |
17130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17131 | (arg1)->SetFilterIndex(arg2); | |
17132 | wxPyEndAllowThreads(__tstate); | |
17133 | if (PyErr_Occurred()) SWIG_fail; | |
17134 | } | |
17135 | resultobj = SWIG_Py_Void(); | |
17136 | return resultobj; | |
17137 | fail: | |
17138 | return NULL; | |
d14a1e28 RD |
17139 | } |
17140 | ||
17141 | ||
0085ce49 RD |
17142 | SWIGINTERN PyObject *_wrap_FileDialog_GetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17143 | PyObject *resultobj = 0; | |
17144 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17145 | wxString result; | |
17146 | void *argp1 = 0 ; | |
17147 | int res1 = 0 ; | |
17148 | PyObject *swig_obj[1] ; | |
17149 | ||
17150 | if (!args) SWIG_fail; | |
17151 | swig_obj[0] = args; | |
17152 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17153 | if (!SWIG_IsOK(res1)) { | |
17154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetMessage" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17155 | } | |
17156 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17157 | { | |
17158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17159 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
17160 | wxPyEndAllowThreads(__tstate); | |
17161 | if (PyErr_Occurred()) SWIG_fail; | |
17162 | } | |
17163 | { | |
17164 | #if wxUSE_UNICODE | |
17165 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17166 | #else | |
17167 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17168 | #endif | |
17169 | } | |
17170 | return resultobj; | |
17171 | fail: | |
17172 | return NULL; | |
d14a1e28 RD |
17173 | } |
17174 | ||
17175 | ||
0085ce49 RD |
17176 | SWIGINTERN PyObject *_wrap_FileDialog_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17177 | PyObject *resultobj = 0; | |
17178 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17179 | wxString result; | |
17180 | void *argp1 = 0 ; | |
17181 | int res1 = 0 ; | |
17182 | PyObject *swig_obj[1] ; | |
17183 | ||
17184 | if (!args) SWIG_fail; | |
17185 | swig_obj[0] = args; | |
17186 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17187 | if (!SWIG_IsOK(res1)) { | |
17188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetPath" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17189 | } | |
17190 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17191 | { | |
17192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17193 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
17194 | wxPyEndAllowThreads(__tstate); | |
17195 | if (PyErr_Occurred()) SWIG_fail; | |
17196 | } | |
17197 | { | |
17198 | #if wxUSE_UNICODE | |
17199 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17200 | #else | |
17201 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17202 | #endif | |
17203 | } | |
17204 | return resultobj; | |
17205 | fail: | |
17206 | return NULL; | |
d14a1e28 RD |
17207 | } |
17208 | ||
17209 | ||
0085ce49 RD |
17210 | SWIGINTERN PyObject *_wrap_FileDialog_GetDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17211 | PyObject *resultobj = 0; | |
17212 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17213 | wxString result; | |
17214 | void *argp1 = 0 ; | |
17215 | int res1 = 0 ; | |
17216 | PyObject *swig_obj[1] ; | |
17217 | ||
17218 | if (!args) SWIG_fail; | |
17219 | swig_obj[0] = args; | |
17220 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17221 | if (!SWIG_IsOK(res1)) { | |
17222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetDirectory" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17223 | } | |
17224 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17225 | { | |
17226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17227 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
17228 | wxPyEndAllowThreads(__tstate); | |
17229 | if (PyErr_Occurred()) SWIG_fail; | |
17230 | } | |
17231 | { | |
17232 | #if wxUSE_UNICODE | |
17233 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17234 | #else | |
17235 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17236 | #endif | |
17237 | } | |
17238 | return resultobj; | |
17239 | fail: | |
17240 | return NULL; | |
d14a1e28 RD |
17241 | } |
17242 | ||
17243 | ||
0085ce49 RD |
17244 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17245 | PyObject *resultobj = 0; | |
17246 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17247 | wxString result; | |
17248 | void *argp1 = 0 ; | |
17249 | int res1 = 0 ; | |
17250 | PyObject *swig_obj[1] ; | |
17251 | ||
17252 | if (!args) SWIG_fail; | |
17253 | swig_obj[0] = args; | |
17254 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17255 | if (!SWIG_IsOK(res1)) { | |
17256 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilename" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17257 | } | |
17258 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17259 | { | |
17260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17261 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
17262 | wxPyEndAllowThreads(__tstate); | |
17263 | if (PyErr_Occurred()) SWIG_fail; | |
17264 | } | |
17265 | { | |
17266 | #if wxUSE_UNICODE | |
17267 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17268 | #else | |
17269 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17270 | #endif | |
17271 | } | |
17272 | return resultobj; | |
17273 | fail: | |
17274 | return NULL; | |
d14a1e28 RD |
17275 | } |
17276 | ||
17277 | ||
0085ce49 RD |
17278 | SWIGINTERN PyObject *_wrap_FileDialog_GetWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17279 | PyObject *resultobj = 0; | |
17280 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17281 | wxString result; | |
17282 | void *argp1 = 0 ; | |
17283 | int res1 = 0 ; | |
17284 | PyObject *swig_obj[1] ; | |
17285 | ||
17286 | if (!args) SWIG_fail; | |
17287 | swig_obj[0] = args; | |
17288 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17289 | if (!SWIG_IsOK(res1)) { | |
17290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetWildcard" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17291 | } | |
17292 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17293 | { | |
17294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17295 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
17296 | wxPyEndAllowThreads(__tstate); | |
17297 | if (PyErr_Occurred()) SWIG_fail; | |
17298 | } | |
17299 | { | |
17300 | #if wxUSE_UNICODE | |
17301 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17302 | #else | |
17303 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17304 | #endif | |
17305 | } | |
17306 | return resultobj; | |
17307 | fail: | |
17308 | return NULL; | |
d14a1e28 RD |
17309 | } |
17310 | ||
17311 | ||
0085ce49 RD |
17312 | SWIGINTERN PyObject *_wrap_FileDialog_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17313 | PyObject *resultobj = 0; | |
17314 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17315 | long result; | |
17316 | void *argp1 = 0 ; | |
17317 | int res1 = 0 ; | |
17318 | PyObject *swig_obj[1] ; | |
17319 | ||
17320 | if (!args) SWIG_fail; | |
17321 | swig_obj[0] = args; | |
17322 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17323 | if (!SWIG_IsOK(res1)) { | |
17324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetStyle" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17325 | } | |
17326 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17327 | { | |
17328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17329 | result = (long)((wxFileDialog const *)arg1)->GetStyle(); | |
17330 | wxPyEndAllowThreads(__tstate); | |
17331 | if (PyErr_Occurred()) SWIG_fail; | |
17332 | } | |
17333 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
17334 | return resultobj; | |
17335 | fail: | |
17336 | return NULL; | |
d14a1e28 RD |
17337 | } |
17338 | ||
17339 | ||
0085ce49 RD |
17340 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17341 | PyObject *resultobj = 0; | |
17342 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17343 | int result; | |
17344 | void *argp1 = 0 ; | |
17345 | int res1 = 0 ; | |
17346 | PyObject *swig_obj[1] ; | |
17347 | ||
17348 | if (!args) SWIG_fail; | |
17349 | swig_obj[0] = args; | |
17350 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17351 | if (!SWIG_IsOK(res1)) { | |
17352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilterIndex" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17353 | } | |
17354 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17355 | { | |
17356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17357 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
17358 | wxPyEndAllowThreads(__tstate); | |
17359 | if (PyErr_Occurred()) SWIG_fail; | |
17360 | } | |
17361 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17362 | return resultobj; | |
17363 | fail: | |
17364 | return NULL; | |
d14a1e28 RD |
17365 | } |
17366 | ||
17367 | ||
0085ce49 RD |
17368 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17369 | PyObject *resultobj = 0; | |
17370 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17371 | PyObject *result = 0 ; | |
17372 | void *argp1 = 0 ; | |
17373 | int res1 = 0 ; | |
17374 | PyObject *swig_obj[1] ; | |
17375 | ||
17376 | if (!args) SWIG_fail; | |
17377 | swig_obj[0] = args; | |
17378 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17379 | if (!SWIG_IsOK(res1)) { | |
17380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilenames" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17381 | } | |
17382 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17383 | { | |
17384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17385 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
17386 | wxPyEndAllowThreads(__tstate); | |
17387 | if (PyErr_Occurred()) SWIG_fail; | |
17388 | } | |
17389 | resultobj = result; | |
17390 | return resultobj; | |
17391 | fail: | |
17392 | return NULL; | |
d14a1e28 RD |
17393 | } |
17394 | ||
17395 | ||
0085ce49 RD |
17396 | SWIGINTERN PyObject *_wrap_FileDialog_GetPaths(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17397 | PyObject *resultobj = 0; | |
17398 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17399 | PyObject *result = 0 ; | |
17400 | void *argp1 = 0 ; | |
17401 | int res1 = 0 ; | |
17402 | PyObject *swig_obj[1] ; | |
17403 | ||
17404 | if (!args) SWIG_fail; | |
17405 | swig_obj[0] = args; | |
17406 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17407 | if (!SWIG_IsOK(res1)) { | |
17408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetPaths" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17409 | } | |
17410 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17411 | { | |
17412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17413 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
17414 | wxPyEndAllowThreads(__tstate); | |
17415 | if (PyErr_Occurred()) SWIG_fail; | |
17416 | } | |
17417 | resultobj = result; | |
17418 | return resultobj; | |
17419 | fail: | |
17420 | return NULL; | |
17421 | } | |
17422 | ||
17423 | ||
17424 | SWIGINTERN PyObject *FileDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17425 | PyObject *obj; | |
17426 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17427 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDialog, SWIG_NewClientData(obj)); | |
17428 | return SWIG_Py_Void(); | |
17429 | } | |
17430 | ||
17431 | SWIGINTERN PyObject *FileDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17432 | return SWIG_Python_InitShadowInstance(args); | |
17433 | } | |
17434 | ||
17435 | SWIGINTERN PyObject *_wrap_new_MultiChoiceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17436 | PyObject *resultobj = 0; | |
17437 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17438 | wxString *arg2 = 0 ; | |
17439 | wxString *arg3 = 0 ; | |
17440 | int arg4 = (int) 0 ; | |
17441 | wxString *arg5 = (wxString *) NULL ; | |
17442 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
17443 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17444 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17445 | wxMultiChoiceDialog *result = 0 ; | |
17446 | void *argp1 = 0 ; | |
17447 | int res1 = 0 ; | |
17448 | bool temp2 = false ; | |
17449 | bool temp3 = false ; | |
17450 | long val6 ; | |
17451 | int ecode6 = 0 ; | |
17452 | wxPoint temp7 ; | |
17453 | PyObject * obj0 = 0 ; | |
17454 | PyObject * obj1 = 0 ; | |
17455 | PyObject * obj2 = 0 ; | |
17456 | PyObject * obj3 = 0 ; | |
17457 | PyObject * obj4 = 0 ; | |
17458 | PyObject * obj5 = 0 ; | |
17459 | char * kwnames[] = { | |
17460 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
17461 | }; | |
17462 | ||
17463 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
17464 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17465 | if (!SWIG_IsOK(res1)) { | |
17466 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MultiChoiceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17467 | } | |
17468 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17469 | { | |
17470 | arg2 = wxString_in_helper(obj1); | |
17471 | if (arg2 == NULL) SWIG_fail; | |
17472 | temp2 = true; | |
17473 | } | |
17474 | { | |
17475 | arg3 = wxString_in_helper(obj2); | |
17476 | if (arg3 == NULL) SWIG_fail; | |
17477 | temp3 = true; | |
17478 | } | |
17479 | if (obj3) { | |
d14a1e28 | 17480 | { |
0085ce49 RD |
17481 | arg4 = PyList_Size(obj3); |
17482 | arg5 = wxString_LIST_helper(obj3); | |
17483 | if (arg5 == NULL) SWIG_fail; | |
d14a1e28 | 17484 | } |
0085ce49 RD |
17485 | } |
17486 | if (obj4) { | |
17487 | ecode6 = SWIG_AsVal_long(obj4, &val6); | |
17488 | if (!SWIG_IsOK(ecode6)) { | |
17489 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MultiChoiceDialog" "', expected argument " "6"" of type '" "long""'"); | |
17490 | } | |
17491 | arg6 = static_cast< long >(val6); | |
17492 | } | |
17493 | if (obj5) { | |
4f89f6a3 | 17494 | { |
0085ce49 RD |
17495 | arg7 = &temp7; |
17496 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
4f89f6a3 | 17497 | } |
0085ce49 RD |
17498 | } |
17499 | { | |
17500 | if (!wxPyCheckForApp()) SWIG_fail; | |
17501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17502 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
17503 | wxPyEndAllowThreads(__tstate); | |
17504 | if (PyErr_Occurred()) SWIG_fail; | |
17505 | } | |
17506 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMultiChoiceDialog, SWIG_POINTER_NEW | 0 ); | |
17507 | { | |
17508 | if (temp2) | |
17509 | delete arg2; | |
17510 | } | |
17511 | { | |
17512 | if (temp3) | |
17513 | delete arg3; | |
17514 | } | |
17515 | { | |
17516 | if (arg5) delete [] arg5; | |
17517 | } | |
17518 | return resultobj; | |
17519 | fail: | |
17520 | { | |
17521 | if (temp2) | |
17522 | delete arg2; | |
17523 | } | |
17524 | { | |
17525 | if (temp3) | |
17526 | delete arg3; | |
17527 | } | |
17528 | { | |
17529 | if (arg5) delete [] arg5; | |
17530 | } | |
17531 | return NULL; | |
d14a1e28 RD |
17532 | } |
17533 | ||
17534 | ||
0085ce49 RD |
17535 | SWIGINTERN PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17536 | PyObject *resultobj = 0; | |
17537 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
17538 | wxArrayInt *arg2 = 0 ; | |
17539 | void *argp1 = 0 ; | |
17540 | int res1 = 0 ; | |
17541 | bool temp2 = false ; | |
17542 | PyObject * obj0 = 0 ; | |
17543 | PyObject * obj1 = 0 ; | |
17544 | char * kwnames[] = { | |
17545 | (char *) "self",(char *) "selections", NULL | |
17546 | }; | |
17547 | ||
17548 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) SWIG_fail; | |
17549 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMultiChoiceDialog, 0 | 0 ); | |
17550 | if (!SWIG_IsOK(res1)) { | |
17551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiChoiceDialog_SetSelections" "', expected argument " "1"" of type '" "wxMultiChoiceDialog *""'"); | |
17552 | } | |
17553 | arg1 = reinterpret_cast< wxMultiChoiceDialog * >(argp1); | |
17554 | { | |
17555 | if (! PySequence_Check(obj1)) { | |
17556 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
17557 | SWIG_fail; | |
17558 | } | |
17559 | arg2 = new wxArrayInt; | |
17560 | temp2 = true; | |
17561 | int i, len=PySequence_Length(obj1); | |
17562 | for (i=0; i<len; i++) { | |
17563 | PyObject* item = PySequence_GetItem(obj1, i); | |
17564 | PyObject* number = PyNumber_Int(item); | |
17565 | arg2->Add(PyInt_AS_LONG(number)); | |
17566 | Py_DECREF(item); | |
17567 | Py_DECREF(number); | |
093d3ff1 | 17568 | } |
0085ce49 RD |
17569 | } |
17570 | { | |
17571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17572 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
17573 | wxPyEndAllowThreads(__tstate); | |
17574 | if (PyErr_Occurred()) SWIG_fail; | |
17575 | } | |
17576 | resultobj = SWIG_Py_Void(); | |
17577 | { | |
17578 | if (temp2) delete arg2; | |
17579 | } | |
17580 | return resultobj; | |
17581 | fail: | |
17582 | { | |
17583 | if (temp2) delete arg2; | |
17584 | } | |
17585 | return NULL; | |
d14a1e28 RD |
17586 | } |
17587 | ||
17588 | ||
0085ce49 RD |
17589 | SWIGINTERN PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17590 | PyObject *resultobj = 0; | |
17591 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
17592 | PyObject *result = 0 ; | |
17593 | void *argp1 = 0 ; | |
17594 | int res1 = 0 ; | |
17595 | PyObject *swig_obj[1] ; | |
17596 | ||
17597 | if (!args) SWIG_fail; | |
17598 | swig_obj[0] = args; | |
17599 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMultiChoiceDialog, 0 | 0 ); | |
17600 | if (!SWIG_IsOK(res1)) { | |
17601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiChoiceDialog_GetSelections" "', expected argument " "1"" of type '" "wxMultiChoiceDialog *""'"); | |
17602 | } | |
17603 | arg1 = reinterpret_cast< wxMultiChoiceDialog * >(argp1); | |
17604 | { | |
17605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17606 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
17607 | wxPyEndAllowThreads(__tstate); | |
17608 | if (PyErr_Occurred()) SWIG_fail; | |
17609 | } | |
17610 | resultobj = result; | |
17611 | return resultobj; | |
17612 | fail: | |
17613 | return NULL; | |
17614 | } | |
17615 | ||
17616 | ||
17617 | SWIGINTERN PyObject *MultiChoiceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17618 | PyObject *obj; | |
17619 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17620 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMultiChoiceDialog, SWIG_NewClientData(obj)); | |
17621 | return SWIG_Py_Void(); | |
17622 | } | |
17623 | ||
17624 | SWIGINTERN PyObject *MultiChoiceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17625 | return SWIG_Python_InitShadowInstance(args); | |
17626 | } | |
17627 | ||
17628 | SWIGINTERN PyObject *_wrap_new_SingleChoiceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17629 | PyObject *resultobj = 0; | |
17630 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17631 | wxString *arg2 = 0 ; | |
17632 | wxString *arg3 = 0 ; | |
17633 | int arg4 ; | |
17634 | wxString *arg5 = (wxString *) 0 ; | |
17635 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
17636 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17637 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17638 | wxSingleChoiceDialog *result = 0 ; | |
17639 | void *argp1 = 0 ; | |
17640 | int res1 = 0 ; | |
17641 | bool temp2 = false ; | |
17642 | bool temp3 = false ; | |
17643 | long val6 ; | |
17644 | int ecode6 = 0 ; | |
17645 | wxPoint temp7 ; | |
17646 | PyObject * obj0 = 0 ; | |
17647 | PyObject * obj1 = 0 ; | |
17648 | PyObject * obj2 = 0 ; | |
17649 | PyObject * obj3 = 0 ; | |
17650 | PyObject * obj4 = 0 ; | |
17651 | PyObject * obj5 = 0 ; | |
17652 | char * kwnames[] = { | |
17653 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
17654 | }; | |
17655 | ||
17656 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
17657 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17658 | if (!SWIG_IsOK(res1)) { | |
17659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SingleChoiceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17660 | } | |
17661 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17662 | { | |
17663 | arg2 = wxString_in_helper(obj1); | |
17664 | if (arg2 == NULL) SWIG_fail; | |
17665 | temp2 = true; | |
17666 | } | |
17667 | { | |
17668 | arg3 = wxString_in_helper(obj2); | |
17669 | if (arg3 == NULL) SWIG_fail; | |
17670 | temp3 = true; | |
17671 | } | |
17672 | { | |
17673 | arg4 = PyList_Size(obj3); | |
17674 | arg5 = wxString_LIST_helper(obj3); | |
17675 | if (arg5 == NULL) SWIG_fail; | |
17676 | } | |
17677 | if (obj4) { | |
17678 | ecode6 = SWIG_AsVal_long(obj4, &val6); | |
17679 | if (!SWIG_IsOK(ecode6)) { | |
17680 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SingleChoiceDialog" "', expected argument " "6"" of type '" "long""'"); | |
17681 | } | |
17682 | arg6 = static_cast< long >(val6); | |
17683 | } | |
17684 | if (obj5) { | |
093d3ff1 | 17685 | { |
0085ce49 RD |
17686 | arg7 = &temp7; |
17687 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
093d3ff1 | 17688 | } |
0085ce49 RD |
17689 | } |
17690 | { | |
17691 | if (!wxPyCheckForApp()) SWIG_fail; | |
17692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17693 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
17694 | wxPyEndAllowThreads(__tstate); | |
17695 | if (PyErr_Occurred()) SWIG_fail; | |
17696 | } | |
17697 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSingleChoiceDialog, SWIG_POINTER_NEW | 0 ); | |
17698 | { | |
17699 | if (temp2) | |
17700 | delete arg2; | |
17701 | } | |
17702 | { | |
17703 | if (temp3) | |
17704 | delete arg3; | |
17705 | } | |
17706 | { | |
17707 | if (arg5) delete [] arg5; | |
17708 | } | |
17709 | return resultobj; | |
17710 | fail: | |
17711 | { | |
17712 | if (temp2) | |
17713 | delete arg2; | |
17714 | } | |
17715 | { | |
17716 | if (temp3) | |
17717 | delete arg3; | |
17718 | } | |
17719 | { | |
17720 | if (arg5) delete [] arg5; | |
17721 | } | |
17722 | return NULL; | |
d14a1e28 RD |
17723 | } |
17724 | ||
17725 | ||
0085ce49 RD |
17726 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17727 | PyObject *resultobj = 0; | |
17728 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
17729 | int result; | |
17730 | void *argp1 = 0 ; | |
17731 | int res1 = 0 ; | |
17732 | PyObject *swig_obj[1] ; | |
17733 | ||
17734 | if (!args) SWIG_fail; | |
17735 | swig_obj[0] = args; | |
17736 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
17737 | if (!SWIG_IsOK(res1)) { | |
17738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_GetSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
17739 | } | |
17740 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
17741 | { | |
17742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17743 | result = (int)(arg1)->GetSelection(); | |
17744 | wxPyEndAllowThreads(__tstate); | |
17745 | if (PyErr_Occurred()) SWIG_fail; | |
17746 | } | |
17747 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17748 | return resultobj; | |
17749 | fail: | |
17750 | return NULL; | |
d14a1e28 RD |
17751 | } |
17752 | ||
17753 | ||
0085ce49 RD |
17754 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17755 | PyObject *resultobj = 0; | |
17756 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
17757 | wxString result; | |
17758 | void *argp1 = 0 ; | |
17759 | int res1 = 0 ; | |
17760 | PyObject *swig_obj[1] ; | |
17761 | ||
17762 | if (!args) SWIG_fail; | |
17763 | swig_obj[0] = args; | |
17764 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
17765 | if (!SWIG_IsOK(res1)) { | |
17766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_GetStringSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
17767 | } | |
17768 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
17769 | { | |
17770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17771 | result = (arg1)->GetStringSelection(); | |
17772 | wxPyEndAllowThreads(__tstate); | |
17773 | if (PyErr_Occurred()) SWIG_fail; | |
17774 | } | |
17775 | { | |
17776 | #if wxUSE_UNICODE | |
17777 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17778 | #else | |
17779 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17780 | #endif | |
17781 | } | |
17782 | return resultobj; | |
17783 | fail: | |
17784 | return NULL; | |
17785 | } | |
17786 | ||
17787 | ||
17788 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17789 | PyObject *resultobj = 0; | |
17790 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
17791 | int arg2 ; | |
17792 | void *argp1 = 0 ; | |
17793 | int res1 = 0 ; | |
17794 | int val2 ; | |
17795 | int ecode2 = 0 ; | |
17796 | PyObject * obj0 = 0 ; | |
17797 | PyObject * obj1 = 0 ; | |
17798 | char * kwnames[] = { | |
17799 | (char *) "self",(char *) "sel", NULL | |
17800 | }; | |
17801 | ||
17802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
17803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
17804 | if (!SWIG_IsOK(res1)) { | |
17805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_SetSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
17806 | } | |
17807 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
17808 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17809 | if (!SWIG_IsOK(ecode2)) { | |
17810 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SingleChoiceDialog_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
17811 | } | |
17812 | arg2 = static_cast< int >(val2); | |
17813 | { | |
17814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17815 | (arg1)->SetSelection(arg2); | |
17816 | wxPyEndAllowThreads(__tstate); | |
17817 | if (PyErr_Occurred()) SWIG_fail; | |
17818 | } | |
17819 | resultobj = SWIG_Py_Void(); | |
17820 | return resultobj; | |
17821 | fail: | |
17822 | return NULL; | |
17823 | } | |
17824 | ||
17825 | ||
17826 | SWIGINTERN PyObject *SingleChoiceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17827 | PyObject *obj; | |
17828 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17829 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSingleChoiceDialog, SWIG_NewClientData(obj)); | |
17830 | return SWIG_Py_Void(); | |
17831 | } | |
17832 | ||
17833 | SWIGINTERN PyObject *SingleChoiceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17834 | return SWIG_Python_InitShadowInstance(args); | |
17835 | } | |
17836 | ||
17837 | SWIGINTERN PyObject *_wrap_new_TextEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17838 | PyObject *resultobj = 0; | |
17839 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17840 | wxString *arg2 = 0 ; | |
17841 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
17842 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17843 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
17844 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
17845 | long arg5 = (long) wxTextEntryDialogStyle ; | |
17846 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
17847 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
17848 | wxTextEntryDialog *result = 0 ; | |
17849 | void *argp1 = 0 ; | |
17850 | int res1 = 0 ; | |
17851 | bool temp2 = false ; | |
17852 | bool temp3 = false ; | |
17853 | bool temp4 = false ; | |
17854 | long val5 ; | |
17855 | int ecode5 = 0 ; | |
17856 | wxPoint temp6 ; | |
17857 | PyObject * obj0 = 0 ; | |
17858 | PyObject * obj1 = 0 ; | |
17859 | PyObject * obj2 = 0 ; | |
17860 | PyObject * obj3 = 0 ; | |
17861 | PyObject * obj4 = 0 ; | |
17862 | PyObject * obj5 = 0 ; | |
17863 | char * kwnames[] = { | |
17864 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
17865 | }; | |
17866 | ||
17867 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
17868 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17869 | if (!SWIG_IsOK(res1)) { | |
17870 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17871 | } | |
17872 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17873 | { | |
17874 | arg2 = wxString_in_helper(obj1); | |
17875 | if (arg2 == NULL) SWIG_fail; | |
17876 | temp2 = true; | |
17877 | } | |
17878 | if (obj2) { | |
d14a1e28 | 17879 | { |
0085ce49 RD |
17880 | arg3 = wxString_in_helper(obj2); |
17881 | if (arg3 == NULL) SWIG_fail; | |
17882 | temp3 = true; | |
d14a1e28 | 17883 | } |
0085ce49 RD |
17884 | } |
17885 | if (obj3) { | |
d14a1e28 | 17886 | { |
0085ce49 RD |
17887 | arg4 = wxString_in_helper(obj3); |
17888 | if (arg4 == NULL) SWIG_fail; | |
17889 | temp4 = true; | |
d14a1e28 | 17890 | } |
0085ce49 RD |
17891 | } |
17892 | if (obj4) { | |
17893 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
17894 | if (!SWIG_IsOK(ecode5)) { | |
17895 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TextEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
17896 | } | |
17897 | arg5 = static_cast< long >(val5); | |
17898 | } | |
17899 | if (obj5) { | |
093d3ff1 | 17900 | { |
0085ce49 RD |
17901 | arg6 = &temp6; |
17902 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 17903 | } |
0085ce49 RD |
17904 | } |
17905 | { | |
17906 | if (!wxPyCheckForApp()) SWIG_fail; | |
17907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17908 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
17909 | wxPyEndAllowThreads(__tstate); | |
17910 | if (PyErr_Occurred()) SWIG_fail; | |
17911 | } | |
17912 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextEntryDialog, SWIG_POINTER_NEW | 0 ); | |
17913 | { | |
17914 | if (temp2) | |
17915 | delete arg2; | |
17916 | } | |
17917 | { | |
17918 | if (temp3) | |
17919 | delete arg3; | |
17920 | } | |
17921 | { | |
17922 | if (temp4) | |
17923 | delete arg4; | |
17924 | } | |
17925 | return resultobj; | |
17926 | fail: | |
17927 | { | |
17928 | if (temp2) | |
17929 | delete arg2; | |
17930 | } | |
17931 | { | |
17932 | if (temp3) | |
17933 | delete arg3; | |
17934 | } | |
17935 | { | |
17936 | if (temp4) | |
17937 | delete arg4; | |
17938 | } | |
17939 | return NULL; | |
d14a1e28 RD |
17940 | } |
17941 | ||
17942 | ||
0085ce49 RD |
17943 | SWIGINTERN PyObject *_wrap_TextEntryDialog_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17944 | PyObject *resultobj = 0; | |
17945 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
17946 | wxString result; | |
17947 | void *argp1 = 0 ; | |
17948 | int res1 = 0 ; | |
17949 | PyObject *swig_obj[1] ; | |
17950 | ||
17951 | if (!args) SWIG_fail; | |
17952 | swig_obj[0] = args; | |
17953 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextEntryDialog, 0 | 0 ); | |
17954 | if (!SWIG_IsOK(res1)) { | |
17955 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextEntryDialog_GetValue" "', expected argument " "1"" of type '" "wxTextEntryDialog *""'"); | |
17956 | } | |
17957 | arg1 = reinterpret_cast< wxTextEntryDialog * >(argp1); | |
17958 | { | |
17959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17960 | result = (arg1)->GetValue(); | |
17961 | wxPyEndAllowThreads(__tstate); | |
17962 | if (PyErr_Occurred()) SWIG_fail; | |
17963 | } | |
17964 | { | |
17965 | #if wxUSE_UNICODE | |
17966 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17967 | #else | |
17968 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17969 | #endif | |
17970 | } | |
17971 | return resultobj; | |
17972 | fail: | |
17973 | return NULL; | |
17974 | } | |
17975 | ||
17976 | ||
17977 | SWIGINTERN PyObject *_wrap_TextEntryDialog_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17978 | PyObject *resultobj = 0; | |
17979 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
17980 | wxString *arg2 = 0 ; | |
17981 | void *argp1 = 0 ; | |
17982 | int res1 = 0 ; | |
17983 | bool temp2 = false ; | |
17984 | PyObject * obj0 = 0 ; | |
17985 | PyObject * obj1 = 0 ; | |
17986 | char * kwnames[] = { | |
17987 | (char *) "self",(char *) "value", NULL | |
17988 | }; | |
17989 | ||
17990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
17991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextEntryDialog, 0 | 0 ); | |
17992 | if (!SWIG_IsOK(res1)) { | |
17993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextEntryDialog_SetValue" "', expected argument " "1"" of type '" "wxTextEntryDialog *""'"); | |
17994 | } | |
17995 | arg1 = reinterpret_cast< wxTextEntryDialog * >(argp1); | |
17996 | { | |
17997 | arg2 = wxString_in_helper(obj1); | |
17998 | if (arg2 == NULL) SWIG_fail; | |
17999 | temp2 = true; | |
18000 | } | |
18001 | { | |
18002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18003 | (arg1)->SetValue((wxString const &)*arg2); | |
18004 | wxPyEndAllowThreads(__tstate); | |
18005 | if (PyErr_Occurred()) SWIG_fail; | |
18006 | } | |
18007 | resultobj = SWIG_Py_Void(); | |
18008 | { | |
18009 | if (temp2) | |
18010 | delete arg2; | |
18011 | } | |
18012 | return resultobj; | |
18013 | fail: | |
18014 | { | |
18015 | if (temp2) | |
18016 | delete arg2; | |
18017 | } | |
18018 | return NULL; | |
d14a1e28 RD |
18019 | } |
18020 | ||
18021 | ||
0085ce49 RD |
18022 | SWIGINTERN PyObject *TextEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18023 | PyObject *obj; | |
18024 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18025 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextEntryDialog, SWIG_NewClientData(obj)); | |
18026 | return SWIG_Py_Void(); | |
d14a1e28 RD |
18027 | } |
18028 | ||
0085ce49 RD |
18029 | SWIGINTERN PyObject *TextEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18030 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
18031 | } |
18032 | ||
0085ce49 RD |
18033 | SWIGINTERN int GetPasswordFromUserPromptStr_set(PyObject *) { |
18034 | SWIG_Error(SWIG_AttributeError,"Variable GetPasswordFromUserPromptStr is read-only."); | |
18035 | return 1; | |
d14a1e28 RD |
18036 | } |
18037 | ||
18038 | ||
0085ce49 RD |
18039 | SWIGINTERN PyObject *GetPasswordFromUserPromptStr_get(void) { |
18040 | PyObject *pyobj = 0; | |
18041 | ||
18042 | { | |
18043 | #if wxUSE_UNICODE | |
18044 | pyobj = PyUnicode_FromWideChar((&wxPyGetPasswordFromUserPromptStr)->c_str(), (&wxPyGetPasswordFromUserPromptStr)->Len()); | |
18045 | #else | |
18046 | pyobj = PyString_FromStringAndSize((&wxPyGetPasswordFromUserPromptStr)->c_str(), (&wxPyGetPasswordFromUserPromptStr)->Len()); | |
18047 | #endif | |
18048 | } | |
18049 | return pyobj; | |
18050 | } | |
18051 | ||
18052 | ||
18053 | SWIGINTERN PyObject *_wrap_new_PasswordEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18054 | PyObject *resultobj = 0; | |
18055 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18056 | wxString *arg2 = 0 ; | |
18057 | wxString const &arg3_defvalue = wxPyGetPasswordFromUserPromptStr ; | |
18058 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18059 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18060 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18061 | long arg5 = (long) wxTextEntryDialogStyle ; | |
18062 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
18063 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
18064 | wxPasswordEntryDialog *result = 0 ; | |
18065 | void *argp1 = 0 ; | |
18066 | int res1 = 0 ; | |
18067 | bool temp2 = false ; | |
18068 | bool temp3 = false ; | |
18069 | bool temp4 = false ; | |
18070 | long val5 ; | |
18071 | int ecode5 = 0 ; | |
18072 | wxPoint temp6 ; | |
18073 | PyObject * obj0 = 0 ; | |
18074 | PyObject * obj1 = 0 ; | |
18075 | PyObject * obj2 = 0 ; | |
18076 | PyObject * obj3 = 0 ; | |
18077 | PyObject * obj4 = 0 ; | |
18078 | PyObject * obj5 = 0 ; | |
18079 | char * kwnames[] = { | |
18080 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "value",(char *) "style",(char *) "pos", NULL | |
18081 | }; | |
18082 | ||
18083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PasswordEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18085 | if (!SWIG_IsOK(res1)) { | |
18086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PasswordEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18087 | } | |
18088 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18089 | { | |
18090 | arg2 = wxString_in_helper(obj1); | |
18091 | if (arg2 == NULL) SWIG_fail; | |
18092 | temp2 = true; | |
18093 | } | |
18094 | if (obj2) { | |
093d3ff1 | 18095 | { |
0085ce49 RD |
18096 | arg3 = wxString_in_helper(obj2); |
18097 | if (arg3 == NULL) SWIG_fail; | |
18098 | temp3 = true; | |
093d3ff1 | 18099 | } |
0085ce49 RD |
18100 | } |
18101 | if (obj3) { | |
d14a1e28 | 18102 | { |
0085ce49 RD |
18103 | arg4 = wxString_in_helper(obj3); |
18104 | if (arg4 == NULL) SWIG_fail; | |
18105 | temp4 = true; | |
d14a1e28 | 18106 | } |
0085ce49 RD |
18107 | } |
18108 | if (obj4) { | |
18109 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18110 | if (!SWIG_IsOK(ecode5)) { | |
18111 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PasswordEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18112 | } | |
18113 | arg5 = static_cast< long >(val5); | |
18114 | } | |
18115 | if (obj5) { | |
4f89f6a3 | 18116 | { |
0085ce49 RD |
18117 | arg6 = &temp6; |
18118 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
4f89f6a3 | 18119 | } |
0085ce49 RD |
18120 | } |
18121 | { | |
18122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18123 | result = (wxPasswordEntryDialog *)new wxPasswordEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
18124 | wxPyEndAllowThreads(__tstate); | |
18125 | if (PyErr_Occurred()) SWIG_fail; | |
18126 | } | |
18127 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPasswordEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18128 | { | |
18129 | if (temp2) | |
18130 | delete arg2; | |
18131 | } | |
18132 | { | |
18133 | if (temp3) | |
18134 | delete arg3; | |
18135 | } | |
18136 | { | |
18137 | if (temp4) | |
18138 | delete arg4; | |
18139 | } | |
18140 | return resultobj; | |
18141 | fail: | |
18142 | { | |
18143 | if (temp2) | |
18144 | delete arg2; | |
18145 | } | |
18146 | { | |
18147 | if (temp3) | |
18148 | delete arg3; | |
18149 | } | |
18150 | { | |
18151 | if (temp4) | |
18152 | delete arg4; | |
18153 | } | |
18154 | return NULL; | |
d14a1e28 RD |
18155 | } |
18156 | ||
18157 | ||
0085ce49 RD |
18158 | SWIGINTERN PyObject *PasswordEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18159 | PyObject *obj; | |
18160 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18161 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPasswordEntryDialog, SWIG_NewClientData(obj)); | |
18162 | return SWIG_Py_Void(); | |
70b7a5fe RD |
18163 | } |
18164 | ||
0085ce49 RD |
18165 | SWIGINTERN PyObject *PasswordEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18166 | return SWIG_Python_InitShadowInstance(args); | |
18167 | } | |
70b7a5fe | 18168 | |
0085ce49 RD |
18169 | SWIGINTERN PyObject *_wrap_new_FontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18170 | PyObject *resultobj = 0; | |
18171 | wxFontData *result = 0 ; | |
18172 | ||
18173 | if (!SWIG_Python_UnpackTuple(args,"new_FontData",0,0,0)) SWIG_fail; | |
18174 | { | |
18175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18176 | result = (wxFontData *)new wxFontData(); | |
18177 | wxPyEndAllowThreads(__tstate); | |
18178 | if (PyErr_Occurred()) SWIG_fail; | |
18179 | } | |
18180 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontData, SWIG_POINTER_NEW | 0 ); | |
18181 | return resultobj; | |
18182 | fail: | |
18183 | return NULL; | |
70b7a5fe RD |
18184 | } |
18185 | ||
18186 | ||
0085ce49 RD |
18187 | SWIGINTERN PyObject *_wrap_delete_FontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18188 | PyObject *resultobj = 0; | |
18189 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18190 | void *argp1 = 0 ; | |
18191 | int res1 = 0 ; | |
18192 | PyObject *swig_obj[1] ; | |
18193 | ||
18194 | if (!args) SWIG_fail; | |
18195 | swig_obj[0] = args; | |
18196 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, SWIG_POINTER_DISOWN | 0 ); | |
18197 | if (!SWIG_IsOK(res1)) { | |
18198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontData" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18199 | } | |
18200 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18201 | { | |
18202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18203 | delete arg1; | |
18204 | ||
18205 | wxPyEndAllowThreads(__tstate); | |
18206 | if (PyErr_Occurred()) SWIG_fail; | |
18207 | } | |
18208 | resultobj = SWIG_Py_Void(); | |
18209 | return resultobj; | |
18210 | fail: | |
18211 | return NULL; | |
18212 | } | |
18213 | ||
18214 | ||
18215 | SWIGINTERN PyObject *_wrap_FontData_EnableEffects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18216 | PyObject *resultobj = 0; | |
18217 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18218 | bool arg2 ; | |
18219 | void *argp1 = 0 ; | |
18220 | int res1 = 0 ; | |
18221 | bool val2 ; | |
18222 | int ecode2 = 0 ; | |
18223 | PyObject * obj0 = 0 ; | |
18224 | PyObject * obj1 = 0 ; | |
18225 | char * kwnames[] = { | |
18226 | (char *) "self",(char *) "enable", NULL | |
18227 | }; | |
18228 | ||
18229 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) SWIG_fail; | |
18230 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18231 | if (!SWIG_IsOK(res1)) { | |
18232 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_EnableEffects" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18233 | } | |
18234 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18235 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18236 | if (!SWIG_IsOK(ecode2)) { | |
18237 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_EnableEffects" "', expected argument " "2"" of type '" "bool""'"); | |
18238 | } | |
18239 | arg2 = static_cast< bool >(val2); | |
18240 | { | |
18241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18242 | (arg1)->EnableEffects(arg2); | |
18243 | wxPyEndAllowThreads(__tstate); | |
18244 | if (PyErr_Occurred()) SWIG_fail; | |
18245 | } | |
18246 | resultobj = SWIG_Py_Void(); | |
18247 | return resultobj; | |
18248 | fail: | |
18249 | return NULL; | |
b2dc1044 RD |
18250 | } |
18251 | ||
18252 | ||
0085ce49 RD |
18253 | SWIGINTERN PyObject *_wrap_FontData_GetAllowSymbols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18254 | PyObject *resultobj = 0; | |
18255 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18256 | bool result; | |
18257 | void *argp1 = 0 ; | |
18258 | int res1 = 0 ; | |
18259 | PyObject *swig_obj[1] ; | |
18260 | ||
18261 | if (!args) SWIG_fail; | |
18262 | swig_obj[0] = args; | |
18263 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18264 | if (!SWIG_IsOK(res1)) { | |
18265 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetAllowSymbols" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18266 | } | |
18267 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18268 | { | |
18269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18270 | result = (bool)(arg1)->GetAllowSymbols(); | |
18271 | wxPyEndAllowThreads(__tstate); | |
18272 | if (PyErr_Occurred()) SWIG_fail; | |
18273 | } | |
18274 | { | |
18275 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18276 | } | |
18277 | return resultobj; | |
18278 | fail: | |
18279 | return NULL; | |
d14a1e28 RD |
18280 | } |
18281 | ||
18282 | ||
0085ce49 RD |
18283 | SWIGINTERN PyObject *_wrap_FontData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18284 | PyObject *resultobj = 0; | |
18285 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18286 | wxColour result; | |
18287 | void *argp1 = 0 ; | |
18288 | int res1 = 0 ; | |
18289 | PyObject *swig_obj[1] ; | |
18290 | ||
18291 | if (!args) SWIG_fail; | |
18292 | swig_obj[0] = args; | |
18293 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18294 | if (!SWIG_IsOK(res1)) { | |
18295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetColour" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18296 | } | |
18297 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18298 | { | |
18299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18300 | result = (arg1)->GetColour(); | |
18301 | wxPyEndAllowThreads(__tstate); | |
18302 | if (PyErr_Occurred()) SWIG_fail; | |
18303 | } | |
18304 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18305 | return resultobj; | |
18306 | fail: | |
18307 | return NULL; | |
d14a1e28 RD |
18308 | } |
18309 | ||
18310 | ||
0085ce49 RD |
18311 | SWIGINTERN PyObject *_wrap_FontData_GetChosenFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18312 | PyObject *resultobj = 0; | |
18313 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18314 | wxFont result; | |
18315 | void *argp1 = 0 ; | |
18316 | int res1 = 0 ; | |
18317 | PyObject *swig_obj[1] ; | |
18318 | ||
18319 | if (!args) SWIG_fail; | |
18320 | swig_obj[0] = args; | |
18321 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18322 | if (!SWIG_IsOK(res1)) { | |
18323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetChosenFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18324 | } | |
18325 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18326 | { | |
18327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18328 | result = (arg1)->GetChosenFont(); | |
18329 | wxPyEndAllowThreads(__tstate); | |
18330 | if (PyErr_Occurred()) SWIG_fail; | |
18331 | } | |
18332 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
18333 | return resultobj; | |
18334 | fail: | |
18335 | return NULL; | |
d14a1e28 RD |
18336 | } |
18337 | ||
18338 | ||
0085ce49 RD |
18339 | SWIGINTERN PyObject *_wrap_FontData_GetEnableEffects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18340 | PyObject *resultobj = 0; | |
18341 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18342 | bool result; | |
18343 | void *argp1 = 0 ; | |
18344 | int res1 = 0 ; | |
18345 | PyObject *swig_obj[1] ; | |
18346 | ||
18347 | if (!args) SWIG_fail; | |
18348 | swig_obj[0] = args; | |
18349 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18350 | if (!SWIG_IsOK(res1)) { | |
18351 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetEnableEffects" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18352 | } | |
18353 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18354 | { | |
18355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18356 | result = (bool)(arg1)->GetEnableEffects(); | |
18357 | wxPyEndAllowThreads(__tstate); | |
18358 | if (PyErr_Occurred()) SWIG_fail; | |
18359 | } | |
18360 | { | |
18361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18362 | } | |
18363 | return resultobj; | |
18364 | fail: | |
18365 | return NULL; | |
d14a1e28 RD |
18366 | } |
18367 | ||
18368 | ||
0085ce49 RD |
18369 | SWIGINTERN PyObject *_wrap_FontData_GetInitialFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18370 | PyObject *resultobj = 0; | |
18371 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18372 | wxFont result; | |
18373 | void *argp1 = 0 ; | |
18374 | int res1 = 0 ; | |
18375 | PyObject *swig_obj[1] ; | |
18376 | ||
18377 | if (!args) SWIG_fail; | |
18378 | swig_obj[0] = args; | |
18379 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18380 | if (!SWIG_IsOK(res1)) { | |
18381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetInitialFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18382 | } | |
18383 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18384 | { | |
18385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18386 | result = (arg1)->GetInitialFont(); | |
18387 | wxPyEndAllowThreads(__tstate); | |
18388 | if (PyErr_Occurred()) SWIG_fail; | |
18389 | } | |
18390 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
18391 | return resultobj; | |
18392 | fail: | |
18393 | return NULL; | |
d14a1e28 RD |
18394 | } |
18395 | ||
18396 | ||
0085ce49 RD |
18397 | SWIGINTERN PyObject *_wrap_FontData_GetShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18398 | PyObject *resultobj = 0; | |
18399 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18400 | bool result; | |
18401 | void *argp1 = 0 ; | |
18402 | int res1 = 0 ; | |
18403 | PyObject *swig_obj[1] ; | |
18404 | ||
18405 | if (!args) SWIG_fail; | |
18406 | swig_obj[0] = args; | |
18407 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18408 | if (!SWIG_IsOK(res1)) { | |
18409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetShowHelp" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18410 | } | |
18411 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18412 | { | |
18413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18414 | result = (bool)(arg1)->GetShowHelp(); | |
18415 | wxPyEndAllowThreads(__tstate); | |
18416 | if (PyErr_Occurred()) SWIG_fail; | |
18417 | } | |
18418 | { | |
18419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18420 | } | |
18421 | return resultobj; | |
18422 | fail: | |
18423 | return NULL; | |
18424 | } | |
18425 | ||
18426 | ||
18427 | SWIGINTERN PyObject *_wrap_FontData_SetAllowSymbols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18428 | PyObject *resultobj = 0; | |
18429 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18430 | bool arg2 ; | |
18431 | void *argp1 = 0 ; | |
18432 | int res1 = 0 ; | |
18433 | bool val2 ; | |
18434 | int ecode2 = 0 ; | |
18435 | PyObject * obj0 = 0 ; | |
18436 | PyObject * obj1 = 0 ; | |
18437 | char * kwnames[] = { | |
18438 | (char *) "self",(char *) "allowSymbols", NULL | |
18439 | }; | |
18440 | ||
18441 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) SWIG_fail; | |
18442 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18443 | if (!SWIG_IsOK(res1)) { | |
18444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetAllowSymbols" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18445 | } | |
18446 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18447 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18448 | if (!SWIG_IsOK(ecode2)) { | |
18449 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetAllowSymbols" "', expected argument " "2"" of type '" "bool""'"); | |
18450 | } | |
18451 | arg2 = static_cast< bool >(val2); | |
18452 | { | |
18453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18454 | (arg1)->SetAllowSymbols(arg2); | |
18455 | wxPyEndAllowThreads(__tstate); | |
18456 | if (PyErr_Occurred()) SWIG_fail; | |
18457 | } | |
18458 | resultobj = SWIG_Py_Void(); | |
18459 | return resultobj; | |
18460 | fail: | |
18461 | return NULL; | |
18462 | } | |
18463 | ||
18464 | ||
18465 | SWIGINTERN PyObject *_wrap_FontData_SetChosenFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18466 | PyObject *resultobj = 0; | |
18467 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18468 | wxFont *arg2 = 0 ; | |
18469 | void *argp1 = 0 ; | |
18470 | int res1 = 0 ; | |
18471 | void *argp2 = 0 ; | |
18472 | int res2 = 0 ; | |
18473 | PyObject * obj0 = 0 ; | |
18474 | PyObject * obj1 = 0 ; | |
18475 | char * kwnames[] = { | |
18476 | (char *) "self",(char *) "font", NULL | |
18477 | }; | |
18478 | ||
18479 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
18480 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18481 | if (!SWIG_IsOK(res1)) { | |
18482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetChosenFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18483 | } | |
18484 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18485 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
18486 | if (!SWIG_IsOK(res2)) { | |
18487 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontData_SetChosenFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18488 | } | |
18489 | if (!argp2) { | |
18490 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontData_SetChosenFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18491 | } | |
18492 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
18493 | { | |
18494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18495 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
18496 | wxPyEndAllowThreads(__tstate); | |
18497 | if (PyErr_Occurred()) SWIG_fail; | |
18498 | } | |
18499 | resultobj = SWIG_Py_Void(); | |
18500 | return resultobj; | |
18501 | fail: | |
18502 | return NULL; | |
18503 | } | |
18504 | ||
18505 | ||
18506 | SWIGINTERN PyObject *_wrap_FontData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18507 | PyObject *resultobj = 0; | |
18508 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18509 | wxColour *arg2 = 0 ; | |
18510 | void *argp1 = 0 ; | |
18511 | int res1 = 0 ; | |
18512 | wxColour temp2 ; | |
18513 | PyObject * obj0 = 0 ; | |
18514 | PyObject * obj1 = 0 ; | |
18515 | char * kwnames[] = { | |
18516 | (char *) "self",(char *) "colour", NULL | |
18517 | }; | |
18518 | ||
18519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
18520 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18521 | if (!SWIG_IsOK(res1)) { | |
18522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetColour" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18523 | } | |
18524 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18525 | { | |
18526 | arg2 = &temp2; | |
18527 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18528 | } | |
18529 | { | |
18530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18531 | (arg1)->SetColour((wxColour const &)*arg2); | |
18532 | wxPyEndAllowThreads(__tstate); | |
18533 | if (PyErr_Occurred()) SWIG_fail; | |
18534 | } | |
18535 | resultobj = SWIG_Py_Void(); | |
18536 | return resultobj; | |
18537 | fail: | |
18538 | return NULL; | |
18539 | } | |
18540 | ||
18541 | ||
18542 | SWIGINTERN PyObject *_wrap_FontData_SetInitialFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18543 | PyObject *resultobj = 0; | |
18544 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18545 | wxFont *arg2 = 0 ; | |
18546 | void *argp1 = 0 ; | |
18547 | int res1 = 0 ; | |
18548 | void *argp2 = 0 ; | |
18549 | int res2 = 0 ; | |
18550 | PyObject * obj0 = 0 ; | |
18551 | PyObject * obj1 = 0 ; | |
18552 | char * kwnames[] = { | |
18553 | (char *) "self",(char *) "font", NULL | |
18554 | }; | |
18555 | ||
18556 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
18557 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18558 | if (!SWIG_IsOK(res1)) { | |
18559 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetInitialFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18560 | } | |
18561 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18562 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
18563 | if (!SWIG_IsOK(res2)) { | |
18564 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontData_SetInitialFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18565 | } | |
18566 | if (!argp2) { | |
18567 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontData_SetInitialFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18568 | } | |
18569 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
18570 | { | |
18571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18572 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
18573 | wxPyEndAllowThreads(__tstate); | |
18574 | if (PyErr_Occurred()) SWIG_fail; | |
18575 | } | |
18576 | resultobj = SWIG_Py_Void(); | |
18577 | return resultobj; | |
18578 | fail: | |
18579 | return NULL; | |
18580 | } | |
18581 | ||
18582 | ||
18583 | SWIGINTERN PyObject *_wrap_FontData_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18584 | PyObject *resultobj = 0; | |
18585 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18586 | int arg2 ; | |
18587 | int arg3 ; | |
18588 | void *argp1 = 0 ; | |
18589 | int res1 = 0 ; | |
18590 | int val2 ; | |
18591 | int ecode2 = 0 ; | |
18592 | int val3 ; | |
18593 | int ecode3 = 0 ; | |
18594 | PyObject * obj0 = 0 ; | |
18595 | PyObject * obj1 = 0 ; | |
18596 | PyObject * obj2 = 0 ; | |
18597 | char * kwnames[] = { | |
18598 | (char *) "self",(char *) "min",(char *) "max", NULL | |
18599 | }; | |
18600 | ||
18601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18603 | if (!SWIG_IsOK(res1)) { | |
18604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetRange" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18605 | } | |
18606 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18607 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18608 | if (!SWIG_IsOK(ecode2)) { | |
18609 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
18610 | } | |
18611 | arg2 = static_cast< int >(val2); | |
18612 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18613 | if (!SWIG_IsOK(ecode3)) { | |
18614 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontData_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
18615 | } | |
18616 | arg3 = static_cast< int >(val3); | |
18617 | { | |
18618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18619 | (arg1)->SetRange(arg2,arg3); | |
18620 | wxPyEndAllowThreads(__tstate); | |
18621 | if (PyErr_Occurred()) SWIG_fail; | |
18622 | } | |
18623 | resultobj = SWIG_Py_Void(); | |
18624 | return resultobj; | |
18625 | fail: | |
18626 | return NULL; | |
18627 | } | |
18628 | ||
18629 | ||
18630 | SWIGINTERN PyObject *_wrap_FontData_SetShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18631 | PyObject *resultobj = 0; | |
18632 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18633 | bool arg2 ; | |
18634 | void *argp1 = 0 ; | |
18635 | int res1 = 0 ; | |
18636 | bool val2 ; | |
18637 | int ecode2 = 0 ; | |
18638 | PyObject * obj0 = 0 ; | |
18639 | PyObject * obj1 = 0 ; | |
18640 | char * kwnames[] = { | |
18641 | (char *) "self",(char *) "showHelp", NULL | |
18642 | }; | |
18643 | ||
18644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
18645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18646 | if (!SWIG_IsOK(res1)) { | |
18647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetShowHelp" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18648 | } | |
18649 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18650 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18651 | if (!SWIG_IsOK(ecode2)) { | |
18652 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetShowHelp" "', expected argument " "2"" of type '" "bool""'"); | |
18653 | } | |
18654 | arg2 = static_cast< bool >(val2); | |
18655 | { | |
18656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18657 | (arg1)->SetShowHelp(arg2); | |
18658 | wxPyEndAllowThreads(__tstate); | |
18659 | if (PyErr_Occurred()) SWIG_fail; | |
18660 | } | |
18661 | resultobj = SWIG_Py_Void(); | |
18662 | return resultobj; | |
18663 | fail: | |
18664 | return NULL; | |
d14a1e28 RD |
18665 | } |
18666 | ||
18667 | ||
0085ce49 RD |
18668 | SWIGINTERN PyObject *FontData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18669 | PyObject *obj; | |
18670 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18671 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontData, SWIG_NewClientData(obj)); | |
18672 | return SWIG_Py_Void(); | |
d14a1e28 RD |
18673 | } |
18674 | ||
0085ce49 RD |
18675 | SWIGINTERN PyObject *FontData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18676 | return SWIG_Python_InitShadowInstance(args); | |
18677 | } | |
d14a1e28 | 18678 | |
0085ce49 RD |
18679 | SWIGINTERN PyObject *_wrap_new_FontDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
18680 | PyObject *resultobj = 0; | |
18681 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18682 | wxFontData *arg2 = 0 ; | |
18683 | wxFontDialog *result = 0 ; | |
18684 | void *argp1 = 0 ; | |
18685 | int res1 = 0 ; | |
18686 | void *argp2 = 0 ; | |
18687 | int res2 = 0 ; | |
18688 | PyObject * obj0 = 0 ; | |
18689 | PyObject * obj1 = 0 ; | |
18690 | char * kwnames[] = { | |
18691 | (char *) "parent",(char *) "data", NULL | |
18692 | }; | |
18693 | ||
18694 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
18695 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18696 | if (!SWIG_IsOK(res1)) { | |
18697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18698 | } | |
18699 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18700 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFontData, 0 | 0); | |
18701 | if (!SWIG_IsOK(res2)) { | |
18702 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FontDialog" "', expected argument " "2"" of type '" "wxFontData const &""'"); | |
18703 | } | |
18704 | if (!argp2) { | |
18705 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontDialog" "', expected argument " "2"" of type '" "wxFontData const &""'"); | |
18706 | } | |
18707 | arg2 = reinterpret_cast< wxFontData * >(argp2); | |
18708 | { | |
18709 | if (!wxPyCheckForApp()) SWIG_fail; | |
18710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18711 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
18712 | wxPyEndAllowThreads(__tstate); | |
18713 | if (PyErr_Occurred()) SWIG_fail; | |
18714 | } | |
18715 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontDialog, SWIG_POINTER_NEW | 0 ); | |
18716 | return resultobj; | |
18717 | fail: | |
18718 | return NULL; | |
18719 | } | |
18720 | ||
18721 | ||
18722 | SWIGINTERN PyObject *_wrap_FontDialog_GetFontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18723 | PyObject *resultobj = 0; | |
18724 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
18725 | wxFontData *result = 0 ; | |
18726 | void *argp1 = 0 ; | |
18727 | int res1 = 0 ; | |
18728 | PyObject *swig_obj[1] ; | |
18729 | ||
18730 | if (!args) SWIG_fail; | |
18731 | swig_obj[0] = args; | |
18732 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontDialog, 0 | 0 ); | |
18733 | if (!SWIG_IsOK(res1)) { | |
18734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontDialog_GetFontData" "', expected argument " "1"" of type '" "wxFontDialog *""'"); | |
18735 | } | |
18736 | arg1 = reinterpret_cast< wxFontDialog * >(argp1); | |
18737 | { | |
18738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 18739 | { |
0085ce49 RD |
18740 | wxFontData &_result_ref = (arg1)->GetFontData(); |
18741 | result = (wxFontData *) &_result_ref; | |
093d3ff1 | 18742 | } |
0085ce49 RD |
18743 | wxPyEndAllowThreads(__tstate); |
18744 | if (PyErr_Occurred()) SWIG_fail; | |
18745 | } | |
18746 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18747 | return resultobj; | |
18748 | fail: | |
18749 | return NULL; | |
18750 | } | |
18751 | ||
18752 | ||
18753 | SWIGINTERN PyObject *FontDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18754 | PyObject *obj; | |
18755 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18756 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontDialog, SWIG_NewClientData(obj)); | |
18757 | return SWIG_Py_Void(); | |
18758 | } | |
18759 | ||
18760 | SWIGINTERN PyObject *FontDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18761 | return SWIG_Python_InitShadowInstance(args); | |
18762 | } | |
18763 | ||
18764 | SWIGINTERN PyObject *_wrap_GetFontFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18765 | PyObject *resultobj = 0; | |
18766 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18767 | wxFont const &arg2_defvalue = wxNullFont ; | |
18768 | wxFont *arg2 = (wxFont *) &arg2_defvalue ; | |
18769 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
18770 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18771 | wxFont result; | |
18772 | void *argp1 = 0 ; | |
18773 | int res1 = 0 ; | |
18774 | void *argp2 = 0 ; | |
18775 | int res2 = 0 ; | |
18776 | bool temp3 = false ; | |
18777 | PyObject * obj0 = 0 ; | |
18778 | PyObject * obj1 = 0 ; | |
18779 | PyObject * obj2 = 0 ; | |
18780 | char * kwnames[] = { | |
18781 | (char *) "parent",(char *) "fontInit",(char *) "caption", NULL | |
18782 | }; | |
18783 | ||
18784 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:GetFontFromUser",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18785 | if (obj0) { | |
18786 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18787 | if (!SWIG_IsOK(res1)) { | |
18788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetFontFromUser" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18789 | } | |
18790 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18791 | } | |
18792 | if (obj1) { | |
18793 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
18794 | if (!SWIG_IsOK(res2)) { | |
18795 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GetFontFromUser" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18796 | } | |
18797 | if (!argp2) { | |
18798 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GetFontFromUser" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
d14a1e28 | 18799 | } |
0085ce49 RD |
18800 | arg2 = reinterpret_cast< wxFont * >(argp2); |
18801 | } | |
18802 | if (obj2) { | |
4f89f6a3 | 18803 | { |
0085ce49 RD |
18804 | arg3 = wxString_in_helper(obj2); |
18805 | if (arg3 == NULL) SWIG_fail; | |
18806 | temp3 = true; | |
4f89f6a3 | 18807 | } |
0085ce49 RD |
18808 | } |
18809 | { | |
18810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18811 | result = wxGetFontFromUser(arg1,(wxFont const &)*arg2,(wxString const &)*arg3); | |
18812 | wxPyEndAllowThreads(__tstate); | |
18813 | if (PyErr_Occurred()) SWIG_fail; | |
18814 | } | |
18815 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
18816 | { | |
18817 | if (temp3) | |
18818 | delete arg3; | |
18819 | } | |
18820 | return resultobj; | |
18821 | fail: | |
18822 | { | |
18823 | if (temp3) | |
18824 | delete arg3; | |
18825 | } | |
18826 | return NULL; | |
18827 | } | |
18828 | ||
18829 | ||
18830 | SWIGINTERN PyObject *_wrap_new_MessageDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18831 | PyObject *resultobj = 0; | |
18832 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18833 | wxString *arg2 = 0 ; | |
18834 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
18835 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18836 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
18837 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
18838 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
18839 | wxMessageDialog *result = 0 ; | |
18840 | void *argp1 = 0 ; | |
18841 | int res1 = 0 ; | |
18842 | bool temp2 = false ; | |
18843 | bool temp3 = false ; | |
18844 | long val4 ; | |
18845 | int ecode4 = 0 ; | |
18846 | wxPoint temp5 ; | |
18847 | PyObject * obj0 = 0 ; | |
18848 | PyObject * obj1 = 0 ; | |
18849 | PyObject * obj2 = 0 ; | |
18850 | PyObject * obj3 = 0 ; | |
18851 | PyObject * obj4 = 0 ; | |
18852 | char * kwnames[] = { | |
18853 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
18854 | }; | |
18855 | ||
18856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18857 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18858 | if (!SWIG_IsOK(res1)) { | |
18859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MessageDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18860 | } | |
18861 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18862 | { | |
18863 | arg2 = wxString_in_helper(obj1); | |
18864 | if (arg2 == NULL) SWIG_fail; | |
18865 | temp2 = true; | |
18866 | } | |
18867 | if (obj2) { | |
093d3ff1 | 18868 | { |
0085ce49 RD |
18869 | arg3 = wxString_in_helper(obj2); |
18870 | if (arg3 == NULL) SWIG_fail; | |
18871 | temp3 = true; | |
093d3ff1 | 18872 | } |
0085ce49 RD |
18873 | } |
18874 | if (obj3) { | |
18875 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
18876 | if (!SWIG_IsOK(ecode4)) { | |
18877 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_MessageDialog" "', expected argument " "4"" of type '" "long""'"); | |
18878 | } | |
18879 | arg4 = static_cast< long >(val4); | |
18880 | } | |
18881 | if (obj4) { | |
d14a1e28 | 18882 | { |
0085ce49 RD |
18883 | arg5 = &temp5; |
18884 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
18885 | } | |
18886 | } | |
18887 | { | |
18888 | if (!wxPyCheckForApp()) SWIG_fail; | |
18889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18890 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
18891 | wxPyEndAllowThreads(__tstate); | |
18892 | if (PyErr_Occurred()) SWIG_fail; | |
18893 | } | |
18894 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMessageDialog, SWIG_POINTER_NEW | 0 ); | |
18895 | { | |
18896 | if (temp2) | |
18897 | delete arg2; | |
18898 | } | |
18899 | { | |
18900 | if (temp3) | |
18901 | delete arg3; | |
18902 | } | |
18903 | return resultobj; | |
18904 | fail: | |
18905 | { | |
18906 | if (temp2) | |
18907 | delete arg2; | |
18908 | } | |
18909 | { | |
18910 | if (temp3) | |
18911 | delete arg3; | |
18912 | } | |
18913 | return NULL; | |
18914 | } | |
18915 | ||
18916 | ||
18917 | SWIGINTERN PyObject *MessageDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18918 | PyObject *obj; | |
18919 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18920 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMessageDialog, SWIG_NewClientData(obj)); | |
18921 | return SWIG_Py_Void(); | |
18922 | } | |
18923 | ||
18924 | SWIGINTERN PyObject *MessageDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18925 | return SWIG_Python_InitShadowInstance(args); | |
18926 | } | |
18927 | ||
18928 | SWIGINTERN PyObject *_wrap_new_ProgressDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18929 | PyObject *resultobj = 0; | |
18930 | wxString *arg1 = 0 ; | |
18931 | wxString *arg2 = 0 ; | |
18932 | int arg3 = (int) 100 ; | |
18933 | wxWindow *arg4 = (wxWindow *) NULL ; | |
18934 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
18935 | wxProgressDialog *result = 0 ; | |
18936 | bool temp1 = false ; | |
18937 | bool temp2 = false ; | |
18938 | int val3 ; | |
18939 | int ecode3 = 0 ; | |
18940 | void *argp4 = 0 ; | |
18941 | int res4 = 0 ; | |
18942 | int val5 ; | |
18943 | int ecode5 = 0 ; | |
18944 | PyObject * obj0 = 0 ; | |
18945 | PyObject * obj1 = 0 ; | |
18946 | PyObject * obj2 = 0 ; | |
18947 | PyObject * obj3 = 0 ; | |
18948 | PyObject * obj4 = 0 ; | |
18949 | char * kwnames[] = { | |
18950 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
18951 | }; | |
18952 | ||
18953 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18954 | { | |
18955 | arg1 = wxString_in_helper(obj0); | |
18956 | if (arg1 == NULL) SWIG_fail; | |
18957 | temp1 = true; | |
18958 | } | |
18959 | { | |
18960 | arg2 = wxString_in_helper(obj1); | |
18961 | if (arg2 == NULL) SWIG_fail; | |
18962 | temp2 = true; | |
18963 | } | |
18964 | if (obj2) { | |
18965 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18966 | if (!SWIG_IsOK(ecode3)) { | |
18967 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ProgressDialog" "', expected argument " "3"" of type '" "int""'"); | |
18968 | } | |
18969 | arg3 = static_cast< int >(val3); | |
18970 | } | |
18971 | if (obj3) { | |
18972 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18973 | if (!SWIG_IsOK(res4)) { | |
18974 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ProgressDialog" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
d14a1e28 | 18975 | } |
0085ce49 RD |
18976 | arg4 = reinterpret_cast< wxWindow * >(argp4); |
18977 | } | |
18978 | if (obj4) { | |
18979 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18980 | if (!SWIG_IsOK(ecode5)) { | |
18981 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ProgressDialog" "', expected argument " "5"" of type '" "int""'"); | |
18982 | } | |
18983 | arg5 = static_cast< int >(val5); | |
18984 | } | |
18985 | { | |
18986 | if (!wxPyCheckForApp()) SWIG_fail; | |
18987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18988 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
18989 | wxPyEndAllowThreads(__tstate); | |
18990 | if (PyErr_Occurred()) SWIG_fail; | |
18991 | } | |
18992 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxProgressDialog, SWIG_POINTER_NEW | 0 ); | |
18993 | { | |
18994 | if (temp1) | |
18995 | delete arg1; | |
18996 | } | |
18997 | { | |
18998 | if (temp2) | |
18999 | delete arg2; | |
19000 | } | |
19001 | return resultobj; | |
19002 | fail: | |
19003 | { | |
19004 | if (temp1) | |
19005 | delete arg1; | |
19006 | } | |
19007 | { | |
19008 | if (temp2) | |
19009 | delete arg2; | |
19010 | } | |
19011 | return NULL; | |
19012 | } | |
19013 | ||
19014 | ||
19015 | SWIGINTERN PyObject *_wrap_ProgressDialog_Update(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19016 | PyObject *resultobj = 0; | |
19017 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19018 | int arg2 ; | |
19019 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19020 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19021 | bool result; | |
19022 | void *argp1 = 0 ; | |
19023 | int res1 = 0 ; | |
19024 | int val2 ; | |
19025 | int ecode2 = 0 ; | |
19026 | bool temp3 = false ; | |
19027 | PyObject * obj0 = 0 ; | |
19028 | PyObject * obj1 = 0 ; | |
19029 | PyObject * obj2 = 0 ; | |
19030 | char * kwnames[] = { | |
19031 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
19032 | }; | |
19033 | ||
19034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); | |
19036 | if (!SWIG_IsOK(res1)) { | |
19037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Update" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); | |
19038 | } | |
19039 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19040 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19041 | if (!SWIG_IsOK(ecode2)) { | |
19042 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProgressDialog_Update" "', expected argument " "2"" of type '" "int""'"); | |
19043 | } | |
19044 | arg2 = static_cast< int >(val2); | |
19045 | if (obj2) { | |
4f89f6a3 | 19046 | { |
0085ce49 RD |
19047 | arg3 = wxString_in_helper(obj2); |
19048 | if (arg3 == NULL) SWIG_fail; | |
19049 | temp3 = true; | |
4f89f6a3 | 19050 | } |
0085ce49 RD |
19051 | } |
19052 | { | |
19053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19054 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3); | |
19055 | wxPyEndAllowThreads(__tstate); | |
19056 | if (PyErr_Occurred()) SWIG_fail; | |
19057 | } | |
19058 | { | |
19059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19060 | } | |
19061 | { | |
19062 | if (temp3) | |
19063 | delete arg3; | |
19064 | } | |
19065 | return resultobj; | |
19066 | fail: | |
19067 | { | |
19068 | if (temp3) | |
19069 | delete arg3; | |
19070 | } | |
19071 | return NULL; | |
d14a1e28 RD |
19072 | } |
19073 | ||
19074 | ||
0085ce49 RD |
19075 | SWIGINTERN PyObject *_wrap_ProgressDialog_Resume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19076 | PyObject *resultobj = 0; | |
19077 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19078 | void *argp1 = 0 ; | |
19079 | int res1 = 0 ; | |
19080 | PyObject *swig_obj[1] ; | |
19081 | ||
19082 | if (!args) SWIG_fail; | |
19083 | swig_obj[0] = args; | |
19084 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); | |
19085 | if (!SWIG_IsOK(res1)) { | |
19086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Resume" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); | |
19087 | } | |
19088 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19089 | { | |
19090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19091 | (arg1)->Resume(); | |
19092 | wxPyEndAllowThreads(__tstate); | |
19093 | if (PyErr_Occurred()) SWIG_fail; | |
19094 | } | |
19095 | resultobj = SWIG_Py_Void(); | |
19096 | return resultobj; | |
19097 | fail: | |
19098 | return NULL; | |
d14a1e28 RD |
19099 | } |
19100 | ||
19101 | ||
0085ce49 RD |
19102 | SWIGINTERN PyObject *ProgressDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19103 | PyObject *obj; | |
19104 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19105 | SWIG_TypeNewClientData(SWIGTYPE_p_wxProgressDialog, SWIG_NewClientData(obj)); | |
19106 | return SWIG_Py_Void(); | |
d14a1e28 RD |
19107 | } |
19108 | ||
0085ce49 RD |
19109 | SWIGINTERN PyObject *ProgressDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19110 | return SWIG_Python_InitShadowInstance(args); | |
19111 | } | |
d14a1e28 | 19112 | |
0085ce49 RD |
19113 | SWIGINTERN PyObject *_wrap_new_FindDialogEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19114 | PyObject *resultobj = 0; | |
19115 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19116 | int arg2 = (int) 0 ; | |
19117 | wxFindDialogEvent *result = 0 ; | |
19118 | int val1 ; | |
19119 | int ecode1 = 0 ; | |
19120 | int val2 ; | |
19121 | int ecode2 = 0 ; | |
19122 | PyObject * obj0 = 0 ; | |
19123 | PyObject * obj1 = 0 ; | |
19124 | char * kwnames[] = { | |
19125 | (char *) "commandType",(char *) "id", NULL | |
19126 | }; | |
19127 | ||
19128 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
19129 | if (obj0) { | |
19130 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19131 | if (!SWIG_IsOK(ecode1)) { | |
19132 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FindDialogEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
19133 | } | |
19134 | arg1 = static_cast< wxEventType >(val1); | |
19135 | } | |
19136 | if (obj1) { | |
19137 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19138 | if (!SWIG_IsOK(ecode2)) { | |
19139 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FindDialogEvent" "', expected argument " "2"" of type '" "int""'"); | |
19140 | } | |
19141 | arg2 = static_cast< int >(val2); | |
19142 | } | |
19143 | { | |
19144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19145 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
19146 | wxPyEndAllowThreads(__tstate); | |
19147 | if (PyErr_Occurred()) SWIG_fail; | |
19148 | } | |
19149 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindDialogEvent, SWIG_POINTER_NEW | 0 ); | |
19150 | return resultobj; | |
19151 | fail: | |
19152 | return NULL; | |
d14a1e28 RD |
19153 | } |
19154 | ||
19155 | ||
0085ce49 RD |
19156 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19157 | PyObject *resultobj = 0; | |
19158 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19159 | int result; | |
19160 | void *argp1 = 0 ; | |
19161 | int res1 = 0 ; | |
19162 | PyObject *swig_obj[1] ; | |
19163 | ||
19164 | if (!args) SWIG_fail; | |
19165 | swig_obj[0] = args; | |
19166 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19167 | if (!SWIG_IsOK(res1)) { | |
19168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetFlags" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19169 | } | |
19170 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19171 | { | |
19172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19173 | result = (int)(arg1)->GetFlags(); | |
19174 | wxPyEndAllowThreads(__tstate); | |
19175 | if (PyErr_Occurred()) SWIG_fail; | |
19176 | } | |
19177 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19178 | return resultobj; | |
19179 | fail: | |
19180 | return NULL; | |
d14a1e28 RD |
19181 | } |
19182 | ||
19183 | ||
0085ce49 RD |
19184 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19185 | PyObject *resultobj = 0; | |
19186 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19187 | wxString *result = 0 ; | |
19188 | void *argp1 = 0 ; | |
19189 | int res1 = 0 ; | |
19190 | PyObject *swig_obj[1] ; | |
19191 | ||
19192 | if (!args) SWIG_fail; | |
19193 | swig_obj[0] = args; | |
19194 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19195 | if (!SWIG_IsOK(res1)) { | |
19196 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetFindString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19197 | } | |
19198 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19199 | { | |
19200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 19201 | { |
0085ce49 RD |
19202 | wxString const &_result_ref = (arg1)->GetFindString(); |
19203 | result = (wxString *) &_result_ref; | |
d14a1e28 | 19204 | } |
0085ce49 RD |
19205 | wxPyEndAllowThreads(__tstate); |
19206 | if (PyErr_Occurred()) SWIG_fail; | |
19207 | } | |
19208 | { | |
19209 | #if wxUSE_UNICODE | |
19210 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19211 | #else | |
19212 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19213 | #endif | |
19214 | } | |
19215 | return resultobj; | |
19216 | fail: | |
19217 | return NULL; | |
d14a1e28 RD |
19218 | } |
19219 | ||
19220 | ||
0085ce49 RD |
19221 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19222 | PyObject *resultobj = 0; | |
19223 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19224 | wxString *result = 0 ; | |
19225 | void *argp1 = 0 ; | |
19226 | int res1 = 0 ; | |
19227 | PyObject *swig_obj[1] ; | |
19228 | ||
19229 | if (!args) SWIG_fail; | |
19230 | swig_obj[0] = args; | |
19231 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19232 | if (!SWIG_IsOK(res1)) { | |
19233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetReplaceString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19234 | } | |
19235 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19236 | { | |
19237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19238 | { |
0085ce49 RD |
19239 | wxString const &_result_ref = (arg1)->GetReplaceString(); |
19240 | result = (wxString *) &_result_ref; | |
093d3ff1 | 19241 | } |
0085ce49 RD |
19242 | wxPyEndAllowThreads(__tstate); |
19243 | if (PyErr_Occurred()) SWIG_fail; | |
19244 | } | |
19245 | { | |
19246 | #if wxUSE_UNICODE | |
19247 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19248 | #else | |
19249 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19250 | #endif | |
19251 | } | |
19252 | return resultobj; | |
19253 | fail: | |
19254 | return NULL; | |
d14a1e28 RD |
19255 | } |
19256 | ||
19257 | ||
0085ce49 RD |
19258 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19259 | PyObject *resultobj = 0; | |
19260 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19261 | wxFindReplaceDialog *result = 0 ; | |
19262 | void *argp1 = 0 ; | |
19263 | int res1 = 0 ; | |
19264 | PyObject *swig_obj[1] ; | |
19265 | ||
19266 | if (!args) SWIG_fail; | |
19267 | swig_obj[0] = args; | |
19268 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19269 | if (!SWIG_IsOK(res1)) { | |
19270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetDialog" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19271 | } | |
19272 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19273 | { | |
19274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19275 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
19276 | wxPyEndAllowThreads(__tstate); | |
19277 | if (PyErr_Occurred()) SWIG_fail; | |
19278 | } | |
19279 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
19280 | return resultobj; | |
19281 | fail: | |
19282 | return NULL; | |
19283 | } | |
19284 | ||
19285 | ||
19286 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19287 | PyObject *resultobj = 0; | |
19288 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19289 | int arg2 ; | |
19290 | void *argp1 = 0 ; | |
19291 | int res1 = 0 ; | |
19292 | int val2 ; | |
19293 | int ecode2 = 0 ; | |
19294 | PyObject * obj0 = 0 ; | |
19295 | PyObject * obj1 = 0 ; | |
19296 | char * kwnames[] = { | |
19297 | (char *) "self",(char *) "flags", NULL | |
19298 | }; | |
19299 | ||
19300 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
19301 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19302 | if (!SWIG_IsOK(res1)) { | |
19303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetFlags" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19304 | } | |
19305 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19306 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19307 | if (!SWIG_IsOK(ecode2)) { | |
19308 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FindDialogEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
19309 | } | |
19310 | arg2 = static_cast< int >(val2); | |
19311 | { | |
19312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19313 | (arg1)->SetFlags(arg2); | |
19314 | wxPyEndAllowThreads(__tstate); | |
19315 | if (PyErr_Occurred()) SWIG_fail; | |
19316 | } | |
19317 | resultobj = SWIG_Py_Void(); | |
19318 | return resultobj; | |
19319 | fail: | |
19320 | return NULL; | |
19321 | } | |
19322 | ||
19323 | ||
19324 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19325 | PyObject *resultobj = 0; | |
19326 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19327 | wxString *arg2 = 0 ; | |
19328 | void *argp1 = 0 ; | |
19329 | int res1 = 0 ; | |
19330 | bool temp2 = false ; | |
19331 | PyObject * obj0 = 0 ; | |
19332 | PyObject * obj1 = 0 ; | |
19333 | char * kwnames[] = { | |
19334 | (char *) "self",(char *) "str", NULL | |
19335 | }; | |
19336 | ||
19337 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19338 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19339 | if (!SWIG_IsOK(res1)) { | |
19340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetFindString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19341 | } | |
19342 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19343 | { | |
19344 | arg2 = wxString_in_helper(obj1); | |
19345 | if (arg2 == NULL) SWIG_fail; | |
19346 | temp2 = true; | |
19347 | } | |
19348 | { | |
19349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19350 | (arg1)->SetFindString((wxString const &)*arg2); | |
19351 | wxPyEndAllowThreads(__tstate); | |
19352 | if (PyErr_Occurred()) SWIG_fail; | |
19353 | } | |
19354 | resultobj = SWIG_Py_Void(); | |
19355 | { | |
19356 | if (temp2) | |
19357 | delete arg2; | |
19358 | } | |
19359 | return resultobj; | |
19360 | fail: | |
19361 | { | |
19362 | if (temp2) | |
19363 | delete arg2; | |
19364 | } | |
19365 | return NULL; | |
d14a1e28 RD |
19366 | } |
19367 | ||
19368 | ||
0085ce49 RD |
19369 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19370 | PyObject *resultobj = 0; | |
19371 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19372 | wxString *arg2 = 0 ; | |
19373 | void *argp1 = 0 ; | |
19374 | int res1 = 0 ; | |
19375 | bool temp2 = false ; | |
19376 | PyObject * obj0 = 0 ; | |
19377 | PyObject * obj1 = 0 ; | |
19378 | char * kwnames[] = { | |
19379 | (char *) "self",(char *) "str", NULL | |
19380 | }; | |
19381 | ||
19382 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19383 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19384 | if (!SWIG_IsOK(res1)) { | |
19385 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetReplaceString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19386 | } | |
19387 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19388 | { | |
19389 | arg2 = wxString_in_helper(obj1); | |
19390 | if (arg2 == NULL) SWIG_fail; | |
19391 | temp2 = true; | |
19392 | } | |
19393 | { | |
19394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19395 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
19396 | wxPyEndAllowThreads(__tstate); | |
19397 | if (PyErr_Occurred()) SWIG_fail; | |
19398 | } | |
19399 | resultobj = SWIG_Py_Void(); | |
19400 | { | |
19401 | if (temp2) | |
19402 | delete arg2; | |
19403 | } | |
19404 | return resultobj; | |
19405 | fail: | |
19406 | { | |
19407 | if (temp2) | |
19408 | delete arg2; | |
19409 | } | |
19410 | return NULL; | |
d14a1e28 RD |
19411 | } |
19412 | ||
19413 | ||
0085ce49 RD |
19414 | SWIGINTERN PyObject *FindDialogEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19415 | PyObject *obj; | |
19416 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19417 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindDialogEvent, SWIG_NewClientData(obj)); | |
19418 | return SWIG_Py_Void(); | |
d14a1e28 RD |
19419 | } |
19420 | ||
0085ce49 RD |
19421 | SWIGINTERN PyObject *FindDialogEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19422 | return SWIG_Python_InitShadowInstance(args); | |
19423 | } | |
d14a1e28 | 19424 | |
0085ce49 RD |
19425 | SWIGINTERN PyObject *_wrap_new_FindReplaceData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19426 | PyObject *resultobj = 0; | |
19427 | int arg1 = (int) 0 ; | |
19428 | wxFindReplaceData *result = 0 ; | |
19429 | int val1 ; | |
19430 | int ecode1 = 0 ; | |
19431 | PyObject * obj0 = 0 ; | |
19432 | char * kwnames[] = { | |
19433 | (char *) "flags", NULL | |
19434 | }; | |
19435 | ||
19436 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) SWIG_fail; | |
19437 | if (obj0) { | |
19438 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19439 | if (!SWIG_IsOK(ecode1)) { | |
19440 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FindReplaceData" "', expected argument " "1"" of type '" "int""'"); | |
19441 | } | |
19442 | arg1 = static_cast< int >(val1); | |
19443 | } | |
19444 | { | |
19445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19446 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
19447 | wxPyEndAllowThreads(__tstate); | |
19448 | if (PyErr_Occurred()) SWIG_fail; | |
19449 | } | |
19450 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceData, SWIG_POINTER_NEW | 0 ); | |
19451 | return resultobj; | |
19452 | fail: | |
19453 | return NULL; | |
d14a1e28 RD |
19454 | } |
19455 | ||
19456 | ||
0085ce49 RD |
19457 | SWIGINTERN PyObject *_wrap_delete_FindReplaceData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19458 | PyObject *resultobj = 0; | |
19459 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19460 | void *argp1 = 0 ; | |
19461 | int res1 = 0 ; | |
19462 | PyObject *swig_obj[1] ; | |
19463 | ||
19464 | if (!args) SWIG_fail; | |
19465 | swig_obj[0] = args; | |
19466 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, SWIG_POINTER_DISOWN | 0 ); | |
19467 | if (!SWIG_IsOK(res1)) { | |
19468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FindReplaceData" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19469 | } | |
19470 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19471 | { | |
19472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19473 | delete arg1; | |
d14a1e28 | 19474 | |
0085ce49 RD |
19475 | wxPyEndAllowThreads(__tstate); |
19476 | if (PyErr_Occurred()) SWIG_fail; | |
19477 | } | |
19478 | resultobj = SWIG_Py_Void(); | |
19479 | return resultobj; | |
19480 | fail: | |
19481 | return NULL; | |
d14a1e28 RD |
19482 | } |
19483 | ||
19484 | ||
0085ce49 RD |
19485 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19486 | PyObject *resultobj = 0; | |
19487 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19488 | wxString *result = 0 ; | |
19489 | void *argp1 = 0 ; | |
19490 | int res1 = 0 ; | |
19491 | PyObject *swig_obj[1] ; | |
19492 | ||
19493 | if (!args) SWIG_fail; | |
19494 | swig_obj[0] = args; | |
19495 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19496 | if (!SWIG_IsOK(res1)) { | |
19497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetFindString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19498 | } | |
19499 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19500 | { | |
19501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 19502 | { |
0085ce49 RD |
19503 | wxString const &_result_ref = (arg1)->GetFindString(); |
19504 | result = (wxString *) &_result_ref; | |
4f89f6a3 | 19505 | } |
0085ce49 RD |
19506 | wxPyEndAllowThreads(__tstate); |
19507 | if (PyErr_Occurred()) SWIG_fail; | |
19508 | } | |
19509 | { | |
19510 | #if wxUSE_UNICODE | |
19511 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19512 | #else | |
19513 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19514 | #endif | |
19515 | } | |
19516 | return resultobj; | |
19517 | fail: | |
19518 | return NULL; | |
d14a1e28 RD |
19519 | } |
19520 | ||
19521 | ||
0085ce49 RD |
19522 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19523 | PyObject *resultobj = 0; | |
19524 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19525 | wxString *result = 0 ; | |
19526 | void *argp1 = 0 ; | |
19527 | int res1 = 0 ; | |
19528 | PyObject *swig_obj[1] ; | |
19529 | ||
19530 | if (!args) SWIG_fail; | |
19531 | swig_obj[0] = args; | |
19532 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19533 | if (!SWIG_IsOK(res1)) { | |
19534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetReplaceString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19535 | } | |
19536 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19537 | { | |
19538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 19539 | { |
0085ce49 RD |
19540 | wxString const &_result_ref = (arg1)->GetReplaceString(); |
19541 | result = (wxString *) &_result_ref; | |
4f89f6a3 | 19542 | } |
0085ce49 RD |
19543 | wxPyEndAllowThreads(__tstate); |
19544 | if (PyErr_Occurred()) SWIG_fail; | |
19545 | } | |
19546 | { | |
19547 | #if wxUSE_UNICODE | |
19548 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19549 | #else | |
19550 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19551 | #endif | |
19552 | } | |
19553 | return resultobj; | |
19554 | fail: | |
19555 | return NULL; | |
d14a1e28 RD |
19556 | } |
19557 | ||
19558 | ||
0085ce49 RD |
19559 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19560 | PyObject *resultobj = 0; | |
19561 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19562 | int result; | |
19563 | void *argp1 = 0 ; | |
19564 | int res1 = 0 ; | |
19565 | PyObject *swig_obj[1] ; | |
19566 | ||
19567 | if (!args) SWIG_fail; | |
19568 | swig_obj[0] = args; | |
19569 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19570 | if (!SWIG_IsOK(res1)) { | |
19571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetFlags" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19572 | } | |
19573 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19574 | { | |
19575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19576 | result = (int)(arg1)->GetFlags(); | |
19577 | wxPyEndAllowThreads(__tstate); | |
19578 | if (PyErr_Occurred()) SWIG_fail; | |
19579 | } | |
19580 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19581 | return resultobj; | |
19582 | fail: | |
19583 | return NULL; | |
19584 | } | |
19585 | ||
19586 | ||
19587 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19588 | PyObject *resultobj = 0; | |
19589 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19590 | int arg2 ; | |
19591 | void *argp1 = 0 ; | |
19592 | int res1 = 0 ; | |
19593 | int val2 ; | |
19594 | int ecode2 = 0 ; | |
19595 | PyObject * obj0 = 0 ; | |
19596 | PyObject * obj1 = 0 ; | |
19597 | char * kwnames[] = { | |
19598 | (char *) "self",(char *) "flags", NULL | |
19599 | }; | |
19600 | ||
19601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
19602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19603 | if (!SWIG_IsOK(res1)) { | |
19604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetFlags" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19605 | } | |
19606 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19607 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19608 | if (!SWIG_IsOK(ecode2)) { | |
19609 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FindReplaceData_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
19610 | } | |
19611 | arg2 = static_cast< int >(val2); | |
19612 | { | |
19613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19614 | (arg1)->SetFlags(arg2); | |
19615 | wxPyEndAllowThreads(__tstate); | |
19616 | if (PyErr_Occurred()) SWIG_fail; | |
19617 | } | |
19618 | resultobj = SWIG_Py_Void(); | |
19619 | return resultobj; | |
19620 | fail: | |
19621 | return NULL; | |
19622 | } | |
19623 | ||
19624 | ||
19625 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19626 | PyObject *resultobj = 0; | |
19627 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19628 | wxString *arg2 = 0 ; | |
19629 | void *argp1 = 0 ; | |
19630 | int res1 = 0 ; | |
19631 | bool temp2 = false ; | |
19632 | PyObject * obj0 = 0 ; | |
19633 | PyObject * obj1 = 0 ; | |
19634 | char * kwnames[] = { | |
19635 | (char *) "self",(char *) "str", NULL | |
19636 | }; | |
19637 | ||
19638 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19639 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19640 | if (!SWIG_IsOK(res1)) { | |
19641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetFindString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19642 | } | |
19643 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19644 | { | |
19645 | arg2 = wxString_in_helper(obj1); | |
19646 | if (arg2 == NULL) SWIG_fail; | |
19647 | temp2 = true; | |
19648 | } | |
19649 | { | |
19650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19651 | (arg1)->SetFindString((wxString const &)*arg2); | |
19652 | wxPyEndAllowThreads(__tstate); | |
19653 | if (PyErr_Occurred()) SWIG_fail; | |
19654 | } | |
19655 | resultobj = SWIG_Py_Void(); | |
19656 | { | |
19657 | if (temp2) | |
19658 | delete arg2; | |
19659 | } | |
19660 | return resultobj; | |
19661 | fail: | |
19662 | { | |
19663 | if (temp2) | |
19664 | delete arg2; | |
19665 | } | |
19666 | return NULL; | |
d14a1e28 RD |
19667 | } |
19668 | ||
19669 | ||
0085ce49 RD |
19670 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19671 | PyObject *resultobj = 0; | |
19672 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19673 | wxString *arg2 = 0 ; | |
19674 | void *argp1 = 0 ; | |
19675 | int res1 = 0 ; | |
19676 | bool temp2 = false ; | |
19677 | PyObject * obj0 = 0 ; | |
19678 | PyObject * obj1 = 0 ; | |
19679 | char * kwnames[] = { | |
19680 | (char *) "self",(char *) "str", NULL | |
19681 | }; | |
19682 | ||
19683 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19684 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19685 | if (!SWIG_IsOK(res1)) { | |
19686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetReplaceString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19687 | } | |
19688 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19689 | { | |
19690 | arg2 = wxString_in_helper(obj1); | |
19691 | if (arg2 == NULL) SWIG_fail; | |
19692 | temp2 = true; | |
19693 | } | |
19694 | { | |
19695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19696 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
19697 | wxPyEndAllowThreads(__tstate); | |
19698 | if (PyErr_Occurred()) SWIG_fail; | |
19699 | } | |
19700 | resultobj = SWIG_Py_Void(); | |
19701 | { | |
19702 | if (temp2) | |
19703 | delete arg2; | |
19704 | } | |
19705 | return resultobj; | |
19706 | fail: | |
19707 | { | |
19708 | if (temp2) | |
19709 | delete arg2; | |
19710 | } | |
19711 | return NULL; | |
19712 | } | |
19713 | ||
19714 | ||
19715 | SWIGINTERN PyObject *FindReplaceData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19716 | PyObject *obj; | |
19717 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19718 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindReplaceData, SWIG_NewClientData(obj)); | |
19719 | return SWIG_Py_Void(); | |
19720 | } | |
19721 | ||
19722 | SWIGINTERN PyObject *FindReplaceData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19723 | return SWIG_Python_InitShadowInstance(args); | |
19724 | } | |
19725 | ||
19726 | SWIGINTERN PyObject *_wrap_new_FindReplaceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19727 | PyObject *resultobj = 0; | |
19728 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19729 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
19730 | wxString *arg3 = 0 ; | |
19731 | int arg4 = (int) 0 ; | |
19732 | wxFindReplaceDialog *result = 0 ; | |
19733 | void *argp1 = 0 ; | |
19734 | int res1 = 0 ; | |
19735 | void *argp2 = 0 ; | |
19736 | int res2 = 0 ; | |
19737 | bool temp3 = false ; | |
19738 | int val4 ; | |
19739 | int ecode4 = 0 ; | |
19740 | PyObject * obj0 = 0 ; | |
19741 | PyObject * obj1 = 0 ; | |
19742 | PyObject * obj2 = 0 ; | |
19743 | PyObject * obj3 = 0 ; | |
19744 | char * kwnames[] = { | |
19745 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
19746 | }; | |
19747 | ||
19748 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19749 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19750 | if (!SWIG_IsOK(res1)) { | |
19751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FindReplaceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
19752 | } | |
19753 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
19754 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19755 | if (!SWIG_IsOK(res2)) { | |
19756 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FindReplaceDialog" "', expected argument " "2"" of type '" "wxFindReplaceData *""'"); | |
19757 | } | |
19758 | arg2 = reinterpret_cast< wxFindReplaceData * >(argp2); | |
19759 | { | |
19760 | arg3 = wxString_in_helper(obj2); | |
19761 | if (arg3 == NULL) SWIG_fail; | |
19762 | temp3 = true; | |
19763 | } | |
19764 | if (obj3) { | |
19765 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19766 | if (!SWIG_IsOK(ecode4)) { | |
19767 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FindReplaceDialog" "', expected argument " "4"" of type '" "int""'"); | |
19768 | } | |
19769 | arg4 = static_cast< int >(val4); | |
19770 | } | |
19771 | { | |
19772 | if (!wxPyCheckForApp()) SWIG_fail; | |
19773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19774 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
19775 | wxPyEndAllowThreads(__tstate); | |
19776 | if (PyErr_Occurred()) SWIG_fail; | |
19777 | } | |
19778 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, SWIG_POINTER_NEW | 0 ); | |
19779 | { | |
19780 | if (temp3) | |
19781 | delete arg3; | |
19782 | } | |
19783 | return resultobj; | |
19784 | fail: | |
19785 | { | |
19786 | if (temp3) | |
19787 | delete arg3; | |
19788 | } | |
19789 | return NULL; | |
d14a1e28 RD |
19790 | } |
19791 | ||
19792 | ||
0085ce49 RD |
19793 | SWIGINTERN PyObject *_wrap_new_PreFindReplaceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19794 | PyObject *resultobj = 0; | |
19795 | wxFindReplaceDialog *result = 0 ; | |
19796 | ||
19797 | if (!SWIG_Python_UnpackTuple(args,"new_PreFindReplaceDialog",0,0,0)) SWIG_fail; | |
19798 | { | |
19799 | if (!wxPyCheckForApp()) SWIG_fail; | |
19800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19801 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
19802 | wxPyEndAllowThreads(__tstate); | |
19803 | if (PyErr_Occurred()) SWIG_fail; | |
19804 | } | |
19805 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, SWIG_POINTER_OWN | 0 ); | |
19806 | return resultobj; | |
19807 | fail: | |
19808 | return NULL; | |
19809 | } | |
19810 | ||
19811 | ||
19812 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19813 | PyObject *resultobj = 0; | |
19814 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
19815 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19816 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
19817 | wxString *arg4 = 0 ; | |
19818 | int arg5 = (int) 0 ; | |
19819 | bool result; | |
19820 | void *argp1 = 0 ; | |
19821 | int res1 = 0 ; | |
19822 | void *argp2 = 0 ; | |
19823 | int res2 = 0 ; | |
19824 | void *argp3 = 0 ; | |
19825 | int res3 = 0 ; | |
19826 | bool temp4 = false ; | |
19827 | int val5 ; | |
19828 | int ecode5 = 0 ; | |
19829 | PyObject * obj0 = 0 ; | |
19830 | PyObject * obj1 = 0 ; | |
19831 | PyObject * obj2 = 0 ; | |
19832 | PyObject * obj3 = 0 ; | |
19833 | PyObject * obj4 = 0 ; | |
19834 | char * kwnames[] = { | |
19835 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
19836 | }; | |
19837 | ||
19838 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19839 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
19840 | if (!SWIG_IsOK(res1)) { | |
19841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_Create" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
19842 | } | |
19843 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
19844 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19845 | if (!SWIG_IsOK(res2)) { | |
19846 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindReplaceDialog_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
19847 | } | |
19848 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
19849 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19850 | if (!SWIG_IsOK(res3)) { | |
19851 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "FindReplaceDialog_Create" "', expected argument " "3"" of type '" "wxFindReplaceData *""'"); | |
19852 | } | |
19853 | arg3 = reinterpret_cast< wxFindReplaceData * >(argp3); | |
19854 | { | |
19855 | arg4 = wxString_in_helper(obj3); | |
19856 | if (arg4 == NULL) SWIG_fail; | |
19857 | temp4 = true; | |
19858 | } | |
19859 | if (obj4) { | |
19860 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19861 | if (!SWIG_IsOK(ecode5)) { | |
19862 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FindReplaceDialog_Create" "', expected argument " "5"" of type '" "int""'"); | |
19863 | } | |
19864 | arg5 = static_cast< int >(val5); | |
19865 | } | |
19866 | { | |
19867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19868 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
19869 | wxPyEndAllowThreads(__tstate); | |
19870 | if (PyErr_Occurred()) SWIG_fail; | |
19871 | } | |
19872 | { | |
19873 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19874 | } | |
19875 | { | |
19876 | if (temp4) | |
19877 | delete arg4; | |
19878 | } | |
19879 | return resultobj; | |
19880 | fail: | |
19881 | { | |
19882 | if (temp4) | |
19883 | delete arg4; | |
19884 | } | |
19885 | return NULL; | |
d14a1e28 RD |
19886 | } |
19887 | ||
19888 | ||
0085ce49 RD |
19889 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19890 | PyObject *resultobj = 0; | |
19891 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
19892 | wxFindReplaceData *result = 0 ; | |
19893 | void *argp1 = 0 ; | |
19894 | int res1 = 0 ; | |
19895 | PyObject *swig_obj[1] ; | |
19896 | ||
19897 | if (!args) SWIG_fail; | |
19898 | swig_obj[0] = args; | |
19899 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
19900 | if (!SWIG_IsOK(res1)) { | |
19901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_GetData" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
19902 | } | |
19903 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
19904 | { | |
19905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19906 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
19907 | wxPyEndAllowThreads(__tstate); | |
19908 | if (PyErr_Occurred()) SWIG_fail; | |
19909 | } | |
19910 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19911 | return resultobj; | |
19912 | fail: | |
19913 | return NULL; | |
19914 | } | |
19915 | ||
19916 | ||
19917 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19918 | PyObject *resultobj = 0; | |
19919 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
19920 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
19921 | void *argp1 = 0 ; | |
19922 | int res1 = 0 ; | |
19923 | void *argp2 = 0 ; | |
19924 | int res2 = 0 ; | |
19925 | PyObject * obj0 = 0 ; | |
19926 | PyObject * obj1 = 0 ; | |
19927 | char * kwnames[] = { | |
19928 | (char *) "self",(char *) "data", NULL | |
19929 | }; | |
19930 | ||
19931 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
19932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
19933 | if (!SWIG_IsOK(res1)) { | |
19934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_SetData" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
19935 | } | |
19936 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
19937 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19938 | if (!SWIG_IsOK(res2)) { | |
19939 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindReplaceDialog_SetData" "', expected argument " "2"" of type '" "wxFindReplaceData *""'"); | |
19940 | } | |
19941 | arg2 = reinterpret_cast< wxFindReplaceData * >(argp2); | |
19942 | { | |
19943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19944 | (arg1)->SetData(arg2); | |
19945 | wxPyEndAllowThreads(__tstate); | |
19946 | if (PyErr_Occurred()) SWIG_fail; | |
19947 | } | |
19948 | resultobj = SWIG_Py_Void(); | |
19949 | return resultobj; | |
19950 | fail: | |
19951 | return NULL; | |
19952 | } | |
19953 | ||
19954 | ||
19955 | SWIGINTERN PyObject *FindReplaceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19956 | PyObject *obj; | |
19957 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19958 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindReplaceDialog, SWIG_NewClientData(obj)); | |
19959 | return SWIG_Py_Void(); | |
19960 | } | |
19961 | ||
19962 | SWIGINTERN PyObject *FindReplaceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19963 | return SWIG_Python_InitShadowInstance(args); | |
19964 | } | |
19965 | ||
19966 | SWIGINTERN PyObject *_wrap_new_MDIParentFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19967 | PyObject *resultobj = 0; | |
19968 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19969 | int arg2 = (int) (int)-1 ; | |
19970 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19971 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19972 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
19973 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19974 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19975 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19976 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
19977 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
19978 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19979 | wxMDIParentFrame *result = 0 ; | |
19980 | void *argp1 = 0 ; | |
19981 | int res1 = 0 ; | |
19982 | int val2 ; | |
19983 | int ecode2 = 0 ; | |
19984 | bool temp3 = false ; | |
19985 | wxPoint temp4 ; | |
19986 | wxSize temp5 ; | |
19987 | long val6 ; | |
19988 | int ecode6 = 0 ; | |
19989 | bool temp7 = false ; | |
19990 | PyObject * obj0 = 0 ; | |
19991 | PyObject * obj1 = 0 ; | |
19992 | PyObject * obj2 = 0 ; | |
19993 | PyObject * obj3 = 0 ; | |
19994 | PyObject * obj4 = 0 ; | |
19995 | PyObject * obj5 = 0 ; | |
19996 | PyObject * obj6 = 0 ; | |
19997 | char * kwnames[] = { | |
19998 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
19999 | }; | |
20000 | ||
20001 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20002 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20003 | if (!SWIG_IsOK(res1)) { | |
20004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIParentFrame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20005 | } | |
20006 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20007 | if (obj1) { | |
20008 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20009 | if (!SWIG_IsOK(ecode2)) { | |
20010 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIParentFrame" "', expected argument " "2"" of type '" "int""'"); | |
20011 | } | |
20012 | arg2 = static_cast< int >(val2); | |
20013 | } | |
20014 | if (obj2) { | |
d14a1e28 | 20015 | { |
0085ce49 RD |
20016 | arg3 = wxString_in_helper(obj2); |
20017 | if (arg3 == NULL) SWIG_fail; | |
20018 | temp3 = true; | |
d14a1e28 | 20019 | } |
0085ce49 RD |
20020 | } |
20021 | if (obj3) { | |
d14a1e28 | 20022 | { |
0085ce49 RD |
20023 | arg4 = &temp4; |
20024 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 20025 | } |
0085ce49 RD |
20026 | } |
20027 | if (obj4) { | |
d14a1e28 | 20028 | { |
0085ce49 RD |
20029 | arg5 = &temp5; |
20030 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20031 | } | |
20032 | } | |
20033 | if (obj5) { | |
20034 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20035 | if (!SWIG_IsOK(ecode6)) { | |
20036 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MDIParentFrame" "', expected argument " "6"" of type '" "long""'"); | |
20037 | } | |
20038 | arg6 = static_cast< long >(val6); | |
20039 | } | |
20040 | if (obj6) { | |
d14a1e28 | 20041 | { |
0085ce49 RD |
20042 | arg7 = wxString_in_helper(obj6); |
20043 | if (arg7 == NULL) SWIG_fail; | |
20044 | temp7 = true; | |
20045 | } | |
20046 | } | |
20047 | { | |
20048 | if (!wxPyCheckForApp()) SWIG_fail; | |
20049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20050 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20051 | wxPyEndAllowThreads(__tstate); | |
20052 | if (PyErr_Occurred()) SWIG_fail; | |
20053 | } | |
20054 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_NEW | 0 ); | |
20055 | { | |
20056 | if (temp3) | |
20057 | delete arg3; | |
20058 | } | |
20059 | { | |
20060 | if (temp7) | |
20061 | delete arg7; | |
20062 | } | |
20063 | return resultobj; | |
20064 | fail: | |
20065 | { | |
20066 | if (temp3) | |
20067 | delete arg3; | |
20068 | } | |
20069 | { | |
20070 | if (temp7) | |
20071 | delete arg7; | |
20072 | } | |
20073 | return NULL; | |
d14a1e28 RD |
20074 | } |
20075 | ||
20076 | ||
0085ce49 RD |
20077 | SWIGINTERN PyObject *_wrap_new_PreMDIParentFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20078 | PyObject *resultobj = 0; | |
20079 | wxMDIParentFrame *result = 0 ; | |
20080 | ||
20081 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIParentFrame",0,0,0)) SWIG_fail; | |
20082 | { | |
20083 | if (!wxPyCheckForApp()) SWIG_fail; | |
20084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20085 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
20086 | wxPyEndAllowThreads(__tstate); | |
20087 | if (PyErr_Occurred()) SWIG_fail; | |
20088 | } | |
20089 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_OWN | 0 ); | |
20090 | return resultobj; | |
20091 | fail: | |
20092 | return NULL; | |
20093 | } | |
20094 | ||
20095 | ||
20096 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20097 | PyObject *resultobj = 0; | |
20098 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20099 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20100 | int arg3 = (int) (int)-1 ; | |
20101 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
20102 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
20103 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
20104 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
20105 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
20106 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
20107 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
20108 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
20109 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20110 | bool result; | |
20111 | void *argp1 = 0 ; | |
20112 | int res1 = 0 ; | |
20113 | void *argp2 = 0 ; | |
20114 | int res2 = 0 ; | |
20115 | int val3 ; | |
20116 | int ecode3 = 0 ; | |
20117 | bool temp4 = false ; | |
20118 | wxPoint temp5 ; | |
20119 | wxSize temp6 ; | |
20120 | long val7 ; | |
20121 | int ecode7 = 0 ; | |
20122 | bool temp8 = false ; | |
20123 | PyObject * obj0 = 0 ; | |
20124 | PyObject * obj1 = 0 ; | |
20125 | PyObject * obj2 = 0 ; | |
20126 | PyObject * obj3 = 0 ; | |
20127 | PyObject * obj4 = 0 ; | |
20128 | PyObject * obj5 = 0 ; | |
20129 | PyObject * obj6 = 0 ; | |
20130 | PyObject * obj7 = 0 ; | |
20131 | char * kwnames[] = { | |
20132 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20133 | }; | |
20134 | ||
20135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
20136 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20137 | if (!SWIG_IsOK(res1)) { | |
20138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Create" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20139 | } | |
20140 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20141 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20142 | if (!SWIG_IsOK(res2)) { | |
20143 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIParentFrame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20144 | } | |
20145 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20146 | if (obj2) { | |
20147 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20148 | if (!SWIG_IsOK(ecode3)) { | |
20149 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIParentFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
20150 | } | |
20151 | arg3 = static_cast< int >(val3); | |
20152 | } | |
20153 | if (obj3) { | |
d14a1e28 | 20154 | { |
0085ce49 RD |
20155 | arg4 = wxString_in_helper(obj3); |
20156 | if (arg4 == NULL) SWIG_fail; | |
20157 | temp4 = true; | |
d14a1e28 | 20158 | } |
0085ce49 RD |
20159 | } |
20160 | if (obj4) { | |
4f89f6a3 | 20161 | { |
0085ce49 RD |
20162 | arg5 = &temp5; |
20163 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 20164 | } |
0085ce49 RD |
20165 | } |
20166 | if (obj5) { | |
d14a1e28 | 20167 | { |
0085ce49 RD |
20168 | arg6 = &temp6; |
20169 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 20170 | } |
0085ce49 RD |
20171 | } |
20172 | if (obj6) { | |
20173 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
20174 | if (!SWIG_IsOK(ecode7)) { | |
20175 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MDIParentFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
20176 | } | |
20177 | arg7 = static_cast< long >(val7); | |
20178 | } | |
20179 | if (obj7) { | |
d14a1e28 | 20180 | { |
0085ce49 RD |
20181 | arg8 = wxString_in_helper(obj7); |
20182 | if (arg8 == NULL) SWIG_fail; | |
20183 | temp8 = true; | |
d14a1e28 | 20184 | } |
0085ce49 RD |
20185 | } |
20186 | { | |
20187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20188 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
20189 | wxPyEndAllowThreads(__tstate); | |
20190 | if (PyErr_Occurred()) SWIG_fail; | |
20191 | } | |
20192 | { | |
20193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20194 | } | |
20195 | { | |
20196 | if (temp4) | |
20197 | delete arg4; | |
20198 | } | |
20199 | { | |
20200 | if (temp8) | |
20201 | delete arg8; | |
20202 | } | |
20203 | return resultobj; | |
20204 | fail: | |
20205 | { | |
20206 | if (temp4) | |
20207 | delete arg4; | |
20208 | } | |
20209 | { | |
20210 | if (temp8) | |
20211 | delete arg8; | |
20212 | } | |
20213 | return NULL; | |
d14a1e28 RD |
20214 | } |
20215 | ||
20216 | ||
0085ce49 RD |
20217 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20218 | PyObject *resultobj = 0; | |
20219 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20220 | void *argp1 = 0 ; | |
20221 | int res1 = 0 ; | |
20222 | PyObject *swig_obj[1] ; | |
20223 | ||
20224 | if (!args) SWIG_fail; | |
20225 | swig_obj[0] = args; | |
20226 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20227 | if (!SWIG_IsOK(res1)) { | |
20228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ActivateNext" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20229 | } | |
20230 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20231 | { | |
20232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20233 | (arg1)->ActivateNext(); | |
20234 | wxPyEndAllowThreads(__tstate); | |
20235 | if (PyErr_Occurred()) SWIG_fail; | |
20236 | } | |
20237 | resultobj = SWIG_Py_Void(); | |
20238 | return resultobj; | |
20239 | fail: | |
20240 | return NULL; | |
d14a1e28 RD |
20241 | } |
20242 | ||
20243 | ||
0085ce49 RD |
20244 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20245 | PyObject *resultobj = 0; | |
20246 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20247 | void *argp1 = 0 ; | |
20248 | int res1 = 0 ; | |
20249 | PyObject *swig_obj[1] ; | |
20250 | ||
20251 | if (!args) SWIG_fail; | |
20252 | swig_obj[0] = args; | |
20253 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20254 | if (!SWIG_IsOK(res1)) { | |
20255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ActivatePrevious" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20256 | } | |
20257 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20258 | { | |
20259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20260 | (arg1)->ActivatePrevious(); | |
20261 | wxPyEndAllowThreads(__tstate); | |
20262 | if (PyErr_Occurred()) SWIG_fail; | |
20263 | } | |
20264 | resultobj = SWIG_Py_Void(); | |
20265 | return resultobj; | |
20266 | fail: | |
20267 | return NULL; | |
d14a1e28 RD |
20268 | } |
20269 | ||
20270 | ||
0085ce49 RD |
20271 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20272 | PyObject *resultobj = 0; | |
20273 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20274 | void *argp1 = 0 ; | |
20275 | int res1 = 0 ; | |
20276 | PyObject *swig_obj[1] ; | |
20277 | ||
20278 | if (!args) SWIG_fail; | |
20279 | swig_obj[0] = args; | |
20280 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20281 | if (!SWIG_IsOK(res1)) { | |
20282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ArrangeIcons" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20283 | } | |
20284 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20285 | { | |
20286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20287 | (arg1)->ArrangeIcons(); | |
20288 | wxPyEndAllowThreads(__tstate); | |
20289 | if (PyErr_Occurred()) SWIG_fail; | |
20290 | } | |
20291 | resultobj = SWIG_Py_Void(); | |
20292 | return resultobj; | |
20293 | fail: | |
20294 | return NULL; | |
7fdaaabe RD |
20295 | } |
20296 | ||
20297 | ||
0085ce49 RD |
20298 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Cascade(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20299 | PyObject *resultobj = 0; | |
20300 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20301 | void *argp1 = 0 ; | |
20302 | int res1 = 0 ; | |
20303 | PyObject *swig_obj[1] ; | |
20304 | ||
20305 | if (!args) SWIG_fail; | |
20306 | swig_obj[0] = args; | |
20307 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20308 | if (!SWIG_IsOK(res1)) { | |
20309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Cascade" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20310 | } | |
20311 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20312 | { | |
20313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20314 | (arg1)->Cascade(); | |
20315 | wxPyEndAllowThreads(__tstate); | |
20316 | if (PyErr_Occurred()) SWIG_fail; | |
20317 | } | |
20318 | resultobj = SWIG_Py_Void(); | |
20319 | return resultobj; | |
20320 | fail: | |
20321 | return NULL; | |
d14a1e28 RD |
20322 | } |
20323 | ||
20324 | ||
0085ce49 RD |
20325 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20326 | PyObject *resultobj = 0; | |
20327 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20328 | wxMDIChildFrame *result = 0 ; | |
20329 | void *argp1 = 0 ; | |
20330 | int res1 = 0 ; | |
20331 | PyObject *swig_obj[1] ; | |
20332 | ||
20333 | if (!args) SWIG_fail; | |
20334 | swig_obj[0] = args; | |
20335 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20336 | if (!SWIG_IsOK(res1)) { | |
20337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetActiveChild" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20338 | } | |
20339 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20340 | { | |
20341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20342 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
20343 | wxPyEndAllowThreads(__tstate); | |
20344 | if (PyErr_Occurred()) SWIG_fail; | |
20345 | } | |
20346 | { | |
20347 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
20348 | } | |
20349 | return resultobj; | |
20350 | fail: | |
20351 | return NULL; | |
d14a1e28 RD |
20352 | } |
20353 | ||
20354 | ||
0085ce49 RD |
20355 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20356 | PyObject *resultobj = 0; | |
20357 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20358 | wxMDIClientWindow *result = 0 ; | |
20359 | void *argp1 = 0 ; | |
20360 | int res1 = 0 ; | |
20361 | PyObject *swig_obj[1] ; | |
20362 | ||
20363 | if (!args) SWIG_fail; | |
20364 | swig_obj[0] = args; | |
20365 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20366 | if (!SWIG_IsOK(res1)) { | |
20367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetClientWindow" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20368 | } | |
20369 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20370 | { | |
20371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20372 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
20373 | wxPyEndAllowThreads(__tstate); | |
20374 | if (PyErr_Occurred()) SWIG_fail; | |
20375 | } | |
20376 | { | |
20377 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
20378 | } | |
20379 | return resultobj; | |
20380 | fail: | |
20381 | return NULL; | |
74a57fcd RD |
20382 | } |
20383 | ||
20384 | ||
0085ce49 RD |
20385 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20386 | PyObject *resultobj = 0; | |
20387 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20388 | wxWindow *result = 0 ; | |
20389 | void *argp1 = 0 ; | |
20390 | int res1 = 0 ; | |
20391 | PyObject *swig_obj[1] ; | |
20392 | ||
20393 | if (!args) SWIG_fail; | |
20394 | swig_obj[0] = args; | |
20395 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20396 | if (!SWIG_IsOK(res1)) { | |
20397 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetToolBar" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20398 | } | |
20399 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20400 | { | |
20401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20402 | result = (wxWindow *)(arg1)->GetToolBar(); | |
20403 | wxPyEndAllowThreads(__tstate); | |
20404 | if (PyErr_Occurred()) SWIG_fail; | |
20405 | } | |
20406 | { | |
20407 | resultobj = wxPyMake_wxObject(result, 0); | |
20408 | } | |
20409 | return resultobj; | |
20410 | fail: | |
20411 | return NULL; | |
20412 | } | |
20413 | ||
20414 | ||
20415 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Tile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20416 | PyObject *resultobj = 0; | |
20417 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20418 | wxOrientation arg2 = (wxOrientation) wxHORIZONTAL ; | |
20419 | void *argp1 = 0 ; | |
20420 | int res1 = 0 ; | |
20421 | int val2 ; | |
20422 | int ecode2 = 0 ; | |
20423 | PyObject * obj0 = 0 ; | |
20424 | PyObject * obj1 = 0 ; | |
20425 | char * kwnames[] = { | |
20426 | (char *) "self",(char *) "orient", NULL | |
20427 | }; | |
20428 | ||
20429 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MDIParentFrame_Tile",kwnames,&obj0,&obj1)) SWIG_fail; | |
20430 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20431 | if (!SWIG_IsOK(res1)) { | |
20432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Tile" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20433 | } | |
20434 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20435 | if (obj1) { | |
20436 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20437 | if (!SWIG_IsOK(ecode2)) { | |
20438 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MDIParentFrame_Tile" "', expected argument " "2"" of type '" "wxOrientation""'"); | |
20439 | } | |
20440 | arg2 = static_cast< wxOrientation >(val2); | |
20441 | } | |
20442 | { | |
20443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20444 | (arg1)->Tile(arg2); | |
20445 | wxPyEndAllowThreads(__tstate); | |
20446 | if (PyErr_Occurred()) SWIG_fail; | |
20447 | } | |
20448 | resultobj = SWIG_Py_Void(); | |
20449 | return resultobj; | |
20450 | fail: | |
20451 | return NULL; | |
20452 | } | |
20453 | ||
20454 | ||
20455 | SWIGINTERN PyObject *MDIParentFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20456 | PyObject *obj; | |
20457 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20458 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIParentFrame, SWIG_NewClientData(obj)); | |
20459 | return SWIG_Py_Void(); | |
20460 | } | |
20461 | ||
20462 | SWIGINTERN PyObject *MDIParentFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20463 | return SWIG_Python_InitShadowInstance(args); | |
20464 | } | |
20465 | ||
20466 | SWIGINTERN PyObject *_wrap_new_MDIChildFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20467 | PyObject *resultobj = 0; | |
20468 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20469 | int arg2 = (int) (int)-1 ; | |
20470 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
20471 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20472 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20473 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20474 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20475 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20476 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
20477 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
20478 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20479 | wxMDIChildFrame *result = 0 ; | |
20480 | void *argp1 = 0 ; | |
20481 | int res1 = 0 ; | |
20482 | int val2 ; | |
20483 | int ecode2 = 0 ; | |
20484 | bool temp3 = false ; | |
20485 | wxPoint temp4 ; | |
20486 | wxSize temp5 ; | |
20487 | long val6 ; | |
20488 | int ecode6 = 0 ; | |
20489 | bool temp7 = false ; | |
20490 | PyObject * obj0 = 0 ; | |
20491 | PyObject * obj1 = 0 ; | |
20492 | PyObject * obj2 = 0 ; | |
20493 | PyObject * obj3 = 0 ; | |
20494 | PyObject * obj4 = 0 ; | |
20495 | PyObject * obj5 = 0 ; | |
20496 | PyObject * obj6 = 0 ; | |
20497 | char * kwnames[] = { | |
20498 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20499 | }; | |
20500 | ||
20501 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20502 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20503 | if (!SWIG_IsOK(res1)) { | |
20504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIChildFrame" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20505 | } | |
20506 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20507 | if (obj1) { | |
20508 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20509 | if (!SWIG_IsOK(ecode2)) { | |
20510 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIChildFrame" "', expected argument " "2"" of type '" "int""'"); | |
20511 | } | |
20512 | arg2 = static_cast< int >(val2); | |
20513 | } | |
20514 | if (obj2) { | |
d14a1e28 | 20515 | { |
0085ce49 RD |
20516 | arg3 = wxString_in_helper(obj2); |
20517 | if (arg3 == NULL) SWIG_fail; | |
20518 | temp3 = true; | |
d14a1e28 | 20519 | } |
0085ce49 RD |
20520 | } |
20521 | if (obj3) { | |
4f89f6a3 | 20522 | { |
0085ce49 RD |
20523 | arg4 = &temp4; |
20524 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 20525 | } |
0085ce49 RD |
20526 | } |
20527 | if (obj4) { | |
d14a1e28 | 20528 | { |
0085ce49 RD |
20529 | arg5 = &temp5; |
20530 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 20531 | } |
0085ce49 RD |
20532 | } |
20533 | if (obj5) { | |
20534 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20535 | if (!SWIG_IsOK(ecode6)) { | |
20536 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MDIChildFrame" "', expected argument " "6"" of type '" "long""'"); | |
20537 | } | |
20538 | arg6 = static_cast< long >(val6); | |
20539 | } | |
20540 | if (obj6) { | |
4f89f6a3 | 20541 | { |
0085ce49 RD |
20542 | arg7 = wxString_in_helper(obj6); |
20543 | if (arg7 == NULL) SWIG_fail; | |
20544 | temp7 = true; | |
4f89f6a3 | 20545 | } |
0085ce49 RD |
20546 | } |
20547 | { | |
20548 | if (!wxPyCheckForApp()) SWIG_fail; | |
20549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20550 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20551 | wxPyEndAllowThreads(__tstate); | |
20552 | if (PyErr_Occurred()) SWIG_fail; | |
20553 | } | |
20554 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIChildFrame, SWIG_POINTER_NEW | 0 ); | |
20555 | { | |
20556 | if (temp3) | |
20557 | delete arg3; | |
20558 | } | |
20559 | { | |
20560 | if (temp7) | |
20561 | delete arg7; | |
20562 | } | |
20563 | return resultobj; | |
20564 | fail: | |
20565 | { | |
20566 | if (temp3) | |
20567 | delete arg3; | |
20568 | } | |
20569 | { | |
20570 | if (temp7) | |
20571 | delete arg7; | |
20572 | } | |
20573 | return NULL; | |
d14a1e28 RD |
20574 | } |
20575 | ||
20576 | ||
0085ce49 RD |
20577 | SWIGINTERN PyObject *_wrap_new_PreMDIChildFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20578 | PyObject *resultobj = 0; | |
20579 | wxMDIChildFrame *result = 0 ; | |
20580 | ||
20581 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIChildFrame",0,0,0)) SWIG_fail; | |
20582 | { | |
20583 | if (!wxPyCheckForApp()) SWIG_fail; | |
20584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20585 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
20586 | wxPyEndAllowThreads(__tstate); | |
20587 | if (PyErr_Occurred()) SWIG_fail; | |
20588 | } | |
20589 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIChildFrame, SWIG_POINTER_OWN | 0 ); | |
20590 | return resultobj; | |
20591 | fail: | |
20592 | return NULL; | |
20593 | } | |
20594 | ||
20595 | ||
20596 | SWIGINTERN PyObject *_wrap_MDIChildFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20597 | PyObject *resultobj = 0; | |
20598 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
20599 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
20600 | int arg3 = (int) (int)-1 ; | |
20601 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
20602 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
20603 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
20604 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
20605 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
20606 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
20607 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
20608 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
20609 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20610 | bool result; | |
20611 | void *argp1 = 0 ; | |
20612 | int res1 = 0 ; | |
20613 | void *argp2 = 0 ; | |
20614 | int res2 = 0 ; | |
20615 | int val3 ; | |
20616 | int ecode3 = 0 ; | |
20617 | bool temp4 = false ; | |
20618 | wxPoint temp5 ; | |
20619 | wxSize temp6 ; | |
20620 | long val7 ; | |
20621 | int ecode7 = 0 ; | |
20622 | bool temp8 = false ; | |
20623 | PyObject * obj0 = 0 ; | |
20624 | PyObject * obj1 = 0 ; | |
20625 | PyObject * obj2 = 0 ; | |
20626 | PyObject * obj3 = 0 ; | |
20627 | PyObject * obj4 = 0 ; | |
20628 | PyObject * obj5 = 0 ; | |
20629 | PyObject * obj6 = 0 ; | |
20630 | PyObject * obj7 = 0 ; | |
20631 | char * kwnames[] = { | |
20632 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20633 | }; | |
20634 | ||
20635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
20636 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIChildFrame, 0 | 0 ); | |
20637 | if (!SWIG_IsOK(res1)) { | |
20638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIChildFrame_Create" "', expected argument " "1"" of type '" "wxMDIChildFrame *""'"); | |
20639 | } | |
20640 | arg1 = reinterpret_cast< wxMDIChildFrame * >(argp1); | |
20641 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20642 | if (!SWIG_IsOK(res2)) { | |
20643 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIChildFrame_Create" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
20644 | } | |
20645 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
20646 | if (obj2) { | |
20647 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20648 | if (!SWIG_IsOK(ecode3)) { | |
20649 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIChildFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
20650 | } | |
20651 | arg3 = static_cast< int >(val3); | |
20652 | } | |
20653 | if (obj3) { | |
d14a1e28 | 20654 | { |
0085ce49 RD |
20655 | arg4 = wxString_in_helper(obj3); |
20656 | if (arg4 == NULL) SWIG_fail; | |
20657 | temp4 = true; | |
d14a1e28 | 20658 | } |
0085ce49 RD |
20659 | } |
20660 | if (obj4) { | |
4f89f6a3 | 20661 | { |
0085ce49 RD |
20662 | arg5 = &temp5; |
20663 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 20664 | } |
0085ce49 RD |
20665 | } |
20666 | if (obj5) { | |
d14a1e28 | 20667 | { |
0085ce49 RD |
20668 | arg6 = &temp6; |
20669 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 20670 | } |
0085ce49 RD |
20671 | } |
20672 | if (obj6) { | |
20673 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
20674 | if (!SWIG_IsOK(ecode7)) { | |
20675 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MDIChildFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
20676 | } | |
20677 | arg7 = static_cast< long >(val7); | |
20678 | } | |
20679 | if (obj7) { | |
d14a1e28 | 20680 | { |
0085ce49 RD |
20681 | arg8 = wxString_in_helper(obj7); |
20682 | if (arg8 == NULL) SWIG_fail; | |
20683 | temp8 = true; | |
d14a1e28 | 20684 | } |
0085ce49 RD |
20685 | } |
20686 | { | |
20687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20688 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
20689 | wxPyEndAllowThreads(__tstate); | |
20690 | if (PyErr_Occurred()) SWIG_fail; | |
20691 | } | |
20692 | { | |
20693 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20694 | } | |
20695 | { | |
20696 | if (temp4) | |
20697 | delete arg4; | |
20698 | } | |
20699 | { | |
20700 | if (temp8) | |
20701 | delete arg8; | |
20702 | } | |
20703 | return resultobj; | |
20704 | fail: | |
20705 | { | |
20706 | if (temp4) | |
20707 | delete arg4; | |
20708 | } | |
20709 | { | |
20710 | if (temp8) | |
20711 | delete arg8; | |
20712 | } | |
20713 | return NULL; | |
d14a1e28 RD |
20714 | } |
20715 | ||
20716 | ||
0085ce49 RD |
20717 | SWIGINTERN PyObject *_wrap_MDIChildFrame_Activate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20718 | PyObject *resultobj = 0; | |
20719 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
20720 | void *argp1 = 0 ; | |
20721 | int res1 = 0 ; | |
20722 | PyObject *swig_obj[1] ; | |
20723 | ||
20724 | if (!args) SWIG_fail; | |
20725 | swig_obj[0] = args; | |
20726 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIChildFrame, 0 | 0 ); | |
20727 | if (!SWIG_IsOK(res1)) { | |
20728 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIChildFrame_Activate" "', expected argument " "1"" of type '" "wxMDIChildFrame *""'"); | |
20729 | } | |
20730 | arg1 = reinterpret_cast< wxMDIChildFrame * >(argp1); | |
20731 | { | |
20732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20733 | (arg1)->Activate(); | |
20734 | wxPyEndAllowThreads(__tstate); | |
20735 | if (PyErr_Occurred()) SWIG_fail; | |
20736 | } | |
20737 | resultobj = SWIG_Py_Void(); | |
20738 | return resultobj; | |
20739 | fail: | |
20740 | return NULL; | |
d14a1e28 RD |
20741 | } |
20742 | ||
20743 | ||
0085ce49 RD |
20744 | SWIGINTERN PyObject *MDIChildFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20745 | PyObject *obj; | |
20746 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20747 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIChildFrame, SWIG_NewClientData(obj)); | |
20748 | return SWIG_Py_Void(); | |
d14a1e28 RD |
20749 | } |
20750 | ||
0085ce49 RD |
20751 | SWIGINTERN PyObject *MDIChildFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20752 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
20753 | } |
20754 | ||
0085ce49 RD |
20755 | SWIGINTERN PyObject *_wrap_new_MDIClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20756 | PyObject *resultobj = 0; | |
20757 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20758 | long arg2 = (long) 0 ; | |
20759 | wxMDIClientWindow *result = 0 ; | |
20760 | void *argp1 = 0 ; | |
20761 | int res1 = 0 ; | |
20762 | long val2 ; | |
20763 | int ecode2 = 0 ; | |
20764 | PyObject * obj0 = 0 ; | |
20765 | PyObject * obj1 = 0 ; | |
20766 | char * kwnames[] = { | |
20767 | (char *) "parent",(char *) "style", NULL | |
20768 | }; | |
20769 | ||
20770 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
20771 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20772 | if (!SWIG_IsOK(res1)) { | |
20773 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIClientWindow" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20774 | } | |
20775 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20776 | if (obj1) { | |
20777 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
20778 | if (!SWIG_IsOK(ecode2)) { | |
20779 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIClientWindow" "', expected argument " "2"" of type '" "long""'"); | |
20780 | } | |
20781 | arg2 = static_cast< long >(val2); | |
20782 | } | |
20783 | { | |
20784 | if (!wxPyCheckForApp()) SWIG_fail; | |
20785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20786 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
20787 | wxPyEndAllowThreads(__tstate); | |
20788 | if (PyErr_Occurred()) SWIG_fail; | |
20789 | } | |
20790 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIClientWindow, SWIG_POINTER_NEW | 0 ); | |
20791 | return resultobj; | |
20792 | fail: | |
20793 | return NULL; | |
b2dc1044 RD |
20794 | } |
20795 | ||
20796 | ||
0085ce49 RD |
20797 | SWIGINTERN PyObject *_wrap_new_PreMDIClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20798 | PyObject *resultobj = 0; | |
20799 | wxMDIClientWindow *result = 0 ; | |
20800 | ||
20801 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIClientWindow",0,0,0)) SWIG_fail; | |
20802 | { | |
20803 | if (!wxPyCheckForApp()) SWIG_fail; | |
20804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20805 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
20806 | wxPyEndAllowThreads(__tstate); | |
20807 | if (PyErr_Occurred()) SWIG_fail; | |
20808 | } | |
20809 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIClientWindow, SWIG_POINTER_OWN | 0 ); | |
20810 | return resultobj; | |
20811 | fail: | |
20812 | return NULL; | |
20813 | } | |
20814 | ||
20815 | ||
20816 | SWIGINTERN PyObject *_wrap_MDIClientWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20817 | PyObject *resultobj = 0; | |
20818 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
20819 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
20820 | long arg3 = (long) 0 ; | |
20821 | bool result; | |
20822 | void *argp1 = 0 ; | |
20823 | int res1 = 0 ; | |
20824 | void *argp2 = 0 ; | |
20825 | int res2 = 0 ; | |
20826 | long val3 ; | |
20827 | int ecode3 = 0 ; | |
20828 | PyObject * obj0 = 0 ; | |
20829 | PyObject * obj1 = 0 ; | |
20830 | PyObject * obj2 = 0 ; | |
20831 | char * kwnames[] = { | |
20832 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
20833 | }; | |
20834 | ||
20835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIClientWindow, 0 | 0 ); | |
20837 | if (!SWIG_IsOK(res1)) { | |
20838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIClientWindow_Create" "', expected argument " "1"" of type '" "wxMDIClientWindow *""'"); | |
20839 | } | |
20840 | arg1 = reinterpret_cast< wxMDIClientWindow * >(argp1); | |
20841 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20842 | if (!SWIG_IsOK(res2)) { | |
20843 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIClientWindow_Create" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
20844 | } | |
20845 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
20846 | if (obj2) { | |
20847 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
20848 | if (!SWIG_IsOK(ecode3)) { | |
20849 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIClientWindow_Create" "', expected argument " "3"" of type '" "long""'"); | |
20850 | } | |
20851 | arg3 = static_cast< long >(val3); | |
20852 | } | |
20853 | { | |
20854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20855 | result = (bool)(arg1)->Create(arg2,arg3); | |
20856 | wxPyEndAllowThreads(__tstate); | |
20857 | if (PyErr_Occurred()) SWIG_fail; | |
20858 | } | |
20859 | { | |
20860 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20861 | } | |
20862 | return resultobj; | |
20863 | fail: | |
20864 | return NULL; | |
20865 | } | |
20866 | ||
20867 | ||
20868 | SWIGINTERN PyObject *MDIClientWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20869 | PyObject *obj; | |
20870 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20871 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIClientWindow, SWIG_NewClientData(obj)); | |
20872 | return SWIG_Py_Void(); | |
20873 | } | |
20874 | ||
20875 | SWIGINTERN PyObject *MDIClientWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20876 | return SWIG_Python_InitShadowInstance(args); | |
20877 | } | |
20878 | ||
20879 | SWIGINTERN PyObject *_wrap_new_PyWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20880 | PyObject *resultobj = 0; | |
20881 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20882 | int arg2 = (int) (int)-1 ; | |
20883 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20884 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20885 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20886 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20887 | long arg5 = (long) 0 ; | |
20888 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
20889 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20890 | wxPyWindow *result = 0 ; | |
20891 | void *argp1 = 0 ; | |
20892 | int res1 = 0 ; | |
20893 | int val2 ; | |
20894 | int ecode2 = 0 ; | |
20895 | wxPoint temp3 ; | |
20896 | wxSize temp4 ; | |
20897 | long val5 ; | |
20898 | int ecode5 = 0 ; | |
20899 | bool temp6 = false ; | |
20900 | PyObject * obj0 = 0 ; | |
20901 | PyObject * obj1 = 0 ; | |
20902 | PyObject * obj2 = 0 ; | |
20903 | PyObject * obj3 = 0 ; | |
20904 | PyObject * obj4 = 0 ; | |
20905 | PyObject * obj5 = 0 ; | |
20906 | char * kwnames[] = { | |
20907 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20908 | }; | |
20909 | ||
20910 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20911 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20912 | if (!SWIG_IsOK(res1)) { | |
20913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20914 | } | |
20915 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20916 | if (obj1) { | |
20917 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20918 | if (!SWIG_IsOK(ecode2)) { | |
20919 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyWindow" "', expected argument " "2"" of type '" "int""'"); | |
20920 | } | |
20921 | arg2 = static_cast< int >(val2); | |
20922 | } | |
20923 | if (obj2) { | |
b2dc1044 | 20924 | { |
0085ce49 RD |
20925 | arg3 = &temp3; |
20926 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20927 | } | |
20928 | } | |
20929 | if (obj3) { | |
20930 | { | |
20931 | arg4 = &temp4; | |
20932 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20933 | } | |
20934 | } | |
20935 | if (obj4) { | |
20936 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
20937 | if (!SWIG_IsOK(ecode5)) { | |
20938 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyWindow" "', expected argument " "5"" of type '" "long""'"); | |
20939 | } | |
20940 | arg5 = static_cast< long >(val5); | |
20941 | } | |
20942 | if (obj5) { | |
20943 | { | |
20944 | arg6 = wxString_in_helper(obj5); | |
20945 | if (arg6 == NULL) SWIG_fail; | |
20946 | temp6 = true; | |
b2dc1044 | 20947 | } |
0085ce49 RD |
20948 | } |
20949 | { | |
20950 | if (!wxPyCheckForApp()) SWIG_fail; | |
20951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20952 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20953 | wxPyEndAllowThreads(__tstate); | |
20954 | if (PyErr_Occurred()) SWIG_fail; | |
20955 | } | |
20956 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyWindow, SWIG_POINTER_NEW | 0 ); | |
20957 | { | |
20958 | if (temp6) | |
20959 | delete arg6; | |
20960 | } | |
20961 | return resultobj; | |
20962 | fail: | |
20963 | { | |
20964 | if (temp6) | |
20965 | delete arg6; | |
20966 | } | |
20967 | return NULL; | |
b2dc1044 RD |
20968 | } |
20969 | ||
20970 | ||
0085ce49 RD |
20971 | SWIGINTERN PyObject *_wrap_new_PrePyWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20972 | PyObject *resultobj = 0; | |
20973 | wxPyWindow *result = 0 ; | |
20974 | ||
20975 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyWindow",0,0,0)) SWIG_fail; | |
20976 | { | |
20977 | if (!wxPyCheckForApp()) SWIG_fail; | |
20978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20979 | result = (wxPyWindow *)new wxPyWindow(); | |
20980 | wxPyEndAllowThreads(__tstate); | |
20981 | if (PyErr_Occurred()) SWIG_fail; | |
20982 | } | |
20983 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyWindow, SWIG_POINTER_OWN | 0 ); | |
20984 | return resultobj; | |
20985 | fail: | |
20986 | return NULL; | |
20987 | } | |
20988 | ||
20989 | ||
20990 | SWIGINTERN PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20991 | PyObject *resultobj = 0; | |
20992 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
20993 | PyObject *arg2 = (PyObject *) 0 ; | |
20994 | PyObject *arg3 = (PyObject *) 0 ; | |
20995 | void *argp1 = 0 ; | |
20996 | int res1 = 0 ; | |
20997 | PyObject * obj0 = 0 ; | |
20998 | PyObject * obj1 = 0 ; | |
20999 | PyObject * obj2 = 0 ; | |
21000 | char * kwnames[] = { | |
21001 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21002 | }; | |
21003 | ||
21004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21005 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21006 | if (!SWIG_IsOK(res1)) { | |
21007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21008 | } | |
21009 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21010 | arg2 = obj1; | |
21011 | arg3 = obj2; | |
21012 | { | |
21013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21014 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21015 | wxPyEndAllowThreads(__tstate); | |
21016 | if (PyErr_Occurred()) SWIG_fail; | |
21017 | } | |
21018 | resultobj = SWIG_Py_Void(); | |
21019 | return resultobj; | |
21020 | fail: | |
21021 | return NULL; | |
21022 | } | |
21023 | ||
21024 | ||
21025 | SWIGINTERN PyObject *_wrap_PyWindow_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21026 | PyObject *resultobj = 0; | |
21027 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21028 | wxSize *arg2 = 0 ; | |
21029 | void *argp1 = 0 ; | |
21030 | int res1 = 0 ; | |
21031 | wxSize temp2 ; | |
21032 | PyObject * obj0 = 0 ; | |
21033 | PyObject * obj1 = 0 ; | |
21034 | char * kwnames[] = { | |
21035 | (char *) "self",(char *) "size", NULL | |
21036 | }; | |
21037 | ||
21038 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
21039 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21040 | if (!SWIG_IsOK(res1)) { | |
21041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_SetBestSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21042 | } | |
21043 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21044 | { | |
21045 | arg2 = &temp2; | |
21046 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21047 | } | |
21048 | { | |
21049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21050 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
21051 | wxPyEndAllowThreads(__tstate); | |
21052 | if (PyErr_Occurred()) SWIG_fail; | |
21053 | } | |
21054 | resultobj = SWIG_Py_Void(); | |
21055 | return resultobj; | |
21056 | fail: | |
21057 | return NULL; | |
21058 | } | |
21059 | ||
21060 | ||
21061 | SWIGINTERN PyObject *_wrap_PyWindow_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21062 | PyObject *resultobj = 0; | |
21063 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21064 | wxDC *arg2 = (wxDC *) 0 ; | |
21065 | bool result; | |
21066 | void *argp1 = 0 ; | |
21067 | int res1 = 0 ; | |
21068 | void *argp2 = 0 ; | |
21069 | int res2 = 0 ; | |
21070 | PyObject * obj0 = 0 ; | |
21071 | PyObject * obj1 = 0 ; | |
21072 | char * kwnames[] = { | |
21073 | (char *) "self",(char *) "dc", NULL | |
21074 | }; | |
21075 | ||
21076 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21077 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21078 | if (!SWIG_IsOK(res1)) { | |
21079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21080 | } | |
21081 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21082 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21083 | if (!SWIG_IsOK(res2)) { | |
21084 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyWindow_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
21085 | } | |
21086 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
21087 | { | |
21088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21089 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
21090 | wxPyEndAllowThreads(__tstate); | |
21091 | if (PyErr_Occurred()) SWIG_fail; | |
21092 | } | |
21093 | { | |
21094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21095 | } | |
21096 | return resultobj; | |
21097 | fail: | |
21098 | return NULL; | |
21099 | } | |
21100 | ||
21101 | ||
21102 | SWIGINTERN PyObject *_wrap_PyWindow_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21103 | PyObject *resultobj = 0; | |
21104 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21105 | int arg2 ; | |
21106 | int arg3 ; | |
21107 | int arg4 ; | |
21108 | int arg5 ; | |
21109 | void *argp1 = 0 ; | |
21110 | int res1 = 0 ; | |
21111 | int val2 ; | |
21112 | int ecode2 = 0 ; | |
21113 | int val3 ; | |
21114 | int ecode3 = 0 ; | |
21115 | int val4 ; | |
21116 | int ecode4 = 0 ; | |
21117 | int val5 ; | |
21118 | int ecode5 = 0 ; | |
21119 | PyObject * obj0 = 0 ; | |
21120 | PyObject * obj1 = 0 ; | |
21121 | PyObject * obj2 = 0 ; | |
21122 | PyObject * obj3 = 0 ; | |
21123 | PyObject * obj4 = 0 ; | |
21124 | char * kwnames[] = { | |
21125 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
21126 | }; | |
21127 | ||
21128 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
21129 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21130 | if (!SWIG_IsOK(res1)) { | |
21131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21132 | } | |
21133 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21134 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21135 | if (!SWIG_IsOK(ecode2)) { | |
21136 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
21137 | } | |
21138 | arg2 = static_cast< int >(val2); | |
21139 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21140 | if (!SWIG_IsOK(ecode3)) { | |
21141 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
21142 | } | |
21143 | arg3 = static_cast< int >(val3); | |
21144 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21145 | if (!SWIG_IsOK(ecode4)) { | |
21146 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
21147 | } | |
21148 | arg4 = static_cast< int >(val4); | |
21149 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21150 | if (!SWIG_IsOK(ecode5)) { | |
21151 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
21152 | } | |
21153 | arg5 = static_cast< int >(val5); | |
21154 | { | |
21155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21156 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
21157 | wxPyEndAllowThreads(__tstate); | |
21158 | if (PyErr_Occurred()) SWIG_fail; | |
21159 | } | |
21160 | resultobj = SWIG_Py_Void(); | |
21161 | return resultobj; | |
21162 | fail: | |
21163 | return NULL; | |
21164 | } | |
21165 | ||
21166 | ||
21167 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21168 | PyObject *resultobj = 0; | |
21169 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21170 | int arg2 ; | |
21171 | int arg3 ; | |
21172 | int arg4 ; | |
21173 | int arg5 ; | |
21174 | int arg6 = (int) wxSIZE_AUTO ; | |
21175 | void *argp1 = 0 ; | |
21176 | int res1 = 0 ; | |
21177 | int val2 ; | |
21178 | int ecode2 = 0 ; | |
21179 | int val3 ; | |
21180 | int ecode3 = 0 ; | |
21181 | int val4 ; | |
21182 | int ecode4 = 0 ; | |
21183 | int val5 ; | |
21184 | int ecode5 = 0 ; | |
21185 | int val6 ; | |
21186 | int ecode6 = 0 ; | |
21187 | PyObject * obj0 = 0 ; | |
21188 | PyObject * obj1 = 0 ; | |
21189 | PyObject * obj2 = 0 ; | |
21190 | PyObject * obj3 = 0 ; | |
21191 | PyObject * obj4 = 0 ; | |
21192 | PyObject * obj5 = 0 ; | |
21193 | char * kwnames[] = { | |
21194 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
21195 | }; | |
21196 | ||
21197 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21198 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21199 | if (!SWIG_IsOK(res1)) { | |
21200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21201 | } | |
21202 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21203 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21204 | if (!SWIG_IsOK(ecode2)) { | |
21205 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
21206 | } | |
21207 | arg2 = static_cast< int >(val2); | |
21208 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21209 | if (!SWIG_IsOK(ecode3)) { | |
21210 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
21211 | } | |
21212 | arg3 = static_cast< int >(val3); | |
21213 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21214 | if (!SWIG_IsOK(ecode4)) { | |
21215 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyWindow_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
21216 | } | |
21217 | arg4 = static_cast< int >(val4); | |
21218 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21219 | if (!SWIG_IsOK(ecode5)) { | |
21220 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyWindow_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
21221 | } | |
21222 | arg5 = static_cast< int >(val5); | |
21223 | if (obj5) { | |
21224 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
21225 | if (!SWIG_IsOK(ecode6)) { | |
21226 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyWindow_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
21227 | } | |
21228 | arg6 = static_cast< int >(val6); | |
21229 | } | |
21230 | { | |
21231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21232 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
21233 | wxPyEndAllowThreads(__tstate); | |
21234 | if (PyErr_Occurred()) SWIG_fail; | |
21235 | } | |
21236 | resultobj = SWIG_Py_Void(); | |
21237 | return resultobj; | |
21238 | fail: | |
21239 | return NULL; | |
21240 | } | |
21241 | ||
21242 | ||
21243 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21244 | PyObject *resultobj = 0; | |
21245 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21246 | int arg2 ; | |
21247 | int arg3 ; | |
21248 | void *argp1 = 0 ; | |
21249 | int res1 = 0 ; | |
21250 | int val2 ; | |
21251 | int ecode2 = 0 ; | |
21252 | int val3 ; | |
21253 | int ecode3 = 0 ; | |
21254 | PyObject * obj0 = 0 ; | |
21255 | PyObject * obj1 = 0 ; | |
21256 | PyObject * obj2 = 0 ; | |
21257 | char * kwnames[] = { | |
21258 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21259 | }; | |
21260 | ||
21261 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21262 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21263 | if (!SWIG_IsOK(res1)) { | |
21264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21265 | } | |
21266 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21267 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21268 | if (!SWIG_IsOK(ecode2)) { | |
21269 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
21270 | } | |
21271 | arg2 = static_cast< int >(val2); | |
21272 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21273 | if (!SWIG_IsOK(ecode3)) { | |
21274 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
21275 | } | |
21276 | arg3 = static_cast< int >(val3); | |
21277 | { | |
21278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21279 | (arg1)->DoSetClientSize(arg2,arg3); | |
21280 | wxPyEndAllowThreads(__tstate); | |
21281 | if (PyErr_Occurred()) SWIG_fail; | |
21282 | } | |
21283 | resultobj = SWIG_Py_Void(); | |
21284 | return resultobj; | |
21285 | fail: | |
21286 | return NULL; | |
21287 | } | |
21288 | ||
21289 | ||
21290 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21291 | PyObject *resultobj = 0; | |
21292 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21293 | int arg2 ; | |
21294 | int arg3 ; | |
21295 | void *argp1 = 0 ; | |
21296 | int res1 = 0 ; | |
21297 | int val2 ; | |
21298 | int ecode2 = 0 ; | |
21299 | int val3 ; | |
21300 | int ecode3 = 0 ; | |
21301 | PyObject * obj0 = 0 ; | |
21302 | PyObject * obj1 = 0 ; | |
21303 | PyObject * obj2 = 0 ; | |
21304 | char * kwnames[] = { | |
21305 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21306 | }; | |
21307 | ||
21308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21309 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21310 | if (!SWIG_IsOK(res1)) { | |
21311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21312 | } | |
21313 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21314 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21315 | if (!SWIG_IsOK(ecode2)) { | |
21316 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
21317 | } | |
21318 | arg2 = static_cast< int >(val2); | |
21319 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21320 | if (!SWIG_IsOK(ecode3)) { | |
21321 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
21322 | } | |
21323 | arg3 = static_cast< int >(val3); | |
21324 | { | |
21325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21326 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
21327 | wxPyEndAllowThreads(__tstate); | |
21328 | if (PyErr_Occurred()) SWIG_fail; | |
21329 | } | |
21330 | resultobj = SWIG_Py_Void(); | |
21331 | return resultobj; | |
21332 | fail: | |
21333 | return NULL; | |
21334 | } | |
21335 | ||
21336 | ||
21337 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21338 | PyObject *resultobj = 0; | |
21339 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21340 | int *arg2 = (int *) 0 ; | |
21341 | int *arg3 = (int *) 0 ; | |
21342 | void *argp1 = 0 ; | |
21343 | int res1 = 0 ; | |
21344 | int temp2 ; | |
21345 | int res2 = SWIG_TMPOBJ ; | |
21346 | int temp3 ; | |
21347 | int res3 = SWIG_TMPOBJ ; | |
21348 | PyObject *swig_obj[1] ; | |
21349 | ||
21350 | arg2 = &temp2; | |
21351 | arg3 = &temp3; | |
21352 | if (!args) SWIG_fail; | |
21353 | swig_obj[0] = args; | |
21354 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21355 | if (!SWIG_IsOK(res1)) { | |
21356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21357 | } | |
21358 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21359 | { | |
21360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21361 | ((wxPyWindow const *)arg1)->DoGetSize(arg2,arg3); | |
21362 | wxPyEndAllowThreads(__tstate); | |
21363 | if (PyErr_Occurred()) SWIG_fail; | |
21364 | } | |
21365 | resultobj = SWIG_Py_Void(); | |
21366 | if (SWIG_IsTmpObj(res2)) { | |
21367 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21368 | } else { | |
21369 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21370 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21371 | } | |
21372 | if (SWIG_IsTmpObj(res3)) { | |
21373 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21374 | } else { | |
21375 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21376 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21377 | } | |
21378 | return resultobj; | |
21379 | fail: | |
21380 | return NULL; | |
21381 | } | |
21382 | ||
21383 | ||
21384 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21385 | PyObject *resultobj = 0; | |
21386 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21387 | int *arg2 = (int *) 0 ; | |
21388 | int *arg3 = (int *) 0 ; | |
21389 | void *argp1 = 0 ; | |
21390 | int res1 = 0 ; | |
21391 | int temp2 ; | |
21392 | int res2 = SWIG_TMPOBJ ; | |
21393 | int temp3 ; | |
21394 | int res3 = SWIG_TMPOBJ ; | |
21395 | PyObject *swig_obj[1] ; | |
21396 | ||
21397 | arg2 = &temp2; | |
21398 | arg3 = &temp3; | |
21399 | if (!args) SWIG_fail; | |
21400 | swig_obj[0] = args; | |
21401 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21402 | if (!SWIG_IsOK(res1)) { | |
21403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21404 | } | |
21405 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21406 | { | |
21407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21408 | ((wxPyWindow const *)arg1)->DoGetClientSize(arg2,arg3); | |
21409 | wxPyEndAllowThreads(__tstate); | |
21410 | if (PyErr_Occurred()) SWIG_fail; | |
21411 | } | |
21412 | resultobj = SWIG_Py_Void(); | |
21413 | if (SWIG_IsTmpObj(res2)) { | |
21414 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21415 | } else { | |
21416 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21417 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21418 | } | |
21419 | if (SWIG_IsTmpObj(res3)) { | |
21420 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21421 | } else { | |
21422 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21423 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21424 | } | |
21425 | return resultobj; | |
21426 | fail: | |
21427 | return NULL; | |
21428 | } | |
21429 | ||
21430 | ||
21431 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21432 | PyObject *resultobj = 0; | |
21433 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21434 | int *arg2 = (int *) 0 ; | |
21435 | int *arg3 = (int *) 0 ; | |
21436 | void *argp1 = 0 ; | |
21437 | int res1 = 0 ; | |
21438 | int temp2 ; | |
21439 | int res2 = SWIG_TMPOBJ ; | |
21440 | int temp3 ; | |
21441 | int res3 = SWIG_TMPOBJ ; | |
21442 | PyObject *swig_obj[1] ; | |
21443 | ||
21444 | arg2 = &temp2; | |
21445 | arg3 = &temp3; | |
21446 | if (!args) SWIG_fail; | |
21447 | swig_obj[0] = args; | |
21448 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21449 | if (!SWIG_IsOK(res1)) { | |
21450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetPosition" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21451 | } | |
21452 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21453 | { | |
21454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21455 | ((wxPyWindow const *)arg1)->DoGetPosition(arg2,arg3); | |
21456 | wxPyEndAllowThreads(__tstate); | |
21457 | if (PyErr_Occurred()) SWIG_fail; | |
21458 | } | |
21459 | resultobj = SWIG_Py_Void(); | |
21460 | if (SWIG_IsTmpObj(res2)) { | |
21461 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21462 | } else { | |
21463 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21464 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21465 | } | |
21466 | if (SWIG_IsTmpObj(res3)) { | |
21467 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21468 | } else { | |
21469 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21470 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21471 | } | |
21472 | return resultobj; | |
21473 | fail: | |
21474 | return NULL; | |
b2dc1044 RD |
21475 | } |
21476 | ||
21477 | ||
0085ce49 RD |
21478 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21479 | PyObject *resultobj = 0; | |
21480 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21481 | wxSize result; | |
21482 | void *argp1 = 0 ; | |
21483 | int res1 = 0 ; | |
21484 | PyObject *swig_obj[1] ; | |
21485 | ||
21486 | if (!args) SWIG_fail; | |
21487 | swig_obj[0] = args; | |
21488 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21489 | if (!SWIG_IsOK(res1)) { | |
21490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21491 | } | |
21492 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21493 | { | |
21494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21495 | result = ((wxPyWindow const *)arg1)->DoGetVirtualSize(); | |
21496 | wxPyEndAllowThreads(__tstate); | |
21497 | if (PyErr_Occurred()) SWIG_fail; | |
21498 | } | |
21499 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21500 | return resultobj; | |
21501 | fail: | |
21502 | return NULL; | |
b2dc1044 RD |
21503 | } |
21504 | ||
21505 | ||
0085ce49 RD |
21506 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21507 | PyObject *resultobj = 0; | |
21508 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21509 | wxSize result; | |
21510 | void *argp1 = 0 ; | |
21511 | int res1 = 0 ; | |
21512 | PyObject *swig_obj[1] ; | |
21513 | ||
21514 | if (!args) SWIG_fail; | |
21515 | swig_obj[0] = args; | |
21516 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21517 | if (!SWIG_IsOK(res1)) { | |
21518 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21519 | } | |
21520 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21521 | { | |
21522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21523 | result = ((wxPyWindow const *)arg1)->DoGetBestSize(); | |
21524 | wxPyEndAllowThreads(__tstate); | |
21525 | if (PyErr_Occurred()) SWIG_fail; | |
21526 | } | |
21527 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21528 | return resultobj; | |
21529 | fail: | |
21530 | return NULL; | |
b2dc1044 RD |
21531 | } |
21532 | ||
21533 | ||
0085ce49 RD |
21534 | SWIGINTERN PyObject *_wrap_PyWindow_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21535 | PyObject *resultobj = 0; | |
21536 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21537 | SwigValueWrapper<wxVisualAttributes > result; | |
21538 | void *argp1 = 0 ; | |
21539 | int res1 = 0 ; | |
21540 | PyObject *swig_obj[1] ; | |
21541 | ||
21542 | if (!args) SWIG_fail; | |
21543 | swig_obj[0] = args; | |
21544 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21545 | if (!SWIG_IsOK(res1)) { | |
21546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21547 | } | |
21548 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21549 | { | |
21550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21551 | result = (arg1)->GetDefaultAttributes(); | |
21552 | wxPyEndAllowThreads(__tstate); | |
21553 | if (PyErr_Occurred()) SWIG_fail; | |
21554 | } | |
21555 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
21556 | return resultobj; | |
21557 | fail: | |
21558 | return NULL; | |
d14a1e28 RD |
21559 | } |
21560 | ||
21561 | ||
0085ce49 RD |
21562 | SWIGINTERN PyObject *_wrap_PyWindow_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21563 | PyObject *resultobj = 0; | |
21564 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21565 | void *argp1 = 0 ; | |
21566 | int res1 = 0 ; | |
21567 | PyObject *swig_obj[1] ; | |
21568 | ||
21569 | if (!args) SWIG_fail; | |
21570 | swig_obj[0] = args; | |
21571 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21572 | if (!SWIG_IsOK(res1)) { | |
21573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21574 | } | |
21575 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21576 | { | |
21577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21578 | (arg1)->OnInternalIdle(); | |
21579 | wxPyEndAllowThreads(__tstate); | |
21580 | if (PyErr_Occurred()) SWIG_fail; | |
21581 | } | |
21582 | resultobj = SWIG_Py_Void(); | |
21583 | return resultobj; | |
21584 | fail: | |
21585 | return NULL; | |
21586 | } | |
21587 | ||
21588 | ||
21589 | SWIGINTERN PyObject *PyWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21590 | PyObject *obj; | |
21591 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21592 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyWindow, SWIG_NewClientData(obj)); | |
21593 | return SWIG_Py_Void(); | |
21594 | } | |
21595 | ||
21596 | SWIGINTERN PyObject *PyWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21597 | return SWIG_Python_InitShadowInstance(args); | |
21598 | } | |
21599 | ||
21600 | SWIGINTERN PyObject *_wrap_new_PyPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21601 | PyObject *resultobj = 0; | |
21602 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21603 | int arg2 = (int) (int)-1 ; | |
21604 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21605 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21606 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21607 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21608 | long arg5 = (long) 0 ; | |
21609 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21610 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21611 | wxPyPanel *result = 0 ; | |
21612 | void *argp1 = 0 ; | |
21613 | int res1 = 0 ; | |
21614 | int val2 ; | |
21615 | int ecode2 = 0 ; | |
21616 | wxPoint temp3 ; | |
21617 | wxSize temp4 ; | |
21618 | long val5 ; | |
21619 | int ecode5 = 0 ; | |
21620 | bool temp6 = false ; | |
21621 | PyObject * obj0 = 0 ; | |
21622 | PyObject * obj1 = 0 ; | |
21623 | PyObject * obj2 = 0 ; | |
21624 | PyObject * obj3 = 0 ; | |
21625 | PyObject * obj4 = 0 ; | |
21626 | PyObject * obj5 = 0 ; | |
21627 | char * kwnames[] = { | |
21628 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21629 | }; | |
21630 | ||
21631 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21632 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21633 | if (!SWIG_IsOK(res1)) { | |
21634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPanel" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21635 | } | |
21636 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21637 | if (obj1) { | |
21638 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21639 | if (!SWIG_IsOK(ecode2)) { | |
21640 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyPanel" "', expected argument " "2"" of type '" "int""'"); | |
21641 | } | |
21642 | arg2 = static_cast< int >(val2); | |
21643 | } | |
21644 | if (obj2) { | |
d14a1e28 | 21645 | { |
0085ce49 RD |
21646 | arg3 = &temp3; |
21647 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 21648 | } |
0085ce49 RD |
21649 | } |
21650 | if (obj3) { | |
d14a1e28 | 21651 | { |
0085ce49 RD |
21652 | arg4 = &temp4; |
21653 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 21654 | } |
0085ce49 RD |
21655 | } |
21656 | if (obj4) { | |
21657 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21658 | if (!SWIG_IsOK(ecode5)) { | |
21659 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyPanel" "', expected argument " "5"" of type '" "long""'"); | |
21660 | } | |
21661 | arg5 = static_cast< long >(val5); | |
21662 | } | |
21663 | if (obj5) { | |
093d3ff1 | 21664 | { |
0085ce49 RD |
21665 | arg6 = wxString_in_helper(obj5); |
21666 | if (arg6 == NULL) SWIG_fail; | |
21667 | temp6 = true; | |
093d3ff1 | 21668 | } |
0085ce49 RD |
21669 | } |
21670 | { | |
21671 | if (!wxPyCheckForApp()) SWIG_fail; | |
21672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21673 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21674 | wxPyEndAllowThreads(__tstate); | |
21675 | if (PyErr_Occurred()) SWIG_fail; | |
21676 | } | |
21677 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPanel, SWIG_POINTER_NEW | 0 ); | |
21678 | { | |
21679 | if (temp6) | |
21680 | delete arg6; | |
21681 | } | |
21682 | return resultobj; | |
21683 | fail: | |
21684 | { | |
21685 | if (temp6) | |
21686 | delete arg6; | |
21687 | } | |
21688 | return NULL; | |
d14a1e28 RD |
21689 | } |
21690 | ||
21691 | ||
0085ce49 RD |
21692 | SWIGINTERN PyObject *_wrap_new_PrePyPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21693 | PyObject *resultobj = 0; | |
21694 | wxPyPanel *result = 0 ; | |
21695 | ||
21696 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyPanel",0,0,0)) SWIG_fail; | |
21697 | { | |
21698 | if (!wxPyCheckForApp()) SWIG_fail; | |
21699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21700 | result = (wxPyPanel *)new wxPyPanel(); | |
21701 | wxPyEndAllowThreads(__tstate); | |
21702 | if (PyErr_Occurred()) SWIG_fail; | |
21703 | } | |
21704 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPanel, SWIG_POINTER_OWN | 0 ); | |
21705 | return resultobj; | |
21706 | fail: | |
21707 | return NULL; | |
21708 | } | |
21709 | ||
21710 | ||
21711 | SWIGINTERN PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21712 | PyObject *resultobj = 0; | |
21713 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
21714 | PyObject *arg2 = (PyObject *) 0 ; | |
21715 | PyObject *arg3 = (PyObject *) 0 ; | |
21716 | void *argp1 = 0 ; | |
21717 | int res1 = 0 ; | |
21718 | PyObject * obj0 = 0 ; | |
21719 | PyObject * obj1 = 0 ; | |
21720 | PyObject * obj2 = 0 ; | |
21721 | char * kwnames[] = { | |
21722 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21723 | }; | |
21724 | ||
21725 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21726 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
21727 | if (!SWIG_IsOK(res1)) { | |
21728 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
21729 | } | |
21730 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
21731 | arg2 = obj1; | |
21732 | arg3 = obj2; | |
21733 | { | |
21734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21735 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21736 | wxPyEndAllowThreads(__tstate); | |
21737 | if (PyErr_Occurred()) SWIG_fail; | |
21738 | } | |
21739 | resultobj = SWIG_Py_Void(); | |
21740 | return resultobj; | |
21741 | fail: | |
21742 | return NULL; | |
21743 | } | |
21744 | ||
21745 | ||
21746 | SWIGINTERN PyObject *_wrap_PyPanel_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21747 | PyObject *resultobj = 0; | |
21748 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
21749 | wxSize *arg2 = 0 ; | |
21750 | void *argp1 = 0 ; | |
21751 | int res1 = 0 ; | |
21752 | wxSize temp2 ; | |
21753 | PyObject * obj0 = 0 ; | |
21754 | PyObject * obj1 = 0 ; | |
21755 | char * kwnames[] = { | |
21756 | (char *) "self",(char *) "size", NULL | |
21757 | }; | |
21758 | ||
21759 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
21760 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
21761 | if (!SWIG_IsOK(res1)) { | |
21762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_SetBestSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
21763 | } | |
21764 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
21765 | { | |
21766 | arg2 = &temp2; | |
21767 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21768 | } | |
21769 | { | |
21770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21771 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
21772 | wxPyEndAllowThreads(__tstate); | |
21773 | if (PyErr_Occurred()) SWIG_fail; | |
21774 | } | |
21775 | resultobj = SWIG_Py_Void(); | |
21776 | return resultobj; | |
21777 | fail: | |
21778 | return NULL; | |
21779 | } | |
21780 | ||
21781 | ||
21782 | SWIGINTERN PyObject *_wrap_PyPanel_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21783 | PyObject *resultobj = 0; | |
21784 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
21785 | wxDC *arg2 = (wxDC *) 0 ; | |
21786 | bool result; | |
21787 | void *argp1 = 0 ; | |
21788 | int res1 = 0 ; | |
21789 | void *argp2 = 0 ; | |
21790 | int res2 = 0 ; | |
21791 | PyObject * obj0 = 0 ; | |
21792 | PyObject * obj1 = 0 ; | |
21793 | char * kwnames[] = { | |
21794 | (char *) "self",(char *) "dc", NULL | |
21795 | }; | |
21796 | ||
21797 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21798 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
21799 | if (!SWIG_IsOK(res1)) { | |
21800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
21801 | } | |
21802 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
21803 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21804 | if (!SWIG_IsOK(res2)) { | |
21805 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPanel_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
21806 | } | |
21807 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
21808 | { | |
21809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21810 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
21811 | wxPyEndAllowThreads(__tstate); | |
21812 | if (PyErr_Occurred()) SWIG_fail; | |
21813 | } | |
21814 | { | |
21815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21816 | } | |
21817 | return resultobj; | |
21818 | fail: | |
21819 | return NULL; | |
21820 | } | |
21821 | ||
21822 | ||
21823 | SWIGINTERN PyObject *_wrap_PyPanel_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21824 | PyObject *resultobj = 0; | |
21825 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
21826 | int arg2 ; | |
21827 | int arg3 ; | |
21828 | int arg4 ; | |
21829 | int arg5 ; | |
21830 | void *argp1 = 0 ; | |
21831 | int res1 = 0 ; | |
21832 | int val2 ; | |
21833 | int ecode2 = 0 ; | |
21834 | int val3 ; | |
21835 | int ecode3 = 0 ; | |
21836 | int val4 ; | |
21837 | int ecode4 = 0 ; | |
21838 | int val5 ; | |
21839 | int ecode5 = 0 ; | |
21840 | PyObject * obj0 = 0 ; | |
21841 | PyObject * obj1 = 0 ; | |
21842 | PyObject * obj2 = 0 ; | |
21843 | PyObject * obj3 = 0 ; | |
21844 | PyObject * obj4 = 0 ; | |
21845 | char * kwnames[] = { | |
21846 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
21847 | }; | |
21848 | ||
21849 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
21850 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
21851 | if (!SWIG_IsOK(res1)) { | |
21852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
21853 | } | |
21854 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
21855 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21856 | if (!SWIG_IsOK(ecode2)) { | |
21857 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
21858 | } | |
21859 | arg2 = static_cast< int >(val2); | |
21860 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21861 | if (!SWIG_IsOK(ecode3)) { | |
21862 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
21863 | } | |
21864 | arg3 = static_cast< int >(val3); | |
21865 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21866 | if (!SWIG_IsOK(ecode4)) { | |
21867 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
21868 | } | |
21869 | arg4 = static_cast< int >(val4); | |
21870 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21871 | if (!SWIG_IsOK(ecode5)) { | |
21872 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
21873 | } | |
21874 | arg5 = static_cast< int >(val5); | |
21875 | { | |
21876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21877 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
21878 | wxPyEndAllowThreads(__tstate); | |
21879 | if (PyErr_Occurred()) SWIG_fail; | |
21880 | } | |
21881 | resultobj = SWIG_Py_Void(); | |
21882 | return resultobj; | |
21883 | fail: | |
21884 | return NULL; | |
21885 | } | |
21886 | ||
21887 | ||
21888 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21889 | PyObject *resultobj = 0; | |
21890 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
21891 | int arg2 ; | |
21892 | int arg3 ; | |
21893 | int arg4 ; | |
21894 | int arg5 ; | |
21895 | int arg6 = (int) wxSIZE_AUTO ; | |
21896 | void *argp1 = 0 ; | |
21897 | int res1 = 0 ; | |
21898 | int val2 ; | |
21899 | int ecode2 = 0 ; | |
21900 | int val3 ; | |
21901 | int ecode3 = 0 ; | |
21902 | int val4 ; | |
21903 | int ecode4 = 0 ; | |
21904 | int val5 ; | |
21905 | int ecode5 = 0 ; | |
21906 | int val6 ; | |
21907 | int ecode6 = 0 ; | |
21908 | PyObject * obj0 = 0 ; | |
21909 | PyObject * obj1 = 0 ; | |
21910 | PyObject * obj2 = 0 ; | |
21911 | PyObject * obj3 = 0 ; | |
21912 | PyObject * obj4 = 0 ; | |
21913 | PyObject * obj5 = 0 ; | |
21914 | char * kwnames[] = { | |
21915 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
21916 | }; | |
21917 | ||
21918 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21919 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
21920 | if (!SWIG_IsOK(res1)) { | |
21921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
21922 | } | |
21923 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
21924 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21925 | if (!SWIG_IsOK(ecode2)) { | |
21926 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
21927 | } | |
21928 | arg2 = static_cast< int >(val2); | |
21929 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21930 | if (!SWIG_IsOK(ecode3)) { | |
21931 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
21932 | } | |
21933 | arg3 = static_cast< int >(val3); | |
21934 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21935 | if (!SWIG_IsOK(ecode4)) { | |
21936 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyPanel_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
21937 | } | |
21938 | arg4 = static_cast< int >(val4); | |
21939 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21940 | if (!SWIG_IsOK(ecode5)) { | |
21941 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyPanel_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
21942 | } | |
21943 | arg5 = static_cast< int >(val5); | |
21944 | if (obj5) { | |
21945 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
21946 | if (!SWIG_IsOK(ecode6)) { | |
21947 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyPanel_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
21948 | } | |
21949 | arg6 = static_cast< int >(val6); | |
21950 | } | |
21951 | { | |
21952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21953 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
21954 | wxPyEndAllowThreads(__tstate); | |
21955 | if (PyErr_Occurred()) SWIG_fail; | |
21956 | } | |
21957 | resultobj = SWIG_Py_Void(); | |
21958 | return resultobj; | |
21959 | fail: | |
21960 | return NULL; | |
21961 | } | |
21962 | ||
21963 | ||
21964 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21965 | PyObject *resultobj = 0; | |
21966 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
21967 | int arg2 ; | |
21968 | int arg3 ; | |
21969 | void *argp1 = 0 ; | |
21970 | int res1 = 0 ; | |
21971 | int val2 ; | |
21972 | int ecode2 = 0 ; | |
21973 | int val3 ; | |
21974 | int ecode3 = 0 ; | |
21975 | PyObject * obj0 = 0 ; | |
21976 | PyObject * obj1 = 0 ; | |
21977 | PyObject * obj2 = 0 ; | |
21978 | char * kwnames[] = { | |
21979 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21980 | }; | |
21981 | ||
21982 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21983 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
21984 | if (!SWIG_IsOK(res1)) { | |
21985 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
21986 | } | |
21987 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
21988 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21989 | if (!SWIG_IsOK(ecode2)) { | |
21990 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
21991 | } | |
21992 | arg2 = static_cast< int >(val2); | |
21993 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21994 | if (!SWIG_IsOK(ecode3)) { | |
21995 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
21996 | } | |
21997 | arg3 = static_cast< int >(val3); | |
21998 | { | |
21999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22000 | (arg1)->DoSetClientSize(arg2,arg3); | |
22001 | wxPyEndAllowThreads(__tstate); | |
22002 | if (PyErr_Occurred()) SWIG_fail; | |
22003 | } | |
22004 | resultobj = SWIG_Py_Void(); | |
22005 | return resultobj; | |
22006 | fail: | |
22007 | return NULL; | |
22008 | } | |
22009 | ||
22010 | ||
22011 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22012 | PyObject *resultobj = 0; | |
22013 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22014 | int arg2 ; | |
22015 | int arg3 ; | |
22016 | void *argp1 = 0 ; | |
22017 | int res1 = 0 ; | |
22018 | int val2 ; | |
22019 | int ecode2 = 0 ; | |
22020 | int val3 ; | |
22021 | int ecode3 = 0 ; | |
22022 | PyObject * obj0 = 0 ; | |
22023 | PyObject * obj1 = 0 ; | |
22024 | PyObject * obj2 = 0 ; | |
22025 | char * kwnames[] = { | |
22026 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22027 | }; | |
22028 | ||
22029 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22030 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22031 | if (!SWIG_IsOK(res1)) { | |
22032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22033 | } | |
22034 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22035 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22036 | if (!SWIG_IsOK(ecode2)) { | |
22037 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
22038 | } | |
22039 | arg2 = static_cast< int >(val2); | |
22040 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22041 | if (!SWIG_IsOK(ecode3)) { | |
22042 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
22043 | } | |
22044 | arg3 = static_cast< int >(val3); | |
22045 | { | |
22046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22047 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
22048 | wxPyEndAllowThreads(__tstate); | |
22049 | if (PyErr_Occurred()) SWIG_fail; | |
22050 | } | |
22051 | resultobj = SWIG_Py_Void(); | |
22052 | return resultobj; | |
22053 | fail: | |
22054 | return NULL; | |
22055 | } | |
22056 | ||
22057 | ||
22058 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22059 | PyObject *resultobj = 0; | |
22060 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22061 | int *arg2 = (int *) 0 ; | |
22062 | int *arg3 = (int *) 0 ; | |
22063 | void *argp1 = 0 ; | |
22064 | int res1 = 0 ; | |
22065 | int temp2 ; | |
22066 | int res2 = SWIG_TMPOBJ ; | |
22067 | int temp3 ; | |
22068 | int res3 = SWIG_TMPOBJ ; | |
22069 | PyObject *swig_obj[1] ; | |
22070 | ||
22071 | arg2 = &temp2; | |
22072 | arg3 = &temp3; | |
22073 | if (!args) SWIG_fail; | |
22074 | swig_obj[0] = args; | |
22075 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22076 | if (!SWIG_IsOK(res1)) { | |
22077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22078 | } | |
22079 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22080 | { | |
22081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22082 | ((wxPyPanel const *)arg1)->DoGetSize(arg2,arg3); | |
22083 | wxPyEndAllowThreads(__tstate); | |
22084 | if (PyErr_Occurred()) SWIG_fail; | |
22085 | } | |
22086 | resultobj = SWIG_Py_Void(); | |
22087 | if (SWIG_IsTmpObj(res2)) { | |
22088 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22089 | } else { | |
22090 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22091 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22092 | } | |
22093 | if (SWIG_IsTmpObj(res3)) { | |
22094 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22095 | } else { | |
22096 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22097 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22098 | } | |
22099 | return resultobj; | |
22100 | fail: | |
22101 | return NULL; | |
22102 | } | |
22103 | ||
22104 | ||
22105 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22106 | PyObject *resultobj = 0; | |
22107 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22108 | int *arg2 = (int *) 0 ; | |
22109 | int *arg3 = (int *) 0 ; | |
22110 | void *argp1 = 0 ; | |
22111 | int res1 = 0 ; | |
22112 | int temp2 ; | |
22113 | int res2 = SWIG_TMPOBJ ; | |
22114 | int temp3 ; | |
22115 | int res3 = SWIG_TMPOBJ ; | |
22116 | PyObject *swig_obj[1] ; | |
22117 | ||
22118 | arg2 = &temp2; | |
22119 | arg3 = &temp3; | |
22120 | if (!args) SWIG_fail; | |
22121 | swig_obj[0] = args; | |
22122 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22123 | if (!SWIG_IsOK(res1)) { | |
22124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22125 | } | |
22126 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22127 | { | |
22128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22129 | ((wxPyPanel const *)arg1)->DoGetClientSize(arg2,arg3); | |
22130 | wxPyEndAllowThreads(__tstate); | |
22131 | if (PyErr_Occurred()) SWIG_fail; | |
22132 | } | |
22133 | resultobj = SWIG_Py_Void(); | |
22134 | if (SWIG_IsTmpObj(res2)) { | |
22135 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22136 | } else { | |
22137 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22138 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22139 | } | |
22140 | if (SWIG_IsTmpObj(res3)) { | |
22141 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22142 | } else { | |
22143 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22144 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22145 | } | |
22146 | return resultobj; | |
22147 | fail: | |
22148 | return NULL; | |
22149 | } | |
22150 | ||
22151 | ||
22152 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22153 | PyObject *resultobj = 0; | |
22154 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22155 | int *arg2 = (int *) 0 ; | |
22156 | int *arg3 = (int *) 0 ; | |
22157 | void *argp1 = 0 ; | |
22158 | int res1 = 0 ; | |
22159 | int temp2 ; | |
22160 | int res2 = SWIG_TMPOBJ ; | |
22161 | int temp3 ; | |
22162 | int res3 = SWIG_TMPOBJ ; | |
22163 | PyObject *swig_obj[1] ; | |
22164 | ||
22165 | arg2 = &temp2; | |
22166 | arg3 = &temp3; | |
22167 | if (!args) SWIG_fail; | |
22168 | swig_obj[0] = args; | |
22169 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22170 | if (!SWIG_IsOK(res1)) { | |
22171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetPosition" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22172 | } | |
22173 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22174 | { | |
22175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22176 | ((wxPyPanel const *)arg1)->DoGetPosition(arg2,arg3); | |
22177 | wxPyEndAllowThreads(__tstate); | |
22178 | if (PyErr_Occurred()) SWIG_fail; | |
22179 | } | |
22180 | resultobj = SWIG_Py_Void(); | |
22181 | if (SWIG_IsTmpObj(res2)) { | |
22182 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22183 | } else { | |
22184 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22185 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22186 | } | |
22187 | if (SWIG_IsTmpObj(res3)) { | |
22188 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22189 | } else { | |
22190 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22191 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22192 | } | |
22193 | return resultobj; | |
22194 | fail: | |
22195 | return NULL; | |
d14a1e28 RD |
22196 | } |
22197 | ||
22198 | ||
0085ce49 RD |
22199 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22200 | PyObject *resultobj = 0; | |
22201 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22202 | wxSize result; | |
22203 | void *argp1 = 0 ; | |
22204 | int res1 = 0 ; | |
22205 | PyObject *swig_obj[1] ; | |
22206 | ||
22207 | if (!args) SWIG_fail; | |
22208 | swig_obj[0] = args; | |
22209 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22210 | if (!SWIG_IsOK(res1)) { | |
22211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22212 | } | |
22213 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22214 | { | |
22215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22216 | result = ((wxPyPanel const *)arg1)->DoGetVirtualSize(); | |
22217 | wxPyEndAllowThreads(__tstate); | |
22218 | if (PyErr_Occurred()) SWIG_fail; | |
22219 | } | |
22220 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22221 | return resultobj; | |
22222 | fail: | |
22223 | return NULL; | |
d14a1e28 RD |
22224 | } |
22225 | ||
22226 | ||
0085ce49 RD |
22227 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22228 | PyObject *resultobj = 0; | |
22229 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22230 | wxSize result; | |
22231 | void *argp1 = 0 ; | |
22232 | int res1 = 0 ; | |
22233 | PyObject *swig_obj[1] ; | |
22234 | ||
22235 | if (!args) SWIG_fail; | |
22236 | swig_obj[0] = args; | |
22237 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22238 | if (!SWIG_IsOK(res1)) { | |
22239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22240 | } | |
22241 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22242 | { | |
22243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22244 | result = ((wxPyPanel const *)arg1)->DoGetBestSize(); | |
22245 | wxPyEndAllowThreads(__tstate); | |
22246 | if (PyErr_Occurred()) SWIG_fail; | |
22247 | } | |
22248 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22249 | return resultobj; | |
22250 | fail: | |
22251 | return NULL; | |
d14a1e28 RD |
22252 | } |
22253 | ||
22254 | ||
0085ce49 RD |
22255 | SWIGINTERN PyObject *_wrap_PyPanel_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22256 | PyObject *resultobj = 0; | |
22257 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22258 | SwigValueWrapper<wxVisualAttributes > result; | |
22259 | void *argp1 = 0 ; | |
22260 | int res1 = 0 ; | |
22261 | PyObject *swig_obj[1] ; | |
22262 | ||
22263 | if (!args) SWIG_fail; | |
22264 | swig_obj[0] = args; | |
22265 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22266 | if (!SWIG_IsOK(res1)) { | |
22267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22268 | } | |
22269 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22270 | { | |
22271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22272 | result = (arg1)->GetDefaultAttributes(); | |
22273 | wxPyEndAllowThreads(__tstate); | |
22274 | if (PyErr_Occurred()) SWIG_fail; | |
22275 | } | |
22276 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
22277 | return resultobj; | |
22278 | fail: | |
22279 | return NULL; | |
d14a1e28 RD |
22280 | } |
22281 | ||
22282 | ||
0085ce49 RD |
22283 | SWIGINTERN PyObject *_wrap_PyPanel_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22284 | PyObject *resultobj = 0; | |
22285 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22286 | void *argp1 = 0 ; | |
22287 | int res1 = 0 ; | |
22288 | PyObject *swig_obj[1] ; | |
22289 | ||
22290 | if (!args) SWIG_fail; | |
22291 | swig_obj[0] = args; | |
22292 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22293 | if (!SWIG_IsOK(res1)) { | |
22294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22295 | } | |
22296 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22297 | { | |
22298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22299 | (arg1)->OnInternalIdle(); | |
22300 | wxPyEndAllowThreads(__tstate); | |
22301 | if (PyErr_Occurred()) SWIG_fail; | |
22302 | } | |
22303 | resultobj = SWIG_Py_Void(); | |
22304 | return resultobj; | |
22305 | fail: | |
22306 | return NULL; | |
22307 | } | |
22308 | ||
22309 | ||
22310 | SWIGINTERN PyObject *PyPanel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22311 | PyObject *obj; | |
22312 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22313 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPanel, SWIG_NewClientData(obj)); | |
22314 | return SWIG_Py_Void(); | |
22315 | } | |
22316 | ||
22317 | SWIGINTERN PyObject *PyPanel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22318 | return SWIG_Python_InitShadowInstance(args); | |
22319 | } | |
22320 | ||
22321 | SWIGINTERN PyObject *_wrap_new_PyScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22322 | PyObject *resultobj = 0; | |
22323 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22324 | int arg2 = (int) (int)-1 ; | |
22325 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22326 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22327 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22328 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22329 | long arg5 = (long) 0 ; | |
22330 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22331 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22332 | wxPyScrolledWindow *result = 0 ; | |
22333 | void *argp1 = 0 ; | |
22334 | int res1 = 0 ; | |
22335 | int val2 ; | |
22336 | int ecode2 = 0 ; | |
22337 | wxPoint temp3 ; | |
22338 | wxSize temp4 ; | |
22339 | long val5 ; | |
22340 | int ecode5 = 0 ; | |
22341 | bool temp6 = false ; | |
22342 | PyObject * obj0 = 0 ; | |
22343 | PyObject * obj1 = 0 ; | |
22344 | PyObject * obj2 = 0 ; | |
22345 | PyObject * obj3 = 0 ; | |
22346 | PyObject * obj4 = 0 ; | |
22347 | PyObject * obj5 = 0 ; | |
22348 | char * kwnames[] = { | |
22349 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22350 | }; | |
22351 | ||
22352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22354 | if (!SWIG_IsOK(res1)) { | |
22355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
22356 | } | |
22357 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
22358 | if (obj1) { | |
22359 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22360 | if (!SWIG_IsOK(ecode2)) { | |
22361 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
22362 | } | |
22363 | arg2 = static_cast< int >(val2); | |
22364 | } | |
22365 | if (obj2) { | |
32fe5131 | 22366 | { |
0085ce49 RD |
22367 | arg3 = &temp3; |
22368 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32fe5131 | 22369 | } |
0085ce49 RD |
22370 | } |
22371 | if (obj3) { | |
32fe5131 | 22372 | { |
0085ce49 RD |
22373 | arg4 = &temp4; |
22374 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32fe5131 | 22375 | } |
0085ce49 RD |
22376 | } |
22377 | if (obj4) { | |
22378 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
22379 | if (!SWIG_IsOK(ecode5)) { | |
22380 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
22381 | } | |
22382 | arg5 = static_cast< long >(val5); | |
22383 | } | |
22384 | if (obj5) { | |
32fe5131 | 22385 | { |
0085ce49 RD |
22386 | arg6 = wxString_in_helper(obj5); |
22387 | if (arg6 == NULL) SWIG_fail; | |
22388 | temp6 = true; | |
32fe5131 | 22389 | } |
0085ce49 RD |
22390 | } |
22391 | { | |
22392 | if (!wxPyCheckForApp()) SWIG_fail; | |
22393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22394 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22395 | wxPyEndAllowThreads(__tstate); | |
22396 | if (PyErr_Occurred()) SWIG_fail; | |
22397 | } | |
22398 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
22399 | { | |
22400 | if (temp6) | |
22401 | delete arg6; | |
22402 | } | |
22403 | return resultobj; | |
22404 | fail: | |
22405 | { | |
22406 | if (temp6) | |
22407 | delete arg6; | |
22408 | } | |
22409 | return NULL; | |
32fe5131 RD |
22410 | } |
22411 | ||
22412 | ||
0085ce49 RD |
22413 | SWIGINTERN PyObject *_wrap_new_PrePyScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22414 | PyObject *resultobj = 0; | |
22415 | wxPyScrolledWindow *result = 0 ; | |
22416 | ||
22417 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyScrolledWindow",0,0,0)) SWIG_fail; | |
22418 | { | |
22419 | if (!wxPyCheckForApp()) SWIG_fail; | |
22420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22421 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); | |
22422 | wxPyEndAllowThreads(__tstate); | |
22423 | if (PyErr_Occurred()) SWIG_fail; | |
22424 | } | |
22425 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
22426 | return resultobj; | |
22427 | fail: | |
22428 | return NULL; | |
22429 | } | |
22430 | ||
22431 | ||
22432 | SWIGINTERN PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22433 | PyObject *resultobj = 0; | |
22434 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22435 | PyObject *arg2 = (PyObject *) 0 ; | |
22436 | PyObject *arg3 = (PyObject *) 0 ; | |
22437 | void *argp1 = 0 ; | |
22438 | int res1 = 0 ; | |
22439 | PyObject * obj0 = 0 ; | |
22440 | PyObject * obj1 = 0 ; | |
22441 | PyObject * obj2 = 0 ; | |
22442 | char * kwnames[] = { | |
22443 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22444 | }; | |
22445 | ||
22446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22447 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22448 | if (!SWIG_IsOK(res1)) { | |
22449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22450 | } | |
22451 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22452 | arg2 = obj1; | |
22453 | arg3 = obj2; | |
22454 | { | |
22455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22456 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22457 | wxPyEndAllowThreads(__tstate); | |
22458 | if (PyErr_Occurred()) SWIG_fail; | |
22459 | } | |
22460 | resultobj = SWIG_Py_Void(); | |
22461 | return resultobj; | |
22462 | fail: | |
22463 | return NULL; | |
22464 | } | |
22465 | ||
22466 | ||
22467 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22468 | PyObject *resultobj = 0; | |
22469 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22470 | wxSize *arg2 = 0 ; | |
22471 | void *argp1 = 0 ; | |
22472 | int res1 = 0 ; | |
22473 | wxSize temp2 ; | |
22474 | PyObject * obj0 = 0 ; | |
22475 | PyObject * obj1 = 0 ; | |
22476 | char * kwnames[] = { | |
22477 | (char *) "self",(char *) "size", NULL | |
22478 | }; | |
22479 | ||
22480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
22481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22482 | if (!SWIG_IsOK(res1)) { | |
22483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_SetBestSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22484 | } | |
22485 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22486 | { | |
22487 | arg2 = &temp2; | |
22488 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22489 | } | |
22490 | { | |
22491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22492 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
22493 | wxPyEndAllowThreads(__tstate); | |
22494 | if (PyErr_Occurred()) SWIG_fail; | |
22495 | } | |
22496 | resultobj = SWIG_Py_Void(); | |
22497 | return resultobj; | |
22498 | fail: | |
22499 | return NULL; | |
22500 | } | |
22501 | ||
22502 | ||
22503 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22504 | PyObject *resultobj = 0; | |
22505 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22506 | wxDC *arg2 = (wxDC *) 0 ; | |
22507 | bool result; | |
22508 | void *argp1 = 0 ; | |
22509 | int res1 = 0 ; | |
22510 | void *argp2 = 0 ; | |
22511 | int res2 = 0 ; | |
22512 | PyObject * obj0 = 0 ; | |
22513 | PyObject * obj1 = 0 ; | |
22514 | char * kwnames[] = { | |
22515 | (char *) "self",(char *) "dc", NULL | |
22516 | }; | |
22517 | ||
22518 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22519 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22520 | if (!SWIG_IsOK(res1)) { | |
22521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22522 | } | |
22523 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22524 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22525 | if (!SWIG_IsOK(res2)) { | |
22526 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyScrolledWindow_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
22527 | } | |
22528 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
22529 | { | |
22530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22531 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
22532 | wxPyEndAllowThreads(__tstate); | |
22533 | if (PyErr_Occurred()) SWIG_fail; | |
22534 | } | |
22535 | { | |
22536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22537 | } | |
22538 | return resultobj; | |
22539 | fail: | |
22540 | return NULL; | |
22541 | } | |
22542 | ||
22543 | ||
22544 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22545 | PyObject *resultobj = 0; | |
22546 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22547 | int arg2 ; | |
22548 | int arg3 ; | |
22549 | int arg4 ; | |
22550 | int arg5 ; | |
22551 | void *argp1 = 0 ; | |
22552 | int res1 = 0 ; | |
22553 | int val2 ; | |
22554 | int ecode2 = 0 ; | |
22555 | int val3 ; | |
22556 | int ecode3 = 0 ; | |
22557 | int val4 ; | |
22558 | int ecode4 = 0 ; | |
22559 | int val5 ; | |
22560 | int ecode5 = 0 ; | |
22561 | PyObject * obj0 = 0 ; | |
22562 | PyObject * obj1 = 0 ; | |
22563 | PyObject * obj2 = 0 ; | |
22564 | PyObject * obj3 = 0 ; | |
22565 | PyObject * obj4 = 0 ; | |
22566 | char * kwnames[] = { | |
22567 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
22568 | }; | |
22569 | ||
22570 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
22571 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22572 | if (!SWIG_IsOK(res1)) { | |
22573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22574 | } | |
22575 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22576 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22577 | if (!SWIG_IsOK(ecode2)) { | |
22578 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
22579 | } | |
22580 | arg2 = static_cast< int >(val2); | |
22581 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22582 | if (!SWIG_IsOK(ecode3)) { | |
22583 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
22584 | } | |
22585 | arg3 = static_cast< int >(val3); | |
22586 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22587 | if (!SWIG_IsOK(ecode4)) { | |
22588 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
22589 | } | |
22590 | arg4 = static_cast< int >(val4); | |
22591 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22592 | if (!SWIG_IsOK(ecode5)) { | |
22593 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
22594 | } | |
22595 | arg5 = static_cast< int >(val5); | |
22596 | { | |
22597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22598 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
22599 | wxPyEndAllowThreads(__tstate); | |
22600 | if (PyErr_Occurred()) SWIG_fail; | |
22601 | } | |
22602 | resultobj = SWIG_Py_Void(); | |
22603 | return resultobj; | |
22604 | fail: | |
22605 | return NULL; | |
22606 | } | |
22607 | ||
22608 | ||
22609 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22610 | PyObject *resultobj = 0; | |
22611 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22612 | int arg2 ; | |
22613 | int arg3 ; | |
22614 | int arg4 ; | |
22615 | int arg5 ; | |
22616 | int arg6 = (int) wxSIZE_AUTO ; | |
22617 | void *argp1 = 0 ; | |
22618 | int res1 = 0 ; | |
22619 | int val2 ; | |
22620 | int ecode2 = 0 ; | |
22621 | int val3 ; | |
22622 | int ecode3 = 0 ; | |
22623 | int val4 ; | |
22624 | int ecode4 = 0 ; | |
22625 | int val5 ; | |
22626 | int ecode5 = 0 ; | |
22627 | int val6 ; | |
22628 | int ecode6 = 0 ; | |
22629 | PyObject * obj0 = 0 ; | |
22630 | PyObject * obj1 = 0 ; | |
22631 | PyObject * obj2 = 0 ; | |
22632 | PyObject * obj3 = 0 ; | |
22633 | PyObject * obj4 = 0 ; | |
22634 | PyObject * obj5 = 0 ; | |
22635 | char * kwnames[] = { | |
22636 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22637 | }; | |
22638 | ||
22639 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22640 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22641 | if (!SWIG_IsOK(res1)) { | |
22642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22643 | } | |
22644 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22645 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22646 | if (!SWIG_IsOK(ecode2)) { | |
22647 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
22648 | } | |
22649 | arg2 = static_cast< int >(val2); | |
22650 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22651 | if (!SWIG_IsOK(ecode3)) { | |
22652 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
22653 | } | |
22654 | arg3 = static_cast< int >(val3); | |
22655 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22656 | if (!SWIG_IsOK(ecode4)) { | |
22657 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
22658 | } | |
22659 | arg4 = static_cast< int >(val4); | |
22660 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22661 | if (!SWIG_IsOK(ecode5)) { | |
22662 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
22663 | } | |
22664 | arg5 = static_cast< int >(val5); | |
22665 | if (obj5) { | |
22666 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22667 | if (!SWIG_IsOK(ecode6)) { | |
22668 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
22669 | } | |
22670 | arg6 = static_cast< int >(val6); | |
22671 | } | |
22672 | { | |
22673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22674 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
22675 | wxPyEndAllowThreads(__tstate); | |
22676 | if (PyErr_Occurred()) SWIG_fail; | |
22677 | } | |
22678 | resultobj = SWIG_Py_Void(); | |
22679 | return resultobj; | |
22680 | fail: | |
22681 | return NULL; | |
22682 | } | |
22683 | ||
22684 | ||
22685 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22686 | PyObject *resultobj = 0; | |
22687 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22688 | int arg2 ; | |
22689 | int arg3 ; | |
22690 | void *argp1 = 0 ; | |
22691 | int res1 = 0 ; | |
22692 | int val2 ; | |
22693 | int ecode2 = 0 ; | |
22694 | int val3 ; | |
22695 | int ecode3 = 0 ; | |
22696 | PyObject * obj0 = 0 ; | |
22697 | PyObject * obj1 = 0 ; | |
22698 | PyObject * obj2 = 0 ; | |
22699 | char * kwnames[] = { | |
22700 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22701 | }; | |
22702 | ||
22703 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22704 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22705 | if (!SWIG_IsOK(res1)) { | |
22706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22707 | } | |
22708 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22709 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22710 | if (!SWIG_IsOK(ecode2)) { | |
22711 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
22712 | } | |
22713 | arg2 = static_cast< int >(val2); | |
22714 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22715 | if (!SWIG_IsOK(ecode3)) { | |
22716 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
22717 | } | |
22718 | arg3 = static_cast< int >(val3); | |
22719 | { | |
22720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22721 | (arg1)->DoSetClientSize(arg2,arg3); | |
22722 | wxPyEndAllowThreads(__tstate); | |
22723 | if (PyErr_Occurred()) SWIG_fail; | |
22724 | } | |
22725 | resultobj = SWIG_Py_Void(); | |
22726 | return resultobj; | |
22727 | fail: | |
22728 | return NULL; | |
22729 | } | |
22730 | ||
22731 | ||
22732 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22733 | PyObject *resultobj = 0; | |
22734 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22735 | int arg2 ; | |
22736 | int arg3 ; | |
22737 | void *argp1 = 0 ; | |
22738 | int res1 = 0 ; | |
22739 | int val2 ; | |
22740 | int ecode2 = 0 ; | |
22741 | int val3 ; | |
22742 | int ecode3 = 0 ; | |
22743 | PyObject * obj0 = 0 ; | |
22744 | PyObject * obj1 = 0 ; | |
22745 | PyObject * obj2 = 0 ; | |
22746 | char * kwnames[] = { | |
22747 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22748 | }; | |
22749 | ||
22750 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22751 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22752 | if (!SWIG_IsOK(res1)) { | |
22753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22754 | } | |
22755 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22756 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22757 | if (!SWIG_IsOK(ecode2)) { | |
22758 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
22759 | } | |
22760 | arg2 = static_cast< int >(val2); | |
22761 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22762 | if (!SWIG_IsOK(ecode3)) { | |
22763 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
22764 | } | |
22765 | arg3 = static_cast< int >(val3); | |
22766 | { | |
22767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22768 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
22769 | wxPyEndAllowThreads(__tstate); | |
22770 | if (PyErr_Occurred()) SWIG_fail; | |
22771 | } | |
22772 | resultobj = SWIG_Py_Void(); | |
22773 | return resultobj; | |
22774 | fail: | |
22775 | return NULL; | |
22776 | } | |
22777 | ||
22778 | ||
22779 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22780 | PyObject *resultobj = 0; | |
22781 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22782 | int *arg2 = (int *) 0 ; | |
22783 | int *arg3 = (int *) 0 ; | |
22784 | void *argp1 = 0 ; | |
22785 | int res1 = 0 ; | |
22786 | int temp2 ; | |
22787 | int res2 = SWIG_TMPOBJ ; | |
22788 | int temp3 ; | |
22789 | int res3 = SWIG_TMPOBJ ; | |
22790 | PyObject *swig_obj[1] ; | |
22791 | ||
22792 | arg2 = &temp2; | |
22793 | arg3 = &temp3; | |
22794 | if (!args) SWIG_fail; | |
22795 | swig_obj[0] = args; | |
22796 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22797 | if (!SWIG_IsOK(res1)) { | |
22798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
22799 | } | |
22800 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22801 | { | |
22802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22803 | ((wxPyScrolledWindow const *)arg1)->DoGetSize(arg2,arg3); | |
22804 | wxPyEndAllowThreads(__tstate); | |
22805 | if (PyErr_Occurred()) SWIG_fail; | |
22806 | } | |
22807 | resultobj = SWIG_Py_Void(); | |
22808 | if (SWIG_IsTmpObj(res2)) { | |
22809 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22810 | } else { | |
22811 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22812 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22813 | } | |
22814 | if (SWIG_IsTmpObj(res3)) { | |
22815 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22816 | } else { | |
22817 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22818 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22819 | } | |
22820 | return resultobj; | |
22821 | fail: | |
22822 | return NULL; | |
22823 | } | |
22824 | ||
22825 | ||
22826 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22827 | PyObject *resultobj = 0; | |
22828 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22829 | int *arg2 = (int *) 0 ; | |
22830 | int *arg3 = (int *) 0 ; | |
22831 | void *argp1 = 0 ; | |
22832 | int res1 = 0 ; | |
22833 | int temp2 ; | |
22834 | int res2 = SWIG_TMPOBJ ; | |
22835 | int temp3 ; | |
22836 | int res3 = SWIG_TMPOBJ ; | |
22837 | PyObject *swig_obj[1] ; | |
22838 | ||
22839 | arg2 = &temp2; | |
22840 | arg3 = &temp3; | |
22841 | if (!args) SWIG_fail; | |
22842 | swig_obj[0] = args; | |
22843 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22844 | if (!SWIG_IsOK(res1)) { | |
22845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
22846 | } | |
22847 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22848 | { | |
22849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22850 | ((wxPyScrolledWindow const *)arg1)->DoGetClientSize(arg2,arg3); | |
22851 | wxPyEndAllowThreads(__tstate); | |
22852 | if (PyErr_Occurred()) SWIG_fail; | |
22853 | } | |
22854 | resultobj = SWIG_Py_Void(); | |
22855 | if (SWIG_IsTmpObj(res2)) { | |
22856 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22857 | } else { | |
22858 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22859 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22860 | } | |
22861 | if (SWIG_IsTmpObj(res3)) { | |
22862 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22863 | } else { | |
22864 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22865 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22866 | } | |
22867 | return resultobj; | |
22868 | fail: | |
22869 | return NULL; | |
22870 | } | |
22871 | ||
22872 | ||
22873 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22874 | PyObject *resultobj = 0; | |
22875 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22876 | int *arg2 = (int *) 0 ; | |
22877 | int *arg3 = (int *) 0 ; | |
22878 | void *argp1 = 0 ; | |
22879 | int res1 = 0 ; | |
22880 | int temp2 ; | |
22881 | int res2 = SWIG_TMPOBJ ; | |
22882 | int temp3 ; | |
22883 | int res3 = SWIG_TMPOBJ ; | |
22884 | PyObject *swig_obj[1] ; | |
22885 | ||
22886 | arg2 = &temp2; | |
22887 | arg3 = &temp3; | |
22888 | if (!args) SWIG_fail; | |
22889 | swig_obj[0] = args; | |
22890 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22891 | if (!SWIG_IsOK(res1)) { | |
22892 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetPosition" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
22893 | } | |
22894 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22895 | { | |
22896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22897 | ((wxPyScrolledWindow const *)arg1)->DoGetPosition(arg2,arg3); | |
22898 | wxPyEndAllowThreads(__tstate); | |
22899 | if (PyErr_Occurred()) SWIG_fail; | |
22900 | } | |
22901 | resultobj = SWIG_Py_Void(); | |
22902 | if (SWIG_IsTmpObj(res2)) { | |
22903 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22904 | } else { | |
22905 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22906 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22907 | } | |
22908 | if (SWIG_IsTmpObj(res3)) { | |
22909 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22910 | } else { | |
22911 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22912 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22913 | } | |
22914 | return resultobj; | |
22915 | fail: | |
22916 | return NULL; | |
d14a1e28 RD |
22917 | } |
22918 | ||
22919 | ||
0085ce49 RD |
22920 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22921 | PyObject *resultobj = 0; | |
22922 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22923 | wxSize result; | |
22924 | void *argp1 = 0 ; | |
22925 | int res1 = 0 ; | |
22926 | PyObject *swig_obj[1] ; | |
22927 | ||
22928 | if (!args) SWIG_fail; | |
22929 | swig_obj[0] = args; | |
22930 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22931 | if (!SWIG_IsOK(res1)) { | |
22932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
22933 | } | |
22934 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22935 | { | |
22936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22937 | result = ((wxPyScrolledWindow const *)arg1)->DoGetVirtualSize(); | |
22938 | wxPyEndAllowThreads(__tstate); | |
22939 | if (PyErr_Occurred()) SWIG_fail; | |
22940 | } | |
22941 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22942 | return resultobj; | |
22943 | fail: | |
22944 | return NULL; | |
d14a1e28 RD |
22945 | } |
22946 | ||
22947 | ||
0085ce49 RD |
22948 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22949 | PyObject *resultobj = 0; | |
22950 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22951 | wxSize result; | |
22952 | void *argp1 = 0 ; | |
22953 | int res1 = 0 ; | |
22954 | PyObject *swig_obj[1] ; | |
22955 | ||
22956 | if (!args) SWIG_fail; | |
22957 | swig_obj[0] = args; | |
22958 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22959 | if (!SWIG_IsOK(res1)) { | |
22960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
22961 | } | |
22962 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22963 | { | |
22964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22965 | result = ((wxPyScrolledWindow const *)arg1)->DoGetBestSize(); | |
22966 | wxPyEndAllowThreads(__tstate); | |
22967 | if (PyErr_Occurred()) SWIG_fail; | |
22968 | } | |
22969 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22970 | return resultobj; | |
22971 | fail: | |
22972 | return NULL; | |
d14a1e28 RD |
22973 | } |
22974 | ||
22975 | ||
0085ce49 RD |
22976 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22977 | PyObject *resultobj = 0; | |
22978 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22979 | SwigValueWrapper<wxVisualAttributes > result; | |
22980 | void *argp1 = 0 ; | |
22981 | int res1 = 0 ; | |
22982 | PyObject *swig_obj[1] ; | |
22983 | ||
22984 | if (!args) SWIG_fail; | |
22985 | swig_obj[0] = args; | |
22986 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22987 | if (!SWIG_IsOK(res1)) { | |
22988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22989 | } | |
22990 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22991 | { | |
22992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22993 | result = (arg1)->GetDefaultAttributes(); | |
22994 | wxPyEndAllowThreads(__tstate); | |
22995 | if (PyErr_Occurred()) SWIG_fail; | |
22996 | } | |
22997 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
22998 | return resultobj; | |
22999 | fail: | |
23000 | return NULL; | |
d14a1e28 RD |
23001 | } |
23002 | ||
23003 | ||
0085ce49 RD |
23004 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23005 | PyObject *resultobj = 0; | |
23006 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23007 | void *argp1 = 0 ; | |
23008 | int res1 = 0 ; | |
23009 | PyObject *swig_obj[1] ; | |
23010 | ||
23011 | if (!args) SWIG_fail; | |
23012 | swig_obj[0] = args; | |
23013 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23014 | if (!SWIG_IsOK(res1)) { | |
23015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23016 | } | |
23017 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23018 | { | |
23019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23020 | (arg1)->OnInternalIdle(); | |
23021 | wxPyEndAllowThreads(__tstate); | |
23022 | if (PyErr_Occurred()) SWIG_fail; | |
23023 | } | |
23024 | resultobj = SWIG_Py_Void(); | |
23025 | return resultobj; | |
23026 | fail: | |
23027 | return NULL; | |
d14a1e28 RD |
23028 | } |
23029 | ||
23030 | ||
0085ce49 RD |
23031 | SWIGINTERN PyObject *PyScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23032 | PyObject *obj; | |
23033 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23034 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyScrolledWindow, SWIG_NewClientData(obj)); | |
23035 | return SWIG_Py_Void(); | |
d14a1e28 RD |
23036 | } |
23037 | ||
0085ce49 RD |
23038 | SWIGINTERN PyObject *PyScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23039 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
23040 | } |
23041 | ||
0085ce49 RD |
23042 | SWIGINTERN int PrintoutTitleStr_set(PyObject *) { |
23043 | SWIG_Error(SWIG_AttributeError,"Variable PrintoutTitleStr is read-only."); | |
23044 | return 1; | |
d14a1e28 RD |
23045 | } |
23046 | ||
23047 | ||
0085ce49 RD |
23048 | SWIGINTERN PyObject *PrintoutTitleStr_get(void) { |
23049 | PyObject *pyobj = 0; | |
23050 | ||
23051 | { | |
23052 | #if wxUSE_UNICODE | |
23053 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
23054 | #else | |
23055 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
23056 | #endif | |
23057 | } | |
23058 | return pyobj; | |
d14a1e28 RD |
23059 | } |
23060 | ||
23061 | ||
0085ce49 RD |
23062 | SWIGINTERN int PreviewCanvasNameStr_set(PyObject *) { |
23063 | SWIG_Error(SWIG_AttributeError,"Variable PreviewCanvasNameStr is read-only."); | |
23064 | return 1; | |
d14a1e28 RD |
23065 | } |
23066 | ||
23067 | ||
0085ce49 RD |
23068 | SWIGINTERN PyObject *PreviewCanvasNameStr_get(void) { |
23069 | PyObject *pyobj = 0; | |
23070 | ||
23071 | { | |
23072 | #if wxUSE_UNICODE | |
23073 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
23074 | #else | |
23075 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
23076 | #endif | |
23077 | } | |
23078 | return pyobj; | |
d14a1e28 RD |
23079 | } |
23080 | ||
23081 | ||
0085ce49 RD |
23082 | SWIGINTERN PyObject *_wrap_new_PrintData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
23083 | PyObject *resultobj = 0; | |
23084 | wxPrintData *result = 0 ; | |
23085 | ||
23086 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
23087 | { | |
23088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23089 | result = (wxPrintData *)new wxPrintData(); | |
23090 | wxPyEndAllowThreads(__tstate); | |
23091 | if (PyErr_Occurred()) SWIG_fail; | |
23092 | } | |
23093 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, SWIG_POINTER_NEW | 0 ); | |
23094 | return resultobj; | |
23095 | fail: | |
23096 | return NULL; | |
d14a1e28 RD |
23097 | } |
23098 | ||
23099 | ||
0085ce49 RD |
23100 | SWIGINTERN PyObject *_wrap_new_PrintData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
23101 | PyObject *resultobj = 0; | |
23102 | wxPrintData *arg1 = 0 ; | |
23103 | wxPrintData *result = 0 ; | |
23104 | void *argp1 = 0 ; | |
23105 | int res1 = 0 ; | |
23106 | ||
23107 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
23108 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
23109 | if (!SWIG_IsOK(res1)) { | |
23110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23111 | } | |
23112 | if (!argp1) { | |
23113 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23114 | } | |
23115 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23116 | { | |
23117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23118 | result = (wxPrintData *)new wxPrintData((wxPrintData const &)*arg1); | |
23119 | wxPyEndAllowThreads(__tstate); | |
23120 | if (PyErr_Occurred()) SWIG_fail; | |
23121 | } | |
23122 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, SWIG_POINTER_NEW | 0 ); | |
23123 | return resultobj; | |
23124 | fail: | |
23125 | return NULL; | |
d14a1e28 RD |
23126 | } |
23127 | ||
23128 | ||
0085ce49 RD |
23129 | SWIGINTERN PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args) { |
23130 | int argc; | |
23131 | PyObject *argv[2]; | |
23132 | ||
23133 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintData",0,1,argv))) SWIG_fail; | |
23134 | --argc; | |
23135 | if (argc == 0) { | |
23136 | return _wrap_new_PrintData__SWIG_0(self, argc, argv); | |
23137 | } | |
23138 | if (argc == 1) { | |
23139 | return _wrap_new_PrintData__SWIG_1(self, argc, argv); | |
23140 | } | |
23141 | ||
23142 | fail: | |
23143 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintData'"); | |
23144 | return NULL; | |
d14a1e28 RD |
23145 | } |
23146 | ||
23147 | ||
0085ce49 RD |
23148 | SWIGINTERN PyObject *_wrap_delete_PrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23149 | PyObject *resultobj = 0; | |
23150 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23151 | void *argp1 = 0 ; | |
23152 | int res1 = 0 ; | |
23153 | PyObject *swig_obj[1] ; | |
23154 | ||
23155 | if (!args) SWIG_fail; | |
23156 | swig_obj[0] = args; | |
23157 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, SWIG_POINTER_DISOWN | 0 ); | |
23158 | if (!SWIG_IsOK(res1)) { | |
23159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23160 | } | |
23161 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23162 | { | |
23163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23164 | delete arg1; | |
d14a1e28 | 23165 | |
0085ce49 RD |
23166 | wxPyEndAllowThreads(__tstate); |
23167 | if (PyErr_Occurred()) SWIG_fail; | |
23168 | } | |
23169 | resultobj = SWIG_Py_Void(); | |
23170 | return resultobj; | |
23171 | fail: | |
23172 | return NULL; | |
d14a1e28 RD |
23173 | } |
23174 | ||
23175 | ||
0085ce49 RD |
23176 | SWIGINTERN PyObject *_wrap_PrintData_GetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23177 | PyObject *resultobj = 0; | |
23178 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23179 | int result; | |
23180 | void *argp1 = 0 ; | |
23181 | int res1 = 0 ; | |
23182 | PyObject *swig_obj[1] ; | |
23183 | ||
23184 | if (!args) SWIG_fail; | |
23185 | swig_obj[0] = args; | |
23186 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23187 | if (!SWIG_IsOK(res1)) { | |
23188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetNoCopies" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23189 | } | |
23190 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23191 | { | |
23192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23193 | result = (int)(arg1)->GetNoCopies(); | |
23194 | wxPyEndAllowThreads(__tstate); | |
23195 | if (PyErr_Occurred()) SWIG_fail; | |
23196 | } | |
23197 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23198 | return resultobj; | |
23199 | fail: | |
23200 | return NULL; | |
d14a1e28 RD |
23201 | } |
23202 | ||
23203 | ||
0085ce49 RD |
23204 | SWIGINTERN PyObject *_wrap_PrintData_GetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23205 | PyObject *resultobj = 0; | |
23206 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23207 | bool result; | |
23208 | void *argp1 = 0 ; | |
23209 | int res1 = 0 ; | |
23210 | PyObject *swig_obj[1] ; | |
23211 | ||
23212 | if (!args) SWIG_fail; | |
23213 | swig_obj[0] = args; | |
23214 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23215 | if (!SWIG_IsOK(res1)) { | |
23216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetCollate" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23217 | } | |
23218 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23219 | { | |
23220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23221 | result = (bool)(arg1)->GetCollate(); | |
23222 | wxPyEndAllowThreads(__tstate); | |
23223 | if (PyErr_Occurred()) SWIG_fail; | |
23224 | } | |
23225 | { | |
23226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23227 | } | |
23228 | return resultobj; | |
23229 | fail: | |
23230 | return NULL; | |
d14a1e28 RD |
23231 | } |
23232 | ||
23233 | ||
0085ce49 RD |
23234 | SWIGINTERN PyObject *_wrap_PrintData_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23235 | PyObject *resultobj = 0; | |
23236 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23237 | int result; | |
23238 | void *argp1 = 0 ; | |
23239 | int res1 = 0 ; | |
23240 | PyObject *swig_obj[1] ; | |
23241 | ||
23242 | if (!args) SWIG_fail; | |
23243 | swig_obj[0] = args; | |
23244 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23245 | if (!SWIG_IsOK(res1)) { | |
23246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetOrientation" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23247 | } | |
23248 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23249 | { | |
23250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23251 | result = (int)(arg1)->GetOrientation(); | |
23252 | wxPyEndAllowThreads(__tstate); | |
23253 | if (PyErr_Occurred()) SWIG_fail; | |
23254 | } | |
23255 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23256 | return resultobj; | |
23257 | fail: | |
23258 | return NULL; | |
d14a1e28 RD |
23259 | } |
23260 | ||
23261 | ||
0085ce49 RD |
23262 | SWIGINTERN PyObject *_wrap_PrintData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23263 | PyObject *resultobj = 0; | |
23264 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23265 | bool result; | |
23266 | void *argp1 = 0 ; | |
23267 | int res1 = 0 ; | |
23268 | PyObject *swig_obj[1] ; | |
23269 | ||
23270 | if (!args) SWIG_fail; | |
23271 | swig_obj[0] = args; | |
23272 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23273 | if (!SWIG_IsOK(res1)) { | |
23274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_Ok" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23275 | } | |
23276 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23277 | { | |
23278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23279 | result = (bool)(arg1)->Ok(); | |
23280 | wxPyEndAllowThreads(__tstate); | |
23281 | if (PyErr_Occurred()) SWIG_fail; | |
23282 | } | |
23283 | { | |
23284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23285 | } | |
23286 | return resultobj; | |
23287 | fail: | |
23288 | return NULL; | |
23289 | } | |
23290 | ||
23291 | ||
23292 | SWIGINTERN PyObject *_wrap_PrintData_GetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23293 | PyObject *resultobj = 0; | |
23294 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23295 | wxString *result = 0 ; | |
23296 | void *argp1 = 0 ; | |
23297 | int res1 = 0 ; | |
23298 | PyObject *swig_obj[1] ; | |
23299 | ||
23300 | if (!args) SWIG_fail; | |
23301 | swig_obj[0] = args; | |
23302 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23303 | if (!SWIG_IsOK(res1)) { | |
23304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrinterName" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23305 | } | |
23306 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23307 | { | |
23308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 23309 | { |
0085ce49 RD |
23310 | wxString const &_result_ref = (arg1)->GetPrinterName(); |
23311 | result = (wxString *) &_result_ref; | |
d14a1e28 | 23312 | } |
0085ce49 RD |
23313 | wxPyEndAllowThreads(__tstate); |
23314 | if (PyErr_Occurred()) SWIG_fail; | |
23315 | } | |
23316 | { | |
d14a1e28 | 23317 | #if wxUSE_UNICODE |
0085ce49 | 23318 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 23319 | #else |
0085ce49 | 23320 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 | 23321 | #endif |
0085ce49 RD |
23322 | } |
23323 | return resultobj; | |
23324 | fail: | |
23325 | return NULL; | |
d14a1e28 RD |
23326 | } |
23327 | ||
23328 | ||
0085ce49 RD |
23329 | SWIGINTERN PyObject *_wrap_PrintData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23330 | PyObject *resultobj = 0; | |
23331 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23332 | bool result; | |
23333 | void *argp1 = 0 ; | |
23334 | int res1 = 0 ; | |
23335 | PyObject *swig_obj[1] ; | |
23336 | ||
23337 | if (!args) SWIG_fail; | |
23338 | swig_obj[0] = args; | |
23339 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23340 | if (!SWIG_IsOK(res1)) { | |
23341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetColour" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23342 | } | |
23343 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23344 | { | |
23345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23346 | result = (bool)(arg1)->GetColour(); | |
23347 | wxPyEndAllowThreads(__tstate); | |
23348 | if (PyErr_Occurred()) SWIG_fail; | |
23349 | } | |
23350 | { | |
23351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23352 | } | |
23353 | return resultobj; | |
23354 | fail: | |
23355 | return NULL; | |
d14a1e28 RD |
23356 | } |
23357 | ||
23358 | ||
0085ce49 RD |
23359 | SWIGINTERN PyObject *_wrap_PrintData_GetDuplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23360 | PyObject *resultobj = 0; | |
23361 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23362 | wxDuplexMode result; | |
23363 | void *argp1 = 0 ; | |
23364 | int res1 = 0 ; | |
23365 | PyObject *swig_obj[1] ; | |
23366 | ||
23367 | if (!args) SWIG_fail; | |
23368 | swig_obj[0] = args; | |
23369 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23370 | if (!SWIG_IsOK(res1)) { | |
23371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetDuplex" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23372 | } | |
23373 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23374 | { | |
23375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23376 | result = (wxDuplexMode)(arg1)->GetDuplex(); | |
23377 | wxPyEndAllowThreads(__tstate); | |
23378 | if (PyErr_Occurred()) SWIG_fail; | |
23379 | } | |
23380 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23381 | return resultobj; | |
23382 | fail: | |
23383 | return NULL; | |
d14a1e28 RD |
23384 | } |
23385 | ||
23386 | ||
0085ce49 RD |
23387 | SWIGINTERN PyObject *_wrap_PrintData_GetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23388 | PyObject *resultobj = 0; | |
23389 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23390 | wxPaperSize result; | |
23391 | void *argp1 = 0 ; | |
23392 | int res1 = 0 ; | |
23393 | PyObject *swig_obj[1] ; | |
23394 | ||
23395 | if (!args) SWIG_fail; | |
23396 | swig_obj[0] = args; | |
23397 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23398 | if (!SWIG_IsOK(res1)) { | |
23399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPaperId" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23400 | } | |
23401 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23402 | { | |
23403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23404 | result = (wxPaperSize)(arg1)->GetPaperId(); | |
23405 | wxPyEndAllowThreads(__tstate); | |
23406 | if (PyErr_Occurred()) SWIG_fail; | |
23407 | } | |
23408 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23409 | return resultobj; | |
23410 | fail: | |
23411 | return NULL; | |
d14a1e28 RD |
23412 | } |
23413 | ||
23414 | ||
0085ce49 RD |
23415 | SWIGINTERN PyObject *_wrap_PrintData_GetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23416 | PyObject *resultobj = 0; | |
23417 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23418 | wxSize *result = 0 ; | |
23419 | void *argp1 = 0 ; | |
23420 | int res1 = 0 ; | |
23421 | PyObject *swig_obj[1] ; | |
23422 | ||
23423 | if (!args) SWIG_fail; | |
23424 | swig_obj[0] = args; | |
23425 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23426 | if (!SWIG_IsOK(res1)) { | |
23427 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPaperSize" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23428 | } | |
23429 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23430 | { | |
23431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 23432 | { |
0085ce49 RD |
23433 | wxSize const &_result_ref = (arg1)->GetPaperSize(); |
23434 | result = (wxSize *) &_result_ref; | |
23435 | } | |
23436 | wxPyEndAllowThreads(__tstate); | |
23437 | if (PyErr_Occurred()) SWIG_fail; | |
23438 | } | |
23439 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSize, 0 | 0 ); | |
23440 | return resultobj; | |
23441 | fail: | |
23442 | return NULL; | |
d14a1e28 RD |
23443 | } |
23444 | ||
23445 | ||
0085ce49 RD |
23446 | SWIGINTERN PyObject *_wrap_PrintData_GetQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23447 | PyObject *resultobj = 0; | |
23448 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23449 | int result; | |
23450 | void *argp1 = 0 ; | |
23451 | int res1 = 0 ; | |
23452 | PyObject *swig_obj[1] ; | |
23453 | ||
23454 | if (!args) SWIG_fail; | |
23455 | swig_obj[0] = args; | |
23456 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23457 | if (!SWIG_IsOK(res1)) { | |
23458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetQuality" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23459 | } | |
23460 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23461 | { | |
23462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23463 | result = (int)(arg1)->GetQuality(); | |
23464 | wxPyEndAllowThreads(__tstate); | |
23465 | if (PyErr_Occurred()) SWIG_fail; | |
23466 | } | |
23467 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23468 | return resultobj; | |
23469 | fail: | |
23470 | return NULL; | |
d14a1e28 RD |
23471 | } |
23472 | ||
23473 | ||
0085ce49 RD |
23474 | SWIGINTERN PyObject *_wrap_PrintData_GetBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23475 | PyObject *resultobj = 0; | |
23476 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23477 | wxPrintBin result; | |
23478 | void *argp1 = 0 ; | |
23479 | int res1 = 0 ; | |
23480 | PyObject *swig_obj[1] ; | |
23481 | ||
23482 | if (!args) SWIG_fail; | |
23483 | swig_obj[0] = args; | |
23484 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23485 | if (!SWIG_IsOK(res1)) { | |
23486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetBin" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23487 | } | |
23488 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23489 | { | |
23490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23491 | result = (wxPrintBin)(arg1)->GetBin(); | |
23492 | wxPyEndAllowThreads(__tstate); | |
23493 | if (PyErr_Occurred()) SWIG_fail; | |
23494 | } | |
23495 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23496 | return resultobj; | |
23497 | fail: | |
23498 | return NULL; | |
d14a1e28 RD |
23499 | } |
23500 | ||
23501 | ||
0085ce49 RD |
23502 | SWIGINTERN PyObject *_wrap_PrintData_GetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23503 | PyObject *resultobj = 0; | |
23504 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23505 | wxPrintMode result; | |
23506 | void *argp1 = 0 ; | |
23507 | int res1 = 0 ; | |
23508 | PyObject *swig_obj[1] ; | |
23509 | ||
23510 | if (!args) SWIG_fail; | |
23511 | swig_obj[0] = args; | |
23512 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23513 | if (!SWIG_IsOK(res1)) { | |
23514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrintMode" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
23515 | } | |
23516 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23517 | { | |
23518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23519 | result = (wxPrintMode)((wxPrintData const *)arg1)->GetPrintMode(); | |
23520 | wxPyEndAllowThreads(__tstate); | |
23521 | if (PyErr_Occurred()) SWIG_fail; | |
23522 | } | |
23523 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23524 | return resultobj; | |
23525 | fail: | |
23526 | return NULL; | |
23527 | } | |
23528 | ||
23529 | ||
23530 | SWIGINTERN PyObject *_wrap_PrintData_SetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23531 | PyObject *resultobj = 0; | |
23532 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23533 | int arg2 ; | |
23534 | void *argp1 = 0 ; | |
23535 | int res1 = 0 ; | |
23536 | int val2 ; | |
23537 | int ecode2 = 0 ; | |
23538 | PyObject * obj0 = 0 ; | |
23539 | PyObject * obj1 = 0 ; | |
23540 | char * kwnames[] = { | |
23541 | (char *) "self",(char *) "v", NULL | |
23542 | }; | |
23543 | ||
23544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) SWIG_fail; | |
23545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23546 | if (!SWIG_IsOK(res1)) { | |
23547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetNoCopies" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23548 | } | |
23549 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23550 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23551 | if (!SWIG_IsOK(ecode2)) { | |
23552 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetNoCopies" "', expected argument " "2"" of type '" "int""'"); | |
23553 | } | |
23554 | arg2 = static_cast< int >(val2); | |
23555 | { | |
23556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23557 | (arg1)->SetNoCopies(arg2); | |
23558 | wxPyEndAllowThreads(__tstate); | |
23559 | if (PyErr_Occurred()) SWIG_fail; | |
23560 | } | |
23561 | resultobj = SWIG_Py_Void(); | |
23562 | return resultobj; | |
23563 | fail: | |
23564 | return NULL; | |
23565 | } | |
23566 | ||
23567 | ||
23568 | SWIGINTERN PyObject *_wrap_PrintData_SetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23569 | PyObject *resultobj = 0; | |
23570 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23571 | bool arg2 ; | |
23572 | void *argp1 = 0 ; | |
23573 | int res1 = 0 ; | |
23574 | bool val2 ; | |
23575 | int ecode2 = 0 ; | |
23576 | PyObject * obj0 = 0 ; | |
23577 | PyObject * obj1 = 0 ; | |
23578 | char * kwnames[] = { | |
23579 | (char *) "self",(char *) "flag", NULL | |
23580 | }; | |
23581 | ||
23582 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) SWIG_fail; | |
23583 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23584 | if (!SWIG_IsOK(res1)) { | |
23585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetCollate" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23586 | } | |
23587 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23588 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23589 | if (!SWIG_IsOK(ecode2)) { | |
23590 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetCollate" "', expected argument " "2"" of type '" "bool""'"); | |
23591 | } | |
23592 | arg2 = static_cast< bool >(val2); | |
23593 | { | |
23594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23595 | (arg1)->SetCollate(arg2); | |
23596 | wxPyEndAllowThreads(__tstate); | |
23597 | if (PyErr_Occurred()) SWIG_fail; | |
23598 | } | |
23599 | resultobj = SWIG_Py_Void(); | |
23600 | return resultobj; | |
23601 | fail: | |
23602 | return NULL; | |
23603 | } | |
23604 | ||
23605 | ||
23606 | SWIGINTERN PyObject *_wrap_PrintData_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23607 | PyObject *resultobj = 0; | |
23608 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23609 | int arg2 ; | |
23610 | void *argp1 = 0 ; | |
23611 | int res1 = 0 ; | |
23612 | int val2 ; | |
23613 | int ecode2 = 0 ; | |
23614 | PyObject * obj0 = 0 ; | |
23615 | PyObject * obj1 = 0 ; | |
23616 | char * kwnames[] = { | |
23617 | (char *) "self",(char *) "orient", NULL | |
23618 | }; | |
23619 | ||
23620 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
23621 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23622 | if (!SWIG_IsOK(res1)) { | |
23623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetOrientation" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23624 | } | |
23625 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23626 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23627 | if (!SWIG_IsOK(ecode2)) { | |
23628 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetOrientation" "', expected argument " "2"" of type '" "int""'"); | |
23629 | } | |
23630 | arg2 = static_cast< int >(val2); | |
23631 | { | |
23632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23633 | (arg1)->SetOrientation(arg2); | |
23634 | wxPyEndAllowThreads(__tstate); | |
23635 | if (PyErr_Occurred()) SWIG_fail; | |
23636 | } | |
23637 | resultobj = SWIG_Py_Void(); | |
23638 | return resultobj; | |
23639 | fail: | |
23640 | return NULL; | |
23641 | } | |
23642 | ||
23643 | ||
23644 | SWIGINTERN PyObject *_wrap_PrintData_SetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23645 | PyObject *resultobj = 0; | |
23646 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23647 | wxString *arg2 = 0 ; | |
23648 | void *argp1 = 0 ; | |
23649 | int res1 = 0 ; | |
23650 | bool temp2 = false ; | |
23651 | PyObject * obj0 = 0 ; | |
23652 | PyObject * obj1 = 0 ; | |
23653 | char * kwnames[] = { | |
23654 | (char *) "self",(char *) "name", NULL | |
23655 | }; | |
23656 | ||
23657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) SWIG_fail; | |
23658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23659 | if (!SWIG_IsOK(res1)) { | |
23660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrinterName" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23661 | } | |
23662 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23663 | { | |
23664 | arg2 = wxString_in_helper(obj1); | |
23665 | if (arg2 == NULL) SWIG_fail; | |
23666 | temp2 = true; | |
23667 | } | |
23668 | { | |
23669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23670 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
23671 | wxPyEndAllowThreads(__tstate); | |
23672 | if (PyErr_Occurred()) SWIG_fail; | |
23673 | } | |
23674 | resultobj = SWIG_Py_Void(); | |
23675 | { | |
23676 | if (temp2) | |
23677 | delete arg2; | |
23678 | } | |
23679 | return resultobj; | |
23680 | fail: | |
23681 | { | |
23682 | if (temp2) | |
23683 | delete arg2; | |
23684 | } | |
23685 | return NULL; | |
23686 | } | |
23687 | ||
23688 | ||
23689 | SWIGINTERN PyObject *_wrap_PrintData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23690 | PyObject *resultobj = 0; | |
23691 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23692 | bool arg2 ; | |
23693 | void *argp1 = 0 ; | |
23694 | int res1 = 0 ; | |
23695 | bool val2 ; | |
23696 | int ecode2 = 0 ; | |
23697 | PyObject * obj0 = 0 ; | |
23698 | PyObject * obj1 = 0 ; | |
23699 | char * kwnames[] = { | |
23700 | (char *) "self",(char *) "colour", NULL | |
23701 | }; | |
23702 | ||
23703 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
23704 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23705 | if (!SWIG_IsOK(res1)) { | |
23706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetColour" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23707 | } | |
23708 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23709 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23710 | if (!SWIG_IsOK(ecode2)) { | |
23711 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetColour" "', expected argument " "2"" of type '" "bool""'"); | |
23712 | } | |
23713 | arg2 = static_cast< bool >(val2); | |
23714 | { | |
23715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23716 | (arg1)->SetColour(arg2); | |
23717 | wxPyEndAllowThreads(__tstate); | |
23718 | if (PyErr_Occurred()) SWIG_fail; | |
23719 | } | |
23720 | resultobj = SWIG_Py_Void(); | |
23721 | return resultobj; | |
23722 | fail: | |
23723 | return NULL; | |
23724 | } | |
23725 | ||
23726 | ||
23727 | SWIGINTERN PyObject *_wrap_PrintData_SetDuplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23728 | PyObject *resultobj = 0; | |
23729 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23730 | wxDuplexMode arg2 ; | |
23731 | void *argp1 = 0 ; | |
23732 | int res1 = 0 ; | |
23733 | int val2 ; | |
23734 | int ecode2 = 0 ; | |
23735 | PyObject * obj0 = 0 ; | |
23736 | PyObject * obj1 = 0 ; | |
23737 | char * kwnames[] = { | |
23738 | (char *) "self",(char *) "duplex", NULL | |
23739 | }; | |
23740 | ||
23741 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) SWIG_fail; | |
23742 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23743 | if (!SWIG_IsOK(res1)) { | |
23744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetDuplex" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23745 | } | |
23746 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23747 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23748 | if (!SWIG_IsOK(ecode2)) { | |
23749 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetDuplex" "', expected argument " "2"" of type '" "wxDuplexMode""'"); | |
23750 | } | |
23751 | arg2 = static_cast< wxDuplexMode >(val2); | |
23752 | { | |
23753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23754 | (arg1)->SetDuplex(arg2); | |
23755 | wxPyEndAllowThreads(__tstate); | |
23756 | if (PyErr_Occurred()) SWIG_fail; | |
23757 | } | |
23758 | resultobj = SWIG_Py_Void(); | |
23759 | return resultobj; | |
23760 | fail: | |
23761 | return NULL; | |
23762 | } | |
23763 | ||
23764 | ||
23765 | SWIGINTERN PyObject *_wrap_PrintData_SetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23766 | PyObject *resultobj = 0; | |
23767 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23768 | wxPaperSize arg2 ; | |
23769 | void *argp1 = 0 ; | |
23770 | int res1 = 0 ; | |
23771 | int val2 ; | |
23772 | int ecode2 = 0 ; | |
23773 | PyObject * obj0 = 0 ; | |
23774 | PyObject * obj1 = 0 ; | |
23775 | char * kwnames[] = { | |
23776 | (char *) "self",(char *) "sizeId", NULL | |
23777 | }; | |
23778 | ||
23779 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) SWIG_fail; | |
23780 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23781 | if (!SWIG_IsOK(res1)) { | |
23782 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPaperId" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23783 | } | |
23784 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23785 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23786 | if (!SWIG_IsOK(ecode2)) { | |
23787 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetPaperId" "', expected argument " "2"" of type '" "wxPaperSize""'"); | |
23788 | } | |
23789 | arg2 = static_cast< wxPaperSize >(val2); | |
23790 | { | |
23791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23792 | (arg1)->SetPaperId(arg2); | |
23793 | wxPyEndAllowThreads(__tstate); | |
23794 | if (PyErr_Occurred()) SWIG_fail; | |
23795 | } | |
23796 | resultobj = SWIG_Py_Void(); | |
23797 | return resultobj; | |
23798 | fail: | |
23799 | return NULL; | |
23800 | } | |
23801 | ||
23802 | ||
23803 | SWIGINTERN PyObject *_wrap_PrintData_SetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23804 | PyObject *resultobj = 0; | |
23805 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23806 | wxSize *arg2 = 0 ; | |
23807 | void *argp1 = 0 ; | |
23808 | int res1 = 0 ; | |
23809 | wxSize temp2 ; | |
23810 | PyObject * obj0 = 0 ; | |
23811 | PyObject * obj1 = 0 ; | |
23812 | char * kwnames[] = { | |
23813 | (char *) "self",(char *) "sz", NULL | |
23814 | }; | |
23815 | ||
23816 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
23817 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23818 | if (!SWIG_IsOK(res1)) { | |
23819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPaperSize" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23820 | } | |
23821 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23822 | { | |
23823 | arg2 = &temp2; | |
23824 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23825 | } | |
23826 | { | |
23827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23828 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
23829 | wxPyEndAllowThreads(__tstate); | |
23830 | if (PyErr_Occurred()) SWIG_fail; | |
23831 | } | |
23832 | resultobj = SWIG_Py_Void(); | |
23833 | return resultobj; | |
23834 | fail: | |
23835 | return NULL; | |
23836 | } | |
23837 | ||
23838 | ||
23839 | SWIGINTERN PyObject *_wrap_PrintData_SetQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23840 | PyObject *resultobj = 0; | |
23841 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23842 | int arg2 ; | |
23843 | void *argp1 = 0 ; | |
23844 | int res1 = 0 ; | |
23845 | int val2 ; | |
23846 | int ecode2 = 0 ; | |
23847 | PyObject * obj0 = 0 ; | |
23848 | PyObject * obj1 = 0 ; | |
23849 | char * kwnames[] = { | |
23850 | (char *) "self",(char *) "quality", NULL | |
23851 | }; | |
23852 | ||
23853 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) SWIG_fail; | |
23854 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23855 | if (!SWIG_IsOK(res1)) { | |
23856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetQuality" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23857 | } | |
23858 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23859 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23860 | if (!SWIG_IsOK(ecode2)) { | |
23861 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetQuality" "', expected argument " "2"" of type '" "int""'"); | |
23862 | } | |
23863 | arg2 = static_cast< int >(val2); | |
23864 | { | |
23865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23866 | (arg1)->SetQuality(arg2); | |
23867 | wxPyEndAllowThreads(__tstate); | |
23868 | if (PyErr_Occurred()) SWIG_fail; | |
23869 | } | |
23870 | resultobj = SWIG_Py_Void(); | |
23871 | return resultobj; | |
23872 | fail: | |
23873 | return NULL; | |
23874 | } | |
23875 | ||
23876 | ||
23877 | SWIGINTERN PyObject *_wrap_PrintData_SetBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23878 | PyObject *resultobj = 0; | |
23879 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23880 | wxPrintBin arg2 ; | |
23881 | void *argp1 = 0 ; | |
23882 | int res1 = 0 ; | |
23883 | int val2 ; | |
23884 | int ecode2 = 0 ; | |
23885 | PyObject * obj0 = 0 ; | |
23886 | PyObject * obj1 = 0 ; | |
23887 | char * kwnames[] = { | |
23888 | (char *) "self",(char *) "bin", NULL | |
23889 | }; | |
23890 | ||
23891 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetBin",kwnames,&obj0,&obj1)) SWIG_fail; | |
23892 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23893 | if (!SWIG_IsOK(res1)) { | |
23894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetBin" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23895 | } | |
23896 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23897 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23898 | if (!SWIG_IsOK(ecode2)) { | |
23899 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetBin" "', expected argument " "2"" of type '" "wxPrintBin""'"); | |
23900 | } | |
23901 | arg2 = static_cast< wxPrintBin >(val2); | |
23902 | { | |
23903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23904 | (arg1)->SetBin(arg2); | |
23905 | wxPyEndAllowThreads(__tstate); | |
23906 | if (PyErr_Occurred()) SWIG_fail; | |
23907 | } | |
23908 | resultobj = SWIG_Py_Void(); | |
23909 | return resultobj; | |
23910 | fail: | |
23911 | return NULL; | |
23912 | } | |
23913 | ||
23914 | ||
23915 | SWIGINTERN PyObject *_wrap_PrintData_SetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23916 | PyObject *resultobj = 0; | |
23917 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23918 | wxPrintMode arg2 ; | |
23919 | void *argp1 = 0 ; | |
23920 | int res1 = 0 ; | |
23921 | int val2 ; | |
23922 | int ecode2 = 0 ; | |
23923 | PyObject * obj0 = 0 ; | |
23924 | PyObject * obj1 = 0 ; | |
23925 | char * kwnames[] = { | |
23926 | (char *) "self",(char *) "printMode", NULL | |
23927 | }; | |
23928 | ||
23929 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
23930 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23931 | if (!SWIG_IsOK(res1)) { | |
23932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrintMode" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23933 | } | |
23934 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23935 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23936 | if (!SWIG_IsOK(ecode2)) { | |
23937 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetPrintMode" "', expected argument " "2"" of type '" "wxPrintMode""'"); | |
23938 | } | |
23939 | arg2 = static_cast< wxPrintMode >(val2); | |
23940 | { | |
23941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23942 | (arg1)->SetPrintMode(arg2); | |
23943 | wxPyEndAllowThreads(__tstate); | |
23944 | if (PyErr_Occurred()) SWIG_fail; | |
23945 | } | |
23946 | resultobj = SWIG_Py_Void(); | |
23947 | return resultobj; | |
23948 | fail: | |
23949 | return NULL; | |
d14a1e28 RD |
23950 | } |
23951 | ||
23952 | ||
0085ce49 RD |
23953 | SWIGINTERN PyObject *_wrap_PrintData_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23954 | PyObject *resultobj = 0; | |
23955 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23956 | wxString result; | |
23957 | void *argp1 = 0 ; | |
23958 | int res1 = 0 ; | |
23959 | PyObject *swig_obj[1] ; | |
23960 | ||
23961 | if (!args) SWIG_fail; | |
23962 | swig_obj[0] = args; | |
23963 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23964 | if (!SWIG_IsOK(res1)) { | |
23965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetFilename" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
23966 | } | |
23967 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23968 | { | |
23969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23970 | result = ((wxPrintData const *)arg1)->GetFilename(); | |
23971 | wxPyEndAllowThreads(__tstate); | |
23972 | if (PyErr_Occurred()) SWIG_fail; | |
23973 | } | |
23974 | { | |
d14a1e28 | 23975 | #if wxUSE_UNICODE |
0085ce49 | 23976 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 23977 | #else |
0085ce49 | 23978 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 23979 | #endif |
0085ce49 RD |
23980 | } |
23981 | return resultobj; | |
23982 | fail: | |
23983 | return NULL; | |
23984 | } | |
23985 | ||
23986 | ||
23987 | SWIGINTERN PyObject *_wrap_PrintData_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23988 | PyObject *resultobj = 0; | |
23989 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23990 | wxString *arg2 = 0 ; | |
23991 | void *argp1 = 0 ; | |
23992 | int res1 = 0 ; | |
23993 | bool temp2 = false ; | |
23994 | PyObject * obj0 = 0 ; | |
23995 | PyObject * obj1 = 0 ; | |
23996 | char * kwnames[] = { | |
23997 | (char *) "self",(char *) "filename", NULL | |
23998 | }; | |
23999 | ||
24000 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
24001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24002 | if (!SWIG_IsOK(res1)) { | |
24003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetFilename" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24004 | } | |
24005 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24006 | { | |
24007 | arg2 = wxString_in_helper(obj1); | |
24008 | if (arg2 == NULL) SWIG_fail; | |
24009 | temp2 = true; | |
24010 | } | |
24011 | { | |
24012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24013 | (arg1)->SetFilename((wxString const &)*arg2); | |
24014 | wxPyEndAllowThreads(__tstate); | |
24015 | if (PyErr_Occurred()) SWIG_fail; | |
24016 | } | |
24017 | resultobj = SWIG_Py_Void(); | |
24018 | { | |
24019 | if (temp2) | |
24020 | delete arg2; | |
24021 | } | |
24022 | return resultobj; | |
24023 | fail: | |
24024 | { | |
24025 | if (temp2) | |
24026 | delete arg2; | |
24027 | } | |
24028 | return NULL; | |
d14a1e28 RD |
24029 | } |
24030 | ||
24031 | ||
0085ce49 RD |
24032 | SWIGINTERN PyObject *_wrap_PrintData_GetPrivData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24033 | PyObject *resultobj = 0; | |
24034 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24035 | PyObject *result = 0 ; | |
24036 | void *argp1 = 0 ; | |
24037 | int res1 = 0 ; | |
24038 | PyObject *swig_obj[1] ; | |
24039 | ||
24040 | if (!args) SWIG_fail; | |
24041 | swig_obj[0] = args; | |
24042 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24043 | if (!SWIG_IsOK(res1)) { | |
24044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrivData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24045 | } | |
24046 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24047 | { | |
24048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24049 | result = (PyObject *)wxPrintData_GetPrivData(arg1); | |
24050 | wxPyEndAllowThreads(__tstate); | |
24051 | if (PyErr_Occurred()) SWIG_fail; | |
24052 | } | |
24053 | resultobj = result; | |
24054 | return resultobj; | |
24055 | fail: | |
24056 | return NULL; | |
24057 | } | |
24058 | ||
24059 | ||
24060 | SWIGINTERN PyObject *_wrap_PrintData_SetPrivData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24061 | PyObject *resultobj = 0; | |
24062 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24063 | PyObject *arg2 = (PyObject *) 0 ; | |
24064 | void *argp1 = 0 ; | |
24065 | int res1 = 0 ; | |
24066 | PyObject * obj0 = 0 ; | |
24067 | PyObject * obj1 = 0 ; | |
24068 | char * kwnames[] = { | |
24069 | (char *) "self",(char *) "data", NULL | |
24070 | }; | |
24071 | ||
24072 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrivData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24073 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24074 | if (!SWIG_IsOK(res1)) { | |
24075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrivData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24076 | } | |
24077 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24078 | arg2 = obj1; | |
24079 | { | |
24080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24081 | wxPrintData_SetPrivData(arg1,arg2); | |
24082 | wxPyEndAllowThreads(__tstate); | |
24083 | if (PyErr_Occurred()) SWIG_fail; | |
24084 | } | |
24085 | resultobj = SWIG_Py_Void(); | |
24086 | return resultobj; | |
24087 | fail: | |
24088 | return NULL; | |
d14a1e28 RD |
24089 | } |
24090 | ||
24091 | ||
0085ce49 RD |
24092 | SWIGINTERN PyObject *PrintData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24093 | PyObject *obj; | |
24094 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24095 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintData, SWIG_NewClientData(obj)); | |
24096 | return SWIG_Py_Void(); | |
d14a1e28 RD |
24097 | } |
24098 | ||
0085ce49 RD |
24099 | SWIGINTERN PyObject *PrintData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24100 | return SWIG_Python_InitShadowInstance(args); | |
24101 | } | |
d14a1e28 | 24102 | |
0085ce49 RD |
24103 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
24104 | PyObject *resultobj = 0; | |
24105 | wxPageSetupDialogData *result = 0 ; | |
24106 | ||
24107 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
24108 | { | |
24109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24110 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
24111 | wxPyEndAllowThreads(__tstate); | |
24112 | if (PyErr_Occurred()) SWIG_fail; | |
24113 | } | |
24114 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24115 | return resultobj; | |
24116 | fail: | |
24117 | return NULL; | |
d14a1e28 RD |
24118 | } |
24119 | ||
24120 | ||
0085ce49 RD |
24121 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24122 | PyObject *resultobj = 0; | |
24123 | wxPageSetupDialogData *arg1 = 0 ; | |
24124 | wxPageSetupDialogData *result = 0 ; | |
24125 | void *argp1 = 0 ; | |
24126 | int res1 = 0 ; | |
24127 | ||
24128 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
24129 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPageSetupDialogData, 0 | 0); | |
24130 | if (!SWIG_IsOK(res1)) { | |
24131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData const &""'"); | |
24132 | } | |
24133 | if (!argp1) { | |
24134 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData const &""'"); | |
24135 | } | |
24136 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24137 | { | |
24138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24139 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPageSetupDialogData const &)*arg1); | |
24140 | wxPyEndAllowThreads(__tstate); | |
24141 | if (PyErr_Occurred()) SWIG_fail; | |
24142 | } | |
24143 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24144 | return resultobj; | |
24145 | fail: | |
24146 | return NULL; | |
d14a1e28 RD |
24147 | } |
24148 | ||
24149 | ||
0085ce49 RD |
24150 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24151 | PyObject *resultobj = 0; | |
24152 | wxPrintData *arg1 = 0 ; | |
24153 | wxPageSetupDialogData *result = 0 ; | |
24154 | void *argp1 = 0 ; | |
24155 | int res1 = 0 ; | |
24156 | ||
24157 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
24158 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24159 | if (!SWIG_IsOK(res1)) { | |
24160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24161 | } | |
24162 | if (!argp1) { | |
24163 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24164 | } | |
24165 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24166 | { | |
24167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24168 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPrintData const &)*arg1); | |
24169 | wxPyEndAllowThreads(__tstate); | |
24170 | if (PyErr_Occurred()) SWIG_fail; | |
24171 | } | |
24172 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24173 | return resultobj; | |
24174 | fail: | |
24175 | return NULL; | |
d3b6e4ff RD |
24176 | } |
24177 | ||
24178 | ||
0085ce49 RD |
24179 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args) { |
24180 | int argc; | |
24181 | PyObject *argv[2]; | |
24182 | ||
24183 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PageSetupDialogData",0,1,argv))) SWIG_fail; | |
24184 | --argc; | |
24185 | if (argc == 0) { | |
24186 | return _wrap_new_PageSetupDialogData__SWIG_0(self, argc, argv); | |
24187 | } | |
24188 | if (argc == 1) { | |
24189 | int _v = 0; | |
d3b6e4ff | 24190 | { |
0085ce49 RD |
24191 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxPageSetupDialogData, 0); |
24192 | _v = SWIG_CheckState(res); | |
d3b6e4ff | 24193 | } |
0085ce49 RD |
24194 | if (!_v) goto check_2; |
24195 | return _wrap_new_PageSetupDialogData__SWIG_1(self, argc, argv); | |
24196 | } | |
24197 | check_2: | |
24198 | ||
24199 | if (argc == 1) { | |
24200 | return _wrap_new_PageSetupDialogData__SWIG_2(self, argc, argv); | |
24201 | } | |
24202 | ||
24203 | fail: | |
24204 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PageSetupDialogData'"); | |
24205 | return NULL; | |
d3b6e4ff RD |
24206 | } |
24207 | ||
24208 | ||
0085ce49 RD |
24209 | SWIGINTERN PyObject *_wrap_delete_PageSetupDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24210 | PyObject *resultobj = 0; | |
24211 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24212 | void *argp1 = 0 ; | |
24213 | int res1 = 0 ; | |
24214 | PyObject *swig_obj[1] ; | |
24215 | ||
24216 | if (!args) SWIG_fail; | |
24217 | swig_obj[0] = args; | |
24218 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_DISOWN | 0 ); | |
24219 | if (!SWIG_IsOK(res1)) { | |
24220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24221 | } | |
24222 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24223 | { | |
24224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24225 | delete arg1; | |
d14a1e28 | 24226 | |
0085ce49 RD |
24227 | wxPyEndAllowThreads(__tstate); |
24228 | if (PyErr_Occurred()) SWIG_fail; | |
24229 | } | |
24230 | resultobj = SWIG_Py_Void(); | |
24231 | return resultobj; | |
24232 | fail: | |
24233 | return NULL; | |
24234 | } | |
24235 | ||
24236 | ||
24237 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24238 | PyObject *resultobj = 0; | |
24239 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24240 | bool arg2 ; | |
24241 | void *argp1 = 0 ; | |
24242 | int res1 = 0 ; | |
24243 | bool val2 ; | |
24244 | int ecode2 = 0 ; | |
24245 | PyObject * obj0 = 0 ; | |
24246 | PyObject * obj1 = 0 ; | |
24247 | char * kwnames[] = { | |
24248 | (char *) "self",(char *) "flag", NULL | |
24249 | }; | |
24250 | ||
24251 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
24252 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24253 | if (!SWIG_IsOK(res1)) { | |
24254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableHelp" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24255 | } | |
24256 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24257 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24258 | if (!SWIG_IsOK(ecode2)) { | |
24259 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableHelp" "', expected argument " "2"" of type '" "bool""'"); | |
24260 | } | |
24261 | arg2 = static_cast< bool >(val2); | |
24262 | { | |
24263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24264 | (arg1)->EnableHelp(arg2); | |
24265 | wxPyEndAllowThreads(__tstate); | |
24266 | if (PyErr_Occurred()) SWIG_fail; | |
24267 | } | |
24268 | resultobj = SWIG_Py_Void(); | |
24269 | return resultobj; | |
24270 | fail: | |
24271 | return NULL; | |
24272 | } | |
24273 | ||
24274 | ||
24275 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24276 | PyObject *resultobj = 0; | |
24277 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24278 | bool arg2 ; | |
24279 | void *argp1 = 0 ; | |
24280 | int res1 = 0 ; | |
24281 | bool val2 ; | |
24282 | int ecode2 = 0 ; | |
24283 | PyObject * obj0 = 0 ; | |
24284 | PyObject * obj1 = 0 ; | |
24285 | char * kwnames[] = { | |
24286 | (char *) "self",(char *) "flag", NULL | |
24287 | }; | |
24288 | ||
24289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
24290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24291 | if (!SWIG_IsOK(res1)) { | |
24292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24293 | } | |
24294 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24295 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24296 | if (!SWIG_IsOK(ecode2)) { | |
24297 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableMargins" "', expected argument " "2"" of type '" "bool""'"); | |
24298 | } | |
24299 | arg2 = static_cast< bool >(val2); | |
24300 | { | |
24301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24302 | (arg1)->EnableMargins(arg2); | |
24303 | wxPyEndAllowThreads(__tstate); | |
24304 | if (PyErr_Occurred()) SWIG_fail; | |
24305 | } | |
24306 | resultobj = SWIG_Py_Void(); | |
24307 | return resultobj; | |
24308 | fail: | |
24309 | return NULL; | |
24310 | } | |
24311 | ||
24312 | ||
24313 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24314 | PyObject *resultobj = 0; | |
24315 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24316 | bool arg2 ; | |
24317 | void *argp1 = 0 ; | |
24318 | int res1 = 0 ; | |
24319 | bool val2 ; | |
24320 | int ecode2 = 0 ; | |
24321 | PyObject * obj0 = 0 ; | |
24322 | PyObject * obj1 = 0 ; | |
24323 | char * kwnames[] = { | |
24324 | (char *) "self",(char *) "flag", NULL | |
24325 | }; | |
24326 | ||
24327 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
24328 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24329 | if (!SWIG_IsOK(res1)) { | |
24330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableOrientation" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24331 | } | |
24332 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24333 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24334 | if (!SWIG_IsOK(ecode2)) { | |
24335 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
24336 | } | |
24337 | arg2 = static_cast< bool >(val2); | |
24338 | { | |
24339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24340 | (arg1)->EnableOrientation(arg2); | |
24341 | wxPyEndAllowThreads(__tstate); | |
24342 | if (PyErr_Occurred()) SWIG_fail; | |
24343 | } | |
24344 | resultobj = SWIG_Py_Void(); | |
24345 | return resultobj; | |
24346 | fail: | |
24347 | return NULL; | |
24348 | } | |
24349 | ||
24350 | ||
24351 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24352 | PyObject *resultobj = 0; | |
24353 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24354 | bool arg2 ; | |
24355 | void *argp1 = 0 ; | |
24356 | int res1 = 0 ; | |
24357 | bool val2 ; | |
24358 | int ecode2 = 0 ; | |
24359 | PyObject * obj0 = 0 ; | |
24360 | PyObject * obj1 = 0 ; | |
24361 | char * kwnames[] = { | |
24362 | (char *) "self",(char *) "flag", NULL | |
24363 | }; | |
24364 | ||
24365 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) SWIG_fail; | |
24366 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24367 | if (!SWIG_IsOK(res1)) { | |
24368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnablePaper" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24369 | } | |
24370 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24371 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24372 | if (!SWIG_IsOK(ecode2)) { | |
24373 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnablePaper" "', expected argument " "2"" of type '" "bool""'"); | |
24374 | } | |
24375 | arg2 = static_cast< bool >(val2); | |
24376 | { | |
24377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24378 | (arg1)->EnablePaper(arg2); | |
24379 | wxPyEndAllowThreads(__tstate); | |
24380 | if (PyErr_Occurred()) SWIG_fail; | |
24381 | } | |
24382 | resultobj = SWIG_Py_Void(); | |
24383 | return resultobj; | |
24384 | fail: | |
24385 | return NULL; | |
24386 | } | |
24387 | ||
24388 | ||
24389 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24390 | PyObject *resultobj = 0; | |
24391 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24392 | bool arg2 ; | |
24393 | void *argp1 = 0 ; | |
24394 | int res1 = 0 ; | |
24395 | bool val2 ; | |
24396 | int ecode2 = 0 ; | |
24397 | PyObject * obj0 = 0 ; | |
24398 | PyObject * obj1 = 0 ; | |
24399 | char * kwnames[] = { | |
24400 | (char *) "self",(char *) "flag", NULL | |
24401 | }; | |
24402 | ||
24403 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) SWIG_fail; | |
24404 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24405 | if (!SWIG_IsOK(res1)) { | |
24406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnablePrinter" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24407 | } | |
24408 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24409 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24410 | if (!SWIG_IsOK(ecode2)) { | |
24411 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnablePrinter" "', expected argument " "2"" of type '" "bool""'"); | |
24412 | } | |
24413 | arg2 = static_cast< bool >(val2); | |
24414 | { | |
24415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24416 | (arg1)->EnablePrinter(arg2); | |
24417 | wxPyEndAllowThreads(__tstate); | |
24418 | if (PyErr_Occurred()) SWIG_fail; | |
24419 | } | |
24420 | resultobj = SWIG_Py_Void(); | |
24421 | return resultobj; | |
24422 | fail: | |
24423 | return NULL; | |
d14a1e28 RD |
24424 | } |
24425 | ||
24426 | ||
0085ce49 RD |
24427 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24428 | PyObject *resultobj = 0; | |
24429 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24430 | bool result; | |
24431 | void *argp1 = 0 ; | |
24432 | int res1 = 0 ; | |
24433 | PyObject *swig_obj[1] ; | |
24434 | ||
24435 | if (!args) SWIG_fail; | |
24436 | swig_obj[0] = args; | |
24437 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24438 | if (!SWIG_IsOK(res1)) { | |
24439 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetDefaultMinMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24440 | } | |
24441 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24442 | { | |
24443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24444 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
24445 | wxPyEndAllowThreads(__tstate); | |
24446 | if (PyErr_Occurred()) SWIG_fail; | |
24447 | } | |
24448 | { | |
24449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24450 | } | |
24451 | return resultobj; | |
24452 | fail: | |
24453 | return NULL; | |
d14a1e28 RD |
24454 | } |
24455 | ||
24456 | ||
0085ce49 RD |
24457 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24458 | PyObject *resultobj = 0; | |
24459 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24460 | bool result; | |
24461 | void *argp1 = 0 ; | |
24462 | int res1 = 0 ; | |
24463 | PyObject *swig_obj[1] ; | |
24464 | ||
24465 | if (!args) SWIG_fail; | |
24466 | swig_obj[0] = args; | |
24467 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24468 | if (!SWIG_IsOK(res1)) { | |
24469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24470 | } | |
24471 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24472 | { | |
24473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24474 | result = (bool)(arg1)->GetEnableMargins(); | |
24475 | wxPyEndAllowThreads(__tstate); | |
24476 | if (PyErr_Occurred()) SWIG_fail; | |
24477 | } | |
24478 | { | |
24479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24480 | } | |
24481 | return resultobj; | |
24482 | fail: | |
24483 | return NULL; | |
d14a1e28 RD |
24484 | } |
24485 | ||
24486 | ||
0085ce49 RD |
24487 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24488 | PyObject *resultobj = 0; | |
24489 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24490 | bool result; | |
24491 | void *argp1 = 0 ; | |
24492 | int res1 = 0 ; | |
24493 | PyObject *swig_obj[1] ; | |
24494 | ||
24495 | if (!args) SWIG_fail; | |
24496 | swig_obj[0] = args; | |
24497 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24498 | if (!SWIG_IsOK(res1)) { | |
24499 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableOrientation" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24500 | } | |
24501 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24502 | { | |
24503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24504 | result = (bool)(arg1)->GetEnableOrientation(); | |
24505 | wxPyEndAllowThreads(__tstate); | |
24506 | if (PyErr_Occurred()) SWIG_fail; | |
24507 | } | |
24508 | { | |
24509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24510 | } | |
24511 | return resultobj; | |
24512 | fail: | |
24513 | return NULL; | |
d14a1e28 RD |
24514 | } |
24515 | ||
24516 | ||
0085ce49 RD |
24517 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24518 | PyObject *resultobj = 0; | |
24519 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24520 | bool result; | |
24521 | void *argp1 = 0 ; | |
24522 | int res1 = 0 ; | |
24523 | PyObject *swig_obj[1] ; | |
24524 | ||
24525 | if (!args) SWIG_fail; | |
24526 | swig_obj[0] = args; | |
24527 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24528 | if (!SWIG_IsOK(res1)) { | |
24529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnablePaper" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24530 | } | |
24531 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24532 | { | |
24533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24534 | result = (bool)(arg1)->GetEnablePaper(); | |
24535 | wxPyEndAllowThreads(__tstate); | |
24536 | if (PyErr_Occurred()) SWIG_fail; | |
24537 | } | |
24538 | { | |
24539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24540 | } | |
24541 | return resultobj; | |
24542 | fail: | |
24543 | return NULL; | |
d14a1e28 RD |
24544 | } |
24545 | ||
24546 | ||
0085ce49 RD |
24547 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24548 | PyObject *resultobj = 0; | |
24549 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24550 | bool result; | |
24551 | void *argp1 = 0 ; | |
24552 | int res1 = 0 ; | |
24553 | PyObject *swig_obj[1] ; | |
24554 | ||
24555 | if (!args) SWIG_fail; | |
24556 | swig_obj[0] = args; | |
24557 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24558 | if (!SWIG_IsOK(res1)) { | |
24559 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnablePrinter" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24560 | } | |
24561 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24562 | { | |
24563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24564 | result = (bool)(arg1)->GetEnablePrinter(); | |
24565 | wxPyEndAllowThreads(__tstate); | |
24566 | if (PyErr_Occurred()) SWIG_fail; | |
24567 | } | |
24568 | { | |
24569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24570 | } | |
24571 | return resultobj; | |
24572 | fail: | |
24573 | return NULL; | |
d14a1e28 RD |
24574 | } |
24575 | ||
24576 | ||
0085ce49 RD |
24577 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24578 | PyObject *resultobj = 0; | |
24579 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24580 | bool result; | |
24581 | void *argp1 = 0 ; | |
24582 | int res1 = 0 ; | |
24583 | PyObject *swig_obj[1] ; | |
24584 | ||
24585 | if (!args) SWIG_fail; | |
24586 | swig_obj[0] = args; | |
24587 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24588 | if (!SWIG_IsOK(res1)) { | |
24589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableHelp" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24590 | } | |
24591 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24592 | { | |
24593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24594 | result = (bool)(arg1)->GetEnableHelp(); | |
24595 | wxPyEndAllowThreads(__tstate); | |
24596 | if (PyErr_Occurred()) SWIG_fail; | |
24597 | } | |
24598 | { | |
24599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24600 | } | |
24601 | return resultobj; | |
24602 | fail: | |
24603 | return NULL; | |
d14a1e28 RD |
24604 | } |
24605 | ||
24606 | ||
0085ce49 RD |
24607 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24608 | PyObject *resultobj = 0; | |
24609 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24610 | bool result; | |
24611 | void *argp1 = 0 ; | |
24612 | int res1 = 0 ; | |
24613 | PyObject *swig_obj[1] ; | |
24614 | ||
24615 | if (!args) SWIG_fail; | |
24616 | swig_obj[0] = args; | |
24617 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24618 | if (!SWIG_IsOK(res1)) { | |
24619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetDefaultInfo" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24620 | } | |
24621 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24622 | { | |
24623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24624 | result = (bool)(arg1)->GetDefaultInfo(); | |
24625 | wxPyEndAllowThreads(__tstate); | |
24626 | if (PyErr_Occurred()) SWIG_fail; | |
24627 | } | |
24628 | { | |
24629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24630 | } | |
24631 | return resultobj; | |
24632 | fail: | |
24633 | return NULL; | |
d14a1e28 RD |
24634 | } |
24635 | ||
24636 | ||
0085ce49 RD |
24637 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24638 | PyObject *resultobj = 0; | |
24639 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24640 | wxPoint result; | |
24641 | void *argp1 = 0 ; | |
24642 | int res1 = 0 ; | |
24643 | PyObject *swig_obj[1] ; | |
24644 | ||
24645 | if (!args) SWIG_fail; | |
24646 | swig_obj[0] = args; | |
24647 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24648 | if (!SWIG_IsOK(res1)) { | |
24649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24650 | } | |
24651 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24652 | { | |
24653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24654 | result = (arg1)->GetMarginTopLeft(); | |
24655 | wxPyEndAllowThreads(__tstate); | |
24656 | if (PyErr_Occurred()) SWIG_fail; | |
24657 | } | |
24658 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
24659 | return resultobj; | |
24660 | fail: | |
24661 | return NULL; | |
d14a1e28 RD |
24662 | } |
24663 | ||
24664 | ||
0085ce49 RD |
24665 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24666 | PyObject *resultobj = 0; | |
24667 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24668 | wxPoint result; | |
24669 | void *argp1 = 0 ; | |
24670 | int res1 = 0 ; | |
24671 | PyObject *swig_obj[1] ; | |
24672 | ||
24673 | if (!args) SWIG_fail; | |
24674 | swig_obj[0] = args; | |
24675 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24676 | if (!SWIG_IsOK(res1)) { | |
24677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24678 | } | |
24679 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24680 | { | |
24681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24682 | result = (arg1)->GetMarginBottomRight(); | |
24683 | wxPyEndAllowThreads(__tstate); | |
24684 | if (PyErr_Occurred()) SWIG_fail; | |
24685 | } | |
24686 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
24687 | return resultobj; | |
24688 | fail: | |
24689 | return NULL; | |
d14a1e28 RD |
24690 | } |
24691 | ||
24692 | ||
0085ce49 RD |
24693 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24694 | PyObject *resultobj = 0; | |
24695 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24696 | wxPoint result; | |
24697 | void *argp1 = 0 ; | |
24698 | int res1 = 0 ; | |
24699 | PyObject *swig_obj[1] ; | |
24700 | ||
24701 | if (!args) SWIG_fail; | |
24702 | swig_obj[0] = args; | |
24703 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24704 | if (!SWIG_IsOK(res1)) { | |
24705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMinMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24706 | } | |
24707 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24708 | { | |
24709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24710 | result = (arg1)->GetMinMarginTopLeft(); | |
24711 | wxPyEndAllowThreads(__tstate); | |
24712 | if (PyErr_Occurred()) SWIG_fail; | |
24713 | } | |
24714 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
24715 | return resultobj; | |
24716 | fail: | |
24717 | return NULL; | |
d14a1e28 RD |
24718 | } |
24719 | ||
24720 | ||
0085ce49 RD |
24721 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24722 | PyObject *resultobj = 0; | |
24723 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24724 | wxPoint result; | |
24725 | void *argp1 = 0 ; | |
24726 | int res1 = 0 ; | |
24727 | PyObject *swig_obj[1] ; | |
24728 | ||
24729 | if (!args) SWIG_fail; | |
24730 | swig_obj[0] = args; | |
24731 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24732 | if (!SWIG_IsOK(res1)) { | |
24733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMinMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24734 | } | |
24735 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24736 | { | |
24737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24738 | result = (arg1)->GetMinMarginBottomRight(); | |
24739 | wxPyEndAllowThreads(__tstate); | |
24740 | if (PyErr_Occurred()) SWIG_fail; | |
24741 | } | |
24742 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
24743 | return resultobj; | |
24744 | fail: | |
24745 | return NULL; | |
d14a1e28 RD |
24746 | } |
24747 | ||
24748 | ||
0085ce49 RD |
24749 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24750 | PyObject *resultobj = 0; | |
24751 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24752 | wxPaperSize result; | |
24753 | void *argp1 = 0 ; | |
24754 | int res1 = 0 ; | |
24755 | PyObject *swig_obj[1] ; | |
24756 | ||
24757 | if (!args) SWIG_fail; | |
24758 | swig_obj[0] = args; | |
24759 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24760 | if (!SWIG_IsOK(res1)) { | |
24761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPaperId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24762 | } | |
24763 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24764 | { | |
24765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24766 | result = (wxPaperSize)(arg1)->GetPaperId(); | |
24767 | wxPyEndAllowThreads(__tstate); | |
24768 | if (PyErr_Occurred()) SWIG_fail; | |
24769 | } | |
24770 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24771 | return resultobj; | |
24772 | fail: | |
24773 | return NULL; | |
d14a1e28 RD |
24774 | } |
24775 | ||
24776 | ||
0085ce49 RD |
24777 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24778 | PyObject *resultobj = 0; | |
24779 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24780 | wxSize result; | |
24781 | void *argp1 = 0 ; | |
24782 | int res1 = 0 ; | |
24783 | PyObject *swig_obj[1] ; | |
24784 | ||
24785 | if (!args) SWIG_fail; | |
24786 | swig_obj[0] = args; | |
24787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24788 | if (!SWIG_IsOK(res1)) { | |
24789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24790 | } | |
24791 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24792 | { | |
24793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24794 | result = (arg1)->GetPaperSize(); | |
24795 | wxPyEndAllowThreads(__tstate); | |
24796 | if (PyErr_Occurred()) SWIG_fail; | |
24797 | } | |
24798 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
24799 | return resultobj; | |
24800 | fail: | |
24801 | return NULL; | |
d14a1e28 RD |
24802 | } |
24803 | ||
24804 | ||
0085ce49 RD |
24805 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24806 | PyObject *resultobj = 0; | |
24807 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24808 | wxPrintData *result = 0 ; | |
24809 | void *argp1 = 0 ; | |
24810 | int res1 = 0 ; | |
24811 | PyObject *swig_obj[1] ; | |
24812 | ||
24813 | if (!args) SWIG_fail; | |
24814 | swig_obj[0] = args; | |
24815 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24816 | if (!SWIG_IsOK(res1)) { | |
24817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPrintData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24818 | } | |
24819 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24820 | { | |
24821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 24822 | { |
0085ce49 RD |
24823 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
24824 | result = (wxPrintData *) &_result_ref; | |
093d3ff1 | 24825 | } |
0085ce49 RD |
24826 | wxPyEndAllowThreads(__tstate); |
24827 | if (PyErr_Occurred()) SWIG_fail; | |
24828 | } | |
24829 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24830 | return resultobj; | |
24831 | fail: | |
24832 | return NULL; | |
d14a1e28 RD |
24833 | } |
24834 | ||
24835 | ||
0085ce49 RD |
24836 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24837 | PyObject *resultobj = 0; | |
24838 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24839 | bool result; | |
24840 | void *argp1 = 0 ; | |
24841 | int res1 = 0 ; | |
24842 | PyObject *swig_obj[1] ; | |
24843 | ||
24844 | if (!args) SWIG_fail; | |
24845 | swig_obj[0] = args; | |
24846 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24847 | if (!SWIG_IsOK(res1)) { | |
24848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_Ok" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24849 | } | |
24850 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24851 | { | |
24852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24853 | result = (bool)(arg1)->Ok(); | |
24854 | wxPyEndAllowThreads(__tstate); | |
24855 | if (PyErr_Occurred()) SWIG_fail; | |
24856 | } | |
24857 | { | |
24858 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24859 | } | |
24860 | return resultobj; | |
24861 | fail: | |
24862 | return NULL; | |
24863 | } | |
24864 | ||
24865 | ||
24866 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24867 | PyObject *resultobj = 0; | |
24868 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24869 | bool arg2 ; | |
24870 | void *argp1 = 0 ; | |
24871 | int res1 = 0 ; | |
24872 | bool val2 ; | |
24873 | int ecode2 = 0 ; | |
24874 | PyObject * obj0 = 0 ; | |
24875 | PyObject * obj1 = 0 ; | |
24876 | char * kwnames[] = { | |
24877 | (char *) "self",(char *) "flag", NULL | |
24878 | }; | |
24879 | ||
24880 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
24881 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24882 | if (!SWIG_IsOK(res1)) { | |
24883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetDefaultInfo" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24884 | } | |
24885 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24886 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24887 | if (!SWIG_IsOK(ecode2)) { | |
24888 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetDefaultInfo" "', expected argument " "2"" of type '" "bool""'"); | |
24889 | } | |
24890 | arg2 = static_cast< bool >(val2); | |
24891 | { | |
24892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24893 | (arg1)->SetDefaultInfo(arg2); | |
24894 | wxPyEndAllowThreads(__tstate); | |
24895 | if (PyErr_Occurred()) SWIG_fail; | |
24896 | } | |
24897 | resultobj = SWIG_Py_Void(); | |
24898 | return resultobj; | |
24899 | fail: | |
24900 | return NULL; | |
24901 | } | |
24902 | ||
24903 | ||
24904 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24905 | PyObject *resultobj = 0; | |
24906 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24907 | bool arg2 ; | |
24908 | void *argp1 = 0 ; | |
24909 | int res1 = 0 ; | |
24910 | bool val2 ; | |
24911 | int ecode2 = 0 ; | |
24912 | PyObject * obj0 = 0 ; | |
24913 | PyObject * obj1 = 0 ; | |
24914 | char * kwnames[] = { | |
24915 | (char *) "self",(char *) "flag", NULL | |
24916 | }; | |
24917 | ||
24918 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
24919 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24920 | if (!SWIG_IsOK(res1)) { | |
24921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetDefaultMinMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24922 | } | |
24923 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24924 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24925 | if (!SWIG_IsOK(ecode2)) { | |
24926 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetDefaultMinMargins" "', expected argument " "2"" of type '" "bool""'"); | |
24927 | } | |
24928 | arg2 = static_cast< bool >(val2); | |
24929 | { | |
24930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24931 | (arg1)->SetDefaultMinMargins(arg2); | |
24932 | wxPyEndAllowThreads(__tstate); | |
24933 | if (PyErr_Occurred()) SWIG_fail; | |
24934 | } | |
24935 | resultobj = SWIG_Py_Void(); | |
24936 | return resultobj; | |
24937 | fail: | |
24938 | return NULL; | |
24939 | } | |
24940 | ||
24941 | ||
24942 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24943 | PyObject *resultobj = 0; | |
24944 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24945 | wxPoint *arg2 = 0 ; | |
24946 | void *argp1 = 0 ; | |
24947 | int res1 = 0 ; | |
24948 | wxPoint temp2 ; | |
24949 | PyObject * obj0 = 0 ; | |
24950 | PyObject * obj1 = 0 ; | |
24951 | char * kwnames[] = { | |
24952 | (char *) "self",(char *) "pt", NULL | |
24953 | }; | |
24954 | ||
24955 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) SWIG_fail; | |
24956 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24957 | if (!SWIG_IsOK(res1)) { | |
24958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24959 | } | |
24960 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24961 | { | |
24962 | arg2 = &temp2; | |
24963 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24964 | } | |
24965 | { | |
24966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24967 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
24968 | wxPyEndAllowThreads(__tstate); | |
24969 | if (PyErr_Occurred()) SWIG_fail; | |
24970 | } | |
24971 | resultobj = SWIG_Py_Void(); | |
24972 | return resultobj; | |
24973 | fail: | |
24974 | return NULL; | |
24975 | } | |
24976 | ||
24977 | ||
24978 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24979 | PyObject *resultobj = 0; | |
24980 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24981 | wxPoint *arg2 = 0 ; | |
24982 | void *argp1 = 0 ; | |
24983 | int res1 = 0 ; | |
24984 | wxPoint temp2 ; | |
24985 | PyObject * obj0 = 0 ; | |
24986 | PyObject * obj1 = 0 ; | |
24987 | char * kwnames[] = { | |
24988 | (char *) "self",(char *) "pt", NULL | |
24989 | }; | |
24990 | ||
24991 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) SWIG_fail; | |
24992 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24993 | if (!SWIG_IsOK(res1)) { | |
24994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24995 | } | |
24996 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24997 | { | |
24998 | arg2 = &temp2; | |
24999 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25000 | } | |
25001 | { | |
25002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25003 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
25004 | wxPyEndAllowThreads(__tstate); | |
25005 | if (PyErr_Occurred()) SWIG_fail; | |
25006 | } | |
25007 | resultobj = SWIG_Py_Void(); | |
25008 | return resultobj; | |
25009 | fail: | |
25010 | return NULL; | |
25011 | } | |
25012 | ||
25013 | ||
25014 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25015 | PyObject *resultobj = 0; | |
25016 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25017 | wxPoint *arg2 = 0 ; | |
25018 | void *argp1 = 0 ; | |
25019 | int res1 = 0 ; | |
25020 | wxPoint temp2 ; | |
25021 | PyObject * obj0 = 0 ; | |
25022 | PyObject * obj1 = 0 ; | |
25023 | char * kwnames[] = { | |
25024 | (char *) "self",(char *) "pt", NULL | |
25025 | }; | |
25026 | ||
25027 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) SWIG_fail; | |
25028 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25029 | if (!SWIG_IsOK(res1)) { | |
25030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMinMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25031 | } | |
25032 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25033 | { | |
25034 | arg2 = &temp2; | |
25035 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25036 | } | |
25037 | { | |
25038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25039 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
25040 | wxPyEndAllowThreads(__tstate); | |
25041 | if (PyErr_Occurred()) SWIG_fail; | |
25042 | } | |
25043 | resultobj = SWIG_Py_Void(); | |
25044 | return resultobj; | |
25045 | fail: | |
25046 | return NULL; | |
25047 | } | |
25048 | ||
25049 | ||
25050 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25051 | PyObject *resultobj = 0; | |
25052 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25053 | wxPoint *arg2 = 0 ; | |
25054 | void *argp1 = 0 ; | |
25055 | int res1 = 0 ; | |
25056 | wxPoint temp2 ; | |
25057 | PyObject * obj0 = 0 ; | |
25058 | PyObject * obj1 = 0 ; | |
25059 | char * kwnames[] = { | |
25060 | (char *) "self",(char *) "pt", NULL | |
25061 | }; | |
25062 | ||
25063 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) SWIG_fail; | |
25064 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25065 | if (!SWIG_IsOK(res1)) { | |
25066 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMinMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25067 | } | |
25068 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25069 | { | |
25070 | arg2 = &temp2; | |
25071 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25072 | } | |
25073 | { | |
25074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25075 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
25076 | wxPyEndAllowThreads(__tstate); | |
25077 | if (PyErr_Occurred()) SWIG_fail; | |
25078 | } | |
25079 | resultobj = SWIG_Py_Void(); | |
25080 | return resultobj; | |
25081 | fail: | |
25082 | return NULL; | |
25083 | } | |
25084 | ||
25085 | ||
25086 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25087 | PyObject *resultobj = 0; | |
25088 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25089 | wxPaperSize arg2 ; | |
25090 | void *argp1 = 0 ; | |
25091 | int res1 = 0 ; | |
25092 | int val2 ; | |
25093 | int ecode2 = 0 ; | |
25094 | PyObject * obj0 = 0 ; | |
25095 | PyObject * obj1 = 0 ; | |
25096 | char * kwnames[] = { | |
25097 | (char *) "self",(char *) "id", NULL | |
25098 | }; | |
25099 | ||
25100 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) SWIG_fail; | |
25101 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25102 | if (!SWIG_IsOK(res1)) { | |
25103 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPaperId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25104 | } | |
25105 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25106 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25107 | if (!SWIG_IsOK(ecode2)) { | |
25108 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetPaperId" "', expected argument " "2"" of type '" "wxPaperSize""'"); | |
25109 | } | |
25110 | arg2 = static_cast< wxPaperSize >(val2); | |
25111 | { | |
25112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25113 | (arg1)->SetPaperId(arg2); | |
25114 | wxPyEndAllowThreads(__tstate); | |
25115 | if (PyErr_Occurred()) SWIG_fail; | |
25116 | } | |
25117 | resultobj = SWIG_Py_Void(); | |
25118 | return resultobj; | |
25119 | fail: | |
25120 | return NULL; | |
25121 | } | |
25122 | ||
25123 | ||
25124 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25125 | PyObject *resultobj = 0; | |
25126 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25127 | wxSize *arg2 = 0 ; | |
25128 | void *argp1 = 0 ; | |
25129 | int res1 = 0 ; | |
25130 | wxSize temp2 ; | |
25131 | PyObject * obj0 = 0 ; | |
25132 | PyObject * obj1 = 0 ; | |
25133 | char * kwnames[] = { | |
25134 | (char *) "self",(char *) "size", NULL | |
25135 | }; | |
25136 | ||
25137 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
25138 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25139 | if (!SWIG_IsOK(res1)) { | |
25140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25141 | } | |
25142 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25143 | { | |
25144 | arg2 = &temp2; | |
25145 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25146 | } | |
25147 | { | |
25148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25149 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
25150 | wxPyEndAllowThreads(__tstate); | |
25151 | if (PyErr_Occurred()) SWIG_fail; | |
25152 | } | |
25153 | resultobj = SWIG_Py_Void(); | |
25154 | return resultobj; | |
25155 | fail: | |
25156 | return NULL; | |
25157 | } | |
25158 | ||
25159 | ||
25160 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25161 | PyObject *resultobj = 0; | |
25162 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25163 | wxPrintData *arg2 = 0 ; | |
25164 | void *argp1 = 0 ; | |
25165 | int res1 = 0 ; | |
25166 | void *argp2 = 0 ; | |
25167 | int res2 = 0 ; | |
25168 | PyObject * obj0 = 0 ; | |
25169 | PyObject * obj1 = 0 ; | |
25170 | char * kwnames[] = { | |
25171 | (char *) "self",(char *) "printData", NULL | |
25172 | }; | |
25173 | ||
25174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
25175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25176 | if (!SWIG_IsOK(res1)) { | |
25177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25178 | } | |
25179 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25180 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25181 | if (!SWIG_IsOK(res2)) { | |
25182 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25183 | } | |
25184 | if (!argp2) { | |
25185 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25186 | } | |
25187 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
25188 | { | |
25189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25190 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
25191 | wxPyEndAllowThreads(__tstate); | |
25192 | if (PyErr_Occurred()) SWIG_fail; | |
25193 | } | |
25194 | resultobj = SWIG_Py_Void(); | |
25195 | return resultobj; | |
25196 | fail: | |
25197 | return NULL; | |
d14a1e28 RD |
25198 | } |
25199 | ||
25200 | ||
0085ce49 RD |
25201 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_CalculateIdFromPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25202 | PyObject *resultobj = 0; | |
25203 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25204 | void *argp1 = 0 ; | |
25205 | int res1 = 0 ; | |
25206 | PyObject *swig_obj[1] ; | |
25207 | ||
25208 | if (!args) SWIG_fail; | |
25209 | swig_obj[0] = args; | |
25210 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25211 | if (!SWIG_IsOK(res1)) { | |
25212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_CalculateIdFromPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25213 | } | |
25214 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25215 | { | |
25216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25217 | (arg1)->CalculateIdFromPaperSize(); | |
25218 | wxPyEndAllowThreads(__tstate); | |
25219 | if (PyErr_Occurred()) SWIG_fail; | |
25220 | } | |
25221 | resultobj = SWIG_Py_Void(); | |
25222 | return resultobj; | |
25223 | fail: | |
25224 | return NULL; | |
32fe5131 RD |
25225 | } |
25226 | ||
25227 | ||
0085ce49 RD |
25228 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_CalculatePaperSizeFromId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25229 | PyObject *resultobj = 0; | |
25230 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25231 | void *argp1 = 0 ; | |
25232 | int res1 = 0 ; | |
25233 | PyObject *swig_obj[1] ; | |
25234 | ||
25235 | if (!args) SWIG_fail; | |
25236 | swig_obj[0] = args; | |
25237 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25238 | if (!SWIG_IsOK(res1)) { | |
25239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_CalculatePaperSizeFromId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25240 | } | |
25241 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25242 | { | |
25243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25244 | (arg1)->CalculatePaperSizeFromId(); | |
25245 | wxPyEndAllowThreads(__tstate); | |
25246 | if (PyErr_Occurred()) SWIG_fail; | |
25247 | } | |
25248 | resultobj = SWIG_Py_Void(); | |
25249 | return resultobj; | |
25250 | fail: | |
25251 | return NULL; | |
d14a1e28 RD |
25252 | } |
25253 | ||
25254 | ||
0085ce49 RD |
25255 | SWIGINTERN PyObject *PageSetupDialogData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25256 | PyObject *obj; | |
25257 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25258 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPageSetupDialogData, SWIG_NewClientData(obj)); | |
25259 | return SWIG_Py_Void(); | |
d14a1e28 RD |
25260 | } |
25261 | ||
0085ce49 RD |
25262 | SWIGINTERN PyObject *PageSetupDialogData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25263 | return SWIG_Python_InitShadowInstance(args); | |
25264 | } | |
d14a1e28 | 25265 | |
0085ce49 RD |
25266 | SWIGINTERN PyObject *_wrap_new_PageSetupDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25267 | PyObject *resultobj = 0; | |
25268 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25269 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
25270 | wxPageSetupDialog *result = 0 ; | |
25271 | void *argp1 = 0 ; | |
25272 | int res1 = 0 ; | |
25273 | void *argp2 = 0 ; | |
25274 | int res2 = 0 ; | |
25275 | PyObject * obj0 = 0 ; | |
25276 | PyObject * obj1 = 0 ; | |
25277 | char * kwnames[] = { | |
25278 | (char *) "parent",(char *) "data", NULL | |
25279 | }; | |
25280 | ||
25281 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
25282 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25283 | if (!SWIG_IsOK(res1)) { | |
25284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25285 | } | |
25286 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25287 | if (obj1) { | |
25288 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25289 | if (!SWIG_IsOK(res2)) { | |
25290 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PageSetupDialog" "', expected argument " "2"" of type '" "wxPageSetupDialogData *""'"); | |
d14a1e28 | 25291 | } |
0085ce49 RD |
25292 | arg2 = reinterpret_cast< wxPageSetupDialogData * >(argp2); |
25293 | } | |
25294 | { | |
25295 | if (!wxPyCheckForApp()) SWIG_fail; | |
25296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25297 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
25298 | wxPyEndAllowThreads(__tstate); | |
25299 | if (PyErr_Occurred()) SWIG_fail; | |
25300 | } | |
25301 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialog, SWIG_POINTER_NEW | 0 ); | |
25302 | return resultobj; | |
25303 | fail: | |
25304 | return NULL; | |
d14a1e28 RD |
25305 | } |
25306 | ||
25307 | ||
0085ce49 RD |
25308 | SWIGINTERN PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25309 | PyObject *resultobj = 0; | |
25310 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25311 | wxPageSetupDialogData *result = 0 ; | |
25312 | void *argp1 = 0 ; | |
25313 | int res1 = 0 ; | |
25314 | PyObject *swig_obj[1] ; | |
25315 | ||
25316 | if (!args) SWIG_fail; | |
25317 | swig_obj[0] = args; | |
25318 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
25319 | if (!SWIG_IsOK(res1)) { | |
25320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_GetPageSetupData" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25321 | } | |
25322 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25323 | { | |
25324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 25325 | { |
0085ce49 RD |
25326 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); |
25327 | result = (wxPageSetupDialogData *) &_result_ref; | |
d14a1e28 | 25328 | } |
0085ce49 RD |
25329 | wxPyEndAllowThreads(__tstate); |
25330 | if (PyErr_Occurred()) SWIG_fail; | |
25331 | } | |
25332 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25333 | return resultobj; | |
25334 | fail: | |
25335 | return NULL; | |
25336 | } | |
25337 | ||
25338 | ||
25339 | SWIGINTERN PyObject *_wrap_PageSetupDialog_GetPageSetupDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25340 | PyObject *resultobj = 0; | |
25341 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25342 | wxPageSetupDialogData *result = 0 ; | |
25343 | void *argp1 = 0 ; | |
25344 | int res1 = 0 ; | |
25345 | PyObject *swig_obj[1] ; | |
25346 | ||
25347 | if (!args) SWIG_fail; | |
25348 | swig_obj[0] = args; | |
25349 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
25350 | if (!SWIG_IsOK(res1)) { | |
25351 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_GetPageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25352 | } | |
25353 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25354 | { | |
25355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 25356 | { |
0085ce49 RD |
25357 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupDialogData(); |
25358 | result = (wxPageSetupDialogData *) &_result_ref; | |
d14a1e28 | 25359 | } |
0085ce49 RD |
25360 | wxPyEndAllowThreads(__tstate); |
25361 | if (PyErr_Occurred()) SWIG_fail; | |
25362 | } | |
25363 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25364 | return resultobj; | |
25365 | fail: | |
25366 | return NULL; | |
d14a1e28 RD |
25367 | } |
25368 | ||
25369 | ||
0085ce49 RD |
25370 | SWIGINTERN PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25371 | PyObject *resultobj = 0; | |
25372 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25373 | int result; | |
25374 | void *argp1 = 0 ; | |
25375 | int res1 = 0 ; | |
25376 | PyObject *swig_obj[1] ; | |
25377 | ||
25378 | if (!args) SWIG_fail; | |
25379 | swig_obj[0] = args; | |
25380 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
25381 | if (!SWIG_IsOK(res1)) { | |
25382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_ShowModal" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25383 | } | |
25384 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25385 | { | |
25386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25387 | result = (int)(arg1)->ShowModal(); | |
25388 | wxPyEndAllowThreads(__tstate); | |
25389 | if (PyErr_Occurred()) SWIG_fail; | |
25390 | } | |
25391 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25392 | return resultobj; | |
25393 | fail: | |
25394 | return NULL; | |
d14a1e28 RD |
25395 | } |
25396 | ||
25397 | ||
0085ce49 RD |
25398 | SWIGINTERN PyObject *PageSetupDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25399 | PyObject *obj; | |
25400 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25401 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPageSetupDialog, SWIG_NewClientData(obj)); | |
25402 | return SWIG_Py_Void(); | |
d14a1e28 RD |
25403 | } |
25404 | ||
0085ce49 RD |
25405 | SWIGINTERN PyObject *PageSetupDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25406 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
25407 | } |
25408 | ||
0085ce49 RD |
25409 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
25410 | PyObject *resultobj = 0; | |
25411 | wxPrintDialogData *result = 0 ; | |
25412 | ||
25413 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
25414 | { | |
25415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25416 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
25417 | wxPyEndAllowThreads(__tstate); | |
25418 | if (PyErr_Occurred()) SWIG_fail; | |
25419 | } | |
25420 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
25421 | return resultobj; | |
25422 | fail: | |
25423 | return NULL; | |
d14a1e28 RD |
25424 | } |
25425 | ||
25426 | ||
0085ce49 RD |
25427 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
25428 | PyObject *resultobj = 0; | |
25429 | wxPrintData *arg1 = 0 ; | |
25430 | wxPrintDialogData *result = 0 ; | |
25431 | void *argp1 = 0 ; | |
25432 | int res1 = 0 ; | |
25433 | ||
25434 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
25435 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25436 | if (!SWIG_IsOK(res1)) { | |
25437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25438 | } | |
25439 | if (!argp1) { | |
25440 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25441 | } | |
25442 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
25443 | { | |
25444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25445 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); | |
25446 | wxPyEndAllowThreads(__tstate); | |
25447 | if (PyErr_Occurred()) SWIG_fail; | |
25448 | } | |
25449 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
25450 | return resultobj; | |
25451 | fail: | |
25452 | return NULL; | |
d14a1e28 RD |
25453 | } |
25454 | ||
25455 | ||
0085ce49 RD |
25456 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
25457 | PyObject *resultobj = 0; | |
25458 | wxPrintDialogData *arg1 = 0 ; | |
25459 | wxPrintDialogData *result = 0 ; | |
25460 | void *argp1 = 0 ; | |
25461 | int res1 = 0 ; | |
25462 | ||
25463 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
25464 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintDialogData, 0 | 0); | |
25465 | if (!SWIG_IsOK(res1)) { | |
25466 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData const &""'"); | |
25467 | } | |
25468 | if (!argp1) { | |
25469 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData const &""'"); | |
25470 | } | |
25471 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25472 | { | |
25473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25474 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintDialogData const &)*arg1); | |
25475 | wxPyEndAllowThreads(__tstate); | |
25476 | if (PyErr_Occurred()) SWIG_fail; | |
25477 | } | |
25478 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
25479 | return resultobj; | |
25480 | fail: | |
25481 | return NULL; | |
d14a1e28 RD |
25482 | } |
25483 | ||
25484 | ||
0085ce49 RD |
25485 | SWIGINTERN PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { |
25486 | int argc; | |
25487 | PyObject *argv[2]; | |
25488 | ||
25489 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintDialogData",0,1,argv))) SWIG_fail; | |
25490 | --argc; | |
25491 | if (argc == 0) { | |
25492 | return _wrap_new_PrintDialogData__SWIG_0(self, argc, argv); | |
25493 | } | |
25494 | if (argc == 1) { | |
25495 | int _v = 0; | |
093d3ff1 | 25496 | { |
0085ce49 RD |
25497 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxPrintData, 0); |
25498 | _v = SWIG_CheckState(res); | |
093d3ff1 | 25499 | } |
0085ce49 RD |
25500 | if (!_v) goto check_2; |
25501 | return _wrap_new_PrintDialogData__SWIG_1(self, argc, argv); | |
25502 | } | |
25503 | check_2: | |
25504 | ||
25505 | if (argc == 1) { | |
25506 | return _wrap_new_PrintDialogData__SWIG_2(self, argc, argv); | |
25507 | } | |
25508 | ||
25509 | fail: | |
25510 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintDialogData'"); | |
25511 | return NULL; | |
d14a1e28 RD |
25512 | } |
25513 | ||
25514 | ||
0085ce49 RD |
25515 | SWIGINTERN PyObject *_wrap_delete_PrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25516 | PyObject *resultobj = 0; | |
25517 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25518 | void *argp1 = 0 ; | |
25519 | int res1 = 0 ; | |
25520 | PyObject *swig_obj[1] ; | |
25521 | ||
25522 | if (!args) SWIG_fail; | |
25523 | swig_obj[0] = args; | |
25524 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_DISOWN | 0 ); | |
25525 | if (!SWIG_IsOK(res1)) { | |
25526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
25527 | } | |
25528 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25529 | { | |
25530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25531 | delete arg1; | |
d14a1e28 | 25532 | |
0085ce49 RD |
25533 | wxPyEndAllowThreads(__tstate); |
25534 | if (PyErr_Occurred()) SWIG_fail; | |
25535 | } | |
25536 | resultobj = SWIG_Py_Void(); | |
25537 | return resultobj; | |
25538 | fail: | |
25539 | return NULL; | |
d14a1e28 RD |
25540 | } |
25541 | ||
25542 | ||
0085ce49 RD |
25543 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25544 | PyObject *resultobj = 0; | |
25545 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25546 | int result; | |
25547 | void *argp1 = 0 ; | |
25548 | int res1 = 0 ; | |
25549 | PyObject *swig_obj[1] ; | |
25550 | ||
25551 | if (!args) SWIG_fail; | |
25552 | swig_obj[0] = args; | |
25553 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25554 | if (!SWIG_IsOK(res1)) { | |
25555 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetFromPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25556 | } | |
25557 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25558 | { | |
25559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25560 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
25561 | wxPyEndAllowThreads(__tstate); | |
25562 | if (PyErr_Occurred()) SWIG_fail; | |
25563 | } | |
25564 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25565 | return resultobj; | |
25566 | fail: | |
25567 | return NULL; | |
d14a1e28 RD |
25568 | } |
25569 | ||
25570 | ||
0085ce49 RD |
25571 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25572 | PyObject *resultobj = 0; | |
25573 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25574 | int result; | |
25575 | void *argp1 = 0 ; | |
25576 | int res1 = 0 ; | |
25577 | PyObject *swig_obj[1] ; | |
25578 | ||
25579 | if (!args) SWIG_fail; | |
25580 | swig_obj[0] = args; | |
25581 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25582 | if (!SWIG_IsOK(res1)) { | |
25583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetToPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25584 | } | |
25585 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25586 | { | |
25587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25588 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
25589 | wxPyEndAllowThreads(__tstate); | |
25590 | if (PyErr_Occurred()) SWIG_fail; | |
25591 | } | |
25592 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25593 | return resultobj; | |
25594 | fail: | |
25595 | return NULL; | |
d14a1e28 | 25596 | } |
0085ce49 RD |
25597 | |
25598 | ||
25599 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25600 | PyObject *resultobj = 0; | |
25601 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25602 | int result; | |
25603 | void *argp1 = 0 ; | |
25604 | int res1 = 0 ; | |
25605 | PyObject *swig_obj[1] ; | |
25606 | ||
25607 | if (!args) SWIG_fail; | |
25608 | swig_obj[0] = args; | |
25609 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25610 | if (!SWIG_IsOK(res1)) { | |
25611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetMinPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25612 | } | |
25613 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25614 | { | |
25615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25616 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
25617 | wxPyEndAllowThreads(__tstate); | |
25618 | if (PyErr_Occurred()) SWIG_fail; | |
25619 | } | |
25620 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25621 | return resultobj; | |
25622 | fail: | |
25623 | return NULL; | |
d14a1e28 RD |
25624 | } |
25625 | ||
25626 | ||
0085ce49 RD |
25627 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25628 | PyObject *resultobj = 0; | |
25629 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25630 | int result; | |
25631 | void *argp1 = 0 ; | |
25632 | int res1 = 0 ; | |
25633 | PyObject *swig_obj[1] ; | |
25634 | ||
25635 | if (!args) SWIG_fail; | |
25636 | swig_obj[0] = args; | |
25637 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25638 | if (!SWIG_IsOK(res1)) { | |
25639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetMaxPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25640 | } | |
25641 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25642 | { | |
25643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25644 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
25645 | wxPyEndAllowThreads(__tstate); | |
25646 | if (PyErr_Occurred()) SWIG_fail; | |
25647 | } | |
25648 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25649 | return resultobj; | |
25650 | fail: | |
25651 | return NULL; | |
d14a1e28 RD |
25652 | } |
25653 | ||
25654 | ||
0085ce49 RD |
25655 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25656 | PyObject *resultobj = 0; | |
25657 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25658 | int result; | |
25659 | void *argp1 = 0 ; | |
25660 | int res1 = 0 ; | |
25661 | PyObject *swig_obj[1] ; | |
25662 | ||
25663 | if (!args) SWIG_fail; | |
25664 | swig_obj[0] = args; | |
25665 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25666 | if (!SWIG_IsOK(res1)) { | |
25667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetNoCopies" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25668 | } | |
25669 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25670 | { | |
25671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25672 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
25673 | wxPyEndAllowThreads(__tstate); | |
25674 | if (PyErr_Occurred()) SWIG_fail; | |
25675 | } | |
25676 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25677 | return resultobj; | |
25678 | fail: | |
25679 | return NULL; | |
d14a1e28 RD |
25680 | } |
25681 | ||
25682 | ||
0085ce49 RD |
25683 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25684 | PyObject *resultobj = 0; | |
25685 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25686 | bool result; | |
25687 | void *argp1 = 0 ; | |
25688 | int res1 = 0 ; | |
25689 | PyObject *swig_obj[1] ; | |
25690 | ||
25691 | if (!args) SWIG_fail; | |
25692 | swig_obj[0] = args; | |
25693 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25694 | if (!SWIG_IsOK(res1)) { | |
25695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetAllPages" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25696 | } | |
25697 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25698 | { | |
25699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25700 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
25701 | wxPyEndAllowThreads(__tstate); | |
25702 | if (PyErr_Occurred()) SWIG_fail; | |
25703 | } | |
25704 | { | |
25705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25706 | } | |
25707 | return resultobj; | |
25708 | fail: | |
25709 | return NULL; | |
d14a1e28 RD |
25710 | } |
25711 | ||
25712 | ||
0085ce49 RD |
25713 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25714 | PyObject *resultobj = 0; | |
25715 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25716 | bool result; | |
25717 | void *argp1 = 0 ; | |
25718 | int res1 = 0 ; | |
25719 | PyObject *swig_obj[1] ; | |
25720 | ||
25721 | if (!args) SWIG_fail; | |
25722 | swig_obj[0] = args; | |
25723 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25724 | if (!SWIG_IsOK(res1)) { | |
25725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetSelection" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25726 | } | |
25727 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25728 | { | |
25729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25730 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
25731 | wxPyEndAllowThreads(__tstate); | |
25732 | if (PyErr_Occurred()) SWIG_fail; | |
25733 | } | |
25734 | { | |
25735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25736 | } | |
25737 | return resultobj; | |
25738 | fail: | |
25739 | return NULL; | |
d14a1e28 RD |
25740 | } |
25741 | ||
25742 | ||
0085ce49 RD |
25743 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25744 | PyObject *resultobj = 0; | |
25745 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25746 | bool result; | |
25747 | void *argp1 = 0 ; | |
25748 | int res1 = 0 ; | |
25749 | PyObject *swig_obj[1] ; | |
25750 | ||
25751 | if (!args) SWIG_fail; | |
25752 | swig_obj[0] = args; | |
25753 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25754 | if (!SWIG_IsOK(res1)) { | |
25755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetCollate" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25756 | } | |
25757 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25758 | { | |
25759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25760 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
25761 | wxPyEndAllowThreads(__tstate); | |
25762 | if (PyErr_Occurred()) SWIG_fail; | |
25763 | } | |
25764 | { | |
25765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25766 | } | |
25767 | return resultobj; | |
25768 | fail: | |
25769 | return NULL; | |
d14a1e28 RD |
25770 | } |
25771 | ||
25772 | ||
0085ce49 RD |
25773 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25774 | PyObject *resultobj = 0; | |
25775 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25776 | bool result; | |
25777 | void *argp1 = 0 ; | |
25778 | int res1 = 0 ; | |
25779 | PyObject *swig_obj[1] ; | |
25780 | ||
25781 | if (!args) SWIG_fail; | |
25782 | swig_obj[0] = args; | |
25783 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25784 | if (!SWIG_IsOK(res1)) { | |
25785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetPrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25786 | } | |
25787 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25788 | { | |
25789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25790 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
25791 | wxPyEndAllowThreads(__tstate); | |
25792 | if (PyErr_Occurred()) SWIG_fail; | |
25793 | } | |
25794 | { | |
25795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25796 | } | |
25797 | return resultobj; | |
25798 | fail: | |
25799 | return NULL; | |
25800 | } | |
25801 | ||
25802 | ||
25803 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25804 | PyObject *resultobj = 0; | |
25805 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25806 | int arg2 ; | |
25807 | void *argp1 = 0 ; | |
25808 | int res1 = 0 ; | |
25809 | int val2 ; | |
25810 | int ecode2 = 0 ; | |
25811 | PyObject * obj0 = 0 ; | |
25812 | PyObject * obj1 = 0 ; | |
25813 | char * kwnames[] = { | |
25814 | (char *) "self",(char *) "v", NULL | |
25815 | }; | |
25816 | ||
25817 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
25818 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25819 | if (!SWIG_IsOK(res1)) { | |
25820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetFromPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
25821 | } | |
25822 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25823 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25824 | if (!SWIG_IsOK(ecode2)) { | |
25825 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetFromPage" "', expected argument " "2"" of type '" "int""'"); | |
25826 | } | |
25827 | arg2 = static_cast< int >(val2); | |
25828 | { | |
25829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25830 | (arg1)->SetFromPage(arg2); | |
25831 | wxPyEndAllowThreads(__tstate); | |
25832 | if (PyErr_Occurred()) SWIG_fail; | |
25833 | } | |
25834 | resultobj = SWIG_Py_Void(); | |
25835 | return resultobj; | |
25836 | fail: | |
25837 | return NULL; | |
25838 | } | |
25839 | ||
25840 | ||
25841 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25842 | PyObject *resultobj = 0; | |
25843 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25844 | int arg2 ; | |
25845 | void *argp1 = 0 ; | |
25846 | int res1 = 0 ; | |
25847 | int val2 ; | |
25848 | int ecode2 = 0 ; | |
25849 | PyObject * obj0 = 0 ; | |
25850 | PyObject * obj1 = 0 ; | |
25851 | char * kwnames[] = { | |
25852 | (char *) "self",(char *) "v", NULL | |
25853 | }; | |
25854 | ||
25855 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
25856 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25857 | if (!SWIG_IsOK(res1)) { | |
25858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetToPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
25859 | } | |
25860 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25861 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25862 | if (!SWIG_IsOK(ecode2)) { | |
25863 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetToPage" "', expected argument " "2"" of type '" "int""'"); | |
25864 | } | |
25865 | arg2 = static_cast< int >(val2); | |
25866 | { | |
25867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25868 | (arg1)->SetToPage(arg2); | |
25869 | wxPyEndAllowThreads(__tstate); | |
25870 | if (PyErr_Occurred()) SWIG_fail; | |
25871 | } | |
25872 | resultobj = SWIG_Py_Void(); | |
25873 | return resultobj; | |
25874 | fail: | |
25875 | return NULL; | |
25876 | } | |
25877 | ||
25878 | ||
25879 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25880 | PyObject *resultobj = 0; | |
25881 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25882 | int arg2 ; | |
25883 | void *argp1 = 0 ; | |
25884 | int res1 = 0 ; | |
25885 | int val2 ; | |
25886 | int ecode2 = 0 ; | |
25887 | PyObject * obj0 = 0 ; | |
25888 | PyObject * obj1 = 0 ; | |
25889 | char * kwnames[] = { | |
25890 | (char *) "self",(char *) "v", NULL | |
25891 | }; | |
25892 | ||
25893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
25894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25895 | if (!SWIG_IsOK(res1)) { | |
25896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetMinPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
25897 | } | |
25898 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25899 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25900 | if (!SWIG_IsOK(ecode2)) { | |
25901 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetMinPage" "', expected argument " "2"" of type '" "int""'"); | |
25902 | } | |
25903 | arg2 = static_cast< int >(val2); | |
25904 | { | |
25905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25906 | (arg1)->SetMinPage(arg2); | |
25907 | wxPyEndAllowThreads(__tstate); | |
25908 | if (PyErr_Occurred()) SWIG_fail; | |
25909 | } | |
25910 | resultobj = SWIG_Py_Void(); | |
25911 | return resultobj; | |
25912 | fail: | |
25913 | return NULL; | |
25914 | } | |
25915 | ||
25916 | ||
25917 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25918 | PyObject *resultobj = 0; | |
25919 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25920 | int arg2 ; | |
25921 | void *argp1 = 0 ; | |
25922 | int res1 = 0 ; | |
25923 | int val2 ; | |
25924 | int ecode2 = 0 ; | |
25925 | PyObject * obj0 = 0 ; | |
25926 | PyObject * obj1 = 0 ; | |
25927 | char * kwnames[] = { | |
25928 | (char *) "self",(char *) "v", NULL | |
25929 | }; | |
25930 | ||
25931 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
25932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25933 | if (!SWIG_IsOK(res1)) { | |
25934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetMaxPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
25935 | } | |
25936 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25937 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25938 | if (!SWIG_IsOK(ecode2)) { | |
25939 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetMaxPage" "', expected argument " "2"" of type '" "int""'"); | |
25940 | } | |
25941 | arg2 = static_cast< int >(val2); | |
25942 | { | |
25943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25944 | (arg1)->SetMaxPage(arg2); | |
25945 | wxPyEndAllowThreads(__tstate); | |
25946 | if (PyErr_Occurred()) SWIG_fail; | |
25947 | } | |
25948 | resultobj = SWIG_Py_Void(); | |
25949 | return resultobj; | |
25950 | fail: | |
25951 | return NULL; | |
25952 | } | |
25953 | ||
25954 | ||
25955 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25956 | PyObject *resultobj = 0; | |
25957 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25958 | int arg2 ; | |
25959 | void *argp1 = 0 ; | |
25960 | int res1 = 0 ; | |
25961 | int val2 ; | |
25962 | int ecode2 = 0 ; | |
25963 | PyObject * obj0 = 0 ; | |
25964 | PyObject * obj1 = 0 ; | |
25965 | char * kwnames[] = { | |
25966 | (char *) "self",(char *) "v", NULL | |
25967 | }; | |
25968 | ||
25969 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) SWIG_fail; | |
25970 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25971 | if (!SWIG_IsOK(res1)) { | |
25972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetNoCopies" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
25973 | } | |
25974 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25975 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25976 | if (!SWIG_IsOK(ecode2)) { | |
25977 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetNoCopies" "', expected argument " "2"" of type '" "int""'"); | |
25978 | } | |
25979 | arg2 = static_cast< int >(val2); | |
25980 | { | |
25981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25982 | (arg1)->SetNoCopies(arg2); | |
25983 | wxPyEndAllowThreads(__tstate); | |
25984 | if (PyErr_Occurred()) SWIG_fail; | |
25985 | } | |
25986 | resultobj = SWIG_Py_Void(); | |
25987 | return resultobj; | |
25988 | fail: | |
25989 | return NULL; | |
25990 | } | |
25991 | ||
25992 | ||
25993 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25994 | PyObject *resultobj = 0; | |
25995 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25996 | bool arg2 ; | |
25997 | void *argp1 = 0 ; | |
25998 | int res1 = 0 ; | |
25999 | bool val2 ; | |
26000 | int ecode2 = 0 ; | |
26001 | PyObject * obj0 = 0 ; | |
26002 | PyObject * obj1 = 0 ; | |
26003 | char * kwnames[] = { | |
26004 | (char *) "self",(char *) "flag", NULL | |
26005 | }; | |
26006 | ||
26007 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) SWIG_fail; | |
26008 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26009 | if (!SWIG_IsOK(res1)) { | |
26010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetAllPages" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26011 | } | |
26012 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26013 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26014 | if (!SWIG_IsOK(ecode2)) { | |
26015 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetAllPages" "', expected argument " "2"" of type '" "bool""'"); | |
26016 | } | |
26017 | arg2 = static_cast< bool >(val2); | |
26018 | { | |
26019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26020 | (arg1)->SetAllPages(arg2); | |
26021 | wxPyEndAllowThreads(__tstate); | |
26022 | if (PyErr_Occurred()) SWIG_fail; | |
26023 | } | |
26024 | resultobj = SWIG_Py_Void(); | |
26025 | return resultobj; | |
26026 | fail: | |
26027 | return NULL; | |
26028 | } | |
26029 | ||
26030 | ||
26031 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26032 | PyObject *resultobj = 0; | |
26033 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26034 | bool arg2 ; | |
26035 | void *argp1 = 0 ; | |
26036 | int res1 = 0 ; | |
26037 | bool val2 ; | |
26038 | int ecode2 = 0 ; | |
26039 | PyObject * obj0 = 0 ; | |
26040 | PyObject * obj1 = 0 ; | |
26041 | char * kwnames[] = { | |
26042 | (char *) "self",(char *) "flag", NULL | |
26043 | }; | |
26044 | ||
26045 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
26046 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26047 | if (!SWIG_IsOK(res1)) { | |
26048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetSelection" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26049 | } | |
26050 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26051 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26052 | if (!SWIG_IsOK(ecode2)) { | |
26053 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetSelection" "', expected argument " "2"" of type '" "bool""'"); | |
26054 | } | |
26055 | arg2 = static_cast< bool >(val2); | |
26056 | { | |
26057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26058 | (arg1)->SetSelection(arg2); | |
26059 | wxPyEndAllowThreads(__tstate); | |
26060 | if (PyErr_Occurred()) SWIG_fail; | |
26061 | } | |
26062 | resultobj = SWIG_Py_Void(); | |
26063 | return resultobj; | |
26064 | fail: | |
26065 | return NULL; | |
26066 | } | |
26067 | ||
26068 | ||
26069 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26070 | PyObject *resultobj = 0; | |
26071 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26072 | bool arg2 ; | |
26073 | void *argp1 = 0 ; | |
26074 | int res1 = 0 ; | |
26075 | bool val2 ; | |
26076 | int ecode2 = 0 ; | |
26077 | PyObject * obj0 = 0 ; | |
26078 | PyObject * obj1 = 0 ; | |
26079 | char * kwnames[] = { | |
26080 | (char *) "self",(char *) "flag", NULL | |
26081 | }; | |
26082 | ||
26083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) SWIG_fail; | |
26084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26085 | if (!SWIG_IsOK(res1)) { | |
26086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetCollate" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26087 | } | |
26088 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26089 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26090 | if (!SWIG_IsOK(ecode2)) { | |
26091 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetCollate" "', expected argument " "2"" of type '" "bool""'"); | |
26092 | } | |
26093 | arg2 = static_cast< bool >(val2); | |
26094 | { | |
26095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26096 | (arg1)->SetCollate(arg2); | |
26097 | wxPyEndAllowThreads(__tstate); | |
26098 | if (PyErr_Occurred()) SWIG_fail; | |
26099 | } | |
26100 | resultobj = SWIG_Py_Void(); | |
26101 | return resultobj; | |
26102 | fail: | |
26103 | return NULL; | |
26104 | } | |
26105 | ||
26106 | ||
26107 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26108 | PyObject *resultobj = 0; | |
26109 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26110 | bool arg2 ; | |
26111 | void *argp1 = 0 ; | |
26112 | int res1 = 0 ; | |
26113 | bool val2 ; | |
26114 | int ecode2 = 0 ; | |
26115 | PyObject * obj0 = 0 ; | |
26116 | PyObject * obj1 = 0 ; | |
26117 | char * kwnames[] = { | |
26118 | (char *) "self",(char *) "flag", NULL | |
26119 | }; | |
26120 | ||
26121 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
26122 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26123 | if (!SWIG_IsOK(res1)) { | |
26124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetPrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26125 | } | |
26126 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26127 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26128 | if (!SWIG_IsOK(ecode2)) { | |
26129 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetPrintToFile" "', expected argument " "2"" of type '" "bool""'"); | |
26130 | } | |
26131 | arg2 = static_cast< bool >(val2); | |
26132 | { | |
26133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26134 | (arg1)->SetPrintToFile(arg2); | |
26135 | wxPyEndAllowThreads(__tstate); | |
26136 | if (PyErr_Occurred()) SWIG_fail; | |
26137 | } | |
26138 | resultobj = SWIG_Py_Void(); | |
26139 | return resultobj; | |
26140 | fail: | |
26141 | return NULL; | |
26142 | } | |
26143 | ||
26144 | ||
26145 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26146 | PyObject *resultobj = 0; | |
26147 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26148 | bool arg2 ; | |
26149 | void *argp1 = 0 ; | |
26150 | int res1 = 0 ; | |
26151 | bool val2 ; | |
26152 | int ecode2 = 0 ; | |
26153 | PyObject * obj0 = 0 ; | |
26154 | PyObject * obj1 = 0 ; | |
26155 | char * kwnames[] = { | |
26156 | (char *) "self",(char *) "flag", NULL | |
26157 | }; | |
26158 | ||
26159 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
26160 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26161 | if (!SWIG_IsOK(res1)) { | |
26162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnablePrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26163 | } | |
26164 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26165 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26166 | if (!SWIG_IsOK(ecode2)) { | |
26167 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnablePrintToFile" "', expected argument " "2"" of type '" "bool""'"); | |
26168 | } | |
26169 | arg2 = static_cast< bool >(val2); | |
26170 | { | |
26171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26172 | (arg1)->EnablePrintToFile(arg2); | |
26173 | wxPyEndAllowThreads(__tstate); | |
26174 | if (PyErr_Occurred()) SWIG_fail; | |
26175 | } | |
26176 | resultobj = SWIG_Py_Void(); | |
26177 | return resultobj; | |
26178 | fail: | |
26179 | return NULL; | |
26180 | } | |
26181 | ||
26182 | ||
26183 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26184 | PyObject *resultobj = 0; | |
26185 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26186 | bool arg2 ; | |
26187 | void *argp1 = 0 ; | |
26188 | int res1 = 0 ; | |
26189 | bool val2 ; | |
26190 | int ecode2 = 0 ; | |
26191 | PyObject * obj0 = 0 ; | |
26192 | PyObject * obj1 = 0 ; | |
26193 | char * kwnames[] = { | |
26194 | (char *) "self",(char *) "flag", NULL | |
26195 | }; | |
26196 | ||
26197 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
26198 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26199 | if (!SWIG_IsOK(res1)) { | |
26200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnableSelection" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26201 | } | |
26202 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26203 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26204 | if (!SWIG_IsOK(ecode2)) { | |
26205 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnableSelection" "', expected argument " "2"" of type '" "bool""'"); | |
26206 | } | |
26207 | arg2 = static_cast< bool >(val2); | |
26208 | { | |
26209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26210 | (arg1)->EnableSelection(arg2); | |
26211 | wxPyEndAllowThreads(__tstate); | |
26212 | if (PyErr_Occurred()) SWIG_fail; | |
26213 | } | |
26214 | resultobj = SWIG_Py_Void(); | |
26215 | return resultobj; | |
26216 | fail: | |
26217 | return NULL; | |
26218 | } | |
26219 | ||
26220 | ||
26221 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26222 | PyObject *resultobj = 0; | |
26223 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26224 | bool arg2 ; | |
26225 | void *argp1 = 0 ; | |
26226 | int res1 = 0 ; | |
26227 | bool val2 ; | |
26228 | int ecode2 = 0 ; | |
26229 | PyObject * obj0 = 0 ; | |
26230 | PyObject * obj1 = 0 ; | |
26231 | char * kwnames[] = { | |
26232 | (char *) "self",(char *) "flag", NULL | |
26233 | }; | |
26234 | ||
26235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) SWIG_fail; | |
26236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26237 | if (!SWIG_IsOK(res1)) { | |
26238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnablePageNumbers" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26239 | } | |
26240 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26241 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26242 | if (!SWIG_IsOK(ecode2)) { | |
26243 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnablePageNumbers" "', expected argument " "2"" of type '" "bool""'"); | |
26244 | } | |
26245 | arg2 = static_cast< bool >(val2); | |
26246 | { | |
26247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26248 | (arg1)->EnablePageNumbers(arg2); | |
26249 | wxPyEndAllowThreads(__tstate); | |
26250 | if (PyErr_Occurred()) SWIG_fail; | |
26251 | } | |
26252 | resultobj = SWIG_Py_Void(); | |
26253 | return resultobj; | |
26254 | fail: | |
26255 | return NULL; | |
26256 | } | |
26257 | ||
26258 | ||
26259 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26260 | PyObject *resultobj = 0; | |
26261 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26262 | bool arg2 ; | |
26263 | void *argp1 = 0 ; | |
26264 | int res1 = 0 ; | |
26265 | bool val2 ; | |
26266 | int ecode2 = 0 ; | |
26267 | PyObject * obj0 = 0 ; | |
26268 | PyObject * obj1 = 0 ; | |
26269 | char * kwnames[] = { | |
26270 | (char *) "self",(char *) "flag", NULL | |
26271 | }; | |
26272 | ||
26273 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
26274 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26275 | if (!SWIG_IsOK(res1)) { | |
26276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnableHelp" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26277 | } | |
26278 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26279 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26280 | if (!SWIG_IsOK(ecode2)) { | |
26281 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnableHelp" "', expected argument " "2"" of type '" "bool""'"); | |
26282 | } | |
26283 | arg2 = static_cast< bool >(val2); | |
26284 | { | |
26285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26286 | (arg1)->EnableHelp(arg2); | |
26287 | wxPyEndAllowThreads(__tstate); | |
26288 | if (PyErr_Occurred()) SWIG_fail; | |
26289 | } | |
26290 | resultobj = SWIG_Py_Void(); | |
26291 | return resultobj; | |
26292 | fail: | |
26293 | return NULL; | |
d14a1e28 RD |
26294 | } |
26295 | ||
26296 | ||
0085ce49 RD |
26297 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26298 | PyObject *resultobj = 0; | |
26299 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26300 | bool result; | |
26301 | void *argp1 = 0 ; | |
26302 | int res1 = 0 ; | |
26303 | PyObject *swig_obj[1] ; | |
26304 | ||
26305 | if (!args) SWIG_fail; | |
26306 | swig_obj[0] = args; | |
26307 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26308 | if (!SWIG_IsOK(res1)) { | |
26309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnablePrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26310 | } | |
26311 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26312 | { | |
26313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26314 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
26315 | wxPyEndAllowThreads(__tstate); | |
26316 | if (PyErr_Occurred()) SWIG_fail; | |
26317 | } | |
26318 | { | |
26319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26320 | } | |
26321 | return resultobj; | |
26322 | fail: | |
26323 | return NULL; | |
d14a1e28 RD |
26324 | } |
26325 | ||
26326 | ||
0085ce49 RD |
26327 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26328 | PyObject *resultobj = 0; | |
26329 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26330 | bool result; | |
26331 | void *argp1 = 0 ; | |
26332 | int res1 = 0 ; | |
26333 | PyObject *swig_obj[1] ; | |
26334 | ||
26335 | if (!args) SWIG_fail; | |
26336 | swig_obj[0] = args; | |
26337 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26338 | if (!SWIG_IsOK(res1)) { | |
26339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnableSelection" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26340 | } | |
26341 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26342 | { | |
26343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26344 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
26345 | wxPyEndAllowThreads(__tstate); | |
26346 | if (PyErr_Occurred()) SWIG_fail; | |
26347 | } | |
26348 | { | |
26349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26350 | } | |
26351 | return resultobj; | |
26352 | fail: | |
26353 | return NULL; | |
d14a1e28 RD |
26354 | } |
26355 | ||
26356 | ||
0085ce49 RD |
26357 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26358 | PyObject *resultobj = 0; | |
26359 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26360 | bool result; | |
26361 | void *argp1 = 0 ; | |
26362 | int res1 = 0 ; | |
26363 | PyObject *swig_obj[1] ; | |
26364 | ||
26365 | if (!args) SWIG_fail; | |
26366 | swig_obj[0] = args; | |
26367 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26368 | if (!SWIG_IsOK(res1)) { | |
26369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnablePageNumbers" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26370 | } | |
26371 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26372 | { | |
26373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26374 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
26375 | wxPyEndAllowThreads(__tstate); | |
26376 | if (PyErr_Occurred()) SWIG_fail; | |
26377 | } | |
26378 | { | |
26379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26380 | } | |
26381 | return resultobj; | |
26382 | fail: | |
26383 | return NULL; | |
d14a1e28 RD |
26384 | } |
26385 | ||
26386 | ||
0085ce49 RD |
26387 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26388 | PyObject *resultobj = 0; | |
26389 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26390 | bool result; | |
26391 | void *argp1 = 0 ; | |
26392 | int res1 = 0 ; | |
26393 | PyObject *swig_obj[1] ; | |
26394 | ||
26395 | if (!args) SWIG_fail; | |
26396 | swig_obj[0] = args; | |
26397 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26398 | if (!SWIG_IsOK(res1)) { | |
26399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnableHelp" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26400 | } | |
26401 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26402 | { | |
26403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26404 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
26405 | wxPyEndAllowThreads(__tstate); | |
26406 | if (PyErr_Occurred()) SWIG_fail; | |
26407 | } | |
26408 | { | |
26409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26410 | } | |
26411 | return resultobj; | |
26412 | fail: | |
26413 | return NULL; | |
d14a1e28 RD |
26414 | } |
26415 | ||
26416 | ||
0085ce49 RD |
26417 | SWIGINTERN PyObject *_wrap_PrintDialogData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26418 | PyObject *resultobj = 0; | |
26419 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26420 | bool result; | |
26421 | void *argp1 = 0 ; | |
26422 | int res1 = 0 ; | |
26423 | PyObject *swig_obj[1] ; | |
26424 | ||
26425 | if (!args) SWIG_fail; | |
26426 | swig_obj[0] = args; | |
26427 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26428 | if (!SWIG_IsOK(res1)) { | |
26429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_Ok" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26430 | } | |
26431 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26432 | { | |
26433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26434 | result = (bool)((wxPrintDialogData const *)arg1)->Ok(); | |
26435 | wxPyEndAllowThreads(__tstate); | |
26436 | if (PyErr_Occurred()) SWIG_fail; | |
26437 | } | |
26438 | { | |
26439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26440 | } | |
26441 | return resultobj; | |
26442 | fail: | |
26443 | return NULL; | |
d14a1e28 RD |
26444 | } |
26445 | ||
26446 | ||
0085ce49 RD |
26447 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26448 | PyObject *resultobj = 0; | |
26449 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26450 | wxPrintData *result = 0 ; | |
26451 | void *argp1 = 0 ; | |
26452 | int res1 = 0 ; | |
26453 | PyObject *swig_obj[1] ; | |
26454 | ||
26455 | if (!args) SWIG_fail; | |
26456 | swig_obj[0] = args; | |
26457 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26458 | if (!SWIG_IsOK(res1)) { | |
26459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetPrintData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26460 | } | |
26461 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26462 | { | |
26463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 26464 | { |
0085ce49 RD |
26465 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
26466 | result = (wxPrintData *) &_result_ref; | |
d14a1e28 | 26467 | } |
0085ce49 RD |
26468 | wxPyEndAllowThreads(__tstate); |
26469 | if (PyErr_Occurred()) SWIG_fail; | |
26470 | } | |
26471 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
26472 | return resultobj; | |
26473 | fail: | |
26474 | return NULL; | |
26475 | } | |
26476 | ||
26477 | ||
26478 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26479 | PyObject *resultobj = 0; | |
26480 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26481 | wxPrintData *arg2 = 0 ; | |
26482 | void *argp1 = 0 ; | |
26483 | int res1 = 0 ; | |
26484 | void *argp2 = 0 ; | |
26485 | int res2 = 0 ; | |
26486 | PyObject * obj0 = 0 ; | |
26487 | PyObject * obj1 = 0 ; | |
26488 | char * kwnames[] = { | |
26489 | (char *) "self",(char *) "printData", NULL | |
26490 | }; | |
26491 | ||
26492 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
26493 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26494 | if (!SWIG_IsOK(res1)) { | |
26495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetPrintData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26496 | } | |
26497 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26498 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
26499 | if (!SWIG_IsOK(res2)) { | |
26500 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
26501 | } | |
26502 | if (!argp2) { | |
26503 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
26504 | } | |
26505 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
26506 | { | |
26507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26508 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
26509 | wxPyEndAllowThreads(__tstate); | |
26510 | if (PyErr_Occurred()) SWIG_fail; | |
26511 | } | |
26512 | resultobj = SWIG_Py_Void(); | |
26513 | return resultobj; | |
26514 | fail: | |
26515 | return NULL; | |
d14a1e28 RD |
26516 | } |
26517 | ||
26518 | ||
0085ce49 RD |
26519 | SWIGINTERN PyObject *PrintDialogData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26520 | PyObject *obj; | |
26521 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26522 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintDialogData, SWIG_NewClientData(obj)); | |
26523 | return SWIG_Py_Void(); | |
d14a1e28 RD |
26524 | } |
26525 | ||
0085ce49 RD |
26526 | SWIGINTERN PyObject *PrintDialogData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26527 | return SWIG_Python_InitShadowInstance(args); | |
26528 | } | |
d14a1e28 | 26529 | |
0085ce49 RD |
26530 | SWIGINTERN PyObject *_wrap_new_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26531 | PyObject *resultobj = 0; | |
26532 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26533 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
26534 | wxPrintDialog *result = 0 ; | |
26535 | void *argp1 = 0 ; | |
26536 | int res1 = 0 ; | |
26537 | void *argp2 = 0 ; | |
26538 | int res2 = 0 ; | |
26539 | PyObject * obj0 = 0 ; | |
26540 | PyObject * obj1 = 0 ; | |
26541 | char * kwnames[] = { | |
26542 | (char *) "parent",(char *) "data", NULL | |
26543 | }; | |
26544 | ||
26545 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
26546 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
26547 | if (!SWIG_IsOK(res1)) { | |
26548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
26549 | } | |
26550 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
26551 | if (obj1) { | |
26552 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26553 | if (!SWIG_IsOK(res2)) { | |
26554 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintDialog" "', expected argument " "2"" of type '" "wxPrintDialogData *""'"); | |
d14a1e28 | 26555 | } |
0085ce49 RD |
26556 | arg2 = reinterpret_cast< wxPrintDialogData * >(argp2); |
26557 | } | |
26558 | { | |
26559 | if (!wxPyCheckForApp()) SWIG_fail; | |
26560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26561 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
26562 | wxPyEndAllowThreads(__tstate); | |
26563 | if (PyErr_Occurred()) SWIG_fail; | |
26564 | } | |
26565 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialog, SWIG_POINTER_NEW | 0 ); | |
26566 | return resultobj; | |
26567 | fail: | |
26568 | return NULL; | |
d14a1e28 RD |
26569 | } |
26570 | ||
26571 | ||
0085ce49 RD |
26572 | SWIGINTERN PyObject *_wrap_PrintDialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26573 | PyObject *resultobj = 0; | |
26574 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
26575 | int result; | |
26576 | void *argp1 = 0 ; | |
26577 | int res1 = 0 ; | |
26578 | PyObject *swig_obj[1] ; | |
26579 | ||
26580 | if (!args) SWIG_fail; | |
26581 | swig_obj[0] = args; | |
26582 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
26583 | if (!SWIG_IsOK(res1)) { | |
26584 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_ShowModal" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
26585 | } | |
26586 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
26587 | { | |
26588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26589 | result = (int)(arg1)->ShowModal(); | |
26590 | wxPyEndAllowThreads(__tstate); | |
26591 | if (PyErr_Occurred()) SWIG_fail; | |
26592 | } | |
26593 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26594 | return resultobj; | |
26595 | fail: | |
26596 | return NULL; | |
d14a1e28 RD |
26597 | } |
26598 | ||
26599 | ||
0085ce49 RD |
26600 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26601 | PyObject *resultobj = 0; | |
26602 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
26603 | wxPrintDialogData *result = 0 ; | |
26604 | void *argp1 = 0 ; | |
26605 | int res1 = 0 ; | |
26606 | PyObject *swig_obj[1] ; | |
26607 | ||
26608 | if (!args) SWIG_fail; | |
26609 | swig_obj[0] = args; | |
26610 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
26611 | if (!SWIG_IsOK(res1)) { | |
26612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
26613 | } | |
26614 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
26615 | { | |
26616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 26617 | { |
0085ce49 RD |
26618 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); |
26619 | result = (wxPrintDialogData *) &_result_ref; | |
26620 | } | |
26621 | wxPyEndAllowThreads(__tstate); | |
26622 | if (PyErr_Occurred()) SWIG_fail; | |
26623 | } | |
26624 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26625 | return resultobj; | |
26626 | fail: | |
26627 | return NULL; | |
d14a1e28 RD |
26628 | } |
26629 | ||
26630 | ||
0085ce49 RD |
26631 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26632 | PyObject *resultobj = 0; | |
26633 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
26634 | wxPrintData *result = 0 ; | |
26635 | void *argp1 = 0 ; | |
26636 | int res1 = 0 ; | |
26637 | PyObject *swig_obj[1] ; | |
26638 | ||
26639 | if (!args) SWIG_fail; | |
26640 | swig_obj[0] = args; | |
26641 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
26642 | if (!SWIG_IsOK(res1)) { | |
26643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintData" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
26644 | } | |
26645 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
26646 | { | |
26647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 26648 | { |
0085ce49 RD |
26649 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
26650 | result = (wxPrintData *) &_result_ref; | |
26651 | } | |
26652 | wxPyEndAllowThreads(__tstate); | |
26653 | if (PyErr_Occurred()) SWIG_fail; | |
26654 | } | |
26655 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
26656 | return resultobj; | |
26657 | fail: | |
26658 | return NULL; | |
d14a1e28 RD |
26659 | } |
26660 | ||
26661 | ||
0085ce49 RD |
26662 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26663 | PyObject *resultobj = 0; | |
26664 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
26665 | wxDC *result = 0 ; | |
26666 | void *argp1 = 0 ; | |
26667 | int res1 = 0 ; | |
26668 | PyObject *swig_obj[1] ; | |
26669 | ||
26670 | if (!args) SWIG_fail; | |
26671 | swig_obj[0] = args; | |
26672 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
26673 | if (!SWIG_IsOK(res1)) { | |
26674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintDC" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
26675 | } | |
26676 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
26677 | { | |
26678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26679 | result = (wxDC *)(arg1)->GetPrintDC(); | |
26680 | wxPyEndAllowThreads(__tstate); | |
26681 | if (PyErr_Occurred()) SWIG_fail; | |
26682 | } | |
26683 | { | |
26684 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
26685 | } | |
26686 | return resultobj; | |
26687 | fail: | |
26688 | return NULL; | |
d14a1e28 RD |
26689 | } |
26690 | ||
26691 | ||
0085ce49 RD |
26692 | SWIGINTERN PyObject *PrintDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26693 | PyObject *obj; | |
26694 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26695 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintDialog, SWIG_NewClientData(obj)); | |
26696 | return SWIG_Py_Void(); | |
d14a1e28 RD |
26697 | } |
26698 | ||
0085ce49 RD |
26699 | SWIGINTERN PyObject *PrintDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26700 | return SWIG_Python_InitShadowInstance(args); | |
26701 | } | |
d14a1e28 | 26702 | |
0085ce49 RD |
26703 | SWIGINTERN PyObject *_wrap_new_Printer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26704 | PyObject *resultobj = 0; | |
26705 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
26706 | wxPrinter *result = 0 ; | |
26707 | void *argp1 = 0 ; | |
26708 | int res1 = 0 ; | |
26709 | PyObject * obj0 = 0 ; | |
26710 | char * kwnames[] = { | |
26711 | (char *) "data", NULL | |
26712 | }; | |
26713 | ||
26714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) SWIG_fail; | |
26715 | if (obj0) { | |
26716 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26717 | if (!SWIG_IsOK(res1)) { | |
26718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Printer" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
d14a1e28 | 26719 | } |
0085ce49 RD |
26720 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); |
26721 | } | |
26722 | { | |
26723 | if (!wxPyCheckForApp()) SWIG_fail; | |
26724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26725 | result = (wxPrinter *)new wxPrinter(arg1); | |
26726 | wxPyEndAllowThreads(__tstate); | |
26727 | if (PyErr_Occurred()) SWIG_fail; | |
26728 | } | |
26729 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinter, SWIG_POINTER_NEW | 0 ); | |
26730 | return resultobj; | |
26731 | fail: | |
26732 | return NULL; | |
d14a1e28 RD |
26733 | } |
26734 | ||
26735 | ||
0085ce49 RD |
26736 | SWIGINTERN PyObject *_wrap_delete_Printer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26737 | PyObject *resultobj = 0; | |
26738 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
26739 | void *argp1 = 0 ; | |
26740 | int res1 = 0 ; | |
26741 | PyObject *swig_obj[1] ; | |
26742 | ||
26743 | if (!args) SWIG_fail; | |
26744 | swig_obj[0] = args; | |
26745 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, SWIG_POINTER_DISOWN | 0 ); | |
26746 | if (!SWIG_IsOK(res1)) { | |
26747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Printer" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
26748 | } | |
26749 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
26750 | { | |
26751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26752 | delete arg1; | |
d14a1e28 | 26753 | |
0085ce49 RD |
26754 | wxPyEndAllowThreads(__tstate); |
26755 | if (PyErr_Occurred()) SWIG_fail; | |
26756 | } | |
26757 | resultobj = SWIG_Py_Void(); | |
26758 | return resultobj; | |
26759 | fail: | |
26760 | return NULL; | |
26761 | } | |
26762 | ||
26763 | ||
26764 | SWIGINTERN PyObject *_wrap_Printer_CreateAbortWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26765 | PyObject *resultobj = 0; | |
26766 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
26767 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26768 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
26769 | wxWindow *result = 0 ; | |
26770 | void *argp1 = 0 ; | |
26771 | int res1 = 0 ; | |
26772 | void *argp2 = 0 ; | |
26773 | int res2 = 0 ; | |
26774 | void *argp3 = 0 ; | |
26775 | int res3 = 0 ; | |
26776 | PyObject * obj0 = 0 ; | |
26777 | PyObject * obj1 = 0 ; | |
26778 | PyObject * obj2 = 0 ; | |
26779 | char * kwnames[] = { | |
26780 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
26781 | }; | |
26782 | ||
26783 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26784 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
26785 | if (!SWIG_IsOK(res1)) { | |
26786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_CreateAbortWindow" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
26787 | } | |
26788 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
26789 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
26790 | if (!SWIG_IsOK(res2)) { | |
26791 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_CreateAbortWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
26792 | } | |
26793 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
26794 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
26795 | if (!SWIG_IsOK(res3)) { | |
26796 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_CreateAbortWindow" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
26797 | } | |
26798 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
26799 | { | |
26800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26801 | result = (wxWindow *)(arg1)->CreateAbortWindow(arg2,arg3); | |
26802 | wxPyEndAllowThreads(__tstate); | |
26803 | if (PyErr_Occurred()) SWIG_fail; | |
26804 | } | |
26805 | { | |
26806 | resultobj = wxPyMake_wxObject(result, 0); | |
26807 | } | |
26808 | return resultobj; | |
26809 | fail: | |
26810 | return NULL; | |
26811 | } | |
26812 | ||
26813 | ||
26814 | SWIGINTERN PyObject *_wrap_Printer_ReportError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26815 | PyObject *resultobj = 0; | |
26816 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
26817 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26818 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
26819 | wxString *arg4 = 0 ; | |
26820 | void *argp1 = 0 ; | |
26821 | int res1 = 0 ; | |
26822 | void *argp2 = 0 ; | |
26823 | int res2 = 0 ; | |
26824 | void *argp3 = 0 ; | |
26825 | int res3 = 0 ; | |
26826 | bool temp4 = false ; | |
26827 | PyObject * obj0 = 0 ; | |
26828 | PyObject * obj1 = 0 ; | |
26829 | PyObject * obj2 = 0 ; | |
26830 | PyObject * obj3 = 0 ; | |
26831 | char * kwnames[] = { | |
26832 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
26833 | }; | |
26834 | ||
26835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
26836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
26837 | if (!SWIG_IsOK(res1)) { | |
26838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_ReportError" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
26839 | } | |
26840 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
26841 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
26842 | if (!SWIG_IsOK(res2)) { | |
26843 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_ReportError" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
26844 | } | |
26845 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
26846 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
26847 | if (!SWIG_IsOK(res3)) { | |
26848 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_ReportError" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
26849 | } | |
26850 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
26851 | { | |
26852 | arg4 = wxString_in_helper(obj3); | |
26853 | if (arg4 == NULL) SWIG_fail; | |
26854 | temp4 = true; | |
26855 | } | |
26856 | { | |
26857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26858 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
26859 | wxPyEndAllowThreads(__tstate); | |
26860 | if (PyErr_Occurred()) SWIG_fail; | |
26861 | } | |
26862 | resultobj = SWIG_Py_Void(); | |
26863 | { | |
26864 | if (temp4) | |
26865 | delete arg4; | |
26866 | } | |
26867 | return resultobj; | |
26868 | fail: | |
26869 | { | |
26870 | if (temp4) | |
26871 | delete arg4; | |
26872 | } | |
26873 | return NULL; | |
26874 | } | |
26875 | ||
26876 | ||
26877 | SWIGINTERN PyObject *_wrap_Printer_Setup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26878 | PyObject *resultobj = 0; | |
26879 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
26880 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26881 | bool result; | |
26882 | void *argp1 = 0 ; | |
26883 | int res1 = 0 ; | |
26884 | void *argp2 = 0 ; | |
26885 | int res2 = 0 ; | |
26886 | PyObject * obj0 = 0 ; | |
26887 | PyObject * obj1 = 0 ; | |
26888 | char * kwnames[] = { | |
26889 | (char *) "self",(char *) "parent", NULL | |
26890 | }; | |
26891 | ||
26892 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) SWIG_fail; | |
26893 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
26894 | if (!SWIG_IsOK(res1)) { | |
26895 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_Setup" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
26896 | } | |
26897 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
26898 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
26899 | if (!SWIG_IsOK(res2)) { | |
26900 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_Setup" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
26901 | } | |
26902 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
26903 | { | |
26904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26905 | result = (bool)(arg1)->Setup(arg2); | |
26906 | wxPyEndAllowThreads(__tstate); | |
26907 | if (PyErr_Occurred()) SWIG_fail; | |
26908 | } | |
26909 | { | |
26910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26911 | } | |
26912 | return resultobj; | |
26913 | fail: | |
26914 | return NULL; | |
26915 | } | |
26916 | ||
26917 | ||
26918 | SWIGINTERN PyObject *_wrap_Printer_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26919 | PyObject *resultobj = 0; | |
26920 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
26921 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26922 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
26923 | bool arg4 = (bool) true ; | |
26924 | bool result; | |
26925 | void *argp1 = 0 ; | |
26926 | int res1 = 0 ; | |
26927 | void *argp2 = 0 ; | |
26928 | int res2 = 0 ; | |
26929 | void *argp3 = 0 ; | |
26930 | int res3 = 0 ; | |
26931 | bool val4 ; | |
26932 | int ecode4 = 0 ; | |
26933 | PyObject * obj0 = 0 ; | |
26934 | PyObject * obj1 = 0 ; | |
26935 | PyObject * obj2 = 0 ; | |
26936 | PyObject * obj3 = 0 ; | |
26937 | char * kwnames[] = { | |
26938 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
26939 | }; | |
26940 | ||
26941 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
26942 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
26943 | if (!SWIG_IsOK(res1)) { | |
26944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_Print" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
26945 | } | |
26946 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
26947 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
26948 | if (!SWIG_IsOK(res2)) { | |
26949 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_Print" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
26950 | } | |
26951 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
26952 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
26953 | if (!SWIG_IsOK(res3)) { | |
26954 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_Print" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
26955 | } | |
26956 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
26957 | if (obj3) { | |
26958 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
26959 | if (!SWIG_IsOK(ecode4)) { | |
26960 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Printer_Print" "', expected argument " "4"" of type '" "bool""'"); | |
26961 | } | |
26962 | arg4 = static_cast< bool >(val4); | |
26963 | } | |
26964 | { | |
26965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26966 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
26967 | wxPyEndAllowThreads(__tstate); | |
26968 | if (PyErr_Occurred()) SWIG_fail; | |
26969 | } | |
26970 | { | |
26971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26972 | } | |
26973 | return resultobj; | |
26974 | fail: | |
26975 | return NULL; | |
26976 | } | |
26977 | ||
26978 | ||
26979 | SWIGINTERN PyObject *_wrap_Printer_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26980 | PyObject *resultobj = 0; | |
26981 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
26982 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26983 | wxDC *result = 0 ; | |
26984 | void *argp1 = 0 ; | |
26985 | int res1 = 0 ; | |
26986 | void *argp2 = 0 ; | |
26987 | int res2 = 0 ; | |
26988 | PyObject * obj0 = 0 ; | |
26989 | PyObject * obj1 = 0 ; | |
26990 | char * kwnames[] = { | |
26991 | (char *) "self",(char *) "parent", NULL | |
26992 | }; | |
26993 | ||
26994 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
26995 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
26996 | if (!SWIG_IsOK(res1)) { | |
26997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_PrintDialog" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
26998 | } | |
26999 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27000 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27001 | if (!SWIG_IsOK(res2)) { | |
27002 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_PrintDialog" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27003 | } | |
27004 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27005 | { | |
27006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27007 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
27008 | wxPyEndAllowThreads(__tstate); | |
27009 | if (PyErr_Occurred()) SWIG_fail; | |
27010 | } | |
27011 | { | |
27012 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
27013 | } | |
27014 | return resultobj; | |
27015 | fail: | |
27016 | return NULL; | |
d14a1e28 RD |
27017 | } |
27018 | ||
27019 | ||
0085ce49 RD |
27020 | SWIGINTERN PyObject *_wrap_Printer_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27021 | PyObject *resultobj = 0; | |
27022 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27023 | wxPrintDialogData *result = 0 ; | |
27024 | void *argp1 = 0 ; | |
27025 | int res1 = 0 ; | |
27026 | PyObject *swig_obj[1] ; | |
27027 | ||
27028 | if (!args) SWIG_fail; | |
27029 | swig_obj[0] = args; | |
27030 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27031 | if (!SWIG_IsOK(res1)) { | |
27032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrinter const *""'"); | |
27033 | } | |
27034 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27035 | { | |
27036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 27037 | { |
0085ce49 RD |
27038 | wxPrintDialogData &_result_ref = ((wxPrinter const *)arg1)->GetPrintDialogData(); |
27039 | result = (wxPrintDialogData *) &_result_ref; | |
27040 | } | |
27041 | wxPyEndAllowThreads(__tstate); | |
27042 | if (PyErr_Occurred()) SWIG_fail; | |
27043 | } | |
27044 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27045 | return resultobj; | |
27046 | fail: | |
27047 | return NULL; | |
d14a1e28 RD |
27048 | } |
27049 | ||
27050 | ||
0085ce49 RD |
27051 | SWIGINTERN PyObject *_wrap_Printer_GetAbort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27052 | PyObject *resultobj = 0; | |
27053 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27054 | bool result; | |
27055 | void *argp1 = 0 ; | |
27056 | int res1 = 0 ; | |
27057 | PyObject *swig_obj[1] ; | |
27058 | ||
27059 | if (!args) SWIG_fail; | |
27060 | swig_obj[0] = args; | |
27061 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27062 | if (!SWIG_IsOK(res1)) { | |
27063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_GetAbort" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27064 | } | |
27065 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27066 | { | |
27067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27068 | result = (bool)(arg1)->GetAbort(); | |
27069 | wxPyEndAllowThreads(__tstate); | |
27070 | if (PyErr_Occurred()) SWIG_fail; | |
27071 | } | |
27072 | { | |
27073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27074 | } | |
27075 | return resultobj; | |
27076 | fail: | |
27077 | return NULL; | |
d14a1e28 RD |
27078 | } |
27079 | ||
27080 | ||
0085ce49 RD |
27081 | SWIGINTERN PyObject *_wrap_Printer_GetLastError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27082 | PyObject *resultobj = 0; | |
27083 | wxPrinterError result; | |
27084 | ||
27085 | if (!SWIG_Python_UnpackTuple(args,"Printer_GetLastError",0,0,0)) SWIG_fail; | |
27086 | { | |
27087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27088 | result = (wxPrinterError)wxPrinter::GetLastError(); | |
27089 | wxPyEndAllowThreads(__tstate); | |
27090 | if (PyErr_Occurred()) SWIG_fail; | |
27091 | } | |
27092 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27093 | return resultobj; | |
27094 | fail: | |
27095 | return NULL; | |
d14a1e28 RD |
27096 | } |
27097 | ||
27098 | ||
0085ce49 RD |
27099 | SWIGINTERN PyObject *Printer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27100 | PyObject *obj; | |
27101 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27102 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinter, SWIG_NewClientData(obj)); | |
27103 | return SWIG_Py_Void(); | |
d14a1e28 RD |
27104 | } |
27105 | ||
0085ce49 RD |
27106 | SWIGINTERN PyObject *Printer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27107 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
27108 | } |
27109 | ||
0085ce49 RD |
27110 | SWIGINTERN PyObject *_wrap_new_Printout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27111 | PyObject *resultobj = 0; | |
27112 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
27113 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
27114 | wxPyPrintout *result = 0 ; | |
27115 | bool temp1 = false ; | |
27116 | PyObject * obj0 = 0 ; | |
27117 | char * kwnames[] = { | |
27118 | (char *) "title", NULL | |
27119 | }; | |
27120 | ||
27121 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) SWIG_fail; | |
27122 | if (obj0) { | |
d14a1e28 | 27123 | { |
0085ce49 RD |
27124 | arg1 = wxString_in_helper(obj0); |
27125 | if (arg1 == NULL) SWIG_fail; | |
27126 | temp1 = true; | |
27127 | } | |
27128 | } | |
27129 | { | |
27130 | if (!wxPyCheckForApp()) SWIG_fail; | |
27131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27132 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
27133 | wxPyEndAllowThreads(__tstate); | |
27134 | if (PyErr_Occurred()) SWIG_fail; | |
27135 | } | |
27136 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_NEW | 0 ); | |
27137 | { | |
27138 | if (temp1) | |
27139 | delete arg1; | |
27140 | } | |
27141 | return resultobj; | |
27142 | fail: | |
27143 | { | |
27144 | if (temp1) | |
27145 | delete arg1; | |
27146 | } | |
27147 | return NULL; | |
d14a1e28 RD |
27148 | } |
27149 | ||
27150 | ||
0085ce49 RD |
27151 | SWIGINTERN PyObject *_wrap_delete_Printout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27152 | PyObject *resultobj = 0; | |
27153 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27154 | void *argp1 = 0 ; | |
27155 | int res1 = 0 ; | |
27156 | PyObject *swig_obj[1] ; | |
27157 | ||
27158 | if (!args) SWIG_fail; | |
27159 | swig_obj[0] = args; | |
27160 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
27161 | if (!SWIG_IsOK(res1)) { | |
27162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Printout" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27163 | } | |
27164 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27165 | { | |
27166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27167 | delete arg1; | |
d14a1e28 | 27168 | |
0085ce49 RD |
27169 | wxPyEndAllowThreads(__tstate); |
27170 | if (PyErr_Occurred()) SWIG_fail; | |
27171 | } | |
27172 | resultobj = SWIG_Py_Void(); | |
27173 | return resultobj; | |
27174 | fail: | |
27175 | return NULL; | |
27176 | } | |
27177 | ||
27178 | ||
27179 | SWIGINTERN PyObject *_wrap_Printout__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27180 | PyObject *resultobj = 0; | |
27181 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27182 | PyObject *arg2 = (PyObject *) 0 ; | |
27183 | PyObject *arg3 = (PyObject *) 0 ; | |
27184 | void *argp1 = 0 ; | |
27185 | int res1 = 0 ; | |
27186 | PyObject * obj0 = 0 ; | |
27187 | PyObject * obj1 = 0 ; | |
27188 | PyObject * obj2 = 0 ; | |
27189 | char * kwnames[] = { | |
27190 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27191 | }; | |
27192 | ||
27193 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27194 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27195 | if (!SWIG_IsOK(res1)) { | |
27196 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27197 | } | |
27198 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27199 | arg2 = obj1; | |
27200 | arg3 = obj2; | |
27201 | { | |
27202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27203 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27204 | wxPyEndAllowThreads(__tstate); | |
27205 | if (PyErr_Occurred()) SWIG_fail; | |
27206 | } | |
27207 | resultobj = SWIG_Py_Void(); | |
27208 | return resultobj; | |
27209 | fail: | |
27210 | return NULL; | |
d14a1e28 RD |
27211 | } |
27212 | ||
27213 | ||
0085ce49 RD |
27214 | SWIGINTERN PyObject *_wrap_Printout_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27215 | PyObject *resultobj = 0; | |
27216 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27217 | wxString result; | |
27218 | void *argp1 = 0 ; | |
27219 | int res1 = 0 ; | |
27220 | PyObject *swig_obj[1] ; | |
27221 | ||
27222 | if (!args) SWIG_fail; | |
27223 | swig_obj[0] = args; | |
27224 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27225 | if (!SWIG_IsOK(res1)) { | |
27226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetTitle" "', expected argument " "1"" of type '" "wxPyPrintout const *""'"); | |
27227 | } | |
27228 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27229 | { | |
27230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27231 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
27232 | wxPyEndAllowThreads(__tstate); | |
27233 | if (PyErr_Occurred()) SWIG_fail; | |
27234 | } | |
27235 | { | |
27236 | #if wxUSE_UNICODE | |
27237 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27238 | #else | |
27239 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27240 | #endif | |
27241 | } | |
27242 | return resultobj; | |
27243 | fail: | |
27244 | return NULL; | |
d14a1e28 RD |
27245 | } |
27246 | ||
27247 | ||
0085ce49 RD |
27248 | SWIGINTERN PyObject *_wrap_Printout_GetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27249 | PyObject *resultobj = 0; | |
27250 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27251 | wxDC *result = 0 ; | |
27252 | void *argp1 = 0 ; | |
27253 | int res1 = 0 ; | |
27254 | PyObject *swig_obj[1] ; | |
27255 | ||
27256 | if (!args) SWIG_fail; | |
27257 | swig_obj[0] = args; | |
27258 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27259 | if (!SWIG_IsOK(res1)) { | |
27260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetDC" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27261 | } | |
27262 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27263 | { | |
27264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27265 | result = (wxDC *)(arg1)->GetDC(); | |
27266 | wxPyEndAllowThreads(__tstate); | |
27267 | if (PyErr_Occurred()) SWIG_fail; | |
27268 | } | |
27269 | { | |
27270 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
27271 | } | |
27272 | return resultobj; | |
27273 | fail: | |
27274 | return NULL; | |
27275 | } | |
27276 | ||
27277 | ||
27278 | SWIGINTERN PyObject *_wrap_Printout_SetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27279 | PyObject *resultobj = 0; | |
27280 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27281 | wxDC *arg2 = (wxDC *) 0 ; | |
27282 | void *argp1 = 0 ; | |
27283 | int res1 = 0 ; | |
27284 | void *argp2 = 0 ; | |
27285 | int res2 = 0 ; | |
27286 | PyObject * obj0 = 0 ; | |
27287 | PyObject * obj1 = 0 ; | |
27288 | char * kwnames[] = { | |
27289 | (char *) "self",(char *) "dc", NULL | |
27290 | }; | |
27291 | ||
27292 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
27293 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27294 | if (!SWIG_IsOK(res1)) { | |
27295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetDC" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27296 | } | |
27297 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27298 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
27299 | if (!SWIG_IsOK(res2)) { | |
27300 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printout_SetDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
27301 | } | |
27302 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
27303 | { | |
27304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27305 | (arg1)->SetDC(arg2); | |
27306 | wxPyEndAllowThreads(__tstate); | |
27307 | if (PyErr_Occurred()) SWIG_fail; | |
27308 | } | |
27309 | resultobj = SWIG_Py_Void(); | |
27310 | return resultobj; | |
27311 | fail: | |
27312 | return NULL; | |
27313 | } | |
27314 | ||
27315 | ||
27316 | SWIGINTERN PyObject *_wrap_Printout_SetPageSizePixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27317 | PyObject *resultobj = 0; | |
27318 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27319 | int arg2 ; | |
27320 | int arg3 ; | |
27321 | void *argp1 = 0 ; | |
27322 | int res1 = 0 ; | |
27323 | int val2 ; | |
27324 | int ecode2 = 0 ; | |
27325 | int val3 ; | |
27326 | int ecode3 = 0 ; | |
27327 | PyObject * obj0 = 0 ; | |
27328 | PyObject * obj1 = 0 ; | |
27329 | PyObject * obj2 = 0 ; | |
27330 | char * kwnames[] = { | |
27331 | (char *) "self",(char *) "w",(char *) "h", NULL | |
27332 | }; | |
27333 | ||
27334 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27335 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27336 | if (!SWIG_IsOK(res1)) { | |
27337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPageSizePixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27338 | } | |
27339 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27340 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27341 | if (!SWIG_IsOK(ecode2)) { | |
27342 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPageSizePixels" "', expected argument " "2"" of type '" "int""'"); | |
27343 | } | |
27344 | arg2 = static_cast< int >(val2); | |
27345 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27346 | if (!SWIG_IsOK(ecode3)) { | |
27347 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPageSizePixels" "', expected argument " "3"" of type '" "int""'"); | |
27348 | } | |
27349 | arg3 = static_cast< int >(val3); | |
27350 | { | |
27351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27352 | (arg1)->SetPageSizePixels(arg2,arg3); | |
27353 | wxPyEndAllowThreads(__tstate); | |
27354 | if (PyErr_Occurred()) SWIG_fail; | |
27355 | } | |
27356 | resultobj = SWIG_Py_Void(); | |
27357 | return resultobj; | |
27358 | fail: | |
27359 | return NULL; | |
27360 | } | |
27361 | ||
27362 | ||
27363 | SWIGINTERN PyObject *_wrap_Printout_GetPageSizePixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27364 | PyObject *resultobj = 0; | |
27365 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27366 | int *arg2 = (int *) 0 ; | |
27367 | int *arg3 = (int *) 0 ; | |
27368 | void *argp1 = 0 ; | |
27369 | int res1 = 0 ; | |
27370 | int temp2 ; | |
27371 | int res2 = SWIG_TMPOBJ ; | |
27372 | int temp3 ; | |
27373 | int res3 = SWIG_TMPOBJ ; | |
27374 | PyObject *swig_obj[1] ; | |
27375 | ||
27376 | arg2 = &temp2; | |
27377 | arg3 = &temp3; | |
27378 | if (!args) SWIG_fail; | |
27379 | swig_obj[0] = args; | |
27380 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27381 | if (!SWIG_IsOK(res1)) { | |
27382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageSizePixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27383 | } | |
27384 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27385 | { | |
27386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27387 | (arg1)->GetPageSizePixels(arg2,arg3); | |
27388 | wxPyEndAllowThreads(__tstate); | |
27389 | if (PyErr_Occurred()) SWIG_fail; | |
27390 | } | |
27391 | resultobj = SWIG_Py_Void(); | |
27392 | if (SWIG_IsTmpObj(res2)) { | |
27393 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
27394 | } else { | |
27395 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27396 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
27397 | } | |
27398 | if (SWIG_IsTmpObj(res3)) { | |
27399 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
27400 | } else { | |
27401 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27402 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
27403 | } | |
27404 | return resultobj; | |
27405 | fail: | |
27406 | return NULL; | |
27407 | } | |
27408 | ||
27409 | ||
27410 | SWIGINTERN PyObject *_wrap_Printout_SetPageSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27411 | PyObject *resultobj = 0; | |
27412 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27413 | int arg2 ; | |
27414 | int arg3 ; | |
27415 | void *argp1 = 0 ; | |
27416 | int res1 = 0 ; | |
27417 | int val2 ; | |
27418 | int ecode2 = 0 ; | |
27419 | int val3 ; | |
27420 | int ecode3 = 0 ; | |
27421 | PyObject * obj0 = 0 ; | |
27422 | PyObject * obj1 = 0 ; | |
27423 | PyObject * obj2 = 0 ; | |
27424 | char * kwnames[] = { | |
27425 | (char *) "self",(char *) "w",(char *) "h", NULL | |
27426 | }; | |
27427 | ||
27428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27430 | if (!SWIG_IsOK(res1)) { | |
27431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPageSizeMM" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27432 | } | |
27433 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27434 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27435 | if (!SWIG_IsOK(ecode2)) { | |
27436 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPageSizeMM" "', expected argument " "2"" of type '" "int""'"); | |
27437 | } | |
27438 | arg2 = static_cast< int >(val2); | |
27439 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27440 | if (!SWIG_IsOK(ecode3)) { | |
27441 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPageSizeMM" "', expected argument " "3"" of type '" "int""'"); | |
27442 | } | |
27443 | arg3 = static_cast< int >(val3); | |
27444 | { | |
27445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27446 | (arg1)->SetPageSizeMM(arg2,arg3); | |
27447 | wxPyEndAllowThreads(__tstate); | |
27448 | if (PyErr_Occurred()) SWIG_fail; | |
27449 | } | |
27450 | resultobj = SWIG_Py_Void(); | |
27451 | return resultobj; | |
27452 | fail: | |
27453 | return NULL; | |
27454 | } | |
27455 | ||
27456 | ||
27457 | SWIGINTERN PyObject *_wrap_Printout_GetPageSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27458 | PyObject *resultobj = 0; | |
27459 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27460 | int *arg2 = (int *) 0 ; | |
27461 | int *arg3 = (int *) 0 ; | |
27462 | void *argp1 = 0 ; | |
27463 | int res1 = 0 ; | |
27464 | int temp2 ; | |
27465 | int res2 = SWIG_TMPOBJ ; | |
27466 | int temp3 ; | |
27467 | int res3 = SWIG_TMPOBJ ; | |
27468 | PyObject *swig_obj[1] ; | |
27469 | ||
27470 | arg2 = &temp2; | |
27471 | arg3 = &temp3; | |
27472 | if (!args) SWIG_fail; | |
27473 | swig_obj[0] = args; | |
27474 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27475 | if (!SWIG_IsOK(res1)) { | |
27476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageSizeMM" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27477 | } | |
27478 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27479 | { | |
27480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27481 | (arg1)->GetPageSizeMM(arg2,arg3); | |
27482 | wxPyEndAllowThreads(__tstate); | |
27483 | if (PyErr_Occurred()) SWIG_fail; | |
27484 | } | |
27485 | resultobj = SWIG_Py_Void(); | |
27486 | if (SWIG_IsTmpObj(res2)) { | |
27487 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
27488 | } else { | |
27489 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27490 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
27491 | } | |
27492 | if (SWIG_IsTmpObj(res3)) { | |
27493 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
27494 | } else { | |
27495 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27496 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
27497 | } | |
27498 | return resultobj; | |
27499 | fail: | |
27500 | return NULL; | |
27501 | } | |
27502 | ||
27503 | ||
27504 | SWIGINTERN PyObject *_wrap_Printout_SetPPIScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27505 | PyObject *resultobj = 0; | |
27506 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27507 | int arg2 ; | |
27508 | int arg3 ; | |
27509 | void *argp1 = 0 ; | |
27510 | int res1 = 0 ; | |
27511 | int val2 ; | |
27512 | int ecode2 = 0 ; | |
27513 | int val3 ; | |
27514 | int ecode3 = 0 ; | |
27515 | PyObject * obj0 = 0 ; | |
27516 | PyObject * obj1 = 0 ; | |
27517 | PyObject * obj2 = 0 ; | |
27518 | char * kwnames[] = { | |
27519 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27520 | }; | |
27521 | ||
27522 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27523 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27524 | if (!SWIG_IsOK(res1)) { | |
27525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPPIScreen" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27526 | } | |
27527 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27528 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27529 | if (!SWIG_IsOK(ecode2)) { | |
27530 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPPIScreen" "', expected argument " "2"" of type '" "int""'"); | |
27531 | } | |
27532 | arg2 = static_cast< int >(val2); | |
27533 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27534 | if (!SWIG_IsOK(ecode3)) { | |
27535 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPPIScreen" "', expected argument " "3"" of type '" "int""'"); | |
27536 | } | |
27537 | arg3 = static_cast< int >(val3); | |
27538 | { | |
27539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27540 | (arg1)->SetPPIScreen(arg2,arg3); | |
27541 | wxPyEndAllowThreads(__tstate); | |
27542 | if (PyErr_Occurred()) SWIG_fail; | |
27543 | } | |
27544 | resultobj = SWIG_Py_Void(); | |
27545 | return resultobj; | |
27546 | fail: | |
27547 | return NULL; | |
27548 | } | |
27549 | ||
27550 | ||
27551 | SWIGINTERN PyObject *_wrap_Printout_GetPPIScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27552 | PyObject *resultobj = 0; | |
27553 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27554 | int *arg2 = (int *) 0 ; | |
27555 | int *arg3 = (int *) 0 ; | |
27556 | void *argp1 = 0 ; | |
27557 | int res1 = 0 ; | |
27558 | int temp2 ; | |
27559 | int res2 = SWIG_TMPOBJ ; | |
27560 | int temp3 ; | |
27561 | int res3 = SWIG_TMPOBJ ; | |
27562 | PyObject *swig_obj[1] ; | |
27563 | ||
27564 | arg2 = &temp2; | |
27565 | arg3 = &temp3; | |
27566 | if (!args) SWIG_fail; | |
27567 | swig_obj[0] = args; | |
27568 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27569 | if (!SWIG_IsOK(res1)) { | |
27570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPPIScreen" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27571 | } | |
27572 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27573 | { | |
27574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27575 | (arg1)->GetPPIScreen(arg2,arg3); | |
27576 | wxPyEndAllowThreads(__tstate); | |
27577 | if (PyErr_Occurred()) SWIG_fail; | |
27578 | } | |
27579 | resultobj = SWIG_Py_Void(); | |
27580 | if (SWIG_IsTmpObj(res2)) { | |
27581 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
27582 | } else { | |
27583 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27584 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
27585 | } | |
27586 | if (SWIG_IsTmpObj(res3)) { | |
27587 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
27588 | } else { | |
27589 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27590 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
27591 | } | |
27592 | return resultobj; | |
27593 | fail: | |
27594 | return NULL; | |
27595 | } | |
27596 | ||
27597 | ||
27598 | SWIGINTERN PyObject *_wrap_Printout_SetPPIPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27599 | PyObject *resultobj = 0; | |
27600 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27601 | int arg2 ; | |
27602 | int arg3 ; | |
27603 | void *argp1 = 0 ; | |
27604 | int res1 = 0 ; | |
27605 | int val2 ; | |
27606 | int ecode2 = 0 ; | |
27607 | int val3 ; | |
27608 | int ecode3 = 0 ; | |
27609 | PyObject * obj0 = 0 ; | |
27610 | PyObject * obj1 = 0 ; | |
27611 | PyObject * obj2 = 0 ; | |
27612 | char * kwnames[] = { | |
27613 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27614 | }; | |
27615 | ||
27616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27618 | if (!SWIG_IsOK(res1)) { | |
27619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPPIPrinter" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27620 | } | |
27621 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27622 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27623 | if (!SWIG_IsOK(ecode2)) { | |
27624 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPPIPrinter" "', expected argument " "2"" of type '" "int""'"); | |
27625 | } | |
27626 | arg2 = static_cast< int >(val2); | |
27627 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27628 | if (!SWIG_IsOK(ecode3)) { | |
27629 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPPIPrinter" "', expected argument " "3"" of type '" "int""'"); | |
27630 | } | |
27631 | arg3 = static_cast< int >(val3); | |
27632 | { | |
27633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27634 | (arg1)->SetPPIPrinter(arg2,arg3); | |
27635 | wxPyEndAllowThreads(__tstate); | |
27636 | if (PyErr_Occurred()) SWIG_fail; | |
27637 | } | |
27638 | resultobj = SWIG_Py_Void(); | |
27639 | return resultobj; | |
27640 | fail: | |
27641 | return NULL; | |
27642 | } | |
27643 | ||
27644 | ||
27645 | SWIGINTERN PyObject *_wrap_Printout_GetPPIPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27646 | PyObject *resultobj = 0; | |
27647 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27648 | int *arg2 = (int *) 0 ; | |
27649 | int *arg3 = (int *) 0 ; | |
27650 | void *argp1 = 0 ; | |
27651 | int res1 = 0 ; | |
27652 | int temp2 ; | |
27653 | int res2 = SWIG_TMPOBJ ; | |
27654 | int temp3 ; | |
27655 | int res3 = SWIG_TMPOBJ ; | |
27656 | PyObject *swig_obj[1] ; | |
27657 | ||
27658 | arg2 = &temp2; | |
27659 | arg3 = &temp3; | |
27660 | if (!args) SWIG_fail; | |
27661 | swig_obj[0] = args; | |
27662 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27663 | if (!SWIG_IsOK(res1)) { | |
27664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPPIPrinter" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27665 | } | |
27666 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27667 | { | |
27668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27669 | (arg1)->GetPPIPrinter(arg2,arg3); | |
27670 | wxPyEndAllowThreads(__tstate); | |
27671 | if (PyErr_Occurred()) SWIG_fail; | |
27672 | } | |
27673 | resultobj = SWIG_Py_Void(); | |
27674 | if (SWIG_IsTmpObj(res2)) { | |
27675 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
27676 | } else { | |
27677 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27678 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
27679 | } | |
27680 | if (SWIG_IsTmpObj(res3)) { | |
27681 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
27682 | } else { | |
27683 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27684 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
27685 | } | |
27686 | return resultobj; | |
27687 | fail: | |
27688 | return NULL; | |
d14a1e28 RD |
27689 | } |
27690 | ||
27691 | ||
0085ce49 RD |
27692 | SWIGINTERN PyObject *_wrap_Printout_IsPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27693 | PyObject *resultobj = 0; | |
27694 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27695 | bool result; | |
27696 | void *argp1 = 0 ; | |
27697 | int res1 = 0 ; | |
27698 | PyObject *swig_obj[1] ; | |
27699 | ||
27700 | if (!args) SWIG_fail; | |
27701 | swig_obj[0] = args; | |
27702 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27703 | if (!SWIG_IsOK(res1)) { | |
27704 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_IsPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27705 | } | |
27706 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27707 | { | |
27708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27709 | result = (bool)(arg1)->IsPreview(); | |
27710 | wxPyEndAllowThreads(__tstate); | |
27711 | if (PyErr_Occurred()) SWIG_fail; | |
27712 | } | |
27713 | { | |
27714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27715 | } | |
27716 | return resultobj; | |
27717 | fail: | |
27718 | return NULL; | |
27719 | } | |
27720 | ||
27721 | ||
27722 | SWIGINTERN PyObject *_wrap_Printout_SetIsPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27723 | PyObject *resultobj = 0; | |
27724 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27725 | bool arg2 ; | |
27726 | void *argp1 = 0 ; | |
27727 | int res1 = 0 ; | |
27728 | bool val2 ; | |
27729 | int ecode2 = 0 ; | |
27730 | PyObject * obj0 = 0 ; | |
27731 | PyObject * obj1 = 0 ; | |
27732 | char * kwnames[] = { | |
27733 | (char *) "self",(char *) "p", NULL | |
27734 | }; | |
27735 | ||
27736 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) SWIG_fail; | |
27737 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27738 | if (!SWIG_IsOK(res1)) { | |
27739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetIsPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27740 | } | |
27741 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27742 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
27743 | if (!SWIG_IsOK(ecode2)) { | |
27744 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetIsPreview" "', expected argument " "2"" of type '" "bool""'"); | |
27745 | } | |
27746 | arg2 = static_cast< bool >(val2); | |
27747 | { | |
27748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27749 | (arg1)->SetIsPreview(arg2); | |
27750 | wxPyEndAllowThreads(__tstate); | |
27751 | if (PyErr_Occurred()) SWIG_fail; | |
27752 | } | |
27753 | resultobj = SWIG_Py_Void(); | |
27754 | return resultobj; | |
27755 | fail: | |
27756 | return NULL; | |
27757 | } | |
27758 | ||
27759 | ||
27760 | SWIGINTERN PyObject *_wrap_Printout_OnBeginDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27761 | PyObject *resultobj = 0; | |
27762 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27763 | int arg2 ; | |
27764 | int arg3 ; | |
27765 | bool result; | |
27766 | void *argp1 = 0 ; | |
27767 | int res1 = 0 ; | |
27768 | int val2 ; | |
27769 | int ecode2 = 0 ; | |
27770 | int val3 ; | |
27771 | int ecode3 = 0 ; | |
27772 | PyObject * obj0 = 0 ; | |
27773 | PyObject * obj1 = 0 ; | |
27774 | PyObject * obj2 = 0 ; | |
27775 | char * kwnames[] = { | |
27776 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
27777 | }; | |
27778 | ||
27779 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27780 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27781 | if (!SWIG_IsOK(res1)) { | |
27782 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnBeginDocument" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27783 | } | |
27784 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27785 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27786 | if (!SWIG_IsOK(ecode2)) { | |
27787 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_OnBeginDocument" "', expected argument " "2"" of type '" "int""'"); | |
27788 | } | |
27789 | arg2 = static_cast< int >(val2); | |
27790 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27791 | if (!SWIG_IsOK(ecode3)) { | |
27792 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_OnBeginDocument" "', expected argument " "3"" of type '" "int""'"); | |
27793 | } | |
27794 | arg3 = static_cast< int >(val3); | |
27795 | { | |
27796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27797 | result = (bool)(arg1)->OnBeginDocument(arg2,arg3); | |
27798 | wxPyEndAllowThreads(__tstate); | |
27799 | if (PyErr_Occurred()) SWIG_fail; | |
27800 | } | |
27801 | { | |
27802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27803 | } | |
27804 | return resultobj; | |
27805 | fail: | |
27806 | return NULL; | |
d14a1e28 RD |
27807 | } |
27808 | ||
27809 | ||
0085ce49 RD |
27810 | SWIGINTERN PyObject *_wrap_Printout_OnEndDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27811 | PyObject *resultobj = 0; | |
27812 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27813 | void *argp1 = 0 ; | |
27814 | int res1 = 0 ; | |
27815 | PyObject *swig_obj[1] ; | |
27816 | ||
27817 | if (!args) SWIG_fail; | |
27818 | swig_obj[0] = args; | |
27819 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27820 | if (!SWIG_IsOK(res1)) { | |
27821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnEndDocument" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27822 | } | |
27823 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27824 | { | |
27825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27826 | (arg1)->OnEndDocument(); | |
27827 | wxPyEndAllowThreads(__tstate); | |
27828 | if (PyErr_Occurred()) SWIG_fail; | |
27829 | } | |
27830 | resultobj = SWIG_Py_Void(); | |
27831 | return resultobj; | |
27832 | fail: | |
27833 | return NULL; | |
1cb4a8aa RD |
27834 | } |
27835 | ||
27836 | ||
0085ce49 RD |
27837 | SWIGINTERN PyObject *_wrap_Printout_OnBeginPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27838 | PyObject *resultobj = 0; | |
27839 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27840 | void *argp1 = 0 ; | |
27841 | int res1 = 0 ; | |
27842 | PyObject *swig_obj[1] ; | |
27843 | ||
27844 | if (!args) SWIG_fail; | |
27845 | swig_obj[0] = args; | |
27846 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27847 | if (!SWIG_IsOK(res1)) { | |
27848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnBeginPrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27849 | } | |
27850 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27851 | { | |
27852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27853 | (arg1)->OnBeginPrinting(); | |
27854 | wxPyEndAllowThreads(__tstate); | |
27855 | if (PyErr_Occurred()) SWIG_fail; | |
27856 | } | |
27857 | resultobj = SWIG_Py_Void(); | |
27858 | return resultobj; | |
27859 | fail: | |
27860 | return NULL; | |
d14a1e28 RD |
27861 | } |
27862 | ||
27863 | ||
0085ce49 RD |
27864 | SWIGINTERN PyObject *_wrap_Printout_OnEndPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27865 | PyObject *resultobj = 0; | |
27866 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27867 | void *argp1 = 0 ; | |
27868 | int res1 = 0 ; | |
27869 | PyObject *swig_obj[1] ; | |
27870 | ||
27871 | if (!args) SWIG_fail; | |
27872 | swig_obj[0] = args; | |
27873 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27874 | if (!SWIG_IsOK(res1)) { | |
27875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnEndPrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27876 | } | |
27877 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27878 | { | |
27879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27880 | (arg1)->OnEndPrinting(); | |
27881 | wxPyEndAllowThreads(__tstate); | |
27882 | if (PyErr_Occurred()) SWIG_fail; | |
27883 | } | |
27884 | resultobj = SWIG_Py_Void(); | |
27885 | return resultobj; | |
27886 | fail: | |
27887 | return NULL; | |
db3e571a RD |
27888 | } |
27889 | ||
27890 | ||
0085ce49 RD |
27891 | SWIGINTERN PyObject *_wrap_Printout_OnPreparePrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27892 | PyObject *resultobj = 0; | |
27893 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27894 | void *argp1 = 0 ; | |
27895 | int res1 = 0 ; | |
27896 | PyObject *swig_obj[1] ; | |
27897 | ||
27898 | if (!args) SWIG_fail; | |
27899 | swig_obj[0] = args; | |
27900 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27901 | if (!SWIG_IsOK(res1)) { | |
27902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnPreparePrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27903 | } | |
27904 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27905 | { | |
27906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27907 | (arg1)->OnPreparePrinting(); | |
27908 | wxPyEndAllowThreads(__tstate); | |
27909 | if (PyErr_Occurred()) SWIG_fail; | |
27910 | } | |
27911 | resultobj = SWIG_Py_Void(); | |
27912 | return resultobj; | |
27913 | fail: | |
27914 | return NULL; | |
27915 | } | |
27916 | ||
27917 | ||
27918 | SWIGINTERN PyObject *_wrap_Printout_HasPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27919 | PyObject *resultobj = 0; | |
27920 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27921 | int arg2 ; | |
27922 | bool result; | |
27923 | void *argp1 = 0 ; | |
27924 | int res1 = 0 ; | |
27925 | int val2 ; | |
27926 | int ecode2 = 0 ; | |
27927 | PyObject * obj0 = 0 ; | |
27928 | PyObject * obj1 = 0 ; | |
27929 | char * kwnames[] = { | |
27930 | (char *) "self",(char *) "page", NULL | |
27931 | }; | |
27932 | ||
27933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_HasPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
27934 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27935 | if (!SWIG_IsOK(res1)) { | |
27936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_HasPage" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27937 | } | |
27938 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27939 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27940 | if (!SWIG_IsOK(ecode2)) { | |
27941 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_HasPage" "', expected argument " "2"" of type '" "int""'"); | |
27942 | } | |
27943 | arg2 = static_cast< int >(val2); | |
27944 | { | |
27945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27946 | result = (bool)(arg1)->HasPage(arg2); | |
27947 | wxPyEndAllowThreads(__tstate); | |
27948 | if (PyErr_Occurred()) SWIG_fail; | |
27949 | } | |
27950 | { | |
27951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27952 | } | |
27953 | return resultobj; | |
27954 | fail: | |
27955 | return NULL; | |
27956 | } | |
27957 | ||
27958 | ||
27959 | SWIGINTERN PyObject *_wrap_Printout_GetPageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27960 | PyObject *resultobj = 0; | |
27961 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27962 | int *arg2 = (int *) 0 ; | |
27963 | int *arg3 = (int *) 0 ; | |
27964 | int *arg4 = (int *) 0 ; | |
27965 | int *arg5 = (int *) 0 ; | |
27966 | void *argp1 = 0 ; | |
27967 | int res1 = 0 ; | |
27968 | int temp2 ; | |
27969 | int res2 = SWIG_TMPOBJ ; | |
27970 | int temp3 ; | |
27971 | int res3 = SWIG_TMPOBJ ; | |
27972 | int temp4 ; | |
27973 | int res4 = SWIG_TMPOBJ ; | |
27974 | int temp5 ; | |
27975 | int res5 = SWIG_TMPOBJ ; | |
27976 | PyObject *swig_obj[1] ; | |
27977 | ||
27978 | arg2 = &temp2; | |
27979 | arg3 = &temp3; | |
27980 | arg4 = &temp4; | |
27981 | arg5 = &temp5; | |
27982 | if (!args) SWIG_fail; | |
27983 | swig_obj[0] = args; | |
27984 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27985 | if (!SWIG_IsOK(res1)) { | |
27986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageInfo" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27987 | } | |
27988 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27989 | { | |
27990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27991 | (arg1)->GetPageInfo(arg2,arg3,arg4,arg5); | |
27992 | wxPyEndAllowThreads(__tstate); | |
27993 | if (PyErr_Occurred()) SWIG_fail; | |
27994 | } | |
27995 | resultobj = SWIG_Py_Void(); | |
27996 | if (SWIG_IsTmpObj(res2)) { | |
27997 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
27998 | } else { | |
27999 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28000 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28001 | } | |
28002 | if (SWIG_IsTmpObj(res3)) { | |
28003 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28004 | } else { | |
28005 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28006 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28007 | } | |
28008 | if (SWIG_IsTmpObj(res4)) { | |
28009 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
28010 | } else { | |
28011 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28012 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
28013 | } | |
28014 | if (SWIG_IsTmpObj(res5)) { | |
28015 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
28016 | } else { | |
28017 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28018 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
28019 | } | |
28020 | return resultobj; | |
28021 | fail: | |
28022 | return NULL; | |
28023 | } | |
28024 | ||
28025 | ||
28026 | SWIGINTERN PyObject *Printout_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28027 | PyObject *obj; | |
28028 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28029 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPrintout, SWIG_NewClientData(obj)); | |
28030 | return SWIG_Py_Void(); | |
28031 | } | |
28032 | ||
28033 | SWIGINTERN PyObject *Printout_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28034 | return SWIG_Python_InitShadowInstance(args); | |
28035 | } | |
28036 | ||
28037 | SWIGINTERN PyObject *_wrap_new_PreviewCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28038 | PyObject *resultobj = 0; | |
28039 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28040 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28041 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28042 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28043 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28044 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28045 | long arg5 = (long) 0 ; | |
28046 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
28047 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
28048 | wxPreviewCanvas *result = 0 ; | |
28049 | void *argp1 = 0 ; | |
28050 | int res1 = 0 ; | |
28051 | void *argp2 = 0 ; | |
28052 | int res2 = 0 ; | |
28053 | wxPoint temp3 ; | |
28054 | wxSize temp4 ; | |
28055 | long val5 ; | |
28056 | int ecode5 = 0 ; | |
28057 | bool temp6 = false ; | |
28058 | PyObject * obj0 = 0 ; | |
28059 | PyObject * obj1 = 0 ; | |
28060 | PyObject * obj2 = 0 ; | |
28061 | PyObject * obj3 = 0 ; | |
28062 | PyObject * obj4 = 0 ; | |
28063 | PyObject * obj5 = 0 ; | |
28064 | char * kwnames[] = { | |
28065 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
28066 | }; | |
28067 | ||
28068 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
28069 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28070 | if (!SWIG_IsOK(res1)) { | |
28071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28072 | } | |
28073 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28074 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28075 | if (!SWIG_IsOK(res2)) { | |
28076 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PreviewCanvas" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
28077 | } | |
28078 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
28079 | if (obj2) { | |
093d3ff1 | 28080 | { |
0085ce49 RD |
28081 | arg3 = &temp3; |
28082 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 28083 | } |
0085ce49 RD |
28084 | } |
28085 | if (obj3) { | |
093d3ff1 | 28086 | { |
0085ce49 RD |
28087 | arg4 = &temp4; |
28088 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
994141e6 | 28089 | } |
0085ce49 RD |
28090 | } |
28091 | if (obj4) { | |
28092 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
28093 | if (!SWIG_IsOK(ecode5)) { | |
28094 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PreviewCanvas" "', expected argument " "5"" of type '" "long""'"); | |
28095 | } | |
28096 | arg5 = static_cast< long >(val5); | |
28097 | } | |
28098 | if (obj5) { | |
d14a1e28 | 28099 | { |
0085ce49 RD |
28100 | arg6 = wxString_in_helper(obj5); |
28101 | if (arg6 == NULL) SWIG_fail; | |
28102 | temp6 = true; | |
093d3ff1 | 28103 | } |
0085ce49 RD |
28104 | } |
28105 | { | |
28106 | if (!wxPyCheckForApp()) SWIG_fail; | |
28107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28108 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
28109 | wxPyEndAllowThreads(__tstate); | |
28110 | if (PyErr_Occurred()) SWIG_fail; | |
28111 | } | |
28112 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewCanvas, SWIG_POINTER_NEW | 0 ); | |
28113 | { | |
28114 | if (temp6) | |
28115 | delete arg6; | |
28116 | } | |
28117 | return resultobj; | |
28118 | fail: | |
28119 | { | |
28120 | if (temp6) | |
28121 | delete arg6; | |
28122 | } | |
28123 | return NULL; | |
28124 | } | |
28125 | ||
28126 | ||
28127 | SWIGINTERN PyObject *PreviewCanvas_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28128 | PyObject *obj; | |
28129 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28130 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewCanvas, SWIG_NewClientData(obj)); | |
28131 | return SWIG_Py_Void(); | |
28132 | } | |
28133 | ||
28134 | SWIGINTERN PyObject *PreviewCanvas_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28135 | return SWIG_Python_InitShadowInstance(args); | |
28136 | } | |
28137 | ||
28138 | SWIGINTERN PyObject *_wrap_new_PreviewFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28139 | PyObject *resultobj = 0; | |
28140 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28141 | wxFrame *arg2 = (wxFrame *) 0 ; | |
28142 | wxString *arg3 = 0 ; | |
28143 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28144 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28145 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28146 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28147 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
28148 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
28149 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28150 | wxPreviewFrame *result = 0 ; | |
28151 | int res1 = 0 ; | |
28152 | void *argp2 = 0 ; | |
28153 | int res2 = 0 ; | |
28154 | bool temp3 = false ; | |
28155 | wxPoint temp4 ; | |
28156 | wxSize temp5 ; | |
28157 | long val6 ; | |
28158 | int ecode6 = 0 ; | |
28159 | bool temp7 = false ; | |
28160 | PyObject * obj0 = 0 ; | |
28161 | PyObject * obj1 = 0 ; | |
28162 | PyObject * obj2 = 0 ; | |
28163 | PyObject * obj3 = 0 ; | |
28164 | PyObject * obj4 = 0 ; | |
28165 | PyObject * obj5 = 0 ; | |
28166 | PyObject * obj6 = 0 ; | |
28167 | char * kwnames[] = { | |
28168 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
28169 | }; | |
28170 | ||
28171 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28172 | res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); | |
28173 | if (!SWIG_IsOK(res1)) { | |
28174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28175 | } | |
28176 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
28177 | if (!SWIG_IsOK(res2)) { | |
28178 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PreviewFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
28179 | } | |
28180 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
28181 | { | |
28182 | arg3 = wxString_in_helper(obj2); | |
28183 | if (arg3 == NULL) SWIG_fail; | |
28184 | temp3 = true; | |
28185 | } | |
28186 | if (obj3) { | |
093d3ff1 | 28187 | { |
0085ce49 RD |
28188 | arg4 = &temp4; |
28189 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 28190 | } |
0085ce49 RD |
28191 | } |
28192 | if (obj4) { | |
d14a1e28 | 28193 | { |
0085ce49 RD |
28194 | arg5 = &temp5; |
28195 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 28196 | } |
0085ce49 RD |
28197 | } |
28198 | if (obj5) { | |
28199 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
28200 | if (!SWIG_IsOK(ecode6)) { | |
28201 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PreviewFrame" "', expected argument " "6"" of type '" "long""'"); | |
28202 | } | |
28203 | arg6 = static_cast< long >(val6); | |
28204 | } | |
28205 | if (obj6) { | |
093d3ff1 | 28206 | { |
0085ce49 RD |
28207 | arg7 = wxString_in_helper(obj6); |
28208 | if (arg7 == NULL) SWIG_fail; | |
28209 | temp7 = true; | |
093d3ff1 | 28210 | } |
0085ce49 RD |
28211 | } |
28212 | { | |
28213 | if (!wxPyCheckForApp()) SWIG_fail; | |
28214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28215 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
28216 | wxPyEndAllowThreads(__tstate); | |
28217 | if (PyErr_Occurred()) SWIG_fail; | |
28218 | } | |
28219 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewFrame, SWIG_POINTER_NEW | 0 ); | |
28220 | { | |
28221 | if (temp3) | |
28222 | delete arg3; | |
28223 | } | |
28224 | { | |
28225 | if (temp7) | |
28226 | delete arg7; | |
28227 | } | |
28228 | return resultobj; | |
28229 | fail: | |
28230 | { | |
28231 | if (temp3) | |
28232 | delete arg3; | |
28233 | } | |
28234 | { | |
28235 | if (temp7) | |
28236 | delete arg7; | |
28237 | } | |
28238 | return NULL; | |
d14a1e28 RD |
28239 | } |
28240 | ||
28241 | ||
0085ce49 RD |
28242 | SWIGINTERN PyObject *_wrap_PreviewFrame_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28243 | PyObject *resultobj = 0; | |
28244 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28245 | void *argp1 = 0 ; | |
28246 | int res1 = 0 ; | |
28247 | PyObject *swig_obj[1] ; | |
28248 | ||
28249 | if (!args) SWIG_fail; | |
28250 | swig_obj[0] = args; | |
28251 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28252 | if (!SWIG_IsOK(res1)) { | |
28253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_Initialize" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
28254 | } | |
28255 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28256 | { | |
28257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28258 | (arg1)->Initialize(); | |
28259 | wxPyEndAllowThreads(__tstate); | |
28260 | if (PyErr_Occurred()) SWIG_fail; | |
28261 | } | |
28262 | resultobj = SWIG_Py_Void(); | |
28263 | return resultobj; | |
28264 | fail: | |
28265 | return NULL; | |
d14a1e28 RD |
28266 | } |
28267 | ||
28268 | ||
0085ce49 RD |
28269 | SWIGINTERN PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28270 | PyObject *resultobj = 0; | |
28271 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28272 | void *argp1 = 0 ; | |
28273 | int res1 = 0 ; | |
28274 | PyObject *swig_obj[1] ; | |
28275 | ||
28276 | if (!args) SWIG_fail; | |
28277 | swig_obj[0] = args; | |
28278 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28279 | if (!SWIG_IsOK(res1)) { | |
28280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_CreateControlBar" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
28281 | } | |
28282 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28283 | { | |
28284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28285 | (arg1)->CreateControlBar(); | |
28286 | wxPyEndAllowThreads(__tstate); | |
28287 | if (PyErr_Occurred()) SWIG_fail; | |
28288 | } | |
28289 | resultobj = SWIG_Py_Void(); | |
28290 | return resultobj; | |
28291 | fail: | |
28292 | return NULL; | |
d14a1e28 RD |
28293 | } |
28294 | ||
28295 | ||
0085ce49 RD |
28296 | SWIGINTERN PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28297 | PyObject *resultobj = 0; | |
28298 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28299 | void *argp1 = 0 ; | |
28300 | int res1 = 0 ; | |
28301 | PyObject *swig_obj[1] ; | |
28302 | ||
28303 | if (!args) SWIG_fail; | |
28304 | swig_obj[0] = args; | |
28305 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28306 | if (!SWIG_IsOK(res1)) { | |
28307 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_CreateCanvas" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
28308 | } | |
28309 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28310 | { | |
28311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28312 | (arg1)->CreateCanvas(); | |
28313 | wxPyEndAllowThreads(__tstate); | |
28314 | if (PyErr_Occurred()) SWIG_fail; | |
28315 | } | |
28316 | resultobj = SWIG_Py_Void(); | |
28317 | return resultobj; | |
28318 | fail: | |
28319 | return NULL; | |
d14a1e28 RD |
28320 | } |
28321 | ||
28322 | ||
0085ce49 RD |
28323 | SWIGINTERN PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28324 | PyObject *resultobj = 0; | |
28325 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28326 | wxPreviewControlBar *result = 0 ; | |
28327 | void *argp1 = 0 ; | |
28328 | int res1 = 0 ; | |
28329 | PyObject *swig_obj[1] ; | |
28330 | ||
28331 | if (!args) SWIG_fail; | |
28332 | swig_obj[0] = args; | |
28333 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28334 | if (!SWIG_IsOK(res1)) { | |
28335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_GetControlBar" "', expected argument " "1"" of type '" "wxPreviewFrame const *""'"); | |
28336 | } | |
28337 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28338 | { | |
28339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28340 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
28341 | wxPyEndAllowThreads(__tstate); | |
28342 | if (PyErr_Occurred()) SWIG_fail; | |
28343 | } | |
28344 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28345 | return resultobj; | |
28346 | fail: | |
28347 | return NULL; | |
28348 | } | |
28349 | ||
28350 | ||
28351 | SWIGINTERN PyObject *PreviewFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28352 | PyObject *obj; | |
28353 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28354 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewFrame, SWIG_NewClientData(obj)); | |
28355 | return SWIG_Py_Void(); | |
28356 | } | |
28357 | ||
28358 | SWIGINTERN PyObject *PreviewFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28359 | return SWIG_Python_InitShadowInstance(args); | |
28360 | } | |
28361 | ||
28362 | SWIGINTERN PyObject *_wrap_new_PreviewControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28363 | PyObject *resultobj = 0; | |
28364 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28365 | long arg2 ; | |
28366 | wxWindow *arg3 = (wxWindow *) 0 ; | |
28367 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28368 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28369 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28370 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28371 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
28372 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
28373 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28374 | wxPreviewControlBar *result = 0 ; | |
28375 | void *argp1 = 0 ; | |
28376 | int res1 = 0 ; | |
28377 | long val2 ; | |
28378 | int ecode2 = 0 ; | |
28379 | void *argp3 = 0 ; | |
28380 | int res3 = 0 ; | |
28381 | wxPoint temp4 ; | |
28382 | wxSize temp5 ; | |
28383 | long val6 ; | |
28384 | int ecode6 = 0 ; | |
28385 | bool temp7 = false ; | |
28386 | PyObject * obj0 = 0 ; | |
28387 | PyObject * obj1 = 0 ; | |
28388 | PyObject * obj2 = 0 ; | |
28389 | PyObject * obj3 = 0 ; | |
28390 | PyObject * obj4 = 0 ; | |
28391 | PyObject * obj5 = 0 ; | |
28392 | PyObject * obj6 = 0 ; | |
28393 | char * kwnames[] = { | |
28394 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
28395 | }; | |
28396 | ||
28397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28399 | if (!SWIG_IsOK(res1)) { | |
28400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewControlBar" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28401 | } | |
28402 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28403 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
28404 | if (!SWIG_IsOK(ecode2)) { | |
28405 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PreviewControlBar" "', expected argument " "2"" of type '" "long""'"); | |
28406 | } | |
28407 | arg2 = static_cast< long >(val2); | |
28408 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28409 | if (!SWIG_IsOK(res3)) { | |
28410 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PreviewControlBar" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
28411 | } | |
28412 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
28413 | if (obj3) { | |
d14a1e28 | 28414 | { |
0085ce49 RD |
28415 | arg4 = &temp4; |
28416 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 28417 | } |
0085ce49 RD |
28418 | } |
28419 | if (obj4) { | |
d14a1e28 | 28420 | { |
0085ce49 RD |
28421 | arg5 = &temp5; |
28422 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 28423 | } |
0085ce49 RD |
28424 | } |
28425 | if (obj5) { | |
28426 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
28427 | if (!SWIG_IsOK(ecode6)) { | |
28428 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PreviewControlBar" "', expected argument " "6"" of type '" "long""'"); | |
28429 | } | |
28430 | arg6 = static_cast< long >(val6); | |
28431 | } | |
28432 | if (obj6) { | |
d14a1e28 | 28433 | { |
0085ce49 RD |
28434 | arg7 = wxString_in_helper(obj6); |
28435 | if (arg7 == NULL) SWIG_fail; | |
28436 | temp7 = true; | |
d14a1e28 | 28437 | } |
0085ce49 RD |
28438 | } |
28439 | { | |
28440 | if (!wxPyCheckForApp()) SWIG_fail; | |
28441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28442 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
28443 | wxPyEndAllowThreads(__tstate); | |
28444 | if (PyErr_Occurred()) SWIG_fail; | |
28445 | } | |
28446 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewControlBar, SWIG_POINTER_NEW | 0 ); | |
28447 | { | |
28448 | if (temp7) | |
28449 | delete arg7; | |
28450 | } | |
28451 | return resultobj; | |
28452 | fail: | |
28453 | { | |
28454 | if (temp7) | |
28455 | delete arg7; | |
28456 | } | |
28457 | return NULL; | |
d14a1e28 RD |
28458 | } |
28459 | ||
28460 | ||
0085ce49 RD |
28461 | SWIGINTERN PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28462 | PyObject *resultobj = 0; | |
28463 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28464 | int result; | |
28465 | void *argp1 = 0 ; | |
28466 | int res1 = 0 ; | |
28467 | PyObject *swig_obj[1] ; | |
28468 | ||
28469 | if (!args) SWIG_fail; | |
28470 | swig_obj[0] = args; | |
28471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28472 | if (!SWIG_IsOK(res1)) { | |
28473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_GetZoomControl" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28474 | } | |
28475 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28476 | { | |
28477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28478 | result = (int)(arg1)->GetZoomControl(); | |
28479 | wxPyEndAllowThreads(__tstate); | |
28480 | if (PyErr_Occurred()) SWIG_fail; | |
28481 | } | |
28482 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28483 | return resultobj; | |
28484 | fail: | |
28485 | return NULL; | |
28486 | } | |
28487 | ||
28488 | ||
28489 | SWIGINTERN PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28490 | PyObject *resultobj = 0; | |
28491 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28492 | int arg2 ; | |
28493 | void *argp1 = 0 ; | |
28494 | int res1 = 0 ; | |
28495 | int val2 ; | |
28496 | int ecode2 = 0 ; | |
28497 | PyObject * obj0 = 0 ; | |
28498 | PyObject * obj1 = 0 ; | |
28499 | char * kwnames[] = { | |
28500 | (char *) "self",(char *) "zoom", NULL | |
28501 | }; | |
28502 | ||
28503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
28504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28505 | if (!SWIG_IsOK(res1)) { | |
28506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_SetZoomControl" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28507 | } | |
28508 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28509 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28510 | if (!SWIG_IsOK(ecode2)) { | |
28511 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PreviewControlBar_SetZoomControl" "', expected argument " "2"" of type '" "int""'"); | |
28512 | } | |
28513 | arg2 = static_cast< int >(val2); | |
28514 | { | |
28515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28516 | (arg1)->SetZoomControl(arg2); | |
28517 | wxPyEndAllowThreads(__tstate); | |
28518 | if (PyErr_Occurred()) SWIG_fail; | |
28519 | } | |
28520 | resultobj = SWIG_Py_Void(); | |
28521 | return resultobj; | |
28522 | fail: | |
28523 | return NULL; | |
d14a1e28 RD |
28524 | } |
28525 | ||
28526 | ||
0085ce49 RD |
28527 | SWIGINTERN PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28528 | PyObject *resultobj = 0; | |
28529 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28530 | wxPrintPreview *result = 0 ; | |
28531 | void *argp1 = 0 ; | |
28532 | int res1 = 0 ; | |
28533 | PyObject *swig_obj[1] ; | |
28534 | ||
28535 | if (!args) SWIG_fail; | |
28536 | swig_obj[0] = args; | |
28537 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28538 | if (!SWIG_IsOK(res1)) { | |
28539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_GetPrintPreview" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28540 | } | |
28541 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28542 | { | |
28543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28544 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
28545 | wxPyEndAllowThreads(__tstate); | |
28546 | if (PyErr_Occurred()) SWIG_fail; | |
28547 | } | |
28548 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28549 | return resultobj; | |
28550 | fail: | |
28551 | return NULL; | |
d14a1e28 RD |
28552 | } |
28553 | ||
28554 | ||
0085ce49 RD |
28555 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28556 | PyObject *resultobj = 0; | |
28557 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28558 | void *argp1 = 0 ; | |
28559 | int res1 = 0 ; | |
28560 | PyObject *swig_obj[1] ; | |
28561 | ||
28562 | if (!args) SWIG_fail; | |
28563 | swig_obj[0] = args; | |
28564 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28565 | if (!SWIG_IsOK(res1)) { | |
28566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnNext" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28567 | } | |
28568 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28569 | { | |
28570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28571 | (arg1)->OnNext(); | |
28572 | wxPyEndAllowThreads(__tstate); | |
28573 | if (PyErr_Occurred()) SWIG_fail; | |
28574 | } | |
28575 | resultobj = SWIG_Py_Void(); | |
28576 | return resultobj; | |
28577 | fail: | |
28578 | return NULL; | |
d14a1e28 RD |
28579 | } |
28580 | ||
28581 | ||
0085ce49 RD |
28582 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28583 | PyObject *resultobj = 0; | |
28584 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28585 | void *argp1 = 0 ; | |
28586 | int res1 = 0 ; | |
28587 | PyObject *swig_obj[1] ; | |
28588 | ||
28589 | if (!args) SWIG_fail; | |
28590 | swig_obj[0] = args; | |
28591 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28592 | if (!SWIG_IsOK(res1)) { | |
28593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnPrevious" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28594 | } | |
28595 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28596 | { | |
28597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28598 | (arg1)->OnPrevious(); | |
28599 | wxPyEndAllowThreads(__tstate); | |
28600 | if (PyErr_Occurred()) SWIG_fail; | |
28601 | } | |
28602 | resultobj = SWIG_Py_Void(); | |
28603 | return resultobj; | |
28604 | fail: | |
28605 | return NULL; | |
d14a1e28 RD |
28606 | } |
28607 | ||
28608 | ||
0085ce49 RD |
28609 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28610 | PyObject *resultobj = 0; | |
28611 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28612 | void *argp1 = 0 ; | |
28613 | int res1 = 0 ; | |
28614 | PyObject *swig_obj[1] ; | |
28615 | ||
28616 | if (!args) SWIG_fail; | |
28617 | swig_obj[0] = args; | |
28618 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28619 | if (!SWIG_IsOK(res1)) { | |
28620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnFirst" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28621 | } | |
28622 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28623 | { | |
28624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28625 | (arg1)->OnFirst(); | |
28626 | wxPyEndAllowThreads(__tstate); | |
28627 | if (PyErr_Occurred()) SWIG_fail; | |
28628 | } | |
28629 | resultobj = SWIG_Py_Void(); | |
28630 | return resultobj; | |
28631 | fail: | |
28632 | return NULL; | |
d14a1e28 RD |
28633 | } |
28634 | ||
28635 | ||
0085ce49 RD |
28636 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnLast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28637 | PyObject *resultobj = 0; | |
28638 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28639 | void *argp1 = 0 ; | |
28640 | int res1 = 0 ; | |
28641 | PyObject *swig_obj[1] ; | |
28642 | ||
28643 | if (!args) SWIG_fail; | |
28644 | swig_obj[0] = args; | |
28645 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28646 | if (!SWIG_IsOK(res1)) { | |
28647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnLast" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28648 | } | |
28649 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28650 | { | |
28651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28652 | (arg1)->OnLast(); | |
28653 | wxPyEndAllowThreads(__tstate); | |
28654 | if (PyErr_Occurred()) SWIG_fail; | |
28655 | } | |
28656 | resultobj = SWIG_Py_Void(); | |
28657 | return resultobj; | |
28658 | fail: | |
28659 | return NULL; | |
d14a1e28 RD |
28660 | } |
28661 | ||
28662 | ||
0085ce49 RD |
28663 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28664 | PyObject *resultobj = 0; | |
28665 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28666 | void *argp1 = 0 ; | |
28667 | int res1 = 0 ; | |
28668 | PyObject *swig_obj[1] ; | |
28669 | ||
28670 | if (!args) SWIG_fail; | |
28671 | swig_obj[0] = args; | |
28672 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28673 | if (!SWIG_IsOK(res1)) { | |
28674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnGoto" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28675 | } | |
28676 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28677 | { | |
28678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28679 | (arg1)->OnGoto(); | |
28680 | wxPyEndAllowThreads(__tstate); | |
28681 | if (PyErr_Occurred()) SWIG_fail; | |
28682 | } | |
28683 | resultobj = SWIG_Py_Void(); | |
28684 | return resultobj; | |
28685 | fail: | |
28686 | return NULL; | |
d14a1e28 RD |
28687 | } |
28688 | ||
28689 | ||
0085ce49 RD |
28690 | SWIGINTERN PyObject *PreviewControlBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28691 | PyObject *obj; | |
28692 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28693 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewControlBar, SWIG_NewClientData(obj)); | |
28694 | return SWIG_Py_Void(); | |
d14a1e28 RD |
28695 | } |
28696 | ||
0085ce49 RD |
28697 | SWIGINTERN PyObject *PreviewControlBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28698 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
28699 | } |
28700 | ||
0085ce49 RD |
28701 | SWIGINTERN PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
28702 | PyObject *resultobj = 0; | |
28703 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28704 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
28705 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
28706 | wxPrintPreview *result = 0 ; | |
28707 | int res1 = 0 ; | |
28708 | int res2 = 0 ; | |
28709 | void *argp3 = 0 ; | |
28710 | int res3 = 0 ; | |
28711 | ||
28712 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
28713 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
28714 | if (!SWIG_IsOK(res1)) { | |
28715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28716 | } | |
28717 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
28718 | if (!SWIG_IsOK(res2)) { | |
28719 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
28720 | } | |
28721 | if (swig_obj[2]) { | |
28722 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
28723 | if (!SWIG_IsOK(res3)) { | |
28724 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PrintPreview" "', expected argument " "3"" of type '" "wxPrintDialogData *""'"); | |
1cb4a8aa | 28725 | } |
0085ce49 RD |
28726 | arg3 = reinterpret_cast< wxPrintDialogData * >(argp3); |
28727 | } | |
28728 | { | |
28729 | if (!wxPyCheckForApp()) SWIG_fail; | |
28730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28731 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
28732 | wxPyEndAllowThreads(__tstate); | |
28733 | if (PyErr_Occurred()) SWIG_fail; | |
28734 | } | |
28735 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_NEW | 0 ); | |
28736 | return resultobj; | |
28737 | fail: | |
28738 | return NULL; | |
28739 | } | |
28740 | ||
28741 | ||
28742 | SWIGINTERN PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28743 | PyObject *resultobj = 0; | |
28744 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28745 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
28746 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
28747 | wxPrintPreview *result = 0 ; | |
28748 | int res1 = 0 ; | |
28749 | int res2 = 0 ; | |
28750 | void *argp3 = 0 ; | |
28751 | int res3 = 0 ; | |
28752 | ||
28753 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
28754 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
28755 | if (!SWIG_IsOK(res1)) { | |
28756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28757 | } | |
28758 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
28759 | if (!SWIG_IsOK(res2)) { | |
28760 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
28761 | } | |
28762 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
28763 | if (!SWIG_IsOK(res3)) { | |
28764 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PrintPreview" "', expected argument " "3"" of type '" "wxPrintData *""'"); | |
28765 | } | |
28766 | arg3 = reinterpret_cast< wxPrintData * >(argp3); | |
28767 | { | |
28768 | if (!wxPyCheckForApp()) SWIG_fail; | |
28769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28770 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
28771 | wxPyEndAllowThreads(__tstate); | |
28772 | if (PyErr_Occurred()) SWIG_fail; | |
28773 | } | |
28774 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_NEW | 0 ); | |
28775 | return resultobj; | |
28776 | fail: | |
28777 | return NULL; | |
1cb4a8aa RD |
28778 | } |
28779 | ||
28780 | ||
0085ce49 RD |
28781 | SWIGINTERN PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { |
28782 | int argc; | |
28783 | PyObject *argv[4]; | |
28784 | ||
28785 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintPreview",0,3,argv))) SWIG_fail; | |
28786 | --argc; | |
28787 | if ((argc >= 2) && (argc <= 3)) { | |
28788 | int _v = 0; | |
28789 | if (argc > 2) { | |
28790 | { | |
28791 | void *vptr = 0; | |
28792 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_wxPrintDialogData, 0); | |
28793 | _v = SWIG_CheckState(res); | |
28794 | } | |
28795 | if (!_v) goto check_1; | |
db3e571a | 28796 | } |
0085ce49 RD |
28797 | return _wrap_new_PrintPreview__SWIG_0(self, argc, argv); |
28798 | } | |
28799 | check_1: | |
28800 | ||
28801 | if (argc == 3) { | |
28802 | return _wrap_new_PrintPreview__SWIG_1(self, argc, argv); | |
28803 | } | |
28804 | ||
28805 | fail: | |
28806 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintPreview'"); | |
28807 | return NULL; | |
db3e571a RD |
28808 | } |
28809 | ||
28810 | ||
0085ce49 RD |
28811 | SWIGINTERN PyObject *_wrap_delete_PrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28812 | PyObject *resultobj = 0; | |
28813 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28814 | void *argp1 = 0 ; | |
28815 | int res1 = 0 ; | |
28816 | PyObject *swig_obj[1] ; | |
28817 | ||
28818 | if (!args) SWIG_fail; | |
28819 | swig_obj[0] = args; | |
28820 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); | |
28821 | if (!SWIG_IsOK(res1)) { | |
28822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintPreview" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28823 | } | |
28824 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28825 | { | |
28826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28827 | delete arg1; | |
28828 | ||
28829 | wxPyEndAllowThreads(__tstate); | |
28830 | if (PyErr_Occurred()) SWIG_fail; | |
28831 | } | |
28832 | resultobj = SWIG_Py_Void(); | |
28833 | return resultobj; | |
28834 | fail: | |
28835 | return NULL; | |
28836 | } | |
28837 | ||
28838 | ||
28839 | SWIGINTERN PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28840 | PyObject *resultobj = 0; | |
28841 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28842 | int arg2 ; | |
28843 | bool result; | |
28844 | void *argp1 = 0 ; | |
28845 | int res1 = 0 ; | |
28846 | int val2 ; | |
28847 | int ecode2 = 0 ; | |
28848 | PyObject * obj0 = 0 ; | |
28849 | PyObject * obj1 = 0 ; | |
28850 | char * kwnames[] = { | |
28851 | (char *) "self",(char *) "pageNum", NULL | |
28852 | }; | |
28853 | ||
28854 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
28855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28856 | if (!SWIG_IsOK(res1)) { | |
28857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetCurrentPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28858 | } | |
28859 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28860 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28861 | if (!SWIG_IsOK(ecode2)) { | |
28862 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetCurrentPage" "', expected argument " "2"" of type '" "int""'"); | |
28863 | } | |
28864 | arg2 = static_cast< int >(val2); | |
28865 | { | |
28866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28867 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
28868 | wxPyEndAllowThreads(__tstate); | |
28869 | if (PyErr_Occurred()) SWIG_fail; | |
28870 | } | |
28871 | { | |
28872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28873 | } | |
28874 | return resultobj; | |
28875 | fail: | |
28876 | return NULL; | |
8d38bd1d RD |
28877 | } |
28878 | ||
28879 | ||
0085ce49 RD |
28880 | SWIGINTERN PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28881 | PyObject *resultobj = 0; | |
28882 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28883 | int result; | |
28884 | void *argp1 = 0 ; | |
28885 | int res1 = 0 ; | |
28886 | PyObject *swig_obj[1] ; | |
28887 | ||
28888 | if (!args) SWIG_fail; | |
28889 | swig_obj[0] = args; | |
28890 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28891 | if (!SWIG_IsOK(res1)) { | |
28892 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetCurrentPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28893 | } | |
28894 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28895 | { | |
28896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28897 | result = (int)(arg1)->GetCurrentPage(); | |
28898 | wxPyEndAllowThreads(__tstate); | |
28899 | if (PyErr_Occurred()) SWIG_fail; | |
28900 | } | |
28901 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28902 | return resultobj; | |
28903 | fail: | |
28904 | return NULL; | |
28905 | } | |
28906 | ||
28907 | ||
28908 | SWIGINTERN PyObject *_wrap_PrintPreview_SetPrintout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28909 | PyObject *resultobj = 0; | |
28910 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28911 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
28912 | void *argp1 = 0 ; | |
28913 | int res1 = 0 ; | |
28914 | int res2 = 0 ; | |
28915 | PyObject * obj0 = 0 ; | |
28916 | PyObject * obj1 = 0 ; | |
28917 | char * kwnames[] = { | |
28918 | (char *) "self",(char *) "printout", NULL | |
28919 | }; | |
28920 | ||
28921 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) SWIG_fail; | |
28922 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28923 | if (!SWIG_IsOK(res1)) { | |
28924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetPrintout" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28925 | } | |
28926 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28927 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
28928 | if (!SWIG_IsOK(res2)) { | |
28929 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetPrintout" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
28930 | } | |
28931 | { | |
28932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28933 | (arg1)->SetPrintout(arg2); | |
28934 | wxPyEndAllowThreads(__tstate); | |
28935 | if (PyErr_Occurred()) SWIG_fail; | |
28936 | } | |
28937 | resultobj = SWIG_Py_Void(); | |
28938 | return resultobj; | |
28939 | fail: | |
28940 | return NULL; | |
d14a1e28 RD |
28941 | } |
28942 | ||
28943 | ||
0085ce49 RD |
28944 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28945 | PyObject *resultobj = 0; | |
28946 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28947 | wxPyPrintout *result = 0 ; | |
28948 | void *argp1 = 0 ; | |
28949 | int res1 = 0 ; | |
28950 | PyObject *swig_obj[1] ; | |
28951 | ||
28952 | if (!args) SWIG_fail; | |
28953 | swig_obj[0] = args; | |
28954 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28955 | if (!SWIG_IsOK(res1)) { | |
28956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintout" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28957 | } | |
28958 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28959 | { | |
28960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28961 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
28962 | wxPyEndAllowThreads(__tstate); | |
28963 | if (PyErr_Occurred()) SWIG_fail; | |
28964 | } | |
28965 | { | |
28966 | resultobj = wxPyMake_wxObject(result, 0); | |
28967 | } | |
28968 | return resultobj; | |
28969 | fail: | |
28970 | return NULL; | |
1cb4a8aa RD |
28971 | } |
28972 | ||
28973 | ||
0085ce49 RD |
28974 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28975 | PyObject *resultobj = 0; | |
28976 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28977 | wxPyPrintout *result = 0 ; | |
28978 | void *argp1 = 0 ; | |
28979 | int res1 = 0 ; | |
28980 | PyObject *swig_obj[1] ; | |
28981 | ||
28982 | if (!args) SWIG_fail; | |
28983 | swig_obj[0] = args; | |
28984 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28985 | if (!SWIG_IsOK(res1)) { | |
28986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintoutForPrinting" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28987 | } | |
28988 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28989 | { | |
28990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28991 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
28992 | wxPyEndAllowThreads(__tstate); | |
28993 | if (PyErr_Occurred()) SWIG_fail; | |
28994 | } | |
28995 | { | |
28996 | resultobj = wxPyMake_wxObject(result, 0); | |
28997 | } | |
28998 | return resultobj; | |
28999 | fail: | |
29000 | return NULL; | |
29001 | } | |
29002 | ||
29003 | ||
29004 | SWIGINTERN PyObject *_wrap_PrintPreview_SetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29005 | PyObject *resultobj = 0; | |
29006 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29007 | wxFrame *arg2 = (wxFrame *) 0 ; | |
29008 | void *argp1 = 0 ; | |
29009 | int res1 = 0 ; | |
29010 | void *argp2 = 0 ; | |
29011 | int res2 = 0 ; | |
29012 | PyObject * obj0 = 0 ; | |
29013 | PyObject * obj1 = 0 ; | |
29014 | char * kwnames[] = { | |
29015 | (char *) "self",(char *) "frame", NULL | |
29016 | }; | |
29017 | ||
29018 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) SWIG_fail; | |
29019 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29020 | if (!SWIG_IsOK(res1)) { | |
29021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29022 | } | |
29023 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29024 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
29025 | if (!SWIG_IsOK(res2)) { | |
29026 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
29027 | } | |
29028 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
29029 | { | |
29030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29031 | (arg1)->SetFrame(arg2); | |
29032 | wxPyEndAllowThreads(__tstate); | |
29033 | if (PyErr_Occurred()) SWIG_fail; | |
29034 | } | |
29035 | resultobj = SWIG_Py_Void(); | |
29036 | return resultobj; | |
29037 | fail: | |
29038 | return NULL; | |
29039 | } | |
29040 | ||
29041 | ||
29042 | SWIGINTERN PyObject *_wrap_PrintPreview_SetCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29043 | PyObject *resultobj = 0; | |
29044 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29045 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29046 | void *argp1 = 0 ; | |
29047 | int res1 = 0 ; | |
29048 | void *argp2 = 0 ; | |
29049 | int res2 = 0 ; | |
29050 | PyObject * obj0 = 0 ; | |
29051 | PyObject * obj1 = 0 ; | |
29052 | char * kwnames[] = { | |
29053 | (char *) "self",(char *) "canvas", NULL | |
29054 | }; | |
29055 | ||
29056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) SWIG_fail; | |
29057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29058 | if (!SWIG_IsOK(res1)) { | |
29059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29060 | } | |
29061 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29062 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29063 | if (!SWIG_IsOK(res2)) { | |
29064 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetCanvas" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29065 | } | |
29066 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29067 | { | |
29068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29069 | (arg1)->SetCanvas(arg2); | |
29070 | wxPyEndAllowThreads(__tstate); | |
29071 | if (PyErr_Occurred()) SWIG_fail; | |
29072 | } | |
29073 | resultobj = SWIG_Py_Void(); | |
29074 | return resultobj; | |
29075 | fail: | |
29076 | return NULL; | |
d14a1e28 RD |
29077 | } |
29078 | ||
29079 | ||
0085ce49 RD |
29080 | SWIGINTERN PyObject *_wrap_PrintPreview_GetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29081 | PyObject *resultobj = 0; | |
29082 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29083 | wxFrame *result = 0 ; | |
29084 | void *argp1 = 0 ; | |
29085 | int res1 = 0 ; | |
29086 | PyObject *swig_obj[1] ; | |
29087 | ||
29088 | if (!args) SWIG_fail; | |
29089 | swig_obj[0] = args; | |
29090 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29091 | if (!SWIG_IsOK(res1)) { | |
29092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29093 | } | |
29094 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29095 | { | |
29096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29097 | result = (wxFrame *)(arg1)->GetFrame(); | |
29098 | wxPyEndAllowThreads(__tstate); | |
29099 | if (PyErr_Occurred()) SWIG_fail; | |
29100 | } | |
29101 | { | |
29102 | resultobj = wxPyMake_wxObject(result, 0); | |
29103 | } | |
29104 | return resultobj; | |
29105 | fail: | |
29106 | return NULL; | |
db3e571a RD |
29107 | } |
29108 | ||
29109 | ||
0085ce49 RD |
29110 | SWIGINTERN PyObject *_wrap_PrintPreview_GetCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29111 | PyObject *resultobj = 0; | |
29112 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29113 | wxPreviewCanvas *result = 0 ; | |
29114 | void *argp1 = 0 ; | |
29115 | int res1 = 0 ; | |
29116 | PyObject *swig_obj[1] ; | |
29117 | ||
29118 | if (!args) SWIG_fail; | |
29119 | swig_obj[0] = args; | |
29120 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29121 | if (!SWIG_IsOK(res1)) { | |
29122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29123 | } | |
29124 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29125 | { | |
29126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29127 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
29128 | wxPyEndAllowThreads(__tstate); | |
29129 | if (PyErr_Occurred()) SWIG_fail; | |
29130 | } | |
29131 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29132 | return resultobj; | |
29133 | fail: | |
29134 | return NULL; | |
29135 | } | |
29136 | ||
29137 | ||
29138 | SWIGINTERN PyObject *_wrap_PrintPreview_PaintPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29139 | PyObject *resultobj = 0; | |
29140 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29141 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29142 | wxDC *arg3 = 0 ; | |
29143 | bool result; | |
29144 | void *argp1 = 0 ; | |
29145 | int res1 = 0 ; | |
29146 | void *argp2 = 0 ; | |
29147 | int res2 = 0 ; | |
29148 | void *argp3 = 0 ; | |
29149 | int res3 = 0 ; | |
29150 | PyObject * obj0 = 0 ; | |
29151 | PyObject * obj1 = 0 ; | |
29152 | PyObject * obj2 = 0 ; | |
29153 | char * kwnames[] = { | |
29154 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
29155 | }; | |
29156 | ||
29157 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29158 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29159 | if (!SWIG_IsOK(res1)) { | |
29160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_PaintPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29161 | } | |
29162 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29163 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29164 | if (!SWIG_IsOK(res2)) { | |
29165 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_PaintPage" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29166 | } | |
29167 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29168 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
29169 | if (!SWIG_IsOK(res3)) { | |
29170 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PrintPreview_PaintPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29171 | } | |
29172 | if (!argp3) { | |
29173 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintPreview_PaintPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29174 | } | |
29175 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
29176 | { | |
29177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29178 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
29179 | wxPyEndAllowThreads(__tstate); | |
29180 | if (PyErr_Occurred()) SWIG_fail; | |
29181 | } | |
29182 | { | |
29183 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29184 | } | |
29185 | return resultobj; | |
29186 | fail: | |
29187 | return NULL; | |
29188 | } | |
29189 | ||
29190 | ||
29191 | SWIGINTERN PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29192 | PyObject *resultobj = 0; | |
29193 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29194 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29195 | wxDC *arg3 = 0 ; | |
29196 | bool result; | |
29197 | void *argp1 = 0 ; | |
29198 | int res1 = 0 ; | |
29199 | void *argp2 = 0 ; | |
29200 | int res2 = 0 ; | |
29201 | void *argp3 = 0 ; | |
29202 | int res3 = 0 ; | |
29203 | PyObject * obj0 = 0 ; | |
29204 | PyObject * obj1 = 0 ; | |
29205 | PyObject * obj2 = 0 ; | |
29206 | char * kwnames[] = { | |
29207 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
29208 | }; | |
29209 | ||
29210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29211 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29212 | if (!SWIG_IsOK(res1)) { | |
29213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29214 | } | |
29215 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29216 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29217 | if (!SWIG_IsOK(res2)) { | |
29218 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29219 | } | |
29220 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29221 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
29222 | if (!SWIG_IsOK(res3)) { | |
29223 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29224 | } | |
29225 | if (!argp3) { | |
29226 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29227 | } | |
29228 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
29229 | { | |
29230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29231 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
29232 | wxPyEndAllowThreads(__tstate); | |
29233 | if (PyErr_Occurred()) SWIG_fail; | |
29234 | } | |
29235 | { | |
29236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29237 | } | |
29238 | return resultobj; | |
29239 | fail: | |
29240 | return NULL; | |
29241 | } | |
29242 | ||
29243 | ||
29244 | SWIGINTERN PyObject *_wrap_PrintPreview_RenderPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29245 | PyObject *resultobj = 0; | |
29246 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29247 | int arg2 ; | |
29248 | bool result; | |
29249 | void *argp1 = 0 ; | |
29250 | int res1 = 0 ; | |
29251 | int val2 ; | |
29252 | int ecode2 = 0 ; | |
29253 | PyObject * obj0 = 0 ; | |
29254 | PyObject * obj1 = 0 ; | |
29255 | char * kwnames[] = { | |
29256 | (char *) "self",(char *) "pageNum", NULL | |
29257 | }; | |
29258 | ||
29259 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
29260 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29261 | if (!SWIG_IsOK(res1)) { | |
29262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_RenderPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29263 | } | |
29264 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29265 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29266 | if (!SWIG_IsOK(ecode2)) { | |
29267 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_RenderPage" "', expected argument " "2"" of type '" "int""'"); | |
29268 | } | |
29269 | arg2 = static_cast< int >(val2); | |
29270 | { | |
29271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29272 | result = (bool)(arg1)->RenderPage(arg2); | |
29273 | wxPyEndAllowThreads(__tstate); | |
29274 | if (PyErr_Occurred()) SWIG_fail; | |
29275 | } | |
29276 | { | |
29277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29278 | } | |
29279 | return resultobj; | |
29280 | fail: | |
29281 | return NULL; | |
29282 | } | |
29283 | ||
29284 | ||
29285 | SWIGINTERN PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29286 | PyObject *resultobj = 0; | |
29287 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29288 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29289 | void *argp1 = 0 ; | |
29290 | int res1 = 0 ; | |
29291 | void *argp2 = 0 ; | |
29292 | int res2 = 0 ; | |
29293 | PyObject * obj0 = 0 ; | |
29294 | PyObject * obj1 = 0 ; | |
29295 | char * kwnames[] = { | |
29296 | (char *) "self",(char *) "canvas", NULL | |
29297 | }; | |
29298 | ||
29299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) SWIG_fail; | |
29300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29301 | if (!SWIG_IsOK(res1)) { | |
29302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_AdjustScrollbars" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29303 | } | |
29304 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29305 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29306 | if (!SWIG_IsOK(res2)) { | |
29307 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_AdjustScrollbars" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29308 | } | |
29309 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29310 | { | |
29311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29312 | (arg1)->AdjustScrollbars(arg2); | |
29313 | wxPyEndAllowThreads(__tstate); | |
29314 | if (PyErr_Occurred()) SWIG_fail; | |
29315 | } | |
29316 | resultobj = SWIG_Py_Void(); | |
29317 | return resultobj; | |
29318 | fail: | |
29319 | return NULL; | |
976dbff5 RD |
29320 | } |
29321 | ||
29322 | ||
0085ce49 RD |
29323 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29324 | PyObject *resultobj = 0; | |
29325 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29326 | wxPrintDialogData *result = 0 ; | |
29327 | void *argp1 = 0 ; | |
29328 | int res1 = 0 ; | |
29329 | PyObject *swig_obj[1] ; | |
29330 | ||
29331 | if (!args) SWIG_fail; | |
29332 | swig_obj[0] = args; | |
29333 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29334 | if (!SWIG_IsOK(res1)) { | |
29335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29336 | } | |
29337 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29338 | { | |
29339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 29340 | { |
0085ce49 RD |
29341 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); |
29342 | result = (wxPrintDialogData *) &_result_ref; | |
093d3ff1 | 29343 | } |
0085ce49 RD |
29344 | wxPyEndAllowThreads(__tstate); |
29345 | if (PyErr_Occurred()) SWIG_fail; | |
29346 | } | |
29347 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
29348 | return resultobj; | |
29349 | fail: | |
29350 | return NULL; | |
29351 | } | |
29352 | ||
29353 | ||
29354 | SWIGINTERN PyObject *_wrap_PrintPreview_SetZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29355 | PyObject *resultobj = 0; | |
29356 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29357 | int arg2 ; | |
29358 | void *argp1 = 0 ; | |
29359 | int res1 = 0 ; | |
29360 | int val2 ; | |
29361 | int ecode2 = 0 ; | |
29362 | PyObject * obj0 = 0 ; | |
29363 | PyObject * obj1 = 0 ; | |
29364 | char * kwnames[] = { | |
29365 | (char *) "self",(char *) "percent", NULL | |
29366 | }; | |
29367 | ||
29368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) SWIG_fail; | |
29369 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29370 | if (!SWIG_IsOK(res1)) { | |
29371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetZoom" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29372 | } | |
29373 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29374 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29375 | if (!SWIG_IsOK(ecode2)) { | |
29376 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetZoom" "', expected argument " "2"" of type '" "int""'"); | |
29377 | } | |
29378 | arg2 = static_cast< int >(val2); | |
29379 | { | |
29380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29381 | (arg1)->SetZoom(arg2); | |
29382 | wxPyEndAllowThreads(__tstate); | |
29383 | if (PyErr_Occurred()) SWIG_fail; | |
29384 | } | |
29385 | resultobj = SWIG_Py_Void(); | |
29386 | return resultobj; | |
29387 | fail: | |
29388 | return NULL; | |
d14a1e28 RD |
29389 | } |
29390 | ||
29391 | ||
0085ce49 RD |
29392 | SWIGINTERN PyObject *_wrap_PrintPreview_GetZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29393 | PyObject *resultobj = 0; | |
29394 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29395 | int result; | |
29396 | void *argp1 = 0 ; | |
29397 | int res1 = 0 ; | |
29398 | PyObject *swig_obj[1] ; | |
29399 | ||
29400 | if (!args) SWIG_fail; | |
29401 | swig_obj[0] = args; | |
29402 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29403 | if (!SWIG_IsOK(res1)) { | |
29404 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetZoom" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29405 | } | |
29406 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29407 | { | |
29408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29409 | result = (int)(arg1)->GetZoom(); | |
29410 | wxPyEndAllowThreads(__tstate); | |
29411 | if (PyErr_Occurred()) SWIG_fail; | |
29412 | } | |
29413 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29414 | return resultobj; | |
29415 | fail: | |
29416 | return NULL; | |
d14a1e28 RD |
29417 | } |
29418 | ||
29419 | ||
0085ce49 RD |
29420 | SWIGINTERN PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29421 | PyObject *resultobj = 0; | |
29422 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29423 | int result; | |
29424 | void *argp1 = 0 ; | |
29425 | int res1 = 0 ; | |
29426 | PyObject *swig_obj[1] ; | |
29427 | ||
29428 | if (!args) SWIG_fail; | |
29429 | swig_obj[0] = args; | |
29430 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29431 | if (!SWIG_IsOK(res1)) { | |
29432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetMaxPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29433 | } | |
29434 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29435 | { | |
29436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29437 | result = (int)(arg1)->GetMaxPage(); | |
29438 | wxPyEndAllowThreads(__tstate); | |
29439 | if (PyErr_Occurred()) SWIG_fail; | |
29440 | } | |
29441 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29442 | return resultobj; | |
29443 | fail: | |
29444 | return NULL; | |
d14a1e28 RD |
29445 | } |
29446 | ||
29447 | ||
0085ce49 RD |
29448 | SWIGINTERN PyObject *_wrap_PrintPreview_GetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29449 | PyObject *resultobj = 0; | |
29450 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29451 | int result; | |
29452 | void *argp1 = 0 ; | |
29453 | int res1 = 0 ; | |
29454 | PyObject *swig_obj[1] ; | |
29455 | ||
29456 | if (!args) SWIG_fail; | |
29457 | swig_obj[0] = args; | |
29458 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29459 | if (!SWIG_IsOK(res1)) { | |
29460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetMinPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29461 | } | |
29462 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29463 | { | |
29464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29465 | result = (int)(arg1)->GetMinPage(); | |
29466 | wxPyEndAllowThreads(__tstate); | |
29467 | if (PyErr_Occurred()) SWIG_fail; | |
29468 | } | |
29469 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29470 | return resultobj; | |
29471 | fail: | |
29472 | return NULL; | |
d14a1e28 RD |
29473 | } |
29474 | ||
29475 | ||
0085ce49 RD |
29476 | SWIGINTERN PyObject *_wrap_PrintPreview_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29477 | PyObject *resultobj = 0; | |
29478 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29479 | bool result; | |
29480 | void *argp1 = 0 ; | |
29481 | int res1 = 0 ; | |
29482 | PyObject *swig_obj[1] ; | |
29483 | ||
29484 | if (!args) SWIG_fail; | |
29485 | swig_obj[0] = args; | |
29486 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29487 | if (!SWIG_IsOK(res1)) { | |
29488 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_Ok" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29489 | } | |
29490 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29491 | { | |
29492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29493 | result = (bool)(arg1)->Ok(); | |
29494 | wxPyEndAllowThreads(__tstate); | |
29495 | if (PyErr_Occurred()) SWIG_fail; | |
29496 | } | |
29497 | { | |
29498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29499 | } | |
29500 | return resultobj; | |
29501 | fail: | |
29502 | return NULL; | |
29503 | } | |
29504 | ||
29505 | ||
29506 | SWIGINTERN PyObject *_wrap_PrintPreview_SetOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29507 | PyObject *resultobj = 0; | |
29508 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29509 | bool arg2 ; | |
29510 | void *argp1 = 0 ; | |
29511 | int res1 = 0 ; | |
29512 | bool val2 ; | |
29513 | int ecode2 = 0 ; | |
29514 | PyObject * obj0 = 0 ; | |
29515 | PyObject * obj1 = 0 ; | |
29516 | char * kwnames[] = { | |
29517 | (char *) "self",(char *) "ok", NULL | |
29518 | }; | |
29519 | ||
29520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) SWIG_fail; | |
29521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29522 | if (!SWIG_IsOK(res1)) { | |
29523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetOk" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29524 | } | |
29525 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29526 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
29527 | if (!SWIG_IsOK(ecode2)) { | |
29528 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetOk" "', expected argument " "2"" of type '" "bool""'"); | |
29529 | } | |
29530 | arg2 = static_cast< bool >(val2); | |
29531 | { | |
29532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29533 | (arg1)->SetOk(arg2); | |
29534 | wxPyEndAllowThreads(__tstate); | |
29535 | if (PyErr_Occurred()) SWIG_fail; | |
29536 | } | |
29537 | resultobj = SWIG_Py_Void(); | |
29538 | return resultobj; | |
29539 | fail: | |
29540 | return NULL; | |
29541 | } | |
29542 | ||
29543 | ||
29544 | SWIGINTERN PyObject *_wrap_PrintPreview_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29545 | PyObject *resultobj = 0; | |
29546 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29547 | bool arg2 ; | |
29548 | bool result; | |
29549 | void *argp1 = 0 ; | |
29550 | int res1 = 0 ; | |
29551 | bool val2 ; | |
29552 | int ecode2 = 0 ; | |
29553 | PyObject * obj0 = 0 ; | |
29554 | PyObject * obj1 = 0 ; | |
29555 | char * kwnames[] = { | |
29556 | (char *) "self",(char *) "interactive", NULL | |
29557 | }; | |
29558 | ||
29559 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) SWIG_fail; | |
29560 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29561 | if (!SWIG_IsOK(res1)) { | |
29562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_Print" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29563 | } | |
29564 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29565 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
29566 | if (!SWIG_IsOK(ecode2)) { | |
29567 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_Print" "', expected argument " "2"" of type '" "bool""'"); | |
29568 | } | |
29569 | arg2 = static_cast< bool >(val2); | |
29570 | { | |
29571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29572 | result = (bool)(arg1)->Print(arg2); | |
29573 | wxPyEndAllowThreads(__tstate); | |
29574 | if (PyErr_Occurred()) SWIG_fail; | |
29575 | } | |
29576 | { | |
29577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29578 | } | |
29579 | return resultobj; | |
29580 | fail: | |
29581 | return NULL; | |
d14a1e28 RD |
29582 | } |
29583 | ||
29584 | ||
0085ce49 RD |
29585 | SWIGINTERN PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29586 | PyObject *resultobj = 0; | |
29587 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29588 | void *argp1 = 0 ; | |
29589 | int res1 = 0 ; | |
29590 | PyObject *swig_obj[1] ; | |
29591 | ||
29592 | if (!args) SWIG_fail; | |
29593 | swig_obj[0] = args; | |
29594 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29595 | if (!SWIG_IsOK(res1)) { | |
29596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_DetermineScaling" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29597 | } | |
29598 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29599 | { | |
29600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29601 | (arg1)->DetermineScaling(); | |
29602 | wxPyEndAllowThreads(__tstate); | |
29603 | if (PyErr_Occurred()) SWIG_fail; | |
29604 | } | |
29605 | resultobj = SWIG_Py_Void(); | |
29606 | return resultobj; | |
29607 | fail: | |
29608 | return NULL; | |
d14a1e28 RD |
29609 | } |
29610 | ||
29611 | ||
0085ce49 RD |
29612 | SWIGINTERN PyObject *PrintPreview_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29613 | PyObject *obj; | |
29614 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29615 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintPreview, SWIG_NewClientData(obj)); | |
29616 | return SWIG_Py_Void(); | |
d14a1e28 RD |
29617 | } |
29618 | ||
0085ce49 RD |
29619 | SWIGINTERN PyObject *PrintPreview_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29620 | return SWIG_Python_InitShadowInstance(args); | |
29621 | } | |
d14a1e28 | 29622 | |
0085ce49 RD |
29623 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
29624 | PyObject *resultobj = 0; | |
29625 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29626 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29627 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
29628 | wxPyPrintPreview *result = 0 ; | |
29629 | int res1 = 0 ; | |
29630 | int res2 = 0 ; | |
29631 | void *argp3 = 0 ; | |
29632 | int res3 = 0 ; | |
29633 | ||
29634 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
29635 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29636 | if (!SWIG_IsOK(res1)) { | |
29637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29638 | } | |
29639 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29640 | if (!SWIG_IsOK(res2)) { | |
29641 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29642 | } | |
29643 | if (swig_obj[2]) { | |
29644 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
29645 | if (!SWIG_IsOK(res3)) { | |
29646 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPrintPreview" "', expected argument " "3"" of type '" "wxPrintDialogData *""'"); | |
d14a1e28 | 29647 | } |
0085ce49 RD |
29648 | arg3 = reinterpret_cast< wxPrintDialogData * >(argp3); |
29649 | } | |
29650 | { | |
29651 | if (!wxPyCheckForApp()) SWIG_fail; | |
29652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29653 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
29654 | wxPyEndAllowThreads(__tstate); | |
29655 | if (PyErr_Occurred()) SWIG_fail; | |
29656 | } | |
29657 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintPreview, SWIG_POINTER_NEW | 0 ); | |
29658 | return resultobj; | |
29659 | fail: | |
29660 | return NULL; | |
29661 | } | |
29662 | ||
29663 | ||
29664 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29665 | PyObject *resultobj = 0; | |
29666 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29667 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29668 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
29669 | wxPyPrintPreview *result = 0 ; | |
29670 | int res1 = 0 ; | |
29671 | int res2 = 0 ; | |
29672 | void *argp3 = 0 ; | |
29673 | int res3 = 0 ; | |
29674 | ||
29675 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
29676 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29677 | if (!SWIG_IsOK(res1)) { | |
29678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29679 | } | |
29680 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29681 | if (!SWIG_IsOK(res2)) { | |
29682 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29683 | } | |
29684 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
29685 | if (!SWIG_IsOK(res3)) { | |
29686 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPrintPreview" "', expected argument " "3"" of type '" "wxPrintData *""'"); | |
29687 | } | |
29688 | arg3 = reinterpret_cast< wxPrintData * >(argp3); | |
29689 | { | |
29690 | if (!wxPyCheckForApp()) SWIG_fail; | |
29691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29692 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
29693 | wxPyEndAllowThreads(__tstate); | |
29694 | if (PyErr_Occurred()) SWIG_fail; | |
29695 | } | |
29696 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintPreview, SWIG_POINTER_NEW | 0 ); | |
29697 | return resultobj; | |
29698 | fail: | |
29699 | return NULL; | |
d14a1e28 RD |
29700 | } |
29701 | ||
29702 | ||
0085ce49 RD |
29703 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { |
29704 | int argc; | |
29705 | PyObject *argv[4]; | |
29706 | ||
29707 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PyPrintPreview",0,3,argv))) SWIG_fail; | |
29708 | --argc; | |
29709 | if ((argc >= 2) && (argc <= 3)) { | |
29710 | int _v = 0; | |
29711 | if (argc > 2) { | |
29712 | { | |
29713 | void *vptr = 0; | |
29714 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_wxPrintDialogData, 0); | |
29715 | _v = SWIG_CheckState(res); | |
29716 | } | |
29717 | if (!_v) goto check_1; | |
29718 | } | |
29719 | return _wrap_new_PyPrintPreview__SWIG_0(self, argc, argv); | |
29720 | } | |
29721 | check_1: | |
29722 | ||
29723 | if (argc == 3) { | |
29724 | return _wrap_new_PyPrintPreview__SWIG_1(self, argc, argv); | |
29725 | } | |
29726 | ||
29727 | fail: | |
29728 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PyPrintPreview'"); | |
29729 | return NULL; | |
29730 | } | |
29731 | ||
29732 | ||
29733 | SWIGINTERN PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29734 | PyObject *resultobj = 0; | |
29735 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
29736 | PyObject *arg2 = (PyObject *) 0 ; | |
29737 | PyObject *arg3 = (PyObject *) 0 ; | |
29738 | void *argp1 = 0 ; | |
29739 | int res1 = 0 ; | |
29740 | PyObject * obj0 = 0 ; | |
29741 | PyObject * obj1 = 0 ; | |
29742 | PyObject * obj2 = 0 ; | |
29743 | char * kwnames[] = { | |
29744 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29745 | }; | |
29746 | ||
29747 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29748 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintPreview, 0 | 0 ); | |
29749 | if (!SWIG_IsOK(res1)) { | |
29750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPrintPreview__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPrintPreview *""'"); | |
29751 | } | |
29752 | arg1 = reinterpret_cast< wxPyPrintPreview * >(argp1); | |
29753 | arg2 = obj1; | |
29754 | arg3 = obj2; | |
29755 | { | |
29756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29757 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29758 | wxPyEndAllowThreads(__tstate); | |
29759 | if (PyErr_Occurred()) SWIG_fail; | |
29760 | } | |
29761 | resultobj = SWIG_Py_Void(); | |
29762 | return resultobj; | |
29763 | fail: | |
29764 | return NULL; | |
29765 | } | |
29766 | ||
29767 | ||
29768 | SWIGINTERN PyObject *PyPrintPreview_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29769 | PyObject *obj; | |
29770 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29771 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPrintPreview, SWIG_NewClientData(obj)); | |
29772 | return SWIG_Py_Void(); | |
29773 | } | |
29774 | ||
29775 | SWIGINTERN PyObject *PyPrintPreview_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29776 | return SWIG_Python_InitShadowInstance(args); | |
29777 | } | |
29778 | ||
29779 | SWIGINTERN PyObject *_wrap_new_PyPreviewFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29780 | PyObject *resultobj = 0; | |
29781 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29782 | wxFrame *arg2 = (wxFrame *) 0 ; | |
29783 | wxString *arg3 = 0 ; | |
29784 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
29785 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29786 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29787 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29788 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
29789 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
29790 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29791 | wxPyPreviewFrame *result = 0 ; | |
29792 | void *argp1 = 0 ; | |
29793 | int res1 = 0 ; | |
29794 | void *argp2 = 0 ; | |
29795 | int res2 = 0 ; | |
29796 | bool temp3 = false ; | |
29797 | wxPoint temp4 ; | |
29798 | wxSize temp5 ; | |
29799 | long val6 ; | |
29800 | int ecode6 = 0 ; | |
29801 | bool temp7 = false ; | |
29802 | PyObject * obj0 = 0 ; | |
29803 | PyObject * obj1 = 0 ; | |
29804 | PyObject * obj2 = 0 ; | |
29805 | PyObject * obj3 = 0 ; | |
29806 | PyObject * obj4 = 0 ; | |
29807 | PyObject * obj5 = 0 ; | |
29808 | PyObject * obj6 = 0 ; | |
29809 | char * kwnames[] = { | |
29810 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
29811 | }; | |
29812 | ||
29813 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
29814 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29815 | if (!SWIG_IsOK(res1)) { | |
29816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPreviewFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29817 | } | |
29818 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29819 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
29820 | if (!SWIG_IsOK(res2)) { | |
29821 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPreviewFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
29822 | } | |
29823 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
29824 | { | |
29825 | arg3 = wxString_in_helper(obj2); | |
29826 | if (arg3 == NULL) SWIG_fail; | |
29827 | temp3 = true; | |
29828 | } | |
29829 | if (obj3) { | |
d14a1e28 | 29830 | { |
0085ce49 RD |
29831 | arg4 = &temp4; |
29832 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 29833 | } |
0085ce49 RD |
29834 | } |
29835 | if (obj4) { | |
d14a1e28 | 29836 | { |
0085ce49 RD |
29837 | arg5 = &temp5; |
29838 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 29839 | } |
0085ce49 RD |
29840 | } |
29841 | if (obj5) { | |
29842 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
29843 | if (!SWIG_IsOK(ecode6)) { | |
29844 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PyPreviewFrame" "', expected argument " "6"" of type '" "long""'"); | |
29845 | } | |
29846 | arg6 = static_cast< long >(val6); | |
29847 | } | |
29848 | if (obj6) { | |
db3e571a | 29849 | { |
0085ce49 RD |
29850 | arg7 = wxString_in_helper(obj6); |
29851 | if (arg7 == NULL) SWIG_fail; | |
29852 | temp7 = true; | |
db3e571a | 29853 | } |
0085ce49 RD |
29854 | } |
29855 | { | |
29856 | if (!wxPyCheckForApp()) SWIG_fail; | |
29857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29858 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
29859 | wxPyEndAllowThreads(__tstate); | |
29860 | if (PyErr_Occurred()) SWIG_fail; | |
29861 | } | |
29862 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPreviewFrame, SWIG_POINTER_NEW | 0 ); | |
29863 | { | |
29864 | if (temp3) | |
29865 | delete arg3; | |
29866 | } | |
29867 | { | |
29868 | if (temp7) | |
29869 | delete arg7; | |
29870 | } | |
29871 | return resultobj; | |
29872 | fail: | |
29873 | { | |
29874 | if (temp3) | |
29875 | delete arg3; | |
29876 | } | |
29877 | { | |
29878 | if (temp7) | |
29879 | delete arg7; | |
29880 | } | |
29881 | return NULL; | |
29882 | } | |
29883 | ||
29884 | ||
29885 | SWIGINTERN PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29886 | PyObject *resultobj = 0; | |
29887 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
29888 | PyObject *arg2 = (PyObject *) 0 ; | |
29889 | PyObject *arg3 = (PyObject *) 0 ; | |
29890 | void *argp1 = 0 ; | |
29891 | int res1 = 0 ; | |
29892 | PyObject * obj0 = 0 ; | |
29893 | PyObject * obj1 = 0 ; | |
29894 | PyObject * obj2 = 0 ; | |
29895 | char * kwnames[] = { | |
29896 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29897 | }; | |
29898 | ||
29899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
29901 | if (!SWIG_IsOK(res1)) { | |
29902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
29903 | } | |
29904 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
29905 | arg2 = obj1; | |
29906 | arg3 = obj2; | |
29907 | { | |
29908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29909 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29910 | wxPyEndAllowThreads(__tstate); | |
29911 | if (PyErr_Occurred()) SWIG_fail; | |
29912 | } | |
29913 | resultobj = SWIG_Py_Void(); | |
29914 | return resultobj; | |
29915 | fail: | |
29916 | return NULL; | |
29917 | } | |
29918 | ||
29919 | ||
29920 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29921 | PyObject *resultobj = 0; | |
29922 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
29923 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29924 | void *argp1 = 0 ; | |
29925 | int res1 = 0 ; | |
29926 | void *argp2 = 0 ; | |
29927 | int res2 = 0 ; | |
29928 | PyObject * obj0 = 0 ; | |
29929 | PyObject * obj1 = 0 ; | |
29930 | char * kwnames[] = { | |
29931 | (char *) "self",(char *) "canvas", NULL | |
29932 | }; | |
29933 | ||
29934 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) SWIG_fail; | |
29935 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
29936 | if (!SWIG_IsOK(res1)) { | |
29937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_SetPreviewCanvas" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
29938 | } | |
29939 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
29940 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29941 | if (!SWIG_IsOK(res2)) { | |
29942 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewFrame_SetPreviewCanvas" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29943 | } | |
29944 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29945 | { | |
29946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29947 | (arg1)->SetPreviewCanvas(arg2); | |
29948 | wxPyEndAllowThreads(__tstate); | |
29949 | if (PyErr_Occurred()) SWIG_fail; | |
29950 | } | |
29951 | resultobj = SWIG_Py_Void(); | |
29952 | return resultobj; | |
29953 | fail: | |
29954 | return NULL; | |
29955 | } | |
29956 | ||
29957 | ||
29958 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29959 | PyObject *resultobj = 0; | |
29960 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
29961 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
29962 | void *argp1 = 0 ; | |
29963 | int res1 = 0 ; | |
29964 | void *argp2 = 0 ; | |
29965 | int res2 = 0 ; | |
29966 | PyObject * obj0 = 0 ; | |
29967 | PyObject * obj1 = 0 ; | |
29968 | char * kwnames[] = { | |
29969 | (char *) "self",(char *) "bar", NULL | |
29970 | }; | |
29971 | ||
29972 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
29973 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
29974 | if (!SWIG_IsOK(res1)) { | |
29975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_SetControlBar" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
29976 | } | |
29977 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
29978 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29979 | if (!SWIG_IsOK(res2)) { | |
29980 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewFrame_SetControlBar" "', expected argument " "2"" of type '" "wxPreviewControlBar *""'"); | |
29981 | } | |
29982 | arg2 = reinterpret_cast< wxPreviewControlBar * >(argp2); | |
29983 | { | |
29984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29985 | (arg1)->SetControlBar(arg2); | |
29986 | wxPyEndAllowThreads(__tstate); | |
29987 | if (PyErr_Occurred()) SWIG_fail; | |
29988 | } | |
29989 | resultobj = SWIG_Py_Void(); | |
29990 | return resultobj; | |
29991 | fail: | |
29992 | return NULL; | |
db3e571a RD |
29993 | } |
29994 | ||
29995 | ||
0085ce49 RD |
29996 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29997 | PyObject *resultobj = 0; | |
29998 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
29999 | void *argp1 = 0 ; | |
30000 | int res1 = 0 ; | |
30001 | PyObject *swig_obj[1] ; | |
30002 | ||
30003 | if (!args) SWIG_fail; | |
30004 | swig_obj[0] = args; | |
30005 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30006 | if (!SWIG_IsOK(res1)) { | |
30007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_Initialize" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30008 | } | |
30009 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30010 | { | |
30011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30012 | (arg1)->Initialize(); | |
30013 | wxPyEndAllowThreads(__tstate); | |
30014 | if (PyErr_Occurred()) SWIG_fail; | |
30015 | } | |
30016 | resultobj = SWIG_Py_Void(); | |
30017 | return resultobj; | |
30018 | fail: | |
30019 | return NULL; | |
976dbff5 RD |
30020 | } |
30021 | ||
30022 | ||
0085ce49 RD |
30023 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_CreateCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30024 | PyObject *resultobj = 0; | |
30025 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30026 | void *argp1 = 0 ; | |
30027 | int res1 = 0 ; | |
30028 | PyObject *swig_obj[1] ; | |
30029 | ||
30030 | if (!args) SWIG_fail; | |
30031 | swig_obj[0] = args; | |
30032 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30033 | if (!SWIG_IsOK(res1)) { | |
30034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_CreateCanvas" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30035 | } | |
30036 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30037 | { | |
30038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30039 | (arg1)->CreateCanvas(); | |
30040 | wxPyEndAllowThreads(__tstate); | |
30041 | if (PyErr_Occurred()) SWIG_fail; | |
30042 | } | |
30043 | resultobj = SWIG_Py_Void(); | |
30044 | return resultobj; | |
30045 | fail: | |
30046 | return NULL; | |
1cb4a8aa RD |
30047 | } |
30048 | ||
30049 | ||
0085ce49 RD |
30050 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_CreateControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30051 | PyObject *resultobj = 0; | |
30052 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30053 | void *argp1 = 0 ; | |
30054 | int res1 = 0 ; | |
30055 | PyObject *swig_obj[1] ; | |
30056 | ||
30057 | if (!args) SWIG_fail; | |
30058 | swig_obj[0] = args; | |
30059 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30060 | if (!SWIG_IsOK(res1)) { | |
30061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_CreateControlBar" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30062 | } | |
30063 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30064 | { | |
30065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30066 | (arg1)->CreateControlBar(); | |
30067 | wxPyEndAllowThreads(__tstate); | |
30068 | if (PyErr_Occurred()) SWIG_fail; | |
30069 | } | |
30070 | resultobj = SWIG_Py_Void(); | |
30071 | return resultobj; | |
30072 | fail: | |
30073 | return NULL; | |
30074 | } | |
30075 | ||
30076 | ||
30077 | SWIGINTERN PyObject *PyPreviewFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30078 | PyObject *obj; | |
30079 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30080 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPreviewFrame, SWIG_NewClientData(obj)); | |
30081 | return SWIG_Py_Void(); | |
30082 | } | |
30083 | ||
30084 | SWIGINTERN PyObject *PyPreviewFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30085 | return SWIG_Python_InitShadowInstance(args); | |
30086 | } | |
30087 | ||
30088 | SWIGINTERN PyObject *_wrap_new_PyPreviewControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30089 | PyObject *resultobj = 0; | |
30090 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30091 | long arg2 ; | |
30092 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30093 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
30094 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
30095 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
30096 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
30097 | long arg6 = (long) 0 ; | |
30098 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
30099 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
30100 | wxPyPreviewControlBar *result = 0 ; | |
30101 | void *argp1 = 0 ; | |
30102 | int res1 = 0 ; | |
30103 | long val2 ; | |
30104 | int ecode2 = 0 ; | |
30105 | void *argp3 = 0 ; | |
30106 | int res3 = 0 ; | |
30107 | wxPoint temp4 ; | |
30108 | wxSize temp5 ; | |
30109 | long val6 ; | |
30110 | int ecode6 = 0 ; | |
30111 | bool temp7 = false ; | |
30112 | PyObject * obj0 = 0 ; | |
30113 | PyObject * obj1 = 0 ; | |
30114 | PyObject * obj2 = 0 ; | |
30115 | PyObject * obj3 = 0 ; | |
30116 | PyObject * obj4 = 0 ; | |
30117 | PyObject * obj5 = 0 ; | |
30118 | PyObject * obj6 = 0 ; | |
30119 | char * kwnames[] = { | |
30120 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
30121 | }; | |
30122 | ||
30123 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
30124 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30125 | if (!SWIG_IsOK(res1)) { | |
30126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPreviewControlBar" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30127 | } | |
30128 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30129 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30130 | if (!SWIG_IsOK(ecode2)) { | |
30131 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyPreviewControlBar" "', expected argument " "2"" of type '" "long""'"); | |
30132 | } | |
30133 | arg2 = static_cast< long >(val2); | |
30134 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
30135 | if (!SWIG_IsOK(res3)) { | |
30136 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPreviewControlBar" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
30137 | } | |
30138 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
30139 | if (obj3) { | |
093d3ff1 | 30140 | { |
0085ce49 RD |
30141 | arg4 = &temp4; |
30142 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 30143 | } |
0085ce49 RD |
30144 | } |
30145 | if (obj4) { | |
093d3ff1 | 30146 | { |
0085ce49 RD |
30147 | arg5 = &temp5; |
30148 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 30149 | } |
0085ce49 RD |
30150 | } |
30151 | if (obj5) { | |
30152 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
30153 | if (!SWIG_IsOK(ecode6)) { | |
30154 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PyPreviewControlBar" "', expected argument " "6"" of type '" "long""'"); | |
30155 | } | |
30156 | arg6 = static_cast< long >(val6); | |
30157 | } | |
30158 | if (obj6) { | |
093d3ff1 | 30159 | { |
0085ce49 RD |
30160 | arg7 = wxString_in_helper(obj6); |
30161 | if (arg7 == NULL) SWIG_fail; | |
30162 | temp7 = true; | |
093d3ff1 | 30163 | } |
0085ce49 RD |
30164 | } |
30165 | { | |
30166 | if (!wxPyCheckForApp()) SWIG_fail; | |
30167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30168 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
30169 | wxPyEndAllowThreads(__tstate); | |
30170 | if (PyErr_Occurred()) SWIG_fail; | |
30171 | } | |
30172 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPreviewControlBar, SWIG_POINTER_NEW | 0 ); | |
30173 | { | |
30174 | if (temp7) | |
30175 | delete arg7; | |
30176 | } | |
30177 | return resultobj; | |
30178 | fail: | |
30179 | { | |
30180 | if (temp7) | |
30181 | delete arg7; | |
30182 | } | |
30183 | return NULL; | |
30184 | } | |
30185 | ||
30186 | ||
30187 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30188 | PyObject *resultobj = 0; | |
30189 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30190 | PyObject *arg2 = (PyObject *) 0 ; | |
30191 | PyObject *arg3 = (PyObject *) 0 ; | |
30192 | void *argp1 = 0 ; | |
30193 | int res1 = 0 ; | |
30194 | PyObject * obj0 = 0 ; | |
30195 | PyObject * obj1 = 0 ; | |
30196 | PyObject * obj2 = 0 ; | |
30197 | char * kwnames[] = { | |
30198 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30199 | }; | |
30200 | ||
30201 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30202 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30203 | if (!SWIG_IsOK(res1)) { | |
30204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30205 | } | |
30206 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30207 | arg2 = obj1; | |
30208 | arg3 = obj2; | |
30209 | { | |
30210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30211 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30212 | wxPyEndAllowThreads(__tstate); | |
30213 | if (PyErr_Occurred()) SWIG_fail; | |
30214 | } | |
30215 | resultobj = SWIG_Py_Void(); | |
30216 | return resultobj; | |
30217 | fail: | |
30218 | return NULL; | |
30219 | } | |
30220 | ||
30221 | ||
30222 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30223 | PyObject *resultobj = 0; | |
30224 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30225 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
30226 | void *argp1 = 0 ; | |
30227 | int res1 = 0 ; | |
30228 | void *argp2 = 0 ; | |
30229 | int res2 = 0 ; | |
30230 | PyObject * obj0 = 0 ; | |
30231 | PyObject * obj1 = 0 ; | |
30232 | char * kwnames[] = { | |
30233 | (char *) "self",(char *) "preview", NULL | |
30234 | }; | |
30235 | ||
30236 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) SWIG_fail; | |
30237 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30238 | if (!SWIG_IsOK(res1)) { | |
30239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_SetPrintPreview" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30240 | } | |
30241 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30242 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30243 | if (!SWIG_IsOK(res2)) { | |
30244 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewControlBar_SetPrintPreview" "', expected argument " "2"" of type '" "wxPrintPreview *""'"); | |
30245 | } | |
30246 | arg2 = reinterpret_cast< wxPrintPreview * >(argp2); | |
30247 | { | |
30248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30249 | (arg1)->SetPrintPreview(arg2); | |
30250 | wxPyEndAllowThreads(__tstate); | |
30251 | if (PyErr_Occurred()) SWIG_fail; | |
30252 | } | |
30253 | resultobj = SWIG_Py_Void(); | |
30254 | return resultobj; | |
30255 | fail: | |
30256 | return NULL; | |
1cb4a8aa RD |
30257 | } |
30258 | ||
30259 | ||
0085ce49 RD |
30260 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_CreateButtons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30261 | PyObject *resultobj = 0; | |
30262 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30263 | void *argp1 = 0 ; | |
30264 | int res1 = 0 ; | |
30265 | PyObject *swig_obj[1] ; | |
30266 | ||
30267 | if (!args) SWIG_fail; | |
30268 | swig_obj[0] = args; | |
30269 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30270 | if (!SWIG_IsOK(res1)) { | |
30271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_CreateButtons" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30272 | } | |
30273 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30274 | { | |
30275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30276 | (arg1)->CreateButtons(); | |
30277 | wxPyEndAllowThreads(__tstate); | |
30278 | if (PyErr_Occurred()) SWIG_fail; | |
30279 | } | |
30280 | resultobj = SWIG_Py_Void(); | |
30281 | return resultobj; | |
30282 | fail: | |
30283 | return NULL; | |
30284 | } | |
30285 | ||
30286 | ||
30287 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_SetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30288 | PyObject *resultobj = 0; | |
30289 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30290 | int arg2 ; | |
30291 | void *argp1 = 0 ; | |
30292 | int res1 = 0 ; | |
30293 | int val2 ; | |
30294 | int ecode2 = 0 ; | |
30295 | PyObject * obj0 = 0 ; | |
30296 | PyObject * obj1 = 0 ; | |
30297 | char * kwnames[] = { | |
30298 | (char *) "self",(char *) "zoom", NULL | |
30299 | }; | |
30300 | ||
30301 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
30302 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30303 | if (!SWIG_IsOK(res1)) { | |
30304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_SetZoomControl" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30305 | } | |
30306 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30307 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30308 | if (!SWIG_IsOK(ecode2)) { | |
30309 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPreviewControlBar_SetZoomControl" "', expected argument " "2"" of type '" "int""'"); | |
30310 | } | |
30311 | arg2 = static_cast< int >(val2); | |
30312 | { | |
30313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30314 | (arg1)->SetZoomControl(arg2); | |
30315 | wxPyEndAllowThreads(__tstate); | |
30316 | if (PyErr_Occurred()) SWIG_fail; | |
30317 | } | |
30318 | resultobj = SWIG_Py_Void(); | |
30319 | return resultobj; | |
30320 | fail: | |
30321 | return NULL; | |
1cb4a8aa RD |
30322 | } |
30323 | ||
30324 | ||
0085ce49 RD |
30325 | SWIGINTERN PyObject *PyPreviewControlBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30326 | PyObject *obj; | |
30327 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30328 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPreviewControlBar, SWIG_NewClientData(obj)); | |
30329 | return SWIG_Py_Void(); | |
1cb4a8aa RD |
30330 | } |
30331 | ||
0085ce49 RD |
30332 | SWIGINTERN PyObject *PyPreviewControlBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30333 | return SWIG_Python_InitShadowInstance(args); | |
1cb4a8aa RD |
30334 | } |
30335 | ||
d3b6e4ff | 30336 | static PyMethodDef SwigMethods[] = { |
093d3ff1 | 30337 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30338 | { (char *)"new_PrePanel", (PyCFunction)_wrap_new_PrePanel, METH_NOARGS, NULL}, |
093d3ff1 | 30339 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30340 | { (char *)"Panel_SetFocusIgnoringChildren", (PyCFunction)_wrap_Panel_SetFocusIgnoringChildren, METH_O, NULL}, |
093d3ff1 RD |
30341 | { (char *)"Panel_GetClassDefaultAttributes", (PyCFunction) _wrap_Panel_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
30342 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30343 | { (char *)"Panel_swiginit", Panel_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30344 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30345 | { (char *)"new_PreScrolledWindow", (PyCFunction)_wrap_new_PreScrolledWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
30346 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30347 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30348 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30349 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30350 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30351 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30352 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction)_wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_O, NULL}, |
093d3ff1 | 30353 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30354 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction)_wrap_ScrolledWindow_GetViewStart, METH_O, NULL}, |
093d3ff1 | 30355 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30356 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction)_wrap_ScrolledWindow_GetScaleX, METH_O, NULL}, |
30357 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction)_wrap_ScrolledWindow_GetScaleY, METH_O, NULL}, | |
093d3ff1 RD |
30358 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS, NULL}, |
30359 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS, NULL}, | |
0085ce49 | 30360 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction)_wrap_ScrolledWindow_AdjustScrollbars, METH_O, NULL}, |
093d3ff1 RD |
30361 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS, NULL}, |
30362 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30363 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction)_wrap_ScrolledWindow_GetTargetWindow, METH_O, NULL}, |
093d3ff1 RD |
30364 | { (char *)"ScrolledWindow_DoPrepareDC", (PyCFunction) _wrap_ScrolledWindow_DoPrepareDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
30365 | { (char *)"ScrolledWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrolledWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30366 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30367 | { (char *)"ScrolledWindow_swiginit", ScrolledWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30368 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30369 | { (char *)"TopLevelWindow_Restore", (PyCFunction)_wrap_TopLevelWindow_Restore, METH_O, NULL}, |
093d3ff1 | 30370 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30371 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction)_wrap_TopLevelWindow_IsMaximized, METH_O, NULL}, |
30372 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction)_wrap_TopLevelWindow_IsIconized, METH_O, NULL}, | |
30373 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction)_wrap_TopLevelWindow_GetIcon, METH_O, NULL}, | |
093d3ff1 RD |
30374 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, |
30375 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30376 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30377 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction)_wrap_TopLevelWindow_IsFullScreen, METH_O, NULL}, |
093d3ff1 | 30378 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30379 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction)_wrap_TopLevelWindow_GetTitle, METH_O, NULL}, |
093d3ff1 RD |
30380 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS, NULL}, |
30381 | { (char *)"TopLevelWindow_RequestUserAttention", (PyCFunction) _wrap_TopLevelWindow_RequestUserAttention, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30382 | { (char *)"TopLevelWindow_IsActive", (PyCFunction)_wrap_TopLevelWindow_IsActive, METH_O, NULL}, |
093d3ff1 | 30383 | { (char *)"TopLevelWindow_MacSetMetalAppearance", (PyCFunction) _wrap_TopLevelWindow_MacSetMetalAppearance, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30384 | { (char *)"TopLevelWindow_MacGetMetalAppearance", (PyCFunction)_wrap_TopLevelWindow_MacGetMetalAppearance, METH_O, NULL}, |
b1fcee84 | 30385 | { (char *)"TopLevelWindow_CenterOnScreen", (PyCFunction) _wrap_TopLevelWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
30386 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS, NULL}, |
30387 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30388 | { (char *)"new_PreFrame", (PyCFunction)_wrap_new_PreFrame, METH_NOARGS, NULL}, |
093d3ff1 | 30389 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30390 | { (char *)"Frame_SendSizeEvent", (PyCFunction)_wrap_Frame_SendSizeEvent, METH_O, NULL}, |
093d3ff1 | 30391 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30392 | { (char *)"Frame_GetMenuBar", (PyCFunction)_wrap_Frame_GetMenuBar, METH_O, NULL}, |
093d3ff1 RD |
30393 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS, NULL}, |
30394 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30395 | { (char *)"Frame_GetStatusBar", (PyCFunction)_wrap_Frame_GetStatusBar, METH_O, NULL}, |
093d3ff1 RD |
30396 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
30397 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30398 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30399 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30400 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30401 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30402 | { (char *)"Frame_GetStatusBarPane", (PyCFunction)_wrap_Frame_GetStatusBarPane, METH_O, NULL}, |
093d3ff1 | 30403 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30404 | { (char *)"Frame_GetToolBar", (PyCFunction)_wrap_Frame_GetToolBar, METH_O, NULL}, |
093d3ff1 RD |
30405 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
30406 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30407 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30408 | { (char *)"Frame_GetClassDefaultAttributes", (PyCFunction) _wrap_Frame_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30409 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30410 | { (char *)"Frame_swiginit", Frame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30411 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30412 | { (char *)"new_PreDialog", (PyCFunction)_wrap_new_PreDialog, METH_NOARGS, NULL}, |
093d3ff1 RD |
30413 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30414 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30415 | { (char *)"Dialog_GetReturnCode", (PyCFunction)_wrap_Dialog_GetReturnCode, METH_O, NULL}, |
b1fcee84 | 30416 | { (char *)"Dialog_SetAffirmativeId", (PyCFunction) _wrap_Dialog_SetAffirmativeId, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30417 | { (char *)"Dialog_GetAffirmativeId", (PyCFunction)_wrap_Dialog_GetAffirmativeId, METH_O, NULL}, |
b1fcee84 | 30418 | { (char *)"Dialog_SetEscapeId", (PyCFunction) _wrap_Dialog_SetEscapeId, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30419 | { (char *)"Dialog_GetEscapeId", (PyCFunction)_wrap_Dialog_GetEscapeId, METH_O, NULL}, |
093d3ff1 RD |
30420 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
30421 | { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
e505d15e | 30422 | { (char *)"Dialog_CreateStdDialogButtonSizer", (PyCFunction) _wrap_Dialog_CreateStdDialogButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30423 | { (char *)"Dialog_IsModal", (PyCFunction)_wrap_Dialog_IsModal, METH_O, NULL}, |
30424 | { (char *)"Dialog_ShowModal", (PyCFunction)_wrap_Dialog_ShowModal, METH_O, NULL}, | |
093d3ff1 RD |
30425 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS, NULL}, |
30426 | { (char *)"Dialog_GetClassDefaultAttributes", (PyCFunction) _wrap_Dialog_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30427 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30428 | { (char *)"Dialog_swiginit", Dialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30429 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30430 | { (char *)"new_PreMiniFrame", (PyCFunction)_wrap_new_PreMiniFrame, METH_NOARGS, NULL}, |
093d3ff1 RD |
30431 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30432 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30433 | { (char *)"MiniFrame_swiginit", MiniFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30434 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
30435 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30436 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction)_wrap_SplashScreenWindow_GetBitmap, METH_O, NULL}, |
093d3ff1 | 30437 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30438 | { (char *)"SplashScreenWindow_swiginit", SplashScreenWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30439 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30440 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction)_wrap_SplashScreen_GetSplashStyle, METH_O, NULL}, |
30441 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction)_wrap_SplashScreen_GetSplashWindow, METH_O, NULL}, | |
30442 | { (char *)"SplashScreen_GetTimeout", (PyCFunction)_wrap_SplashScreen_GetTimeout, METH_O, NULL}, | |
093d3ff1 | 30443 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30444 | { (char *)"SplashScreen_swiginit", SplashScreen_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30445 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30446 | { (char *)"new_PreStatusBar", (PyCFunction)_wrap_new_PreStatusBar, METH_NOARGS, NULL}, |
093d3ff1 RD |
30447 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30448 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30449 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction)_wrap_StatusBar_GetFieldsCount, METH_O, NULL}, |
093d3ff1 RD |
30450 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, |
30451 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30452 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30453 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30454 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30455 | { (char *)"StatusBar_SetStatusStyles", (PyCFunction) _wrap_StatusBar_SetStatusStyles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30456 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30457 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30458 | { (char *)"StatusBar_GetBorderX", (PyCFunction)_wrap_StatusBar_GetBorderX, METH_O, NULL}, |
30459 | { (char *)"StatusBar_GetBorderY", (PyCFunction)_wrap_StatusBar_GetBorderY, METH_O, NULL}, | |
093d3ff1 RD |
30460 | { (char *)"StatusBar_GetClassDefaultAttributes", (PyCFunction) _wrap_StatusBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
30461 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30462 | { (char *)"StatusBar_swiginit", StatusBar_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30463 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30464 | { (char *)"new_PreSplitterWindow", (PyCFunction)_wrap_new_PreSplitterWindow, METH_NOARGS, NULL}, |
093d3ff1 | 30465 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30466 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction)_wrap_SplitterWindow_GetWindow1, METH_O, NULL}, |
30467 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction)_wrap_SplitterWindow_GetWindow2, METH_O, NULL}, | |
093d3ff1 | 30468 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30469 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction)_wrap_SplitterWindow_GetSplitMode, METH_O, NULL}, |
093d3ff1 RD |
30470 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS, NULL}, |
30471 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30472 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30473 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30474 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30475 | { (char *)"SplitterWindow_UpdateSize", (PyCFunction)_wrap_SplitterWindow_UpdateSize, METH_O, NULL}, |
30476 | { (char *)"SplitterWindow_IsSplit", (PyCFunction)_wrap_SplitterWindow_IsSplit, METH_O, NULL}, | |
093d3ff1 RD |
30477 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
30478 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30479 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction)_wrap_SplitterWindow_GetSashSize, METH_O, NULL}, |
30480 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction)_wrap_SplitterWindow_GetBorderSize, METH_O, NULL}, | |
093d3ff1 | 30481 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30482 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction)_wrap_SplitterWindow_GetSashPosition, METH_O, NULL}, |
093d3ff1 | 30483 | { (char *)"SplitterWindow_SetSashGravity", (PyCFunction) _wrap_SplitterWindow_SetSashGravity, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30484 | { (char *)"SplitterWindow_GetSashGravity", (PyCFunction)_wrap_SplitterWindow_GetSashGravity, METH_O, NULL}, |
093d3ff1 | 30485 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30486 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction)_wrap_SplitterWindow_GetMinimumPaneSize, METH_O, NULL}, |
093d3ff1 | 30487 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30488 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction)_wrap_SplitterWindow_SizeWindows, METH_O, NULL}, |
093d3ff1 | 30489 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30490 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction)_wrap_SplitterWindow_GetNeedUpdating, METH_O, NULL}, |
093d3ff1 RD |
30491 | { (char *)"SplitterWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_SplitterWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
30492 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30493 | { (char *)"SplitterWindow_swiginit", SplitterWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30494 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30495 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30496 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction)_wrap_SplitterEvent_GetSashPosition, METH_O, NULL}, |
30497 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction)_wrap_SplitterEvent_GetWindowBeingRemoved, METH_O, NULL}, | |
30498 | { (char *)"SplitterEvent_GetX", (PyCFunction)_wrap_SplitterEvent_GetX, METH_O, NULL}, | |
30499 | { (char *)"SplitterEvent_GetY", (PyCFunction)_wrap_SplitterEvent_GetY, METH_O, NULL}, | |
093d3ff1 | 30500 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30501 | { (char *)"SplitterEvent_swiginit", SplitterEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30502 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30503 | { (char *)"new_PreSashWindow", (PyCFunction)_wrap_new_PreSashWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
30504 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30505 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30506 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30507 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30508 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30509 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30510 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30511 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction)_wrap_SashWindow_GetDefaultBorderSize, METH_O, NULL}, |
093d3ff1 | 30512 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30513 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction)_wrap_SashWindow_GetExtraBorderSize, METH_O, NULL}, |
093d3ff1 RD |
30514 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS, NULL}, |
30515 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30516 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction)_wrap_SashWindow_GetMinimumSizeX, METH_O, NULL}, |
30517 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction)_wrap_SashWindow_GetMinimumSizeY, METH_O, NULL}, | |
093d3ff1 RD |
30518 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS, NULL}, |
30519 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30520 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction)_wrap_SashWindow_GetMaximumSizeX, METH_O, NULL}, |
30521 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction)_wrap_SashWindow_GetMaximumSizeY, METH_O, NULL}, | |
093d3ff1 | 30522 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30523 | { (char *)"SashWindow_SizeWindows", (PyCFunction)_wrap_SashWindow_SizeWindows, METH_O, NULL}, |
093d3ff1 | 30524 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30525 | { (char *)"SashWindow_swiginit", SashWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30526 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30527 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30528 | { (char *)"SashEvent_GetEdge", (PyCFunction)_wrap_SashEvent_GetEdge, METH_O, NULL}, |
093d3ff1 | 30529 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30530 | { (char *)"SashEvent_GetDragRect", (PyCFunction)_wrap_SashEvent_GetDragRect, METH_O, NULL}, |
093d3ff1 | 30531 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30532 | { (char *)"SashEvent_GetDragStatus", (PyCFunction)_wrap_SashEvent_GetDragStatus, METH_O, NULL}, |
093d3ff1 | 30533 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30534 | { (char *)"SashEvent_swiginit", SashEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30535 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30536 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30537 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_O, NULL}, |
093d3ff1 | 30538 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30539 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetFlags, METH_O, NULL}, |
093d3ff1 | 30540 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30541 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetSize, METH_O, NULL}, |
093d3ff1 | 30542 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30543 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetOrientation, METH_O, NULL}, |
093d3ff1 | 30544 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30545 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetAlignment, METH_O, NULL}, |
093d3ff1 | 30546 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30547 | { (char *)"QueryLayoutInfoEvent_swiginit", QueryLayoutInfoEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30548 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30549 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30550 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction)_wrap_CalculateLayoutEvent_GetFlags, METH_O, NULL}, |
093d3ff1 | 30551 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30552 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction)_wrap_CalculateLayoutEvent_GetRect, METH_O, NULL}, |
093d3ff1 | 30553 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30554 | { (char *)"CalculateLayoutEvent_swiginit", CalculateLayoutEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30555 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30556 | { (char *)"new_PreSashLayoutWindow", (PyCFunction)_wrap_new_PreSashLayoutWindow, METH_NOARGS, NULL}, |
093d3ff1 | 30557 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30558 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction)_wrap_SashLayoutWindow_GetAlignment, METH_O, NULL}, |
30559 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction)_wrap_SashLayoutWindow_GetOrientation, METH_O, NULL}, | |
093d3ff1 RD |
30560 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, |
30561 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30562 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30563 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
30564 | { (char *)"SashLayoutWindow_swiginit", SashLayoutWindow_swiginit, METH_VARARGS, NULL}, |
30565 | { (char *)"new_LayoutAlgorithm", (PyCFunction)_wrap_new_LayoutAlgorithm, METH_NOARGS, NULL}, | |
30566 | { (char *)"delete_LayoutAlgorithm", (PyCFunction)_wrap_delete_LayoutAlgorithm, METH_O, NULL}, | |
093d3ff1 RD |
30567 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
30568 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30569 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30570 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30571 | { (char *)"LayoutAlgorithm_swiginit", LayoutAlgorithm_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30572 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30573 | { (char *)"new_PrePopupWindow", (PyCFunction)_wrap_new_PrePopupWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
30574 | { (char *)"PopupWindow_Create", (PyCFunction) _wrap_PopupWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30575 | { (char *)"PopupWindow_Position", (PyCFunction) _wrap_PopupWindow_Position, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30576 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30577 | { (char *)"PopupWindow_swiginit", PopupWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30578 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30579 | { (char *)"new_PrePopupTransientWindow", (PyCFunction)_wrap_new_PrePopupTransientWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
30580 | { (char *)"PopupTransientWindow__setCallbackInfo", (PyCFunction) _wrap_PopupTransientWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30581 | { (char *)"PopupTransientWindow_Popup", (PyCFunction) _wrap_PopupTransientWindow_Popup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30582 | { (char *)"PopupTransientWindow_Dismiss", (PyCFunction)_wrap_PopupTransientWindow_Dismiss, METH_O, NULL}, |
093d3ff1 | 30583 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30584 | { (char *)"PopupTransientWindow_swiginit", PopupTransientWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30585 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
30586 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30587 | { (char *)"TipWindow_Close", (PyCFunction)_wrap_TipWindow_Close, METH_O, NULL}, |
093d3ff1 | 30588 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30589 | { (char *)"TipWindow_swiginit", TipWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30590 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30591 | { (char *)"new_PreVScrolledWindow", (PyCFunction)_wrap_new_PreVScrolledWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
30592 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30593 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30594 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30595 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
30596 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS, NULL}, |
30597 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30598 | { (char *)"VScrolledWindow_HitTestXY", (PyCFunction) _wrap_VScrolledWindow_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30599 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30600 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction)_wrap_VScrolledWindow_RefreshAll, METH_O, NULL}, |
30601 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction)_wrap_VScrolledWindow_GetLineCount, METH_O, NULL}, | |
30602 | { (char *)"VScrolledWindow_GetVisibleBegin", (PyCFunction)_wrap_VScrolledWindow_GetVisibleBegin, METH_O, NULL}, | |
30603 | { (char *)"VScrolledWindow_GetVisibleEnd", (PyCFunction)_wrap_VScrolledWindow_GetVisibleEnd, METH_O, NULL}, | |
70b7a5fe | 30604 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30605 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction)_wrap_VScrolledWindow_GetFirstVisibleLine, METH_O, NULL}, |
30606 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction)_wrap_VScrolledWindow_GetLastVisibleLine, METH_O, NULL}, | |
30607 | { (char *)"VScrolledWindow_FindFirstFromBottom", (PyCFunction) _wrap_VScrolledWindow_FindFirstFromBottom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30608 | { (char *)"VScrolledWindow_GetLinesHeight", (PyCFunction) _wrap_VScrolledWindow_GetLinesHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 30609 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30610 | { (char *)"VScrolledWindow_swiginit", VScrolledWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30611 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30612 | { (char *)"new_PreVListBox", (PyCFunction)_wrap_new_PreVListBox, METH_NOARGS, NULL}, |
093d3ff1 RD |
30613 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30614 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30615 | { (char *)"VListBox_GetItemCount", (PyCFunction)_wrap_VListBox_GetItemCount, METH_O, NULL}, |
30616 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction)_wrap_VListBox_HasMultipleSelection, METH_O, NULL}, | |
30617 | { (char *)"VListBox_GetSelection", (PyCFunction)_wrap_VListBox_GetSelection, METH_O, NULL}, | |
093d3ff1 RD |
30618 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30619 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30620 | { (char *)"VListBox_GetSelectedCount", (PyCFunction)_wrap_VListBox_GetSelectedCount, METH_O, NULL}, |
30621 | { (char *)"VListBox_GetFirstSelected", (PyCFunction)_wrap_VListBox_GetFirstSelected, METH_O, NULL}, | |
093d3ff1 | 30622 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30623 | { (char *)"VListBox_GetMargins", (PyCFunction)_wrap_VListBox_GetMargins, METH_O, NULL}, |
30624 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction)_wrap_VListBox_GetSelectionBackground, METH_O, NULL}, | |
093d3ff1 | 30625 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30626 | { (char *)"VListBox_Clear", (PyCFunction)_wrap_VListBox_Clear, METH_O, NULL}, |
093d3ff1 RD |
30627 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
30628 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30629 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30630 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30631 | { (char *)"VListBox_SelectAll", (PyCFunction)_wrap_VListBox_SelectAll, METH_O, NULL}, |
30632 | { (char *)"VListBox_DeselectAll", (PyCFunction)_wrap_VListBox_DeselectAll, METH_O, NULL}, | |
093d3ff1 RD |
30633 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, |
30634 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30635 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30636 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30637 | { (char *)"VListBox_swiginit", VListBox_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30638 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30639 | { (char *)"new_PreHtmlListBox", (PyCFunction)_wrap_new_PreHtmlListBox, METH_NOARGS, NULL}, |
093d3ff1 RD |
30640 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30641 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 30642 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30643 | { (char *)"HtmlListBox_GetFileSystem", (PyCFunction)_wrap_HtmlListBox_GetFileSystem, METH_O, NULL}, |
093d3ff1 | 30644 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS, NULL}, |
0085ce49 RD |
30645 | { (char *)"HtmlListBox_swiginit", HtmlListBox_swiginit, METH_VARARGS, NULL}, |
30646 | { (char *)"new_TaskBarIcon", (PyCFunction)_wrap_new_TaskBarIcon, METH_NOARGS, NULL}, | |
30647 | { (char *)"delete_TaskBarIcon", (PyCFunction)_wrap_delete_TaskBarIcon, METH_O, NULL}, | |
093d3ff1 | 30648 | { (char *)"TaskBarIcon__setCallbackInfo", (PyCFunction) _wrap_TaskBarIcon__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30649 | { (char *)"TaskBarIcon_Destroy", (PyCFunction)_wrap_TaskBarIcon_Destroy, METH_O, NULL}, |
30650 | { (char *)"TaskBarIcon_IsOk", (PyCFunction)_wrap_TaskBarIcon_IsOk, METH_O, NULL}, | |
30651 | { (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction)_wrap_TaskBarIcon_IsIconInstalled, METH_O, NULL}, | |
093d3ff1 | 30652 | { (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30653 | { (char *)"TaskBarIcon_RemoveIcon", (PyCFunction)_wrap_TaskBarIcon_RemoveIcon, METH_O, NULL}, |
093d3ff1 RD |
30654 | { (char *)"TaskBarIcon_PopupMenu", (PyCFunction) _wrap_TaskBarIcon_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL}, |
30655 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30656 | { (char *)"TaskBarIcon_swiginit", TaskBarIcon_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30657 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30658 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
30659 | { (char *)"TaskBarIconEvent_swiginit", TaskBarIconEvent_swiginit, METH_VARARGS, NULL}, |
30660 | { (char *)"new_ColourData", (PyCFunction)_wrap_new_ColourData, METH_NOARGS, NULL}, | |
30661 | { (char *)"delete_ColourData", (PyCFunction)_wrap_delete_ColourData, METH_O, NULL}, | |
30662 | { (char *)"ColourData_GetChooseFull", (PyCFunction)_wrap_ColourData_GetChooseFull, METH_O, NULL}, | |
30663 | { (char *)"ColourData_GetColour", (PyCFunction)_wrap_ColourData_GetColour, METH_O, NULL}, | |
093d3ff1 RD |
30664 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
30665 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30666 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30667 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30668 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30669 | { (char *)"ColourData_swiginit", ColourData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30670 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30671 | { (char *)"ColourDialog_GetColourData", (PyCFunction)_wrap_ColourDialog_GetColourData, METH_O, NULL}, |
093d3ff1 | 30672 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30673 | { (char *)"ColourDialog_swiginit", ColourDialog_swiginit, METH_VARARGS, NULL}, |
32fe5131 | 30674 | { (char *)"GetColourFromUser", (PyCFunction) _wrap_GetColourFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 30675 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30676 | { (char *)"DirDialog_GetPath", (PyCFunction)_wrap_DirDialog_GetPath, METH_O, NULL}, |
30677 | { (char *)"DirDialog_GetMessage", (PyCFunction)_wrap_DirDialog_GetMessage, METH_O, NULL}, | |
30678 | { (char *)"DirDialog_GetStyle", (PyCFunction)_wrap_DirDialog_GetStyle, METH_O, NULL}, | |
093d3ff1 RD |
30679 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL}, |
30680 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30681 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30682 | { (char *)"DirDialog_swiginit", DirDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30683 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
30684 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30685 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30686 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30687 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30688 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30689 | { (char *)"FileDialog_SetStyle", (PyCFunction) _wrap_FileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30690 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30691 | { (char *)"FileDialog_GetMessage", (PyCFunction)_wrap_FileDialog_GetMessage, METH_O, NULL}, |
30692 | { (char *)"FileDialog_GetPath", (PyCFunction)_wrap_FileDialog_GetPath, METH_O, NULL}, | |
30693 | { (char *)"FileDialog_GetDirectory", (PyCFunction)_wrap_FileDialog_GetDirectory, METH_O, NULL}, | |
30694 | { (char *)"FileDialog_GetFilename", (PyCFunction)_wrap_FileDialog_GetFilename, METH_O, NULL}, | |
30695 | { (char *)"FileDialog_GetWildcard", (PyCFunction)_wrap_FileDialog_GetWildcard, METH_O, NULL}, | |
30696 | { (char *)"FileDialog_GetStyle", (PyCFunction)_wrap_FileDialog_GetStyle, METH_O, NULL}, | |
30697 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction)_wrap_FileDialog_GetFilterIndex, METH_O, NULL}, | |
30698 | { (char *)"FileDialog_GetFilenames", (PyCFunction)_wrap_FileDialog_GetFilenames, METH_O, NULL}, | |
30699 | { (char *)"FileDialog_GetPaths", (PyCFunction)_wrap_FileDialog_GetPaths, METH_O, NULL}, | |
093d3ff1 | 30700 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30701 | { (char *)"FileDialog_swiginit", FileDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30702 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
30703 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30704 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction)_wrap_MultiChoiceDialog_GetSelections, METH_O, NULL}, |
093d3ff1 | 30705 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30706 | { (char *)"MultiChoiceDialog_swiginit", MultiChoiceDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30707 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30708 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction)_wrap_SingleChoiceDialog_GetSelection, METH_O, NULL}, |
30709 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction)_wrap_SingleChoiceDialog_GetStringSelection, METH_O, NULL}, | |
093d3ff1 RD |
30710 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
30711 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30712 | { (char *)"SingleChoiceDialog_swiginit", SingleChoiceDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30713 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30714 | { (char *)"TextEntryDialog_GetValue", (PyCFunction)_wrap_TextEntryDialog_GetValue, METH_O, NULL}, |
093d3ff1 RD |
30715 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, |
30716 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30717 | { (char *)"TextEntryDialog_swiginit", TextEntryDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30718 | { (char *)"new_PasswordEntryDialog", (PyCFunction) _wrap_new_PasswordEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
30719 | { (char *)"PasswordEntryDialog_swigregister", PasswordEntryDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
30720 | { (char *)"PasswordEntryDialog_swiginit", PasswordEntryDialog_swiginit, METH_VARARGS, NULL}, |
30721 | { (char *)"new_FontData", (PyCFunction)_wrap_new_FontData, METH_NOARGS, NULL}, | |
30722 | { (char *)"delete_FontData", (PyCFunction)_wrap_delete_FontData, METH_O, NULL}, | |
093d3ff1 | 30723 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30724 | { (char *)"FontData_GetAllowSymbols", (PyCFunction)_wrap_FontData_GetAllowSymbols, METH_O, NULL}, |
30725 | { (char *)"FontData_GetColour", (PyCFunction)_wrap_FontData_GetColour, METH_O, NULL}, | |
30726 | { (char *)"FontData_GetChosenFont", (PyCFunction)_wrap_FontData_GetChosenFont, METH_O, NULL}, | |
30727 | { (char *)"FontData_GetEnableEffects", (PyCFunction)_wrap_FontData_GetEnableEffects, METH_O, NULL}, | |
30728 | { (char *)"FontData_GetInitialFont", (PyCFunction)_wrap_FontData_GetInitialFont, METH_O, NULL}, | |
30729 | { (char *)"FontData_GetShowHelp", (PyCFunction)_wrap_FontData_GetShowHelp, METH_O, NULL}, | |
093d3ff1 RD |
30730 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS, NULL}, |
30731 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30732 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30733 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30734 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30735 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30736 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30737 | { (char *)"FontData_swiginit", FontData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30738 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30739 | { (char *)"FontDialog_GetFontData", (PyCFunction)_wrap_FontDialog_GetFontData, METH_O, NULL}, |
093d3ff1 | 30740 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30741 | { (char *)"FontDialog_swiginit", FontDialog_swiginit, METH_VARARGS, NULL}, |
32fe5131 | 30742 | { (char *)"GetFontFromUser", (PyCFunction) _wrap_GetFontFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
30743 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
30744 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30745 | { (char *)"MessageDialog_swiginit", MessageDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30746 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
30747 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30748 | { (char *)"ProgressDialog_Resume", (PyCFunction)_wrap_ProgressDialog_Resume, METH_O, NULL}, |
093d3ff1 | 30749 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30750 | { (char *)"ProgressDialog_swiginit", ProgressDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30751 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30752 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction)_wrap_FindDialogEvent_GetFlags, METH_O, NULL}, |
30753 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction)_wrap_FindDialogEvent_GetFindString, METH_O, NULL}, | |
30754 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction)_wrap_FindDialogEvent_GetReplaceString, METH_O, NULL}, | |
30755 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction)_wrap_FindDialogEvent_GetDialog, METH_O, NULL}, | |
093d3ff1 RD |
30756 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
30757 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30758 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30759 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30760 | { (char *)"FindDialogEvent_swiginit", FindDialogEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30761 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30762 | { (char *)"delete_FindReplaceData", (PyCFunction)_wrap_delete_FindReplaceData, METH_O, NULL}, |
30763 | { (char *)"FindReplaceData_GetFindString", (PyCFunction)_wrap_FindReplaceData_GetFindString, METH_O, NULL}, | |
30764 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction)_wrap_FindReplaceData_GetReplaceString, METH_O, NULL}, | |
30765 | { (char *)"FindReplaceData_GetFlags", (PyCFunction)_wrap_FindReplaceData_GetFlags, METH_O, NULL}, | |
093d3ff1 RD |
30766 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
30767 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30768 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30769 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30770 | { (char *)"FindReplaceData_swiginit", FindReplaceData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30771 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30772 | { (char *)"new_PreFindReplaceDialog", (PyCFunction)_wrap_new_PreFindReplaceDialog, METH_NOARGS, NULL}, |
093d3ff1 | 30773 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30774 | { (char *)"FindReplaceDialog_GetData", (PyCFunction)_wrap_FindReplaceDialog_GetData, METH_O, NULL}, |
093d3ff1 RD |
30775 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, |
30776 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30777 | { (char *)"FindReplaceDialog_swiginit", FindReplaceDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30778 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30779 | { (char *)"new_PreMDIParentFrame", (PyCFunction)_wrap_new_PreMDIParentFrame, METH_NOARGS, NULL}, |
093d3ff1 | 30780 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30781 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction)_wrap_MDIParentFrame_ActivateNext, METH_O, NULL}, |
30782 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction)_wrap_MDIParentFrame_ActivatePrevious, METH_O, NULL}, | |
30783 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction)_wrap_MDIParentFrame_ArrangeIcons, METH_O, NULL}, | |
30784 | { (char *)"MDIParentFrame_Cascade", (PyCFunction)_wrap_MDIParentFrame_Cascade, METH_O, NULL}, | |
30785 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction)_wrap_MDIParentFrame_GetActiveChild, METH_O, NULL}, | |
30786 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction)_wrap_MDIParentFrame_GetClientWindow, METH_O, NULL}, | |
30787 | { (char *)"MDIParentFrame_GetToolBar", (PyCFunction)_wrap_MDIParentFrame_GetToolBar, METH_O, NULL}, | |
093d3ff1 RD |
30788 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS, NULL}, |
30789 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30790 | { (char *)"MDIParentFrame_swiginit", MDIParentFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30791 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30792 | { (char *)"new_PreMDIChildFrame", (PyCFunction)_wrap_new_PreMDIChildFrame, METH_NOARGS, NULL}, |
093d3ff1 | 30793 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30794 | { (char *)"MDIChildFrame_Activate", (PyCFunction)_wrap_MDIChildFrame_Activate, METH_O, NULL}, |
093d3ff1 | 30795 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30796 | { (char *)"MDIChildFrame_swiginit", MDIChildFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30797 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30798 | { (char *)"new_PreMDIClientWindow", (PyCFunction)_wrap_new_PreMDIClientWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
30799 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30800 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30801 | { (char *)"MDIClientWindow_swiginit", MDIClientWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30802 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30803 | { (char *)"new_PrePyWindow", (PyCFunction)_wrap_new_PrePyWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
30804 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30805 | { (char *)"PyWindow_SetBestSize", (PyCFunction) _wrap_PyWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
976dbff5 | 30806 | { (char *)"PyWindow_DoEraseBackground", (PyCFunction) _wrap_PyWindow_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
c26d9ab4 RD |
30807 | { (char *)"PyWindow_DoMoveWindow", (PyCFunction) _wrap_PyWindow_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
30808 | { (char *)"PyWindow_DoSetSize", (PyCFunction) _wrap_PyWindow_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30809 | { (char *)"PyWindow_DoSetClientSize", (PyCFunction) _wrap_PyWindow_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30810 | { (char *)"PyWindow_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30811 | { (char *)"PyWindow_DoGetSize", (PyCFunction)_wrap_PyWindow_DoGetSize, METH_O, NULL}, |
30812 | { (char *)"PyWindow_DoGetClientSize", (PyCFunction)_wrap_PyWindow_DoGetClientSize, METH_O, NULL}, | |
30813 | { (char *)"PyWindow_DoGetPosition", (PyCFunction)_wrap_PyWindow_DoGetPosition, METH_O, NULL}, | |
30814 | { (char *)"PyWindow_DoGetVirtualSize", (PyCFunction)_wrap_PyWindow_DoGetVirtualSize, METH_O, NULL}, | |
30815 | { (char *)"PyWindow_DoGetBestSize", (PyCFunction)_wrap_PyWindow_DoGetBestSize, METH_O, NULL}, | |
30816 | { (char *)"PyWindow_GetDefaultAttributes", (PyCFunction)_wrap_PyWindow_GetDefaultAttributes, METH_O, NULL}, | |
30817 | { (char *)"PyWindow_OnInternalIdle", (PyCFunction)_wrap_PyWindow_OnInternalIdle, METH_O, NULL}, | |
093d3ff1 | 30818 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30819 | { (char *)"PyWindow_swiginit", PyWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30820 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30821 | { (char *)"new_PrePyPanel", (PyCFunction)_wrap_new_PrePyPanel, METH_NOARGS, NULL}, |
093d3ff1 RD |
30822 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30823 | { (char *)"PyPanel_SetBestSize", (PyCFunction) _wrap_PyPanel_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
976dbff5 | 30824 | { (char *)"PyPanel_DoEraseBackground", (PyCFunction) _wrap_PyPanel_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
c26d9ab4 RD |
30825 | { (char *)"PyPanel_DoMoveWindow", (PyCFunction) _wrap_PyPanel_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
30826 | { (char *)"PyPanel_DoSetSize", (PyCFunction) _wrap_PyPanel_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30827 | { (char *)"PyPanel_DoSetClientSize", (PyCFunction) _wrap_PyPanel_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30828 | { (char *)"PyPanel_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30829 | { (char *)"PyPanel_DoGetSize", (PyCFunction)_wrap_PyPanel_DoGetSize, METH_O, NULL}, |
30830 | { (char *)"PyPanel_DoGetClientSize", (PyCFunction)_wrap_PyPanel_DoGetClientSize, METH_O, NULL}, | |
30831 | { (char *)"PyPanel_DoGetPosition", (PyCFunction)_wrap_PyPanel_DoGetPosition, METH_O, NULL}, | |
30832 | { (char *)"PyPanel_DoGetVirtualSize", (PyCFunction)_wrap_PyPanel_DoGetVirtualSize, METH_O, NULL}, | |
30833 | { (char *)"PyPanel_DoGetBestSize", (PyCFunction)_wrap_PyPanel_DoGetBestSize, METH_O, NULL}, | |
30834 | { (char *)"PyPanel_GetDefaultAttributes", (PyCFunction)_wrap_PyPanel_GetDefaultAttributes, METH_O, NULL}, | |
30835 | { (char *)"PyPanel_OnInternalIdle", (PyCFunction)_wrap_PyPanel_OnInternalIdle, METH_O, NULL}, | |
093d3ff1 | 30836 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30837 | { (char *)"PyPanel_swiginit", PyPanel_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30838 | { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30839 | { (char *)"new_PrePyScrolledWindow", (PyCFunction)_wrap_new_PrePyScrolledWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
30840 | { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30841 | { (char *)"PyScrolledWindow_SetBestSize", (PyCFunction) _wrap_PyScrolledWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
976dbff5 | 30842 | { (char *)"PyScrolledWindow_DoEraseBackground", (PyCFunction) _wrap_PyScrolledWindow_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
c26d9ab4 RD |
30843 | { (char *)"PyScrolledWindow_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
30844 | { (char *)"PyScrolledWindow_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30845 | { (char *)"PyScrolledWindow_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30846 | { (char *)"PyScrolledWindow_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30847 | { (char *)"PyScrolledWindow_DoGetSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetSize, METH_O, NULL}, |
30848 | { (char *)"PyScrolledWindow_DoGetClientSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetClientSize, METH_O, NULL}, | |
30849 | { (char *)"PyScrolledWindow_DoGetPosition", (PyCFunction)_wrap_PyScrolledWindow_DoGetPosition, METH_O, NULL}, | |
30850 | { (char *)"PyScrolledWindow_DoGetVirtualSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetVirtualSize, METH_O, NULL}, | |
30851 | { (char *)"PyScrolledWindow_DoGetBestSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetBestSize, METH_O, NULL}, | |
30852 | { (char *)"PyScrolledWindow_GetDefaultAttributes", (PyCFunction)_wrap_PyScrolledWindow_GetDefaultAttributes, METH_O, NULL}, | |
30853 | { (char *)"PyScrolledWindow_OnInternalIdle", (PyCFunction)_wrap_PyScrolledWindow_OnInternalIdle, METH_O, NULL}, | |
093d3ff1 | 30854 | { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30855 | { (char *)"PyScrolledWindow_swiginit", PyScrolledWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30856 | { (char *)"new_PrintData", _wrap_new_PrintData, METH_VARARGS, NULL}, |
0085ce49 RD |
30857 | { (char *)"delete_PrintData", (PyCFunction)_wrap_delete_PrintData, METH_O, NULL}, |
30858 | { (char *)"PrintData_GetNoCopies", (PyCFunction)_wrap_PrintData_GetNoCopies, METH_O, NULL}, | |
30859 | { (char *)"PrintData_GetCollate", (PyCFunction)_wrap_PrintData_GetCollate, METH_O, NULL}, | |
30860 | { (char *)"PrintData_GetOrientation", (PyCFunction)_wrap_PrintData_GetOrientation, METH_O, NULL}, | |
30861 | { (char *)"PrintData_Ok", (PyCFunction)_wrap_PrintData_Ok, METH_O, NULL}, | |
30862 | { (char *)"PrintData_GetPrinterName", (PyCFunction)_wrap_PrintData_GetPrinterName, METH_O, NULL}, | |
30863 | { (char *)"PrintData_GetColour", (PyCFunction)_wrap_PrintData_GetColour, METH_O, NULL}, | |
30864 | { (char *)"PrintData_GetDuplex", (PyCFunction)_wrap_PrintData_GetDuplex, METH_O, NULL}, | |
30865 | { (char *)"PrintData_GetPaperId", (PyCFunction)_wrap_PrintData_GetPaperId, METH_O, NULL}, | |
30866 | { (char *)"PrintData_GetPaperSize", (PyCFunction)_wrap_PrintData_GetPaperSize, METH_O, NULL}, | |
30867 | { (char *)"PrintData_GetQuality", (PyCFunction)_wrap_PrintData_GetQuality, METH_O, NULL}, | |
30868 | { (char *)"PrintData_GetBin", (PyCFunction)_wrap_PrintData_GetBin, METH_O, NULL}, | |
30869 | { (char *)"PrintData_GetPrintMode", (PyCFunction)_wrap_PrintData_GetPrintMode, METH_O, NULL}, | |
093d3ff1 RD |
30870 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL}, |
30871 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30872 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30873 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30874 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30875 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30876 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30877 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30878 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30879 | { (char *)"PrintData_SetBin", (PyCFunction) _wrap_PrintData_SetBin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30880 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30881 | { (char *)"PrintData_GetFilename", (PyCFunction)_wrap_PrintData_GetFilename, METH_O, NULL}, |
093d3ff1 | 30882 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30883 | { (char *)"PrintData_GetPrivData", (PyCFunction)_wrap_PrintData_GetPrivData, METH_O, NULL}, |
b9d6a5f3 | 30884 | { (char *)"PrintData_SetPrivData", (PyCFunction) _wrap_PrintData_SetPrivData, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 30885 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30886 | { (char *)"PrintData_swiginit", PrintData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30887 | { (char *)"new_PageSetupDialogData", _wrap_new_PageSetupDialogData, METH_VARARGS, NULL}, |
0085ce49 | 30888 | { (char *)"delete_PageSetupDialogData", (PyCFunction)_wrap_delete_PageSetupDialogData, METH_O, NULL}, |
093d3ff1 RD |
30889 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL}, |
30890 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30891 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30892 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30893 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30894 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction)_wrap_PageSetupDialogData_GetDefaultMinMargins, METH_O, NULL}, |
30895 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction)_wrap_PageSetupDialogData_GetEnableMargins, METH_O, NULL}, | |
30896 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction)_wrap_PageSetupDialogData_GetEnableOrientation, METH_O, NULL}, | |
30897 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction)_wrap_PageSetupDialogData_GetEnablePaper, METH_O, NULL}, | |
30898 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction)_wrap_PageSetupDialogData_GetEnablePrinter, METH_O, NULL}, | |
30899 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction)_wrap_PageSetupDialogData_GetEnableHelp, METH_O, NULL}, | |
30900 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction)_wrap_PageSetupDialogData_GetDefaultInfo, METH_O, NULL}, | |
30901 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction)_wrap_PageSetupDialogData_GetMarginTopLeft, METH_O, NULL}, | |
30902 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction)_wrap_PageSetupDialogData_GetMarginBottomRight, METH_O, NULL}, | |
30903 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction)_wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_O, NULL}, | |
30904 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction)_wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_O, NULL}, | |
30905 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction)_wrap_PageSetupDialogData_GetPaperId, METH_O, NULL}, | |
30906 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction)_wrap_PageSetupDialogData_GetPaperSize, METH_O, NULL}, | |
30907 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction)_wrap_PageSetupDialogData_GetPrintData, METH_O, NULL}, | |
30908 | { (char *)"PageSetupDialogData_Ok", (PyCFunction)_wrap_PageSetupDialogData_Ok, METH_O, NULL}, | |
093d3ff1 RD |
30909 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30910 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30911 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30912 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30913 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30914 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30915 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30916 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30917 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30918 | { (char *)"PageSetupDialogData_CalculateIdFromPaperSize", (PyCFunction)_wrap_PageSetupDialogData_CalculateIdFromPaperSize, METH_O, NULL}, |
30919 | { (char *)"PageSetupDialogData_CalculatePaperSizeFromId", (PyCFunction)_wrap_PageSetupDialogData_CalculatePaperSizeFromId, METH_O, NULL}, | |
093d3ff1 | 30920 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30921 | { (char *)"PageSetupDialogData_swiginit", PageSetupDialogData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30922 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30923 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction)_wrap_PageSetupDialog_GetPageSetupData, METH_O, NULL}, |
30924 | { (char *)"PageSetupDialog_GetPageSetupDialogData", (PyCFunction)_wrap_PageSetupDialog_GetPageSetupDialogData, METH_O, NULL}, | |
30925 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction)_wrap_PageSetupDialog_ShowModal, METH_O, NULL}, | |
093d3ff1 | 30926 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30927 | { (char *)"PageSetupDialog_swiginit", PageSetupDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30928 | { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS, NULL}, |
0085ce49 RD |
30929 | { (char *)"delete_PrintDialogData", (PyCFunction)_wrap_delete_PrintDialogData, METH_O, NULL}, |
30930 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction)_wrap_PrintDialogData_GetFromPage, METH_O, NULL}, | |
30931 | { (char *)"PrintDialogData_GetToPage", (PyCFunction)_wrap_PrintDialogData_GetToPage, METH_O, NULL}, | |
30932 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction)_wrap_PrintDialogData_GetMinPage, METH_O, NULL}, | |
30933 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction)_wrap_PrintDialogData_GetMaxPage, METH_O, NULL}, | |
30934 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction)_wrap_PrintDialogData_GetNoCopies, METH_O, NULL}, | |
30935 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction)_wrap_PrintDialogData_GetAllPages, METH_O, NULL}, | |
30936 | { (char *)"PrintDialogData_GetSelection", (PyCFunction)_wrap_PrintDialogData_GetSelection, METH_O, NULL}, | |
30937 | { (char *)"PrintDialogData_GetCollate", (PyCFunction)_wrap_PrintDialogData_GetCollate, METH_O, NULL}, | |
30938 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction)_wrap_PrintDialogData_GetPrintToFile, METH_O, NULL}, | |
093d3ff1 RD |
30939 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
30940 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30941 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30942 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30943 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30944 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30945 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30946 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30947 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30948 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30949 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30950 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30951 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30952 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction)_wrap_PrintDialogData_GetEnablePrintToFile, METH_O, NULL}, |
30953 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction)_wrap_PrintDialogData_GetEnableSelection, METH_O, NULL}, | |
30954 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction)_wrap_PrintDialogData_GetEnablePageNumbers, METH_O, NULL}, | |
30955 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction)_wrap_PrintDialogData_GetEnableHelp, METH_O, NULL}, | |
30956 | { (char *)"PrintDialogData_Ok", (PyCFunction)_wrap_PrintDialogData_Ok, METH_O, NULL}, | |
30957 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction)_wrap_PrintDialogData_GetPrintData, METH_O, NULL}, | |
093d3ff1 RD |
30958 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, |
30959 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 30960 | { (char *)"PrintDialogData_swiginit", PrintDialogData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30961 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30962 | { (char *)"PrintDialog_ShowModal", (PyCFunction)_wrap_PrintDialog_ShowModal, METH_O, NULL}, |
30963 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction)_wrap_PrintDialog_GetPrintDialogData, METH_O, NULL}, | |
30964 | { (char *)"PrintDialog_GetPrintData", (PyCFunction)_wrap_PrintDialog_GetPrintData, METH_O, NULL}, | |
30965 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction)_wrap_PrintDialog_GetPrintDC, METH_O, NULL}, | |
093d3ff1 | 30966 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30967 | { (char *)"PrintDialog_swiginit", PrintDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30968 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30969 | { (char *)"delete_Printer", (PyCFunction)_wrap_delete_Printer, METH_O, NULL}, |
093d3ff1 RD |
30970 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
30971 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30972 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30973 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30974 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
30975 | { (char *)"Printer_GetPrintDialogData", (PyCFunction)_wrap_Printer_GetPrintDialogData, METH_O, NULL}, |
30976 | { (char *)"Printer_GetAbort", (PyCFunction)_wrap_Printer_GetAbort, METH_O, NULL}, | |
30977 | { (char *)"Printer_GetLastError", (PyCFunction)_wrap_Printer_GetLastError, METH_NOARGS, NULL}, | |
093d3ff1 | 30978 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 30979 | { (char *)"Printer_swiginit", Printer_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30980 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30981 | { (char *)"delete_Printout", (PyCFunction)_wrap_delete_Printout, METH_O, NULL}, |
093d3ff1 | 30982 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30983 | { (char *)"Printout_GetTitle", (PyCFunction)_wrap_Printout_GetTitle, METH_O, NULL}, |
30984 | { (char *)"Printout_GetDC", (PyCFunction)_wrap_Printout_GetDC, METH_O, NULL}, | |
093d3ff1 RD |
30985 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
30986 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 30987 | { (char *)"Printout_GetPageSizePixels", (PyCFunction)_wrap_Printout_GetPageSizePixels, METH_O, NULL}, |
093d3ff1 | 30988 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30989 | { (char *)"Printout_GetPageSizeMM", (PyCFunction)_wrap_Printout_GetPageSizeMM, METH_O, NULL}, |
093d3ff1 | 30990 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 30991 | { (char *)"Printout_GetPPIScreen", (PyCFunction)_wrap_Printout_GetPPIScreen, METH_O, NULL}, |
093d3ff1 | 30992 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30993 | { (char *)"Printout_GetPPIPrinter", (PyCFunction)_wrap_Printout_GetPPIPrinter, METH_O, NULL}, |
30994 | { (char *)"Printout_IsPreview", (PyCFunction)_wrap_Printout_IsPreview, METH_O, NULL}, | |
093d3ff1 | 30995 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS, NULL}, |
c26d9ab4 | 30996 | { (char *)"Printout_OnBeginDocument", (PyCFunction) _wrap_Printout_OnBeginDocument, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
30997 | { (char *)"Printout_OnEndDocument", (PyCFunction)_wrap_Printout_OnEndDocument, METH_O, NULL}, |
30998 | { (char *)"Printout_OnBeginPrinting", (PyCFunction)_wrap_Printout_OnBeginPrinting, METH_O, NULL}, | |
30999 | { (char *)"Printout_OnEndPrinting", (PyCFunction)_wrap_Printout_OnEndPrinting, METH_O, NULL}, | |
31000 | { (char *)"Printout_OnPreparePrinting", (PyCFunction)_wrap_Printout_OnPreparePrinting, METH_O, NULL}, | |
c26d9ab4 | 31001 | { (char *)"Printout_HasPage", (PyCFunction) _wrap_Printout_HasPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31002 | { (char *)"Printout_GetPageInfo", (PyCFunction)_wrap_Printout_GetPageInfo, METH_O, NULL}, |
093d3ff1 | 31003 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31004 | { (char *)"Printout_swiginit", Printout_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31005 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, |
31006 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31007 | { (char *)"PreviewCanvas_swiginit", PreviewCanvas_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31008 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31009 | { (char *)"PreviewFrame_Initialize", (PyCFunction)_wrap_PreviewFrame_Initialize, METH_O, NULL}, |
31010 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction)_wrap_PreviewFrame_CreateControlBar, METH_O, NULL}, | |
31011 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction)_wrap_PreviewFrame_CreateCanvas, METH_O, NULL}, | |
31012 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction)_wrap_PreviewFrame_GetControlBar, METH_O, NULL}, | |
093d3ff1 | 31013 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31014 | { (char *)"PreviewFrame_swiginit", PreviewFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31015 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31016 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction)_wrap_PreviewControlBar_GetZoomControl, METH_O, NULL}, |
093d3ff1 | 31017 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31018 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction)_wrap_PreviewControlBar_GetPrintPreview, METH_O, NULL}, |
31019 | { (char *)"PreviewControlBar_OnNext", (PyCFunction)_wrap_PreviewControlBar_OnNext, METH_O, NULL}, | |
31020 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction)_wrap_PreviewControlBar_OnPrevious, METH_O, NULL}, | |
31021 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction)_wrap_PreviewControlBar_OnFirst, METH_O, NULL}, | |
31022 | { (char *)"PreviewControlBar_OnLast", (PyCFunction)_wrap_PreviewControlBar_OnLast, METH_O, NULL}, | |
31023 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction)_wrap_PreviewControlBar_OnGoto, METH_O, NULL}, | |
093d3ff1 | 31024 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31025 | { (char *)"PreviewControlBar_swiginit", PreviewControlBar_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31026 | { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS, NULL}, |
0085ce49 | 31027 | { (char *)"delete_PrintPreview", (PyCFunction)_wrap_delete_PrintPreview, METH_O, NULL}, |
093d3ff1 | 31028 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31029 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction)_wrap_PrintPreview_GetCurrentPage, METH_O, NULL}, |
093d3ff1 | 31030 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31031 | { (char *)"PrintPreview_GetPrintout", (PyCFunction)_wrap_PrintPreview_GetPrintout, METH_O, NULL}, |
31032 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction)_wrap_PrintPreview_GetPrintoutForPrinting, METH_O, NULL}, | |
093d3ff1 RD |
31033 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
31034 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31035 | { (char *)"PrintPreview_GetFrame", (PyCFunction)_wrap_PrintPreview_GetFrame, METH_O, NULL}, |
31036 | { (char *)"PrintPreview_GetCanvas", (PyCFunction)_wrap_PrintPreview_GetCanvas, METH_O, NULL}, | |
093d3ff1 RD |
31037 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
31038 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31039 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31040 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31041 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction)_wrap_PrintPreview_GetPrintDialogData, METH_O, NULL}, |
093d3ff1 | 31042 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31043 | { (char *)"PrintPreview_GetZoom", (PyCFunction)_wrap_PrintPreview_GetZoom, METH_O, NULL}, |
31044 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction)_wrap_PrintPreview_GetMaxPage, METH_O, NULL}, | |
31045 | { (char *)"PrintPreview_GetMinPage", (PyCFunction)_wrap_PrintPreview_GetMinPage, METH_O, NULL}, | |
31046 | { (char *)"PrintPreview_Ok", (PyCFunction)_wrap_PrintPreview_Ok, METH_O, NULL}, | |
093d3ff1 RD |
31047 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS, NULL}, |
31048 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31049 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction)_wrap_PrintPreview_DetermineScaling, METH_O, NULL}, |
093d3ff1 | 31050 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31051 | { (char *)"PrintPreview_swiginit", PrintPreview_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31052 | { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS, NULL}, |
31053 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 31054 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31055 | { (char *)"PyPrintPreview_swiginit", PyPrintPreview_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31056 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
31057 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31058 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31059 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31060 | { (char *)"PyPreviewFrame_Initialize", (PyCFunction)_wrap_PyPreviewFrame_Initialize, METH_O, NULL}, |
31061 | { (char *)"PyPreviewFrame_CreateCanvas", (PyCFunction)_wrap_PyPreviewFrame_CreateCanvas, METH_O, NULL}, | |
31062 | { (char *)"PyPreviewFrame_CreateControlBar", (PyCFunction)_wrap_PyPreviewFrame_CreateControlBar, METH_O, NULL}, | |
093d3ff1 | 31063 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31064 | { (char *)"PyPreviewFrame_swiginit", PyPreviewFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31065 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
31066 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31067 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31068 | { (char *)"PyPreviewControlBar_CreateButtons", (PyCFunction)_wrap_PyPreviewControlBar_CreateButtons, METH_O, NULL}, |
c26d9ab4 | 31069 | { (char *)"PyPreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 31070 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31071 | { (char *)"PyPreviewControlBar_swiginit", PyPreviewControlBar_swiginit, METH_VARARGS, NULL}, |
c32bde28 | 31072 | { NULL, NULL, 0, NULL } |
d14a1e28 RD |
31073 | }; |
31074 | ||
31075 | ||
31076 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
31077 | ||
31078 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
31079 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31080 | } | |
31081 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
31082 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31083 | } | |
31084 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
31085 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
31086 | } | |
31087 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
31088 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
31089 | } | |
31090 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
31091 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
31092 | } | |
31093 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
31094 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
31095 | } | |
31096 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
31097 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
31098 | } | |
31099 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
31100 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
31101 | } | |
31102 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
31103 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
31104 | } | |
31105 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
31106 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
31107 | } | |
31108 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
31109 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
31110 | } | |
31111 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
31112 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
31113 | } | |
31114 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
31115 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31116 | } | |
31117 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
31118 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
31119 | } | |
31120 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
31121 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
31122 | } | |
31123 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
31124 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31125 | } | |
31126 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
31127 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31128 | } | |
31129 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
31130 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
31131 | } | |
31132 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
31133 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
31134 | } | |
31135 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
31136 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
31137 | } | |
31138 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
31139 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
31140 | } | |
31141 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
31142 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
31143 | } | |
53aa7709 RD |
31144 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
31145 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
31146 | } | |
d14a1e28 RD |
31147 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
31148 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
31149 | } | |
31150 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
31151 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
31152 | } | |
31153 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
31154 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31155 | } | |
31156 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
31157 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31158 | } | |
31159 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
31160 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31161 | } | |
31162 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
31163 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31164 | } | |
31165 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
31166 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31167 | } | |
31168 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
31169 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
31170 | } | |
31171 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
31172 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
31173 | } | |
31174 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
31175 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31176 | } | |
31177 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
31178 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
31179 | } | |
31180 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
31181 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
31182 | } | |
31183 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
31184 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
31185 | } | |
31186 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
31187 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
31188 | } | |
31189 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
31190 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31191 | } | |
31192 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
31193 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31194 | } | |
31195 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
31196 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31197 | } | |
31198 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
31199 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
31200 | } | |
31201 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
31202 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
31203 | } | |
31204 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
31205 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
31206 | } | |
31207 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
31208 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
31209 | } | |
d3b6e4ff RD |
31210 | static void *_p_wxPasswordEntryDialogTo_p_wxTextEntryDialog(void *x) { |
31211 | return (void *)((wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31212 | } | |
d14a1e28 RD |
31213 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { |
31214 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
31215 | } | |
31216 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
31217 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
31218 | } | |
31219 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
31220 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
31221 | } | |
31222 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
31223 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
31224 | } | |
31225 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
31226 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
31227 | } | |
31228 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
31229 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
31230 | } | |
31231 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
31232 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
31233 | } | |
d3b6e4ff RD |
31234 | static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) { |
31235 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31236 | } | |
d14a1e28 RD |
31237 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { |
31238 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
31239 | } | |
31240 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
31241 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
31242 | } | |
31243 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
31244 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
31245 | } | |
31246 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
31247 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
31248 | } | |
31249 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
31250 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
31251 | } | |
31252 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
31253 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
31254 | } | |
31255 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
31256 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
31257 | } | |
31258 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
31259 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
31260 | } | |
31261 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
31262 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
31263 | } | |
31264 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
31265 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
31266 | } | |
31267 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
31268 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
31269 | } | |
31270 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
31271 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
31272 | } | |
31273 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
31274 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
31275 | } | |
31276 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
31277 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
31278 | } | |
31279 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
31280 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
31281 | } | |
31282 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
31283 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
31284 | } | |
31285 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
31286 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
31287 | } | |
31288 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
31289 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
31290 | } | |
31291 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
31292 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
31293 | } | |
31294 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
31295 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
31296 | } | |
31297 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
31298 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
31299 | } | |
1cb4a8aa RD |
31300 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { |
31301 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
31302 | } | |
d14a1e28 RD |
31303 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { |
31304 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
31305 | } | |
31306 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
31307 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
31308 | } | |
31309 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
31310 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31311 | } | |
31312 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
31313 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
31314 | } | |
31315 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
31316 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
31317 | } | |
31318 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
31319 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31320 | } | |
31321 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
31322 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
31323 | } | |
31324 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
31325 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
31326 | } | |
31327 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
31328 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
31329 | } | |
31330 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
31331 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
31332 | } | |
31333 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
31334 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
31335 | } | |
31336 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
31337 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
31338 | } | |
5e483524 RD |
31339 | static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) { |
31340 | return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d14a1e28 RD |
31341 | } |
31342 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
31343 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
31344 | } | |
d14a1e28 RD |
31345 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { |
31346 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
31347 | } | |
31348 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
31349 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
31350 | } | |
31351 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
31352 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
31353 | } | |
d3b6e4ff RD |
31354 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { |
31355 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
31356 | } | |
d14a1e28 RD |
31357 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { |
31358 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
31359 | } | |
31360 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
31361 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
31362 | } | |
31363 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
31364 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
31365 | } | |
31366 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
31367 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
31368 | } | |
31369 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
31370 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
31371 | } | |
31372 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
31373 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31374 | } | |
31375 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
31376 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
31377 | } | |
31378 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
31379 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
31380 | } | |
31381 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
31382 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
31383 | } | |
31384 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
31385 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
31386 | } | |
31387 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
31388 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
31389 | } | |
31390 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
31391 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
31392 | } | |
31393 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
31394 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31395 | } | |
31396 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
31397 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
31398 | } | |
31399 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
31400 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
31401 | } | |
31402 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
31403 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
31404 | } | |
31405 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
31406 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
31407 | } | |
31408 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
31409 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
31410 | } | |
31411 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
31412 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
31413 | } | |
31414 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
31415 | return (void *)((wxObject *) ((wxSizer *) x)); | |
31416 | } | |
31417 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
31418 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
31419 | } | |
31420 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
31421 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31422 | } | |
31423 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
31424 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
31425 | } | |
31426 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
31427 | return (void *)((wxObject *) ((wxEvent *) x)); | |
31428 | } | |
31429 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
31430 | return (void *)((wxObject *) ((wxFontData *) x)); | |
31431 | } | |
31432 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
31433 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
31434 | } | |
31435 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
31436 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
31437 | } | |
31438 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
31439 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
31440 | } | |
31441 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
31442 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
31443 | } | |
31444 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
31445 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
31446 | } | |
5e483524 RD |
31447 | static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) { |
31448 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d14a1e28 RD |
31449 | } |
31450 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
31451 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
31452 | } | |
31453 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
31454 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
31455 | } | |
31456 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
31457 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
31458 | } | |
31459 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
31460 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31461 | } | |
31462 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
31463 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31464 | } | |
31465 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
31466 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31467 | } | |
31468 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
31469 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31470 | } | |
31471 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
31472 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
31473 | } | |
31474 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
31475 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
31476 | } | |
31477 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
31478 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
31479 | } | |
31480 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
31481 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
31482 | } | |
31483 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
31484 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
31485 | } | |
31486 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
31487 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
31488 | } | |
31489 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
31490 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
31491 | } | |
31492 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
31493 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
31494 | } | |
31495 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
31496 | return (void *)((wxObject *) ((wxColourData *) x)); | |
31497 | } | |
31498 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
31499 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
31500 | } | |
31501 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
31502 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31503 | } | |
31504 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
31505 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
31506 | } | |
31507 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
31508 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
31509 | } | |
31510 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
31511 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
31512 | } | |
31513 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
31514 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
31515 | } | |
31516 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
31517 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
31518 | } | |
31519 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
31520 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
31521 | } | |
d3b6e4ff RD |
31522 | static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) { |
31523 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31524 | } | |
d14a1e28 RD |
31525 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { |
31526 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
31527 | } | |
31528 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
31529 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
31530 | } | |
31531 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
31532 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
31533 | } | |
31534 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
31535 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
31536 | } | |
31537 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
31538 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
31539 | } | |
31540 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
31541 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
31542 | } | |
53aa7709 RD |
31543 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
31544 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
31545 | } | |
d14a1e28 RD |
31546 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
31547 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
31548 | } | |
31549 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
31550 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31551 | } | |
31552 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
31553 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31554 | } | |
31555 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
31556 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
31557 | } | |
31558 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
31559 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
31560 | } | |
31561 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
31562 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
31563 | } | |
31564 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
31565 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
31566 | } | |
31567 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
31568 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
31569 | } | |
d14a1e28 RD |
31570 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
31571 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
31572 | } | |
31573 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
31574 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
31575 | } | |
31576 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
31577 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
31578 | } | |
31579 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
31580 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
31581 | } | |
31582 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
31583 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
31584 | } | |
31585 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
31586 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
31587 | } | |
31588 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
31589 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
31590 | } | |
31591 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
31592 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
31593 | } | |
31594 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
31595 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
31596 | } | |
943e8dfd RD |
31597 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
31598 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
31599 | } | |
d14a1e28 RD |
31600 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
31601 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
31602 | } | |
943e8dfd RD |
31603 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
31604 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
31605 | } | |
d14a1e28 RD |
31606 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
31607 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
31608 | } | |
31609 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
31610 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
31611 | } | |
31612 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
31613 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
31614 | } | |
31615 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
31616 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
31617 | } | |
31618 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
31619 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
31620 | } | |
e505d15e RD |
31621 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
31622 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
31623 | } | |
d14a1e28 RD |
31624 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
31625 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
31626 | } | |
31627 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
31628 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
31629 | } | |
31630 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
31631 | return (void *)((wxObject *) ((wxImage *) x)); | |
31632 | } | |
31633 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
31634 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
31635 | } | |
31636 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
31637 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
31638 | } | |
31639 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
31640 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
31641 | } | |
31642 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
31643 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
31644 | } | |
31645 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
31646 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
31647 | } | |
31648 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
31649 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
31650 | } | |
31651 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
31652 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31653 | } | |
31654 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
31655 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31656 | } | |
31657 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
31658 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
31659 | } | |
d14a1e28 RD |
31660 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
31661 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
31662 | } | |
31663 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
31664 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
31665 | } | |
31666 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
31667 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
31668 | } | |
1e0c8722 RD |
31669 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { |
31670 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
31671 | } | |
d14a1e28 RD |
31672 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { |
31673 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
31674 | } | |
31675 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
31676 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
31677 | } | |
31678 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
31679 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
31680 | } | |
31681 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
31682 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
31683 | } | |
31684 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
31685 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
31686 | } | |
31687 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
31688 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
31689 | } | |
31690 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
31691 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
31692 | } | |
31693 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
31694 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
31695 | } | |
31696 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
31697 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
31698 | } | |
31699 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
31700 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
31701 | } | |
1cb4a8aa RD |
31702 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { |
31703 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
31704 | } | |
d14a1e28 RD |
31705 | static void *_p_wxSashEventTo_p_wxObject(void *x) { |
31706 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
31707 | } | |
31708 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
31709 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
31710 | } | |
31711 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
31712 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
31713 | } | |
31714 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
31715 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
31716 | } | |
31717 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
31718 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
31719 | } | |
31720 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
31721 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
31722 | } | |
31723 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
31724 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
31725 | } | |
31726 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
31727 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
31728 | } | |
31729 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
8ac8dba0 | 31730 | return (void *)((wxObject *) ((wxPageSetupDialog *) x)); |
d14a1e28 RD |
31731 | } |
31732 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
a68b8331 | 31733 | return (void *)((wxObject *) ((wxPrintDialog *) x)); |
d14a1e28 RD |
31734 | } |
31735 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
31736 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
31737 | } | |
31738 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
31739 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31740 | } | |
31741 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
31742 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
31743 | } | |
31744 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
31745 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
31746 | } | |
31747 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
31748 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
31749 | } | |
31750 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
31751 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
31752 | } | |
31753 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
31754 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
31755 | } | |
31756 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
31757 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31758 | } | |
31759 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
31760 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
31761 | } | |
31762 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
31763 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
31764 | } | |
31765 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
31766 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
31767 | } | |
31768 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
31769 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
31770 | } | |
31771 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
31772 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
31773 | } | |
31774 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
31775 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31776 | } | |
31777 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
31778 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31779 | } | |
31780 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
31781 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
31782 | } | |
31783 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
31784 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
31785 | } | |
31786 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
31787 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
31788 | } | |
31789 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
31790 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
31791 | } | |
31792 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
31793 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
31794 | } | |
31795 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
31796 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
31797 | } | |
31798 | static void *_p_wxTipWindowTo_p_wxPyPopupTransientWindow(void *x) { | |
31799 | return (void *)((wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
31800 | } | |
31801 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
31802 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
31803 | } | |
31804 | static void *_p_wxTipWindowTo_p_wxPopupWindow(void *x) { | |
31805 | return (void *)((wxPopupWindow *) (wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
31806 | } | |
31807 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
31808 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
31809 | } | |
31810 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
31811 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
31812 | } | |
31813 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
31814 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
31815 | } | |
31816 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
31817 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
31818 | } | |
31819 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
31820 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
31821 | } | |
31822 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
31823 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
31824 | } | |
31825 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
31826 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
31827 | } | |
d14a1e28 RD |
31828 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { |
31829 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
31830 | } | |
31831 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
31832 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
31833 | } | |
31834 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
31835 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
31836 | } | |
d14a1e28 RD |
31837 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { |
31838 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
31839 | } | |
31840 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { | |
31841 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
31842 | } | |
d3b6e4ff RD |
31843 | static void *_p_wxPasswordEntryDialogTo_p_wxTopLevelWindow(void *x) { |
31844 | return (void *)((wxTopLevelWindow *) (wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31845 | } | |
d14a1e28 RD |
31846 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { |
31847 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
31848 | } | |
31849 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
31850 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
31851 | } | |
31852 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
31853 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
31854 | } | |
31855 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
31856 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
31857 | } | |
d3b6e4ff RD |
31858 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { |
31859 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
31860 | } | |
d14a1e28 RD |
31861 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { |
31862 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
31863 | } | |
31864 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
31865 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31866 | } | |
31867 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
31868 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
31869 | } | |
31870 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
31871 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
31872 | } | |
31873 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
31874 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
31875 | } | |
31876 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
31877 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
31878 | } | |
31879 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
31880 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
31881 | } | |
31882 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
31883 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
31884 | } | |
31885 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
31886 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
31887 | } | |
d3b6e4ff RD |
31888 | static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) { |
31889 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31890 | } | |
d14a1e28 RD |
31891 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { |
31892 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
31893 | } | |
31894 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
31895 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
31896 | } | |
31897 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
31898 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
31899 | } | |
31900 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
31901 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
31902 | } | |
31903 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
31904 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
31905 | } | |
31906 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
31907 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
31908 | } | |
d14a1e28 RD |
31909 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { |
31910 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
31911 | } | |
31912 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
31913 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
31914 | } | |
31915 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
31916 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
31917 | } | |
31918 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
31919 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
31920 | } | |
31921 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
31922 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
31923 | } | |
31924 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
31925 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
31926 | } | |
31927 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
31928 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
31929 | } | |
31930 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
31931 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
31932 | } | |
31933 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
31934 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
31935 | } | |
31936 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
31937 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
31938 | } | |
d3b6e4ff RD |
31939 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { |
31940 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
31941 | } | |
1cb4a8aa RD |
31942 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { |
31943 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
31944 | } | |
d14a1e28 RD |
31945 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
31946 | return (void *)((wxWindow *) ((wxControl *) x)); | |
31947 | } | |
31948 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
31949 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
31950 | } | |
31951 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
31952 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31953 | } | |
31954 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
31955 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
31956 | } | |
31957 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
31958 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
31959 | } | |
31960 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
31961 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
31962 | } | |
31963 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
31964 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
31965 | } | |
31966 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
31967 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
31968 | } | |
31969 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
31970 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
31971 | } | |
31972 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
31973 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
31974 | } | |
31975 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
31976 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
31977 | } | |
31978 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
31979 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
31980 | } | |
31981 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
31982 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
31983 | } | |
31984 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
31985 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
31986 | } | |
31987 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
31988 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
31989 | } | |
31990 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
31991 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
31992 | } | |
d14a1e28 RD |
31993 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { |
31994 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
31995 | } | |
1cb4a8aa RD |
31996 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { |
31997 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
31998 | } | |
d14a1e28 RD |
31999 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { |
32000 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32001 | } | |
32002 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
32003 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
32004 | } | |
32005 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
32006 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
32007 | } | |
32008 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
32009 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
32010 | } | |
32011 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
32012 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
32013 | } | |
d14a1e28 RD |
32014 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { |
32015 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
32016 | } | |
32017 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
32018 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32019 | } | |
32020 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
32021 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32022 | } | |
32023 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
32024 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
32025 | } | |
d3b6e4ff RD |
32026 | static void *_p_wxPasswordEntryDialogTo_p_wxDialog(void *x) { |
32027 | return (void *)((wxDialog *) (wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32028 | } | |
d14a1e28 RD |
32029 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { |
32030 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
32031 | } | |
32032 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
32033 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
32034 | } | |
32035 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
32036 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
32037 | } | |
32038 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
32039 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
32040 | } | |
1cb4a8aa RD |
32041 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { |
32042 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32043 | } | |
d14a1e28 RD |
32044 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { |
32045 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32046 | } | |
32047 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
32048 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32049 | } | |
32050 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
32051 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
32052 | } | |
32053 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
32054 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32055 | } | |
32056 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
32057 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
32058 | } | |
32059 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
32060 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32061 | } | |
32062 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
32063 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32064 | } | |
32065 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
32066 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
32067 | } | |
32068 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
32069 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32070 | } | |
53aa7709 RD |
32071 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { |
32072 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
32073 | } | |
d14a1e28 RD |
32074 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { |
32075 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32076 | } | |
32077 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
32078 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
32079 | } | |
32080 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
32081 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32082 | } | |
32083 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
32084 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32085 | } | |
32086 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
32087 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
32088 | } | |
32089 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
32090 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32091 | } | |
32092 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
32093 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32094 | } | |
32095 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
32096 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
32097 | } | |
32098 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
32099 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32100 | } | |
0085ce49 RD |
32101 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
32102 | 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}; | |
32103 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
32104 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
32105 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
32106 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
32107 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
32108 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
32109 | static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", "wxCalculateLayoutEvent *", 0, 0, (void*)0, 0}; | |
32110 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
32111 | static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", "wxColourData *", 0, 0, (void*)0, 0}; | |
32112 | static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", "wxColourDialog *", 0, 0, (void*)0, 0}; | |
32113 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
32114 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
32115 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; | |
32116 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
32117 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
32118 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
32119 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
32120 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
32121 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
32122 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
32123 | static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", "wxDialog *", 0, 0, (void*)0, 0}; | |
32124 | static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", "wxDirDialog *", 0, 0, (void*)0, 0}; | |
32125 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
32126 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
32127 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
32128 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
32129 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
32130 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
32131 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
32132 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
32133 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
32134 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
32135 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
32136 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
32137 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
32138 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
32139 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
32140 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
32141 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
32142 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
32143 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
32144 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
32145 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
32146 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
32147 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
32148 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
32149 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
32150 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
32151 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
32152 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
32153 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
32154 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
32155 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
32156 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
32157 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
32158 | static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", "wxFileDialog *", 0, 0, (void*)0, 0}; | |
32159 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0}; | |
32160 | static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", "wxFindDialogEvent *", 0, 0, (void*)0, 0}; | |
32161 | static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", "wxFindReplaceData *", 0, 0, (void*)0, 0}; | |
32162 | static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", "wxFindReplaceDialog *", 0, 0, (void*)0, 0}; | |
32163 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
32164 | static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", "wxFontData *", 0, 0, (void*)0, 0}; | |
32165 | static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", "wxFontDialog *", 0, 0, (void*)0, 0}; | |
32166 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0}; | |
32167 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; | |
32168 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
32169 | static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", "wxLayoutAlgorithm *", 0, 0, (void*)0, 0}; | |
32170 | static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", "wxMDIChildFrame *", 0, 0, (void*)0, 0}; | |
32171 | static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", "wxMDIClientWindow *", 0, 0, (void*)0, 0}; | |
32172 | static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", "wxMDIParentFrame *", 0, 0, (void*)0, 0}; | |
32173 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0}; | |
32174 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", "wxMenuBar *", 0, 0, (void*)0, 0}; | |
32175 | static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", "wxMessageDialog *", 0, 0, (void*)0, 0}; | |
32176 | static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", "wxMiniFrame *", 0, 0, (void*)0, 0}; | |
32177 | static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", "wxMultiChoiceDialog *", 0, 0, (void*)0, 0}; | |
32178 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
32179 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
32180 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
32181 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; | |
32182 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; | |
32183 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
32184 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
32185 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
32186 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
32187 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
32188 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
32189 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
32190 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
32191 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
32192 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
32193 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
32194 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
32195 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
32196 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
32197 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
32198 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
32199 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
32200 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
32201 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
32202 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
32203 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
32204 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
32205 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
32206 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
32207 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; | |
32208 | static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", "wxPageSetupDialog *", 0, 0, (void*)0, 0}; | |
32209 | static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", "wxPageSetupDialogData *", 0, 0, (void*)0, 0}; | |
32210 | static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0}; | |
32211 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
32212 | static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", "wxPasswordEntryDialog *", 0, 0, (void*)0, 0}; | |
32213 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; | |
32214 | static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", "wxPopupWindow *", 0, 0, (void*)0, 0}; | |
32215 | static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", "wxPreviewCanvas *", 0, 0, (void*)0, 0}; | |
32216 | static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", "wxPreviewControlBar *", 0, 0, (void*)0, 0}; | |
32217 | static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", "wxPreviewFrame *", 0, 0, (void*)0, 0}; | |
32218 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
32219 | static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", "wxPrintDialog *", 0, 0, (void*)0, 0}; | |
32220 | static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", "wxPrintDialogData *", 0, 0, (void*)0, 0}; | |
32221 | static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", "wxPrintPreview *", 0, 0, (void*)0, 0}; | |
32222 | static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", "wxPrinter *", 0, 0, (void*)0, 0}; | |
32223 | static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", "wxProgressDialog *", 0, 0, (void*)0, 0}; | |
32224 | static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", "wxPyHtmlListBox *", 0, 0, (void*)0, 0}; | |
32225 | static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", "wxPyPanel *", 0, 0, (void*)0, 0}; | |
32226 | static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", "wxPyPopupTransientWindow *", 0, 0, (void*)0, 0}; | |
32227 | static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", "wxPyPreviewControlBar *", 0, 0, (void*)0, 0}; | |
32228 | static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", "wxPyPreviewFrame *", 0, 0, (void*)0, 0}; | |
32229 | static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", "wxPyPrintPreview *", 0, 0, (void*)0, 0}; | |
32230 | static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", "wxPyPrintout *", 0, 0, (void*)0, 0}; | |
32231 | static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", "wxPyScrolledWindow *", 0, 0, (void*)0, 0}; | |
32232 | static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", "wxPyTaskBarIcon *", 0, 0, (void*)0, 0}; | |
32233 | static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", "wxPyVListBox *", 0, 0, (void*)0, 0}; | |
32234 | static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", "wxPyVScrolledWindow *", 0, 0, (void*)0, 0}; | |
32235 | static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", "wxPyWindow *", 0, 0, (void*)0, 0}; | |
32236 | static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", "wxQueryLayoutInfoEvent *", 0, 0, (void*)0, 0}; | |
32237 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
32238 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; | |
32239 | static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", "wxSashEvent *", 0, 0, (void*)0, 0}; | |
32240 | static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", "wxSashLayoutWindow *", 0, 0, (void*)0, 0}; | |
32241 | static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", "wxSashWindow *", 0, 0, (void*)0, 0}; | |
32242 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", "wxScrollWinEvent *", 0, 0, (void*)0, 0}; | |
32243 | static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0}; | |
32244 | static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", "wxSingleChoiceDialog *", 0, 0, (void*)0, 0}; | |
32245 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
32246 | static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", "wxSplashScreen *", 0, 0, (void*)0, 0}; | |
32247 | static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", "wxSplashScreenWindow *", 0, 0, (void*)0, 0}; | |
32248 | static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", "wxSplitterEvent *", 0, 0, (void*)0, 0}; | |
32249 | static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", "wxSplitterWindow *", 0, 0, (void*)0, 0}; | |
32250 | static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", "wxStatusBar *", 0, 0, (void*)0, 0}; | |
32251 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", "wxStdDialogButtonSizer *", 0, 0, (void*)0, 0}; | |
32252 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; | |
32253 | static swig_type_info _swigt__p_wxTaskBarIcon = {"_p_wxTaskBarIcon", "wxTaskBarIcon *", 0, 0, (void*)0, 0}; | |
32254 | static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", "wxTaskBarIconEvent *", 0, 0, (void*)0, 0}; | |
32255 | static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", "wxTextEntryDialog *", 0, 0, (void*)0, 0}; | |
32256 | static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", "wxTipWindow *", 0, 0, (void*)0, 0}; | |
32257 | static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0}; | |
32258 | static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", "wxTopLevelWindow *", 0, 0, (void*)0, 0}; | |
32259 | static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0}; | |
32260 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
32fe5131 RD |
32261 | |
32262 | static swig_type_info *swig_type_initial[] = { | |
32263 | &_swigt__p_char, | |
32264 | &_swigt__p_form_ops_t, | |
32265 | &_swigt__p_int, | |
32266 | &_swigt__p_unsigned_char, | |
32267 | &_swigt__p_unsigned_int, | |
32268 | &_swigt__p_unsigned_long, | |
32269 | &_swigt__p_wxANIHandler, | |
32270 | &_swigt__p_wxAcceleratorTable, | |
32271 | &_swigt__p_wxActivateEvent, | |
32272 | &_swigt__p_wxArrayInt, | |
32273 | &_swigt__p_wxBMPHandler, | |
32274 | &_swigt__p_wxBitmap, | |
32275 | &_swigt__p_wxBoxSizer, | |
32276 | &_swigt__p_wxCURHandler, | |
32277 | &_swigt__p_wxCalculateLayoutEvent, | |
32278 | &_swigt__p_wxChildFocusEvent, | |
32279 | &_swigt__p_wxCloseEvent, | |
32280 | &_swigt__p_wxColour, | |
32281 | &_swigt__p_wxColourData, | |
32282 | &_swigt__p_wxColourDialog, | |
32283 | &_swigt__p_wxCommandEvent, | |
32284 | &_swigt__p_wxContextMenuEvent, | |
32285 | &_swigt__p_wxControl, | |
32286 | &_swigt__p_wxControlWithItems, | |
32287 | &_swigt__p_wxDC, | |
32288 | &_swigt__p_wxDateEvent, | |
32289 | &_swigt__p_wxDialog, | |
32290 | &_swigt__p_wxDirDialog, | |
32291 | &_swigt__p_wxDisplayChangedEvent, | |
32292 | &_swigt__p_wxDropFilesEvent, | |
32293 | &_swigt__p_wxDuplexMode, | |
32294 | &_swigt__p_wxEraseEvent, | |
32295 | &_swigt__p_wxEvent, | |
32296 | &_swigt__p_wxEvtHandler, | |
32297 | &_swigt__p_wxFSFile, | |
32298 | &_swigt__p_wxFileDialog, | |
32299 | &_swigt__p_wxFileSystem, | |
32300 | &_swigt__p_wxFindDialogEvent, | |
32301 | &_swigt__p_wxFindReplaceData, | |
32302 | &_swigt__p_wxFindReplaceDialog, | |
32303 | &_swigt__p_wxFlexGridSizer, | |
32304 | &_swigt__p_wxFocusEvent, | |
32305 | &_swigt__p_wxFont, | |
32306 | &_swigt__p_wxFontData, | |
32307 | &_swigt__p_wxFontDialog, | |
32308 | &_swigt__p_wxFrame, | |
32309 | &_swigt__p_wxGBSizerItem, | |
32310 | &_swigt__p_wxGIFHandler, | |
32311 | &_swigt__p_wxGridBagSizer, | |
32312 | &_swigt__p_wxGridSizer, | |
32313 | &_swigt__p_wxICOHandler, | |
32314 | &_swigt__p_wxIcon, | |
32315 | &_swigt__p_wxIconBundle, | |
32316 | &_swigt__p_wxIconizeEvent, | |
32317 | &_swigt__p_wxIdleEvent, | |
32318 | &_swigt__p_wxImage, | |
32319 | &_swigt__p_wxImageHandler, | |
32320 | &_swigt__p_wxIndividualLayoutConstraint, | |
32321 | &_swigt__p_wxInitDialogEvent, | |
32322 | &_swigt__p_wxJPEGHandler, | |
32323 | &_swigt__p_wxKeyEvent, | |
32324 | &_swigt__p_wxLayoutAlgorithm, | |
32325 | &_swigt__p_wxLayoutConstraints, | |
32326 | &_swigt__p_wxMDIChildFrame, | |
32327 | &_swigt__p_wxMDIClientWindow, | |
32328 | &_swigt__p_wxMDIParentFrame, | |
32329 | &_swigt__p_wxMaximizeEvent, | |
32330 | &_swigt__p_wxMenu, | |
32331 | &_swigt__p_wxMenuBar, | |
32332 | &_swigt__p_wxMenuEvent, | |
32333 | &_swigt__p_wxMenuItem, | |
32334 | &_swigt__p_wxMessageDialog, | |
32335 | &_swigt__p_wxMiniFrame, | |
32336 | &_swigt__p_wxMouseCaptureChangedEvent, | |
32337 | &_swigt__p_wxMouseEvent, | |
32338 | &_swigt__p_wxMoveEvent, | |
32339 | &_swigt__p_wxMultiChoiceDialog, | |
32340 | &_swigt__p_wxNavigationKeyEvent, | |
32341 | &_swigt__p_wxNcPaintEvent, | |
32342 | &_swigt__p_wxNotifyEvent, | |
32343 | &_swigt__p_wxObject, | |
32344 | &_swigt__p_wxPCXHandler, | |
32345 | &_swigt__p_wxPNGHandler, | |
32346 | &_swigt__p_wxPNMHandler, | |
32347 | &_swigt__p_wxPageSetupDialog, | |
32348 | &_swigt__p_wxPageSetupDialogData, | |
32349 | &_swigt__p_wxPaintEvent, | |
32350 | &_swigt__p_wxPaletteChangedEvent, | |
32351 | &_swigt__p_wxPanel, | |
32352 | &_swigt__p_wxPaperSize, | |
32353 | &_swigt__p_wxPasswordEntryDialog, | |
32354 | &_swigt__p_wxPoint, | |
32355 | &_swigt__p_wxPopupWindow, | |
32356 | &_swigt__p_wxPreviewCanvas, | |
32357 | &_swigt__p_wxPreviewControlBar, | |
32358 | &_swigt__p_wxPreviewFrame, | |
32359 | &_swigt__p_wxPrintData, | |
32360 | &_swigt__p_wxPrintDialog, | |
32361 | &_swigt__p_wxPrintDialogData, | |
32362 | &_swigt__p_wxPrintPreview, | |
32363 | &_swigt__p_wxPrinter, | |
32364 | &_swigt__p_wxProgressDialog, | |
32365 | &_swigt__p_wxPyApp, | |
32366 | &_swigt__p_wxPyCommandEvent, | |
32367 | &_swigt__p_wxPyEvent, | |
32368 | &_swigt__p_wxPyHtmlListBox, | |
32369 | &_swigt__p_wxPyImageHandler, | |
32370 | &_swigt__p_wxPyPanel, | |
32371 | &_swigt__p_wxPyPopupTransientWindow, | |
32372 | &_swigt__p_wxPyPreviewControlBar, | |
32373 | &_swigt__p_wxPyPreviewFrame, | |
32374 | &_swigt__p_wxPyPrintPreview, | |
32375 | &_swigt__p_wxPyPrintout, | |
32376 | &_swigt__p_wxPyScrolledWindow, | |
32377 | &_swigt__p_wxPySizer, | |
32378 | &_swigt__p_wxPyTaskBarIcon, | |
32379 | &_swigt__p_wxPyVListBox, | |
32380 | &_swigt__p_wxPyVScrolledWindow, | |
32381 | &_swigt__p_wxPyValidator, | |
32382 | &_swigt__p_wxPyWindow, | |
32383 | &_swigt__p_wxQueryLayoutInfoEvent, | |
32384 | &_swigt__p_wxQueryNewPaletteEvent, | |
32385 | &_swigt__p_wxRect, | |
32386 | &_swigt__p_wxRegion, | |
32387 | &_swigt__p_wxSashEvent, | |
32388 | &_swigt__p_wxSashLayoutWindow, | |
32389 | &_swigt__p_wxSashWindow, | |
32390 | &_swigt__p_wxScrollEvent, | |
32391 | &_swigt__p_wxScrollWinEvent, | |
32392 | &_swigt__p_wxScrolledWindow, | |
32393 | &_swigt__p_wxSetCursorEvent, | |
32394 | &_swigt__p_wxShowEvent, | |
32395 | &_swigt__p_wxSingleChoiceDialog, | |
32396 | &_swigt__p_wxSize, | |
32397 | &_swigt__p_wxSizeEvent, | |
32398 | &_swigt__p_wxSizer, | |
32399 | &_swigt__p_wxSizerItem, | |
32400 | &_swigt__p_wxSplashScreen, | |
32401 | &_swigt__p_wxSplashScreenWindow, | |
32402 | &_swigt__p_wxSplitterEvent, | |
32403 | &_swigt__p_wxSplitterWindow, | |
32404 | &_swigt__p_wxStaticBoxSizer, | |
32405 | &_swigt__p_wxStatusBar, | |
32406 | &_swigt__p_wxStdDialogButtonSizer, | |
32407 | &_swigt__p_wxString, | |
32408 | &_swigt__p_wxSysColourChangedEvent, | |
32409 | &_swigt__p_wxTIFFHandler, | |
32410 | &_swigt__p_wxTaskBarIcon, | |
32411 | &_swigt__p_wxTaskBarIconEvent, | |
32412 | &_swigt__p_wxTextEntryDialog, | |
32413 | &_swigt__p_wxTipWindow, | |
32414 | &_swigt__p_wxToolBar, | |
32415 | &_swigt__p_wxTopLevelWindow, | |
32416 | &_swigt__p_wxUpdateUIEvent, | |
32417 | &_swigt__p_wxValidator, | |
32418 | &_swigt__p_wxVisualAttributes, | |
32419 | &_swigt__p_wxWindow, | |
32420 | &_swigt__p_wxWindowCreateEvent, | |
32421 | &_swigt__p_wxWindowDestroyEvent, | |
32422 | &_swigt__p_wxXPMHandler, | |
32fe5131 RD |
32423 | }; |
32424 | ||
32425 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
32426 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
32427 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
32428 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
32429 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
32430 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
32431 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
32432 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
32433 | static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = { {&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32434 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
32435 | static swig_cast_info _swigc__p_wxColourData[] = { {&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}}; | |
32436 | static swig_cast_info _swigc__p_wxColourDialog[] = { {&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32437 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32438 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32439 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32440 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32441 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32442 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32443 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32444 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32445 | static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}}; | |
32446 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; | |
32447 | static swig_cast_info _swigc__p_wxDialog[] = { {&_swigt__p_wxDialog, 0, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxDialog, 0, 0},{0, 0, 0, 0}}; | |
32448 | static swig_cast_info _swigc__p_wxDirDialog[] = { {&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32449 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
32450 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32451 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32452 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32453 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32454 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32455 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32456 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32457 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32458 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32459 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32460 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32461 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32462 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32463 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32464 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32465 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32466 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32467 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32468 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32469 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32470 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32471 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32472 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32473 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32474 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32475 | 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_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_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_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}}; | |
32476 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
32477 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
32478 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
32479 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
32480 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
32481 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_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_wxColourDialog, _p_wxColourDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_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}}; | |
32482 | static swig_cast_info _swigc__p_wxFileDialog[] = { {&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32483 | static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
32484 | static swig_cast_info _swigc__p_wxFindDialogEvent[] = { {&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32485 | static swig_cast_info _swigc__p_wxFindReplaceData[] = { {&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}}; | |
32486 | static swig_cast_info _swigc__p_wxFindReplaceDialog[] = { {&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32487 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
32488 | static swig_cast_info _swigc__p_wxFontData[] = { {&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}}; | |
32489 | static swig_cast_info _swigc__p_wxFontDialog[] = { {&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32490 | 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}}; | |
32491 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
32492 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
32493 | static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = { {&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}}; | |
32494 | static swig_cast_info _swigc__p_wxMDIChildFrame[] = { {&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
32495 | static swig_cast_info _swigc__p_wxMDIClientWindow[] = { {&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32496 | static swig_cast_info _swigc__p_wxMDIParentFrame[] = { {&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
32497 | static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
32498 | static swig_cast_info _swigc__p_wxMenuBar[] = { {&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
32499 | static swig_cast_info _swigc__p_wxMessageDialog[] = { {&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32500 | static swig_cast_info _swigc__p_wxMiniFrame[] = { {&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
32501 | static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = { {&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32502 | 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}}; | |
32503 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
32504 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
32505 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
32506 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
32507 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32508 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32509 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32510 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32511 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32512 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32513 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
32514 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32515 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
32516 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32517 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32518 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32519 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32520 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32521 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32522 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32523 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32524 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32525 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32526 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32527 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32528 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32529 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
32530 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
32531 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontData, _p_wxFontDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintData, _p_wxPrintDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutAlgorithm, _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceData, _p_wxFindReplaceDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourData, _p_wxColourDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxObject, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinter, _p_wxPrinterTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialogData, _p_wxPageSetupDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialogData, _p_wxPrintDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; | |
32532 | static swig_cast_info _swigc__p_wxPageSetupDialog[] = { {&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32533 | static swig_cast_info _swigc__p_wxPageSetupDialogData[] = { {&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
32534 | 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}}; | |
32535 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
32536 | static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = { {&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32537 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
32538 | 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}}; | |
32539 | static swig_cast_info _swigc__p_wxPreviewCanvas[] = { {&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}}; | |
32540 | 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}}; | |
32541 | 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}}; | |
32542 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
32543 | static swig_cast_info _swigc__p_wxPrintDialog[] = { {&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32544 | static swig_cast_info _swigc__p_wxPrintDialogData[] = { {&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
32545 | 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}}; | |
32546 | static swig_cast_info _swigc__p_wxPrinter[] = { {&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}}; | |
32547 | static swig_cast_info _swigc__p_wxProgressDialog[] = { {&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32548 | static swig_cast_info _swigc__p_wxPyHtmlListBox[] = { {&_swigt__p_wxPyHtmlListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
32549 | static swig_cast_info _swigc__p_wxPyPanel[] = { {&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}}; | |
32550 | 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}}; | |
32551 | static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = { {&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}}; | |
32552 | static swig_cast_info _swigc__p_wxPyPreviewFrame[] = { {&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
32553 | static swig_cast_info _swigc__p_wxPyPrintPreview[] = { {&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}}; | |
32554 | static swig_cast_info _swigc__p_wxPyPrintout[] = { {&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}}; | |
32555 | static swig_cast_info _swigc__p_wxPyScrolledWindow[] = { {&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32556 | static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = { {&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
32557 | 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}}; | |
32558 | 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}}; | |
32559 | static swig_cast_info _swigc__p_wxPyWindow[] = { {&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32560 | static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = { {&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32561 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
32562 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; | |
32563 | static swig_cast_info _swigc__p_wxSashEvent[] = { {&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32564 | static swig_cast_info _swigc__p_wxSashLayoutWindow[] = { {&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32565 | 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}}; | |
32566 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = { {&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32567 | 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}}; | |
32568 | static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = { {&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32569 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
32570 | static swig_cast_info _swigc__p_wxSplashScreen[] = { {&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}}; | |
32571 | static swig_cast_info _swigc__p_wxSplashScreenWindow[] = { {&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32572 | static swig_cast_info _swigc__p_wxSplitterEvent[] = { {&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32573 | static swig_cast_info _swigc__p_wxSplitterWindow[] = { {&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32574 | static swig_cast_info _swigc__p_wxStatusBar[] = { {&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}}; | |
32575 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = { {&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32576 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
32577 | static swig_cast_info _swigc__p_wxTaskBarIcon[] = { {&_swigt__p_wxTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
32578 | static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = { {&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32579 | 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}}; | |
32580 | static swig_cast_info _swigc__p_wxTipWindow[] = { {&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32581 | static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}}; | |
32582 | 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_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}}; | |
32583 | static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}}; | |
32584 | static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxWindow, 0, 0}, {&_swigt__p_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 |
32585 | |
32586 | static swig_cast_info *swig_cast_initial[] = { | |
32587 | _swigc__p_char, | |
32588 | _swigc__p_form_ops_t, | |
32589 | _swigc__p_int, | |
32590 | _swigc__p_unsigned_char, | |
32591 | _swigc__p_unsigned_int, | |
32592 | _swigc__p_unsigned_long, | |
32593 | _swigc__p_wxANIHandler, | |
32594 | _swigc__p_wxAcceleratorTable, | |
32595 | _swigc__p_wxActivateEvent, | |
32596 | _swigc__p_wxArrayInt, | |
32597 | _swigc__p_wxBMPHandler, | |
32598 | _swigc__p_wxBitmap, | |
32599 | _swigc__p_wxBoxSizer, | |
32600 | _swigc__p_wxCURHandler, | |
32601 | _swigc__p_wxCalculateLayoutEvent, | |
32602 | _swigc__p_wxChildFocusEvent, | |
32603 | _swigc__p_wxCloseEvent, | |
32604 | _swigc__p_wxColour, | |
32605 | _swigc__p_wxColourData, | |
32606 | _swigc__p_wxColourDialog, | |
32607 | _swigc__p_wxCommandEvent, | |
32608 | _swigc__p_wxContextMenuEvent, | |
32609 | _swigc__p_wxControl, | |
32610 | _swigc__p_wxControlWithItems, | |
32611 | _swigc__p_wxDC, | |
32612 | _swigc__p_wxDateEvent, | |
32613 | _swigc__p_wxDialog, | |
32614 | _swigc__p_wxDirDialog, | |
32615 | _swigc__p_wxDisplayChangedEvent, | |
32616 | _swigc__p_wxDropFilesEvent, | |
32617 | _swigc__p_wxDuplexMode, | |
32618 | _swigc__p_wxEraseEvent, | |
32619 | _swigc__p_wxEvent, | |
32620 | _swigc__p_wxEvtHandler, | |
32621 | _swigc__p_wxFSFile, | |
32622 | _swigc__p_wxFileDialog, | |
32623 | _swigc__p_wxFileSystem, | |
32624 | _swigc__p_wxFindDialogEvent, | |
32625 | _swigc__p_wxFindReplaceData, | |
32626 | _swigc__p_wxFindReplaceDialog, | |
32627 | _swigc__p_wxFlexGridSizer, | |
32628 | _swigc__p_wxFocusEvent, | |
32629 | _swigc__p_wxFont, | |
32630 | _swigc__p_wxFontData, | |
32631 | _swigc__p_wxFontDialog, | |
32632 | _swigc__p_wxFrame, | |
32633 | _swigc__p_wxGBSizerItem, | |
32634 | _swigc__p_wxGIFHandler, | |
32635 | _swigc__p_wxGridBagSizer, | |
32636 | _swigc__p_wxGridSizer, | |
32637 | _swigc__p_wxICOHandler, | |
32638 | _swigc__p_wxIcon, | |
32639 | _swigc__p_wxIconBundle, | |
32640 | _swigc__p_wxIconizeEvent, | |
32641 | _swigc__p_wxIdleEvent, | |
32642 | _swigc__p_wxImage, | |
32643 | _swigc__p_wxImageHandler, | |
32644 | _swigc__p_wxIndividualLayoutConstraint, | |
32645 | _swigc__p_wxInitDialogEvent, | |
32646 | _swigc__p_wxJPEGHandler, | |
32647 | _swigc__p_wxKeyEvent, | |
32648 | _swigc__p_wxLayoutAlgorithm, | |
32649 | _swigc__p_wxLayoutConstraints, | |
32650 | _swigc__p_wxMDIChildFrame, | |
32651 | _swigc__p_wxMDIClientWindow, | |
32652 | _swigc__p_wxMDIParentFrame, | |
32653 | _swigc__p_wxMaximizeEvent, | |
32654 | _swigc__p_wxMenu, | |
32655 | _swigc__p_wxMenuBar, | |
32656 | _swigc__p_wxMenuEvent, | |
32657 | _swigc__p_wxMenuItem, | |
32658 | _swigc__p_wxMessageDialog, | |
32659 | _swigc__p_wxMiniFrame, | |
32660 | _swigc__p_wxMouseCaptureChangedEvent, | |
32661 | _swigc__p_wxMouseEvent, | |
32662 | _swigc__p_wxMoveEvent, | |
32663 | _swigc__p_wxMultiChoiceDialog, | |
32664 | _swigc__p_wxNavigationKeyEvent, | |
32665 | _swigc__p_wxNcPaintEvent, | |
32666 | _swigc__p_wxNotifyEvent, | |
32667 | _swigc__p_wxObject, | |
32668 | _swigc__p_wxPCXHandler, | |
32669 | _swigc__p_wxPNGHandler, | |
32670 | _swigc__p_wxPNMHandler, | |
32671 | _swigc__p_wxPageSetupDialog, | |
32672 | _swigc__p_wxPageSetupDialogData, | |
32673 | _swigc__p_wxPaintEvent, | |
32674 | _swigc__p_wxPaletteChangedEvent, | |
32675 | _swigc__p_wxPanel, | |
32676 | _swigc__p_wxPaperSize, | |
32677 | _swigc__p_wxPasswordEntryDialog, | |
32678 | _swigc__p_wxPoint, | |
32679 | _swigc__p_wxPopupWindow, | |
32680 | _swigc__p_wxPreviewCanvas, | |
32681 | _swigc__p_wxPreviewControlBar, | |
32682 | _swigc__p_wxPreviewFrame, | |
32683 | _swigc__p_wxPrintData, | |
32684 | _swigc__p_wxPrintDialog, | |
32685 | _swigc__p_wxPrintDialogData, | |
32686 | _swigc__p_wxPrintPreview, | |
32687 | _swigc__p_wxPrinter, | |
32688 | _swigc__p_wxProgressDialog, | |
32689 | _swigc__p_wxPyApp, | |
32690 | _swigc__p_wxPyCommandEvent, | |
32691 | _swigc__p_wxPyEvent, | |
32692 | _swigc__p_wxPyHtmlListBox, | |
32693 | _swigc__p_wxPyImageHandler, | |
32694 | _swigc__p_wxPyPanel, | |
32695 | _swigc__p_wxPyPopupTransientWindow, | |
32696 | _swigc__p_wxPyPreviewControlBar, | |
32697 | _swigc__p_wxPyPreviewFrame, | |
32698 | _swigc__p_wxPyPrintPreview, | |
32699 | _swigc__p_wxPyPrintout, | |
32700 | _swigc__p_wxPyScrolledWindow, | |
32701 | _swigc__p_wxPySizer, | |
32702 | _swigc__p_wxPyTaskBarIcon, | |
32703 | _swigc__p_wxPyVListBox, | |
32704 | _swigc__p_wxPyVScrolledWindow, | |
32705 | _swigc__p_wxPyValidator, | |
32706 | _swigc__p_wxPyWindow, | |
32707 | _swigc__p_wxQueryLayoutInfoEvent, | |
32708 | _swigc__p_wxQueryNewPaletteEvent, | |
32709 | _swigc__p_wxRect, | |
32710 | _swigc__p_wxRegion, | |
32711 | _swigc__p_wxSashEvent, | |
32712 | _swigc__p_wxSashLayoutWindow, | |
32713 | _swigc__p_wxSashWindow, | |
32714 | _swigc__p_wxScrollEvent, | |
32715 | _swigc__p_wxScrollWinEvent, | |
32716 | _swigc__p_wxScrolledWindow, | |
32717 | _swigc__p_wxSetCursorEvent, | |
32718 | _swigc__p_wxShowEvent, | |
32719 | _swigc__p_wxSingleChoiceDialog, | |
32720 | _swigc__p_wxSize, | |
0085ce49 RD |
32721 | _swigc__p_wxSizeEvent, |
32722 | _swigc__p_wxSizer, | |
32723 | _swigc__p_wxSizerItem, | |
32724 | _swigc__p_wxSplashScreen, | |
32725 | _swigc__p_wxSplashScreenWindow, | |
32726 | _swigc__p_wxSplitterEvent, | |
32727 | _swigc__p_wxSplitterWindow, | |
32728 | _swigc__p_wxStaticBoxSizer, | |
32729 | _swigc__p_wxStatusBar, | |
32730 | _swigc__p_wxStdDialogButtonSizer, | |
32731 | _swigc__p_wxString, | |
32732 | _swigc__p_wxSysColourChangedEvent, | |
32733 | _swigc__p_wxTIFFHandler, | |
32734 | _swigc__p_wxTaskBarIcon, | |
32735 | _swigc__p_wxTaskBarIconEvent, | |
32736 | _swigc__p_wxTextEntryDialog, | |
32737 | _swigc__p_wxTipWindow, | |
32738 | _swigc__p_wxToolBar, | |
32739 | _swigc__p_wxTopLevelWindow, | |
32740 | _swigc__p_wxUpdateUIEvent, | |
32741 | _swigc__p_wxValidator, | |
32742 | _swigc__p_wxVisualAttributes, | |
32743 | _swigc__p_wxWindow, | |
32744 | _swigc__p_wxWindowCreateEvent, | |
32745 | _swigc__p_wxWindowDestroyEvent, | |
32746 | _swigc__p_wxXPMHandler, | |
32747 | }; | |
32748 | ||
32749 | ||
32750 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
32751 | ||
32752 | static swig_const_info swig_const_table[] = { | |
32753 | {0, 0, 0, 0.0, 0, 0}}; | |
32754 | ||
093d3ff1 RD |
32755 | #ifdef __cplusplus |
32756 | } | |
32757 | #endif | |
0085ce49 RD |
32758 | /* ----------------------------------------------------------------------------- |
32759 | * Type initialization: | |
32760 | * This problem is tough by the requirement that no dynamic | |
32761 | * memory is used. Also, since swig_type_info structures store pointers to | |
32762 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
32763 | * to swig_type_info structures, we need some lookup code at initialization. | |
32764 | * The idea is that swig generates all the structures that are needed. | |
32765 | * The runtime then collects these partially filled structures. | |
32766 | * The SWIG_InitializeModule function takes these initial arrays out of | |
32767 | * swig_module, and does all the lookup, filling in the swig_module.types | |
32768 | * array with the correct data and linking the correct swig_cast_info | |
32769 | * structures together. | |
32770 | * | |
32771 | * The generated swig_type_info structures are assigned staticly to an initial | |
32772 | * array. We just loop though that array, and handle each type individually. | |
32773 | * First we lookup if this type has been already loaded, and if so, use the | |
32774 | * loaded structure instead of the generated one. Then we have to fill in the | |
32775 | * cast linked list. The cast data is initially stored in something like a | |
32776 | * two-dimensional array. Each row corresponds to a type (there are the same | |
32777 | * number of rows as there are in the swig_type_initial array). Each entry in | |
32778 | * a column is one of the swig_cast_info structures for that type. | |
32779 | * The cast_initial array is actually an array of arrays, because each row has | |
32780 | * a variable number of columns. So to actually build the cast linked list, | |
32781 | * we find the array of casts associated with the type, and loop through it | |
32782 | * adding the casts to the list. The one last trick we need to do is making | |
32783 | * sure the type pointer in the swig_cast_info struct is correct. | |
32784 | * | |
32785 | * First off, we lookup the cast->type name to see if it is already loaded. | |
32786 | * There are three cases to handle: | |
32787 | * 1) If the cast->type has already been loaded AND the type we are adding | |
32788 | * casting info to has not been loaded (it is in this module), THEN we | |
32789 | * replace the cast->type pointer with the type pointer that has already | |
32790 | * been loaded. | |
32791 | * 2) If BOTH types (the one we are adding casting info to, and the | |
32792 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
32793 | * the previous module so we just ignore it. | |
32794 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
32795 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
32796 | * be correct. | |
32797 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 32798 | |
d14a1e28 | 32799 | #ifdef __cplusplus |
0085ce49 RD |
32800 | extern "C" { |
32801 | #if 0 | |
32802 | } /* c-mode */ | |
32803 | #endif | |
32804 | #endif | |
32805 | ||
32806 | #if 0 | |
32807 | #define SWIGRUNTIME_DEBUG | |
32808 | #endif | |
32809 | ||
32810 | SWIGRUNTIME void | |
32811 | SWIG_InitializeModule(void *clientdata) { | |
32812 | size_t i; | |
32813 | swig_module_info *module_head; | |
32814 | static int init_run = 0; | |
32815 | ||
32816 | clientdata = clientdata; | |
32817 | ||
32818 | if (init_run) return; | |
32819 | init_run = 1; | |
32820 | ||
32821 | /* Initialize the swig_module */ | |
32822 | swig_module.type_initial = swig_type_initial; | |
32823 | swig_module.cast_initial = swig_cast_initial; | |
32824 | ||
32825 | /* Try and load any already created modules */ | |
32826 | module_head = SWIG_GetModule(clientdata); | |
32827 | if (module_head) { | |
32828 | swig_module.next = module_head->next; | |
32829 | module_head->next = &swig_module; | |
32830 | } else { | |
32831 | /* This is the first module loaded */ | |
32832 | swig_module.next = &swig_module; | |
32833 | SWIG_SetModule(clientdata, &swig_module); | |
32834 | } | |
32835 | ||
32836 | /* Now work on filling in swig_module.types */ | |
32837 | #ifdef SWIGRUNTIME_DEBUG | |
32838 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
32839 | #endif | |
32840 | for (i = 0; i < swig_module.size; ++i) { | |
32841 | swig_type_info *type = 0; | |
32842 | swig_type_info *ret; | |
32843 | swig_cast_info *cast; | |
d14a1e28 | 32844 | |
0085ce49 RD |
32845 | #ifdef SWIGRUNTIME_DEBUG |
32846 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
32847 | #endif | |
d14a1e28 | 32848 | |
0085ce49 RD |
32849 | /* if there is another module already loaded */ |
32850 | if (swig_module.next != &swig_module) { | |
32851 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
093d3ff1 | 32852 | } |
0085ce49 RD |
32853 | if (type) { |
32854 | /* Overwrite clientdata field */ | |
32855 | #ifdef SWIGRUNTIME_DEBUG | |
32856 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
32857 | #endif | |
32858 | if (swig_module.type_initial[i]->clientdata) { | |
32859 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
32860 | #ifdef SWIGRUNTIME_DEBUG | |
32861 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
32862 | #endif | |
32863 | } | |
32864 | } else { | |
32865 | type = swig_module.type_initial[i]; | |
093d3ff1 | 32866 | } |
0085ce49 RD |
32867 | |
32868 | /* Insert casting types */ | |
32869 | cast = swig_module.cast_initial[i]; | |
32870 | while (cast->type) { | |
32871 | /* Don't need to add information already in the list */ | |
32872 | ret = 0; | |
32873 | #ifdef SWIGRUNTIME_DEBUG | |
32874 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
32875 | #endif | |
32876 | if (swig_module.next != &swig_module) { | |
32877 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
32878 | #ifdef SWIGRUNTIME_DEBUG | |
32879 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
32880 | #endif | |
32881 | } | |
32882 | if (ret) { | |
32883 | if (type == swig_module.type_initial[i]) { | |
32884 | #ifdef SWIGRUNTIME_DEBUG | |
32885 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
32886 | #endif | |
32887 | cast->type = ret; | |
32888 | ret = 0; | |
32889 | } else { | |
32890 | /* Check for casting already in the list */ | |
32891 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
32892 | #ifdef SWIGRUNTIME_DEBUG | |
32893 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
32894 | #endif | |
32895 | if (!ocast) ret = 0; | |
32896 | } | |
32897 | } | |
32898 | ||
32899 | if (!ret) { | |
32900 | #ifdef SWIGRUNTIME_DEBUG | |
32901 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
32902 | #endif | |
32903 | if (type->cast) { | |
32904 | type->cast->prev = cast; | |
32905 | cast->next = type->cast; | |
32906 | } | |
32907 | type->cast = cast; | |
32908 | } | |
32909 | cast++; | |
093d3ff1 | 32910 | } |
0085ce49 RD |
32911 | /* Set entry in modules->types array equal to the type */ |
32912 | swig_module.types[i] = type; | |
32913 | } | |
32914 | swig_module.types[i] = 0; | |
32915 | ||
32916 | #ifdef SWIGRUNTIME_DEBUG | |
32917 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
32918 | for (i = 0; i < swig_module.size; ++i) { | |
32919 | int j = 0; | |
32920 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
32921 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
32922 | while (cast->type) { | |
32923 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
32924 | cast++; | |
32925 | ++j; | |
32926 | } | |
32927 | printf("---- Total casts: %d\n",j); | |
32928 | } | |
32929 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
32930 | #endif | |
32931 | } | |
32932 | ||
32933 | /* This function will propagate the clientdata field of type to | |
32934 | * any new swig_type_info structures that have been added into the list | |
32935 | * of equivalent types. It is like calling | |
32936 | * SWIG_TypeClientData(type, clientdata) a second time. | |
32937 | */ | |
32938 | SWIGRUNTIME void | |
32939 | SWIG_PropagateClientData(void) { | |
32940 | size_t i; | |
32941 | swig_cast_info *equiv; | |
32942 | static int init_run = 0; | |
32943 | ||
32944 | if (init_run) return; | |
32945 | init_run = 1; | |
32946 | ||
32947 | for (i = 0; i < swig_module.size; i++) { | |
32948 | if (swig_module.types[i]->clientdata) { | |
32949 | equiv = swig_module.types[i]->cast; | |
32950 | while (equiv) { | |
32951 | if (!equiv->converter) { | |
32952 | if (equiv->type && !equiv->type->clientdata) | |
32953 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
32954 | } | |
32955 | equiv = equiv->next; | |
32956 | } | |
093d3ff1 | 32957 | } |
0085ce49 RD |
32958 | } |
32959 | } | |
32960 | ||
32961 | #ifdef __cplusplus | |
32962 | #if 0 | |
32963 | { | |
32964 | /* c-mode */ | |
32965 | #endif | |
32966 | } | |
32967 | #endif | |
32968 | ||
32969 | ||
32970 | ||
32971 | #ifdef __cplusplus | |
32972 | extern "C" { | |
32973 | #endif | |
32974 | ||
32975 | /* Python-specific SWIG API */ | |
32976 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
32977 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
32978 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
32979 | ||
32980 | /* ----------------------------------------------------------------------------- | |
32981 | * global variable support code. | |
32982 | * ----------------------------------------------------------------------------- */ | |
32983 | ||
32984 | typedef struct swig_globalvar { | |
32985 | char *name; /* Name of global variable */ | |
32986 | PyObject *(*get_attr)(void); /* Return the current value */ | |
32987 | int (*set_attr)(PyObject *); /* Set the value */ | |
32988 | struct swig_globalvar *next; | |
32989 | } swig_globalvar; | |
32990 | ||
32991 | typedef struct swig_varlinkobject { | |
32992 | PyObject_HEAD | |
32993 | swig_globalvar *vars; | |
32994 | } swig_varlinkobject; | |
32995 | ||
32996 | SWIGINTERN PyObject * | |
32997 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
32998 | return PyString_FromString("<Swig global variables>"); | |
32999 | } | |
33000 | ||
33001 | SWIGINTERN PyObject * | |
33002 | swig_varlink_str(swig_varlinkobject *v) { | |
33003 | PyObject *str = PyString_FromString("("); | |
33004 | swig_globalvar *var; | |
33005 | for (var = v->vars; var; var=var->next) { | |
33006 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
33007 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
33008 | } | |
33009 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
33010 | return str; | |
33011 | } | |
33012 | ||
33013 | SWIGINTERN int | |
33014 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
33015 | PyObject *str = swig_varlink_str(v); | |
33016 | fprintf(fp,"Swig global variables "); | |
33017 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
33018 | Py_DECREF(str); | |
33019 | return 0; | |
33020 | } | |
33021 | ||
33022 | SWIGINTERN void | |
33023 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
33024 | swig_globalvar *var = v->vars; | |
33025 | while (var) { | |
33026 | swig_globalvar *n = var->next; | |
33027 | free(var->name); | |
33028 | free(var); | |
33029 | var = n; | |
093d3ff1 | 33030 | } |
0085ce49 RD |
33031 | } |
33032 | ||
33033 | SWIGINTERN PyObject * | |
33034 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
33035 | PyObject *res = NULL; | |
33036 | swig_globalvar *var = v->vars; | |
33037 | while (var) { | |
33038 | if (strcmp(var->name,n) == 0) { | |
33039 | res = (*var->get_attr)(); | |
33040 | break; | |
33041 | } | |
33042 | var = var->next; | |
093d3ff1 | 33043 | } |
0085ce49 RD |
33044 | if (res == NULL && !PyErr_Occurred()) { |
33045 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 33046 | } |
0085ce49 RD |
33047 | return res; |
33048 | } | |
33049 | ||
33050 | SWIGINTERN int | |
33051 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
33052 | int res = 1; | |
33053 | swig_globalvar *var = v->vars; | |
33054 | while (var) { | |
33055 | if (strcmp(var->name,n) == 0) { | |
33056 | res = (*var->set_attr)(p); | |
33057 | break; | |
33058 | } | |
33059 | var = var->next; | |
093d3ff1 | 33060 | } |
0085ce49 RD |
33061 | if (res == 1 && !PyErr_Occurred()) { |
33062 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 33063 | } |
0085ce49 RD |
33064 | return res; |
33065 | } | |
33066 | ||
33067 | SWIGINTERN PyTypeObject* | |
33068 | swig_varlink_type(void) { | |
33069 | static char varlink__doc__[] = "Swig var link object"; | |
33070 | static PyTypeObject varlink_type; | |
33071 | static int type_init = 0; | |
33072 | if (!type_init) { | |
33073 | const PyTypeObject tmp | |
33074 | = { | |
33075 | PyObject_HEAD_INIT(NULL) | |
33076 | 0, /* Number of items in variable part (ob_size) */ | |
33077 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
33078 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
33079 | 0, /* Itemsize (tp_itemsize) */ | |
33080 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
33081 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
33082 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
33083 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
33084 | 0, /* tp_compare */ | |
33085 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
33086 | 0, /* tp_as_number */ | |
33087 | 0, /* tp_as_sequence */ | |
33088 | 0, /* tp_as_mapping */ | |
33089 | 0, /* tp_hash */ | |
33090 | 0, /* tp_call */ | |
33091 | (reprfunc)swig_varlink_str, /* tp_str */ | |
33092 | 0, /* tp_getattro */ | |
33093 | 0, /* tp_setattro */ | |
33094 | 0, /* tp_as_buffer */ | |
33095 | 0, /* tp_flags */ | |
33096 | varlink__doc__, /* tp_doc */ | |
33097 | 0, /* tp_traverse */ | |
33098 | 0, /* tp_clear */ | |
33099 | 0, /* tp_richcompare */ | |
33100 | 0, /* tp_weaklistoffset */ | |
33101 | #if PY_VERSION_HEX >= 0x02020000 | |
33102 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
33103 | #endif | |
33104 | #if PY_VERSION_HEX >= 0x02030000 | |
33105 | 0, /* tp_del */ | |
33106 | #endif | |
33107 | #ifdef COUNT_ALLOCS | |
33108 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
33109 | #endif | |
33110 | }; | |
33111 | varlink_type = tmp; | |
33112 | varlink_type.ob_type = &PyType_Type; | |
33113 | type_init = 1; | |
093d3ff1 | 33114 | } |
0085ce49 RD |
33115 | return &varlink_type; |
33116 | } | |
33117 | ||
33118 | /* Create a variable linking object for use later */ | |
33119 | SWIGINTERN PyObject * | |
33120 | SWIG_Python_newvarlink(void) { | |
33121 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
33122 | if (result) { | |
33123 | result->vars = 0; | |
33124 | } | |
33125 | return ((PyObject*) result); | |
33126 | } | |
33127 | ||
33128 | SWIGINTERN void | |
33129 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
33130 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
33131 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
33132 | if (gv) { | |
33133 | size_t size = strlen(name)+1; | |
33134 | gv->name = (char *)malloc(size); | |
33135 | if (gv->name) { | |
33136 | strncpy(gv->name,name,size); | |
33137 | gv->get_attr = get_attr; | |
33138 | gv->set_attr = set_attr; | |
33139 | gv->next = v->vars; | |
33140 | } | |
093d3ff1 | 33141 | } |
0085ce49 RD |
33142 | v->vars = gv; |
33143 | } | |
33144 | ||
33145 | SWIGINTERN PyObject * | |
33146 | SWIG_globals() { | |
33147 | static PyObject *_SWIG_globals = 0; | |
33148 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
33149 | return _SWIG_globals; | |
33150 | } | |
33151 | ||
33152 | /* ----------------------------------------------------------------------------- | |
33153 | * constants/methods manipulation | |
33154 | * ----------------------------------------------------------------------------- */ | |
33155 | ||
33156 | /* Install Constants */ | |
33157 | SWIGINTERN void | |
33158 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
33159 | PyObject *obj = 0; | |
33160 | size_t i; | |
33161 | for (i = 0; constants[i].type; ++i) { | |
33162 | switch(constants[i].type) { | |
33163 | case SWIG_PY_POINTER: | |
33164 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
33165 | break; | |
33166 | case SWIG_PY_BINARY: | |
33167 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
33168 | break; | |
33169 | default: | |
33170 | obj = 0; | |
33171 | break; | |
33172 | } | |
33173 | if (obj) { | |
33174 | PyDict_SetItemString(d, constants[i].name, obj); | |
33175 | Py_DECREF(obj); | |
33176 | } | |
093d3ff1 | 33177 | } |
0085ce49 RD |
33178 | } |
33179 | ||
33180 | /* -----------------------------------------------------------------------------*/ | |
33181 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33182 | /* -----------------------------------------------------------------------------*/ | |
33183 | ||
33184 | SWIGINTERN void | |
33185 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
33186 | swig_const_info *const_table, | |
33187 | swig_type_info **types, | |
33188 | swig_type_info **types_initial) { | |
33189 | size_t i; | |
33190 | for (i = 0; methods[i].ml_name; ++i) { | |
33191 | char *c = methods[i].ml_doc; | |
33192 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
33193 | int j; | |
33194 | swig_const_info *ci = 0; | |
33195 | char *name = c + 10; | |
33196 | for (j = 0; const_table[j].type; ++j) { | |
33197 | if (strncmp(const_table[j].name, name, | |
33198 | strlen(const_table[j].name)) == 0) { | |
33199 | ci = &(const_table[j]); | |
33200 | break; | |
33201 | } | |
33202 | } | |
33203 | if (ci) { | |
33204 | size_t shift = (ci->ptype) - types; | |
33205 | swig_type_info *ty = types_initial[shift]; | |
33206 | size_t ldoc = (c - methods[i].ml_doc); | |
33207 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
33208 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
33209 | if (ndoc) { | |
33210 | char *buff = ndoc; | |
33211 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
33212 | if (ptr) { | |
33213 | strncpy(buff, methods[i].ml_doc, ldoc); | |
33214 | buff += ldoc; | |
33215 | strncpy(buff, "swig_ptr: ", 10); | |
33216 | buff += 10; | |
33217 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
33218 | methods[i].ml_doc = ndoc; | |
33219 | } | |
33220 | } | |
33221 | } | |
33222 | } | |
093d3ff1 | 33223 | } |
0085ce49 RD |
33224 | } |
33225 | ||
33226 | #ifdef __cplusplus | |
33227 | } | |
33228 | #endif | |
33229 | ||
33230 | /* -----------------------------------------------------------------------------* | |
33231 | * Partial Init method | |
33232 | * -----------------------------------------------------------------------------*/ | |
33233 | ||
33234 | #ifdef __cplusplus | |
33235 | extern "C" | |
33236 | #endif | |
33237 | SWIGEXPORT void SWIG_init(void) { | |
33238 | PyObject *m, *d; | |
33239 | ||
33240 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33241 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
33242 | ||
33243 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33244 | d = PyModule_GetDict(m); | |
33245 | ||
33246 | SWIG_InitializeModule(0); | |
33247 | SWIG_InstallConstants(d,swig_const_table); | |
33248 | ||
33249 | ||
33250 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
33251 | SWIG_addvarlink(SWIG_globals(),(char*)"FrameNameStr",FrameNameStr_get, FrameNameStr_set); | |
33252 | SWIG_addvarlink(SWIG_globals(),(char*)"DialogNameStr",DialogNameStr_get, DialogNameStr_set); | |
33253 | SWIG_addvarlink(SWIG_globals(),(char*)"StatusLineNameStr",StatusLineNameStr_get, StatusLineNameStr_set); | |
33254 | SWIG_addvarlink(SWIG_globals(),(char*)"ToolBarNameStr",ToolBarNameStr_get, ToolBarNameStr_set); | |
33255 | SWIG_Python_SetConstant(d, "STAY_ON_TOP",SWIG_From_int(static_cast< int >(wxSTAY_ON_TOP))); | |
33256 | SWIG_Python_SetConstant(d, "ICONIZE",SWIG_From_int(static_cast< int >(wxICONIZE))); | |
33257 | SWIG_Python_SetConstant(d, "MINIMIZE",SWIG_From_int(static_cast< int >(wxMINIMIZE))); | |
33258 | SWIG_Python_SetConstant(d, "MAXIMIZE",SWIG_From_int(static_cast< int >(wxMAXIMIZE))); | |
33259 | SWIG_Python_SetConstant(d, "CLOSE_BOX",SWIG_From_int(static_cast< int >(wxCLOSE_BOX))); | |
33260 | SWIG_Python_SetConstant(d, "THICK_FRAME",SWIG_From_int(static_cast< int >(wxTHICK_FRAME))); | |
33261 | SWIG_Python_SetConstant(d, "SYSTEM_MENU",SWIG_From_int(static_cast< int >(wxSYSTEM_MENU))); | |
33262 | SWIG_Python_SetConstant(d, "MINIMIZE_BOX",SWIG_From_int(static_cast< int >(wxMINIMIZE_BOX))); | |
33263 | SWIG_Python_SetConstant(d, "MAXIMIZE_BOX",SWIG_From_int(static_cast< int >(wxMAXIMIZE_BOX))); | |
33264 | SWIG_Python_SetConstant(d, "TINY_CAPTION_HORIZ",SWIG_From_int(static_cast< int >(wxTINY_CAPTION_HORIZ))); | |
33265 | SWIG_Python_SetConstant(d, "TINY_CAPTION_VERT",SWIG_From_int(static_cast< int >(wxTINY_CAPTION_VERT))); | |
33266 | SWIG_Python_SetConstant(d, "RESIZE_BOX",SWIG_From_int(static_cast< int >(wxRESIZE_BOX))); | |
33267 | SWIG_Python_SetConstant(d, "RESIZE_BORDER",SWIG_From_int(static_cast< int >(wxRESIZE_BORDER))); | |
33268 | SWIG_Python_SetConstant(d, "DIALOG_NO_PARENT",SWIG_From_int(static_cast< int >(wxDIALOG_NO_PARENT))); | |
33269 | SWIG_Python_SetConstant(d, "DEFAULT_FRAME_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_FRAME_STYLE))); | |
33270 | SWIG_Python_SetConstant(d, "DEFAULT_DIALOG_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_DIALOG_STYLE))); | |
33271 | SWIG_Python_SetConstant(d, "FRAME_TOOL_WINDOW",SWIG_From_int(static_cast< int >(wxFRAME_TOOL_WINDOW))); | |
33272 | SWIG_Python_SetConstant(d, "FRAME_FLOAT_ON_PARENT",SWIG_From_int(static_cast< int >(wxFRAME_FLOAT_ON_PARENT))); | |
33273 | SWIG_Python_SetConstant(d, "FRAME_NO_WINDOW_MENU",SWIG_From_int(static_cast< int >(wxFRAME_NO_WINDOW_MENU))); | |
33274 | SWIG_Python_SetConstant(d, "FRAME_NO_TASKBAR",SWIG_From_int(static_cast< int >(wxFRAME_NO_TASKBAR))); | |
33275 | SWIG_Python_SetConstant(d, "FRAME_SHAPED",SWIG_From_int(static_cast< int >(wxFRAME_SHAPED))); | |
33276 | SWIG_Python_SetConstant(d, "FRAME_DRAWER",SWIG_From_int(static_cast< int >(wxFRAME_DRAWER))); | |
33277 | SWIG_Python_SetConstant(d, "FRAME_EX_METAL",SWIG_From_int(static_cast< int >(wxFRAME_EX_METAL))); | |
33278 | SWIG_Python_SetConstant(d, "DIALOG_EX_METAL",SWIG_From_int(static_cast< int >(wxDIALOG_EX_METAL))); | |
33279 | SWIG_Python_SetConstant(d, "DIALOG_MODAL",SWIG_From_int(static_cast< int >(wxDIALOG_MODAL))); | |
33280 | SWIG_Python_SetConstant(d, "DIALOG_MODELESS",SWIG_From_int(static_cast< int >(wxDIALOG_MODELESS))); | |
33281 | SWIG_Python_SetConstant(d, "USER_COLOURS",SWIG_From_int(static_cast< int >(wxUSER_COLOURS))); | |
33282 | SWIG_Python_SetConstant(d, "NO_3D",SWIG_From_int(static_cast< int >(wxNO_3D))); | |
33283 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOMENUBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOMENUBAR))); | |
33284 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOTOOLBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOTOOLBAR))); | |
33285 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOSTATUSBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOSTATUSBAR))); | |
33286 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOBORDER",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOBORDER))); | |
33287 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOCAPTION",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOCAPTION))); | |
33288 | SWIG_Python_SetConstant(d, "FULLSCREEN_ALL",SWIG_From_int(static_cast< int >(wxFULLSCREEN_ALL))); | |
33289 | SWIG_Python_SetConstant(d, "TOPLEVEL_EX_DIALOG",SWIG_From_int(static_cast< int >(wxTOPLEVEL_EX_DIALOG))); | |
33290 | SWIG_Python_SetConstant(d, "USER_ATTENTION_INFO",SWIG_From_int(static_cast< int >(wxUSER_ATTENTION_INFO))); | |
33291 | SWIG_Python_SetConstant(d, "USER_ATTENTION_ERROR",SWIG_From_int(static_cast< int >(wxUSER_ATTENTION_ERROR))); | |
33292 | SWIG_Python_SetConstant(d, "Dialog_ButtonSizerFlags",SWIG_From_int(static_cast< int >(wxDialog::ButtonSizerFlags))); | |
33293 | SWIG_Python_SetConstant(d, "SPLASH_CENTRE_ON_PARENT",SWIG_From_int(static_cast< int >(wxSPLASH_CENTRE_ON_PARENT))); | |
33294 | SWIG_Python_SetConstant(d, "SPLASH_CENTRE_ON_SCREEN",SWIG_From_int(static_cast< int >(wxSPLASH_CENTRE_ON_SCREEN))); | |
33295 | SWIG_Python_SetConstant(d, "SPLASH_NO_CENTRE",SWIG_From_int(static_cast< int >(wxSPLASH_NO_CENTRE))); | |
33296 | SWIG_Python_SetConstant(d, "SPLASH_TIMEOUT",SWIG_From_int(static_cast< int >(wxSPLASH_TIMEOUT))); | |
33297 | SWIG_Python_SetConstant(d, "SPLASH_NO_TIMEOUT",SWIG_From_int(static_cast< int >(wxSPLASH_NO_TIMEOUT))); | |
33298 | SWIG_Python_SetConstant(d, "SB_NORMAL",SWIG_From_int(static_cast< int >(wxSB_NORMAL))); | |
33299 | SWIG_Python_SetConstant(d, "SB_FLAT",SWIG_From_int(static_cast< int >(wxSB_FLAT))); | |
33300 | SWIG_Python_SetConstant(d, "SB_RAISED",SWIG_From_int(static_cast< int >(wxSB_RAISED))); | |
33301 | SWIG_addvarlink(SWIG_globals(),(char*)"SplitterNameStr",SplitterNameStr_get, SplitterNameStr_set); | |
33302 | SWIG_Python_SetConstant(d, "SP_NOBORDER",SWIG_From_int(static_cast< int >(wxSP_NOBORDER))); | |
33303 | SWIG_Python_SetConstant(d, "SP_NOSASH",SWIG_From_int(static_cast< int >(wxSP_NOSASH))); | |
33304 | SWIG_Python_SetConstant(d, "SP_PERMIT_UNSPLIT",SWIG_From_int(static_cast< int >(wxSP_PERMIT_UNSPLIT))); | |
33305 | SWIG_Python_SetConstant(d, "SP_LIVE_UPDATE",SWIG_From_int(static_cast< int >(wxSP_LIVE_UPDATE))); | |
33306 | SWIG_Python_SetConstant(d, "SP_3DSASH",SWIG_From_int(static_cast< int >(wxSP_3DSASH))); | |
33307 | SWIG_Python_SetConstant(d, "SP_3DBORDER",SWIG_From_int(static_cast< int >(wxSP_3DBORDER))); | |
33308 | SWIG_Python_SetConstant(d, "SP_NO_XP_THEME",SWIG_From_int(static_cast< int >(wxSP_NO_XP_THEME))); | |
33309 | SWIG_Python_SetConstant(d, "SP_BORDER",SWIG_From_int(static_cast< int >(wxSP_BORDER))); | |
33310 | SWIG_Python_SetConstant(d, "SP_3D",SWIG_From_int(static_cast< int >(wxSP_3D))); | |
33311 | SWIG_Python_SetConstant(d, "SPLIT_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSPLIT_HORIZONTAL))); | |
33312 | SWIG_Python_SetConstant(d, "SPLIT_VERTICAL",SWIG_From_int(static_cast< int >(wxSPLIT_VERTICAL))); | |
33313 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_NONE",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_NONE))); | |
33314 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_DRAGGING",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_DRAGGING))); | |
33315 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_LEFT_DOWN",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_LEFT_DOWN))); | |
33316 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
33317 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
33318 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
33319 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
33320 | SWIG_addvarlink(SWIG_globals(),(char*)"SashNameStr",SashNameStr_get, SashNameStr_set); | |
33321 | SWIG_addvarlink(SWIG_globals(),(char*)"SashLayoutNameStr",SashLayoutNameStr_get, SashLayoutNameStr_set); | |
33322 | SWIG_Python_SetConstant(d, "SASH_DRAG_NONE",SWIG_From_int(static_cast< int >(wxSASH_DRAG_NONE))); | |
33323 | SWIG_Python_SetConstant(d, "SASH_DRAG_DRAGGING",SWIG_From_int(static_cast< int >(wxSASH_DRAG_DRAGGING))); | |
33324 | SWIG_Python_SetConstant(d, "SASH_DRAG_LEFT_DOWN",SWIG_From_int(static_cast< int >(wxSASH_DRAG_LEFT_DOWN))); | |
33325 | SWIG_Python_SetConstant(d, "SW_NOBORDER",SWIG_From_int(static_cast< int >(wxSW_NOBORDER))); | |
33326 | SWIG_Python_SetConstant(d, "SW_BORDER",SWIG_From_int(static_cast< int >(wxSW_BORDER))); | |
33327 | SWIG_Python_SetConstant(d, "SW_3DSASH",SWIG_From_int(static_cast< int >(wxSW_3DSASH))); | |
33328 | SWIG_Python_SetConstant(d, "SW_3DBORDER",SWIG_From_int(static_cast< int >(wxSW_3DBORDER))); | |
33329 | SWIG_Python_SetConstant(d, "SW_3D",SWIG_From_int(static_cast< int >(wxSW_3D))); | |
33330 | SWIG_Python_SetConstant(d, "SASH_TOP",SWIG_From_int(static_cast< int >(wxSASH_TOP))); | |
33331 | SWIG_Python_SetConstant(d, "SASH_RIGHT",SWIG_From_int(static_cast< int >(wxSASH_RIGHT))); | |
33332 | SWIG_Python_SetConstant(d, "SASH_BOTTOM",SWIG_From_int(static_cast< int >(wxSASH_BOTTOM))); | |
33333 | SWIG_Python_SetConstant(d, "SASH_LEFT",SWIG_From_int(static_cast< int >(wxSASH_LEFT))); | |
33334 | SWIG_Python_SetConstant(d, "SASH_NONE",SWIG_From_int(static_cast< int >(wxSASH_NONE))); | |
33335 | SWIG_Python_SetConstant(d, "SASH_STATUS_OK",SWIG_From_int(static_cast< int >(wxSASH_STATUS_OK))); | |
33336 | SWIG_Python_SetConstant(d, "SASH_STATUS_OUT_OF_RANGE",SWIG_From_int(static_cast< int >(wxSASH_STATUS_OUT_OF_RANGE))); | |
33337 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); | |
33338 | SWIG_Python_SetConstant(d, "LAYOUT_HORIZONTAL",SWIG_From_int(static_cast< int >(wxLAYOUT_HORIZONTAL))); | |
33339 | SWIG_Python_SetConstant(d, "LAYOUT_VERTICAL",SWIG_From_int(static_cast< int >(wxLAYOUT_VERTICAL))); | |
33340 | SWIG_Python_SetConstant(d, "LAYOUT_NONE",SWIG_From_int(static_cast< int >(wxLAYOUT_NONE))); | |
33341 | SWIG_Python_SetConstant(d, "LAYOUT_TOP",SWIG_From_int(static_cast< int >(wxLAYOUT_TOP))); | |
33342 | SWIG_Python_SetConstant(d, "LAYOUT_LEFT",SWIG_From_int(static_cast< int >(wxLAYOUT_LEFT))); | |
33343 | SWIG_Python_SetConstant(d, "LAYOUT_RIGHT",SWIG_From_int(static_cast< int >(wxLAYOUT_RIGHT))); | |
33344 | SWIG_Python_SetConstant(d, "LAYOUT_BOTTOM",SWIG_From_int(static_cast< int >(wxLAYOUT_BOTTOM))); | |
33345 | SWIG_Python_SetConstant(d, "LAYOUT_LENGTH_Y",SWIG_From_int(static_cast< int >(wxLAYOUT_LENGTH_Y))); | |
33346 | SWIG_Python_SetConstant(d, "LAYOUT_LENGTH_X",SWIG_From_int(static_cast< int >(wxLAYOUT_LENGTH_X))); | |
33347 | SWIG_Python_SetConstant(d, "LAYOUT_MRU_LENGTH",SWIG_From_int(static_cast< int >(wxLAYOUT_MRU_LENGTH))); | |
33348 | SWIG_Python_SetConstant(d, "LAYOUT_QUERY",SWIG_From_int(static_cast< int >(wxLAYOUT_QUERY))); | |
33349 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); | |
33350 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
33351 | SWIG_addvarlink(SWIG_globals(),(char*)"VListBoxNameStr",VListBoxNameStr_get, VListBoxNameStr_set); | |
33352 | ||
33353 | // Map renamed classes back to their common name for OOR | |
33354 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
33355 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
33356 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
33357 | ||
33358 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
33359 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
33360 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
33361 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
33362 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
33363 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
33364 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
33365 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set); | |
33366 | SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set); | |
33367 | SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogNameStr",DirDialogNameStr_get, DirDialogNameStr_set); | |
33368 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set); | |
33369 | SWIG_addvarlink(SWIG_globals(),(char*)"GetTextFromUserPromptStr",GetTextFromUserPromptStr_get, GetTextFromUserPromptStr_set); | |
33370 | SWIG_addvarlink(SWIG_globals(),(char*)"MessageBoxCaptionStr",MessageBoxCaptionStr_get, MessageBoxCaptionStr_set); | |
33371 | SWIG_Python_SetConstant(d, "CHOICEDLG_STYLE",SWIG_From_int(static_cast< int >(wxCHOICEDLG_STYLE))); | |
33372 | SWIG_Python_SetConstant(d, "TextEntryDialogStyle",SWIG_From_int(static_cast< int >(wxTextEntryDialogStyle))); | |
33373 | SWIG_addvarlink(SWIG_globals(),(char*)"GetPasswordFromUserPromptStr",GetPasswordFromUserPromptStr_get, GetPasswordFromUserPromptStr_set); | |
33374 | SWIG_Python_SetConstant(d, "FR_DOWN",SWIG_From_int(static_cast< int >(wxFR_DOWN))); | |
33375 | SWIG_Python_SetConstant(d, "FR_WHOLEWORD",SWIG_From_int(static_cast< int >(wxFR_WHOLEWORD))); | |
33376 | SWIG_Python_SetConstant(d, "FR_MATCHCASE",SWIG_From_int(static_cast< int >(wxFR_MATCHCASE))); | |
33377 | SWIG_Python_SetConstant(d, "FR_REPLACEDIALOG",SWIG_From_int(static_cast< int >(wxFR_REPLACEDIALOG))); | |
33378 | SWIG_Python_SetConstant(d, "FR_NOUPDOWN",SWIG_From_int(static_cast< int >(wxFR_NOUPDOWN))); | |
33379 | SWIG_Python_SetConstant(d, "FR_NOMATCHCASE",SWIG_From_int(static_cast< int >(wxFR_NOMATCHCASE))); | |
33380 | SWIG_Python_SetConstant(d, "FR_NOWHOLEWORD",SWIG_From_int(static_cast< int >(wxFR_NOWHOLEWORD))); | |
33381 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); | |
33382 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
33383 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
33384 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
33385 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
33386 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILE",SWIG_From_int(static_cast< int >(4001))); | |
33387 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILEHOR",SWIG_From_int(static_cast< int >(4001))); | |
33388 | SWIG_Python_SetConstant(d, "IDM_WINDOWCASCADE",SWIG_From_int(static_cast< int >(4002))); | |
33389 | SWIG_Python_SetConstant(d, "IDM_WINDOWICONS",SWIG_From_int(static_cast< int >(4003))); | |
33390 | SWIG_Python_SetConstant(d, "IDM_WINDOWNEXT",SWIG_From_int(static_cast< int >(4004))); | |
33391 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILEVERT",SWIG_From_int(static_cast< int >(4005))); | |
33392 | SWIG_Python_SetConstant(d, "IDM_WINDOWPREV",SWIG_From_int(static_cast< int >(4006))); | |
33393 | SWIG_Python_SetConstant(d, "FIRST_MDI_CHILD",SWIG_From_int(static_cast< int >(4100))); | |
33394 | SWIG_Python_SetConstant(d, "LAST_MDI_CHILD",SWIG_From_int(static_cast< int >(4600))); | |
33395 | SWIG_addvarlink(SWIG_globals(),(char*)"PrintoutTitleStr",PrintoutTitleStr_get, PrintoutTitleStr_set); | |
33396 | SWIG_addvarlink(SWIG_globals(),(char*)"PreviewCanvasNameStr",PreviewCanvasNameStr_get, PreviewCanvasNameStr_set); | |
33397 | SWIG_Python_SetConstant(d, "PRINT_MODE_NONE",SWIG_From_int(static_cast< int >(wxPRINT_MODE_NONE))); | |
33398 | SWIG_Python_SetConstant(d, "PRINT_MODE_PREVIEW",SWIG_From_int(static_cast< int >(wxPRINT_MODE_PREVIEW))); | |
33399 | SWIG_Python_SetConstant(d, "PRINT_MODE_FILE",SWIG_From_int(static_cast< int >(wxPRINT_MODE_FILE))); | |
33400 | SWIG_Python_SetConstant(d, "PRINT_MODE_PRINTER",SWIG_From_int(static_cast< int >(wxPRINT_MODE_PRINTER))); | |
33401 | SWIG_Python_SetConstant(d, "PRINT_MODE_STREAM",SWIG_From_int(static_cast< int >(wxPRINT_MODE_STREAM))); | |
33402 | SWIG_Python_SetConstant(d, "PRINTBIN_DEFAULT",SWIG_From_int(static_cast< int >(wxPRINTBIN_DEFAULT))); | |
33403 | SWIG_Python_SetConstant(d, "PRINTBIN_ONLYONE",SWIG_From_int(static_cast< int >(wxPRINTBIN_ONLYONE))); | |
33404 | SWIG_Python_SetConstant(d, "PRINTBIN_LOWER",SWIG_From_int(static_cast< int >(wxPRINTBIN_LOWER))); | |
33405 | SWIG_Python_SetConstant(d, "PRINTBIN_MIDDLE",SWIG_From_int(static_cast< int >(wxPRINTBIN_MIDDLE))); | |
33406 | SWIG_Python_SetConstant(d, "PRINTBIN_MANUAL",SWIG_From_int(static_cast< int >(wxPRINTBIN_MANUAL))); | |
33407 | SWIG_Python_SetConstant(d, "PRINTBIN_ENVELOPE",SWIG_From_int(static_cast< int >(wxPRINTBIN_ENVELOPE))); | |
33408 | SWIG_Python_SetConstant(d, "PRINTBIN_ENVMANUAL",SWIG_From_int(static_cast< int >(wxPRINTBIN_ENVMANUAL))); | |
33409 | SWIG_Python_SetConstant(d, "PRINTBIN_AUTO",SWIG_From_int(static_cast< int >(wxPRINTBIN_AUTO))); | |
33410 | SWIG_Python_SetConstant(d, "PRINTBIN_TRACTOR",SWIG_From_int(static_cast< int >(wxPRINTBIN_TRACTOR))); | |
33411 | SWIG_Python_SetConstant(d, "PRINTBIN_SMALLFMT",SWIG_From_int(static_cast< int >(wxPRINTBIN_SMALLFMT))); | |
33412 | SWIG_Python_SetConstant(d, "PRINTBIN_LARGEFMT",SWIG_From_int(static_cast< int >(wxPRINTBIN_LARGEFMT))); | |
33413 | SWIG_Python_SetConstant(d, "PRINTBIN_LARGECAPACITY",SWIG_From_int(static_cast< int >(wxPRINTBIN_LARGECAPACITY))); | |
33414 | SWIG_Python_SetConstant(d, "PRINTBIN_CASSETTE",SWIG_From_int(static_cast< int >(wxPRINTBIN_CASSETTE))); | |
33415 | SWIG_Python_SetConstant(d, "PRINTBIN_FORMSOURCE",SWIG_From_int(static_cast< int >(wxPRINTBIN_FORMSOURCE))); | |
33416 | SWIG_Python_SetConstant(d, "PRINTBIN_USER",SWIG_From_int(static_cast< int >(wxPRINTBIN_USER))); | |
33417 | SWIG_Python_SetConstant(d, "PRINTER_NO_ERROR",SWIG_From_int(static_cast< int >(wxPRINTER_NO_ERROR))); | |
33418 | SWIG_Python_SetConstant(d, "PRINTER_CANCELLED",SWIG_From_int(static_cast< int >(wxPRINTER_CANCELLED))); | |
33419 | SWIG_Python_SetConstant(d, "PRINTER_ERROR",SWIG_From_int(static_cast< int >(wxPRINTER_ERROR))); | |
33420 | SWIG_Python_SetConstant(d, "PREVIEW_PRINT",SWIG_From_int(static_cast< int >(wxPREVIEW_PRINT))); | |
33421 | SWIG_Python_SetConstant(d, "PREVIEW_PREVIOUS",SWIG_From_int(static_cast< int >(wxPREVIEW_PREVIOUS))); | |
33422 | SWIG_Python_SetConstant(d, "PREVIEW_NEXT",SWIG_From_int(static_cast< int >(wxPREVIEW_NEXT))); | |
33423 | SWIG_Python_SetConstant(d, "PREVIEW_ZOOM",SWIG_From_int(static_cast< int >(wxPREVIEW_ZOOM))); | |
33424 | SWIG_Python_SetConstant(d, "PREVIEW_FIRST",SWIG_From_int(static_cast< int >(wxPREVIEW_FIRST))); | |
33425 | SWIG_Python_SetConstant(d, "PREVIEW_LAST",SWIG_From_int(static_cast< int >(wxPREVIEW_LAST))); | |
33426 | SWIG_Python_SetConstant(d, "PREVIEW_GOTO",SWIG_From_int(static_cast< int >(wxPREVIEW_GOTO))); | |
33427 | SWIG_Python_SetConstant(d, "PREVIEW_DEFAULT",SWIG_From_int(static_cast< int >(wxPREVIEW_DEFAULT))); | |
33428 | SWIG_Python_SetConstant(d, "ID_PREVIEW_CLOSE",SWIG_From_int(static_cast< int >(wxID_PREVIEW_CLOSE))); | |
33429 | SWIG_Python_SetConstant(d, "ID_PREVIEW_NEXT",SWIG_From_int(static_cast< int >(wxID_PREVIEW_NEXT))); | |
33430 | SWIG_Python_SetConstant(d, "ID_PREVIEW_PREVIOUS",SWIG_From_int(static_cast< int >(wxID_PREVIEW_PREVIOUS))); | |
33431 | SWIG_Python_SetConstant(d, "ID_PREVIEW_PRINT",SWIG_From_int(static_cast< int >(wxID_PREVIEW_PRINT))); | |
33432 | SWIG_Python_SetConstant(d, "ID_PREVIEW_ZOOM",SWIG_From_int(static_cast< int >(wxID_PREVIEW_ZOOM))); | |
33433 | SWIG_Python_SetConstant(d, "ID_PREVIEW_FIRST",SWIG_From_int(static_cast< int >(wxID_PREVIEW_FIRST))); | |
33434 | SWIG_Python_SetConstant(d, "ID_PREVIEW_LAST",SWIG_From_int(static_cast< int >(wxID_PREVIEW_LAST))); | |
33435 | SWIG_Python_SetConstant(d, "ID_PREVIEW_GOTO",SWIG_From_int(static_cast< int >(wxID_PREVIEW_GOTO))); | |
33436 | ||
33437 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
33438 | ||
d14a1e28 RD |
33439 | } |
33440 |