]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
1bd55598 | 3 | * Version 1.3.29 |
d55e5bfc RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
1bd55598 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
d55e5bfc RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
36ed4f51 | 27 | }; |
d55e5bfc RD |
28 | #endif |
29 | ||
1bd55598 | 30 | /* ----------------------------------------------------------------------------- |
32fe5131 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
1bd55598 | 33 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 34 | |
32fe5131 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
1bd55598 RD |
37 | # if defined(__SUNPRO_CC) |
38 | # if (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
40 | # else | |
41 | # define SWIGTEMPLATEDISAMBIGUATOR | |
42 | # endif | |
43 | # else | |
44 | # define SWIGTEMPLATEDISAMBIGUATOR | |
45 | # endif | |
36ed4f51 | 46 | #endif |
d55e5bfc | 47 | |
32fe5131 RD |
48 | /* inline attribute */ |
49 | #ifndef SWIGINLINE | |
50 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
51 | # define SWIGINLINE inline | |
52 | # else | |
53 | # define SWIGINLINE | |
54 | # endif | |
55 | #endif | |
56 | ||
57 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
58 | #ifndef SWIGUNUSED | |
1bd55598 RD |
59 | # if defined(__GNUC__) |
60 | # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) | |
61 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
62 | # else | |
63 | # define SWIGUNUSED | |
64 | # endif | |
65 | # elif defined(__ICC) | |
66 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
32fe5131 RD |
67 | # else |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
1bd55598 RD |
72 | #ifndef SWIGUNUSEDPARM |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
32fe5131 RD |
80 | /* internal SWIG method */ |
81 | #ifndef SWIGINTERN | |
82 | # define SWIGINTERN static SWIGUNUSED | |
83 | #endif | |
84 | ||
85 | /* internal inline SWIG method */ | |
86 | #ifndef SWIGINTERNINLINE | |
87 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
88 | #endif | |
89 | ||
1bd55598 RD |
90 | /* exporting methods */ |
91 | #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) | |
92 | # ifndef GCC_HASCLASSVISIBILITY | |
93 | # define GCC_HASCLASSVISIBILITY | |
94 | # endif | |
95 | #endif | |
96 | ||
32fe5131 RD |
97 | #ifndef SWIGEXPORT |
98 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
99 | # if defined(STATIC_LINKED) | |
100 | # define SWIGEXPORT | |
101 | # else | |
102 | # define SWIGEXPORT __declspec(dllexport) | |
103 | # endif | |
104 | # else | |
1bd55598 RD |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
32fe5131 RD |
110 | # endif |
111 | #endif | |
112 | ||
113 | /* calling conventions for Windows */ | |
114 | #ifndef SWIGSTDCALL | |
115 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
116 | # define SWIGSTDCALL __stdcall | |
117 | # else | |
118 | # define SWIGSTDCALL | |
119 | # endif | |
120 | #endif | |
121 | ||
1bd55598 RD |
122 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
123 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) | |
124 | # define _CRT_SECURE_NO_DEPRECATE | |
125 | #endif | |
32fe5131 | 126 | |
d55e5bfc | 127 | |
1bd55598 | 128 | /* Python.h has to appear first */ |
36ed4f51 | 129 | #include <Python.h> |
d55e5bfc | 130 | |
1bd55598 | 131 | /* ----------------------------------------------------------------------------- |
36ed4f51 | 132 | * swigrun.swg |
d55e5bfc | 133 | * |
1bd55598 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 137 | |
36ed4f51 RD |
138 | /* This should only be incremented when either the layout of swig_type_info changes, |
139 | or for whatever reason, the runtime changes incompatibly */ | |
32fe5131 | 140 | #define SWIG_RUNTIME_VERSION "2" |
d55e5bfc | 141 | |
36ed4f51 RD |
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
143 | #ifdef SWIG_TYPE_TABLE | |
32fe5131 RD |
144 | # define SWIG_QUOTE_STRING(x) #x |
145 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
146 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d55e5bfc | 147 | #else |
32fe5131 | 148 | # define SWIG_TYPE_TABLE_NAME |
36ed4f51 RD |
149 | #endif |
150 | ||
151 | /* | |
152 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
153 | creating a static or dynamic library from the swig runtime code. | |
154 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
155 | ||
156 | But only do this if is strictly necessary, ie, if you have problems | |
157 | with your compiler or so. | |
158 | */ | |
32fe5131 | 159 | |
36ed4f51 | 160 | #ifndef SWIGRUNTIME |
32fe5131 | 161 | # define SWIGRUNTIME SWIGINTERN |
36ed4f51 | 162 | #endif |
32fe5131 | 163 | |
36ed4f51 | 164 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d55e5bfc RD |
166 | #endif |
167 | ||
1bd55598 RD |
168 | /* Generic buffer size */ |
169 | #ifndef SWIG_BUFFER_SIZE | |
170 | # define SWIG_BUFFER_SIZE 1024 | |
171 | #endif | |
172 | ||
173 | /* Flags for pointer conversions */ | |
174 | #define SWIG_POINTER_DISOWN 0x1 | |
175 | ||
176 | /* Flags for new pointer objects */ | |
177 | #define SWIG_POINTER_OWN 0x1 | |
178 | ||
179 | ||
180 | /* | |
181 | Flags/methods for returning states. | |
182 | ||
183 | The swig conversion methods, as ConvertPtr, return and integer | |
184 | that tells if the conversion was successful or not. And if not, | |
185 | an error code can be returned (see swigerrors.swg for the codes). | |
186 | ||
187 | Use the following macros/flags to set or process the returning | |
188 | states. | |
189 | ||
190 | In old swig versions, you usually write code as: | |
191 | ||
192 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { | |
193 | // success code | |
194 | } else { | |
195 | //fail code | |
196 | } | |
197 | ||
198 | Now you can be more explicit as: | |
199 | ||
200 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); | |
201 | if (SWIG_IsOK(res)) { | |
202 | // success code | |
203 | } else { | |
204 | // fail code | |
205 | } | |
206 | ||
207 | that seems to be the same, but now you can also do | |
208 | ||
209 | Type *ptr; | |
210 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); | |
211 | if (SWIG_IsOK(res)) { | |
212 | // success code | |
213 | if (SWIG_IsNewObj(res) { | |
214 | ... | |
215 | delete *ptr; | |
216 | } else { | |
217 | ... | |
218 | } | |
219 | } else { | |
220 | // fail code | |
221 | } | |
222 | ||
223 | I.e., now SWIG_ConvertPtr can return new objects and you can | |
224 | identify the case and take care of the deallocation. Of course that | |
225 | requires also to SWIG_ConvertPtr to return new result values, as | |
226 | ||
227 | int SWIG_ConvertPtr(obj, ptr,...) { | |
228 | if (<obj is ok>) { | |
229 | if (<need new object>) { | |
230 | *ptr = <ptr to new allocated object>; | |
231 | return SWIG_NEWOBJ; | |
232 | } else { | |
233 | *ptr = <ptr to old object>; | |
234 | return SWIG_OLDOBJ; | |
235 | } | |
236 | } else { | |
237 | return SWIG_BADOBJ; | |
238 | } | |
239 | } | |
240 | ||
241 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be | |
242 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the | |
243 | swig errors code. | |
244 | ||
245 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code | |
246 | allows to return the 'cast rank', for example, if you have this | |
247 | ||
248 | int food(double) | |
249 | int fooi(int); | |
250 | ||
251 | and you call | |
252 | ||
253 | food(1) // cast rank '1' (1 -> 1.0) | |
254 | fooi(1) // cast rank '0' | |
255 | ||
256 | just use the SWIG_AddCast()/SWIG_CheckState() | |
257 | ||
258 | ||
259 | */ | |
260 | #define SWIG_OK (0) | |
261 | #define SWIG_ERROR (-1) | |
262 | #define SWIG_IsOK(r) (r >= 0) | |
263 | #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) | |
264 | ||
265 | /* The CastRankLimit says how many bits are used for the cast rank */ | |
266 | #define SWIG_CASTRANKLIMIT (1 << 8) | |
267 | /* The NewMask denotes the object was created (using new/malloc) */ | |
268 | #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) | |
269 | /* The TmpMask is for in/out typemaps that use temporal objects */ | |
270 | #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) | |
271 | /* Simple returning values */ | |
272 | #define SWIG_BADOBJ (SWIG_ERROR) | |
273 | #define SWIG_OLDOBJ (SWIG_OK) | |
274 | #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) | |
275 | #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) | |
276 | /* Check, add and del mask methods */ | |
277 | #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) | |
278 | #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) | |
279 | #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) | |
280 | #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) | |
281 | #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) | |
282 | #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) | |
283 | ||
284 | ||
285 | /* Cast-Rank Mode */ | |
286 | #if defined(SWIG_CASTRANK_MODE) | |
287 | # ifndef SWIG_TypeRank | |
288 | # define SWIG_TypeRank unsigned long | |
289 | # endif | |
290 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ | |
291 | # define SWIG_MAXCASTRANK (2) | |
292 | # endif | |
293 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) | |
294 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) | |
295 | SWIGINTERNINLINE int SWIG_AddCast(int r) { | |
296 | return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; | |
297 | } | |
298 | SWIGINTERNINLINE int SWIG_CheckState(int r) { | |
299 | return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; | |
300 | } | |
301 | #else /* no cast-rank mode */ | |
302 | # define SWIG_AddCast | |
303 | # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) | |
304 | #endif | |
305 | ||
306 | ||
307 | ||
308 | ||
32fe5131 RD |
309 | #include <string.h> |
310 | ||
d55e5bfc RD |
311 | #ifdef __cplusplus |
312 | extern "C" { | |
313 | #endif | |
314 | ||
315 | typedef void *(*swig_converter_func)(void *); | |
316 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
317 | ||
32fe5131 | 318 | /* Structure to store inforomation on one type */ |
d55e5bfc | 319 | typedef struct swig_type_info { |
32fe5131 RD |
320 | const char *name; /* mangled name of this type */ |
321 | const char *str; /* human readable name of this type */ | |
322 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
323 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
324 | void *clientdata; /* language specific type data */ | |
1bd55598 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
d55e5bfc RD |
326 | } swig_type_info; |
327 | ||
32fe5131 RD |
328 | /* Structure to store a type and conversion function used for casting */ |
329 | typedef struct swig_cast_info { | |
330 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
331 | swig_converter_func converter; /* function to cast the void pointers */ | |
332 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
333 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
334 | } swig_cast_info; | |
335 | ||
336 | /* Structure used to store module information | |
337 | * Each module generates one structure like this, and the runtime collects | |
338 | * all of these structures and stores them in a circularly linked list.*/ | |
339 | typedef struct swig_module_info { | |
340 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
341 | size_t size; /* Number of types in this module */ | |
342 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
343 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
344 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
345 | void *clientdata; /* Language specific module data */ | |
346 | } swig_module_info; | |
347 | ||
36ed4f51 RD |
348 | /* |
349 | Compare two type names skipping the space characters, therefore | |
350 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
351 | ||
352 | Return 0 when the two name types are equivalent, as in | |
353 | strncmp, but skipping ' '. | |
354 | */ | |
355 | SWIGRUNTIME int | |
356 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
357 | const char *f2, const char *l2) { | |
358 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
359 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
360 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
1bd55598 | 361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
36ed4f51 RD |
362 | } |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 368 | Return 0 if not equal, 1 if equal |
36ed4f51 RD |
369 | */ |
370 | SWIGRUNTIME int | |
371 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
372 | int equiv = 0; | |
373 | const char* te = tb + strlen(tb); | |
374 | const char* ne = nb; | |
375 | while (!equiv && *ne) { | |
376 | for (nb = ne; *ne; ++ne) { | |
377 | if (*ne == '|') break; | |
378 | } | |
32fe5131 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
36ed4f51 RD |
380 | if (*ne) ++ne; |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
32fe5131 RD |
386 | Check type equivalence in a name list like <name1>|<name2>|... |
387 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
36ed4f51 | 388 | */ |
32fe5131 RD |
389 | SWIGRUNTIME int |
390 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
391 | int equiv = 0; | |
392 | const char* te = tb + strlen(tb); | |
393 | const char* ne = nb; | |
394 | while (!equiv && *ne) { | |
395 | for (nb = ne; *ne; ++ne) { | |
396 | if (*ne == '|') break; | |
36ed4f51 | 397 | } |
32fe5131 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
36ed4f51 | 400 | } |
32fe5131 | 401 | return equiv; |
36ed4f51 RD |
402 | } |
403 | ||
32fe5131 RD |
404 | |
405 | /* think of this as a c++ template<> or a scheme macro */ | |
406 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
407 | if (ty) { \ | |
408 | swig_cast_info *iter = ty->cast; \ | |
409 | while (iter) { \ | |
410 | if (comparison) { \ | |
411 | if (iter == ty->cast) return iter; \ | |
412 | /* Move iter to the top of the linked list */ \ | |
413 | iter->prev->next = iter->next; \ | |
414 | if (iter->next) \ | |
415 | iter->next->prev = iter->prev; \ | |
416 | iter->next = ty->cast; \ | |
417 | iter->prev = 0; \ | |
418 | if (ty->cast) ty->cast->prev = iter; \ | |
419 | ty->cast = iter; \ | |
420 | return iter; \ | |
421 | } \ | |
422 | iter = iter->next; \ | |
423 | } \ | |
424 | } \ | |
425 | return 0 | |
426 | ||
36ed4f51 RD |
427 | /* |
428 | Check the typename | |
429 | */ | |
32fe5131 | 430 | SWIGRUNTIME swig_cast_info * |
36ed4f51 | 431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
32fe5131 RD |
432 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
433 | } | |
434 | ||
435 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
436 | SWIGRUNTIME swig_cast_info * | |
437 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
438 | SWIG_TypeCheck_Template(iter->type == from, into); | |
36ed4f51 RD |
439 | } |
440 | ||
441 | /* | |
442 | Cast a pointer up an inheritance hierarchy | |
443 | */ | |
444 | SWIGRUNTIMEINLINE void * | |
32fe5131 | 445 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
36ed4f51 RD |
446 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
447 | } | |
448 | ||
449 | /* | |
450 | Dynamic pointer casting. Down an inheritance hierarchy | |
451 | */ | |
452 | SWIGRUNTIME swig_type_info * | |
453 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
454 | swig_type_info *lastty = ty; | |
455 | if (!ty || !ty->dcast) return ty; | |
456 | while (ty && (ty->dcast)) { | |
457 | ty = (*ty->dcast)(ptr); | |
458 | if (ty) lastty = ty; | |
459 | } | |
460 | return lastty; | |
461 | } | |
462 | ||
463 | /* | |
464 | Return the name associated with this type | |
465 | */ | |
466 | SWIGRUNTIMEINLINE const char * | |
467 | SWIG_TypeName(const swig_type_info *ty) { | |
468 | return ty->name; | |
469 | } | |
470 | ||
471 | /* | |
472 | Return the pretty name associated with this type, | |
473 | that is an unmangled type name in a form presentable to the user. | |
474 | */ | |
475 | SWIGRUNTIME const char * | |
476 | SWIG_TypePrettyName(const swig_type_info *type) { | |
477 | /* The "str" field contains the equivalent pretty names of the | |
478 | type, separated by vertical-bar characters. We choose | |
479 | to print the last name, as it is often (?) the most | |
480 | specific. */ | |
1bd55598 | 481 | if (!type) return NULL; |
36ed4f51 RD |
482 | if (type->str != NULL) { |
483 | const char *last_name = type->str; | |
484 | const char *s; | |
485 | for (s = type->str; *s; s++) | |
486 | if (*s == '|') last_name = s+1; | |
487 | return last_name; | |
488 | } | |
489 | else | |
490 | return type->name; | |
491 | } | |
492 | ||
36ed4f51 RD |
493 | /* |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
32fe5131 RD |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
498 | swig_cast_info *cast = ti->cast; | |
36ed4f51 RD |
499 | /* if (ti->clientdata == clientdata) return; */ |
500 | ti->clientdata = clientdata; | |
32fe5131 RD |
501 | |
502 | while (cast) { | |
503 | if (!cast->converter) { | |
504 | swig_type_info *tc = cast->type; | |
505 | if (!tc->clientdata) { | |
506 | SWIG_TypeClientData(tc, clientdata); | |
36ed4f51 | 507 | } |
32fe5131 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
1bd55598 RD |
512 | SWIGRUNTIME void |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
32fe5131 RD |
518 | /* |
519 | Search for a swig_type_info structure only by mangled name | |
520 | Search is a O(log #types) | |
521 | ||
522 | We start searching at module start, and finish searching when start == end. | |
523 | Note: if start == end at the beginning of the function, we go all the way around | |
524 | the circular list. | |
525 | */ | |
526 | SWIGRUNTIME swig_type_info * | |
527 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
528 | swig_module_info *end, | |
529 | const char *name) { | |
530 | swig_module_info *iter = start; | |
531 | do { | |
532 | if (iter->size) { | |
533 | register size_t l = 0; | |
534 | register size_t r = iter->size - 1; | |
535 | do { | |
536 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
537 | register size_t i = (l + r) >> 1; | |
538 | const char *iname = iter->types[i]->name; | |
539 | if (iname) { | |
540 | register int compare = strcmp(name, iname); | |
541 | if (compare == 0) { | |
542 | return iter->types[i]; | |
543 | } else if (compare < 0) { | |
544 | if (i) { | |
545 | r = i - 1; | |
546 | } else { | |
547 | break; | |
548 | } | |
549 | } else if (compare > 0) { | |
550 | l = i + 1; | |
551 | } | |
552 | } else { | |
553 | break; /* should never happen */ | |
554 | } | |
555 | } while (l <= r); | |
36ed4f51 | 556 | } |
32fe5131 RD |
557 | iter = iter->next; |
558 | } while (iter != end); | |
559 | return 0; | |
560 | } | |
561 | ||
562 | /* | |
563 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
564 | It first searches the mangled names of the types, which is a O(log #types) | |
565 | If a type is not found it then searches the human readable names, which is O(#types). | |
566 | ||
567 | We start searching at module start, and finish searching when start == end. | |
568 | Note: if start == end at the beginning of the function, we go all the way around | |
569 | the circular list. | |
570 | */ | |
571 | SWIGRUNTIME swig_type_info * | |
572 | SWIG_TypeQueryModule(swig_module_info *start, | |
573 | swig_module_info *end, | |
574 | const char *name) { | |
575 | /* STEP 1: Search the name field using binary search */ | |
576 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
577 | if (ret) { | |
578 | return ret; | |
579 | } else { | |
580 | /* STEP 2: If the type hasn't been found, do a complete search | |
581 | of the str field (the human readable name) */ | |
582 | swig_module_info *iter = start; | |
583 | do { | |
584 | register size_t i = 0; | |
585 | for (; i < iter->size; ++i) { | |
586 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
587 | return iter->types[i]; | |
588 | } | |
589 | iter = iter->next; | |
590 | } while (iter != end); | |
36ed4f51 | 591 | } |
32fe5131 RD |
592 | |
593 | /* neither found a match */ | |
594 | return 0; | |
36ed4f51 RD |
595 | } |
596 | ||
597 | /* | |
598 | Pack binary data into a string | |
599 | */ | |
600 | SWIGRUNTIME char * | |
601 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
32fe5131 RD |
602 | static const char hex[17] = "0123456789abcdef"; |
603 | register const unsigned char *u = (unsigned char *) ptr; | |
604 | register const unsigned char *eu = u + sz; | |
36ed4f51 | 605 | for (; u != eu; ++u) { |
32fe5131 | 606 | register unsigned char uu = *u; |
36ed4f51 RD |
607 | *(c++) = hex[(uu & 0xf0) >> 4]; |
608 | *(c++) = hex[uu & 0xf]; | |
609 | } | |
610 | return c; | |
611 | } | |
612 | ||
613 | /* | |
614 | Unpack binary data from a string | |
615 | */ | |
616 | SWIGRUNTIME const char * | |
617 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
618 | register unsigned char *u = (unsigned char *) ptr; | |
32fe5131 | 619 | register const unsigned char *eu = u + sz; |
36ed4f51 | 620 | for (; u != eu; ++u) { |
32fe5131 | 621 | register char d = *(c++); |
1bd55598 | 622 | register unsigned char uu; |
36ed4f51 RD |
623 | if ((d >= '0') && (d <= '9')) |
624 | uu = ((d - '0') << 4); | |
625 | else if ((d >= 'a') && (d <= 'f')) | |
626 | uu = ((d - ('a'-10)) << 4); | |
627 | else | |
628 | return (char *) 0; | |
629 | d = *(c++); | |
630 | if ((d >= '0') && (d <= '9')) | |
631 | uu |= (d - '0'); | |
632 | else if ((d >= 'a') && (d <= 'f')) | |
633 | uu |= (d - ('a'-10)); | |
634 | else | |
635 | return (char *) 0; | |
636 | *u = uu; | |
637 | } | |
638 | return c; | |
639 | } | |
640 | ||
36ed4f51 RD |
641 | /* |
642 | Pack 'void *' into a string buffer. | |
643 | */ | |
644 | SWIGRUNTIME char * | |
645 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
646 | char *r = buff; | |
647 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
648 | *(r++) = '_'; | |
649 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
650 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
651 | strcpy(r,name); | |
652 | return buff; | |
653 | } | |
654 | ||
655 | SWIGRUNTIME const char * | |
656 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
657 | if (*c != '_') { | |
658 | if (strcmp(c,"NULL") == 0) { | |
659 | *ptr = (void *) 0; | |
660 | return name; | |
661 | } else { | |
662 | return 0; | |
663 | } | |
664 | } | |
665 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
666 | } | |
667 | ||
668 | SWIGRUNTIME char * | |
669 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
670 | char *r = buff; | |
671 | size_t lname = (name ? strlen(name) : 0); | |
672 | if ((2*sz + 2 + lname) > bsz) return 0; | |
673 | *(r++) = '_'; | |
674 | r = SWIG_PackData(r,ptr,sz); | |
675 | if (lname) { | |
676 | strncpy(r,name,lname+1); | |
677 | } else { | |
678 | *r = 0; | |
679 | } | |
680 | return buff; | |
681 | } | |
d55e5bfc | 682 | |
36ed4f51 RD |
683 | SWIGRUNTIME const char * |
684 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
685 | if (*c != '_') { | |
686 | if (strcmp(c,"NULL") == 0) { | |
687 | memset(ptr,0,sz); | |
688 | return name; | |
689 | } else { | |
690 | return 0; | |
691 | } | |
692 | } | |
693 | return SWIG_UnpackData(++c,ptr,sz); | |
694 | } | |
d55e5bfc RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
1bd55598 RD |
700 | /* Errors in SWIG */ |
701 | #define SWIG_UnknownError -1 | |
702 | #define SWIG_IOError -2 | |
703 | #define SWIG_RuntimeError -3 | |
704 | #define SWIG_IndexError -4 | |
705 | #define SWIG_TypeError -5 | |
706 | #define SWIG_DivisionByZero -6 | |
707 | #define SWIG_OverflowError -7 | |
708 | #define SWIG_SyntaxError -8 | |
709 | #define SWIG_ValueError -9 | |
710 | #define SWIG_SystemError -10 | |
711 | #define SWIG_AttributeError -11 | |
712 | #define SWIG_MemoryError -12 | |
713 | #define SWIG_NullReferenceError -13 | |
d55e5bfc | 714 | |
1bd55598 RD |
715 | |
716 | ||
717 | /* Python.h has to appear first */ | |
718 | #include <Python.h> | |
719 | ||
720 | /* Add PyOS_snprintf for old Pythons */ | |
721 | #if PY_VERSION_HEX < 0x02020000 | |
722 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) | |
723 | # define PyOS_snprintf _snprintf | |
724 | # else | |
725 | # define PyOS_snprintf snprintf | |
726 | # endif | |
727 | #endif | |
728 | ||
729 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
730 | #if PY_VERSION_HEX < 0x02020000 | |
731 | ||
732 | #ifndef SWIG_PYBUFFER_SIZE | |
733 | # define SWIG_PYBUFFER_SIZE 1024 | |
734 | #endif | |
735 | ||
736 | static PyObject * | |
737 | PyString_FromFormat(const char *fmt, ...) { | |
738 | va_list ap; | |
739 | char buf[SWIG_PYBUFFER_SIZE * 2]; | |
740 | int res; | |
741 | va_start(ap, fmt); | |
742 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
743 | va_end(ap); | |
744 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); | |
745 | } | |
746 | #endif | |
747 | ||
748 | /* Add PyObject_Del for old Pythons */ | |
749 | #if PY_VERSION_HEX < 0x01060000 | |
750 | # define PyObject_Del(op) PyMem_DEL((op)) | |
751 | #endif | |
752 | #ifndef PyObject_DEL | |
753 | # define PyObject_DEL PyObject_Del | |
754 | #endif | |
755 | ||
756 | /* A crude PyExc_StopIteration exception for old Pythons */ | |
757 | #if PY_VERSION_HEX < 0x02020000 | |
758 | # ifndef PyExc_StopIteration | |
759 | # define PyExc_StopIteration PyExc_RuntimeError | |
760 | # endif | |
761 | # ifndef PyObject_GenericGetAttr | |
762 | # define PyObject_GenericGetAttr 0 | |
763 | # endif | |
36ed4f51 | 764 | #endif |
1bd55598 RD |
765 | /* Py_NotImplemented is defined in 2.1 and up. */ |
766 | #if PY_VERSION_HEX < 0x02010000 | |
767 | # ifndef Py_NotImplemented | |
768 | # define Py_NotImplemented PyExc_RuntimeError | |
769 | # endif | |
770 | #endif | |
771 | ||
772 | ||
773 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ | |
774 | #if PY_VERSION_HEX < 0x02010000 | |
775 | # ifndef PyString_AsStringAndSize | |
776 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} | |
777 | # endif | |
778 | #endif | |
779 | ||
780 | /* PySequence_Size for old Pythons */ | |
781 | #if PY_VERSION_HEX < 0x02000000 | |
782 | # ifndef PySequence_Size | |
783 | # define PySequence_Size PySequence_Length | |
784 | # endif | |
785 | #endif | |
786 | ||
787 | ||
788 | /* PyBool_FromLong for old Pythons */ | |
789 | #if PY_VERSION_HEX < 0x02030000 | |
790 | static | |
791 | PyObject *PyBool_FromLong(long ok) | |
792 | { | |
793 | PyObject *result = ok ? Py_True : Py_False; | |
794 | Py_INCREF(result); | |
795 | return result; | |
796 | } | |
797 | #endif | |
798 | ||
c370783e | 799 | |
36ed4f51 | 800 | /* ----------------------------------------------------------------------------- |
1bd55598 | 801 | * error manipulation |
36ed4f51 | 802 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 803 | |
1bd55598 RD |
804 | SWIGRUNTIME PyObject* |
805 | SWIG_Python_ErrorType(int code) { | |
806 | PyObject* type = 0; | |
807 | switch(code) { | |
808 | case SWIG_MemoryError: | |
809 | type = PyExc_MemoryError; | |
810 | break; | |
811 | case SWIG_IOError: | |
812 | type = PyExc_IOError; | |
813 | break; | |
814 | case SWIG_RuntimeError: | |
815 | type = PyExc_RuntimeError; | |
816 | break; | |
817 | case SWIG_IndexError: | |
818 | type = PyExc_IndexError; | |
819 | break; | |
820 | case SWIG_TypeError: | |
821 | type = PyExc_TypeError; | |
822 | break; | |
823 | case SWIG_DivisionByZero: | |
824 | type = PyExc_ZeroDivisionError; | |
825 | break; | |
826 | case SWIG_OverflowError: | |
827 | type = PyExc_OverflowError; | |
828 | break; | |
829 | case SWIG_SyntaxError: | |
830 | type = PyExc_SyntaxError; | |
831 | break; | |
832 | case SWIG_ValueError: | |
833 | type = PyExc_ValueError; | |
834 | break; | |
835 | case SWIG_SystemError: | |
836 | type = PyExc_SystemError; | |
837 | break; | |
838 | case SWIG_AttributeError: | |
839 | type = PyExc_AttributeError; | |
840 | break; | |
841 | default: | |
842 | type = PyExc_RuntimeError; | |
843 | } | |
844 | return type; | |
845 | } | |
d55e5bfc | 846 | |
1bd55598 RD |
847 | |
848 | SWIGRUNTIME void | |
849 | SWIG_Python_AddErrorMsg(const char* mesg) | |
850 | { | |
851 | PyObject *type = 0; | |
852 | PyObject *value = 0; | |
853 | PyObject *traceback = 0; | |
854 | ||
855 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); | |
856 | if (value) { | |
857 | PyObject *old_str = PyObject_Str(value); | |
858 | PyErr_Clear(); | |
859 | Py_XINCREF(type); | |
860 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
861 | Py_DECREF(old_str); | |
862 | Py_DECREF(value); | |
863 | } else { | |
864 | PyErr_Format(PyExc_RuntimeError, mesg); | |
865 | } | |
866 | } | |
867 | ||
868 | ||
869 | ||
870 | #if defined(SWIG_PYTHON_NO_THREADS) | |
871 | # if defined(SWIG_PYTHON_THREADS) | |
872 | # undef SWIG_PYTHON_THREADS | |
873 | # endif | |
874 | #endif | |
875 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ | |
876 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) | |
877 | # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ | |
878 | # define SWIG_PYTHON_USE_GIL | |
879 | # endif | |
880 | # endif | |
881 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ | |
882 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS | |
883 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | |
884 | # endif | |
885 | # ifdef __cplusplus /* C++ code */ | |
886 | class SWIG_Python_Thread_Block { | |
887 | bool status; | |
888 | PyGILState_STATE state; | |
889 | public: | |
890 | void end() { if (status) { PyGILState_Release(state); status = false;} } | |
891 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} | |
892 | ~SWIG_Python_Thread_Block() { end(); } | |
893 | }; | |
894 | class SWIG_Python_Thread_Allow { | |
895 | bool status; | |
896 | PyThreadState *save; | |
897 | public: | |
898 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} | |
899 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} | |
900 | ~SWIG_Python_Thread_Allow() { end(); } | |
901 | }; | |
902 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block | |
903 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() | |
904 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow | |
905 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() | |
906 | # else /* C code */ | |
907 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() | |
908 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) | |
909 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() | |
910 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) | |
911 | # endif | |
912 | # else /* Old thread way, not implemented, user must provide it */ | |
913 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) | |
914 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
915 | # endif | |
916 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) | |
917 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
918 | # endif | |
919 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) | |
920 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
921 | # endif | |
922 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) | |
923 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
924 | # endif | |
925 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) | |
926 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
927 | # endif | |
928 | # endif | |
929 | #else /* No thread support */ | |
930 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
931 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
932 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
933 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
934 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
36ed4f51 | 935 | #endif |
d55e5bfc | 936 | |
1bd55598 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
36ed4f51 | 940 | |
1bd55598 RD |
941 | #ifdef __cplusplus |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
36ed4f51 RD |
947 | |
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 951 | |
36ed4f51 | 952 | /* Constant Types */ |
36ed4f51 RD |
953 | #define SWIG_PY_POINTER 4 |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
956 | /* Constant information structure */ | |
957 | typedef struct swig_const_info { | |
1bd55598 RD |
958 | int type; |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
36ed4f51 | 964 | } swig_const_info; |
d55e5bfc | 965 | |
d55e5bfc | 966 | #ifdef __cplusplus |
1bd55598 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
36ed4f51 RD |
970 | } |
971 | #endif | |
d55e5bfc | 972 | |
d55e5bfc | 973 | |
1bd55598 RD |
974 | /* ----------------------------------------------------------------------------- |
975 | * See the LICENSE file for information on copyright, usage and redistribution | |
976 | * of SWIG, and the README file for authors - http://www.swig.org/release.html. | |
977 | * | |
36ed4f51 RD |
978 | * pyrun.swg |
979 | * | |
1bd55598 RD |
980 | * This file contains the runtime support for Python modules |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
36ed4f51 | 983 | * |
1bd55598 | 984 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 985 | |
36ed4f51 | 986 | /* Common SWIG API */ |
d55e5bfc | 987 | |
4f89b6b7 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
1bd55598 RD |
992 | /* for raw pointers */ |
993 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
994 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
995 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
996 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
997 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
998 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
999 | #define swig_owntype int | |
d55e5bfc | 1000 | |
1bd55598 RD |
1001 | /* for raw packed data */ |
1002 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1003 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
d55e5bfc | 1004 | |
1bd55598 RD |
1005 | /* for class or struct pointers */ |
1006 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1007 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
d55e5bfc | 1008 | |
1bd55598 RD |
1009 | /* for C or C++ function pointers */ |
1010 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1011 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
d55e5bfc | 1012 | |
1bd55598 RD |
1013 | /* for C++ member pointers, ie, member methods */ |
1014 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1015 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
32fe5131 | 1016 | |
d55e5bfc | 1017 | |
1bd55598 | 1018 | /* Runtime API */ |
d55e5bfc | 1019 | |
1bd55598 RD |
1020 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1021 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1022 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
32fe5131 | 1023 | |
1bd55598 RD |
1024 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1025 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1026 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1027 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1028 | #define SWIG_fail goto fail | |
32fe5131 | 1029 | |
d55e5bfc | 1030 | |
1bd55598 | 1031 | /* Runtime API implementation */ |
36ed4f51 | 1032 | |
1bd55598 | 1033 | /* Error manipulation */ |
36ed4f51 | 1034 | |
1bd55598 RD |
1035 | SWIGINTERN void |
1036 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1037 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1038 | PyErr_SetObject(errtype, obj); | |
1039 | Py_DECREF(obj); | |
1040 | SWIG_PYTHON_THREAD_END_BLOCK; | |
d55e5bfc RD |
1041 | } |
1042 | ||
1bd55598 RD |
1043 | SWIGINTERN void |
1044 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1045 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1046 | PyErr_SetString(errtype, (char *) msg); | |
1047 | SWIG_PYTHON_THREAD_END_BLOCK; | |
36ed4f51 | 1048 | } |
d55e5bfc | 1049 | |
1bd55598 | 1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1051 | |
1bd55598 | 1052 | /* Set a constant value */ |
36ed4f51 | 1053 | |
1bd55598 RD |
1054 | SWIGINTERN void |
1055 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1056 | PyDict_SetItemString(d, (char*) name, obj); | |
1057 | Py_DECREF(obj); | |
d55e5bfc RD |
1058 | } |
1059 | ||
1bd55598 | 1060 | /* Append a value to the result obj */ |
d55e5bfc | 1061 | |
1bd55598 RD |
1062 | SWIGINTERN PyObject* |
1063 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1064 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1065 | if (!result) { | |
1066 | result = obj; | |
1067 | } else if (result == Py_None) { | |
1068 | Py_DECREF(result); | |
1069 | result = obj; | |
1070 | } else { | |
1071 | if (!PyList_Check(result)) { | |
1072 | PyObject *o2 = result; | |
1073 | result = PyList_New(1); | |
1074 | PyList_SetItem(result, 0, o2); | |
1075 | } | |
1076 | PyList_Append(result,obj); | |
1077 | Py_DECREF(obj); | |
1078 | } | |
1079 | return result; | |
1080 | #else | |
1081 | PyObject* o2; | |
1082 | PyObject* o3; | |
1083 | if (!result) { | |
1084 | result = obj; | |
1085 | } else if (result == Py_None) { | |
1086 | Py_DECREF(result); | |
1087 | result = obj; | |
c370783e | 1088 | } else { |
1bd55598 RD |
1089 | if (!PyTuple_Check(result)) { |
1090 | o2 = result; | |
1091 | result = PyTuple_New(1); | |
1092 | PyTuple_SET_ITEM(result, 0, o2); | |
1093 | } | |
1094 | o3 = PyTuple_New(1); | |
1095 | PyTuple_SET_ITEM(o3, 0, obj); | |
1096 | o2 = result; | |
1097 | result = PySequence_Concat(o2, o3); | |
1098 | Py_DECREF(o2); | |
1099 | Py_DECREF(o3); | |
c370783e | 1100 | } |
1bd55598 RD |
1101 | return result; |
1102 | #endif | |
d55e5bfc | 1103 | } |
36ed4f51 | 1104 | |
1bd55598 | 1105 | /* Unpack the argument tuple */ |
36ed4f51 | 1106 | |
1bd55598 RD |
1107 | SWIGINTERN int |
1108 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1109 | { | |
1110 | if (!args) { | |
1111 | if (!min && !max) { | |
1112 | return 1; | |
1113 | } else { | |
1114 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1115 | name, (min == max ? "" : "at least "), min); | |
1116 | return 0; | |
1117 | } | |
1118 | } | |
1119 | if (!PyTuple_Check(args)) { | |
1120 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1121 | return 0; | |
1122 | } else { | |
1123 | register int l = PyTuple_GET_SIZE(args); | |
1124 | if (l < min) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at least "), min, l); | |
1127 | return 0; | |
1128 | } else if (l > max) { | |
1129 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1130 | name, (min == max ? "" : "at most "), max, l); | |
1131 | return 0; | |
1132 | } else { | |
1133 | register int i; | |
1134 | for (i = 0; i < l; ++i) { | |
1135 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1136 | } | |
1137 | for (; l < max; ++l) { | |
1138 | objs[l] = 0; | |
1139 | } | |
1140 | return i + 1; | |
1141 | } | |
1142 | } | |
1143 | } | |
1144 | ||
1145 | /* A functor is a function object with one single object argument */ | |
1146 | #if PY_VERSION_HEX >= 0x02020000 | |
1147 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1148 | #else | |
1149 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1150 | #endif | |
1151 | ||
1152 | /* | |
1153 | Helper for static pointer initialization for both C and C++ code, for example | |
1154 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1155 | */ | |
1156 | #ifdef __cplusplus | |
1157 | #define SWIG_STATIC_POINTER(var) var | |
1158 | #else | |
1159 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1160 | #endif | |
1161 | ||
1162 | /* ----------------------------------------------------------------------------- | |
1163 | * Pointer declarations | |
1164 | * ----------------------------------------------------------------------------- */ | |
1165 | ||
1166 | /* Flags for new pointer objects */ | |
1167 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1168 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1169 | ||
1170 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1171 | ||
1172 | #ifdef __cplusplus | |
1173 | extern "C" { | |
1174 | #if 0 | |
1175 | } /* cc-mode */ | |
1176 | #endif | |
1177 | #endif | |
1178 | ||
1179 | /* How to access Py_None */ | |
1180 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1181 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1182 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1183 | # define SWIG_PYTHON_BUILD_NONE | |
1184 | # endif | |
1185 | # endif | |
1186 | #endif | |
1187 | ||
1188 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1189 | # ifdef Py_None | |
1190 | # undef Py_None | |
1191 | # define Py_None SWIG_Py_None() | |
1192 | # endif | |
1193 | SWIGRUNTIMEINLINE PyObject * | |
1194 | _SWIG_Py_None(void) | |
1195 | { | |
1196 | PyObject *none = Py_BuildValue(""); | |
1197 | Py_DECREF(none); | |
1198 | return none; | |
1199 | } | |
1200 | SWIGRUNTIME PyObject * | |
1201 | SWIG_Py_None(void) | |
1202 | { | |
1203 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1204 | return none; | |
1205 | } | |
1206 | #endif | |
1207 | ||
1208 | /* The python void return value */ | |
1209 | ||
1210 | SWIGRUNTIMEINLINE PyObject * | |
1211 | SWIG_Py_Void(void) | |
1212 | { | |
1213 | PyObject *none = Py_None; | |
1214 | Py_INCREF(none); | |
1215 | return none; | |
1216 | } | |
1217 | ||
1218 | /* PySwigClientData */ | |
1219 | ||
1220 | typedef struct { | |
1221 | PyObject *klass; | |
1222 | PyObject *newraw; | |
1223 | PyObject *newargs; | |
1224 | PyObject *destroy; | |
1225 | int delargs; | |
1226 | int implicitconv; | |
1227 | } PySwigClientData; | |
1228 | ||
1229 | SWIGRUNTIMEINLINE int | |
1230 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1231 | { | |
1232 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1233 | return data ? data->implicitconv : 0; | |
1234 | } | |
1235 | ||
1236 | SWIGRUNTIMEINLINE PyObject * | |
1237 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1238 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1239 | PyObject *klass = data ? data->klass : 0; | |
1240 | return (klass ? klass : PyExc_RuntimeError); | |
1241 | } | |
1242 | ||
1243 | ||
1244 | SWIGRUNTIME PySwigClientData * | |
1245 | PySwigClientData_New(PyObject* obj) | |
1246 | { | |
1247 | if (!obj) { | |
1248 | return 0; | |
1249 | } else { | |
1250 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1251 | /* the klass element */ | |
1252 | data->klass = obj; | |
1253 | Py_INCREF(data->klass); | |
1254 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1255 | if (PyClass_Check(obj)) { | |
1256 | data->newraw = 0; | |
1257 | data->newargs = obj; | |
1258 | Py_INCREF(obj); | |
1259 | } else { | |
1260 | #if (PY_VERSION_HEX < 0x02020000) | |
1261 | data->newraw = 0; | |
1262 | #else | |
1263 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1264 | #endif | |
1265 | if (data->newraw) { | |
1266 | Py_INCREF(data->newraw); | |
1267 | data->newargs = PyTuple_New(1); | |
1268 | PyTuple_SetItem(data->newargs, 0, obj); | |
1269 | } else { | |
1270 | data->newargs = obj; | |
1271 | } | |
1272 | Py_INCREF(data->newargs); | |
1273 | } | |
1274 | /* the destroy method, aka as the C++ delete method */ | |
1275 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1276 | if (PyErr_Occurred()) { | |
1277 | PyErr_Clear(); | |
1278 | data->destroy = 0; | |
1279 | } | |
1280 | if (data->destroy) { | |
1281 | int flags; | |
1282 | Py_INCREF(data->destroy); | |
1283 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1284 | #ifdef METH_O | |
1285 | data->delargs = !(flags & (METH_O)); | |
1286 | #else | |
1287 | data->delargs = 0; | |
1288 | #endif | |
1289 | } else { | |
1290 | data->delargs = 0; | |
1291 | } | |
1292 | data->implicitconv = 0; | |
1293 | return data; | |
1294 | } | |
1295 | } | |
1296 | ||
1297 | SWIGRUNTIME void | |
1298 | PySwigClientData_Del(PySwigClientData* data) | |
1299 | { | |
1300 | Py_XDECREF(data->newraw); | |
1301 | Py_XDECREF(data->newargs); | |
1302 | Py_XDECREF(data->destroy); | |
1303 | } | |
1304 | ||
1305 | /* =============== PySwigObject =====================*/ | |
1306 | ||
1307 | typedef struct { | |
1308 | PyObject_HEAD | |
1309 | void *ptr; | |
1310 | swig_type_info *ty; | |
1311 | int own; | |
1312 | PyObject *next; | |
1313 | } PySwigObject; | |
1314 | ||
1315 | SWIGRUNTIME PyObject * | |
1316 | PySwigObject_long(PySwigObject *v) | |
1317 | { | |
1318 | return PyLong_FromVoidPtr(v->ptr); | |
1319 | } | |
1320 | ||
1321 | SWIGRUNTIME PyObject * | |
1322 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1323 | { | |
1324 | PyObject *res = NULL; | |
1325 | PyObject *args = PyTuple_New(1); | |
1326 | if (args) { | |
1327 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1328 | PyObject *ofmt = PyString_FromString(fmt); | |
1329 | if (ofmt) { | |
1330 | res = PyString_Format(ofmt,args); | |
1331 | Py_DECREF(ofmt); | |
1332 | } | |
1333 | Py_DECREF(args); | |
1334 | } | |
1335 | } | |
1336 | return res; | |
1337 | } | |
1338 | ||
1339 | SWIGRUNTIME PyObject * | |
1340 | PySwigObject_oct(PySwigObject *v) | |
1341 | { | |
1342 | return PySwigObject_format("%o",v); | |
1343 | } | |
1344 | ||
1345 | SWIGRUNTIME PyObject * | |
1346 | PySwigObject_hex(PySwigObject *v) | |
1347 | { | |
1348 | return PySwigObject_format("%x",v); | |
1349 | } | |
1350 | ||
1351 | SWIGRUNTIME PyObject * | |
1352 | #ifdef METH_NOARGS | |
1353 | PySwigObject_repr(PySwigObject *v) | |
1354 | #else | |
1355 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1356 | #endif | |
1357 | { | |
1358 | const char *name = SWIG_TypePrettyName(v->ty); | |
1359 | PyObject *hex = PySwigObject_hex(v); | |
1360 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1361 | Py_DECREF(hex); | |
1362 | if (v->next) { | |
1363 | #ifdef METH_NOARGS | |
1364 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1365 | #else | |
1366 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1367 | #endif | |
1368 | PyString_ConcatAndDel(&repr,nrep); | |
1369 | } | |
1370 | return repr; | |
1371 | } | |
1372 | ||
1373 | SWIGRUNTIME int | |
1374 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1375 | { | |
1376 | #ifdef METH_NOARGS | |
1377 | PyObject *repr = PySwigObject_repr(v); | |
1378 | #else | |
1379 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1380 | #endif | |
1381 | if (repr) { | |
1382 | fputs(PyString_AsString(repr), fp); | |
1383 | Py_DECREF(repr); | |
1384 | return 0; | |
1385 | } else { | |
1386 | return 1; | |
1387 | } | |
1388 | } | |
1389 | ||
1390 | SWIGRUNTIME PyObject * | |
1391 | PySwigObject_str(PySwigObject *v) | |
1392 | { | |
1393 | char result[SWIG_BUFFER_SIZE]; | |
1394 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1395 | PyString_FromString(result) : 0; | |
1396 | } | |
1397 | ||
1398 | SWIGRUNTIME int | |
1399 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1400 | { | |
1401 | void *i = v->ptr; | |
1402 | void *j = w->ptr; | |
1403 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1404 | } | |
1405 | ||
1406 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1407 | ||
1408 | SWIGRUNTIME PyTypeObject* | |
1409 | PySwigObject_type(void) { | |
1410 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1411 | return type; | |
1412 | } | |
1413 | ||
1414 | SWIGRUNTIMEINLINE int | |
1415 | PySwigObject_Check(PyObject *op) { | |
1416 | return ((op)->ob_type == PySwigObject_type()) | |
1417 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1418 | } | |
1419 | ||
1420 | SWIGRUNTIME PyObject * | |
1421 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1422 | ||
1423 | SWIGRUNTIME void | |
1424 | PySwigObject_dealloc(PyObject *v) | |
1425 | { | |
1426 | PySwigObject *sobj = (PySwigObject *) v; | |
1427 | PyObject *next = sobj->next; | |
1428 | if (sobj->own) { | |
1429 | swig_type_info *ty = sobj->ty; | |
1430 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1431 | PyObject *destroy = data ? data->destroy : 0; | |
1432 | if (destroy) { | |
1433 | /* destroy is always a VARARGS method */ | |
1434 | PyObject *res; | |
1435 | if (data->delargs) { | |
1436 | /* we need to create a temporal object to carry the destroy operation */ | |
1437 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1438 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1439 | Py_DECREF(tmp); | |
1440 | } else { | |
1441 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1442 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1443 | res = ((*meth)(mself, v)); | |
1444 | } | |
1445 | Py_XDECREF(res); | |
1446 | } else { | |
1447 | const char *name = SWIG_TypePrettyName(ty); | |
1448 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1449 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1450 | #endif | |
1451 | } | |
1452 | } | |
1453 | Py_XDECREF(next); | |
1454 | PyObject_DEL(v); | |
1455 | } | |
1456 | ||
1457 | SWIGRUNTIME PyObject* | |
1458 | PySwigObject_append(PyObject* v, PyObject* next) | |
1459 | { | |
1460 | PySwigObject *sobj = (PySwigObject *) v; | |
1461 | #ifndef METH_O | |
1462 | PyObject *tmp = 0; | |
1463 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1464 | next = tmp; | |
1465 | #endif | |
1466 | if (!PySwigObject_Check(next)) { | |
1467 | return NULL; | |
1468 | } | |
1469 | sobj->next = next; | |
1470 | Py_INCREF(next); | |
1471 | return SWIG_Py_Void(); | |
1472 | } | |
1473 | ||
1474 | SWIGRUNTIME PyObject* | |
1475 | #ifdef METH_NOARGS | |
1476 | PySwigObject_next(PyObject* v) | |
1477 | #else | |
1478 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1479 | #endif | |
1480 | { | |
1481 | PySwigObject *sobj = (PySwigObject *) v; | |
1482 | if (sobj->next) { | |
1483 | Py_INCREF(sobj->next); | |
1484 | return sobj->next; | |
1485 | } else { | |
1486 | return SWIG_Py_Void(); | |
1487 | } | |
1488 | } | |
1489 | ||
1490 | SWIGINTERN PyObject* | |
1491 | #ifdef METH_NOARGS | |
1492 | PySwigObject_disown(PyObject *v) | |
1493 | #else | |
1494 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1495 | #endif | |
1496 | { | |
1497 | PySwigObject *sobj = (PySwigObject *)v; | |
1498 | sobj->own = 0; | |
1499 | return SWIG_Py_Void(); | |
1500 | } | |
1501 | ||
1502 | SWIGINTERN PyObject* | |
1503 | #ifdef METH_NOARGS | |
1504 | PySwigObject_acquire(PyObject *v) | |
1505 | #else | |
1506 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1507 | #endif | |
1508 | { | |
1509 | PySwigObject *sobj = (PySwigObject *)v; | |
1510 | sobj->own = SWIG_POINTER_OWN; | |
1511 | return SWIG_Py_Void(); | |
1512 | } | |
1513 | ||
1514 | SWIGINTERN PyObject* | |
1515 | PySwigObject_own(PyObject *v, PyObject *args) | |
1516 | { | |
1517 | PyObject *val = 0; | |
1518 | #if (PY_VERSION_HEX < 0x02020000) | |
1519 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1520 | #else | |
1521 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1522 | #endif | |
1523 | { | |
1524 | return NULL; | |
1525 | } | |
1526 | else | |
1527 | { | |
1528 | PySwigObject *sobj = (PySwigObject *)v; | |
1529 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1530 | if (val) { | |
1531 | #ifdef METH_NOARGS | |
1532 | if (PyObject_IsTrue(val)) { | |
1533 | PySwigObject_acquire(v); | |
1534 | } else { | |
1535 | PySwigObject_disown(v); | |
1536 | } | |
1537 | #else | |
1538 | if (PyObject_IsTrue(val)) { | |
1539 | PySwigObject_acquire(v,args); | |
1540 | } else { | |
1541 | PySwigObject_disown(v,args); | |
1542 | } | |
1543 | #endif | |
1544 | } | |
1545 | return obj; | |
1546 | } | |
1547 | } | |
1548 | ||
1549 | #ifdef METH_O | |
1550 | static PyMethodDef | |
1551 | swigobject_methods[] = { | |
1552 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1553 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1554 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1555 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1556 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1557 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1558 | {0, 0, 0, 0} | |
1559 | }; | |
1560 | #else | |
1561 | static PyMethodDef | |
1562 | swigobject_methods[] = { | |
1563 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1564 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1565 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1566 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1567 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1568 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1569 | {0, 0, 0, 0} | |
1570 | }; | |
1571 | #endif | |
1572 | ||
1573 | #if PY_VERSION_HEX < 0x02020000 | |
1574 | SWIGINTERN PyObject * | |
1575 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1576 | { | |
1577 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1578 | } | |
1579 | #endif | |
1580 | ||
1581 | SWIGRUNTIME PyTypeObject* | |
1582 | _PySwigObject_type(void) { | |
1583 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1584 | ||
1585 | static PyNumberMethods PySwigObject_as_number = { | |
1586 | (binaryfunc)0, /*nb_add*/ | |
1587 | (binaryfunc)0, /*nb_subtract*/ | |
1588 | (binaryfunc)0, /*nb_multiply*/ | |
1589 | (binaryfunc)0, /*nb_divide*/ | |
1590 | (binaryfunc)0, /*nb_remainder*/ | |
36ed4f51 RD |
1591 | (binaryfunc)0, /*nb_divmod*/ |
1592 | (ternaryfunc)0,/*nb_power*/ | |
1593 | (unaryfunc)0, /*nb_negative*/ | |
1594 | (unaryfunc)0, /*nb_positive*/ | |
1595 | (unaryfunc)0, /*nb_absolute*/ | |
1596 | (inquiry)0, /*nb_nonzero*/ | |
1597 | 0, /*nb_invert*/ | |
1598 | 0, /*nb_lshift*/ | |
1599 | 0, /*nb_rshift*/ | |
1600 | 0, /*nb_and*/ | |
1601 | 0, /*nb_xor*/ | |
1602 | 0, /*nb_or*/ | |
1603 | (coercion)0, /*nb_coerce*/ | |
1604 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1605 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1606 | (unaryfunc)0, /*nb_float*/ | |
1607 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1608 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 1609 | #if PY_VERSION_HEX >= 0x02020000 |
36ed4f51 | 1610 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
1611 | #elif PY_VERSION_HEX >= 0x02000000 |
1612 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
36ed4f51 RD |
1613 | #endif |
1614 | }; | |
1615 | ||
1bd55598 | 1616 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1617 | static int type_init = 0; |
36ed4f51 | 1618 | if (!type_init) { |
1bd55598 RD |
1619 | const PyTypeObject tmp |
1620 | = { | |
1621 | PyObject_HEAD_INIT(NULL) | |
1622 | 0, /* ob_size */ | |
1623 | (char *)"PySwigObject", /* tp_name */ | |
1624 | sizeof(PySwigObject), /* tp_basicsize */ | |
1625 | 0, /* tp_itemsize */ | |
1626 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1627 | (printfunc)PySwigObject_print, /* tp_print */ | |
1628 | #if PY_VERSION_HEX < 0x02020000 | |
1629 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1630 | #else | |
1631 | (getattrfunc)0, /* tp_getattr */ | |
36ed4f51 | 1632 | #endif |
1bd55598 RD |
1633 | (setattrfunc)0, /* tp_setattr */ |
1634 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1635 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1636 | &PySwigObject_as_number, /* tp_as_number */ | |
1637 | 0, /* tp_as_sequence */ | |
1638 | 0, /* tp_as_mapping */ | |
1639 | (hashfunc)0, /* tp_hash */ | |
1640 | (ternaryfunc)0, /* tp_call */ | |
1641 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1642 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1643 | 0, /* tp_setattro */ | |
1644 | 0, /* tp_as_buffer */ | |
1645 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1646 | swigobject_doc, /* tp_doc */ | |
1647 | 0, /* tp_traverse */ | |
1648 | 0, /* tp_clear */ | |
1649 | 0, /* tp_richcompare */ | |
1650 | 0, /* tp_weaklistoffset */ | |
36ed4f51 | 1651 | #if PY_VERSION_HEX >= 0x02020000 |
1bd55598 RD |
1652 | 0, /* tp_iter */ |
1653 | 0, /* tp_iternext */ | |
1654 | swigobject_methods, /* tp_methods */ | |
1655 | 0, /* tp_members */ | |
1656 | 0, /* tp_getset */ | |
1657 | 0, /* tp_base */ | |
1658 | 0, /* tp_dict */ | |
1659 | 0, /* tp_descr_get */ | |
1660 | 0, /* tp_descr_set */ | |
1661 | 0, /* tp_dictoffset */ | |
1662 | 0, /* tp_init */ | |
1663 | 0, /* tp_alloc */ | |
1664 | 0, /* tp_new */ | |
1665 | 0, /* tp_free */ | |
1666 | 0, /* tp_is_gc */ | |
1667 | 0, /* tp_bases */ | |
1668 | 0, /* tp_mro */ | |
1669 | 0, /* tp_cache */ | |
1670 | 0, /* tp_subclasses */ | |
1671 | 0, /* tp_weaklist */ | |
d55e5bfc | 1672 | #endif |
36ed4f51 | 1673 | #if PY_VERSION_HEX >= 0x02030000 |
1bd55598 | 1674 | 0, /* tp_del */ |
36ed4f51 RD |
1675 | #endif |
1676 | #ifdef COUNT_ALLOCS | |
1bd55598 | 1677 | 0,0,0,0 /* tp_alloc -> tp_next */ |
36ed4f51 | 1678 | #endif |
1bd55598 | 1679 | }; |
32fe5131 | 1680 | pyswigobject_type = tmp; |
1bd55598 | 1681 | pyswigobject_type.ob_type = &PyType_Type; |
36ed4f51 RD |
1682 | type_init = 1; |
1683 | } | |
32fe5131 | 1684 | return &pyswigobject_type; |
36ed4f51 RD |
1685 | } |
1686 | ||
1687 | SWIGRUNTIME PyObject * | |
1bd55598 | 1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
36ed4f51 | 1689 | { |
1bd55598 RD |
1690 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1691 | if (sobj) { | |
1692 | sobj->ptr = ptr; | |
1693 | sobj->ty = ty; | |
1694 | sobj->own = own; | |
1695 | sobj->next = 0; | |
32fe5131 | 1696 | } |
1bd55598 | 1697 | return (PyObject *)sobj; |
36ed4f51 RD |
1698 | } |
1699 | ||
1700 | /* ----------------------------------------------------------------------------- | |
1701 | * Implements a simple Swig Packed type, and use it instead of string | |
1702 | * ----------------------------------------------------------------------------- */ | |
1703 | ||
1704 | typedef struct { | |
1705 | PyObject_HEAD | |
1706 | void *pack; | |
1bd55598 | 1707 | swig_type_info *ty; |
36ed4f51 RD |
1708 | size_t size; |
1709 | } PySwigPacked; | |
1710 | ||
1711 | SWIGRUNTIME int | |
1bd55598 | 1712 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
36ed4f51 RD |
1713 | { |
1714 | char result[SWIG_BUFFER_SIZE]; | |
1715 | fputs("<Swig Packed ", fp); | |
1716 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1717 | fputs("at ", fp); | |
1718 | fputs(result, fp); | |
1719 | } | |
1bd55598 | 1720 | fputs(v->ty->name,fp); |
36ed4f51 RD |
1721 | fputs(">", fp); |
1722 | return 0; | |
1723 | } | |
1724 | ||
1725 | SWIGRUNTIME PyObject * | |
1726 | PySwigPacked_repr(PySwigPacked *v) | |
1727 | { | |
1728 | char result[SWIG_BUFFER_SIZE]; | |
1729 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1bd55598 | 1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
36ed4f51 | 1731 | } else { |
1bd55598 | 1732 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
36ed4f51 RD |
1733 | } |
1734 | } | |
1735 | ||
1736 | SWIGRUNTIME PyObject * | |
1737 | PySwigPacked_str(PySwigPacked *v) | |
1738 | { | |
1739 | char result[SWIG_BUFFER_SIZE]; | |
1740 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
1bd55598 | 1741 | return PyString_FromFormat("%s%s", result, v->ty->name); |
36ed4f51 | 1742 | } else { |
1bd55598 | 1743 | return PyString_FromString(v->ty->name); |
36ed4f51 RD |
1744 | } |
1745 | } | |
1746 | ||
1747 | SWIGRUNTIME int | |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
1749 | { | |
1bd55598 RD |
1750 | size_t i = v->size; |
1751 | size_t j = w->size; | |
1752 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1753 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
36ed4f51 RD |
1754 | } |
1755 | ||
1bd55598 | 1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
36ed4f51 RD |
1757 | |
1758 | SWIGRUNTIME PyTypeObject* | |
32fe5131 | 1759 | PySwigPacked_type(void) { |
1bd55598 RD |
1760 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1761 | return type; | |
1762 | } | |
1763 | ||
1764 | SWIGRUNTIMEINLINE int | |
1765 | PySwigPacked_Check(PyObject *op) { | |
1766 | return ((op)->ob_type == _PySwigPacked_type()) | |
1767 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1768 | } | |
1769 | ||
1770 | SWIGRUNTIME void | |
1771 | PySwigPacked_dealloc(PyObject *v) | |
1772 | { | |
1773 | if (PySwigPacked_Check(v)) { | |
1774 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1775 | free(sobj->pack); | |
1776 | } | |
1777 | PyObject_DEL(v); | |
1778 | } | |
1779 | ||
1780 | SWIGRUNTIME PyTypeObject* | |
1781 | _PySwigPacked_type(void) { | |
1782 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1783 | static PyTypeObject pyswigpacked_type; | |
1784 | static int type_init = 0; | |
1785 | if (!type_init) { | |
1786 | const PyTypeObject tmp | |
1787 | = { | |
1788 | PyObject_HEAD_INIT(NULL) | |
1789 | 0, /* ob_size */ | |
1790 | (char *)"PySwigPacked", /* tp_name */ | |
1791 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1792 | 0, /* tp_itemsize */ | |
1793 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1794 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1795 | (getattrfunc)0, /* tp_getattr */ | |
1796 | (setattrfunc)0, /* tp_setattr */ | |
1797 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1798 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1799 | 0, /* tp_as_number */ | |
1800 | 0, /* tp_as_sequence */ | |
1801 | 0, /* tp_as_mapping */ | |
1802 | (hashfunc)0, /* tp_hash */ | |
1803 | (ternaryfunc)0, /* tp_call */ | |
1804 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1805 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1806 | 0, /* tp_setattro */ | |
1807 | 0, /* tp_as_buffer */ | |
1808 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1809 | swigpacked_doc, /* tp_doc */ | |
1810 | 0, /* tp_traverse */ | |
1811 | 0, /* tp_clear */ | |
1812 | 0, /* tp_richcompare */ | |
1813 | 0, /* tp_weaklistoffset */ | |
1814 | #if PY_VERSION_HEX >= 0x02020000 | |
1815 | 0, /* tp_iter */ | |
1816 | 0, /* tp_iternext */ | |
1817 | 0, /* tp_methods */ | |
1818 | 0, /* tp_members */ | |
1819 | 0, /* tp_getset */ | |
1820 | 0, /* tp_base */ | |
1821 | 0, /* tp_dict */ | |
1822 | 0, /* tp_descr_get */ | |
1823 | 0, /* tp_descr_set */ | |
1824 | 0, /* tp_dictoffset */ | |
1825 | 0, /* tp_init */ | |
1826 | 0, /* tp_alloc */ | |
1827 | 0, /* tp_new */ | |
1828 | 0, /* tp_free */ | |
1829 | 0, /* tp_is_gc */ | |
1830 | 0, /* tp_bases */ | |
1831 | 0, /* tp_mro */ | |
1832 | 0, /* tp_cache */ | |
1833 | 0, /* tp_subclasses */ | |
1834 | 0, /* tp_weaklist */ | |
36ed4f51 RD |
1835 | #endif |
1836 | #if PY_VERSION_HEX >= 0x02030000 | |
1bd55598 | 1837 | 0, /* tp_del */ |
36ed4f51 RD |
1838 | #endif |
1839 | #ifdef COUNT_ALLOCS | |
1bd55598 | 1840 | 0,0,0,0 /* tp_alloc -> tp_next */ |
36ed4f51 | 1841 | #endif |
1bd55598 | 1842 | }; |
32fe5131 | 1843 | pyswigpacked_type = tmp; |
1bd55598 | 1844 | pyswigpacked_type.ob_type = &PyType_Type; |
36ed4f51 RD |
1845 | type_init = 1; |
1846 | } | |
32fe5131 | 1847 | return &pyswigpacked_type; |
36ed4f51 RD |
1848 | } |
1849 | ||
1850 | SWIGRUNTIME PyObject * | |
1bd55598 | 1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
36ed4f51 | 1852 | { |
1bd55598 RD |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1854 | if (sobj) { | |
36ed4f51 | 1855 | void *pack = malloc(size); |
32fe5131 RD |
1856 | if (pack) { |
1857 | memcpy(pack, ptr, size); | |
1bd55598 RD |
1858 | sobj->pack = pack; |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
32fe5131 | 1864 | } |
36ed4f51 | 1865 | } |
1bd55598 | 1866 | return (PyObject *) sobj; |
36ed4f51 RD |
1867 | } |
1868 | ||
1bd55598 | 1869 | SWIGRUNTIME swig_type_info * |
36ed4f51 RD |
1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1871 | { | |
1bd55598 RD |
1872 | if (PySwigPacked_Check(obj)) { |
1873 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1874 | if (sobj->size != size) return 0; | |
1875 | memcpy(ptr, sobj->pack, size); | |
1876 | return sobj->ty; | |
1877 | } else { | |
1878 | return 0; | |
1879 | } | |
36ed4f51 RD |
1880 | } |
1881 | ||
36ed4f51 | 1882 | /* ----------------------------------------------------------------------------- |
1bd55598 | 1883 | * pointers/data manipulation |
36ed4f51 RD |
1884 | * ----------------------------------------------------------------------------- */ |
1885 | ||
1bd55598 RD |
1886 | SWIGRUNTIMEINLINE PyObject * |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
36ed4f51 | 1891 | |
1bd55598 RD |
1892 | SWIGRUNTIME PyObject * |
1893 | SWIG_This(void) | |
1894 | { | |
1895 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1896 | return swig_this; | |
1897 | } | |
36ed4f51 | 1898 | |
1bd55598 | 1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
36ed4f51 | 1900 | |
1bd55598 RD |
1901 | SWIGRUNTIME PySwigObject * |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
36ed4f51 | 1903 | { |
1bd55598 RD |
1904 | if (PySwigObject_Check(pyobj)) { |
1905 | return (PySwigObject *) pyobj; | |
1906 | } else { | |
1907 | PyObject *obj = 0; | |
1908 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1909 | if (PyInstance_Check(pyobj)) { | |
1910 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1911 | } else { | |
1912 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1913 | if (dictptr != NULL) { | |
1914 | PyObject *dict = *dictptr; | |
1915 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1916 | } else { | |
1917 | #ifdef PyWeakref_CheckProxy | |
1918 | if (PyWeakref_CheckProxy(pyobj)) { | |
1919 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1920 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1921 | } | |
1922 | #endif | |
1923 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1924 | if (obj) { | |
1925 | Py_DECREF(obj); | |
36ed4f51 | 1926 | } else { |
1bd55598 RD |
1927 | if (PyErr_Occurred()) PyErr_Clear(); |
1928 | return 0; | |
36ed4f51 | 1929 | } |
36ed4f51 | 1930 | } |
1bd55598 RD |
1931 | } |
1932 | #else | |
1933 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1934 | if (obj) { | |
1935 | Py_DECREF(obj); | |
1936 | } else { | |
1937 | if (PyErr_Occurred()) PyErr_Clear(); | |
1938 | return 0; | |
1939 | } | |
1940 | #endif | |
1941 | if (obj && !PySwigObject_Check(obj)) { | |
1942 | /* a PyObject is called 'this', try to get the 'real this' | |
1943 | PySwigObject from it */ | |
1944 | return SWIG_Python_GetSwigThis(obj); | |
1945 | } | |
1946 | return (PySwigObject *)obj; | |
36ed4f51 RD |
1947 | } |
1948 | } | |
1949 | ||
1bd55598 RD |
1950 | /* Acquire a pointer value */ |
1951 | ||
1952 | SWIGRUNTIME int | |
1953 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1954 | if (own) { | |
1955 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1956 | if (sobj) { | |
1957 | int oldown = sobj->own; | |
1958 | sobj->own = own; | |
1959 | return oldown; | |
1960 | } | |
36ed4f51 | 1961 | } |
1bd55598 | 1962 | return 0; |
36ed4f51 RD |
1963 | } |
1964 | ||
1bd55598 RD |
1965 | /* Convert a pointer value */ |
1966 | ||
36ed4f51 | 1967 | SWIGRUNTIME int |
1bd55598 RD |
1968 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1969 | if (!obj) return SWIG_ERROR; | |
1970 | if (obj == Py_None) { | |
1971 | if (ptr) *ptr = 0; | |
1972 | return SWIG_OK; | |
1973 | } else { | |
1974 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1975 | while (sobj) { | |
1976 | void *vptr = sobj->ptr; | |
1977 | if (ty) { | |
1978 | swig_type_info *to = sobj->ty; | |
1979 | if (to == ty) { | |
1980 | /* no type cast needed */ | |
1981 | if (ptr) *ptr = vptr; | |
1982 | break; | |
1983 | } else { | |
1984 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1985 | if (!tc) { | |
1986 | sobj = (PySwigObject *)sobj->next; | |
1987 | } else { | |
1988 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1989 | break; | |
1990 | } | |
1991 | } | |
36ed4f51 | 1992 | } else { |
1bd55598 RD |
1993 | if (ptr) *ptr = vptr; |
1994 | break; | |
36ed4f51 | 1995 | } |
36ed4f51 | 1996 | } |
1bd55598 RD |
1997 | if (sobj) { |
1998 | if (own) *own = sobj->own; | |
1999 | if (flags & SWIG_POINTER_DISOWN) { | |
2000 | sobj->own = 0; | |
2001 | } | |
2002 | return SWIG_OK; | |
2003 | } else { | |
2004 | int res = SWIG_ERROR; | |
2005 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2006 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2007 | if (data && !data->implicitconv) { | |
2008 | PyObject *klass = data->klass; | |
2009 | if (klass) { | |
2010 | PyObject *impconv; | |
2011 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2012 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2013 | data->implicitconv = 0; | |
2014 | if (PyErr_Occurred()) { | |
2015 | PyErr_Clear(); | |
2016 | impconv = 0; | |
2017 | } | |
2018 | if (impconv) { | |
2019 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2020 | if (iobj) { | |
2021 | void *vptr; | |
2022 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2023 | if (SWIG_IsOK(res)) { | |
2024 | if (ptr) { | |
2025 | *ptr = vptr; | |
2026 | /* transfer the ownership to 'ptr' */ | |
2027 | iobj->own = 0; | |
2028 | res = SWIG_AddCast(res); | |
2029 | res = SWIG_AddNewMask(res); | |
2030 | } else { | |
2031 | res = SWIG_AddCast(res); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | Py_DECREF(impconv); | |
2036 | } | |
2037 | } | |
2038 | } | |
2039 | } | |
2040 | return res; | |
2041 | } | |
36ed4f51 RD |
2042 | } |
2043 | } | |
2044 | ||
1bd55598 RD |
2045 | /* Convert a function ptr value */ |
2046 | ||
36ed4f51 | 2047 | SWIGRUNTIME int |
1bd55598 RD |
2048 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2049 | if (!PyCFunction_Check(obj)) { | |
2050 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
36ed4f51 | 2051 | } else { |
1bd55598 RD |
2052 | void *vptr = 0; |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
4f89b6b7 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
1bd55598 RD |
2056 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; |
2057 | if (desc) { | |
2058 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2059 | if (!desc) return SWIG_ERROR; | |
2060 | } | |
2061 | if (ty) { | |
2062 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2063 | if (!tc) return SWIG_ERROR; | |
2064 | *ptr = SWIG_TypeCast(tc,vptr); | |
2065 | } else { | |
2066 | *ptr = vptr; | |
2067 | } | |
2068 | return SWIG_OK; | |
36ed4f51 RD |
2069 | } |
2070 | } | |
2071 | ||
1bd55598 | 2072 | /* Convert a packed value value */ |
36ed4f51 | 2073 | |
36ed4f51 | 2074 | SWIGRUNTIME int |
1bd55598 RD |
2075 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2076 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2077 | if (!to) return SWIG_ERROR; | |
2078 | if (ty) { | |
2079 | if (to != ty) { | |
2080 | /* check type cast? */ | |
2081 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2082 | if (!tc) return SWIG_ERROR; | |
2083 | } | |
36ed4f51 | 2084 | } |
1bd55598 RD |
2085 | return SWIG_OK; |
2086 | } | |
36ed4f51 | 2087 | |
1bd55598 RD |
2088 | /* ----------------------------------------------------------------------------- |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
36ed4f51 | 2091 | |
1bd55598 RD |
2092 | /* |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
36ed4f51 | 2096 | |
1bd55598 RD |
2097 | SWIGRUNTIME PyObject* |
2098 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2099 | { | |
2100 | #if (PY_VERSION_HEX >= 0x02020000) | |
2101 | PyObject *inst = 0; | |
2102 | PyObject *newraw = data->newraw; | |
2103 | if (newraw) { | |
2104 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2105 | if (inst) { | |
2106 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2107 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2108 | if (dictptr != NULL) { | |
2109 | PyObject *dict = *dictptr; | |
2110 | if (dict == NULL) { | |
2111 | dict = PyDict_New(); | |
2112 | *dictptr = dict; | |
2113 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2114 | } | |
36ed4f51 | 2115 | } |
1bd55598 RD |
2116 | #else |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
36ed4f51 | 2120 | } |
1bd55598 RD |
2121 | } else { |
2122 | PyObject *dict = PyDict_New(); | |
2123 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2124 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2125 | Py_DECREF(dict); | |
36ed4f51 | 2126 | } |
1bd55598 RD |
2127 | return inst; |
2128 | #else | |
2129 | #if (PY_VERSION_HEX >= 0x02010000) | |
2130 | PyObject *inst; | |
2131 | PyObject *dict = PyDict_New(); | |
2132 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2133 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2134 | Py_DECREF(dict); | |
2135 | return (PyObject *) inst; | |
2136 | #else | |
2137 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2138 | if (inst == NULL) { | |
2139 | return NULL; | |
36ed4f51 | 2140 | } |
1bd55598 RD |
2141 | inst->in_class = (PyClassObject *)data->newargs; |
2142 | Py_INCREF(inst->in_class); | |
2143 | inst->in_dict = PyDict_New(); | |
2144 | if (inst->in_dict == NULL) { | |
2145 | Py_DECREF(inst); | |
2146 | return NULL; | |
36ed4f51 | 2147 | } |
1bd55598 RD |
2148 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2149 | inst->in_weakreflist = NULL; | |
2150 | #endif | |
2151 | #ifdef Py_TPFLAGS_GC | |
2152 | PyObject_GC_Init(inst); | |
2153 | #endif | |
2154 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2155 | return (PyObject *) inst; | |
2156 | #endif | |
2157 | #endif | |
36ed4f51 RD |
2158 | } |
2159 | ||
1bd55598 RD |
2160 | SWIGRUNTIME void |
2161 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2162 | { | |
2163 | PyObject *dict; | |
2164 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2165 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2166 | if (dictptr != NULL) { | |
2167 | dict = *dictptr; | |
2168 | if (dict == NULL) { | |
2169 | dict = PyDict_New(); | |
2170 | *dictptr = dict; | |
2171 | } | |
2172 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2173 | return; | |
2174 | } | |
36ed4f51 | 2175 | #endif |
1bd55598 RD |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
36ed4f51 | 2180 | |
1bd55598 RD |
2181 | |
2182 | SWIGINTERN PyObject * | |
2183 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2184 | PyObject *obj[2]; | |
2185 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2186 | return NULL; | |
2187 | } else { | |
2188 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2189 | if (sthis) { | |
2190 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
36ed4f51 | 2191 | } else { |
1bd55598 | 2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
36ed4f51 | 2193 | } |
1bd55598 | 2194 | return SWIG_Py_Void(); |
36ed4f51 | 2195 | } |
1bd55598 RD |
2196 | } |
2197 | ||
2198 | /* Create a new pointer object */ | |
36ed4f51 | 2199 | |
36ed4f51 | 2200 | SWIGRUNTIME PyObject * |
1bd55598 | 2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
36ed4f51 | 2202 | if (!ptr) { |
1bd55598 RD |
2203 | return SWIG_Py_Void(); |
2204 | } else { | |
2205 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2206 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2207 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2208 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2209 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2210 | if (inst) { | |
2211 | Py_DECREF(robj); | |
2212 | robj = inst; | |
36ed4f51 | 2213 | } |
36ed4f51 | 2214 | } |
1bd55598 | 2215 | return robj; |
36ed4f51 | 2216 | } |
36ed4f51 RD |
2217 | } |
2218 | ||
1bd55598 RD |
2219 | /* Create a new packed object */ |
2220 | ||
2221 | SWIGRUNTIMEINLINE PyObject * | |
36ed4f51 | 2222 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
1bd55598 | 2223 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
36ed4f51 RD |
2224 | } |
2225 | ||
2226 | /* -----------------------------------------------------------------------------* | |
2227 | * Get type list | |
2228 | * -----------------------------------------------------------------------------*/ | |
2229 | ||
2230 | #ifdef SWIG_LINK_RUNTIME | |
2231 | void *SWIG_ReturnGlobalTypeList(void *); | |
2232 | #endif | |
2233 | ||
32fe5131 RD |
2234 | SWIGRUNTIME swig_module_info * |
2235 | SWIG_Python_GetModule(void) { | |
36ed4f51 RD |
2236 | static void *type_pointer = (void *)0; |
2237 | /* first check if module already created */ | |
2238 | if (!type_pointer) { | |
2239 | #ifdef SWIG_LINK_RUNTIME | |
2240 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
2241 | #else | |
2242 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2243 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2244 | if (PyErr_Occurred()) { | |
2245 | PyErr_Clear(); | |
2246 | type_pointer = (void *)0; | |
2247 | } | |
36ed4f51 | 2248 | #endif |
32fe5131 RD |
2249 | } |
2250 | return (swig_module_info *) type_pointer; | |
36ed4f51 RD |
2251 | } |
2252 | ||
32fe5131 RD |
2253 | #if PY_MAJOR_VERSION < 2 |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
1bd55598 | 2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 RD |
2256 | SWIGINTERN int |
2257 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2258 | { | |
2259 | PyObject *dict; | |
2260 | if (!PyModule_Check(m)) { | |
2261 | PyErr_SetString(PyExc_TypeError, | |
2262 | "PyModule_AddObject() needs module as first arg"); | |
1bd55598 | 2263 | return SWIG_ERROR; |
32fe5131 RD |
2264 | } |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
1bd55598 | 2268 | return SWIG_ERROR; |
32fe5131 RD |
2269 | } |
2270 | ||
2271 | dict = PyModule_GetDict(m); | |
2272 | if (dict == NULL) { | |
2273 | /* Internal error -- modules must have a dict! */ | |
2274 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2275 | PyModule_GetName(m)); | |
1bd55598 | 2276 | return SWIG_ERROR; |
32fe5131 RD |
2277 | } |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
1bd55598 | 2279 | return SWIG_ERROR; |
32fe5131 | 2280 | Py_DECREF(o); |
1bd55598 | 2281 | return SWIG_OK; |
36ed4f51 | 2282 | } |
32fe5131 | 2283 | #endif |
36ed4f51 | 2284 | |
1bd55598 RD |
2285 | SWIGRUNTIME void |
2286 | SWIG_Python_DestroyModule(void *vptr) | |
2287 | { | |
2288 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2289 | swig_type_info **types = swig_module->types; | |
2290 | size_t i; | |
2291 | for (i =0; i < swig_module->size; ++i) { | |
2292 | swig_type_info *ty = types[i]; | |
2293 | if (ty->owndata) { | |
2294 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2295 | if (data) PySwigClientData_Del(data); | |
2296 | } | |
2297 | } | |
2298 | Py_DECREF(SWIG_This()); | |
2299 | } | |
2300 | ||
32fe5131 RD |
2301 | SWIGRUNTIME void |
2302 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2303 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2304 | ||
2305 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2306 | swig_empty_runtime_method_table); | |
1bd55598 | 2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2308 | if (pointer && module) { |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
1bd55598 RD |
2310 | } else { |
2311 | Py_XDECREF(pointer); | |
32fe5131 RD |
2312 | } |
2313 | } | |
36ed4f51 | 2314 | |
1bd55598 RD |
2315 | /* The python cached type query */ |
2316 | SWIGRUNTIME PyObject * | |
2317 | SWIG_Python_TypeCache() { | |
2318 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2319 | return cache; | |
36ed4f51 | 2320 | } |
36ed4f51 | 2321 | |
1bd55598 RD |
2322 | SWIGRUNTIME swig_type_info * |
2323 | SWIG_Python_TypeQuery(const char *type) | |
2324 | { | |
2325 | PyObject *cache = SWIG_Python_TypeCache(); | |
2326 | PyObject *key = PyString_FromString(type); | |
2327 | PyObject *obj = PyDict_GetItem(cache, key); | |
2328 | swig_type_info *descriptor; | |
2329 | if (obj) { | |
2330 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2331 | } else { | |
2332 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2333 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2334 | if (descriptor) { | |
2335 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2336 | PyDict_SetItem(cache, key, obj); | |
2337 | Py_DECREF(obj); | |
2338 | } | |
2339 | } | |
2340 | Py_DECREF(key); | |
2341 | return descriptor; | |
2342 | } | |
2343 | ||
2344 | /* | |
2345 | For backward compatibility only | |
2346 | */ | |
2347 | #define SWIG_POINTER_EXCEPTION 0 | |
2348 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2349 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2350 | ||
2351 | SWIGRUNTIME int | |
2352 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2353 | { | |
2354 | if (PyErr_Occurred()) { | |
2355 | PyObject *type = 0; | |
2356 | PyObject *value = 0; | |
2357 | PyObject *traceback = 0; | |
2358 | PyErr_Fetch(&type, &value, &traceback); | |
2359 | if (value) { | |
2360 | PyObject *old_str = PyObject_Str(value); | |
2361 | Py_XINCREF(type); | |
2362 | PyErr_Clear(); | |
2363 | if (infront) { | |
2364 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2365 | } else { | |
2366 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2367 | } | |
2368 | Py_DECREF(old_str); | |
2369 | } | |
2370 | return 1; | |
2371 | } else { | |
2372 | return 0; | |
2373 | } | |
2374 | } | |
2375 | ||
2376 | SWIGRUNTIME int | |
2377 | SWIG_Python_ArgFail(int argnum) | |
2378 | { | |
2379 | if (PyErr_Occurred()) { | |
2380 | /* add information about failing argument */ | |
2381 | char mesg[256]; | |
2382 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2383 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2384 | } else { | |
2385 | return 0; | |
2386 | } | |
2387 | } | |
2388 | ||
2389 | SWIGRUNTIMEINLINE const char * | |
2390 | PySwigObject_GetDesc(PyObject *self) | |
2391 | { | |
2392 | PySwigObject *v = (PySwigObject *)self; | |
2393 | swig_type_info *ty = v ? v->ty : 0; | |
2394 | return ty ? ty->str : (char*)""; | |
2395 | } | |
2396 | ||
2397 | SWIGRUNTIME void | |
2398 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2399 | { | |
2400 | if (type) { | |
2401 | #if defined(SWIG_COBJECT_TYPES) | |
2402 | if (obj && PySwigObject_Check(obj)) { | |
2403 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2404 | if (otype) { | |
2405 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2406 | type, otype); | |
2407 | return; | |
2408 | } | |
2409 | } else | |
2410 | #endif | |
2411 | { | |
2412 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2413 | if (otype) { | |
2414 | PyObject *str = PyObject_Str(obj); | |
2415 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2416 | if (cstr) { | |
2417 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2418 | type, otype, cstr); | |
2419 | } else { | |
2420 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2421 | type, otype); | |
2422 | } | |
2423 | Py_XDECREF(str); | |
2424 | return; | |
2425 | } | |
2426 | } | |
2427 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2428 | } else { | |
2429 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2430 | } | |
2431 | } | |
2432 | ||
2433 | ||
2434 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2435 | SWIGRUNTIME void * | |
2436 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2437 | void *result; | |
2438 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2439 | PyErr_Clear(); | |
2440 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2441 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2442 | SWIG_Python_ArgFail(argnum); | |
2443 | } | |
2444 | } | |
2445 | return result; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | #ifdef __cplusplus | |
2450 | #if 0 | |
2451 | { /* cc-mode */ | |
2452 | #endif | |
2453 | } | |
2454 | #endif | |
2455 | ||
2456 | ||
2457 | ||
2458 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2459 | ||
2460 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2461 | ||
2462 | ||
2463 | ||
2464 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2465 | ||
2466 | #define SWIGTYPE_p_bool swig_types[0] | |
2467 | #define SWIGTYPE_p_char swig_types[1] | |
32fe5131 RD |
2468 | #define SWIGTYPE_p_form_ops_t swig_types[2] |
2469 | #define SWIGTYPE_p_int swig_types[3] | |
2470 | #define SWIGTYPE_p_long swig_types[4] | |
2471 | #define SWIGTYPE_p_unsigned_char swig_types[5] | |
2472 | #define SWIGTYPE_p_unsigned_int swig_types[6] | |
2473 | #define SWIGTYPE_p_unsigned_long swig_types[7] | |
2474 | #define SWIGTYPE_p_void swig_types[8] | |
2475 | #define SWIGTYPE_p_wxANIHandler swig_types[9] | |
2476 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[10] | |
2477 | #define SWIGTYPE_p_wxActivateEvent swig_types[11] | |
2478 | #define SWIGTYPE_p_wxArrayInt swig_types[12] | |
2479 | #define SWIGTYPE_p_wxArrayString swig_types[13] | |
2480 | #define SWIGTYPE_p_wxBMPHandler swig_types[14] | |
2481 | #define SWIGTYPE_p_wxBitmap swig_types[15] | |
2482 | #define SWIGTYPE_p_wxBitmapButton swig_types[16] | |
2483 | #define SWIGTYPE_p_wxBookCtrlBase swig_types[17] | |
2484 | #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18] | |
2485 | #define SWIGTYPE_p_wxBoxSizer swig_types[19] | |
2486 | #define SWIGTYPE_p_wxButton swig_types[20] | |
2487 | #define SWIGTYPE_p_wxCURHandler swig_types[21] | |
2488 | #define SWIGTYPE_p_wxCheckBox swig_types[22] | |
2489 | #define SWIGTYPE_p_wxCheckListBox swig_types[23] | |
2490 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[24] | |
2491 | #define SWIGTYPE_p_wxChoice swig_types[25] | |
2492 | #define SWIGTYPE_p_wxChoicebook swig_types[26] | |
2493 | #define SWIGTYPE_p_wxChoicebookEvent swig_types[27] | |
2131d850 RD |
2494 | #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28] |
2495 | #define SWIGTYPE_p_wxCloseEvent swig_types[29] | |
5172800e RD |
2496 | #define SWIGTYPE_p_wxCollapsiblePane swig_types[30] |
2497 | #define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31] | |
2498 | #define SWIGTYPE_p_wxColour swig_types[32] | |
2499 | #define SWIGTYPE_p_wxColourPickerCtrl swig_types[33] | |
2500 | #define SWIGTYPE_p_wxColourPickerEvent swig_types[34] | |
2501 | #define SWIGTYPE_p_wxComboBox swig_types[35] | |
2502 | #define SWIGTYPE_p_wxCommandEvent swig_types[36] | |
2503 | #define SWIGTYPE_p_wxContextHelp swig_types[37] | |
2504 | #define SWIGTYPE_p_wxContextHelpButton swig_types[38] | |
2505 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[39] | |
2506 | #define SWIGTYPE_p_wxControl swig_types[40] | |
2507 | #define SWIGTYPE_p_wxControlWithItems swig_types[41] | |
2508 | #define SWIGTYPE_p_wxCursor swig_types[42] | |
2509 | #define SWIGTYPE_p_wxDC swig_types[43] | |
2510 | #define SWIGTYPE_p_wxDateEvent swig_types[44] | |
2511 | #define SWIGTYPE_p_wxDatePickerCtrl swig_types[45] | |
2512 | #define SWIGTYPE_p_wxDateTime swig_types[46] | |
2513 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47] | |
2514 | #define SWIGTYPE_p_wxDirPickerCtrl swig_types[48] | |
2515 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49] | |
2516 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[50] | |
2517 | #define SWIGTYPE_p_wxDuplexMode swig_types[51] | |
2518 | #define SWIGTYPE_p_wxEraseEvent swig_types[52] | |
2519 | #define SWIGTYPE_p_wxEvent swig_types[53] | |
2520 | #define SWIGTYPE_p_wxEvtHandler swig_types[54] | |
2521 | #define SWIGTYPE_p_wxFSFile swig_types[55] | |
2522 | #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[56] | |
2523 | #define SWIGTYPE_p_wxFilePickerCtrl swig_types[57] | |
2524 | #define SWIGTYPE_p_wxFileSystem swig_types[58] | |
2525 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[59] | |
2526 | #define SWIGTYPE_p_wxFocusEvent swig_types[60] | |
2527 | #define SWIGTYPE_p_wxFont swig_types[61] | |
2528 | #define SWIGTYPE_p_wxFontPickerCtrl swig_types[62] | |
2529 | #define SWIGTYPE_p_wxFontPickerEvent swig_types[63] | |
2530 | #define SWIGTYPE_p_wxGBSizerItem swig_types[64] | |
2531 | #define SWIGTYPE_p_wxGIFHandler swig_types[65] | |
2532 | #define SWIGTYPE_p_wxGauge swig_types[66] | |
2533 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[67] | |
2534 | #define SWIGTYPE_p_wxGenericDragImage swig_types[68] | |
2535 | #define SWIGTYPE_p_wxGridBagSizer swig_types[69] | |
2536 | #define SWIGTYPE_p_wxGridSizer swig_types[70] | |
2537 | #define SWIGTYPE_p_wxHelpEvent swig_types[71] | |
2538 | #define SWIGTYPE_p_wxHelpProvider swig_types[72] | |
2539 | #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[73] | |
2540 | #define SWIGTYPE_p_wxHyperlinkEvent swig_types[74] | |
2541 | #define SWIGTYPE_p_wxICOHandler swig_types[75] | |
2542 | #define SWIGTYPE_p_wxIcon swig_types[76] | |
2543 | #define SWIGTYPE_p_wxIconizeEvent swig_types[77] | |
2544 | #define SWIGTYPE_p_wxIdleEvent swig_types[78] | |
2545 | #define SWIGTYPE_p_wxImage swig_types[79] | |
2546 | #define SWIGTYPE_p_wxImageHandler swig_types[80] | |
2547 | #define SWIGTYPE_p_wxImageList swig_types[81] | |
2548 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[82] | |
2549 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[83] | |
2550 | #define SWIGTYPE_p_wxItemContainer swig_types[84] | |
2551 | #define SWIGTYPE_p_wxJPEGHandler swig_types[85] | |
2552 | #define SWIGTYPE_p_wxKeyEvent swig_types[86] | |
2553 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[87] | |
2554 | #define SWIGTYPE_p_wxListBox swig_types[88] | |
2555 | #define SWIGTYPE_p_wxListEvent swig_types[89] | |
2556 | #define SWIGTYPE_p_wxListItem swig_types[90] | |
2557 | #define SWIGTYPE_p_wxListItemAttr swig_types[91] | |
2558 | #define SWIGTYPE_p_wxListView swig_types[92] | |
2559 | #define SWIGTYPE_p_wxListbook swig_types[93] | |
2560 | #define SWIGTYPE_p_wxListbookEvent swig_types[94] | |
2561 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[95] | |
2562 | #define SWIGTYPE_p_wxMemoryDC swig_types[96] | |
2563 | #define SWIGTYPE_p_wxMenu swig_types[97] | |
2564 | #define SWIGTYPE_p_wxMenuBar swig_types[98] | |
2565 | #define SWIGTYPE_p_wxMenuEvent swig_types[99] | |
2566 | #define SWIGTYPE_p_wxMenuItem swig_types[100] | |
2567 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101] | |
2568 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102] | |
2569 | #define SWIGTYPE_p_wxMouseEvent swig_types[103] | |
2570 | #define SWIGTYPE_p_wxMoveEvent swig_types[104] | |
2571 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[105] | |
2572 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[106] | |
2573 | #define SWIGTYPE_p_wxNotebook swig_types[107] | |
2574 | #define SWIGTYPE_p_wxNotebookEvent swig_types[108] | |
2575 | #define SWIGTYPE_p_wxNotifyEvent swig_types[109] | |
2576 | #define SWIGTYPE_p_wxObject swig_types[110] | |
2577 | #define SWIGTYPE_p_wxPCXHandler swig_types[111] | |
2578 | #define SWIGTYPE_p_wxPNGHandler swig_types[112] | |
2579 | #define SWIGTYPE_p_wxPNMHandler swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPaintEvent swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPaperSize swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPickerBase swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPoint swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPyApp swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[120] | |
2587 | #define SWIGTYPE_p_wxPyControl swig_types[121] | |
2588 | #define SWIGTYPE_p_wxPyEvent swig_types[122] | |
2589 | #define SWIGTYPE_p_wxPyImageHandler swig_types[123] | |
2590 | #define SWIGTYPE_p_wxPyListCtrl swig_types[124] | |
2591 | #define SWIGTYPE_p_wxPySizer swig_types[125] | |
2592 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[126] | |
2593 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[127] | |
2594 | #define SWIGTYPE_p_wxPyValidator swig_types[128] | |
2595 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129] | |
2596 | #define SWIGTYPE_p_wxRadioBox swig_types[130] | |
2597 | #define SWIGTYPE_p_wxRadioButton swig_types[131] | |
2598 | #define SWIGTYPE_p_wxRect swig_types[132] | |
2599 | #define SWIGTYPE_p_wxScrollBar swig_types[133] | |
2600 | #define SWIGTYPE_p_wxScrollEvent swig_types[134] | |
2601 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[135] | |
2602 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[136] | |
2603 | #define SWIGTYPE_p_wxShowEvent swig_types[137] | |
2604 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[138] | |
2605 | #define SWIGTYPE_p_wxSize swig_types[139] | |
2606 | #define SWIGTYPE_p_wxSizeEvent swig_types[140] | |
2607 | #define SWIGTYPE_p_wxSizer swig_types[141] | |
2608 | #define SWIGTYPE_p_wxSizerItem swig_types[142] | |
2609 | #define SWIGTYPE_p_wxSlider swig_types[143] | |
2610 | #define SWIGTYPE_p_wxSpinButton swig_types[144] | |
2611 | #define SWIGTYPE_p_wxSpinCtrl swig_types[145] | |
2612 | #define SWIGTYPE_p_wxSpinEvent swig_types[146] | |
2613 | #define SWIGTYPE_p_wxStaticBitmap swig_types[147] | |
2614 | #define SWIGTYPE_p_wxStaticBox swig_types[148] | |
2615 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[149] | |
2616 | #define SWIGTYPE_p_wxStaticLine swig_types[150] | |
2617 | #define SWIGTYPE_p_wxStaticText swig_types[151] | |
2618 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[152] | |
2619 | #define SWIGTYPE_p_wxString swig_types[153] | |
2620 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[154] | |
2621 | #define SWIGTYPE_p_wxTGAHandler swig_types[155] | |
2622 | #define SWIGTYPE_p_wxTIFFHandler swig_types[156] | |
2623 | #define SWIGTYPE_p_wxTextAttr swig_types[157] | |
2624 | #define SWIGTYPE_p_wxTextCtrl swig_types[158] | |
2625 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[159] | |
2626 | #define SWIGTYPE_p_wxToggleButton swig_types[160] | |
2627 | #define SWIGTYPE_p_wxToolBar swig_types[161] | |
2628 | #define SWIGTYPE_p_wxToolBarBase swig_types[162] | |
2629 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[163] | |
2630 | #define SWIGTYPE_p_wxToolbook swig_types[164] | |
2631 | #define SWIGTYPE_p_wxToolbookEvent swig_types[165] | |
2632 | #define SWIGTYPE_p_wxTreeEvent swig_types[166] | |
2633 | #define SWIGTYPE_p_wxTreeItemId swig_types[167] | |
2634 | #define SWIGTYPE_p_wxTreebook swig_types[168] | |
2635 | #define SWIGTYPE_p_wxTreebookEvent swig_types[169] | |
2636 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[170] | |
2637 | #define SWIGTYPE_p_wxValidator swig_types[171] | |
2638 | #define SWIGTYPE_p_wxVisualAttributes swig_types[172] | |
2639 | #define SWIGTYPE_p_wxWindow swig_types[173] | |
2640 | #define SWIGTYPE_p_wxWindowBase swig_types[174] | |
2641 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[175] | |
2642 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[176] | |
2643 | #define SWIGTYPE_p_wxXPMHandler swig_types[177] | |
2644 | static swig_type_info *swig_types[179]; | |
2645 | static swig_module_info swig_module = {swig_types, 178, 0, 0, 0, 0}; | |
32fe5131 RD |
2646 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2647 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
36ed4f51 RD |
2648 | |
2649 | /* -------- TYPES TABLE (END) -------- */ | |
2650 | ||
1bd55598 RD |
2651 | #if (PY_VERSION_HEX <= 0x02000000) |
2652 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2653 | # error "This python version requires to use swig with the '-classic' option" | |
2654 | # endif | |
2655 | #endif | |
2656 | #if (PY_VERSION_HEX <= 0x02020000) | |
2657 | # error "This python version requires to use swig with the '-nomodern' option" | |
2658 | #endif | |
2659 | #if (PY_VERSION_HEX <= 0x02020000) | |
2660 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2661 | #endif | |
2662 | #ifndef METH_O | |
2663 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2664 | #endif | |
36ed4f51 RD |
2665 | |
2666 | /*----------------------------------------------- | |
2667 | @(target):= _controls_.so | |
2668 | ------------------------------------------------*/ | |
2669 | #define SWIG_init init_controls_ | |
2670 | ||
2671 | #define SWIG_name "_controls_" | |
2672 | ||
1bd55598 RD |
2673 | #define SWIGVERSION 0x010329 |
2674 | ||
2675 | ||
2676 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) | |
2677 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
2678 | ||
2679 | ||
2680 | #include <stdexcept> | |
2681 | ||
2682 | ||
2683 | namespace swig { | |
2684 | class PyObject_ptr { | |
2685 | protected: | |
2686 | PyObject *_obj; | |
2687 | ||
2688 | public: | |
2689 | PyObject_ptr() :_obj(0) | |
2690 | { | |
2691 | } | |
2692 | ||
2693 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2694 | { | |
2695 | Py_XINCREF(_obj); | |
2696 | } | |
2697 | ||
2698 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2699 | { | |
2700 | if (initial_ref) Py_XINCREF(_obj); | |
2701 | } | |
2702 | ||
2703 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2704 | { | |
2705 | Py_XINCREF(item._obj); | |
2706 | Py_XDECREF(_obj); | |
2707 | _obj = item._obj; | |
2708 | return *this; | |
2709 | } | |
2710 | ||
2711 | ~PyObject_ptr() | |
2712 | { | |
2713 | Py_XDECREF(_obj); | |
2714 | } | |
2715 | ||
2716 | operator PyObject *() const | |
2717 | { | |
2718 | return _obj; | |
2719 | } | |
2720 | ||
2721 | PyObject *operator->() const | |
2722 | { | |
2723 | return _obj; | |
2724 | } | |
2725 | }; | |
2726 | } | |
2727 | ||
2728 | ||
2729 | namespace swig { | |
2730 | struct PyObject_var : PyObject_ptr { | |
2731 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2732 | ||
2733 | PyObject_var & operator = (PyObject* obj) | |
2734 | { | |
2735 | Py_XDECREF(_obj); | |
2736 | _obj = obj; | |
2737 | return *this; | |
2738 | } | |
2739 | }; | |
2740 | } | |
2741 | ||
2742 | ||
36ed4f51 RD |
2743 | #include "wx/wxPython/wxPython.h" |
2744 | #include "wx/wxPython/pyclasses.h" | |
2745 | ||
2746 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
2747 | static const wxString wxPyEmptyString(wxEmptyString); | |
2748 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
2749 | ||
2750 | const wxArrayString wxPyEmptyStringArray; | |
2751 | ||
2752 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
2753 | ||
1bd55598 | 2754 | #define SWIG_From_long PyInt_FromLong |
36ed4f51 RD |
2755 | |
2756 | ||
1bd55598 RD |
2757 | SWIGINTERNINLINE PyObject * |
2758 | SWIG_From_int (int value) | |
2759 | { | |
2760 | return SWIG_From_long (value); | |
2761 | } | |
36ed4f51 RD |
2762 | |
2763 | ||
1bd55598 RD |
2764 | #include <limits.h> |
2765 | #ifndef LLONG_MIN | |
2766 | # define LLONG_MIN LONG_LONG_MIN | |
2767 | #endif | |
2768 | #ifndef LLONG_MAX | |
2769 | # define LLONG_MAX LONG_LONG_MAX | |
2770 | #endif | |
2771 | #ifndef ULLONG_MAX | |
2772 | # define ULLONG_MAX ULONG_LONG_MAX | |
2773 | #endif | |
36ed4f51 RD |
2774 | |
2775 | ||
2776 | SWIGINTERN int | |
1bd55598 | 2777 | SWIG_AsVal_long (PyObject* obj, long* val) |
36ed4f51 RD |
2778 | { |
2779 | if (PyNumber_Check(obj)) { | |
2780 | if (val) *val = PyInt_AsLong(obj); | |
1bd55598 | 2781 | return SWIG_OK; |
36ed4f51 | 2782 | } |
1bd55598 | 2783 | return SWIG_TypeError; |
36ed4f51 RD |
2784 | } |
2785 | ||
2786 | ||
36ed4f51 | 2787 | SWIGINTERN int |
1bd55598 RD |
2788 | SWIG_AsVal_int (PyObject * obj, int *val) |
2789 | { | |
36ed4f51 | 2790 | long v; |
1bd55598 RD |
2791 | int res = SWIG_AsVal_long (obj, &v); |
2792 | if (SWIG_IsOK(res)) { | |
2793 | if ((v < INT_MIN || v > INT_MAX)) { | |
2794 | return SWIG_OverflowError; | |
36ed4f51 | 2795 | } else { |
1bd55598 | 2796 | if (val) *val = static_cast< int >(v); |
36ed4f51 | 2797 | } |
1bd55598 RD |
2798 | } |
2799 | return res; | |
d55e5bfc RD |
2800 | } |
2801 | ||
c370783e | 2802 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
d55e5bfc | 2803 | |
36ed4f51 | 2804 | SWIGINTERN int |
1bd55598 | 2805 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
d55e5bfc | 2806 | { |
c370783e RD |
2807 | if (obj == Py_True) { |
2808 | if (val) *val = true; | |
1bd55598 RD |
2809 | return SWIG_OK; |
2810 | } else if (obj == Py_False) { | |
c370783e | 2811 | if (val) *val = false; |
1bd55598 | 2812 | return SWIG_OK; |
36ed4f51 | 2813 | } else { |
1bd55598 RD |
2814 | long v = 0; |
2815 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2816 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2817 | return res; | |
c370783e | 2818 | } |
d55e5bfc RD |
2819 | } |
2820 | ||
2821 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); | |
2822 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
2823 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
2824 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
2825 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
2826 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
2827 | ||
2828 | #include <wx/checklst.h> | |
d55e5bfc RD |
2829 | |
2830 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); | |
1bd55598 | 2831 | SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){ |
e9d6f3a4 RD |
2832 | if (clientData) |
2833 | { | |
d55e5bfc RD |
2834 | wxPyClientData* data = new wxPyClientData(clientData); |
2835 | self->Insert(item, pos, data); | |
e9d6f3a4 RD |
2836 | } |
2837 | else | |
d55e5bfc RD |
2838 | self->Insert(item, pos); |
2839 | } | |
50f151d7 RD |
2840 | |
2841 | SWIGINTERN int | |
2842 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) | |
2843 | { | |
2844 | long v = 0; | |
2845 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
2846 | return SWIG_TypeError; | |
2847 | } | |
2848 | else if (val) | |
2849 | *val = (unsigned long)v; | |
2850 | return SWIG_OK; | |
2851 | } | |
2852 | ||
2853 | ||
2854 | SWIGINTERN int | |
2855 | SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) | |
2856 | { | |
2857 | unsigned long v; | |
2858 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); | |
2859 | if (SWIG_IsOK(res)) { | |
2860 | if ((v > UINT_MAX)) { | |
2861 | return SWIG_OverflowError; | |
2862 | } else { | |
2863 | if (val) *val = static_cast< unsigned int >(v); | |
2864 | } | |
2865 | } | |
2866 | return res; | |
2867 | } | |
2868 | ||
1bd55598 | 2869 | SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){ |
e9d6f3a4 | 2870 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
7e08d4ef RD |
2871 | wxArrayInt lst; |
2872 | self->GetSelections(lst); | |
2873 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
e9d6f3a4 RD |
2874 | for (size_t i=0; i<lst.GetCount(); i++) |
2875 | { | |
7e08d4ef RD |
2876 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); |
2877 | } | |
e9d6f3a4 | 2878 | wxPyEndBlockThreads(blocked); |
7e08d4ef RD |
2879 | return tup; |
2880 | } | |
1bd55598 | 2881 | SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
d55e5bfc RD |
2882 | #ifdef __WXMSW__ |
2883 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2884 | self->GetItem(item)->SetTextColour(c); | |
2885 | #endif | |
2886 | } | |
1bd55598 | 2887 | SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ |
d55e5bfc RD |
2888 | #ifdef __WXMSW__ |
2889 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2890 | self->GetItem(item)->SetBackgroundColour(c); | |
2891 | #endif | |
2892 | } | |
1bd55598 | 2893 | SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ |
d55e5bfc RD |
2894 | #ifdef __WXMSW__ |
2895 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2896 | self->GetItem(item)->SetFont(f); | |
2897 | #endif | |
2898 | } | |
2899 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); | |
1bd55598 | 2900 | SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
d55e5bfc RD |
2901 | self->AppendText(text); |
2902 | } | |
1bd55598 | 2903 | SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ |
d55e5bfc RD |
2904 | return self->GetValue().Mid(from, to - from); |
2905 | } | |
2906 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); | |
2907 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
2908 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); | |
2909 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); | |
2910 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
2911 | ||
1c71765a RD |
2912 | SWIGINTERNINLINE PyObject* |
2913 | SWIG_From_unsigned_SS_long (unsigned long value) | |
2914 | { | |
2915 | return (value > LONG_MAX) ? | |
2916 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
2917 | } | |
2918 | ||
2919 | ||
2920 | SWIGINTERNINLINE PyObject * | |
2921 | SWIG_From_size_t (size_t value) | |
2922 | { | |
2923 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
2924 | } | |
2925 | ||
2926 | ||
50f151d7 RD |
2927 | SWIGINTERNINLINE PyObject * |
2928 | SWIG_From_unsigned_SS_int (unsigned int value) | |
2929 | { | |
2930 | return SWIG_From_unsigned_SS_long (value); | |
2931 | } | |
2932 | ||
2933 | ||
d55e5bfc RD |
2934 | #include <wx/slider.h> |
2935 | ||
2936 | ||
2937 | static const wxString wxPySliderNameStr(wxSliderNameStr); | |
2938 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); | |
2939 | ||
2940 | #if !wxUSE_TOGGLEBTN | |
2941 | // implement dummy items for platforms that don't have this class | |
2942 | ||
2943 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
2944 | ||
2945 | class wxToggleButton : public wxControl | |
2946 | { | |
2947 | public: | |
2948 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
2949 | const wxPoint&, const wxSize&, long, | |
2950 | const wxValidator&, const wxString&) | |
2951 | { wxPyRaiseNotImplemented(); } | |
2952 | ||
2953 | wxToggleButton() | |
2954 | { wxPyRaiseNotImplemented(); } | |
2955 | }; | |
2956 | #endif | |
2957 | ||
51b83b37 | 2958 | static const wxString wxPyNotebookNameStr(wxNotebookNameStr); |
d55e5bfc | 2959 | |
7e08d4ef | 2960 | SWIGINTERNINLINE int |
1bd55598 | 2961 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
7e08d4ef | 2962 | { |
7e08d4ef | 2963 | unsigned long v; |
1bd55598 RD |
2964 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); |
2965 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
2966 | return res; | |
7e08d4ef | 2967 | } |
7e08d4ef | 2968 | |
d55e5bfc | 2969 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
1bd55598 | 2970 | SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
d55e5bfc RD |
2971 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); |
2972 | if (udata) { | |
2973 | Py_INCREF(udata->m_obj); | |
2974 | return udata->m_obj; | |
2975 | } else { | |
2976 | Py_INCREF(Py_None); | |
2977 | return Py_None; | |
2978 | } | |
2979 | } | |
1bd55598 | 2980 | SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ |
d55e5bfc RD |
2981 | self->SetClientData(new wxPyUserData(clientData)); |
2982 | } | |
1bd55598 | 2983 | SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){ |
d55e5bfc RD |
2984 | wxPyUserData* udata = NULL; |
2985 | if (clientData && clientData != Py_None) | |
2986 | udata = new wxPyUserData(clientData); | |
2987 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
2988 | shortHelp, longHelp, udata); | |
2989 | } | |
1bd55598 | 2990 | SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){ |
d55e5bfc RD |
2991 | wxPyUserData* udata = NULL; |
2992 | if (clientData && clientData != Py_None) | |
2993 | udata = new wxPyUserData(clientData); | |
2994 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
2995 | shortHelp, longHelp, udata); | |
2996 | } | |
1bd55598 | 2997 | SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ |
d55e5bfc RD |
2998 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); |
2999 | if (udata) { | |
3000 | Py_INCREF(udata->m_obj); | |
3001 | return udata->m_obj; | |
3002 | } else { | |
3003 | Py_INCREF(Py_None); | |
3004 | return Py_None; | |
3005 | } | |
3006 | } | |
1bd55598 | 3007 | SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ |
d55e5bfc RD |
3008 | self->SetToolClientData(id, new wxPyUserData(clientData)); |
3009 | } | |
3010 | ||
3011 | #include <wx/listctrl.h> | |
3012 | ||
fef4c27a | 3013 | static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr); |
1bd55598 | 3014 | SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
d55e5bfc RD |
3015 | // Python aware sorting function for wxPyListCtrl |
3016 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
3017 | int retval = 0; | |
3018 | PyObject* func = (PyObject*)funcPtr; | |
5a446332 | 3019 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
3020 | |
3021 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
3022 | PyObject* result = PyEval_CallObject(func, args); | |
3023 | Py_DECREF(args); | |
3024 | if (result) { | |
3025 | retval = PyInt_AsLong(result); | |
3026 | Py_DECREF(result); | |
3027 | } | |
3028 | ||
3029 | wxPyEndBlockThreads(blocked); | |
3030 | return retval; | |
3031 | } | |
3032 | ||
3033 | // C++ Version of a Python aware class | |
3034 | class wxPyListCtrl : public wxListCtrl { | |
32fe5131 | 3035 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl) |
d55e5bfc RD |
3036 | public: |
3037 | wxPyListCtrl() : wxListCtrl() {} | |
3038 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
3039 | const wxPoint& pos, | |
3040 | const wxSize& size, | |
3041 | long style, | |
3042 | const wxValidator& validator, | |
3043 | const wxString& name) : | |
3044 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
3045 | ||
3046 | bool Create(wxWindow* parent, wxWindowID id, | |
3047 | const wxPoint& pos, | |
3048 | const wxSize& size, | |
3049 | long style, | |
3050 | const wxValidator& validator, | |
3051 | const wxString& name) { | |
3052 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
3053 | } | |
3054 | ||
3055 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
d55e5bfc RD |
3056 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); |
3057 | ||
84f85550 RD |
3058 | // use the virtual version to avoid a confusing assert in the base class |
3059 | DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage); | |
7e08d4ef | 3060 | DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage); |
84f85550 | 3061 | |
d55e5bfc RD |
3062 | PYPRIVATE; |
3063 | }; | |
3064 | ||
3065 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
3066 | ||
3067 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
d55e5bfc | 3068 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); |
84f85550 | 3069 | IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage); |
c25f90f6 | 3070 | IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage); |
7e08d4ef | 3071 | |
d55e5bfc | 3072 | |
1bd55598 | 3073 | SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ |
d55e5bfc RD |
3074 | wxListItem item; |
3075 | item.SetMask( wxLIST_MASK_STATE | | |
3076 | wxLIST_MASK_TEXT | | |
3077 | wxLIST_MASK_IMAGE | | |
3078 | wxLIST_MASK_DATA | | |
3079 | wxLIST_SET_ITEM | | |
3080 | wxLIST_MASK_WIDTH | | |
3081 | wxLIST_MASK_FORMAT | |
3082 | ); | |
3083 | if (self->GetColumn(col, item)) | |
3084 | return new wxListItem(item); | |
3085 | else | |
3086 | return NULL; | |
3087 | } | |
1bd55598 | 3088 | SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){ |
d55e5bfc RD |
3089 | wxListItem* info = new wxListItem; |
3090 | info->m_itemId = itemId; | |
3091 | info->m_col = col; | |
3092 | info->m_mask = 0xFFFF; | |
3093 | self->GetItem(*info); | |
3094 | return info; | |
3095 | } | |
1bd55598 | 3096 | SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ |
d55e5bfc RD |
3097 | wxPoint pos; |
3098 | self->GetItemPosition(item, pos); | |
3099 | return pos; | |
3100 | } | |
1bd55598 | 3101 | SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){ |
d55e5bfc RD |
3102 | wxRect rect; |
3103 | self->GetItemRect(item, rect, code); | |
3104 | return rect; | |
3105 | } | |
1bd55598 | 3106 | SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
d55e5bfc | 3107 | if (!PyCallable_Check(func)) |
b411df4a | 3108 | return false; |
d55e5bfc RD |
3109 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
3110 | } | |
1bd55598 | 3111 | SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ |
d55e5bfc | 3112 | |
6a223074 RD |
3113 | return self; |
3114 | ||
d55e5bfc RD |
3115 | |
3116 | ||
d55e5bfc RD |
3117 | } |
3118 | ||
3119 | #include <wx/treectrl.h> | |
3120 | #include "wx/wxPython/pytree.h" | |
3121 | ||
3122 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); | |
1bd55598 RD |
3123 | SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; } |
3124 | SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; } | |
3125 | SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
b02396e8 RD |
3126 | |
3127 | static wxTreeItemId wxNullTreeItemId; | |
3128 | ||
d55e5bfc RD |
3129 | // C++ version of Python aware wxTreeCtrl |
3130 | class wxPyTreeCtrl : public wxTreeCtrl { | |
32fe5131 | 3131 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl) |
d55e5bfc RD |
3132 | public: |
3133 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
3134 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
3135 | const wxPoint& pos, | |
3136 | const wxSize& size, | |
3137 | long style, | |
3138 | const wxValidator& validator, | |
3139 | const wxString& name) : | |
3140 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
3141 | ||
3142 | bool Create(wxWindow *parent, wxWindowID id, | |
3143 | const wxPoint& pos, | |
3144 | const wxSize& size, | |
3145 | long style, | |
3146 | const wxValidator& validator, | |
3147 | const wxString& name) { | |
3148 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
3149 | } | |
3150 | ||
3151 | ||
3152 | int OnCompareItems(const wxTreeItemId& item1, | |
3153 | const wxTreeItemId& item2) { | |
3154 | int rval = 0; | |
3155 | bool found; | |
5a446332 | 3156 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 3157 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
b411df4a RD |
3158 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false); |
3159 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false); | |
d55e5bfc RD |
3160 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
3161 | Py_DECREF(o1); | |
3162 | Py_DECREF(o2); | |
3163 | } | |
3164 | wxPyEndBlockThreads(blocked); | |
3165 | if (! found) | |
3166 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
3167 | return rval; | |
3168 | } | |
3169 | PYPRIVATE; | |
3170 | }; | |
3171 | ||
3172 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
3173 | ||
3174 | ||
1bd55598 | 3175 | SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d55e5bfc RD |
3176 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3177 | if (data == NULL) { | |
3178 | data = new wxPyTreeItemData(); | |
3179 | data->SetId(item); // set the id | |
3180 | self->SetItemData(item, data); | |
3181 | } | |
3182 | return data; | |
3183 | } | |
1bd55598 | 3184 | SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d55e5bfc RD |
3185 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3186 | if (data == NULL) { | |
3187 | data = new wxPyTreeItemData(); | |
3188 | data->SetId(item); // set the id | |
3189 | self->SetItemData(item, data); | |
3190 | } | |
3191 | return data->GetData(); | |
3192 | } | |
1bd55598 | 3193 | SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ |
d55e5bfc RD |
3194 | data->SetId(item); // set the id |
3195 | self->SetItemData(item, data); | |
3196 | } | |
1bd55598 | 3197 | SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ |
d55e5bfc RD |
3198 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3199 | if (data == NULL) { | |
3200 | data = new wxPyTreeItemData(obj); | |
3201 | data->SetId(item); // set the id | |
3202 | self->SetItemData(item, data); | |
3203 | } else | |
3204 | data->SetData(obj); | |
3205 | } | |
1bd55598 | 3206 | SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ |
5a446332 | 3207 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
3208 | PyObject* rval = PyList_New(0); |
3209 | wxArrayTreeItemIds array; | |
3210 | size_t num, x; | |
3211 | num = self->GetSelections(array); | |
3212 | for (x=0; x < num; x++) { | |
3213 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
b411df4a | 3214 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); |
d55e5bfc | 3215 | PyList_Append(rval, item); |
68e533f8 | 3216 | Py_DECREF(item); |
d55e5bfc RD |
3217 | } |
3218 | wxPyEndBlockThreads(blocked); | |
3219 | return rval; | |
3220 | } | |
1bd55598 | 3221 | SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d55e5bfc RD |
3222 | void* cookie = 0; |
3223 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
5a446332 | 3224 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 3225 | PyObject* tup = PyTuple_New(2); |
b411df4a | 3226 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
d55e5bfc RD |
3227 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
3228 | wxPyEndBlockThreads(blocked); | |
3229 | return tup; | |
3230 | } | |
1bd55598 | 3231 | SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
d55e5bfc | 3232 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); |
5a446332 | 3233 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 3234 | PyObject* tup = PyTuple_New(2); |
b411df4a | 3235 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
d55e5bfc RD |
3236 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
3237 | wxPyEndBlockThreads(blocked); | |
3238 | return tup; | |
3239 | } | |
1bd55598 | 3240 | SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){ |
d55e5bfc RD |
3241 | wxRect rect; |
3242 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
5a446332 | 3243 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 3244 | wxRect* r = new wxRect(rect); |
b411df4a | 3245 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true); |
d55e5bfc RD |
3246 | wxPyEndBlockThreads(blocked); |
3247 | return val; | |
3248 | } | |
3249 | else | |
3250 | RETURN_NONE(); | |
3251 | } | |
3252 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); | |
c370783e | 3253 | |
32fe5131 | 3254 | SWIGINTERNINLINE PyObject* |
1bd55598 | 3255 | SWIG_From_bool (bool value) |
c370783e | 3256 | { |
1bd55598 | 3257 | return PyBool_FromLong(value ? 1 : 0); |
c370783e RD |
3258 | } |
3259 | ||
d55e5bfc RD |
3260 | // C++ version of Python aware wxControl |
3261 | class wxPyControl : public wxControl | |
3262 | { | |
3263 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
3264 | public: | |
3265 | wxPyControl() : wxControl() {} | |
3266 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
3267 | const wxPoint& pos = wxDefaultPosition, | |
3268 | const wxSize& size = wxDefaultSize, | |
3269 | long style = 0, | |
3270 | const wxValidator& validator=wxDefaultValidator, | |
3271 | const wxString& name = wxPyControlNameStr) | |
3272 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
3273 | ||
3274 | ||
976dbff5 RD |
3275 | bool DoEraseBackground(wxDC* dc) { |
3276 | #ifdef __WXMSW__ | |
3277 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3278 | #else | |
3279 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3280 | dc->Clear(); | |
3281 | return true; | |
3282 | #endif | |
3283 | } | |
3284 | ||
d55e5bfc RD |
3285 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); |
3286 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3287 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3288 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3289 | ||
3290 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3291 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3292 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3293 | ||
3294 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3295 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3296 | ||
3297 | DEC_PYCALLBACK__(InitDialog); | |
3298 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3299 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3300 | DEC_PYCALLBACK_BOOL_(Validate); | |
3301 | ||
3302 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3303 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3304 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3305 | ||
3306 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3307 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3308 | ||
a5ee0656 | 3309 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
a5ee0656 | 3310 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 3311 | |
51b83b37 RD |
3312 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3313 | ||
8d38bd1d RD |
3314 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3315 | ||
d55e5bfc RD |
3316 | PYPRIVATE; |
3317 | }; | |
3318 | ||
3319 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
3320 | ||
3321 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
3322 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
3323 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
3324 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
3325 | ||
3326 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
3327 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
3328 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
3329 | ||
3330 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
3331 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
3332 | ||
3333 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
3334 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
3335 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
3336 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
3337 | ||
3338 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
3339 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
3340 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
3341 | ||
3342 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
3343 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
3344 | ||
a5ee0656 | 3345 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
a5ee0656 | 3346 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d55e5bfc | 3347 | |
51b83b37 | 3348 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground); |
8d38bd1d RD |
3349 | |
3350 | IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle); | |
3351 | ||
d55e5bfc RD |
3352 | |
3353 | ||
1bd55598 | 3354 | SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } |
d55e5bfc RD |
3355 | |
3356 | #include <wx/generic/dragimgg.h> | |
3357 | ||
53aa7709 | 3358 | static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr); |
1bd55598 | 3359 | SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){ |
53aa7709 RD |
3360 | wxDateTime rv; |
3361 | self->GetRange(&rv, NULL); | |
3362 | return rv; | |
3363 | } | |
1bd55598 | 3364 | SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){ |
53aa7709 RD |
3365 | wxDateTime rv; |
3366 | self->GetRange(NULL, &rv); | |
3367 | return rv; | |
3368 | } | |
704eda0c | 3369 | static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr); |
b850e7f3 RD |
3370 | static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr); |
3371 | static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr); | |
3372 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
3373 | static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr); | |
3374 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
3375 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
3376 | static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr); | |
5172800e | 3377 | static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr); |
d55e5bfc RD |
3378 | #ifdef __cplusplus |
3379 | extern "C" { | |
3380 | #endif | |
1bd55598 RD |
3381 | SWIGINTERN int ButtonNameStr_set(PyObject *) { |
3382 | SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only."); | |
3383 | return 1; | |
d55e5bfc RD |
3384 | } |
3385 | ||
3386 | ||
1bd55598 RD |
3387 | SWIGINTERN PyObject *ButtonNameStr_get(void) { |
3388 | PyObject *pyobj = 0; | |
3389 | ||
3390 | { | |
d55e5bfc | 3391 | #if wxUSE_UNICODE |
1bd55598 | 3392 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); |
d55e5bfc | 3393 | #else |
1bd55598 | 3394 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); |
d55e5bfc | 3395 | #endif |
1bd55598 RD |
3396 | } |
3397 | return pyobj; | |
3398 | } | |
3399 | ||
3400 | ||
3401 | SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3402 | PyObject *resultobj = 0; | |
3403 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3404 | int arg2 = (int) -1 ; | |
3405 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3406 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3407 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3408 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3409 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3410 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3411 | long arg6 = (long) 0 ; | |
3412 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3413 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3414 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
3415 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3416 | wxButton *result = 0 ; | |
3417 | void *argp1 = 0 ; | |
3418 | int res1 = 0 ; | |
3419 | int val2 ; | |
3420 | int ecode2 = 0 ; | |
3421 | bool temp3 = false ; | |
3422 | wxPoint temp4 ; | |
3423 | wxSize temp5 ; | |
3424 | long val6 ; | |
3425 | int ecode6 = 0 ; | |
3426 | void *argp7 = 0 ; | |
3427 | int res7 = 0 ; | |
3428 | bool temp8 = false ; | |
3429 | PyObject * obj0 = 0 ; | |
3430 | PyObject * obj1 = 0 ; | |
3431 | PyObject * obj2 = 0 ; | |
3432 | PyObject * obj3 = 0 ; | |
3433 | PyObject * obj4 = 0 ; | |
3434 | PyObject * obj5 = 0 ; | |
3435 | PyObject * obj6 = 0 ; | |
3436 | PyObject * obj7 = 0 ; | |
3437 | char * kwnames[] = { | |
3438 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3439 | }; | |
3440 | ||
3441 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
3442 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3443 | if (!SWIG_IsOK(res1)) { | |
3444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3445 | } | |
3446 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3447 | if (obj1) { | |
3448 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3449 | if (!SWIG_IsOK(ecode2)) { | |
3450 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'"); | |
3451 | } | |
3452 | arg2 = static_cast< int >(val2); | |
3453 | } | |
3454 | if (obj2) { | |
d55e5bfc | 3455 | { |
1bd55598 RD |
3456 | arg3 = wxString_in_helper(obj2); |
3457 | if (arg3 == NULL) SWIG_fail; | |
3458 | temp3 = true; | |
d55e5bfc | 3459 | } |
1bd55598 RD |
3460 | } |
3461 | if (obj3) { | |
d55e5bfc | 3462 | { |
1bd55598 RD |
3463 | arg4 = &temp4; |
3464 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 3465 | } |
1bd55598 RD |
3466 | } |
3467 | if (obj4) { | |
d55e5bfc | 3468 | { |
1bd55598 RD |
3469 | arg5 = &temp5; |
3470 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 3471 | } |
1bd55598 RD |
3472 | } |
3473 | if (obj5) { | |
3474 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3475 | if (!SWIG_IsOK(ecode6)) { | |
3476 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'"); | |
3477 | } | |
3478 | arg6 = static_cast< long >(val6); | |
3479 | } | |
3480 | if (obj6) { | |
3481 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
3482 | if (!SWIG_IsOK(res7)) { | |
3483 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 3484 | } |
1bd55598 RD |
3485 | if (!argp7) { |
3486 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 3487 | } |
1bd55598 RD |
3488 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
3489 | } | |
3490 | if (obj7) { | |
d55e5bfc | 3491 | { |
1bd55598 RD |
3492 | arg8 = wxString_in_helper(obj7); |
3493 | if (arg8 == NULL) SWIG_fail; | |
3494 | temp8 = true; | |
d55e5bfc | 3495 | } |
1bd55598 RD |
3496 | } |
3497 | { | |
3498 | if (!wxPyCheckForApp()) SWIG_fail; | |
3499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3500 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3501 | wxPyEndAllowThreads(__tstate); | |
3502 | if (PyErr_Occurred()) SWIG_fail; | |
3503 | } | |
3504 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 ); | |
3505 | { | |
3506 | if (temp3) | |
3507 | delete arg3; | |
3508 | } | |
3509 | { | |
3510 | if (temp8) | |
3511 | delete arg8; | |
3512 | } | |
3513 | return resultobj; | |
3514 | fail: | |
3515 | { | |
3516 | if (temp3) | |
3517 | delete arg3; | |
3518 | } | |
3519 | { | |
3520 | if (temp8) | |
3521 | delete arg8; | |
3522 | } | |
3523 | return NULL; | |
d55e5bfc RD |
3524 | } |
3525 | ||
3526 | ||
1bd55598 RD |
3527 | SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3528 | PyObject *resultobj = 0; | |
3529 | wxButton *result = 0 ; | |
3530 | ||
3531 | if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail; | |
3532 | { | |
3533 | if (!wxPyCheckForApp()) SWIG_fail; | |
3534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3535 | result = (wxButton *)new wxButton(); | |
3536 | wxPyEndAllowThreads(__tstate); | |
3537 | if (PyErr_Occurred()) SWIG_fail; | |
3538 | } | |
3539 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 ); | |
3540 | return resultobj; | |
3541 | fail: | |
3542 | return NULL; | |
3543 | } | |
3544 | ||
3545 | ||
3546 | SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3547 | PyObject *resultobj = 0; | |
3548 | wxButton *arg1 = (wxButton *) 0 ; | |
3549 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3550 | int arg3 = (int) -1 ; | |
3551 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3552 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3553 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3554 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3555 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3556 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3557 | long arg7 = (long) 0 ; | |
3558 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3559 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3560 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
3561 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3562 | bool result; | |
3563 | void *argp1 = 0 ; | |
3564 | int res1 = 0 ; | |
3565 | void *argp2 = 0 ; | |
3566 | int res2 = 0 ; | |
3567 | int val3 ; | |
3568 | int ecode3 = 0 ; | |
3569 | bool temp4 = false ; | |
3570 | wxPoint temp5 ; | |
3571 | wxSize temp6 ; | |
3572 | long val7 ; | |
3573 | int ecode7 = 0 ; | |
3574 | void *argp8 = 0 ; | |
3575 | int res8 = 0 ; | |
3576 | bool temp9 = false ; | |
3577 | PyObject * obj0 = 0 ; | |
3578 | PyObject * obj1 = 0 ; | |
3579 | PyObject * obj2 = 0 ; | |
3580 | PyObject * obj3 = 0 ; | |
3581 | PyObject * obj4 = 0 ; | |
3582 | PyObject * obj5 = 0 ; | |
3583 | PyObject * obj6 = 0 ; | |
3584 | PyObject * obj7 = 0 ; | |
3585 | PyObject * obj8 = 0 ; | |
3586 | char * kwnames[] = { | |
3587 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3588 | }; | |
3589 | ||
3590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
3591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 ); | |
3592 | if (!SWIG_IsOK(res1)) { | |
3593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'"); | |
3594 | } | |
3595 | arg1 = reinterpret_cast< wxButton * >(argp1); | |
3596 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3597 | if (!SWIG_IsOK(res2)) { | |
3598 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3599 | } | |
3600 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3601 | if (obj2) { | |
3602 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3603 | if (!SWIG_IsOK(ecode3)) { | |
3604 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'"); | |
3605 | } | |
3606 | arg3 = static_cast< int >(val3); | |
3607 | } | |
3608 | if (obj3) { | |
d55e5bfc | 3609 | { |
1bd55598 RD |
3610 | arg4 = wxString_in_helper(obj3); |
3611 | if (arg4 == NULL) SWIG_fail; | |
3612 | temp4 = true; | |
d55e5bfc | 3613 | } |
1bd55598 RD |
3614 | } |
3615 | if (obj4) { | |
d55e5bfc | 3616 | { |
1bd55598 RD |
3617 | arg5 = &temp5; |
3618 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 3619 | } |
1bd55598 RD |
3620 | } |
3621 | if (obj5) { | |
d55e5bfc | 3622 | { |
1bd55598 RD |
3623 | arg6 = &temp6; |
3624 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 3625 | } |
1bd55598 RD |
3626 | } |
3627 | if (obj6) { | |
3628 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
3629 | if (!SWIG_IsOK(ecode7)) { | |
3630 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'"); | |
3631 | } | |
3632 | arg7 = static_cast< long >(val7); | |
3633 | } | |
3634 | if (obj7) { | |
3635 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
3636 | if (!SWIG_IsOK(res8)) { | |
3637 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 3638 | } |
1bd55598 RD |
3639 | if (!argp8) { |
3640 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 3641 | } |
1bd55598 RD |
3642 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
3643 | } | |
3644 | if (obj8) { | |
d55e5bfc | 3645 | { |
1bd55598 RD |
3646 | arg9 = wxString_in_helper(obj8); |
3647 | if (arg9 == NULL) SWIG_fail; | |
3648 | temp9 = true; | |
d55e5bfc | 3649 | } |
1bd55598 RD |
3650 | } |
3651 | { | |
3652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3653 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3654 | wxPyEndAllowThreads(__tstate); | |
3655 | if (PyErr_Occurred()) SWIG_fail; | |
3656 | } | |
3657 | { | |
3658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3659 | } | |
3660 | { | |
3661 | if (temp4) | |
3662 | delete arg4; | |
3663 | } | |
3664 | { | |
3665 | if (temp9) | |
3666 | delete arg9; | |
3667 | } | |
3668 | return resultobj; | |
3669 | fail: | |
3670 | { | |
3671 | if (temp4) | |
3672 | delete arg4; | |
3673 | } | |
3674 | { | |
3675 | if (temp9) | |
3676 | delete arg9; | |
3677 | } | |
3678 | return NULL; | |
d55e5bfc RD |
3679 | } |
3680 | ||
3681 | ||
1bd55598 RD |
3682 | SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3683 | PyObject *resultobj = 0; | |
3684 | wxButton *arg1 = (wxButton *) 0 ; | |
3685 | void *argp1 = 0 ; | |
3686 | int res1 = 0 ; | |
3687 | PyObject *swig_obj[1] ; | |
3688 | ||
3689 | if (!args) SWIG_fail; | |
3690 | swig_obj[0] = args; | |
3691 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 ); | |
3692 | if (!SWIG_IsOK(res1)) { | |
3693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'"); | |
3694 | } | |
3695 | arg1 = reinterpret_cast< wxButton * >(argp1); | |
3696 | { | |
3697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3698 | (arg1)->SetDefault(); | |
3699 | wxPyEndAllowThreads(__tstate); | |
3700 | if (PyErr_Occurred()) SWIG_fail; | |
3701 | } | |
3702 | resultobj = SWIG_Py_Void(); | |
3703 | return resultobj; | |
3704 | fail: | |
3705 | return NULL; | |
d55e5bfc RD |
3706 | } |
3707 | ||
3708 | ||
1bd55598 RD |
3709 | SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3710 | PyObject *resultobj = 0; | |
3711 | wxSize result; | |
3712 | ||
3713 | if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail; | |
3714 | { | |
3715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3716 | result = wxButton::GetDefaultSize(); | |
3717 | wxPyEndAllowThreads(__tstate); | |
3718 | if (PyErr_Occurred()) SWIG_fail; | |
3719 | } | |
3720 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
3721 | return resultobj; | |
3722 | fail: | |
3723 | return NULL; | |
3724 | } | |
3725 | ||
3726 | ||
3727 | SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3728 | PyObject *resultobj = 0; | |
3729 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
3730 | SwigValueWrapper<wxVisualAttributes > result; | |
3731 | int val1 ; | |
3732 | int ecode1 = 0 ; | |
3733 | PyObject * obj0 = 0 ; | |
3734 | char * kwnames[] = { | |
3735 | (char *) "variant", NULL | |
3736 | }; | |
3737 | ||
3738 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
3739 | if (obj0) { | |
3740 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
3741 | if (!SWIG_IsOK(ecode1)) { | |
3742 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
3743 | } | |
3744 | arg1 = static_cast< wxWindowVariant >(val1); | |
3745 | } | |
3746 | { | |
3747 | if (!wxPyCheckForApp()) SWIG_fail; | |
3748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3749 | result = wxButton::GetClassDefaultAttributes(arg1); | |
3750 | wxPyEndAllowThreads(__tstate); | |
3751 | if (PyErr_Occurred()) SWIG_fail; | |
3752 | } | |
3753 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
3754 | return resultobj; | |
3755 | fail: | |
3756 | return NULL; | |
3757 | } | |
3758 | ||
3759 | ||
3760 | SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3761 | PyObject *obj; | |
3762 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3763 | SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj)); | |
3764 | return SWIG_Py_Void(); | |
3765 | } | |
3766 | ||
3767 | SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3768 | return SWIG_Python_InitShadowInstance(args); | |
3769 | } | |
3770 | ||
3771 | SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3772 | PyObject *resultobj = 0; | |
3773 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3774 | int arg2 = (int) -1 ; | |
3775 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
3776 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
3777 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3778 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3779 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3780 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3781 | long arg6 = (long) wxBU_AUTODRAW ; | |
3782 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3783 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3784 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
3785 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3786 | wxBitmapButton *result = 0 ; | |
3787 | void *argp1 = 0 ; | |
3788 | int res1 = 0 ; | |
3789 | int val2 ; | |
3790 | int ecode2 = 0 ; | |
3791 | void *argp3 = 0 ; | |
3792 | int res3 = 0 ; | |
3793 | wxPoint temp4 ; | |
3794 | wxSize temp5 ; | |
3795 | long val6 ; | |
3796 | int ecode6 = 0 ; | |
3797 | void *argp7 = 0 ; | |
3798 | int res7 = 0 ; | |
3799 | bool temp8 = false ; | |
3800 | PyObject * obj0 = 0 ; | |
3801 | PyObject * obj1 = 0 ; | |
3802 | PyObject * obj2 = 0 ; | |
3803 | PyObject * obj3 = 0 ; | |
3804 | PyObject * obj4 = 0 ; | |
3805 | PyObject * obj5 = 0 ; | |
3806 | PyObject * obj6 = 0 ; | |
3807 | PyObject * obj7 = 0 ; | |
3808 | char * kwnames[] = { | |
3809 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3810 | }; | |
3811 | ||
3812 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
3813 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3814 | if (!SWIG_IsOK(res1)) { | |
3815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3816 | } | |
3817 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3818 | if (obj1) { | |
3819 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3820 | if (!SWIG_IsOK(ecode2)) { | |
3821 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'"); | |
3822 | } | |
3823 | arg2 = static_cast< int >(val2); | |
3824 | } | |
3825 | if (obj2) { | |
3826 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
3827 | if (!SWIG_IsOK(res3)) { | |
3828 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
3829 | } | |
3830 | if (!argp3) { | |
3831 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
3832 | } | |
3833 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
3834 | } | |
3835 | if (obj3) { | |
d55e5bfc | 3836 | { |
1bd55598 RD |
3837 | arg4 = &temp4; |
3838 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 3839 | } |
1bd55598 RD |
3840 | } |
3841 | if (obj4) { | |
d55e5bfc | 3842 | { |
1bd55598 RD |
3843 | arg5 = &temp5; |
3844 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 3845 | } |
1bd55598 RD |
3846 | } |
3847 | if (obj5) { | |
3848 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3849 | if (!SWIG_IsOK(ecode6)) { | |
3850 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'"); | |
3851 | } | |
3852 | arg6 = static_cast< long >(val6); | |
3853 | } | |
3854 | if (obj6) { | |
3855 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
3856 | if (!SWIG_IsOK(res7)) { | |
3857 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
f20a2e1f | 3858 | } |
1bd55598 RD |
3859 | if (!argp7) { |
3860 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
f20a2e1f | 3861 | } |
1bd55598 RD |
3862 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
3863 | } | |
3864 | if (obj7) { | |
f20a2e1f | 3865 | { |
1bd55598 RD |
3866 | arg8 = wxString_in_helper(obj7); |
3867 | if (arg8 == NULL) SWIG_fail; | |
3868 | temp8 = true; | |
f20a2e1f | 3869 | } |
1bd55598 RD |
3870 | } |
3871 | { | |
3872 | if (!wxPyCheckForApp()) SWIG_fail; | |
3873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3874 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3875 | wxPyEndAllowThreads(__tstate); | |
3876 | if (PyErr_Occurred()) SWIG_fail; | |
3877 | } | |
3878 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 ); | |
3879 | { | |
3880 | if (temp8) | |
3881 | delete arg8; | |
3882 | } | |
3883 | return resultobj; | |
3884 | fail: | |
3885 | { | |
3886 | if (temp8) | |
3887 | delete arg8; | |
3888 | } | |
3889 | return NULL; | |
f20a2e1f RD |
3890 | } |
3891 | ||
3892 | ||
1bd55598 RD |
3893 | SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3894 | PyObject *resultobj = 0; | |
3895 | wxBitmapButton *result = 0 ; | |
3896 | ||
3897 | if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail; | |
3898 | { | |
3899 | if (!wxPyCheckForApp()) SWIG_fail; | |
3900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3901 | result = (wxBitmapButton *)new wxBitmapButton(); | |
3902 | wxPyEndAllowThreads(__tstate); | |
3903 | if (PyErr_Occurred()) SWIG_fail; | |
3904 | } | |
3905 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 ); | |
3906 | return resultobj; | |
3907 | fail: | |
3908 | return NULL; | |
3909 | } | |
3910 | ||
3911 | ||
3912 | SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3913 | PyObject *resultobj = 0; | |
3914 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3915 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3916 | int arg3 = (int) -1 ; | |
3917 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
3918 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
3919 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3920 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3921 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3922 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3923 | long arg7 = (long) wxBU_AUTODRAW ; | |
3924 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3925 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3926 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
3927 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3928 | bool result; | |
3929 | void *argp1 = 0 ; | |
3930 | int res1 = 0 ; | |
3931 | void *argp2 = 0 ; | |
3932 | int res2 = 0 ; | |
3933 | int val3 ; | |
3934 | int ecode3 = 0 ; | |
3935 | void *argp4 = 0 ; | |
3936 | int res4 = 0 ; | |
3937 | wxPoint temp5 ; | |
3938 | wxSize temp6 ; | |
3939 | long val7 ; | |
3940 | int ecode7 = 0 ; | |
3941 | void *argp8 = 0 ; | |
3942 | int res8 = 0 ; | |
3943 | bool temp9 = false ; | |
3944 | PyObject * obj0 = 0 ; | |
3945 | PyObject * obj1 = 0 ; | |
3946 | PyObject * obj2 = 0 ; | |
3947 | PyObject * obj3 = 0 ; | |
3948 | PyObject * obj4 = 0 ; | |
3949 | PyObject * obj5 = 0 ; | |
3950 | PyObject * obj6 = 0 ; | |
3951 | PyObject * obj7 = 0 ; | |
3952 | PyObject * obj8 = 0 ; | |
3953 | char * kwnames[] = { | |
3954 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3955 | }; | |
3956 | ||
3957 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
3958 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
3959 | if (!SWIG_IsOK(res1)) { | |
3960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
3961 | } | |
3962 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
3963 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3964 | if (!SWIG_IsOK(res2)) { | |
3965 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3966 | } | |
3967 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3968 | if (obj2) { | |
3969 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3970 | if (!SWIG_IsOK(ecode3)) { | |
3971 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
3972 | } | |
3973 | arg3 = static_cast< int >(val3); | |
3974 | } | |
3975 | if (obj3) { | |
3976 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
3977 | if (!SWIG_IsOK(res4)) { | |
3978 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 3979 | } |
1bd55598 RD |
3980 | if (!argp4) { |
3981 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 3982 | } |
1bd55598 RD |
3983 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
3984 | } | |
3985 | if (obj4) { | |
d55e5bfc | 3986 | { |
1bd55598 RD |
3987 | arg5 = &temp5; |
3988 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 3989 | } |
1bd55598 RD |
3990 | } |
3991 | if (obj5) { | |
d55e5bfc | 3992 | { |
1bd55598 RD |
3993 | arg6 = &temp6; |
3994 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3995 | } | |
3996 | } | |
3997 | if (obj6) { | |
3998 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
3999 | if (!SWIG_IsOK(ecode7)) { | |
4000 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
4001 | } | |
4002 | arg7 = static_cast< long >(val7); | |
4003 | } | |
4004 | if (obj7) { | |
4005 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
4006 | if (!SWIG_IsOK(res8)) { | |
4007 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
4008 | } | |
4009 | if (!argp8) { | |
4010 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 4011 | } |
1bd55598 RD |
4012 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
4013 | } | |
4014 | if (obj8) { | |
d55e5bfc | 4015 | { |
1bd55598 RD |
4016 | arg9 = wxString_in_helper(obj8); |
4017 | if (arg9 == NULL) SWIG_fail; | |
4018 | temp9 = true; | |
d55e5bfc | 4019 | } |
1bd55598 RD |
4020 | } |
4021 | { | |
4022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4023 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4024 | wxPyEndAllowThreads(__tstate); | |
4025 | if (PyErr_Occurred()) SWIG_fail; | |
4026 | } | |
4027 | { | |
4028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4029 | } | |
4030 | { | |
4031 | if (temp9) | |
4032 | delete arg9; | |
4033 | } | |
4034 | return resultobj; | |
4035 | fail: | |
4036 | { | |
4037 | if (temp9) | |
4038 | delete arg9; | |
4039 | } | |
4040 | return NULL; | |
d55e5bfc RD |
4041 | } |
4042 | ||
4043 | ||
1bd55598 RD |
4044 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4045 | PyObject *resultobj = 0; | |
4046 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4047 | wxBitmap result; | |
4048 | void *argp1 = 0 ; | |
4049 | int res1 = 0 ; | |
4050 | PyObject *swig_obj[1] ; | |
4051 | ||
4052 | if (!args) SWIG_fail; | |
4053 | swig_obj[0] = args; | |
4054 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4055 | if (!SWIG_IsOK(res1)) { | |
4056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4057 | } | |
4058 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4059 | { | |
4060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4061 | result = (arg1)->GetBitmapLabel(); | |
4062 | wxPyEndAllowThreads(__tstate); | |
4063 | if (PyErr_Occurred()) SWIG_fail; | |
4064 | } | |
4065 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4066 | return resultobj; | |
4067 | fail: | |
4068 | return NULL; | |
d55e5bfc RD |
4069 | } |
4070 | ||
4071 | ||
1bd55598 RD |
4072 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4073 | PyObject *resultobj = 0; | |
4074 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4075 | wxBitmap result; | |
4076 | void *argp1 = 0 ; | |
4077 | int res1 = 0 ; | |
4078 | PyObject *swig_obj[1] ; | |
4079 | ||
4080 | if (!args) SWIG_fail; | |
4081 | swig_obj[0] = args; | |
4082 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4083 | if (!SWIG_IsOK(res1)) { | |
4084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4085 | } | |
4086 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4087 | { | |
4088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4089 | result = (arg1)->GetBitmapDisabled(); | |
4090 | wxPyEndAllowThreads(__tstate); | |
4091 | if (PyErr_Occurred()) SWIG_fail; | |
4092 | } | |
4093 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4094 | return resultobj; | |
4095 | fail: | |
4096 | return NULL; | |
d55e5bfc RD |
4097 | } |
4098 | ||
4099 | ||
1bd55598 RD |
4100 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4101 | PyObject *resultobj = 0; | |
4102 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4103 | wxBitmap result; | |
4104 | void *argp1 = 0 ; | |
4105 | int res1 = 0 ; | |
4106 | PyObject *swig_obj[1] ; | |
4107 | ||
4108 | if (!args) SWIG_fail; | |
4109 | swig_obj[0] = args; | |
4110 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4111 | if (!SWIG_IsOK(res1)) { | |
4112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4113 | } | |
4114 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4115 | { | |
4116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4117 | result = (arg1)->GetBitmapFocus(); | |
4118 | wxPyEndAllowThreads(__tstate); | |
4119 | if (PyErr_Occurred()) SWIG_fail; | |
4120 | } | |
4121 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4122 | return resultobj; | |
4123 | fail: | |
4124 | return NULL; | |
d55e5bfc RD |
4125 | } |
4126 | ||
4127 | ||
1bd55598 RD |
4128 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4129 | PyObject *resultobj = 0; | |
4130 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4131 | wxBitmap result; | |
4132 | void *argp1 = 0 ; | |
4133 | int res1 = 0 ; | |
4134 | PyObject *swig_obj[1] ; | |
4135 | ||
4136 | if (!args) SWIG_fail; | |
4137 | swig_obj[0] = args; | |
4138 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4139 | if (!SWIG_IsOK(res1)) { | |
4140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4141 | } | |
4142 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4143 | { | |
4144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4145 | result = (arg1)->GetBitmapSelected(); | |
4146 | wxPyEndAllowThreads(__tstate); | |
4147 | if (PyErr_Occurred()) SWIG_fail; | |
4148 | } | |
4149 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4150 | return resultobj; | |
4151 | fail: | |
4152 | return NULL; | |
d55e5bfc RD |
4153 | } |
4154 | ||
4155 | ||
1bd55598 RD |
4156 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4157 | PyObject *resultobj = 0; | |
4158 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4159 | wxBitmap result; | |
4160 | void *argp1 = 0 ; | |
4161 | int res1 = 0 ; | |
4162 | PyObject *swig_obj[1] ; | |
4163 | ||
4164 | if (!args) SWIG_fail; | |
4165 | swig_obj[0] = args; | |
4166 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4167 | if (!SWIG_IsOK(res1)) { | |
4168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4169 | } | |
4170 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4171 | { | |
4172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4173 | result = (arg1)->GetBitmapHover(); | |
4174 | wxPyEndAllowThreads(__tstate); | |
4175 | if (PyErr_Occurred()) SWIG_fail; | |
4176 | } | |
4177 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4178 | return resultobj; | |
4179 | fail: | |
4180 | return NULL; | |
4181 | } | |
4182 | ||
4183 | ||
4184 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4185 | PyObject *resultobj = 0; | |
4186 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4187 | wxBitmap *arg2 = 0 ; | |
4188 | void *argp1 = 0 ; | |
4189 | int res1 = 0 ; | |
4190 | void *argp2 = 0 ; | |
4191 | int res2 = 0 ; | |
4192 | PyObject * obj0 = 0 ; | |
4193 | PyObject * obj1 = 0 ; | |
4194 | char * kwnames[] = { | |
4195 | (char *) "self",(char *) "bitmap", NULL | |
4196 | }; | |
4197 | ||
4198 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
4199 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4200 | if (!SWIG_IsOK(res1)) { | |
4201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4202 | } | |
4203 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4204 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4205 | if (!SWIG_IsOK(res2)) { | |
4206 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4207 | } | |
4208 | if (!argp2) { | |
4209 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4210 | } | |
4211 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4212 | { | |
4213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4214 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
4215 | wxPyEndAllowThreads(__tstate); | |
4216 | if (PyErr_Occurred()) SWIG_fail; | |
4217 | } | |
4218 | resultobj = SWIG_Py_Void(); | |
4219 | return resultobj; | |
4220 | fail: | |
4221 | return NULL; | |
4222 | } | |
4223 | ||
4224 | ||
4225 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4226 | PyObject *resultobj = 0; | |
4227 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4228 | wxBitmap *arg2 = 0 ; | |
4229 | void *argp1 = 0 ; | |
4230 | int res1 = 0 ; | |
4231 | void *argp2 = 0 ; | |
4232 | int res2 = 0 ; | |
4233 | PyObject * obj0 = 0 ; | |
4234 | PyObject * obj1 = 0 ; | |
4235 | char * kwnames[] = { | |
4236 | (char *) "self",(char *) "bitmap", NULL | |
4237 | }; | |
4238 | ||
4239 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail; | |
4240 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4241 | if (!SWIG_IsOK(res1)) { | |
4242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4243 | } | |
4244 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4245 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4246 | if (!SWIG_IsOK(res2)) { | |
4247 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4248 | } | |
4249 | if (!argp2) { | |
4250 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4251 | } | |
4252 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4253 | { | |
4254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4255 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
4256 | wxPyEndAllowThreads(__tstate); | |
4257 | if (PyErr_Occurred()) SWIG_fail; | |
4258 | } | |
4259 | resultobj = SWIG_Py_Void(); | |
4260 | return resultobj; | |
4261 | fail: | |
4262 | return NULL; | |
4263 | } | |
4264 | ||
4265 | ||
4266 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4267 | PyObject *resultobj = 0; | |
4268 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4269 | wxBitmap *arg2 = 0 ; | |
4270 | void *argp1 = 0 ; | |
4271 | int res1 = 0 ; | |
4272 | void *argp2 = 0 ; | |
4273 | int res2 = 0 ; | |
4274 | PyObject * obj0 = 0 ; | |
4275 | PyObject * obj1 = 0 ; | |
4276 | char * kwnames[] = { | |
4277 | (char *) "self",(char *) "bitmap", NULL | |
4278 | }; | |
4279 | ||
4280 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
4281 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4282 | if (!SWIG_IsOK(res1)) { | |
4283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4284 | } | |
4285 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4286 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4287 | if (!SWIG_IsOK(res2)) { | |
4288 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4289 | } | |
4290 | if (!argp2) { | |
4291 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4292 | } | |
4293 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4294 | { | |
4295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4296 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
4297 | wxPyEndAllowThreads(__tstate); | |
4298 | if (PyErr_Occurred()) SWIG_fail; | |
4299 | } | |
4300 | resultobj = SWIG_Py_Void(); | |
4301 | return resultobj; | |
4302 | fail: | |
4303 | return NULL; | |
4304 | } | |
4305 | ||
4306 | ||
4307 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4308 | PyObject *resultobj = 0; | |
4309 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4310 | wxBitmap *arg2 = 0 ; | |
4311 | void *argp1 = 0 ; | |
4312 | int res1 = 0 ; | |
4313 | void *argp2 = 0 ; | |
4314 | int res2 = 0 ; | |
4315 | PyObject * obj0 = 0 ; | |
4316 | PyObject * obj1 = 0 ; | |
4317 | char * kwnames[] = { | |
4318 | (char *) "self",(char *) "bitmap", NULL | |
4319 | }; | |
4320 | ||
4321 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
4322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4323 | if (!SWIG_IsOK(res1)) { | |
4324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4325 | } | |
4326 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4327 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4328 | if (!SWIG_IsOK(res2)) { | |
4329 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4330 | } | |
4331 | if (!argp2) { | |
4332 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4333 | } | |
4334 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4335 | { | |
4336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4337 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
4338 | wxPyEndAllowThreads(__tstate); | |
4339 | if (PyErr_Occurred()) SWIG_fail; | |
4340 | } | |
4341 | resultobj = SWIG_Py_Void(); | |
4342 | return resultobj; | |
4343 | fail: | |
4344 | return NULL; | |
4345 | } | |
4346 | ||
4347 | ||
4348 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4349 | PyObject *resultobj = 0; | |
4350 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4351 | wxBitmap *arg2 = 0 ; | |
4352 | void *argp1 = 0 ; | |
4353 | int res1 = 0 ; | |
4354 | void *argp2 = 0 ; | |
4355 | int res2 = 0 ; | |
4356 | PyObject * obj0 = 0 ; | |
4357 | PyObject * obj1 = 0 ; | |
4358 | char * kwnames[] = { | |
4359 | (char *) "self",(char *) "hover", NULL | |
4360 | }; | |
4361 | ||
4362 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail; | |
4363 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4364 | if (!SWIG_IsOK(res1)) { | |
4365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4366 | } | |
4367 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4368 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4369 | if (!SWIG_IsOK(res2)) { | |
4370 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4371 | } | |
4372 | if (!argp2) { | |
4373 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4374 | } | |
4375 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4376 | { | |
4377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4378 | (arg1)->SetBitmapHover((wxBitmap const &)*arg2); | |
4379 | wxPyEndAllowThreads(__tstate); | |
4380 | if (PyErr_Occurred()) SWIG_fail; | |
4381 | } | |
4382 | resultobj = SWIG_Py_Void(); | |
4383 | return resultobj; | |
4384 | fail: | |
4385 | return NULL; | |
4386 | } | |
4387 | ||
4388 | ||
4389 | SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4390 | PyObject *resultobj = 0; | |
4391 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4392 | int arg2 ; | |
4393 | int arg3 ; | |
4394 | void *argp1 = 0 ; | |
4395 | int res1 = 0 ; | |
4396 | int val2 ; | |
4397 | int ecode2 = 0 ; | |
4398 | int val3 ; | |
4399 | int ecode3 = 0 ; | |
4400 | PyObject * obj0 = 0 ; | |
4401 | PyObject * obj1 = 0 ; | |
4402 | PyObject * obj2 = 0 ; | |
4403 | char * kwnames[] = { | |
4404 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4405 | }; | |
4406 | ||
4407 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4408 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4409 | if (!SWIG_IsOK(res1)) { | |
4410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4411 | } | |
4412 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4413 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4414 | if (!SWIG_IsOK(ecode2)) { | |
4415 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'"); | |
4416 | } | |
4417 | arg2 = static_cast< int >(val2); | |
4418 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4419 | if (!SWIG_IsOK(ecode3)) { | |
4420 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'"); | |
4421 | } | |
4422 | arg3 = static_cast< int >(val3); | |
4423 | { | |
4424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4425 | (arg1)->SetMargins(arg2,arg3); | |
4426 | wxPyEndAllowThreads(__tstate); | |
4427 | if (PyErr_Occurred()) SWIG_fail; | |
4428 | } | |
4429 | resultobj = SWIG_Py_Void(); | |
4430 | return resultobj; | |
4431 | fail: | |
4432 | return NULL; | |
d55e5bfc RD |
4433 | } |
4434 | ||
4435 | ||
1bd55598 RD |
4436 | SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4437 | PyObject *resultobj = 0; | |
4438 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4439 | int result; | |
4440 | void *argp1 = 0 ; | |
4441 | int res1 = 0 ; | |
4442 | PyObject *swig_obj[1] ; | |
4443 | ||
4444 | if (!args) SWIG_fail; | |
4445 | swig_obj[0] = args; | |
4446 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4447 | if (!SWIG_IsOK(res1)) { | |
4448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'"); | |
4449 | } | |
4450 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4451 | { | |
4452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4453 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
4454 | wxPyEndAllowThreads(__tstate); | |
4455 | if (PyErr_Occurred()) SWIG_fail; | |
4456 | } | |
4457 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4458 | return resultobj; | |
4459 | fail: | |
4460 | return NULL; | |
d55e5bfc RD |
4461 | } |
4462 | ||
4463 | ||
1bd55598 RD |
4464 | SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4465 | PyObject *resultobj = 0; | |
4466 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4467 | int result; | |
4468 | void *argp1 = 0 ; | |
4469 | int res1 = 0 ; | |
4470 | PyObject *swig_obj[1] ; | |
4471 | ||
4472 | if (!args) SWIG_fail; | |
4473 | swig_obj[0] = args; | |
4474 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4475 | if (!SWIG_IsOK(res1)) { | |
4476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'"); | |
4477 | } | |
4478 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4479 | { | |
4480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4481 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
4482 | wxPyEndAllowThreads(__tstate); | |
4483 | if (PyErr_Occurred()) SWIG_fail; | |
4484 | } | |
4485 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4486 | return resultobj; | |
4487 | fail: | |
4488 | return NULL; | |
b1fcee84 RD |
4489 | } |
4490 | ||
4491 | ||
1bd55598 RD |
4492 | SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4493 | PyObject *obj; | |
4494 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4495 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj)); | |
4496 | return SWIG_Py_Void(); | |
d55e5bfc RD |
4497 | } |
4498 | ||
1bd55598 RD |
4499 | SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4500 | return SWIG_Python_InitShadowInstance(args); | |
4501 | } | |
d55e5bfc | 4502 | |
1bd55598 RD |
4503 | SWIGINTERN int CheckBoxNameStr_set(PyObject *) { |
4504 | SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only."); | |
4505 | return 1; | |
d55e5bfc RD |
4506 | } |
4507 | ||
4508 | ||
1bd55598 RD |
4509 | SWIGINTERN PyObject *CheckBoxNameStr_get(void) { |
4510 | PyObject *pyobj = 0; | |
4511 | ||
4512 | { | |
4513 | #if wxUSE_UNICODE | |
4514 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
4515 | #else | |
4516 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
4517 | #endif | |
4518 | } | |
4519 | return pyobj; | |
4520 | } | |
4521 | ||
4522 | ||
4523 | SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4524 | PyObject *resultobj = 0; | |
4525 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4526 | int arg2 = (int) -1 ; | |
4527 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4528 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4529 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4530 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4531 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4532 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4533 | long arg6 = (long) 0 ; | |
4534 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
4535 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
4536 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
4537 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4538 | wxCheckBox *result = 0 ; | |
4539 | void *argp1 = 0 ; | |
4540 | int res1 = 0 ; | |
4541 | int val2 ; | |
4542 | int ecode2 = 0 ; | |
4543 | bool temp3 = false ; | |
4544 | wxPoint temp4 ; | |
4545 | wxSize temp5 ; | |
4546 | long val6 ; | |
4547 | int ecode6 = 0 ; | |
4548 | void *argp7 = 0 ; | |
4549 | int res7 = 0 ; | |
4550 | bool temp8 = false ; | |
4551 | PyObject * obj0 = 0 ; | |
4552 | PyObject * obj1 = 0 ; | |
4553 | PyObject * obj2 = 0 ; | |
4554 | PyObject * obj3 = 0 ; | |
4555 | PyObject * obj4 = 0 ; | |
4556 | PyObject * obj5 = 0 ; | |
4557 | PyObject * obj6 = 0 ; | |
4558 | PyObject * obj7 = 0 ; | |
4559 | char * kwnames[] = { | |
4560 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4561 | }; | |
4562 | ||
4563 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
4564 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4565 | if (!SWIG_IsOK(res1)) { | |
4566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
4567 | } | |
4568 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
4569 | if (obj1) { | |
4570 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4571 | if (!SWIG_IsOK(ecode2)) { | |
4572 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'"); | |
4573 | } | |
4574 | arg2 = static_cast< int >(val2); | |
4575 | } | |
4576 | if (obj2) { | |
d55e5bfc | 4577 | { |
1bd55598 RD |
4578 | arg3 = wxString_in_helper(obj2); |
4579 | if (arg3 == NULL) SWIG_fail; | |
4580 | temp3 = true; | |
d55e5bfc | 4581 | } |
1bd55598 RD |
4582 | } |
4583 | if (obj3) { | |
4584 | { | |
4585 | arg4 = &temp4; | |
4586 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 4587 | } |
1bd55598 RD |
4588 | } |
4589 | if (obj4) { | |
d55e5bfc | 4590 | { |
1bd55598 RD |
4591 | arg5 = &temp5; |
4592 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 4593 | } |
1bd55598 RD |
4594 | } |
4595 | if (obj5) { | |
4596 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
4597 | if (!SWIG_IsOK(ecode6)) { | |
4598 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'"); | |
4599 | } | |
4600 | arg6 = static_cast< long >(val6); | |
4601 | } | |
4602 | if (obj6) { | |
4603 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
4604 | if (!SWIG_IsOK(res7)) { | |
4605 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
b1fcee84 | 4606 | } |
1bd55598 RD |
4607 | if (!argp7) { |
4608 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
4609 | } | |
4610 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
4611 | } | |
4612 | if (obj7) { | |
b1fcee84 | 4613 | { |
1bd55598 RD |
4614 | arg8 = wxString_in_helper(obj7); |
4615 | if (arg8 == NULL) SWIG_fail; | |
4616 | temp8 = true; | |
b1fcee84 | 4617 | } |
1bd55598 RD |
4618 | } |
4619 | { | |
4620 | if (!wxPyCheckForApp()) SWIG_fail; | |
4621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4622 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
4623 | wxPyEndAllowThreads(__tstate); | |
4624 | if (PyErr_Occurred()) SWIG_fail; | |
4625 | } | |
4626 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 ); | |
4627 | { | |
4628 | if (temp3) | |
4629 | delete arg3; | |
4630 | } | |
4631 | { | |
4632 | if (temp8) | |
4633 | delete arg8; | |
4634 | } | |
4635 | return resultobj; | |
4636 | fail: | |
4637 | { | |
4638 | if (temp3) | |
4639 | delete arg3; | |
4640 | } | |
4641 | { | |
4642 | if (temp8) | |
4643 | delete arg8; | |
4644 | } | |
4645 | return NULL; | |
b1fcee84 RD |
4646 | } |
4647 | ||
4648 | ||
1bd55598 RD |
4649 | SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4650 | PyObject *resultobj = 0; | |
4651 | wxCheckBox *result = 0 ; | |
4652 | ||
4653 | if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail; | |
4654 | { | |
4655 | if (!wxPyCheckForApp()) SWIG_fail; | |
4656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4657 | result = (wxCheckBox *)new wxCheckBox(); | |
4658 | wxPyEndAllowThreads(__tstate); | |
4659 | if (PyErr_Occurred()) SWIG_fail; | |
4660 | } | |
4661 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 ); | |
4662 | return resultobj; | |
4663 | fail: | |
4664 | return NULL; | |
4665 | } | |
4666 | ||
4667 | ||
4668 | SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4669 | PyObject *resultobj = 0; | |
4670 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4671 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4672 | int arg3 = (int) -1 ; | |
4673 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4674 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4675 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4676 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4677 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4678 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4679 | long arg7 = (long) 0 ; | |
4680 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4681 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4682 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
4683 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4684 | bool result; | |
4685 | void *argp1 = 0 ; | |
4686 | int res1 = 0 ; | |
4687 | void *argp2 = 0 ; | |
4688 | int res2 = 0 ; | |
4689 | int val3 ; | |
4690 | int ecode3 = 0 ; | |
4691 | bool temp4 = false ; | |
4692 | wxPoint temp5 ; | |
4693 | wxSize temp6 ; | |
4694 | long val7 ; | |
4695 | int ecode7 = 0 ; | |
4696 | void *argp8 = 0 ; | |
4697 | int res8 = 0 ; | |
4698 | bool temp9 = false ; | |
4699 | PyObject * obj0 = 0 ; | |
4700 | PyObject * obj1 = 0 ; | |
4701 | PyObject * obj2 = 0 ; | |
4702 | PyObject * obj3 = 0 ; | |
4703 | PyObject * obj4 = 0 ; | |
4704 | PyObject * obj5 = 0 ; | |
4705 | PyObject * obj6 = 0 ; | |
4706 | PyObject * obj7 = 0 ; | |
4707 | PyObject * obj8 = 0 ; | |
4708 | char * kwnames[] = { | |
4709 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4710 | }; | |
4711 | ||
4712 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
4713 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4714 | if (!SWIG_IsOK(res1)) { | |
4715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4716 | } | |
4717 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4718 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4719 | if (!SWIG_IsOK(res2)) { | |
4720 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4721 | } | |
4722 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4723 | if (obj2) { | |
4724 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4725 | if (!SWIG_IsOK(ecode3)) { | |
4726 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
4727 | } | |
4728 | arg3 = static_cast< int >(val3); | |
4729 | } | |
4730 | if (obj3) { | |
36ed4f51 | 4731 | { |
1bd55598 RD |
4732 | arg4 = wxString_in_helper(obj3); |
4733 | if (arg4 == NULL) SWIG_fail; | |
4734 | temp4 = true; | |
36ed4f51 | 4735 | } |
1bd55598 RD |
4736 | } |
4737 | if (obj4) { | |
36ed4f51 | 4738 | { |
1bd55598 RD |
4739 | arg5 = &temp5; |
4740 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 4741 | } |
1bd55598 RD |
4742 | } |
4743 | if (obj5) { | |
d55e5bfc | 4744 | { |
1bd55598 RD |
4745 | arg6 = &temp6; |
4746 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 4747 | } |
1bd55598 RD |
4748 | } |
4749 | if (obj6) { | |
4750 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
4751 | if (!SWIG_IsOK(ecode7)) { | |
4752 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
4753 | } | |
4754 | arg7 = static_cast< long >(val7); | |
4755 | } | |
4756 | if (obj7) { | |
4757 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
4758 | if (!SWIG_IsOK(res8)) { | |
4759 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 4760 | } |
1bd55598 RD |
4761 | if (!argp8) { |
4762 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
4763 | } | |
4764 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
4765 | } | |
4766 | if (obj8) { | |
36ed4f51 | 4767 | { |
1bd55598 RD |
4768 | arg9 = wxString_in_helper(obj8); |
4769 | if (arg9 == NULL) SWIG_fail; | |
4770 | temp9 = true; | |
36ed4f51 | 4771 | } |
1bd55598 RD |
4772 | } |
4773 | { | |
4774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4775 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4776 | wxPyEndAllowThreads(__tstate); | |
4777 | if (PyErr_Occurred()) SWIG_fail; | |
4778 | } | |
4779 | { | |
4780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4781 | } | |
4782 | { | |
4783 | if (temp4) | |
4784 | delete arg4; | |
4785 | } | |
4786 | { | |
4787 | if (temp9) | |
4788 | delete arg9; | |
4789 | } | |
4790 | return resultobj; | |
4791 | fail: | |
4792 | { | |
4793 | if (temp4) | |
4794 | delete arg4; | |
4795 | } | |
4796 | { | |
4797 | if (temp9) | |
4798 | delete arg9; | |
4799 | } | |
4800 | return NULL; | |
d55e5bfc RD |
4801 | } |
4802 | ||
4803 | ||
1bd55598 RD |
4804 | SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4805 | PyObject *resultobj = 0; | |
4806 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4807 | bool result; | |
4808 | void *argp1 = 0 ; | |
4809 | int res1 = 0 ; | |
4810 | PyObject *swig_obj[1] ; | |
4811 | ||
4812 | if (!args) SWIG_fail; | |
4813 | swig_obj[0] = args; | |
4814 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4815 | if (!SWIG_IsOK(res1)) { | |
4816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4817 | } | |
4818 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4819 | { | |
4820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4821 | result = (bool)(arg1)->GetValue(); | |
4822 | wxPyEndAllowThreads(__tstate); | |
4823 | if (PyErr_Occurred()) SWIG_fail; | |
4824 | } | |
4825 | { | |
4826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4827 | } | |
4828 | return resultobj; | |
4829 | fail: | |
4830 | return NULL; | |
d55e5bfc RD |
4831 | } |
4832 | ||
4833 | ||
1bd55598 RD |
4834 | SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4835 | PyObject *resultobj = 0; | |
4836 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4837 | bool result; | |
4838 | void *argp1 = 0 ; | |
4839 | int res1 = 0 ; | |
4840 | PyObject *swig_obj[1] ; | |
4841 | ||
4842 | if (!args) SWIG_fail; | |
4843 | swig_obj[0] = args; | |
4844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4845 | if (!SWIG_IsOK(res1)) { | |
4846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4847 | } | |
4848 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4849 | { | |
4850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4851 | result = (bool)(arg1)->IsChecked(); | |
4852 | wxPyEndAllowThreads(__tstate); | |
4853 | if (PyErr_Occurred()) SWIG_fail; | |
4854 | } | |
4855 | { | |
4856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4857 | } | |
4858 | return resultobj; | |
4859 | fail: | |
4860 | return NULL; | |
4861 | } | |
4862 | ||
4863 | ||
4864 | SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4865 | PyObject *resultobj = 0; | |
4866 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4867 | bool arg2 ; | |
4868 | void *argp1 = 0 ; | |
4869 | int res1 = 0 ; | |
4870 | bool val2 ; | |
4871 | int ecode2 = 0 ; | |
4872 | PyObject * obj0 = 0 ; | |
4873 | PyObject * obj1 = 0 ; | |
4874 | char * kwnames[] = { | |
4875 | (char *) "self",(char *) "state", NULL | |
4876 | }; | |
4877 | ||
4878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
4879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4880 | if (!SWIG_IsOK(res1)) { | |
4881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4882 | } | |
4883 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4884 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4885 | if (!SWIG_IsOK(ecode2)) { | |
4886 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
4887 | } | |
4888 | arg2 = static_cast< bool >(val2); | |
4889 | { | |
4890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4891 | (arg1)->SetValue(arg2); | |
4892 | wxPyEndAllowThreads(__tstate); | |
4893 | if (PyErr_Occurred()) SWIG_fail; | |
4894 | } | |
4895 | resultobj = SWIG_Py_Void(); | |
4896 | return resultobj; | |
4897 | fail: | |
4898 | return NULL; | |
d55e5bfc | 4899 | } |
1bd55598 RD |
4900 | |
4901 | ||
4902 | SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4903 | PyObject *resultobj = 0; | |
4904 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4905 | wxCheckBoxState result; | |
4906 | void *argp1 = 0 ; | |
4907 | int res1 = 0 ; | |
4908 | PyObject *swig_obj[1] ; | |
4909 | ||
4910 | if (!args) SWIG_fail; | |
4911 | swig_obj[0] = args; | |
4912 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4913 | if (!SWIG_IsOK(res1)) { | |
4914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
4915 | } | |
4916 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4917 | { | |
4918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4919 | result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue(); | |
4920 | wxPyEndAllowThreads(__tstate); | |
4921 | if (PyErr_Occurred()) SWIG_fail; | |
4922 | } | |
4923 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4924 | return resultobj; | |
4925 | fail: | |
4926 | return NULL; | |
4927 | } | |
4928 | ||
4929 | ||
4930 | SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4931 | PyObject *resultobj = 0; | |
4932 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4933 | wxCheckBoxState arg2 ; | |
4934 | void *argp1 = 0 ; | |
4935 | int res1 = 0 ; | |
4936 | int val2 ; | |
4937 | int ecode2 = 0 ; | |
4938 | PyObject * obj0 = 0 ; | |
4939 | PyObject * obj1 = 0 ; | |
4940 | char * kwnames[] = { | |
4941 | (char *) "self",(char *) "state", NULL | |
4942 | }; | |
4943 | ||
4944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
4945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4946 | if (!SWIG_IsOK(res1)) { | |
4947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4948 | } | |
4949 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4950 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4951 | if (!SWIG_IsOK(ecode2)) { | |
4952 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'"); | |
4953 | } | |
4954 | arg2 = static_cast< wxCheckBoxState >(val2); | |
4955 | { | |
4956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4957 | (arg1)->Set3StateValue(arg2); | |
4958 | wxPyEndAllowThreads(__tstate); | |
4959 | if (PyErr_Occurred()) SWIG_fail; | |
4960 | } | |
4961 | resultobj = SWIG_Py_Void(); | |
4962 | return resultobj; | |
4963 | fail: | |
4964 | return NULL; | |
d55e5bfc RD |
4965 | } |
4966 | ||
4967 | ||
1bd55598 RD |
4968 | SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4969 | PyObject *resultobj = 0; | |
4970 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4971 | bool result; | |
4972 | void *argp1 = 0 ; | |
4973 | int res1 = 0 ; | |
4974 | PyObject *swig_obj[1] ; | |
4975 | ||
4976 | if (!args) SWIG_fail; | |
4977 | swig_obj[0] = args; | |
4978 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4979 | if (!SWIG_IsOK(res1)) { | |
4980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
4981 | } | |
4982 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4983 | { | |
4984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4985 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
4986 | wxPyEndAllowThreads(__tstate); | |
4987 | if (PyErr_Occurred()) SWIG_fail; | |
4988 | } | |
4989 | { | |
4990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4991 | } | |
4992 | return resultobj; | |
4993 | fail: | |
4994 | return NULL; | |
d55e5bfc RD |
4995 | } |
4996 | ||
4997 | ||
1bd55598 RD |
4998 | SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4999 | PyObject *resultobj = 0; | |
5000 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
5001 | bool result; | |
5002 | void *argp1 = 0 ; | |
5003 | int res1 = 0 ; | |
5004 | PyObject *swig_obj[1] ; | |
5005 | ||
5006 | if (!args) SWIG_fail; | |
5007 | swig_obj[0] = args; | |
5008 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
5009 | if (!SWIG_IsOK(res1)) { | |
5010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
5011 | } | |
5012 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
5013 | { | |
5014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5015 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
5016 | wxPyEndAllowThreads(__tstate); | |
5017 | if (PyErr_Occurred()) SWIG_fail; | |
5018 | } | |
5019 | { | |
5020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5021 | } | |
5022 | return resultobj; | |
5023 | fail: | |
5024 | return NULL; | |
d55e5bfc RD |
5025 | } |
5026 | ||
5027 | ||
1bd55598 RD |
5028 | SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5029 | PyObject *resultobj = 0; | |
5030 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5031 | SwigValueWrapper<wxVisualAttributes > result; | |
5032 | int val1 ; | |
5033 | int ecode1 = 0 ; | |
5034 | PyObject * obj0 = 0 ; | |
5035 | char * kwnames[] = { | |
5036 | (char *) "variant", NULL | |
5037 | }; | |
5038 | ||
5039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5040 | if (obj0) { | |
5041 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5042 | if (!SWIG_IsOK(ecode1)) { | |
5043 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5044 | } | |
5045 | arg1 = static_cast< wxWindowVariant >(val1); | |
5046 | } | |
5047 | { | |
5048 | if (!wxPyCheckForApp()) SWIG_fail; | |
5049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5050 | result = wxCheckBox::GetClassDefaultAttributes(arg1); | |
5051 | wxPyEndAllowThreads(__tstate); | |
5052 | if (PyErr_Occurred()) SWIG_fail; | |
5053 | } | |
5054 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5055 | return resultobj; | |
5056 | fail: | |
5057 | return NULL; | |
d55e5bfc RD |
5058 | } |
5059 | ||
5060 | ||
1bd55598 RD |
5061 | SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5062 | PyObject *obj; | |
5063 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5064 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj)); | |
5065 | return SWIG_Py_Void(); | |
d55e5bfc RD |
5066 | } |
5067 | ||
1bd55598 RD |
5068 | SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5069 | return SWIG_Python_InitShadowInstance(args); | |
5070 | } | |
d55e5bfc | 5071 | |
1bd55598 RD |
5072 | SWIGINTERN int ChoiceNameStr_set(PyObject *) { |
5073 | SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only."); | |
5074 | return 1; | |
d55e5bfc RD |
5075 | } |
5076 | ||
5077 | ||
1bd55598 RD |
5078 | SWIGINTERN PyObject *ChoiceNameStr_get(void) { |
5079 | PyObject *pyobj = 0; | |
5080 | ||
5081 | { | |
5082 | #if wxUSE_UNICODE | |
5083 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
5084 | #else | |
5085 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
5086 | #endif | |
5087 | } | |
5088 | return pyobj; | |
5089 | } | |
5090 | ||
5091 | ||
5092 | SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5093 | PyObject *resultobj = 0; | |
5094 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5095 | int arg2 = (int) -1 ; | |
5096 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5097 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5098 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5099 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5100 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
5101 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5102 | long arg6 = (long) 0 ; | |
5103 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5104 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5105 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
5106 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5107 | wxChoice *result = 0 ; | |
5108 | void *argp1 = 0 ; | |
5109 | int res1 = 0 ; | |
5110 | int val2 ; | |
5111 | int ecode2 = 0 ; | |
5112 | wxPoint temp3 ; | |
5113 | wxSize temp4 ; | |
5114 | bool temp5 = false ; | |
5115 | long val6 ; | |
5116 | int ecode6 = 0 ; | |
5117 | void *argp7 = 0 ; | |
5118 | int res7 = 0 ; | |
5119 | bool temp8 = false ; | |
5120 | PyObject * obj0 = 0 ; | |
5121 | PyObject * obj1 = 0 ; | |
5122 | PyObject * obj2 = 0 ; | |
5123 | PyObject * obj3 = 0 ; | |
5124 | PyObject * obj4 = 0 ; | |
5125 | PyObject * obj5 = 0 ; | |
5126 | PyObject * obj6 = 0 ; | |
5127 | PyObject * obj7 = 0 ; | |
5128 | char * kwnames[] = { | |
5129 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5130 | }; | |
5131 | ||
5132 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
5133 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5134 | if (!SWIG_IsOK(res1)) { | |
5135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5136 | } | |
5137 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5138 | if (obj1) { | |
5139 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5140 | if (!SWIG_IsOK(ecode2)) { | |
5141 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'"); | |
5142 | } | |
5143 | arg2 = static_cast< int >(val2); | |
5144 | } | |
5145 | if (obj2) { | |
36ed4f51 | 5146 | { |
1bd55598 RD |
5147 | arg3 = &temp3; |
5148 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 5149 | } |
1bd55598 RD |
5150 | } |
5151 | if (obj3) { | |
d55e5bfc | 5152 | { |
1bd55598 RD |
5153 | arg4 = &temp4; |
5154 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 5155 | } |
1bd55598 RD |
5156 | } |
5157 | if (obj4) { | |
d55e5bfc | 5158 | { |
1bd55598 RD |
5159 | if (! PySequence_Check(obj4)) { |
5160 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5161 | SWIG_fail; | |
5162 | } | |
5163 | arg5 = new wxArrayString; | |
5164 | temp5 = true; | |
5165 | int i, len=PySequence_Length(obj4); | |
5166 | for (i=0; i<len; i++) { | |
5167 | PyObject* item = PySequence_GetItem(obj4, i); | |
5168 | wxString* s = wxString_in_helper(item); | |
5169 | if (PyErr_Occurred()) SWIG_fail; | |
5170 | arg5->Add(*s); | |
5171 | delete s; | |
5172 | Py_DECREF(item); | |
5173 | } | |
d55e5bfc | 5174 | } |
1bd55598 RD |
5175 | } |
5176 | if (obj5) { | |
5177 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
5178 | if (!SWIG_IsOK(ecode6)) { | |
5179 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'"); | |
5180 | } | |
5181 | arg6 = static_cast< long >(val6); | |
5182 | } | |
5183 | if (obj6) { | |
5184 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
5185 | if (!SWIG_IsOK(res7)) { | |
5186 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 5187 | } |
1bd55598 RD |
5188 | if (!argp7) { |
5189 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
5190 | } | |
5191 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
5192 | } | |
5193 | if (obj7) { | |
d55e5bfc | 5194 | { |
1bd55598 RD |
5195 | arg8 = wxString_in_helper(obj7); |
5196 | if (arg8 == NULL) SWIG_fail; | |
5197 | temp8 = true; | |
d55e5bfc | 5198 | } |
1bd55598 RD |
5199 | } |
5200 | { | |
5201 | if (!wxPyCheckForApp()) SWIG_fail; | |
5202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5203 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5204 | wxPyEndAllowThreads(__tstate); | |
5205 | if (PyErr_Occurred()) SWIG_fail; | |
5206 | } | |
5207 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 ); | |
5208 | { | |
5209 | if (temp5) delete arg5; | |
5210 | } | |
5211 | { | |
5212 | if (temp8) | |
5213 | delete arg8; | |
5214 | } | |
5215 | return resultobj; | |
5216 | fail: | |
5217 | { | |
5218 | if (temp5) delete arg5; | |
5219 | } | |
5220 | { | |
5221 | if (temp8) | |
5222 | delete arg8; | |
5223 | } | |
5224 | return NULL; | |
d55e5bfc RD |
5225 | } |
5226 | ||
5227 | ||
1bd55598 RD |
5228 | SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5229 | PyObject *resultobj = 0; | |
5230 | wxChoice *result = 0 ; | |
5231 | ||
5232 | if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail; | |
5233 | { | |
5234 | if (!wxPyCheckForApp()) SWIG_fail; | |
5235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5236 | result = (wxChoice *)new wxChoice(); | |
5237 | wxPyEndAllowThreads(__tstate); | |
5238 | if (PyErr_Occurred()) SWIG_fail; | |
5239 | } | |
5240 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 ); | |
5241 | return resultobj; | |
5242 | fail: | |
5243 | return NULL; | |
5244 | } | |
5245 | ||
5246 | ||
5247 | SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5248 | PyObject *resultobj = 0; | |
5249 | wxChoice *arg1 = (wxChoice *) 0 ; | |
5250 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5251 | int arg3 = (int) -1 ; | |
5252 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5253 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5254 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5255 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5256 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5257 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5258 | long arg7 = (long) 0 ; | |
5259 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5260 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5261 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
5262 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5263 | bool result; | |
5264 | void *argp1 = 0 ; | |
5265 | int res1 = 0 ; | |
5266 | void *argp2 = 0 ; | |
5267 | int res2 = 0 ; | |
5268 | int val3 ; | |
5269 | int ecode3 = 0 ; | |
5270 | wxPoint temp4 ; | |
5271 | wxSize temp5 ; | |
5272 | bool temp6 = false ; | |
5273 | long val7 ; | |
5274 | int ecode7 = 0 ; | |
5275 | void *argp8 = 0 ; | |
5276 | int res8 = 0 ; | |
5277 | bool temp9 = false ; | |
5278 | PyObject * obj0 = 0 ; | |
5279 | PyObject * obj1 = 0 ; | |
5280 | PyObject * obj2 = 0 ; | |
5281 | PyObject * obj3 = 0 ; | |
5282 | PyObject * obj4 = 0 ; | |
5283 | PyObject * obj5 = 0 ; | |
5284 | PyObject * obj6 = 0 ; | |
5285 | PyObject * obj7 = 0 ; | |
5286 | PyObject * obj8 = 0 ; | |
5287 | char * kwnames[] = { | |
5288 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5289 | }; | |
5290 | ||
5291 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
5292 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 ); | |
5293 | if (!SWIG_IsOK(res1)) { | |
5294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'"); | |
5295 | } | |
5296 | arg1 = reinterpret_cast< wxChoice * >(argp1); | |
5297 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5298 | if (!SWIG_IsOK(res2)) { | |
5299 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5300 | } | |
5301 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5302 | if (obj2) { | |
5303 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5304 | if (!SWIG_IsOK(ecode3)) { | |
5305 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'"); | |
5306 | } | |
5307 | arg3 = static_cast< int >(val3); | |
5308 | } | |
5309 | if (obj3) { | |
d55e5bfc | 5310 | { |
1bd55598 RD |
5311 | arg4 = &temp4; |
5312 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 5313 | } |
1bd55598 RD |
5314 | } |
5315 | if (obj4) { | |
d55e5bfc | 5316 | { |
1bd55598 RD |
5317 | arg5 = &temp5; |
5318 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 5319 | } |
1bd55598 RD |
5320 | } |
5321 | if (obj5) { | |
d55e5bfc | 5322 | { |
1bd55598 RD |
5323 | if (! PySequence_Check(obj5)) { |
5324 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5325 | SWIG_fail; | |
5326 | } | |
5327 | arg6 = new wxArrayString; | |
5328 | temp6 = true; | |
5329 | int i, len=PySequence_Length(obj5); | |
5330 | for (i=0; i<len; i++) { | |
5331 | PyObject* item = PySequence_GetItem(obj5, i); | |
5332 | wxString* s = wxString_in_helper(item); | |
5333 | if (PyErr_Occurred()) SWIG_fail; | |
5334 | arg6->Add(*s); | |
5335 | delete s; | |
5336 | Py_DECREF(item); | |
5337 | } | |
5338 | } | |
5339 | } | |
5340 | if (obj6) { | |
5341 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
5342 | if (!SWIG_IsOK(ecode7)) { | |
5343 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'"); | |
5344 | } | |
5345 | arg7 = static_cast< long >(val7); | |
5346 | } | |
5347 | if (obj7) { | |
5348 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
5349 | if (!SWIG_IsOK(res8)) { | |
5350 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 5351 | } |
1bd55598 RD |
5352 | if (!argp8) { |
5353 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5354 | } | |
5355 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
5356 | } | |
5357 | if (obj8) { | |
d55e5bfc | 5358 | { |
1bd55598 RD |
5359 | arg9 = wxString_in_helper(obj8); |
5360 | if (arg9 == NULL) SWIG_fail; | |
5361 | temp9 = true; | |
d55e5bfc | 5362 | } |
1bd55598 RD |
5363 | } |
5364 | { | |
5365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5366 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5367 | wxPyEndAllowThreads(__tstate); | |
5368 | if (PyErr_Occurred()) SWIG_fail; | |
5369 | } | |
5370 | { | |
5371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5372 | } | |
5373 | { | |
5374 | if (temp6) delete arg6; | |
5375 | } | |
5376 | { | |
5377 | if (temp9) | |
5378 | delete arg9; | |
5379 | } | |
5380 | return resultobj; | |
5381 | fail: | |
5382 | { | |
5383 | if (temp6) delete arg6; | |
5384 | } | |
5385 | { | |
5386 | if (temp9) | |
5387 | delete arg9; | |
5388 | } | |
5389 | return NULL; | |
d55e5bfc RD |
5390 | } |
5391 | ||
5392 | ||
1bd55598 RD |
5393 | SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5394 | PyObject *resultobj = 0; | |
5395 | wxChoice *arg1 = (wxChoice *) 0 ; | |
5396 | int result; | |
5397 | void *argp1 = 0 ; | |
5398 | int res1 = 0 ; | |
5399 | PyObject *swig_obj[1] ; | |
5400 | ||
5401 | if (!args) SWIG_fail; | |
5402 | swig_obj[0] = args; | |
5403 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 ); | |
5404 | if (!SWIG_IsOK(res1)) { | |
5405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'"); | |
5406 | } | |
5407 | arg1 = reinterpret_cast< wxChoice * >(argp1); | |
5408 | { | |
5409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5410 | result = (int)((wxChoice const *)arg1)->GetCurrentSelection(); | |
5411 | wxPyEndAllowThreads(__tstate); | |
5412 | if (PyErr_Occurred()) SWIG_fail; | |
5413 | } | |
5414 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5415 | return resultobj; | |
5416 | fail: | |
5417 | return NULL; | |
5418 | } | |
5419 | ||
5420 | ||
5421 | SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5422 | PyObject *resultobj = 0; | |
5423 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5424 | SwigValueWrapper<wxVisualAttributes > result; | |
5425 | int val1 ; | |
5426 | int ecode1 = 0 ; | |
5427 | PyObject * obj0 = 0 ; | |
5428 | char * kwnames[] = { | |
5429 | (char *) "variant", NULL | |
5430 | }; | |
5431 | ||
5432 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5433 | if (obj0) { | |
5434 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5435 | if (!SWIG_IsOK(ecode1)) { | |
5436 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5437 | } | |
5438 | arg1 = static_cast< wxWindowVariant >(val1); | |
5439 | } | |
5440 | { | |
5441 | if (!wxPyCheckForApp()) SWIG_fail; | |
5442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5443 | result = wxChoice::GetClassDefaultAttributes(arg1); | |
5444 | wxPyEndAllowThreads(__tstate); | |
5445 | if (PyErr_Occurred()) SWIG_fail; | |
5446 | } | |
5447 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5448 | return resultobj; | |
5449 | fail: | |
5450 | return NULL; | |
f20a2e1f RD |
5451 | } |
5452 | ||
5453 | ||
1bd55598 RD |
5454 | SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5455 | PyObject *obj; | |
5456 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5457 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj)); | |
5458 | return SWIG_Py_Void(); | |
d55e5bfc | 5459 | } |
1bd55598 RD |
5460 | |
5461 | SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5462 | return SWIG_Python_InitShadowInstance(args); | |
5463 | } | |
5464 | ||
5465 | SWIGINTERN int ComboBoxNameStr_set(PyObject *) { | |
5466 | SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only."); | |
5467 | return 1; | |
d55e5bfc RD |
5468 | } |
5469 | ||
5470 | ||
1bd55598 RD |
5471 | SWIGINTERN PyObject *ComboBoxNameStr_get(void) { |
5472 | PyObject *pyobj = 0; | |
5473 | ||
5474 | { | |
d55e5bfc | 5475 | #if wxUSE_UNICODE |
1bd55598 | 5476 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); |
d55e5bfc | 5477 | #else |
1bd55598 | 5478 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); |
d55e5bfc | 5479 | #endif |
1bd55598 RD |
5480 | } |
5481 | return pyobj; | |
5482 | } | |
5483 | ||
5484 | ||
5485 | SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5486 | PyObject *resultobj = 0; | |
5487 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5488 | int arg2 = (int) -1 ; | |
5489 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5490 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5491 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5492 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5493 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5494 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5495 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5496 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5497 | long arg7 = (long) 0 ; | |
5498 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5499 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5500 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
5501 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5502 | wxComboBox *result = 0 ; | |
5503 | void *argp1 = 0 ; | |
5504 | int res1 = 0 ; | |
5505 | int val2 ; | |
5506 | int ecode2 = 0 ; | |
5507 | bool temp3 = false ; | |
5508 | wxPoint temp4 ; | |
5509 | wxSize temp5 ; | |
5510 | bool temp6 = false ; | |
5511 | long val7 ; | |
5512 | int ecode7 = 0 ; | |
5513 | void *argp8 = 0 ; | |
5514 | int res8 = 0 ; | |
5515 | bool temp9 = false ; | |
5516 | PyObject * obj0 = 0 ; | |
5517 | PyObject * obj1 = 0 ; | |
5518 | PyObject * obj2 = 0 ; | |
5519 | PyObject * obj3 = 0 ; | |
5520 | PyObject * obj4 = 0 ; | |
5521 | PyObject * obj5 = 0 ; | |
5522 | PyObject * obj6 = 0 ; | |
5523 | PyObject * obj7 = 0 ; | |
5524 | PyObject * obj8 = 0 ; | |
5525 | char * kwnames[] = { | |
5526 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5527 | }; | |
5528 | ||
5529 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
5530 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5531 | if (!SWIG_IsOK(res1)) { | |
5532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5533 | } | |
5534 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5535 | if (obj1) { | |
5536 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5537 | if (!SWIG_IsOK(ecode2)) { | |
5538 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'"); | |
5539 | } | |
5540 | arg2 = static_cast< int >(val2); | |
5541 | } | |
5542 | if (obj2) { | |
d55e5bfc | 5543 | { |
1bd55598 RD |
5544 | arg3 = wxString_in_helper(obj2); |
5545 | if (arg3 == NULL) SWIG_fail; | |
5546 | temp3 = true; | |
d55e5bfc | 5547 | } |
1bd55598 RD |
5548 | } |
5549 | if (obj3) { | |
d55e5bfc | 5550 | { |
1bd55598 RD |
5551 | arg4 = &temp4; |
5552 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 5553 | } |
1bd55598 RD |
5554 | } |
5555 | if (obj4) { | |
d55e5bfc | 5556 | { |
1bd55598 RD |
5557 | arg5 = &temp5; |
5558 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 5559 | } |
1bd55598 RD |
5560 | } |
5561 | if (obj5) { | |
d55e5bfc | 5562 | { |
1bd55598 RD |
5563 | if (! PySequence_Check(obj5)) { |
5564 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5565 | SWIG_fail; | |
5566 | } | |
5567 | arg6 = new wxArrayString; | |
5568 | temp6 = true; | |
5569 | int i, len=PySequence_Length(obj5); | |
5570 | for (i=0; i<len; i++) { | |
5571 | PyObject* item = PySequence_GetItem(obj5, i); | |
5572 | wxString* s = wxString_in_helper(item); | |
5573 | if (PyErr_Occurred()) SWIG_fail; | |
5574 | arg6->Add(*s); | |
5575 | delete s; | |
5576 | Py_DECREF(item); | |
5577 | } | |
d55e5bfc | 5578 | } |
1bd55598 RD |
5579 | } |
5580 | if (obj6) { | |
5581 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
5582 | if (!SWIG_IsOK(ecode7)) { | |
5583 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'"); | |
5584 | } | |
5585 | arg7 = static_cast< long >(val7); | |
5586 | } | |
5587 | if (obj7) { | |
5588 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
5589 | if (!SWIG_IsOK(res8)) { | |
5590 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5591 | } | |
5592 | if (!argp8) { | |
5593 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5594 | } | |
5595 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
5596 | } | |
5597 | if (obj8) { | |
d55e5bfc | 5598 | { |
1bd55598 RD |
5599 | arg9 = wxString_in_helper(obj8); |
5600 | if (arg9 == NULL) SWIG_fail; | |
5601 | temp9 = true; | |
d55e5bfc | 5602 | } |
1bd55598 RD |
5603 | } |
5604 | { | |
5605 | if (!wxPyCheckForApp()) SWIG_fail; | |
5606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5607 | result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5608 | wxPyEndAllowThreads(__tstate); | |
5609 | if (PyErr_Occurred()) SWIG_fail; | |
5610 | } | |
5611 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 ); | |
5612 | { | |
5613 | if (temp3) | |
5614 | delete arg3; | |
5615 | } | |
5616 | { | |
5617 | if (temp6) delete arg6; | |
5618 | } | |
5619 | { | |
5620 | if (temp9) | |
5621 | delete arg9; | |
5622 | } | |
5623 | return resultobj; | |
5624 | fail: | |
5625 | { | |
5626 | if (temp3) | |
5627 | delete arg3; | |
5628 | } | |
5629 | { | |
5630 | if (temp6) delete arg6; | |
5631 | } | |
5632 | { | |
5633 | if (temp9) | |
5634 | delete arg9; | |
5635 | } | |
5636 | return NULL; | |
d55e5bfc RD |
5637 | } |
5638 | ||
5639 | ||
1bd55598 RD |
5640 | SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5641 | PyObject *resultobj = 0; | |
5642 | wxComboBox *result = 0 ; | |
5643 | ||
5644 | if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail; | |
5645 | { | |
5646 | if (!wxPyCheckForApp()) SWIG_fail; | |
5647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5648 | result = (wxComboBox *)new wxComboBox(); | |
5649 | wxPyEndAllowThreads(__tstate); | |
5650 | if (PyErr_Occurred()) SWIG_fail; | |
5651 | } | |
5652 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 ); | |
5653 | return resultobj; | |
5654 | fail: | |
5655 | return NULL; | |
5656 | } | |
5657 | ||
5658 | ||
5659 | SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5660 | PyObject *resultobj = 0; | |
5661 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5662 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5663 | int arg3 = (int) -1 ; | |
5664 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5665 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
5666 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
5667 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5668 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5669 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5670 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
5671 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
5672 | long arg8 = (long) 0 ; | |
5673 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
5674 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
5675 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
5676 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
5677 | bool result; | |
5678 | void *argp1 = 0 ; | |
5679 | int res1 = 0 ; | |
5680 | void *argp2 = 0 ; | |
5681 | int res2 = 0 ; | |
5682 | int val3 ; | |
5683 | int ecode3 = 0 ; | |
5684 | bool temp4 = false ; | |
5685 | wxPoint temp5 ; | |
5686 | wxSize temp6 ; | |
5687 | bool temp7 = false ; | |
5688 | long val8 ; | |
5689 | int ecode8 = 0 ; | |
5690 | void *argp9 = 0 ; | |
5691 | int res9 = 0 ; | |
5692 | bool temp10 = false ; | |
5693 | PyObject * obj0 = 0 ; | |
5694 | PyObject * obj1 = 0 ; | |
5695 | PyObject * obj2 = 0 ; | |
5696 | PyObject * obj3 = 0 ; | |
5697 | PyObject * obj4 = 0 ; | |
5698 | PyObject * obj5 = 0 ; | |
5699 | PyObject * obj6 = 0 ; | |
5700 | PyObject * obj7 = 0 ; | |
5701 | PyObject * obj8 = 0 ; | |
5702 | PyObject * obj9 = 0 ; | |
5703 | char * kwnames[] = { | |
5704 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5705 | }; | |
5706 | ||
5707 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
5708 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5709 | if (!SWIG_IsOK(res1)) { | |
5710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5711 | } | |
5712 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5713 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5714 | if (!SWIG_IsOK(res2)) { | |
5715 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5716 | } | |
5717 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5718 | if (obj2) { | |
5719 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5720 | if (!SWIG_IsOK(ecode3)) { | |
5721 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
5722 | } | |
5723 | arg3 = static_cast< int >(val3); | |
5724 | } | |
5725 | if (obj3) { | |
d55e5bfc | 5726 | { |
1bd55598 RD |
5727 | arg4 = wxString_in_helper(obj3); |
5728 | if (arg4 == NULL) SWIG_fail; | |
5729 | temp4 = true; | |
d55e5bfc | 5730 | } |
1bd55598 RD |
5731 | } |
5732 | if (obj4) { | |
d55e5bfc | 5733 | { |
1bd55598 RD |
5734 | arg5 = &temp5; |
5735 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 5736 | } |
1bd55598 RD |
5737 | } |
5738 | if (obj5) { | |
d55e5bfc | 5739 | { |
1bd55598 RD |
5740 | arg6 = &temp6; |
5741 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 5742 | } |
1bd55598 RD |
5743 | } |
5744 | if (obj6) { | |
d55e5bfc | 5745 | { |
1bd55598 RD |
5746 | if (! PySequence_Check(obj6)) { |
5747 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5748 | SWIG_fail; | |
5749 | } | |
5750 | arg7 = new wxArrayString; | |
5751 | temp7 = true; | |
5752 | int i, len=PySequence_Length(obj6); | |
5753 | for (i=0; i<len; i++) { | |
5754 | PyObject* item = PySequence_GetItem(obj6, i); | |
5755 | wxString* s = wxString_in_helper(item); | |
5756 | if (PyErr_Occurred()) SWIG_fail; | |
5757 | arg7->Add(*s); | |
5758 | delete s; | |
5759 | Py_DECREF(item); | |
5760 | } | |
d55e5bfc | 5761 | } |
1bd55598 RD |
5762 | } |
5763 | if (obj7) { | |
5764 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
5765 | if (!SWIG_IsOK(ecode8)) { | |
5766 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'"); | |
5767 | } | |
5768 | arg8 = static_cast< long >(val8); | |
5769 | } | |
5770 | if (obj8) { | |
5771 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
5772 | if (!SWIG_IsOK(res9)) { | |
5773 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 5774 | } |
1bd55598 RD |
5775 | if (!argp9) { |
5776 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 5777 | } |
1bd55598 RD |
5778 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
5779 | } | |
5780 | if (obj9) { | |
d55e5bfc | 5781 | { |
1bd55598 RD |
5782 | arg10 = wxString_in_helper(obj9); |
5783 | if (arg10 == NULL) SWIG_fail; | |
5784 | temp10 = true; | |
d55e5bfc | 5785 | } |
1bd55598 RD |
5786 | } |
5787 | { | |
5788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5789 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
5790 | wxPyEndAllowThreads(__tstate); | |
5791 | if (PyErr_Occurred()) SWIG_fail; | |
5792 | } | |
5793 | { | |
5794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5795 | } | |
5796 | { | |
5797 | if (temp4) | |
5798 | delete arg4; | |
5799 | } | |
5800 | { | |
5801 | if (temp7) delete arg7; | |
5802 | } | |
5803 | { | |
5804 | if (temp10) | |
5805 | delete arg10; | |
5806 | } | |
5807 | return resultobj; | |
5808 | fail: | |
5809 | { | |
5810 | if (temp4) | |
5811 | delete arg4; | |
5812 | } | |
5813 | { | |
5814 | if (temp7) delete arg7; | |
5815 | } | |
5816 | { | |
5817 | if (temp10) | |
5818 | delete arg10; | |
5819 | } | |
5820 | return NULL; | |
d55e5bfc RD |
5821 | } |
5822 | ||
5823 | ||
1bd55598 RD |
5824 | SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5825 | PyObject *resultobj = 0; | |
5826 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5827 | wxString result; | |
5828 | void *argp1 = 0 ; | |
5829 | int res1 = 0 ; | |
5830 | PyObject *swig_obj[1] ; | |
5831 | ||
5832 | if (!args) SWIG_fail; | |
5833 | swig_obj[0] = args; | |
5834 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5835 | if (!SWIG_IsOK(res1)) { | |
5836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
5837 | } | |
5838 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5839 | { | |
5840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5841 | result = ((wxComboBox const *)arg1)->GetValue(); | |
5842 | wxPyEndAllowThreads(__tstate); | |
5843 | if (PyErr_Occurred()) SWIG_fail; | |
5844 | } | |
5845 | { | |
d55e5bfc | 5846 | #if wxUSE_UNICODE |
1bd55598 | 5847 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 5848 | #else |
1bd55598 | 5849 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 5850 | #endif |
1bd55598 RD |
5851 | } |
5852 | return resultobj; | |
5853 | fail: | |
5854 | return NULL; | |
5855 | } | |
5856 | ||
5857 | ||
5858 | SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5859 | PyObject *resultobj = 0; | |
5860 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5861 | wxString *arg2 = 0 ; | |
5862 | void *argp1 = 0 ; | |
5863 | int res1 = 0 ; | |
5864 | bool temp2 = false ; | |
5865 | PyObject * obj0 = 0 ; | |
5866 | PyObject * obj1 = 0 ; | |
5867 | char * kwnames[] = { | |
5868 | (char *) "self",(char *) "value", NULL | |
5869 | }; | |
5870 | ||
5871 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
5872 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5873 | if (!SWIG_IsOK(res1)) { | |
5874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5875 | } | |
5876 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5877 | { | |
5878 | arg2 = wxString_in_helper(obj1); | |
5879 | if (arg2 == NULL) SWIG_fail; | |
5880 | temp2 = true; | |
5881 | } | |
5882 | { | |
5883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5884 | (arg1)->SetValue((wxString const &)*arg2); | |
5885 | wxPyEndAllowThreads(__tstate); | |
5886 | if (PyErr_Occurred()) SWIG_fail; | |
5887 | } | |
5888 | resultobj = SWIG_Py_Void(); | |
5889 | { | |
5890 | if (temp2) | |
5891 | delete arg2; | |
5892 | } | |
5893 | return resultobj; | |
5894 | fail: | |
5895 | { | |
5896 | if (temp2) | |
5897 | delete arg2; | |
5898 | } | |
5899 | return NULL; | |
d55e5bfc RD |
5900 | } |
5901 | ||
5902 | ||
1bd55598 RD |
5903 | SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5904 | PyObject *resultobj = 0; | |
5905 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5906 | void *argp1 = 0 ; | |
5907 | int res1 = 0 ; | |
5908 | PyObject *swig_obj[1] ; | |
5909 | ||
5910 | if (!args) SWIG_fail; | |
5911 | swig_obj[0] = args; | |
5912 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5913 | if (!SWIG_IsOK(res1)) { | |
5914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5915 | } | |
5916 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5917 | { | |
5918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5919 | (arg1)->Copy(); | |
5920 | wxPyEndAllowThreads(__tstate); | |
5921 | if (PyErr_Occurred()) SWIG_fail; | |
5922 | } | |
5923 | resultobj = SWIG_Py_Void(); | |
5924 | return resultobj; | |
5925 | fail: | |
5926 | return NULL; | |
d55e5bfc RD |
5927 | } |
5928 | ||
5929 | ||
1bd55598 RD |
5930 | SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5931 | PyObject *resultobj = 0; | |
5932 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5933 | void *argp1 = 0 ; | |
5934 | int res1 = 0 ; | |
5935 | PyObject *swig_obj[1] ; | |
5936 | ||
5937 | if (!args) SWIG_fail; | |
5938 | swig_obj[0] = args; | |
5939 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5940 | if (!SWIG_IsOK(res1)) { | |
5941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5942 | } | |
5943 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5944 | { | |
5945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5946 | (arg1)->Cut(); | |
5947 | wxPyEndAllowThreads(__tstate); | |
5948 | if (PyErr_Occurred()) SWIG_fail; | |
5949 | } | |
5950 | resultobj = SWIG_Py_Void(); | |
5951 | return resultobj; | |
5952 | fail: | |
5953 | return NULL; | |
d55e5bfc RD |
5954 | } |
5955 | ||
5956 | ||
1bd55598 RD |
5957 | SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5958 | PyObject *resultobj = 0; | |
5959 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5960 | void *argp1 = 0 ; | |
5961 | int res1 = 0 ; | |
5962 | PyObject *swig_obj[1] ; | |
5963 | ||
5964 | if (!args) SWIG_fail; | |
5965 | swig_obj[0] = args; | |
5966 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5967 | if (!SWIG_IsOK(res1)) { | |
5968 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5969 | } | |
5970 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5971 | { | |
5972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5973 | (arg1)->Paste(); | |
5974 | wxPyEndAllowThreads(__tstate); | |
5975 | if (PyErr_Occurred()) SWIG_fail; | |
5976 | } | |
5977 | resultobj = SWIG_Py_Void(); | |
5978 | return resultobj; | |
5979 | fail: | |
5980 | return NULL; | |
5981 | } | |
5982 | ||
5983 | ||
5984 | SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5985 | PyObject *resultobj = 0; | |
5986 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5987 | long arg2 ; | |
5988 | void *argp1 = 0 ; | |
5989 | int res1 = 0 ; | |
5990 | long val2 ; | |
5991 | int ecode2 = 0 ; | |
5992 | PyObject * obj0 = 0 ; | |
5993 | PyObject * obj1 = 0 ; | |
5994 | char * kwnames[] = { | |
5995 | (char *) "self",(char *) "pos", NULL | |
5996 | }; | |
5997 | ||
5998 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
5999 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6000 | if (!SWIG_IsOK(res1)) { | |
6001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6002 | } | |
6003 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6004 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6005 | if (!SWIG_IsOK(ecode2)) { | |
6006 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
6007 | } | |
6008 | arg2 = static_cast< long >(val2); | |
6009 | { | |
6010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6011 | (arg1)->SetInsertionPoint(arg2); | |
6012 | wxPyEndAllowThreads(__tstate); | |
6013 | if (PyErr_Occurred()) SWIG_fail; | |
6014 | } | |
6015 | resultobj = SWIG_Py_Void(); | |
6016 | return resultobj; | |
6017 | fail: | |
6018 | return NULL; | |
d55e5bfc RD |
6019 | } |
6020 | ||
6021 | ||
1bd55598 RD |
6022 | SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6023 | PyObject *resultobj = 0; | |
6024 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6025 | long result; | |
6026 | void *argp1 = 0 ; | |
6027 | int res1 = 0 ; | |
6028 | PyObject *swig_obj[1] ; | |
6029 | ||
6030 | if (!args) SWIG_fail; | |
6031 | swig_obj[0] = args; | |
6032 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6033 | if (!SWIG_IsOK(res1)) { | |
6034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6035 | } | |
6036 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6037 | { | |
6038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6039 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
6040 | wxPyEndAllowThreads(__tstate); | |
6041 | if (PyErr_Occurred()) SWIG_fail; | |
6042 | } | |
6043 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6044 | return resultobj; | |
6045 | fail: | |
6046 | return NULL; | |
d55e5bfc RD |
6047 | } |
6048 | ||
6049 | ||
1bd55598 RD |
6050 | SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6051 | PyObject *resultobj = 0; | |
6052 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6053 | long result; | |
6054 | void *argp1 = 0 ; | |
6055 | int res1 = 0 ; | |
6056 | PyObject *swig_obj[1] ; | |
6057 | ||
6058 | if (!args) SWIG_fail; | |
6059 | swig_obj[0] = args; | |
6060 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6061 | if (!SWIG_IsOK(res1)) { | |
6062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6063 | } | |
6064 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6065 | { | |
6066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6067 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
6068 | wxPyEndAllowThreads(__tstate); | |
6069 | if (PyErr_Occurred()) SWIG_fail; | |
6070 | } | |
6071 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6072 | return resultobj; | |
6073 | fail: | |
6074 | return NULL; | |
6075 | } | |
6076 | ||
6077 | ||
6078 | SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6079 | PyObject *resultobj = 0; | |
6080 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6081 | long arg2 ; | |
6082 | long arg3 ; | |
6083 | wxString *arg4 = 0 ; | |
6084 | void *argp1 = 0 ; | |
6085 | int res1 = 0 ; | |
6086 | long val2 ; | |
6087 | int ecode2 = 0 ; | |
6088 | long val3 ; | |
6089 | int ecode3 = 0 ; | |
6090 | bool temp4 = false ; | |
6091 | PyObject * obj0 = 0 ; | |
6092 | PyObject * obj1 = 0 ; | |
6093 | PyObject * obj2 = 0 ; | |
6094 | PyObject * obj3 = 0 ; | |
6095 | char * kwnames[] = { | |
2131d850 | 6096 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL |
1bd55598 RD |
6097 | }; |
6098 | ||
6099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6100 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6101 | if (!SWIG_IsOK(res1)) { | |
6102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6103 | } | |
6104 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6105 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6106 | if (!SWIG_IsOK(ecode2)) { | |
6107 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'"); | |
6108 | } | |
6109 | arg2 = static_cast< long >(val2); | |
6110 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6111 | if (!SWIG_IsOK(ecode3)) { | |
6112 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'"); | |
6113 | } | |
6114 | arg3 = static_cast< long >(val3); | |
6115 | { | |
6116 | arg4 = wxString_in_helper(obj3); | |
6117 | if (arg4 == NULL) SWIG_fail; | |
6118 | temp4 = true; | |
6119 | } | |
6120 | { | |
6121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6122 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
6123 | wxPyEndAllowThreads(__tstate); | |
6124 | if (PyErr_Occurred()) SWIG_fail; | |
6125 | } | |
6126 | resultobj = SWIG_Py_Void(); | |
6127 | { | |
6128 | if (temp4) | |
6129 | delete arg4; | |
6130 | } | |
6131 | return resultobj; | |
6132 | fail: | |
6133 | { | |
6134 | if (temp4) | |
6135 | delete arg4; | |
6136 | } | |
6137 | return NULL; | |
6138 | } | |
6139 | ||
6140 | ||
6141 | SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6142 | PyObject *resultobj = 0; | |
6143 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6144 | long arg2 ; | |
6145 | long arg3 ; | |
6146 | void *argp1 = 0 ; | |
6147 | int res1 = 0 ; | |
6148 | long val2 ; | |
6149 | int ecode2 = 0 ; | |
6150 | long val3 ; | |
6151 | int ecode3 = 0 ; | |
6152 | PyObject * obj0 = 0 ; | |
6153 | PyObject * obj1 = 0 ; | |
6154 | PyObject * obj2 = 0 ; | |
6155 | char * kwnames[] = { | |
2131d850 | 6156 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
6157 | }; |
6158 | ||
6159 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6160 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6161 | if (!SWIG_IsOK(res1)) { | |
6162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6163 | } | |
6164 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6165 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6166 | if (!SWIG_IsOK(ecode2)) { | |
6167 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'"); | |
6168 | } | |
6169 | arg2 = static_cast< long >(val2); | |
6170 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6171 | if (!SWIG_IsOK(ecode3)) { | |
6172 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'"); | |
6173 | } | |
6174 | arg3 = static_cast< long >(val3); | |
6175 | { | |
6176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6177 | (arg1)->SetSelection(arg2,arg3); | |
6178 | wxPyEndAllowThreads(__tstate); | |
6179 | if (PyErr_Occurred()) SWIG_fail; | |
6180 | } | |
6181 | resultobj = SWIG_Py_Void(); | |
6182 | return resultobj; | |
6183 | fail: | |
6184 | return NULL; | |
d55e5bfc RD |
6185 | } |
6186 | ||
6187 | ||
1bd55598 RD |
6188 | SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6189 | PyObject *resultobj = 0; | |
6190 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6191 | int result; | |
6192 | void *argp1 = 0 ; | |
6193 | int res1 = 0 ; | |
6194 | PyObject *swig_obj[1] ; | |
6195 | ||
6196 | if (!args) SWIG_fail; | |
6197 | swig_obj[0] = args; | |
6198 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6199 | if (!SWIG_IsOK(res1)) { | |
6200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6201 | } | |
6202 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6203 | { | |
6204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6205 | result = (int)((wxComboBox const *)arg1)->GetCurrentSelection(); | |
6206 | wxPyEndAllowThreads(__tstate); | |
6207 | if (PyErr_Occurred()) SWIG_fail; | |
6208 | } | |
6209 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6210 | return resultobj; | |
6211 | fail: | |
6212 | return NULL; | |
6213 | } | |
6214 | ||
6215 | ||
6216 | SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6217 | PyObject *resultobj = 0; | |
6218 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6219 | wxString *arg2 = 0 ; | |
6220 | bool result; | |
6221 | void *argp1 = 0 ; | |
6222 | int res1 = 0 ; | |
6223 | bool temp2 = false ; | |
6224 | PyObject * obj0 = 0 ; | |
6225 | PyObject * obj1 = 0 ; | |
6226 | char * kwnames[] = { | |
6227 | (char *) "self",(char *) "string", NULL | |
6228 | }; | |
6229 | ||
6230 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
6231 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6232 | if (!SWIG_IsOK(res1)) { | |
6233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6234 | } | |
6235 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6236 | { | |
6237 | arg2 = wxString_in_helper(obj1); | |
6238 | if (arg2 == NULL) SWIG_fail; | |
6239 | temp2 = true; | |
6240 | } | |
6241 | { | |
6242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6243 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
6244 | wxPyEndAllowThreads(__tstate); | |
6245 | if (PyErr_Occurred()) SWIG_fail; | |
6246 | } | |
6247 | { | |
6248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6249 | } | |
6250 | { | |
6251 | if (temp2) | |
6252 | delete arg2; | |
6253 | } | |
6254 | return resultobj; | |
6255 | fail: | |
6256 | { | |
6257 | if (temp2) | |
6258 | delete arg2; | |
6259 | } | |
6260 | return NULL; | |
6261 | } | |
6262 | ||
6263 | ||
50f151d7 RD |
6264 | SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6265 | PyObject *resultobj = 0; | |
6266 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6267 | int arg2 ; | |
6268 | wxString *arg3 = 0 ; | |
6269 | void *argp1 = 0 ; | |
6270 | int res1 = 0 ; | |
6271 | int val2 ; | |
6272 | int ecode2 = 0 ; | |
6273 | bool temp3 = false ; | |
6274 | PyObject * obj0 = 0 ; | |
6275 | PyObject * obj1 = 0 ; | |
6276 | PyObject * obj2 = 0 ; | |
6277 | char * kwnames[] = { | |
6278 | (char *) "self",(char *) "n",(char *) "string", NULL | |
6279 | }; | |
6280 | ||
6281 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6282 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6283 | if (!SWIG_IsOK(res1)) { | |
6284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6285 | } | |
6286 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6287 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6288 | if (!SWIG_IsOK(ecode2)) { | |
6289 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'"); | |
6290 | } | |
6291 | arg2 = static_cast< int >(val2); | |
6292 | { | |
6293 | arg3 = wxString_in_helper(obj2); | |
6294 | if (arg3 == NULL) SWIG_fail; | |
6295 | temp3 = true; | |
6296 | } | |
6297 | { | |
6298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6299 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
6300 | wxPyEndAllowThreads(__tstate); | |
6301 | if (PyErr_Occurred()) SWIG_fail; | |
6302 | } | |
6303 | resultobj = SWIG_Py_Void(); | |
6304 | { | |
6305 | if (temp3) | |
6306 | delete arg3; | |
6307 | } | |
6308 | return resultobj; | |
6309 | fail: | |
6310 | { | |
6311 | if (temp3) | |
6312 | delete arg3; | |
6313 | } | |
6314 | return NULL; | |
6315 | } | |
6316 | ||
6317 | ||
1bd55598 RD |
6318 | SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6319 | PyObject *resultobj = 0; | |
6320 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6321 | bool arg2 ; | |
6322 | void *argp1 = 0 ; | |
6323 | int res1 = 0 ; | |
6324 | bool val2 ; | |
6325 | int ecode2 = 0 ; | |
6326 | PyObject * obj0 = 0 ; | |
6327 | PyObject * obj1 = 0 ; | |
6328 | char * kwnames[] = { | |
6329 | (char *) "self",(char *) "editable", NULL | |
6330 | }; | |
6331 | ||
6332 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail; | |
6333 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6334 | if (!SWIG_IsOK(res1)) { | |
6335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6336 | } | |
6337 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6338 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
6339 | if (!SWIG_IsOK(ecode2)) { | |
6340 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'"); | |
6341 | } | |
6342 | arg2 = static_cast< bool >(val2); | |
6343 | { | |
6344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6345 | (arg1)->SetEditable(arg2); | |
6346 | wxPyEndAllowThreads(__tstate); | |
6347 | if (PyErr_Occurred()) SWIG_fail; | |
6348 | } | |
6349 | resultobj = SWIG_Py_Void(); | |
6350 | return resultobj; | |
6351 | fail: | |
6352 | return NULL; | |
d55e5bfc RD |
6353 | } |
6354 | ||
6355 | ||
1bd55598 RD |
6356 | SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6357 | PyObject *resultobj = 0; | |
6358 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6359 | void *argp1 = 0 ; | |
6360 | int res1 = 0 ; | |
6361 | PyObject *swig_obj[1] ; | |
6362 | ||
6363 | if (!args) SWIG_fail; | |
6364 | swig_obj[0] = args; | |
6365 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6366 | if (!SWIG_IsOK(res1)) { | |
6367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6368 | } | |
6369 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6370 | { | |
6371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6372 | (arg1)->SetInsertionPointEnd(); | |
6373 | wxPyEndAllowThreads(__tstate); | |
6374 | if (PyErr_Occurred()) SWIG_fail; | |
6375 | } | |
6376 | resultobj = SWIG_Py_Void(); | |
6377 | return resultobj; | |
6378 | fail: | |
6379 | return NULL; | |
6380 | } | |
6381 | ||
6382 | ||
6383 | SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6384 | PyObject *resultobj = 0; | |
6385 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6386 | long arg2 ; | |
6387 | long arg3 ; | |
6388 | void *argp1 = 0 ; | |
6389 | int res1 = 0 ; | |
6390 | long val2 ; | |
6391 | int ecode2 = 0 ; | |
6392 | long val3 ; | |
6393 | int ecode3 = 0 ; | |
6394 | PyObject * obj0 = 0 ; | |
6395 | PyObject * obj1 = 0 ; | |
6396 | PyObject * obj2 = 0 ; | |
6397 | char * kwnames[] = { | |
2131d850 | 6398 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
6399 | }; |
6400 | ||
6401 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6402 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6403 | if (!SWIG_IsOK(res1)) { | |
6404 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6405 | } | |
6406 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6407 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6408 | if (!SWIG_IsOK(ecode2)) { | |
6409 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'"); | |
6410 | } | |
6411 | arg2 = static_cast< long >(val2); | |
6412 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6413 | if (!SWIG_IsOK(ecode3)) { | |
6414 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'"); | |
6415 | } | |
6416 | arg3 = static_cast< long >(val3); | |
6417 | { | |
6418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6419 | (arg1)->Remove(arg2,arg3); | |
6420 | wxPyEndAllowThreads(__tstate); | |
6421 | if (PyErr_Occurred()) SWIG_fail; | |
6422 | } | |
6423 | resultobj = SWIG_Py_Void(); | |
6424 | return resultobj; | |
6425 | fail: | |
6426 | return NULL; | |
d55e5bfc RD |
6427 | } |
6428 | ||
6429 | ||
1bd55598 RD |
6430 | SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6431 | PyObject *resultobj = 0; | |
6432 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6433 | bool result; | |
6434 | void *argp1 = 0 ; | |
6435 | int res1 = 0 ; | |
6436 | PyObject *swig_obj[1] ; | |
6437 | ||
6438 | if (!args) SWIG_fail; | |
6439 | swig_obj[0] = args; | |
6440 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6441 | if (!SWIG_IsOK(res1)) { | |
6442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6443 | } | |
6444 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6445 | { | |
6446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6447 | result = (bool)((wxComboBox const *)arg1)->IsEditable(); | |
6448 | wxPyEndAllowThreads(__tstate); | |
6449 | if (PyErr_Occurred()) SWIG_fail; | |
6450 | } | |
6451 | { | |
6452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6453 | } | |
6454 | return resultobj; | |
6455 | fail: | |
6456 | return NULL; | |
d55e5bfc RD |
6457 | } |
6458 | ||
6459 | ||
1bd55598 RD |
6460 | SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6461 | PyObject *resultobj = 0; | |
6462 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6463 | void *argp1 = 0 ; | |
6464 | int res1 = 0 ; | |
6465 | PyObject *swig_obj[1] ; | |
6466 | ||
6467 | if (!args) SWIG_fail; | |
6468 | swig_obj[0] = args; | |
6469 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6470 | if (!SWIG_IsOK(res1)) { | |
6471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6472 | } | |
6473 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6474 | { | |
6475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6476 | (arg1)->Undo(); | |
6477 | wxPyEndAllowThreads(__tstate); | |
6478 | if (PyErr_Occurred()) SWIG_fail; | |
6479 | } | |
6480 | resultobj = SWIG_Py_Void(); | |
6481 | return resultobj; | |
6482 | fail: | |
6483 | return NULL; | |
d55e5bfc RD |
6484 | } |
6485 | ||
6486 | ||
1bd55598 RD |
6487 | SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6488 | PyObject *resultobj = 0; | |
6489 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6490 | void *argp1 = 0 ; | |
6491 | int res1 = 0 ; | |
6492 | PyObject *swig_obj[1] ; | |
6493 | ||
6494 | if (!args) SWIG_fail; | |
6495 | swig_obj[0] = args; | |
6496 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6497 | if (!SWIG_IsOK(res1)) { | |
6498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6499 | } | |
6500 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6501 | { | |
6502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6503 | (arg1)->Redo(); | |
6504 | wxPyEndAllowThreads(__tstate); | |
6505 | if (PyErr_Occurred()) SWIG_fail; | |
6506 | } | |
6507 | resultobj = SWIG_Py_Void(); | |
6508 | return resultobj; | |
6509 | fail: | |
6510 | return NULL; | |
d55e5bfc RD |
6511 | } |
6512 | ||
6513 | ||
1bd55598 RD |
6514 | SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6515 | PyObject *resultobj = 0; | |
6516 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6517 | void *argp1 = 0 ; | |
6518 | int res1 = 0 ; | |
6519 | PyObject *swig_obj[1] ; | |
6520 | ||
6521 | if (!args) SWIG_fail; | |
6522 | swig_obj[0] = args; | |
6523 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6524 | if (!SWIG_IsOK(res1)) { | |
6525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6526 | } | |
6527 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6528 | { | |
6529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6530 | (arg1)->SelectAll(); | |
6531 | wxPyEndAllowThreads(__tstate); | |
6532 | if (PyErr_Occurred()) SWIG_fail; | |
6533 | } | |
6534 | resultobj = SWIG_Py_Void(); | |
6535 | return resultobj; | |
6536 | fail: | |
6537 | return NULL; | |
943e8dfd RD |
6538 | } |
6539 | ||
6540 | ||
1bd55598 RD |
6541 | SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6542 | PyObject *resultobj = 0; | |
6543 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6544 | bool result; | |
6545 | void *argp1 = 0 ; | |
6546 | int res1 = 0 ; | |
6547 | PyObject *swig_obj[1] ; | |
6548 | ||
6549 | if (!args) SWIG_fail; | |
6550 | swig_obj[0] = args; | |
6551 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6552 | if (!SWIG_IsOK(res1)) { | |
6553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6554 | } | |
6555 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6556 | { | |
6557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6558 | result = (bool)((wxComboBox const *)arg1)->CanCopy(); | |
6559 | wxPyEndAllowThreads(__tstate); | |
6560 | if (PyErr_Occurred()) SWIG_fail; | |
6561 | } | |
6562 | { | |
6563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6564 | } | |
6565 | return resultobj; | |
6566 | fail: | |
6567 | return NULL; | |
121b9a67 RD |
6568 | } |
6569 | ||
6570 | ||
1bd55598 RD |
6571 | SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6572 | PyObject *resultobj = 0; | |
6573 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6574 | bool result; | |
6575 | void *argp1 = 0 ; | |
6576 | int res1 = 0 ; | |
6577 | PyObject *swig_obj[1] ; | |
6578 | ||
6579 | if (!args) SWIG_fail; | |
6580 | swig_obj[0] = args; | |
6581 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6582 | if (!SWIG_IsOK(res1)) { | |
6583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6584 | } | |
6585 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6586 | { | |
6587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6588 | result = (bool)((wxComboBox const *)arg1)->CanCut(); | |
6589 | wxPyEndAllowThreads(__tstate); | |
6590 | if (PyErr_Occurred()) SWIG_fail; | |
6591 | } | |
6592 | { | |
6593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6594 | } | |
6595 | return resultobj; | |
6596 | fail: | |
6597 | return NULL; | |
121b9a67 RD |
6598 | } |
6599 | ||
6600 | ||
1bd55598 RD |
6601 | SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6602 | PyObject *resultobj = 0; | |
6603 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6604 | bool result; | |
6605 | void *argp1 = 0 ; | |
6606 | int res1 = 0 ; | |
6607 | PyObject *swig_obj[1] ; | |
6608 | ||
6609 | if (!args) SWIG_fail; | |
6610 | swig_obj[0] = args; | |
6611 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6612 | if (!SWIG_IsOK(res1)) { | |
6613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6614 | } | |
6615 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6616 | { | |
6617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6618 | result = (bool)((wxComboBox const *)arg1)->CanPaste(); | |
6619 | wxPyEndAllowThreads(__tstate); | |
6620 | if (PyErr_Occurred()) SWIG_fail; | |
6621 | } | |
6622 | { | |
6623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6624 | } | |
6625 | return resultobj; | |
6626 | fail: | |
6627 | return NULL; | |
d55e5bfc RD |
6628 | } |
6629 | ||
6630 | ||
1bd55598 RD |
6631 | SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6632 | PyObject *resultobj = 0; | |
6633 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6634 | bool result; | |
6635 | void *argp1 = 0 ; | |
6636 | int res1 = 0 ; | |
6637 | PyObject *swig_obj[1] ; | |
6638 | ||
6639 | if (!args) SWIG_fail; | |
6640 | swig_obj[0] = args; | |
6641 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6642 | if (!SWIG_IsOK(res1)) { | |
6643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6644 | } | |
6645 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6646 | { | |
6647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6648 | result = (bool)((wxComboBox const *)arg1)->CanUndo(); | |
6649 | wxPyEndAllowThreads(__tstate); | |
6650 | if (PyErr_Occurred()) SWIG_fail; | |
6651 | } | |
6652 | { | |
6653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6654 | } | |
6655 | return resultobj; | |
6656 | fail: | |
6657 | return NULL; | |
d55e5bfc RD |
6658 | } |
6659 | ||
6660 | ||
1bd55598 RD |
6661 | SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6662 | PyObject *resultobj = 0; | |
6663 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6664 | bool result; | |
6665 | void *argp1 = 0 ; | |
6666 | int res1 = 0 ; | |
6667 | PyObject *swig_obj[1] ; | |
6668 | ||
6669 | if (!args) SWIG_fail; | |
6670 | swig_obj[0] = args; | |
6671 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6672 | if (!SWIG_IsOK(res1)) { | |
6673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6674 | } | |
6675 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6676 | { | |
6677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6678 | result = (bool)((wxComboBox const *)arg1)->CanRedo(); | |
6679 | wxPyEndAllowThreads(__tstate); | |
6680 | if (PyErr_Occurred()) SWIG_fail; | |
6681 | } | |
6682 | { | |
6683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6684 | } | |
6685 | return resultobj; | |
6686 | fail: | |
6687 | return NULL; | |
d55e5bfc RD |
6688 | } |
6689 | ||
6690 | ||
1bd55598 RD |
6691 | SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6692 | PyObject *resultobj = 0; | |
6693 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
6694 | SwigValueWrapper<wxVisualAttributes > result; | |
6695 | int val1 ; | |
6696 | int ecode1 = 0 ; | |
6697 | PyObject * obj0 = 0 ; | |
6698 | char * kwnames[] = { | |
6699 | (char *) "variant", NULL | |
6700 | }; | |
6701 | ||
6702 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
6703 | if (obj0) { | |
6704 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6705 | if (!SWIG_IsOK(ecode1)) { | |
6706 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
6707 | } | |
6708 | arg1 = static_cast< wxWindowVariant >(val1); | |
6709 | } | |
6710 | { | |
6711 | if (!wxPyCheckForApp()) SWIG_fail; | |
6712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6713 | result = wxComboBox::GetClassDefaultAttributes(arg1); | |
6714 | wxPyEndAllowThreads(__tstate); | |
6715 | if (PyErr_Occurred()) SWIG_fail; | |
6716 | } | |
6717 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
6718 | return resultobj; | |
6719 | fail: | |
6720 | return NULL; | |
5cbf236d RD |
6721 | } |
6722 | ||
6723 | ||
1bd55598 RD |
6724 | SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6725 | PyObject *obj; | |
6726 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6727 | SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj)); | |
6728 | return SWIG_Py_Void(); | |
5cbf236d RD |
6729 | } |
6730 | ||
1bd55598 RD |
6731 | SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6732 | return SWIG_Python_InitShadowInstance(args); | |
5cbf236d RD |
6733 | } |
6734 | ||
1bd55598 RD |
6735 | SWIGINTERN int GaugeNameStr_set(PyObject *) { |
6736 | SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only."); | |
6737 | return 1; | |
5cbf236d RD |
6738 | } |
6739 | ||
6740 | ||
1bd55598 RD |
6741 | SWIGINTERN PyObject *GaugeNameStr_get(void) { |
6742 | PyObject *pyobj = 0; | |
6743 | ||
6744 | { | |
6745 | #if wxUSE_UNICODE | |
6746 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
6747 | #else | |
6748 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
6749 | #endif | |
6750 | } | |
6751 | return pyobj; | |
6752 | } | |
6753 | ||
6754 | ||
6755 | SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6756 | PyObject *resultobj = 0; | |
6757 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6758 | int arg2 = (int) -1 ; | |
6759 | int arg3 = (int) 100 ; | |
6760 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6761 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6762 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6763 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6764 | long arg6 = (long) wxGA_HORIZONTAL ; | |
6765 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6766 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6767 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
6768 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6769 | wxGauge *result = 0 ; | |
6770 | void *argp1 = 0 ; | |
6771 | int res1 = 0 ; | |
6772 | int val2 ; | |
6773 | int ecode2 = 0 ; | |
6774 | int val3 ; | |
6775 | int ecode3 = 0 ; | |
6776 | wxPoint temp4 ; | |
6777 | wxSize temp5 ; | |
6778 | long val6 ; | |
6779 | int ecode6 = 0 ; | |
6780 | void *argp7 = 0 ; | |
6781 | int res7 = 0 ; | |
6782 | bool temp8 = false ; | |
6783 | PyObject * obj0 = 0 ; | |
6784 | PyObject * obj1 = 0 ; | |
6785 | PyObject * obj2 = 0 ; | |
6786 | PyObject * obj3 = 0 ; | |
6787 | PyObject * obj4 = 0 ; | |
6788 | PyObject * obj5 = 0 ; | |
6789 | PyObject * obj6 = 0 ; | |
6790 | PyObject * obj7 = 0 ; | |
6791 | char * kwnames[] = { | |
6792 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6793 | }; | |
6794 | ||
6795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
6796 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6797 | if (!SWIG_IsOK(res1)) { | |
6798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
6799 | } | |
6800 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
6801 | if (obj1) { | |
6802 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6803 | if (!SWIG_IsOK(ecode2)) { | |
6804 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'"); | |
6805 | } | |
6806 | arg2 = static_cast< int >(val2); | |
6807 | } | |
6808 | if (obj2) { | |
6809 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6810 | if (!SWIG_IsOK(ecode3)) { | |
6811 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'"); | |
6812 | } | |
6813 | arg3 = static_cast< int >(val3); | |
6814 | } | |
6815 | if (obj3) { | |
5cbf236d | 6816 | { |
1bd55598 RD |
6817 | arg4 = &temp4; |
6818 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5cbf236d | 6819 | } |
1bd55598 RD |
6820 | } |
6821 | if (obj4) { | |
5cbf236d | 6822 | { |
1bd55598 RD |
6823 | arg5 = &temp5; |
6824 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5cbf236d | 6825 | } |
1bd55598 RD |
6826 | } |
6827 | if (obj5) { | |
6828 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
6829 | if (!SWIG_IsOK(ecode6)) { | |
6830 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'"); | |
6831 | } | |
6832 | arg6 = static_cast< long >(val6); | |
6833 | } | |
6834 | if (obj6) { | |
6835 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
6836 | if (!SWIG_IsOK(res7)) { | |
6837 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
6838 | } | |
6839 | if (!argp7) { | |
6840 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
5cbf236d | 6841 | } |
1bd55598 RD |
6842 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
6843 | } | |
6844 | if (obj7) { | |
5cbf236d | 6845 | { |
1bd55598 RD |
6846 | arg8 = wxString_in_helper(obj7); |
6847 | if (arg8 == NULL) SWIG_fail; | |
6848 | temp8 = true; | |
5cbf236d | 6849 | } |
1bd55598 RD |
6850 | } |
6851 | { | |
6852 | if (!wxPyCheckForApp()) SWIG_fail; | |
6853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6854 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6855 | wxPyEndAllowThreads(__tstate); | |
6856 | if (PyErr_Occurred()) SWIG_fail; | |
6857 | } | |
6858 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 ); | |
6859 | { | |
6860 | if (temp8) | |
6861 | delete arg8; | |
6862 | } | |
6863 | return resultobj; | |
6864 | fail: | |
6865 | { | |
6866 | if (temp8) | |
6867 | delete arg8; | |
6868 | } | |
6869 | return NULL; | |
5cbf236d RD |
6870 | } |
6871 | ||
6872 | ||
1bd55598 RD |
6873 | SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6874 | PyObject *resultobj = 0; | |
6875 | wxGauge *result = 0 ; | |
6876 | ||
6877 | if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail; | |
6878 | { | |
6879 | if (!wxPyCheckForApp()) SWIG_fail; | |
6880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6881 | result = (wxGauge *)new wxGauge(); | |
6882 | wxPyEndAllowThreads(__tstate); | |
6883 | if (PyErr_Occurred()) SWIG_fail; | |
6884 | } | |
6885 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 ); | |
6886 | return resultobj; | |
6887 | fail: | |
6888 | return NULL; | |
6889 | } | |
6890 | ||
6891 | ||
6892 | SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6893 | PyObject *resultobj = 0; | |
6894 | wxGauge *arg1 = (wxGauge *) 0 ; | |
6895 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6896 | int arg3 = (int) -1 ; | |
6897 | int arg4 = (int) 100 ; | |
6898 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6899 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6900 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6901 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6902 | long arg7 = (long) wxGA_HORIZONTAL ; | |
6903 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6904 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6905 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
6906 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6907 | bool result; | |
6908 | void *argp1 = 0 ; | |
6909 | int res1 = 0 ; | |
6910 | void *argp2 = 0 ; | |
6911 | int res2 = 0 ; | |
6912 | int val3 ; | |
6913 | int ecode3 = 0 ; | |
6914 | int val4 ; | |
6915 | int ecode4 = 0 ; | |
6916 | wxPoint temp5 ; | |
6917 | wxSize temp6 ; | |
6918 | long val7 ; | |
6919 | int ecode7 = 0 ; | |
6920 | void *argp8 = 0 ; | |
6921 | int res8 = 0 ; | |
6922 | bool temp9 = false ; | |
6923 | PyObject * obj0 = 0 ; | |
6924 | PyObject * obj1 = 0 ; | |
6925 | PyObject * obj2 = 0 ; | |
6926 | PyObject * obj3 = 0 ; | |
6927 | PyObject * obj4 = 0 ; | |
6928 | PyObject * obj5 = 0 ; | |
6929 | PyObject * obj6 = 0 ; | |
6930 | PyObject * obj7 = 0 ; | |
6931 | PyObject * obj8 = 0 ; | |
6932 | char * kwnames[] = { | |
6933 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6934 | }; | |
6935 | ||
6936 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
6937 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
6938 | if (!SWIG_IsOK(res1)) { | |
6939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
6940 | } | |
6941 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
6942 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6943 | if (!SWIG_IsOK(res2)) { | |
6944 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6945 | } | |
6946 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6947 | if (obj2) { | |
6948 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6949 | if (!SWIG_IsOK(ecode3)) { | |
6950 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'"); | |
6951 | } | |
6952 | arg3 = static_cast< int >(val3); | |
6953 | } | |
6954 | if (obj3) { | |
6955 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6956 | if (!SWIG_IsOK(ecode4)) { | |
6957 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'"); | |
6958 | } | |
6959 | arg4 = static_cast< int >(val4); | |
6960 | } | |
6961 | if (obj4) { | |
5cbf236d | 6962 | { |
1bd55598 RD |
6963 | arg5 = &temp5; |
6964 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5cbf236d | 6965 | } |
1bd55598 RD |
6966 | } |
6967 | if (obj5) { | |
5cbf236d | 6968 | { |
1bd55598 RD |
6969 | arg6 = &temp6; |
6970 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5cbf236d | 6971 | } |
1bd55598 RD |
6972 | } |
6973 | if (obj6) { | |
6974 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
6975 | if (!SWIG_IsOK(ecode7)) { | |
6976 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'"); | |
6977 | } | |
6978 | arg7 = static_cast< long >(val7); | |
6979 | } | |
6980 | if (obj7) { | |
6981 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
6982 | if (!SWIG_IsOK(res8)) { | |
6983 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5cbf236d | 6984 | } |
1bd55598 RD |
6985 | if (!argp8) { |
6986 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
6987 | } | |
6988 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
6989 | } | |
6990 | if (obj8) { | |
5cbf236d | 6991 | { |
1bd55598 RD |
6992 | arg9 = wxString_in_helper(obj8); |
6993 | if (arg9 == NULL) SWIG_fail; | |
6994 | temp9 = true; | |
5cbf236d | 6995 | } |
1bd55598 RD |
6996 | } |
6997 | { | |
6998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6999 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7000 | wxPyEndAllowThreads(__tstate); | |
7001 | if (PyErr_Occurred()) SWIG_fail; | |
7002 | } | |
7003 | { | |
7004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7005 | } | |
7006 | { | |
7007 | if (temp9) | |
7008 | delete arg9; | |
7009 | } | |
7010 | return resultobj; | |
7011 | fail: | |
7012 | { | |
7013 | if (temp9) | |
7014 | delete arg9; | |
7015 | } | |
7016 | return NULL; | |
7017 | } | |
7018 | ||
7019 | ||
7020 | SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7021 | PyObject *resultobj = 0; | |
7022 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7023 | int arg2 ; | |
7024 | void *argp1 = 0 ; | |
7025 | int res1 = 0 ; | |
7026 | int val2 ; | |
7027 | int ecode2 = 0 ; | |
7028 | PyObject * obj0 = 0 ; | |
7029 | PyObject * obj1 = 0 ; | |
7030 | char * kwnames[] = { | |
7031 | (char *) "self",(char *) "range", NULL | |
7032 | }; | |
7033 | ||
7034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
7035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7036 | if (!SWIG_IsOK(res1)) { | |
7037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7038 | } | |
7039 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7040 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7041 | if (!SWIG_IsOK(ecode2)) { | |
7042 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
7043 | } | |
7044 | arg2 = static_cast< int >(val2); | |
7045 | { | |
7046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7047 | (arg1)->SetRange(arg2); | |
7048 | wxPyEndAllowThreads(__tstate); | |
7049 | if (PyErr_Occurred()) SWIG_fail; | |
7050 | } | |
7051 | resultobj = SWIG_Py_Void(); | |
7052 | return resultobj; | |
7053 | fail: | |
7054 | return NULL; | |
5cbf236d RD |
7055 | } |
7056 | ||
7057 | ||
1bd55598 RD |
7058 | SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7059 | PyObject *resultobj = 0; | |
7060 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7061 | int result; | |
7062 | void *argp1 = 0 ; | |
7063 | int res1 = 0 ; | |
7064 | PyObject *swig_obj[1] ; | |
7065 | ||
7066 | if (!args) SWIG_fail; | |
7067 | swig_obj[0] = args; | |
7068 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7069 | if (!SWIG_IsOK(res1)) { | |
7070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7071 | } | |
7072 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7073 | { | |
7074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7075 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
7076 | wxPyEndAllowThreads(__tstate); | |
7077 | if (PyErr_Occurred()) SWIG_fail; | |
7078 | } | |
7079 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7080 | return resultobj; | |
7081 | fail: | |
7082 | return NULL; | |
7083 | } | |
7084 | ||
7085 | ||
7086 | SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7087 | PyObject *resultobj = 0; | |
7088 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7089 | int arg2 ; | |
7090 | void *argp1 = 0 ; | |
7091 | int res1 = 0 ; | |
7092 | int val2 ; | |
7093 | int ecode2 = 0 ; | |
7094 | PyObject * obj0 = 0 ; | |
7095 | PyObject * obj1 = 0 ; | |
7096 | char * kwnames[] = { | |
7097 | (char *) "self",(char *) "pos", NULL | |
7098 | }; | |
7099 | ||
7100 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
7101 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7102 | if (!SWIG_IsOK(res1)) { | |
7103 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7104 | } | |
7105 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7106 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7107 | if (!SWIG_IsOK(ecode2)) { | |
7108 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
7109 | } | |
7110 | arg2 = static_cast< int >(val2); | |
7111 | { | |
7112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7113 | (arg1)->SetValue(arg2); | |
7114 | wxPyEndAllowThreads(__tstate); | |
7115 | if (PyErr_Occurred()) SWIG_fail; | |
7116 | } | |
7117 | resultobj = SWIG_Py_Void(); | |
7118 | return resultobj; | |
7119 | fail: | |
7120 | return NULL; | |
5cbf236d RD |
7121 | } |
7122 | ||
7123 | ||
1bd55598 RD |
7124 | SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7125 | PyObject *resultobj = 0; | |
7126 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7127 | int result; | |
7128 | void *argp1 = 0 ; | |
7129 | int res1 = 0 ; | |
7130 | PyObject *swig_obj[1] ; | |
7131 | ||
7132 | if (!args) SWIG_fail; | |
7133 | swig_obj[0] = args; | |
7134 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7135 | if (!SWIG_IsOK(res1)) { | |
7136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7137 | } | |
7138 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7139 | { | |
7140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7141 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
7142 | wxPyEndAllowThreads(__tstate); | |
7143 | if (PyErr_Occurred()) SWIG_fail; | |
7144 | } | |
7145 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7146 | return resultobj; | |
7147 | fail: | |
7148 | return NULL; | |
f20a2e1f RD |
7149 | } |
7150 | ||
7151 | ||
0d2c9713 RD |
7152 | SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7153 | PyObject *resultobj = 0; | |
7154 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7155 | void *argp1 = 0 ; | |
7156 | int res1 = 0 ; | |
7157 | PyObject *swig_obj[1] ; | |
7158 | ||
7159 | if (!args) SWIG_fail; | |
7160 | swig_obj[0] = args; | |
7161 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7162 | if (!SWIG_IsOK(res1)) { | |
7163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7164 | } | |
7165 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7166 | { | |
7167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7168 | (arg1)->Pulse(); | |
7169 | wxPyEndAllowThreads(__tstate); | |
7170 | if (PyErr_Occurred()) SWIG_fail; | |
7171 | } | |
7172 | resultobj = SWIG_Py_Void(); | |
7173 | return resultobj; | |
7174 | fail: | |
7175 | return NULL; | |
7176 | } | |
7177 | ||
7178 | ||
1bd55598 RD |
7179 | SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7180 | PyObject *resultobj = 0; | |
7181 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7182 | bool result; | |
7183 | void *argp1 = 0 ; | |
7184 | int res1 = 0 ; | |
7185 | PyObject *swig_obj[1] ; | |
7186 | ||
7187 | if (!args) SWIG_fail; | |
7188 | swig_obj[0] = args; | |
7189 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7190 | if (!SWIG_IsOK(res1)) { | |
7191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7192 | } | |
7193 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7194 | { | |
7195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7196 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
7197 | wxPyEndAllowThreads(__tstate); | |
7198 | if (PyErr_Occurred()) SWIG_fail; | |
7199 | } | |
7200 | { | |
7201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7202 | } | |
7203 | return resultobj; | |
7204 | fail: | |
7205 | return NULL; | |
7206 | } | |
7207 | ||
7208 | ||
7209 | SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7210 | PyObject *resultobj = 0; | |
7211 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7212 | int arg2 ; | |
7213 | void *argp1 = 0 ; | |
7214 | int res1 = 0 ; | |
7215 | int val2 ; | |
7216 | int ecode2 = 0 ; | |
7217 | PyObject * obj0 = 0 ; | |
7218 | PyObject * obj1 = 0 ; | |
7219 | char * kwnames[] = { | |
7220 | (char *) "self",(char *) "w", NULL | |
7221 | }; | |
7222 | ||
7223 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
7224 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7225 | if (!SWIG_IsOK(res1)) { | |
7226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7227 | } | |
7228 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7229 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7230 | if (!SWIG_IsOK(ecode2)) { | |
7231 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'"); | |
7232 | } | |
7233 | arg2 = static_cast< int >(val2); | |
7234 | { | |
7235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7236 | (arg1)->SetShadowWidth(arg2); | |
7237 | wxPyEndAllowThreads(__tstate); | |
7238 | if (PyErr_Occurred()) SWIG_fail; | |
7239 | } | |
7240 | resultobj = SWIG_Py_Void(); | |
7241 | return resultobj; | |
7242 | fail: | |
7243 | return NULL; | |
d55e5bfc RD |
7244 | } |
7245 | ||
7246 | ||
1bd55598 RD |
7247 | SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7248 | PyObject *resultobj = 0; | |
7249 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7250 | int result; | |
7251 | void *argp1 = 0 ; | |
7252 | int res1 = 0 ; | |
7253 | PyObject *swig_obj[1] ; | |
7254 | ||
7255 | if (!args) SWIG_fail; | |
7256 | swig_obj[0] = args; | |
7257 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7258 | if (!SWIG_IsOK(res1)) { | |
7259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7260 | } | |
7261 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7262 | { | |
7263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7264 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
7265 | wxPyEndAllowThreads(__tstate); | |
7266 | if (PyErr_Occurred()) SWIG_fail; | |
7267 | } | |
7268 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7269 | return resultobj; | |
7270 | fail: | |
7271 | return NULL; | |
7272 | } | |
7273 | ||
7274 | ||
7275 | SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7276 | PyObject *resultobj = 0; | |
7277 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7278 | int arg2 ; | |
7279 | void *argp1 = 0 ; | |
7280 | int res1 = 0 ; | |
7281 | int val2 ; | |
7282 | int ecode2 = 0 ; | |
7283 | PyObject * obj0 = 0 ; | |
7284 | PyObject * obj1 = 0 ; | |
7285 | char * kwnames[] = { | |
7286 | (char *) "self",(char *) "w", NULL | |
7287 | }; | |
7288 | ||
7289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail; | |
7290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7291 | if (!SWIG_IsOK(res1)) { | |
7292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7293 | } | |
7294 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7295 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7296 | if (!SWIG_IsOK(ecode2)) { | |
7297 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'"); | |
7298 | } | |
7299 | arg2 = static_cast< int >(val2); | |
7300 | { | |
7301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7302 | (arg1)->SetBezelFace(arg2); | |
7303 | wxPyEndAllowThreads(__tstate); | |
7304 | if (PyErr_Occurred()) SWIG_fail; | |
7305 | } | |
7306 | resultobj = SWIG_Py_Void(); | |
7307 | return resultobj; | |
7308 | fail: | |
7309 | return NULL; | |
d55e5bfc RD |
7310 | } |
7311 | ||
7312 | ||
1bd55598 RD |
7313 | SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7314 | PyObject *resultobj = 0; | |
7315 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7316 | int result; | |
7317 | void *argp1 = 0 ; | |
7318 | int res1 = 0 ; | |
7319 | PyObject *swig_obj[1] ; | |
7320 | ||
7321 | if (!args) SWIG_fail; | |
7322 | swig_obj[0] = args; | |
7323 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7324 | if (!SWIG_IsOK(res1)) { | |
7325 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7326 | } | |
7327 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7328 | { | |
7329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7330 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
7331 | wxPyEndAllowThreads(__tstate); | |
7332 | if (PyErr_Occurred()) SWIG_fail; | |
7333 | } | |
7334 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7335 | return resultobj; | |
7336 | fail: | |
7337 | return NULL; | |
7338 | } | |
7339 | ||
7340 | ||
7341 | SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7342 | PyObject *resultobj = 0; | |
7343 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7344 | SwigValueWrapper<wxVisualAttributes > result; | |
7345 | int val1 ; | |
7346 | int ecode1 = 0 ; | |
7347 | PyObject * obj0 = 0 ; | |
7348 | char * kwnames[] = { | |
7349 | (char *) "variant", NULL | |
7350 | }; | |
7351 | ||
7352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7353 | if (obj0) { | |
7354 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7355 | if (!SWIG_IsOK(ecode1)) { | |
7356 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7357 | } | |
7358 | arg1 = static_cast< wxWindowVariant >(val1); | |
7359 | } | |
7360 | { | |
7361 | if (!wxPyCheckForApp()) SWIG_fail; | |
7362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7363 | result = wxGauge::GetClassDefaultAttributes(arg1); | |
7364 | wxPyEndAllowThreads(__tstate); | |
7365 | if (PyErr_Occurred()) SWIG_fail; | |
7366 | } | |
7367 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7368 | return resultobj; | |
7369 | fail: | |
7370 | return NULL; | |
d55e5bfc RD |
7371 | } |
7372 | ||
7373 | ||
1bd55598 RD |
7374 | SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7375 | PyObject *obj; | |
7376 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7377 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj)); | |
7378 | return SWIG_Py_Void(); | |
d55e5bfc RD |
7379 | } |
7380 | ||
1bd55598 RD |
7381 | SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7382 | return SWIG_Python_InitShadowInstance(args); | |
7383 | } | |
d55e5bfc | 7384 | |
1bd55598 RD |
7385 | SWIGINTERN int StaticBitmapNameStr_set(PyObject *) { |
7386 | SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only."); | |
7387 | return 1; | |
d55e5bfc RD |
7388 | } |
7389 | ||
7390 | ||
1bd55598 RD |
7391 | SWIGINTERN PyObject *StaticBitmapNameStr_get(void) { |
7392 | PyObject *pyobj = 0; | |
7393 | ||
7394 | { | |
7395 | #if wxUSE_UNICODE | |
7396 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
7397 | #else | |
7398 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
7399 | #endif | |
7400 | } | |
7401 | return pyobj; | |
d55e5bfc RD |
7402 | } |
7403 | ||
7404 | ||
1bd55598 RD |
7405 | SWIGINTERN int StaticBoxNameStr_set(PyObject *) { |
7406 | SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only."); | |
7407 | return 1; | |
d55e5bfc RD |
7408 | } |
7409 | ||
7410 | ||
1bd55598 RD |
7411 | SWIGINTERN PyObject *StaticBoxNameStr_get(void) { |
7412 | PyObject *pyobj = 0; | |
7413 | ||
7414 | { | |
7415 | #if wxUSE_UNICODE | |
7416 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
7417 | #else | |
7418 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
7419 | #endif | |
7420 | } | |
7421 | return pyobj; | |
d55e5bfc RD |
7422 | } |
7423 | ||
7424 | ||
1bd55598 RD |
7425 | SWIGINTERN int StaticTextNameStr_set(PyObject *) { |
7426 | SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only."); | |
7427 | return 1; | |
d55e5bfc RD |
7428 | } |
7429 | ||
7430 | ||
1bd55598 RD |
7431 | SWIGINTERN PyObject *StaticTextNameStr_get(void) { |
7432 | PyObject *pyobj = 0; | |
7433 | ||
7434 | { | |
7435 | #if wxUSE_UNICODE | |
7436 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
7437 | #else | |
7438 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
7439 | #endif | |
7440 | } | |
7441 | return pyobj; | |
7442 | } | |
7443 | ||
7444 | ||
7445 | SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7446 | PyObject *resultobj = 0; | |
7447 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7448 | int arg2 = (int) -1 ; | |
7449 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7450 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7451 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7452 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7453 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7454 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7455 | long arg6 = (long) 0 ; | |
7456 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
7457 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7458 | wxStaticBox *result = 0 ; | |
7459 | void *argp1 = 0 ; | |
7460 | int res1 = 0 ; | |
7461 | int val2 ; | |
7462 | int ecode2 = 0 ; | |
7463 | bool temp3 = false ; | |
7464 | wxPoint temp4 ; | |
7465 | wxSize temp5 ; | |
7466 | long val6 ; | |
7467 | int ecode6 = 0 ; | |
7468 | bool temp7 = false ; | |
7469 | PyObject * obj0 = 0 ; | |
7470 | PyObject * obj1 = 0 ; | |
7471 | PyObject * obj2 = 0 ; | |
7472 | PyObject * obj3 = 0 ; | |
7473 | PyObject * obj4 = 0 ; | |
7474 | PyObject * obj5 = 0 ; | |
7475 | PyObject * obj6 = 0 ; | |
7476 | char * kwnames[] = { | |
7477 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7478 | }; | |
7479 | ||
7480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7482 | if (!SWIG_IsOK(res1)) { | |
7483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7484 | } | |
7485 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7486 | if (obj1) { | |
7487 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7488 | if (!SWIG_IsOK(ecode2)) { | |
7489 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'"); | |
7490 | } | |
7491 | arg2 = static_cast< int >(val2); | |
7492 | } | |
7493 | if (obj2) { | |
36ed4f51 | 7494 | { |
1bd55598 RD |
7495 | arg3 = wxString_in_helper(obj2); |
7496 | if (arg3 == NULL) SWIG_fail; | |
7497 | temp3 = true; | |
36ed4f51 | 7498 | } |
1bd55598 RD |
7499 | } |
7500 | if (obj3) { | |
d55e5bfc | 7501 | { |
1bd55598 RD |
7502 | arg4 = &temp4; |
7503 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 7504 | } |
1bd55598 RD |
7505 | } |
7506 | if (obj4) { | |
d55e5bfc | 7507 | { |
1bd55598 RD |
7508 | arg5 = &temp5; |
7509 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 7510 | } |
1bd55598 RD |
7511 | } |
7512 | if (obj5) { | |
7513 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7514 | if (!SWIG_IsOK(ecode6)) { | |
7515 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'"); | |
7516 | } | |
7517 | arg6 = static_cast< long >(val6); | |
7518 | } | |
7519 | if (obj6) { | |
36ed4f51 | 7520 | { |
1bd55598 RD |
7521 | arg7 = wxString_in_helper(obj6); |
7522 | if (arg7 == NULL) SWIG_fail; | |
7523 | temp7 = true; | |
36ed4f51 | 7524 | } |
1bd55598 RD |
7525 | } |
7526 | { | |
7527 | if (!wxPyCheckForApp()) SWIG_fail; | |
7528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7529 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7530 | wxPyEndAllowThreads(__tstate); | |
7531 | if (PyErr_Occurred()) SWIG_fail; | |
7532 | } | |
7533 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 ); | |
7534 | { | |
7535 | if (temp3) | |
7536 | delete arg3; | |
7537 | } | |
7538 | { | |
7539 | if (temp7) | |
7540 | delete arg7; | |
7541 | } | |
7542 | return resultobj; | |
7543 | fail: | |
7544 | { | |
7545 | if (temp3) | |
7546 | delete arg3; | |
7547 | } | |
7548 | { | |
7549 | if (temp7) | |
7550 | delete arg7; | |
7551 | } | |
7552 | return NULL; | |
7553 | } | |
d55e5bfc | 7554 | |
1bd55598 RD |
7555 | |
7556 | SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7557 | PyObject *resultobj = 0; | |
7558 | wxStaticBox *result = 0 ; | |
7559 | ||
7560 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail; | |
7561 | { | |
7562 | if (!wxPyCheckForApp()) SWIG_fail; | |
7563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7564 | result = (wxStaticBox *)new wxStaticBox(); | |
7565 | wxPyEndAllowThreads(__tstate); | |
7566 | if (PyErr_Occurred()) SWIG_fail; | |
7567 | } | |
7568 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 ); | |
7569 | return resultobj; | |
7570 | fail: | |
7571 | return NULL; | |
7572 | } | |
7573 | ||
7574 | ||
7575 | SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7576 | PyObject *resultobj = 0; | |
7577 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
7578 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7579 | int arg3 = (int) -1 ; | |
7580 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7581 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7582 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7583 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7584 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7585 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7586 | long arg7 = (long) 0 ; | |
7587 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
7588 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7589 | bool result; | |
7590 | void *argp1 = 0 ; | |
7591 | int res1 = 0 ; | |
7592 | void *argp2 = 0 ; | |
7593 | int res2 = 0 ; | |
7594 | int val3 ; | |
7595 | int ecode3 = 0 ; | |
7596 | bool temp4 = false ; | |
7597 | wxPoint temp5 ; | |
7598 | wxSize temp6 ; | |
7599 | long val7 ; | |
7600 | int ecode7 = 0 ; | |
7601 | bool temp8 = false ; | |
7602 | PyObject * obj0 = 0 ; | |
7603 | PyObject * obj1 = 0 ; | |
7604 | PyObject * obj2 = 0 ; | |
7605 | PyObject * obj3 = 0 ; | |
7606 | PyObject * obj4 = 0 ; | |
7607 | PyObject * obj5 = 0 ; | |
7608 | PyObject * obj6 = 0 ; | |
7609 | PyObject * obj7 = 0 ; | |
7610 | char * kwnames[] = { | |
7611 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7612 | }; | |
7613 | ||
7614 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
7615 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 ); | |
7616 | if (!SWIG_IsOK(res1)) { | |
7617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'"); | |
7618 | } | |
7619 | arg1 = reinterpret_cast< wxStaticBox * >(argp1); | |
7620 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7621 | if (!SWIG_IsOK(res2)) { | |
7622 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7623 | } | |
7624 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7625 | if (obj2) { | |
7626 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7627 | if (!SWIG_IsOK(ecode3)) { | |
7628 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
7629 | } | |
7630 | arg3 = static_cast< int >(val3); | |
7631 | } | |
7632 | if (obj3) { | |
36ed4f51 | 7633 | { |
1bd55598 RD |
7634 | arg4 = wxString_in_helper(obj3); |
7635 | if (arg4 == NULL) SWIG_fail; | |
7636 | temp4 = true; | |
36ed4f51 | 7637 | } |
1bd55598 RD |
7638 | } |
7639 | if (obj4) { | |
d55e5bfc | 7640 | { |
1bd55598 RD |
7641 | arg5 = &temp5; |
7642 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 7643 | } |
1bd55598 RD |
7644 | } |
7645 | if (obj5) { | |
d55e5bfc | 7646 | { |
1bd55598 RD |
7647 | arg6 = &temp6; |
7648 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 7649 | } |
1bd55598 RD |
7650 | } |
7651 | if (obj6) { | |
7652 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
7653 | if (!SWIG_IsOK(ecode7)) { | |
7654 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
7655 | } | |
7656 | arg7 = static_cast< long >(val7); | |
7657 | } | |
7658 | if (obj7) { | |
36ed4f51 | 7659 | { |
1bd55598 RD |
7660 | arg8 = wxString_in_helper(obj7); |
7661 | if (arg8 == NULL) SWIG_fail; | |
7662 | temp8 = true; | |
36ed4f51 | 7663 | } |
1bd55598 RD |
7664 | } |
7665 | { | |
7666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7667 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7668 | wxPyEndAllowThreads(__tstate); | |
7669 | if (PyErr_Occurred()) SWIG_fail; | |
7670 | } | |
7671 | { | |
7672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7673 | } | |
7674 | { | |
7675 | if (temp4) | |
7676 | delete arg4; | |
7677 | } | |
7678 | { | |
7679 | if (temp8) | |
7680 | delete arg8; | |
7681 | } | |
7682 | return resultobj; | |
7683 | fail: | |
7684 | { | |
7685 | if (temp4) | |
7686 | delete arg4; | |
7687 | } | |
7688 | { | |
7689 | if (temp8) | |
7690 | delete arg8; | |
7691 | } | |
7692 | return NULL; | |
d55e5bfc RD |
7693 | } |
7694 | ||
7695 | ||
1bd55598 RD |
7696 | SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7697 | PyObject *resultobj = 0; | |
7698 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7699 | SwigValueWrapper<wxVisualAttributes > result; | |
7700 | int val1 ; | |
7701 | int ecode1 = 0 ; | |
7702 | PyObject * obj0 = 0 ; | |
7703 | char * kwnames[] = { | |
7704 | (char *) "variant", NULL | |
7705 | }; | |
7706 | ||
7707 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7708 | if (obj0) { | |
7709 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7710 | if (!SWIG_IsOK(ecode1)) { | |
7711 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7712 | } | |
7713 | arg1 = static_cast< wxWindowVariant >(val1); | |
7714 | } | |
7715 | { | |
7716 | if (!wxPyCheckForApp()) SWIG_fail; | |
7717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7718 | result = wxStaticBox::GetClassDefaultAttributes(arg1); | |
7719 | wxPyEndAllowThreads(__tstate); | |
7720 | if (PyErr_Occurred()) SWIG_fail; | |
7721 | } | |
7722 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7723 | return resultobj; | |
7724 | fail: | |
7725 | return NULL; | |
7726 | } | |
7727 | ||
7728 | ||
7729 | SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7730 | PyObject *obj; | |
7731 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7732 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj)); | |
7733 | return SWIG_Py_Void(); | |
7734 | } | |
7735 | ||
7736 | SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7737 | return SWIG_Python_InitShadowInstance(args); | |
7738 | } | |
7739 | ||
7740 | SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7741 | PyObject *resultobj = 0; | |
7742 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7743 | int arg2 = (int) -1 ; | |
7744 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
7745 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7746 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7747 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7748 | long arg5 = (long) wxLI_HORIZONTAL ; | |
7749 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
7750 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7751 | wxStaticLine *result = 0 ; | |
7752 | void *argp1 = 0 ; | |
7753 | int res1 = 0 ; | |
7754 | int val2 ; | |
7755 | int ecode2 = 0 ; | |
7756 | wxPoint temp3 ; | |
7757 | wxSize temp4 ; | |
7758 | long val5 ; | |
7759 | int ecode5 = 0 ; | |
7760 | bool temp6 = false ; | |
7761 | PyObject * obj0 = 0 ; | |
7762 | PyObject * obj1 = 0 ; | |
7763 | PyObject * obj2 = 0 ; | |
7764 | PyObject * obj3 = 0 ; | |
7765 | PyObject * obj4 = 0 ; | |
7766 | PyObject * obj5 = 0 ; | |
7767 | char * kwnames[] = { | |
7768 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7769 | }; | |
7770 | ||
7771 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
7772 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7773 | if (!SWIG_IsOK(res1)) { | |
7774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7775 | } | |
7776 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7777 | if (obj1) { | |
7778 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7779 | if (!SWIG_IsOK(ecode2)) { | |
7780 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'"); | |
7781 | } | |
7782 | arg2 = static_cast< int >(val2); | |
7783 | } | |
7784 | if (obj2) { | |
7785 | { | |
7786 | arg3 = &temp3; | |
7787 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
f20a2e1f | 7788 | } |
1bd55598 RD |
7789 | } |
7790 | if (obj3) { | |
f20a2e1f | 7791 | { |
1bd55598 RD |
7792 | arg4 = &temp4; |
7793 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
f20a2e1f | 7794 | } |
1bd55598 RD |
7795 | } |
7796 | if (obj4) { | |
7797 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
7798 | if (!SWIG_IsOK(ecode5)) { | |
7799 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'"); | |
7800 | } | |
7801 | arg5 = static_cast< long >(val5); | |
7802 | } | |
7803 | if (obj5) { | |
f20a2e1f | 7804 | { |
1bd55598 RD |
7805 | arg6 = wxString_in_helper(obj5); |
7806 | if (arg6 == NULL) SWIG_fail; | |
7807 | temp6 = true; | |
f20a2e1f | 7808 | } |
1bd55598 RD |
7809 | } |
7810 | { | |
7811 | if (!wxPyCheckForApp()) SWIG_fail; | |
7812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7813 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
7814 | wxPyEndAllowThreads(__tstate); | |
7815 | if (PyErr_Occurred()) SWIG_fail; | |
7816 | } | |
7817 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 ); | |
7818 | { | |
7819 | if (temp6) | |
7820 | delete arg6; | |
7821 | } | |
7822 | return resultobj; | |
7823 | fail: | |
7824 | { | |
7825 | if (temp6) | |
7826 | delete arg6; | |
7827 | } | |
7828 | return NULL; | |
d55e5bfc RD |
7829 | } |
7830 | ||
7831 | ||
1bd55598 RD |
7832 | SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7833 | PyObject *resultobj = 0; | |
7834 | wxStaticLine *result = 0 ; | |
7835 | ||
7836 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail; | |
7837 | { | |
7838 | if (!wxPyCheckForApp()) SWIG_fail; | |
7839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7840 | result = (wxStaticLine *)new wxStaticLine(); | |
7841 | wxPyEndAllowThreads(__tstate); | |
7842 | if (PyErr_Occurred()) SWIG_fail; | |
7843 | } | |
7844 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 ); | |
7845 | return resultobj; | |
7846 | fail: | |
7847 | return NULL; | |
7848 | } | |
7849 | ||
7850 | ||
7851 | SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7852 | PyObject *resultobj = 0; | |
7853 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
7854 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7855 | int arg3 = (int) -1 ; | |
7856 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7857 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7858 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7859 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7860 | long arg6 = (long) wxLI_HORIZONTAL ; | |
7861 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
7862 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7863 | bool result; | |
7864 | void *argp1 = 0 ; | |
7865 | int res1 = 0 ; | |
7866 | void *argp2 = 0 ; | |
7867 | int res2 = 0 ; | |
7868 | int val3 ; | |
7869 | int ecode3 = 0 ; | |
7870 | wxPoint temp4 ; | |
7871 | wxSize temp5 ; | |
7872 | long val6 ; | |
7873 | int ecode6 = 0 ; | |
7874 | bool temp7 = false ; | |
7875 | PyObject * obj0 = 0 ; | |
7876 | PyObject * obj1 = 0 ; | |
7877 | PyObject * obj2 = 0 ; | |
7878 | PyObject * obj3 = 0 ; | |
7879 | PyObject * obj4 = 0 ; | |
7880 | PyObject * obj5 = 0 ; | |
7881 | PyObject * obj6 = 0 ; | |
7882 | char * kwnames[] = { | |
7883 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7884 | }; | |
7885 | ||
7886 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7887 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 ); | |
7888 | if (!SWIG_IsOK(res1)) { | |
7889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'"); | |
7890 | } | |
7891 | arg1 = reinterpret_cast< wxStaticLine * >(argp1); | |
7892 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7893 | if (!SWIG_IsOK(res2)) { | |
7894 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7895 | } | |
7896 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7897 | if (obj2) { | |
7898 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7899 | if (!SWIG_IsOK(ecode3)) { | |
7900 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'"); | |
7901 | } | |
7902 | arg3 = static_cast< int >(val3); | |
7903 | } | |
7904 | if (obj3) { | |
d55e5bfc | 7905 | { |
1bd55598 RD |
7906 | arg4 = &temp4; |
7907 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 7908 | } |
1bd55598 RD |
7909 | } |
7910 | if (obj4) { | |
d55e5bfc | 7911 | { |
1bd55598 RD |
7912 | arg5 = &temp5; |
7913 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7914 | } | |
7915 | } | |
7916 | if (obj5) { | |
7917 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7918 | if (!SWIG_IsOK(ecode6)) { | |
7919 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'"); | |
7920 | } | |
7921 | arg6 = static_cast< long >(val6); | |
7922 | } | |
7923 | if (obj6) { | |
7924 | { | |
7925 | arg7 = wxString_in_helper(obj6); | |
7926 | if (arg7 == NULL) SWIG_fail; | |
7927 | temp7 = true; | |
d55e5bfc | 7928 | } |
1bd55598 RD |
7929 | } |
7930 | { | |
7931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7932 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7933 | wxPyEndAllowThreads(__tstate); | |
7934 | if (PyErr_Occurred()) SWIG_fail; | |
7935 | } | |
7936 | { | |
7937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7938 | } | |
7939 | { | |
7940 | if (temp7) | |
7941 | delete arg7; | |
7942 | } | |
7943 | return resultobj; | |
7944 | fail: | |
7945 | { | |
7946 | if (temp7) | |
7947 | delete arg7; | |
7948 | } | |
7949 | return NULL; | |
d55e5bfc RD |
7950 | } |
7951 | ||
7952 | ||
1bd55598 RD |
7953 | SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7954 | PyObject *resultobj = 0; | |
7955 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
7956 | bool result; | |
7957 | void *argp1 = 0 ; | |
7958 | int res1 = 0 ; | |
7959 | PyObject *swig_obj[1] ; | |
7960 | ||
7961 | if (!args) SWIG_fail; | |
7962 | swig_obj[0] = args; | |
7963 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 ); | |
7964 | if (!SWIG_IsOK(res1)) { | |
7965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'"); | |
7966 | } | |
7967 | arg1 = reinterpret_cast< wxStaticLine * >(argp1); | |
7968 | { | |
7969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7970 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
7971 | wxPyEndAllowThreads(__tstate); | |
7972 | if (PyErr_Occurred()) SWIG_fail; | |
7973 | } | |
7974 | { | |
7975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7976 | } | |
7977 | return resultobj; | |
7978 | fail: | |
7979 | return NULL; | |
d55e5bfc RD |
7980 | } |
7981 | ||
7982 | ||
1bd55598 RD |
7983 | SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7984 | PyObject *resultobj = 0; | |
7985 | int result; | |
7986 | ||
7987 | if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail; | |
7988 | { | |
7989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7990 | result = (int)wxStaticLine::GetDefaultSize(); | |
7991 | wxPyEndAllowThreads(__tstate); | |
7992 | if (PyErr_Occurred()) SWIG_fail; | |
7993 | } | |
7994 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7995 | return resultobj; | |
7996 | fail: | |
7997 | return NULL; | |
7998 | } | |
7999 | ||
8000 | ||
8001 | SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8002 | PyObject *resultobj = 0; | |
8003 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8004 | SwigValueWrapper<wxVisualAttributes > result; | |
8005 | int val1 ; | |
8006 | int ecode1 = 0 ; | |
8007 | PyObject * obj0 = 0 ; | |
8008 | char * kwnames[] = { | |
8009 | (char *) "variant", NULL | |
8010 | }; | |
8011 | ||
8012 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8013 | if (obj0) { | |
8014 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8015 | if (!SWIG_IsOK(ecode1)) { | |
8016 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8017 | } | |
8018 | arg1 = static_cast< wxWindowVariant >(val1); | |
8019 | } | |
8020 | { | |
8021 | if (!wxPyCheckForApp()) SWIG_fail; | |
8022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8023 | result = wxStaticLine::GetClassDefaultAttributes(arg1); | |
8024 | wxPyEndAllowThreads(__tstate); | |
8025 | if (PyErr_Occurred()) SWIG_fail; | |
8026 | } | |
8027 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8028 | return resultobj; | |
8029 | fail: | |
8030 | return NULL; | |
8031 | } | |
8032 | ||
8033 | ||
8034 | SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8035 | PyObject *obj; | |
8036 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8037 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj)); | |
8038 | return SWIG_Py_Void(); | |
8039 | } | |
8040 | ||
8041 | SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8042 | return SWIG_Python_InitShadowInstance(args); | |
8043 | } | |
8044 | ||
8045 | SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8046 | PyObject *resultobj = 0; | |
8047 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8048 | int arg2 = (int) -1 ; | |
8049 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8050 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8051 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8052 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8053 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8054 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8055 | long arg6 = (long) 0 ; | |
8056 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
8057 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8058 | wxStaticText *result = 0 ; | |
8059 | void *argp1 = 0 ; | |
8060 | int res1 = 0 ; | |
8061 | int val2 ; | |
8062 | int ecode2 = 0 ; | |
8063 | bool temp3 = false ; | |
8064 | wxPoint temp4 ; | |
8065 | wxSize temp5 ; | |
8066 | long val6 ; | |
8067 | int ecode6 = 0 ; | |
8068 | bool temp7 = false ; | |
8069 | PyObject * obj0 = 0 ; | |
8070 | PyObject * obj1 = 0 ; | |
8071 | PyObject * obj2 = 0 ; | |
8072 | PyObject * obj3 = 0 ; | |
8073 | PyObject * obj4 = 0 ; | |
8074 | PyObject * obj5 = 0 ; | |
8075 | PyObject * obj6 = 0 ; | |
8076 | char * kwnames[] = { | |
8077 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8078 | }; | |
8079 | ||
8080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8081 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8082 | if (!SWIG_IsOK(res1)) { | |
8083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8084 | } | |
8085 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8086 | if (obj1) { | |
8087 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8088 | if (!SWIG_IsOK(ecode2)) { | |
8089 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'"); | |
8090 | } | |
8091 | arg2 = static_cast< int >(val2); | |
8092 | } | |
8093 | if (obj2) { | |
d55e5bfc | 8094 | { |
1bd55598 RD |
8095 | arg3 = wxString_in_helper(obj2); |
8096 | if (arg3 == NULL) SWIG_fail; | |
8097 | temp3 = true; | |
d55e5bfc | 8098 | } |
1bd55598 RD |
8099 | } |
8100 | if (obj3) { | |
d55e5bfc | 8101 | { |
1bd55598 RD |
8102 | arg4 = &temp4; |
8103 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 8104 | } |
1bd55598 RD |
8105 | } |
8106 | if (obj4) { | |
d55e5bfc | 8107 | { |
1bd55598 RD |
8108 | arg5 = &temp5; |
8109 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8110 | } |
1bd55598 RD |
8111 | } |
8112 | if (obj5) { | |
8113 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8114 | if (!SWIG_IsOK(ecode6)) { | |
8115 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'"); | |
8116 | } | |
8117 | arg6 = static_cast< long >(val6); | |
8118 | } | |
8119 | if (obj6) { | |
d55e5bfc | 8120 | { |
1bd55598 RD |
8121 | arg7 = wxString_in_helper(obj6); |
8122 | if (arg7 == NULL) SWIG_fail; | |
8123 | temp7 = true; | |
d55e5bfc | 8124 | } |
1bd55598 RD |
8125 | } |
8126 | { | |
8127 | if (!wxPyCheckForApp()) SWIG_fail; | |
8128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8129 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8130 | wxPyEndAllowThreads(__tstate); | |
8131 | if (PyErr_Occurred()) SWIG_fail; | |
8132 | } | |
8133 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 ); | |
8134 | { | |
8135 | if (temp3) | |
8136 | delete arg3; | |
8137 | } | |
8138 | { | |
8139 | if (temp7) | |
8140 | delete arg7; | |
8141 | } | |
8142 | return resultobj; | |
8143 | fail: | |
8144 | { | |
8145 | if (temp3) | |
8146 | delete arg3; | |
8147 | } | |
8148 | { | |
8149 | if (temp7) | |
8150 | delete arg7; | |
8151 | } | |
8152 | return NULL; | |
d55e5bfc RD |
8153 | } |
8154 | ||
8155 | ||
1bd55598 RD |
8156 | SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8157 | PyObject *resultobj = 0; | |
8158 | wxStaticText *result = 0 ; | |
8159 | ||
8160 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail; | |
8161 | { | |
8162 | if (!wxPyCheckForApp()) SWIG_fail; | |
8163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8164 | result = (wxStaticText *)new wxStaticText(); | |
8165 | wxPyEndAllowThreads(__tstate); | |
8166 | if (PyErr_Occurred()) SWIG_fail; | |
8167 | } | |
8168 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 ); | |
8169 | return resultobj; | |
8170 | fail: | |
8171 | return NULL; | |
8172 | } | |
8173 | ||
8174 | ||
8175 | SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8176 | PyObject *resultobj = 0; | |
8177 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
8178 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8179 | int arg3 = (int) -1 ; | |
8180 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8181 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8182 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8183 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8184 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8185 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8186 | long arg7 = (long) 0 ; | |
8187 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
8188 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8189 | bool result; | |
8190 | void *argp1 = 0 ; | |
8191 | int res1 = 0 ; | |
8192 | void *argp2 = 0 ; | |
8193 | int res2 = 0 ; | |
8194 | int val3 ; | |
8195 | int ecode3 = 0 ; | |
8196 | bool temp4 = false ; | |
8197 | wxPoint temp5 ; | |
8198 | wxSize temp6 ; | |
8199 | long val7 ; | |
8200 | int ecode7 = 0 ; | |
8201 | bool temp8 = false ; | |
8202 | PyObject * obj0 = 0 ; | |
8203 | PyObject * obj1 = 0 ; | |
8204 | PyObject * obj2 = 0 ; | |
8205 | PyObject * obj3 = 0 ; | |
8206 | PyObject * obj4 = 0 ; | |
8207 | PyObject * obj5 = 0 ; | |
8208 | PyObject * obj6 = 0 ; | |
8209 | PyObject * obj7 = 0 ; | |
8210 | char * kwnames[] = { | |
8211 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8212 | }; | |
8213 | ||
8214 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8215 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 ); | |
8216 | if (!SWIG_IsOK(res1)) { | |
8217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'"); | |
8218 | } | |
8219 | arg1 = reinterpret_cast< wxStaticText * >(argp1); | |
8220 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8221 | if (!SWIG_IsOK(res2)) { | |
8222 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8223 | } | |
8224 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8225 | if (obj2) { | |
8226 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8227 | if (!SWIG_IsOK(ecode3)) { | |
8228 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'"); | |
8229 | } | |
8230 | arg3 = static_cast< int >(val3); | |
8231 | } | |
8232 | if (obj3) { | |
d55e5bfc | 8233 | { |
1bd55598 RD |
8234 | arg4 = wxString_in_helper(obj3); |
8235 | if (arg4 == NULL) SWIG_fail; | |
8236 | temp4 = true; | |
d55e5bfc | 8237 | } |
1bd55598 RD |
8238 | } |
8239 | if (obj4) { | |
d55e5bfc | 8240 | { |
1bd55598 RD |
8241 | arg5 = &temp5; |
8242 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8243 | } |
1bd55598 RD |
8244 | } |
8245 | if (obj5) { | |
d55e5bfc | 8246 | { |
1bd55598 RD |
8247 | arg6 = &temp6; |
8248 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 8249 | } |
1bd55598 RD |
8250 | } |
8251 | if (obj6) { | |
8252 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8253 | if (!SWIG_IsOK(ecode7)) { | |
8254 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'"); | |
8255 | } | |
8256 | arg7 = static_cast< long >(val7); | |
8257 | } | |
8258 | if (obj7) { | |
d55e5bfc | 8259 | { |
1bd55598 RD |
8260 | arg8 = wxString_in_helper(obj7); |
8261 | if (arg8 == NULL) SWIG_fail; | |
8262 | temp8 = true; | |
d55e5bfc | 8263 | } |
1bd55598 RD |
8264 | } |
8265 | { | |
8266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8267 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8268 | wxPyEndAllowThreads(__tstate); | |
8269 | if (PyErr_Occurred()) SWIG_fail; | |
8270 | } | |
8271 | { | |
8272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8273 | } | |
8274 | { | |
8275 | if (temp4) | |
8276 | delete arg4; | |
8277 | } | |
8278 | { | |
8279 | if (temp8) | |
8280 | delete arg8; | |
8281 | } | |
8282 | return resultobj; | |
8283 | fail: | |
8284 | { | |
8285 | if (temp4) | |
8286 | delete arg4; | |
8287 | } | |
8288 | { | |
8289 | if (temp8) | |
8290 | delete arg8; | |
8291 | } | |
8292 | return NULL; | |
8293 | } | |
8294 | ||
8295 | ||
8296 | SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8297 | PyObject *resultobj = 0; | |
8298 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
8299 | int arg2 ; | |
8300 | void *argp1 = 0 ; | |
8301 | int res1 = 0 ; | |
8302 | int val2 ; | |
8303 | int ecode2 = 0 ; | |
8304 | PyObject * obj0 = 0 ; | |
8305 | PyObject * obj1 = 0 ; | |
8306 | char * kwnames[] = { | |
8307 | (char *) "self",(char *) "width", NULL | |
8308 | }; | |
8309 | ||
8310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 ); | |
8312 | if (!SWIG_IsOK(res1)) { | |
8313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'"); | |
8314 | } | |
8315 | arg1 = reinterpret_cast< wxStaticText * >(argp1); | |
8316 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8317 | if (!SWIG_IsOK(ecode2)) { | |
8318 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'"); | |
8319 | } | |
8320 | arg2 = static_cast< int >(val2); | |
8321 | { | |
8322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8323 | (arg1)->Wrap(arg2); | |
8324 | wxPyEndAllowThreads(__tstate); | |
8325 | if (PyErr_Occurred()) SWIG_fail; | |
8326 | } | |
8327 | resultobj = SWIG_Py_Void(); | |
8328 | return resultobj; | |
8329 | fail: | |
8330 | return NULL; | |
8331 | } | |
8332 | ||
8333 | ||
8334 | SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8335 | PyObject *resultobj = 0; | |
8336 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8337 | SwigValueWrapper<wxVisualAttributes > result; | |
8338 | int val1 ; | |
8339 | int ecode1 = 0 ; | |
8340 | PyObject * obj0 = 0 ; | |
8341 | char * kwnames[] = { | |
8342 | (char *) "variant", NULL | |
8343 | }; | |
8344 | ||
8345 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8346 | if (obj0) { | |
8347 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8348 | if (!SWIG_IsOK(ecode1)) { | |
8349 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8350 | } | |
8351 | arg1 = static_cast< wxWindowVariant >(val1); | |
8352 | } | |
8353 | { | |
8354 | if (!wxPyCheckForApp()) SWIG_fail; | |
8355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8356 | result = wxStaticText::GetClassDefaultAttributes(arg1); | |
8357 | wxPyEndAllowThreads(__tstate); | |
8358 | if (PyErr_Occurred()) SWIG_fail; | |
8359 | } | |
8360 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8361 | return resultobj; | |
8362 | fail: | |
8363 | return NULL; | |
8364 | } | |
8365 | ||
8366 | ||
8367 | SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8368 | PyObject *obj; | |
8369 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8370 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj)); | |
8371 | return SWIG_Py_Void(); | |
8372 | } | |
8373 | ||
8374 | SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8375 | return SWIG_Python_InitShadowInstance(args); | |
8376 | } | |
8377 | ||
8378 | SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8379 | PyObject *resultobj = 0; | |
8380 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8381 | int arg2 = (int) -1 ; | |
8382 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
8383 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
8384 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8385 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8386 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8387 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8388 | long arg6 = (long) 0 ; | |
8389 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
8390 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8391 | wxStaticBitmap *result = 0 ; | |
8392 | void *argp1 = 0 ; | |
8393 | int res1 = 0 ; | |
8394 | int val2 ; | |
8395 | int ecode2 = 0 ; | |
8396 | void *argp3 = 0 ; | |
8397 | int res3 = 0 ; | |
8398 | wxPoint temp4 ; | |
8399 | wxSize temp5 ; | |
8400 | long val6 ; | |
8401 | int ecode6 = 0 ; | |
8402 | bool temp7 = false ; | |
8403 | PyObject * obj0 = 0 ; | |
8404 | PyObject * obj1 = 0 ; | |
8405 | PyObject * obj2 = 0 ; | |
8406 | PyObject * obj3 = 0 ; | |
8407 | PyObject * obj4 = 0 ; | |
8408 | PyObject * obj5 = 0 ; | |
8409 | PyObject * obj6 = 0 ; | |
8410 | char * kwnames[] = { | |
8411 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8412 | }; | |
8413 | ||
8414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8416 | if (!SWIG_IsOK(res1)) { | |
8417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8418 | } | |
8419 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8420 | if (obj1) { | |
8421 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8422 | if (!SWIG_IsOK(ecode2)) { | |
8423 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'"); | |
8424 | } | |
8425 | arg2 = static_cast< int >(val2); | |
8426 | } | |
8427 | if (obj2) { | |
8428 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8429 | if (!SWIG_IsOK(res3)) { | |
8430 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 8431 | } |
1bd55598 RD |
8432 | if (!argp3) { |
8433 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 8434 | } |
1bd55598 RD |
8435 | arg3 = reinterpret_cast< wxBitmap * >(argp3); |
8436 | } | |
8437 | if (obj3) { | |
d55e5bfc | 8438 | { |
1bd55598 RD |
8439 | arg4 = &temp4; |
8440 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
f20a2e1f | 8441 | } |
1bd55598 RD |
8442 | } |
8443 | if (obj4) { | |
f20a2e1f | 8444 | { |
1bd55598 RD |
8445 | arg5 = &temp5; |
8446 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
f20a2e1f | 8447 | } |
1bd55598 RD |
8448 | } |
8449 | if (obj5) { | |
8450 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8451 | if (!SWIG_IsOK(ecode6)) { | |
8452 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'"); | |
8453 | } | |
8454 | arg6 = static_cast< long >(val6); | |
8455 | } | |
8456 | if (obj6) { | |
f20a2e1f | 8457 | { |
1bd55598 RD |
8458 | arg7 = wxString_in_helper(obj6); |
8459 | if (arg7 == NULL) SWIG_fail; | |
8460 | temp7 = true; | |
f20a2e1f | 8461 | } |
1bd55598 RD |
8462 | } |
8463 | { | |
8464 | if (!wxPyCheckForApp()) SWIG_fail; | |
8465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8466 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8467 | wxPyEndAllowThreads(__tstate); | |
8468 | if (PyErr_Occurred()) SWIG_fail; | |
8469 | } | |
8470 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 ); | |
8471 | { | |
8472 | if (temp7) | |
8473 | delete arg7; | |
8474 | } | |
8475 | return resultobj; | |
8476 | fail: | |
8477 | { | |
8478 | if (temp7) | |
8479 | delete arg7; | |
8480 | } | |
8481 | return NULL; | |
f20a2e1f RD |
8482 | } |
8483 | ||
8484 | ||
1bd55598 RD |
8485 | SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8486 | PyObject *resultobj = 0; | |
8487 | wxStaticBitmap *result = 0 ; | |
8488 | ||
8489 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail; | |
8490 | { | |
8491 | if (!wxPyCheckForApp()) SWIG_fail; | |
8492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8493 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
8494 | wxPyEndAllowThreads(__tstate); | |
8495 | if (PyErr_Occurred()) SWIG_fail; | |
8496 | } | |
8497 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 ); | |
8498 | return resultobj; | |
8499 | fail: | |
8500 | return NULL; | |
8501 | } | |
8502 | ||
8503 | ||
8504 | SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8505 | PyObject *resultobj = 0; | |
8506 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8507 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8508 | int arg3 = (int) -1 ; | |
8509 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
8510 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
8511 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8512 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8513 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8514 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8515 | long arg7 = (long) 0 ; | |
8516 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
8517 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8518 | bool result; | |
8519 | void *argp1 = 0 ; | |
8520 | int res1 = 0 ; | |
8521 | void *argp2 = 0 ; | |
8522 | int res2 = 0 ; | |
8523 | int val3 ; | |
8524 | int ecode3 = 0 ; | |
8525 | void *argp4 = 0 ; | |
8526 | int res4 = 0 ; | |
8527 | wxPoint temp5 ; | |
8528 | wxSize temp6 ; | |
8529 | long val7 ; | |
8530 | int ecode7 = 0 ; | |
8531 | bool temp8 = false ; | |
8532 | PyObject * obj0 = 0 ; | |
8533 | PyObject * obj1 = 0 ; | |
8534 | PyObject * obj2 = 0 ; | |
8535 | PyObject * obj3 = 0 ; | |
8536 | PyObject * obj4 = 0 ; | |
8537 | PyObject * obj5 = 0 ; | |
8538 | PyObject * obj6 = 0 ; | |
8539 | PyObject * obj7 = 0 ; | |
8540 | char * kwnames[] = { | |
8541 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8542 | }; | |
8543 | ||
8544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8546 | if (!SWIG_IsOK(res1)) { | |
8547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8548 | } | |
8549 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8550 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8551 | if (!SWIG_IsOK(res2)) { | |
8552 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8553 | } | |
8554 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8555 | if (obj2) { | |
8556 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8557 | if (!SWIG_IsOK(ecode3)) { | |
8558 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'"); | |
8559 | } | |
8560 | arg3 = static_cast< int >(val3); | |
8561 | } | |
8562 | if (obj3) { | |
8563 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8564 | if (!SWIG_IsOK(res4)) { | |
8565 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 8566 | } |
1bd55598 RD |
8567 | if (!argp4) { |
8568 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 8569 | } |
1bd55598 RD |
8570 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
8571 | } | |
8572 | if (obj4) { | |
d55e5bfc | 8573 | { |
1bd55598 RD |
8574 | arg5 = &temp5; |
8575 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8576 | } |
1bd55598 RD |
8577 | } |
8578 | if (obj5) { | |
d55e5bfc | 8579 | { |
1bd55598 RD |
8580 | arg6 = &temp6; |
8581 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 8582 | } |
1bd55598 RD |
8583 | } |
8584 | if (obj6) { | |
8585 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8586 | if (!SWIG_IsOK(ecode7)) { | |
8587 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'"); | |
8588 | } | |
8589 | arg7 = static_cast< long >(val7); | |
8590 | } | |
8591 | if (obj7) { | |
d55e5bfc | 8592 | { |
1bd55598 RD |
8593 | arg8 = wxString_in_helper(obj7); |
8594 | if (arg8 == NULL) SWIG_fail; | |
8595 | temp8 = true; | |
d55e5bfc | 8596 | } |
1bd55598 RD |
8597 | } |
8598 | { | |
8599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8600 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8601 | wxPyEndAllowThreads(__tstate); | |
8602 | if (PyErr_Occurred()) SWIG_fail; | |
8603 | } | |
8604 | { | |
8605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8606 | } | |
8607 | { | |
8608 | if (temp8) | |
8609 | delete arg8; | |
8610 | } | |
8611 | return resultobj; | |
8612 | fail: | |
8613 | { | |
8614 | if (temp8) | |
8615 | delete arg8; | |
8616 | } | |
8617 | return NULL; | |
d55e5bfc RD |
8618 | } |
8619 | ||
8620 | ||
1bd55598 RD |
8621 | SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8622 | PyObject *resultobj = 0; | |
8623 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8624 | wxBitmap result; | |
8625 | void *argp1 = 0 ; | |
8626 | int res1 = 0 ; | |
8627 | PyObject *swig_obj[1] ; | |
8628 | ||
8629 | if (!args) SWIG_fail; | |
8630 | swig_obj[0] = args; | |
8631 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8632 | if (!SWIG_IsOK(res1)) { | |
8633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8634 | } | |
8635 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8636 | { | |
8637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8638 | result = (arg1)->GetBitmap(); | |
8639 | wxPyEndAllowThreads(__tstate); | |
8640 | if (PyErr_Occurred()) SWIG_fail; | |
8641 | } | |
8642 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
8643 | return resultobj; | |
8644 | fail: | |
8645 | return NULL; | |
8646 | } | |
8647 | ||
8648 | ||
8649 | SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8650 | PyObject *resultobj = 0; | |
8651 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8652 | wxBitmap *arg2 = 0 ; | |
8653 | void *argp1 = 0 ; | |
8654 | int res1 = 0 ; | |
8655 | void *argp2 = 0 ; | |
8656 | int res2 = 0 ; | |
8657 | PyObject * obj0 = 0 ; | |
8658 | PyObject * obj1 = 0 ; | |
8659 | char * kwnames[] = { | |
8660 | (char *) "self",(char *) "bitmap", NULL | |
8661 | }; | |
8662 | ||
8663 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8664 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8665 | if (!SWIG_IsOK(res1)) { | |
8666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8667 | } | |
8668 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8669 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8670 | if (!SWIG_IsOK(res2)) { | |
8671 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8672 | } | |
8673 | if (!argp2) { | |
8674 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8675 | } | |
8676 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8677 | { | |
8678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8679 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
8680 | wxPyEndAllowThreads(__tstate); | |
8681 | if (PyErr_Occurred()) SWIG_fail; | |
8682 | } | |
8683 | resultobj = SWIG_Py_Void(); | |
8684 | return resultobj; | |
8685 | fail: | |
8686 | return NULL; | |
8687 | } | |
8688 | ||
8689 | ||
8690 | SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8691 | PyObject *resultobj = 0; | |
8692 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8693 | wxIcon *arg2 = 0 ; | |
8694 | void *argp1 = 0 ; | |
8695 | int res1 = 0 ; | |
8696 | void *argp2 = 0 ; | |
8697 | int res2 = 0 ; | |
8698 | PyObject * obj0 = 0 ; | |
8699 | PyObject * obj1 = 0 ; | |
8700 | char * kwnames[] = { | |
8701 | (char *) "self",(char *) "icon", NULL | |
8702 | }; | |
8703 | ||
8704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
8705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8706 | if (!SWIG_IsOK(res1)) { | |
8707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8708 | } | |
8709 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8710 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
8711 | if (!SWIG_IsOK(res2)) { | |
8712 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
8713 | } | |
8714 | if (!argp2) { | |
8715 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
8716 | } | |
8717 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
8718 | { | |
8719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8720 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
8721 | wxPyEndAllowThreads(__tstate); | |
8722 | if (PyErr_Occurred()) SWIG_fail; | |
8723 | } | |
8724 | resultobj = SWIG_Py_Void(); | |
8725 | return resultobj; | |
8726 | fail: | |
8727 | return NULL; | |
8728 | } | |
8729 | ||
8730 | ||
8731 | SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8732 | PyObject *resultobj = 0; | |
8733 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8734 | SwigValueWrapper<wxVisualAttributes > result; | |
8735 | int val1 ; | |
8736 | int ecode1 = 0 ; | |
8737 | PyObject * obj0 = 0 ; | |
8738 | char * kwnames[] = { | |
8739 | (char *) "variant", NULL | |
8740 | }; | |
8741 | ||
8742 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8743 | if (obj0) { | |
8744 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8745 | if (!SWIG_IsOK(ecode1)) { | |
8746 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8747 | } | |
8748 | arg1 = static_cast< wxWindowVariant >(val1); | |
8749 | } | |
8750 | { | |
8751 | if (!wxPyCheckForApp()) SWIG_fail; | |
8752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8753 | result = wxStaticBitmap::GetClassDefaultAttributes(arg1); | |
8754 | wxPyEndAllowThreads(__tstate); | |
8755 | if (PyErr_Occurred()) SWIG_fail; | |
8756 | } | |
8757 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8758 | return resultobj; | |
8759 | fail: | |
8760 | return NULL; | |
d55e5bfc RD |
8761 | } |
8762 | ||
8763 | ||
1bd55598 RD |
8764 | SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8765 | PyObject *obj; | |
8766 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8767 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj)); | |
8768 | return SWIG_Py_Void(); | |
d55e5bfc RD |
8769 | } |
8770 | ||
1bd55598 RD |
8771 | SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8772 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
8773 | } |
8774 | ||
1bd55598 RD |
8775 | SWIGINTERN int ListBoxNameStr_set(PyObject *) { |
8776 | SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only."); | |
8777 | return 1; | |
f20a2e1f RD |
8778 | } |
8779 | ||
8780 | ||
1bd55598 RD |
8781 | SWIGINTERN PyObject *ListBoxNameStr_get(void) { |
8782 | PyObject *pyobj = 0; | |
8783 | ||
8784 | { | |
8785 | #if wxUSE_UNICODE | |
8786 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
8787 | #else | |
8788 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
8789 | #endif | |
8790 | } | |
8791 | return pyobj; | |
8792 | } | |
8793 | ||
8794 | ||
8795 | SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8796 | PyObject *resultobj = 0; | |
8797 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8798 | int arg2 = (int) -1 ; | |
8799 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8800 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8801 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8802 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8803 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
8804 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
8805 | long arg6 = (long) 0 ; | |
8806 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8807 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8808 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
8809 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8810 | wxListBox *result = 0 ; | |
8811 | void *argp1 = 0 ; | |
8812 | int res1 = 0 ; | |
8813 | int val2 ; | |
8814 | int ecode2 = 0 ; | |
8815 | wxPoint temp3 ; | |
8816 | wxSize temp4 ; | |
8817 | bool temp5 = false ; | |
8818 | long val6 ; | |
8819 | int ecode6 = 0 ; | |
8820 | void *argp7 = 0 ; | |
8821 | int res7 = 0 ; | |
8822 | bool temp8 = false ; | |
8823 | PyObject * obj0 = 0 ; | |
8824 | PyObject * obj1 = 0 ; | |
8825 | PyObject * obj2 = 0 ; | |
8826 | PyObject * obj3 = 0 ; | |
8827 | PyObject * obj4 = 0 ; | |
8828 | PyObject * obj5 = 0 ; | |
8829 | PyObject * obj6 = 0 ; | |
8830 | PyObject * obj7 = 0 ; | |
8831 | char * kwnames[] = { | |
8832 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8833 | }; | |
8834 | ||
8835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8837 | if (!SWIG_IsOK(res1)) { | |
8838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8839 | } | |
8840 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8841 | if (obj1) { | |
8842 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8843 | if (!SWIG_IsOK(ecode2)) { | |
8844 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'"); | |
8845 | } | |
8846 | arg2 = static_cast< int >(val2); | |
8847 | } | |
8848 | if (obj2) { | |
d55e5bfc | 8849 | { |
1bd55598 RD |
8850 | arg3 = &temp3; |
8851 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 8852 | } |
1bd55598 RD |
8853 | } |
8854 | if (obj3) { | |
d55e5bfc | 8855 | { |
1bd55598 RD |
8856 | arg4 = &temp4; |
8857 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 8858 | } |
1bd55598 RD |
8859 | } |
8860 | if (obj4) { | |
d55e5bfc | 8861 | { |
1bd55598 RD |
8862 | if (! PySequence_Check(obj4)) { |
8863 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8864 | SWIG_fail; | |
8865 | } | |
8866 | arg5 = new wxArrayString; | |
8867 | temp5 = true; | |
8868 | int i, len=PySequence_Length(obj4); | |
8869 | for (i=0; i<len; i++) { | |
8870 | PyObject* item = PySequence_GetItem(obj4, i); | |
8871 | wxString* s = wxString_in_helper(item); | |
8872 | if (PyErr_Occurred()) SWIG_fail; | |
8873 | arg5->Add(*s); | |
8874 | delete s; | |
8875 | Py_DECREF(item); | |
8876 | } | |
d55e5bfc | 8877 | } |
1bd55598 RD |
8878 | } |
8879 | if (obj5) { | |
8880 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8881 | if (!SWIG_IsOK(ecode6)) { | |
8882 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'"); | |
8883 | } | |
8884 | arg6 = static_cast< long >(val6); | |
8885 | } | |
8886 | if (obj6) { | |
8887 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
8888 | if (!SWIG_IsOK(res7)) { | |
8889 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 8890 | } |
1bd55598 RD |
8891 | if (!argp7) { |
8892 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 8893 | } |
1bd55598 RD |
8894 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
8895 | } | |
8896 | if (obj7) { | |
d55e5bfc | 8897 | { |
1bd55598 RD |
8898 | arg8 = wxString_in_helper(obj7); |
8899 | if (arg8 == NULL) SWIG_fail; | |
8900 | temp8 = true; | |
d55e5bfc | 8901 | } |
1bd55598 RD |
8902 | } |
8903 | { | |
8904 | if (!wxPyCheckForApp()) SWIG_fail; | |
8905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8906 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8907 | wxPyEndAllowThreads(__tstate); | |
8908 | if (PyErr_Occurred()) SWIG_fail; | |
8909 | } | |
8910 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 ); | |
8911 | { | |
8912 | if (temp5) delete arg5; | |
8913 | } | |
8914 | { | |
8915 | if (temp8) | |
8916 | delete arg8; | |
8917 | } | |
8918 | return resultobj; | |
8919 | fail: | |
8920 | { | |
8921 | if (temp5) delete arg5; | |
8922 | } | |
8923 | { | |
8924 | if (temp8) | |
8925 | delete arg8; | |
8926 | } | |
8927 | return NULL; | |
d55e5bfc RD |
8928 | } |
8929 | ||
8930 | ||
1bd55598 RD |
8931 | SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8932 | PyObject *resultobj = 0; | |
8933 | wxListBox *result = 0 ; | |
8934 | ||
8935 | if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail; | |
8936 | { | |
8937 | if (!wxPyCheckForApp()) SWIG_fail; | |
8938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8939 | result = (wxListBox *)new wxListBox(); | |
8940 | wxPyEndAllowThreads(__tstate); | |
8941 | if (PyErr_Occurred()) SWIG_fail; | |
8942 | } | |
8943 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 ); | |
8944 | return resultobj; | |
8945 | fail: | |
8946 | return NULL; | |
8947 | } | |
8948 | ||
8949 | ||
8950 | SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8951 | PyObject *resultobj = 0; | |
8952 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8953 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8954 | int arg3 = (int) -1 ; | |
8955 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8956 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8957 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8958 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8959 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
8960 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
8961 | long arg7 = (long) 0 ; | |
8962 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8963 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8964 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
8965 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8966 | bool result; | |
8967 | void *argp1 = 0 ; | |
8968 | int res1 = 0 ; | |
8969 | void *argp2 = 0 ; | |
8970 | int res2 = 0 ; | |
8971 | int val3 ; | |
8972 | int ecode3 = 0 ; | |
8973 | wxPoint temp4 ; | |
8974 | wxSize temp5 ; | |
8975 | bool temp6 = false ; | |
8976 | long val7 ; | |
8977 | int ecode7 = 0 ; | |
8978 | void *argp8 = 0 ; | |
8979 | int res8 = 0 ; | |
8980 | bool temp9 = false ; | |
8981 | PyObject * obj0 = 0 ; | |
8982 | PyObject * obj1 = 0 ; | |
8983 | PyObject * obj2 = 0 ; | |
8984 | PyObject * obj3 = 0 ; | |
8985 | PyObject * obj4 = 0 ; | |
8986 | PyObject * obj5 = 0 ; | |
8987 | PyObject * obj6 = 0 ; | |
8988 | PyObject * obj7 = 0 ; | |
8989 | PyObject * obj8 = 0 ; | |
8990 | char * kwnames[] = { | |
8991 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8992 | }; | |
8993 | ||
8994 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
8995 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
8996 | if (!SWIG_IsOK(res1)) { | |
8997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
8998 | } | |
8999 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9000 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9001 | if (!SWIG_IsOK(res2)) { | |
9002 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9003 | } | |
9004 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9005 | if (obj2) { | |
9006 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9007 | if (!SWIG_IsOK(ecode3)) { | |
9008 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
9009 | } | |
9010 | arg3 = static_cast< int >(val3); | |
9011 | } | |
9012 | if (obj3) { | |
d55e5bfc | 9013 | { |
1bd55598 RD |
9014 | arg4 = &temp4; |
9015 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 9016 | } |
1bd55598 RD |
9017 | } |
9018 | if (obj4) { | |
d55e5bfc | 9019 | { |
1bd55598 RD |
9020 | arg5 = &temp5; |
9021 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 9022 | } |
1bd55598 RD |
9023 | } |
9024 | if (obj5) { | |
943e8dfd | 9025 | { |
1bd55598 RD |
9026 | if (! PySequence_Check(obj5)) { |
9027 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9028 | SWIG_fail; | |
9029 | } | |
9030 | arg6 = new wxArrayString; | |
9031 | temp6 = true; | |
9032 | int i, len=PySequence_Length(obj5); | |
9033 | for (i=0; i<len; i++) { | |
9034 | PyObject* item = PySequence_GetItem(obj5, i); | |
9035 | wxString* s = wxString_in_helper(item); | |
9036 | if (PyErr_Occurred()) SWIG_fail; | |
9037 | arg6->Add(*s); | |
9038 | delete s; | |
9039 | Py_DECREF(item); | |
9040 | } | |
943e8dfd | 9041 | } |
1bd55598 RD |
9042 | } |
9043 | if (obj6) { | |
9044 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
9045 | if (!SWIG_IsOK(ecode7)) { | |
9046 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
9047 | } | |
9048 | arg7 = static_cast< long >(val7); | |
9049 | } | |
9050 | if (obj7) { | |
9051 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
9052 | if (!SWIG_IsOK(res8)) { | |
9053 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
943e8dfd | 9054 | } |
1bd55598 RD |
9055 | if (!argp8) { |
9056 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
f20a2e1f | 9057 | } |
1bd55598 RD |
9058 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
9059 | } | |
9060 | if (obj8) { | |
f20a2e1f | 9061 | { |
1bd55598 RD |
9062 | arg9 = wxString_in_helper(obj8); |
9063 | if (arg9 == NULL) SWIG_fail; | |
9064 | temp9 = true; | |
f20a2e1f | 9065 | } |
1bd55598 RD |
9066 | } |
9067 | { | |
9068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9069 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
9070 | wxPyEndAllowThreads(__tstate); | |
9071 | if (PyErr_Occurred()) SWIG_fail; | |
9072 | } | |
9073 | { | |
9074 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9075 | } | |
9076 | { | |
9077 | if (temp6) delete arg6; | |
9078 | } | |
9079 | { | |
9080 | if (temp9) | |
9081 | delete arg9; | |
9082 | } | |
9083 | return resultobj; | |
9084 | fail: | |
9085 | { | |
9086 | if (temp6) delete arg6; | |
9087 | } | |
9088 | { | |
9089 | if (temp9) | |
9090 | delete arg9; | |
9091 | } | |
9092 | return NULL; | |
9093 | } | |
9094 | ||
9095 | ||
9096 | SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9097 | PyObject *resultobj = 0; | |
9098 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9099 | wxString *arg2 = 0 ; | |
9100 | int arg3 ; | |
9101 | PyObject *arg4 = (PyObject *) NULL ; | |
9102 | void *argp1 = 0 ; | |
9103 | int res1 = 0 ; | |
9104 | bool temp2 = false ; | |
9105 | int val3 ; | |
9106 | int ecode3 = 0 ; | |
9107 | PyObject * obj0 = 0 ; | |
9108 | PyObject * obj1 = 0 ; | |
9109 | PyObject * obj2 = 0 ; | |
9110 | PyObject * obj3 = 0 ; | |
9111 | char * kwnames[] = { | |
9112 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
9113 | }; | |
9114 | ||
9115 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9116 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9117 | if (!SWIG_IsOK(res1)) { | |
9118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9119 | } | |
9120 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9121 | { | |
9122 | arg2 = wxString_in_helper(obj1); | |
9123 | if (arg2 == NULL) SWIG_fail; | |
9124 | temp2 = true; | |
9125 | } | |
9126 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9127 | if (!SWIG_IsOK(ecode3)) { | |
9128 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'"); | |
9129 | } | |
9130 | arg3 = static_cast< int >(val3); | |
9131 | if (obj3) { | |
9132 | arg4 = obj3; | |
9133 | } | |
9134 | { | |
9135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9136 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
9137 | wxPyEndAllowThreads(__tstate); | |
9138 | if (PyErr_Occurred()) SWIG_fail; | |
9139 | } | |
9140 | resultobj = SWIG_Py_Void(); | |
9141 | { | |
9142 | if (temp2) | |
9143 | delete arg2; | |
9144 | } | |
9145 | return resultobj; | |
9146 | fail: | |
9147 | { | |
9148 | if (temp2) | |
9149 | delete arg2; | |
9150 | } | |
9151 | return NULL; | |
9152 | } | |
9153 | ||
9154 | ||
9155 | SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9156 | PyObject *resultobj = 0; | |
9157 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9158 | wxArrayString *arg2 = 0 ; | |
50f151d7 | 9159 | unsigned int arg3 ; |
1bd55598 RD |
9160 | void *argp1 = 0 ; |
9161 | int res1 = 0 ; | |
9162 | bool temp2 = false ; | |
50f151d7 | 9163 | unsigned int val3 ; |
1bd55598 RD |
9164 | int ecode3 = 0 ; |
9165 | PyObject * obj0 = 0 ; | |
9166 | PyObject * obj1 = 0 ; | |
9167 | PyObject * obj2 = 0 ; | |
9168 | char * kwnames[] = { | |
9169 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
9170 | }; | |
9171 | ||
9172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9174 | if (!SWIG_IsOK(res1)) { | |
9175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9176 | } | |
9177 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9178 | { | |
9179 | if (! PySequence_Check(obj1)) { | |
9180 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9181 | SWIG_fail; | |
9182 | } | |
9183 | arg2 = new wxArrayString; | |
9184 | temp2 = true; | |
9185 | int i, len=PySequence_Length(obj1); | |
9186 | for (i=0; i<len; i++) { | |
9187 | PyObject* item = PySequence_GetItem(obj1, i); | |
9188 | wxString* s = wxString_in_helper(item); | |
9189 | if (PyErr_Occurred()) SWIG_fail; | |
9190 | arg2->Add(*s); | |
9191 | delete s; | |
9192 | Py_DECREF(item); | |
f20a2e1f | 9193 | } |
1bd55598 | 9194 | } |
50f151d7 | 9195 | ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); |
1bd55598 | 9196 | if (!SWIG_IsOK(ecode3)) { |
50f151d7 | 9197 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'"); |
1bd55598 | 9198 | } |
50f151d7 | 9199 | arg3 = static_cast< unsigned int >(val3); |
1bd55598 RD |
9200 | { |
9201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9202 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
9203 | wxPyEndAllowThreads(__tstate); | |
9204 | if (PyErr_Occurred()) SWIG_fail; | |
9205 | } | |
9206 | resultobj = SWIG_Py_Void(); | |
9207 | { | |
9208 | if (temp2) delete arg2; | |
9209 | } | |
9210 | return resultobj; | |
9211 | fail: | |
9212 | { | |
9213 | if (temp2) delete arg2; | |
9214 | } | |
9215 | return NULL; | |
f20a2e1f RD |
9216 | } |
9217 | ||
9218 | ||
1bd55598 RD |
9219 | SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9220 | PyObject *resultobj = 0; | |
9221 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9222 | wxArrayString *arg2 = 0 ; | |
9223 | void *argp1 = 0 ; | |
9224 | int res1 = 0 ; | |
9225 | bool temp2 = false ; | |
9226 | PyObject * obj0 = 0 ; | |
9227 | PyObject * obj1 = 0 ; | |
9228 | char * kwnames[] = { | |
9229 | (char *) "self",(char *) "items", NULL | |
9230 | }; | |
9231 | ||
9232 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail; | |
9233 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9234 | if (!SWIG_IsOK(res1)) { | |
9235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9236 | } | |
9237 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9238 | { | |
9239 | if (! PySequence_Check(obj1)) { | |
9240 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9241 | SWIG_fail; | |
9242 | } | |
9243 | arg2 = new wxArrayString; | |
9244 | temp2 = true; | |
9245 | int i, len=PySequence_Length(obj1); | |
9246 | for (i=0; i<len; i++) { | |
9247 | PyObject* item = PySequence_GetItem(obj1, i); | |
9248 | wxString* s = wxString_in_helper(item); | |
9249 | if (PyErr_Occurred()) SWIG_fail; | |
9250 | arg2->Add(*s); | |
9251 | delete s; | |
9252 | Py_DECREF(item); | |
bfddbb17 | 9253 | } |
1bd55598 RD |
9254 | } |
9255 | { | |
9256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9257 | (arg1)->Set((wxArrayString const &)*arg2); | |
9258 | wxPyEndAllowThreads(__tstate); | |
9259 | if (PyErr_Occurred()) SWIG_fail; | |
9260 | } | |
9261 | resultobj = SWIG_Py_Void(); | |
9262 | { | |
9263 | if (temp2) delete arg2; | |
9264 | } | |
9265 | return resultobj; | |
9266 | fail: | |
9267 | { | |
9268 | if (temp2) delete arg2; | |
9269 | } | |
9270 | return NULL; | |
9271 | } | |
9272 | ||
9273 | ||
9274 | SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9275 | PyObject *resultobj = 0; | |
9276 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9277 | int arg2 ; | |
9278 | bool result; | |
9279 | void *argp1 = 0 ; | |
9280 | int res1 = 0 ; | |
9281 | int val2 ; | |
9282 | int ecode2 = 0 ; | |
9283 | PyObject * obj0 = 0 ; | |
9284 | PyObject * obj1 = 0 ; | |
9285 | char * kwnames[] = { | |
9286 | (char *) "self",(char *) "n", NULL | |
9287 | }; | |
9288 | ||
9289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
9290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9291 | if (!SWIG_IsOK(res1)) { | |
9292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9293 | } | |
9294 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9295 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9296 | if (!SWIG_IsOK(ecode2)) { | |
9297 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'"); | |
9298 | } | |
9299 | arg2 = static_cast< int >(val2); | |
9300 | { | |
9301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9302 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
9303 | wxPyEndAllowThreads(__tstate); | |
9304 | if (PyErr_Occurred()) SWIG_fail; | |
9305 | } | |
9306 | { | |
9307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9308 | } | |
9309 | return resultobj; | |
9310 | fail: | |
9311 | return NULL; | |
9312 | } | |
9313 | ||
9314 | ||
9315 | SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9316 | PyObject *resultobj = 0; | |
9317 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9318 | int arg2 ; | |
9319 | bool arg3 = (bool) true ; | |
9320 | void *argp1 = 0 ; | |
9321 | int res1 = 0 ; | |
9322 | int val2 ; | |
9323 | int ecode2 = 0 ; | |
9324 | bool val3 ; | |
9325 | int ecode3 = 0 ; | |
9326 | PyObject * obj0 = 0 ; | |
9327 | PyObject * obj1 = 0 ; | |
9328 | PyObject * obj2 = 0 ; | |
9329 | char * kwnames[] = { | |
9330 | (char *) "self",(char *) "n",(char *) "select", NULL | |
9331 | }; | |
9332 | ||
9333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9335 | if (!SWIG_IsOK(res1)) { | |
9336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9337 | } | |
9338 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9339 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9340 | if (!SWIG_IsOK(ecode2)) { | |
9341 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
9342 | } | |
9343 | arg2 = static_cast< int >(val2); | |
9344 | if (obj2) { | |
9345 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
9346 | if (!SWIG_IsOK(ecode3)) { | |
9347 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'"); | |
9348 | } | |
9349 | arg3 = static_cast< bool >(val3); | |
9350 | } | |
9351 | { | |
9352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9353 | (arg1)->SetSelection(arg2,arg3); | |
9354 | wxPyEndAllowThreads(__tstate); | |
9355 | if (PyErr_Occurred()) SWIG_fail; | |
9356 | } | |
9357 | resultobj = SWIG_Py_Void(); | |
9358 | return resultobj; | |
9359 | fail: | |
9360 | return NULL; | |
9361 | } | |
9362 | ||
9363 | ||
9364 | SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9365 | PyObject *resultobj = 0; | |
9366 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9367 | int arg2 ; | |
9368 | void *argp1 = 0 ; | |
9369 | int res1 = 0 ; | |
9370 | int val2 ; | |
9371 | int ecode2 = 0 ; | |
9372 | PyObject * obj0 = 0 ; | |
9373 | PyObject * obj1 = 0 ; | |
9374 | char * kwnames[] = { | |
9375 | (char *) "self",(char *) "n", NULL | |
9376 | }; | |
9377 | ||
9378 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail; | |
9379 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9380 | if (!SWIG_IsOK(res1)) { | |
9381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9382 | } | |
9383 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9384 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9385 | if (!SWIG_IsOK(ecode2)) { | |
9386 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'"); | |
9387 | } | |
9388 | arg2 = static_cast< int >(val2); | |
9389 | { | |
9390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9391 | (arg1)->Select(arg2); | |
9392 | wxPyEndAllowThreads(__tstate); | |
9393 | if (PyErr_Occurred()) SWIG_fail; | |
9394 | } | |
9395 | resultobj = SWIG_Py_Void(); | |
9396 | return resultobj; | |
9397 | fail: | |
9398 | return NULL; | |
9399 | } | |
9400 | ||
9401 | ||
9402 | SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9403 | PyObject *resultobj = 0; | |
9404 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9405 | int arg2 ; | |
9406 | void *argp1 = 0 ; | |
9407 | int res1 = 0 ; | |
9408 | int val2 ; | |
9409 | int ecode2 = 0 ; | |
9410 | PyObject * obj0 = 0 ; | |
9411 | PyObject * obj1 = 0 ; | |
9412 | char * kwnames[] = { | |
9413 | (char *) "self",(char *) "n", NULL | |
9414 | }; | |
9415 | ||
9416 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9417 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9418 | if (!SWIG_IsOK(res1)) { | |
9419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9420 | } | |
9421 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9422 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9423 | if (!SWIG_IsOK(ecode2)) { | |
9424 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'"); | |
9425 | } | |
9426 | arg2 = static_cast< int >(val2); | |
9427 | { | |
9428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9429 | (arg1)->Deselect(arg2); | |
9430 | wxPyEndAllowThreads(__tstate); | |
9431 | if (PyErr_Occurred()) SWIG_fail; | |
9432 | } | |
9433 | resultobj = SWIG_Py_Void(); | |
9434 | return resultobj; | |
9435 | fail: | |
9436 | return NULL; | |
9437 | } | |
9438 | ||
9439 | ||
9440 | SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9441 | PyObject *resultobj = 0; | |
9442 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9443 | int arg2 = (int) -1 ; | |
9444 | void *argp1 = 0 ; | |
9445 | int res1 = 0 ; | |
9446 | int val2 ; | |
9447 | int ecode2 = 0 ; | |
9448 | PyObject * obj0 = 0 ; | |
9449 | PyObject * obj1 = 0 ; | |
9450 | char * kwnames[] = { | |
9451 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
9452 | }; | |
9453 | ||
9454 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail; | |
9455 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9456 | if (!SWIG_IsOK(res1)) { | |
9457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9458 | } | |
9459 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9460 | if (obj1) { | |
9461 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9462 | if (!SWIG_IsOK(ecode2)) { | |
9463 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'"); | |
9464 | } | |
9465 | arg2 = static_cast< int >(val2); | |
9466 | } | |
9467 | { | |
9468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9469 | (arg1)->DeselectAll(arg2); | |
9470 | wxPyEndAllowThreads(__tstate); | |
9471 | if (PyErr_Occurred()) SWIG_fail; | |
9472 | } | |
9473 | resultobj = SWIG_Py_Void(); | |
9474 | return resultobj; | |
9475 | fail: | |
9476 | return NULL; | |
9477 | } | |
9478 | ||
9479 | ||
9480 | SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9481 | PyObject *resultobj = 0; | |
9482 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9483 | wxString *arg2 = 0 ; | |
9484 | bool arg3 = (bool) true ; | |
9485 | bool result; | |
9486 | void *argp1 = 0 ; | |
9487 | int res1 = 0 ; | |
9488 | bool temp2 = false ; | |
9489 | bool val3 ; | |
9490 | int ecode3 = 0 ; | |
9491 | PyObject * obj0 = 0 ; | |
9492 | PyObject * obj1 = 0 ; | |
9493 | PyObject * obj2 = 0 ; | |
9494 | char * kwnames[] = { | |
9495 | (char *) "self",(char *) "s",(char *) "select", NULL | |
9496 | }; | |
9497 | ||
9498 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9499 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9500 | if (!SWIG_IsOK(res1)) { | |
9501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9502 | } | |
9503 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9504 | { | |
9505 | arg2 = wxString_in_helper(obj1); | |
9506 | if (arg2 == NULL) SWIG_fail; | |
9507 | temp2 = true; | |
9508 | } | |
9509 | if (obj2) { | |
9510 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
9511 | if (!SWIG_IsOK(ecode3)) { | |
9512 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'"); | |
9513 | } | |
9514 | arg3 = static_cast< bool >(val3); | |
9515 | } | |
9516 | { | |
9517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9518 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
9519 | wxPyEndAllowThreads(__tstate); | |
9520 | if (PyErr_Occurred()) SWIG_fail; | |
9521 | } | |
9522 | { | |
9523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9524 | } | |
9525 | { | |
9526 | if (temp2) | |
9527 | delete arg2; | |
9528 | } | |
9529 | return resultobj; | |
9530 | fail: | |
9531 | { | |
9532 | if (temp2) | |
9533 | delete arg2; | |
9534 | } | |
9535 | return NULL; | |
d55e5bfc RD |
9536 | } |
9537 | ||
9538 | ||
1bd55598 RD |
9539 | SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9540 | PyObject *resultobj = 0; | |
9541 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9542 | PyObject *result = 0 ; | |
9543 | void *argp1 = 0 ; | |
9544 | int res1 = 0 ; | |
9545 | PyObject *swig_obj[1] ; | |
9546 | ||
9547 | if (!args) SWIG_fail; | |
9548 | swig_obj[0] = args; | |
9549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9550 | if (!SWIG_IsOK(res1)) { | |
9551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9552 | } | |
9553 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9554 | { | |
9555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9556 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
9557 | wxPyEndAllowThreads(__tstate); | |
9558 | if (PyErr_Occurred()) SWIG_fail; | |
9559 | } | |
9560 | resultobj = result; | |
9561 | return resultobj; | |
9562 | fail: | |
9563 | return NULL; | |
9564 | } | |
9565 | ||
9566 | ||
9567 | SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9568 | PyObject *resultobj = 0; | |
9569 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9570 | int arg2 ; | |
9571 | void *argp1 = 0 ; | |
9572 | int res1 = 0 ; | |
9573 | int val2 ; | |
9574 | int ecode2 = 0 ; | |
9575 | PyObject * obj0 = 0 ; | |
9576 | PyObject * obj1 = 0 ; | |
9577 | char * kwnames[] = { | |
9578 | (char *) "self",(char *) "n", NULL | |
9579 | }; | |
9580 | ||
9581 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
9582 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9583 | if (!SWIG_IsOK(res1)) { | |
9584 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9585 | } | |
9586 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9587 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9588 | if (!SWIG_IsOK(ecode2)) { | |
9589 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'"); | |
9590 | } | |
9591 | arg2 = static_cast< int >(val2); | |
9592 | { | |
9593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9594 | (arg1)->SetFirstItem(arg2); | |
9595 | wxPyEndAllowThreads(__tstate); | |
9596 | if (PyErr_Occurred()) SWIG_fail; | |
9597 | } | |
9598 | resultobj = SWIG_Py_Void(); | |
9599 | return resultobj; | |
9600 | fail: | |
9601 | return NULL; | |
9602 | } | |
9603 | ||
9604 | ||
9605 | SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9606 | PyObject *resultobj = 0; | |
9607 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9608 | wxString *arg2 = 0 ; | |
9609 | void *argp1 = 0 ; | |
9610 | int res1 = 0 ; | |
9611 | bool temp2 = false ; | |
9612 | PyObject * obj0 = 0 ; | |
9613 | PyObject * obj1 = 0 ; | |
9614 | char * kwnames[] = { | |
9615 | (char *) "self",(char *) "s", NULL | |
9616 | }; | |
9617 | ||
9618 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail; | |
9619 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9620 | if (!SWIG_IsOK(res1)) { | |
9621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9622 | } | |
9623 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9624 | { | |
9625 | arg2 = wxString_in_helper(obj1); | |
9626 | if (arg2 == NULL) SWIG_fail; | |
9627 | temp2 = true; | |
9628 | } | |
9629 | { | |
9630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9631 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
9632 | wxPyEndAllowThreads(__tstate); | |
9633 | if (PyErr_Occurred()) SWIG_fail; | |
9634 | } | |
9635 | resultobj = SWIG_Py_Void(); | |
9636 | { | |
9637 | if (temp2) | |
9638 | delete arg2; | |
9639 | } | |
9640 | return resultobj; | |
9641 | fail: | |
9642 | { | |
9643 | if (temp2) | |
9644 | delete arg2; | |
9645 | } | |
9646 | return NULL; | |
9647 | } | |
9648 | ||
9649 | ||
9650 | SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9651 | PyObject *resultobj = 0; | |
9652 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9653 | int arg2 ; | |
9654 | void *argp1 = 0 ; | |
9655 | int res1 = 0 ; | |
9656 | int val2 ; | |
9657 | int ecode2 = 0 ; | |
9658 | PyObject * obj0 = 0 ; | |
9659 | PyObject * obj1 = 0 ; | |
9660 | char * kwnames[] = { | |
9661 | (char *) "self",(char *) "n", NULL | |
9662 | }; | |
9663 | ||
9664 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
9665 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9666 | if (!SWIG_IsOK(res1)) { | |
9667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9668 | } | |
9669 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9670 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9671 | if (!SWIG_IsOK(ecode2)) { | |
9672 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'"); | |
9673 | } | |
9674 | arg2 = static_cast< int >(val2); | |
9675 | { | |
9676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9677 | (arg1)->EnsureVisible(arg2); | |
9678 | wxPyEndAllowThreads(__tstate); | |
9679 | if (PyErr_Occurred()) SWIG_fail; | |
9680 | } | |
9681 | resultobj = SWIG_Py_Void(); | |
9682 | return resultobj; | |
9683 | fail: | |
9684 | return NULL; | |
9685 | } | |
9686 | ||
9687 | ||
9688 | SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9689 | PyObject *resultobj = 0; | |
9690 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9691 | wxString *arg2 = 0 ; | |
9692 | void *argp1 = 0 ; | |
9693 | int res1 = 0 ; | |
9694 | bool temp2 = false ; | |
9695 | PyObject * obj0 = 0 ; | |
9696 | PyObject * obj1 = 0 ; | |
9697 | char * kwnames[] = { | |
9698 | (char *) "self",(char *) "s", NULL | |
9699 | }; | |
9700 | ||
9701 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
9702 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9703 | if (!SWIG_IsOK(res1)) { | |
9704 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9705 | } | |
9706 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9707 | { | |
9708 | arg2 = wxString_in_helper(obj1); | |
9709 | if (arg2 == NULL) SWIG_fail; | |
9710 | temp2 = true; | |
9711 | } | |
9712 | { | |
9713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9714 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
9715 | wxPyEndAllowThreads(__tstate); | |
9716 | if (PyErr_Occurred()) SWIG_fail; | |
9717 | } | |
9718 | resultobj = SWIG_Py_Void(); | |
9719 | { | |
9720 | if (temp2) | |
9721 | delete arg2; | |
9722 | } | |
9723 | return resultobj; | |
9724 | fail: | |
9725 | { | |
9726 | if (temp2) | |
9727 | delete arg2; | |
9728 | } | |
9729 | return NULL; | |
d55e5bfc RD |
9730 | } |
9731 | ||
9732 | ||
1bd55598 RD |
9733 | SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9734 | PyObject *resultobj = 0; | |
9735 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9736 | bool result; | |
9737 | void *argp1 = 0 ; | |
9738 | int res1 = 0 ; | |
9739 | PyObject *swig_obj[1] ; | |
9740 | ||
9741 | if (!args) SWIG_fail; | |
9742 | swig_obj[0] = args; | |
9743 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9744 | if (!SWIG_IsOK(res1)) { | |
9745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9746 | } | |
9747 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9748 | { | |
9749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9750 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
9751 | wxPyEndAllowThreads(__tstate); | |
9752 | if (PyErr_Occurred()) SWIG_fail; | |
9753 | } | |
9754 | { | |
9755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9756 | } | |
9757 | return resultobj; | |
9758 | fail: | |
9759 | return NULL; | |
9760 | } | |
9761 | ||
9762 | ||
9763 | SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9764 | PyObject *resultobj = 0; | |
9765 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9766 | wxPoint *arg2 = 0 ; | |
9767 | int result; | |
9768 | void *argp1 = 0 ; | |
9769 | int res1 = 0 ; | |
9770 | wxPoint temp2 ; | |
9771 | PyObject * obj0 = 0 ; | |
9772 | PyObject * obj1 = 0 ; | |
9773 | char * kwnames[] = { | |
9774 | (char *) "self",(char *) "pt", NULL | |
9775 | }; | |
9776 | ||
9777 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
9778 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9779 | if (!SWIG_IsOK(res1)) { | |
9780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9781 | } | |
9782 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9783 | { | |
9784 | arg2 = &temp2; | |
9785 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9786 | } | |
9787 | { | |
9788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9789 | result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9790 | wxPyEndAllowThreads(__tstate); | |
9791 | if (PyErr_Occurred()) SWIG_fail; | |
9792 | } | |
9793 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9794 | return resultobj; | |
9795 | fail: | |
9796 | return NULL; | |
9797 | } | |
9798 | ||
9799 | ||
9800 | SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9801 | PyObject *resultobj = 0; | |
9802 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9803 | int arg2 ; | |
9804 | wxColour *arg3 = 0 ; | |
9805 | void *argp1 = 0 ; | |
9806 | int res1 = 0 ; | |
9807 | int val2 ; | |
9808 | int ecode2 = 0 ; | |
9809 | wxColour temp3 ; | |
9810 | PyObject * obj0 = 0 ; | |
9811 | PyObject * obj1 = 0 ; | |
9812 | PyObject * obj2 = 0 ; | |
9813 | char * kwnames[] = { | |
9814 | (char *) "self",(char *) "item",(char *) "c", NULL | |
9815 | }; | |
9816 | ||
9817 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9818 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9819 | if (!SWIG_IsOK(res1)) { | |
9820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9821 | } | |
9822 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9823 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9824 | if (!SWIG_IsOK(ecode2)) { | |
9825 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'"); | |
9826 | } | |
9827 | arg2 = static_cast< int >(val2); | |
9828 | { | |
9829 | arg3 = &temp3; | |
9830 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9831 | } | |
9832 | { | |
9833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9834 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
9835 | wxPyEndAllowThreads(__tstate); | |
9836 | if (PyErr_Occurred()) SWIG_fail; | |
9837 | } | |
9838 | resultobj = SWIG_Py_Void(); | |
9839 | return resultobj; | |
9840 | fail: | |
9841 | return NULL; | |
9842 | } | |
9843 | ||
9844 | ||
9845 | SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9846 | PyObject *resultobj = 0; | |
9847 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9848 | int arg2 ; | |
9849 | wxColour *arg3 = 0 ; | |
9850 | void *argp1 = 0 ; | |
9851 | int res1 = 0 ; | |
9852 | int val2 ; | |
9853 | int ecode2 = 0 ; | |
9854 | wxColour temp3 ; | |
9855 | PyObject * obj0 = 0 ; | |
9856 | PyObject * obj1 = 0 ; | |
9857 | PyObject * obj2 = 0 ; | |
9858 | char * kwnames[] = { | |
9859 | (char *) "self",(char *) "item",(char *) "c", NULL | |
9860 | }; | |
9861 | ||
9862 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9864 | if (!SWIG_IsOK(res1)) { | |
9865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9866 | } | |
9867 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9868 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9869 | if (!SWIG_IsOK(ecode2)) { | |
9870 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'"); | |
9871 | } | |
9872 | arg2 = static_cast< int >(val2); | |
9873 | { | |
9874 | arg3 = &temp3; | |
9875 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9876 | } | |
9877 | { | |
9878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9879 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
9880 | wxPyEndAllowThreads(__tstate); | |
9881 | if (PyErr_Occurred()) SWIG_fail; | |
9882 | } | |
9883 | resultobj = SWIG_Py_Void(); | |
9884 | return resultobj; | |
9885 | fail: | |
9886 | return NULL; | |
9887 | } | |
9888 | ||
9889 | ||
9890 | SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9891 | PyObject *resultobj = 0; | |
9892 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9893 | int arg2 ; | |
9894 | wxFont *arg3 = 0 ; | |
9895 | void *argp1 = 0 ; | |
9896 | int res1 = 0 ; | |
9897 | int val2 ; | |
9898 | int ecode2 = 0 ; | |
9899 | void *argp3 = 0 ; | |
9900 | int res3 = 0 ; | |
9901 | PyObject * obj0 = 0 ; | |
9902 | PyObject * obj1 = 0 ; | |
9903 | PyObject * obj2 = 0 ; | |
9904 | char * kwnames[] = { | |
9905 | (char *) "self",(char *) "item",(char *) "f", NULL | |
9906 | }; | |
9907 | ||
9908 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9909 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9910 | if (!SWIG_IsOK(res1)) { | |
9911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9912 | } | |
9913 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9914 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9915 | if (!SWIG_IsOK(ecode2)) { | |
9916 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'"); | |
9917 | } | |
9918 | arg2 = static_cast< int >(val2); | |
9919 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
9920 | if (!SWIG_IsOK(res3)) { | |
9921 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
9922 | } | |
9923 | if (!argp3) { | |
9924 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
9925 | } | |
9926 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
9927 | { | |
9928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9929 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
9930 | wxPyEndAllowThreads(__tstate); | |
9931 | if (PyErr_Occurred()) SWIG_fail; | |
9932 | } | |
9933 | resultobj = SWIG_Py_Void(); | |
9934 | return resultobj; | |
9935 | fail: | |
9936 | return NULL; | |
9937 | } | |
9938 | ||
9939 | ||
9940 | SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9941 | PyObject *resultobj = 0; | |
9942 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
9943 | SwigValueWrapper<wxVisualAttributes > result; | |
9944 | int val1 ; | |
9945 | int ecode1 = 0 ; | |
9946 | PyObject * obj0 = 0 ; | |
9947 | char * kwnames[] = { | |
9948 | (char *) "variant", NULL | |
9949 | }; | |
9950 | ||
9951 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
9952 | if (obj0) { | |
9953 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
9954 | if (!SWIG_IsOK(ecode1)) { | |
9955 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
9956 | } | |
9957 | arg1 = static_cast< wxWindowVariant >(val1); | |
9958 | } | |
9959 | { | |
9960 | if (!wxPyCheckForApp()) SWIG_fail; | |
9961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9962 | result = wxListBox::GetClassDefaultAttributes(arg1); | |
9963 | wxPyEndAllowThreads(__tstate); | |
9964 | if (PyErr_Occurred()) SWIG_fail; | |
9965 | } | |
9966 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
9967 | return resultobj; | |
9968 | fail: | |
9969 | return NULL; | |
9970 | } | |
9971 | ||
9972 | ||
9973 | SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9974 | PyObject *obj; | |
9975 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9976 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj)); | |
9977 | return SWIG_Py_Void(); | |
9978 | } | |
9979 | ||
9980 | SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9981 | return SWIG_Python_InitShadowInstance(args); | |
9982 | } | |
9983 | ||
9984 | SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9985 | PyObject *resultobj = 0; | |
9986 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9987 | int arg2 = (int) -1 ; | |
9988 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9989 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9990 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9991 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9992 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
9993 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
9994 | long arg6 = (long) 0 ; | |
9995 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9996 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9997 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
9998 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9999 | wxCheckListBox *result = 0 ; | |
10000 | void *argp1 = 0 ; | |
10001 | int res1 = 0 ; | |
10002 | int val2 ; | |
10003 | int ecode2 = 0 ; | |
10004 | wxPoint temp3 ; | |
10005 | wxSize temp4 ; | |
10006 | bool temp5 = false ; | |
10007 | long val6 ; | |
10008 | int ecode6 = 0 ; | |
10009 | void *argp7 = 0 ; | |
10010 | int res7 = 0 ; | |
10011 | bool temp8 = false ; | |
10012 | PyObject * obj0 = 0 ; | |
10013 | PyObject * obj1 = 0 ; | |
10014 | PyObject * obj2 = 0 ; | |
10015 | PyObject * obj3 = 0 ; | |
10016 | PyObject * obj4 = 0 ; | |
10017 | PyObject * obj5 = 0 ; | |
10018 | PyObject * obj6 = 0 ; | |
10019 | PyObject * obj7 = 0 ; | |
10020 | char * kwnames[] = { | |
10021 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10022 | }; | |
10023 | ||
10024 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
10025 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10026 | if (!SWIG_IsOK(res1)) { | |
10027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
10028 | } | |
10029 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
10030 | if (obj1) { | |
10031 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10032 | if (!SWIG_IsOK(ecode2)) { | |
10033 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'"); | |
10034 | } | |
10035 | arg2 = static_cast< int >(val2); | |
10036 | } | |
10037 | if (obj2) { | |
10038 | { | |
10039 | arg3 = &temp3; | |
10040 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
bfddbb17 | 10041 | } |
1bd55598 RD |
10042 | } |
10043 | if (obj3) { | |
10044 | { | |
10045 | arg4 = &temp4; | |
10046 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 10047 | } |
1bd55598 RD |
10048 | } |
10049 | if (obj4) { | |
10050 | { | |
10051 | if (! PySequence_Check(obj4)) { | |
10052 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10053 | SWIG_fail; | |
10054 | } | |
10055 | arg5 = new wxArrayString; | |
10056 | temp5 = true; | |
10057 | int i, len=PySequence_Length(obj4); | |
10058 | for (i=0; i<len; i++) { | |
10059 | PyObject* item = PySequence_GetItem(obj4, i); | |
10060 | wxString* s = wxString_in_helper(item); | |
10061 | if (PyErr_Occurred()) SWIG_fail; | |
10062 | arg5->Add(*s); | |
10063 | delete s; | |
10064 | Py_DECREF(item); | |
10065 | } | |
d55e5bfc | 10066 | } |
1bd55598 RD |
10067 | } |
10068 | if (obj5) { | |
10069 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
10070 | if (!SWIG_IsOK(ecode6)) { | |
10071 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'"); | |
10072 | } | |
10073 | arg6 = static_cast< long >(val6); | |
10074 | } | |
10075 | if (obj6) { | |
10076 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
10077 | if (!SWIG_IsOK(res7)) { | |
10078 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 10079 | } |
1bd55598 RD |
10080 | if (!argp7) { |
10081 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 10082 | } |
1bd55598 RD |
10083 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
10084 | } | |
10085 | if (obj7) { | |
10086 | { | |
10087 | arg8 = wxString_in_helper(obj7); | |
10088 | if (arg8 == NULL) SWIG_fail; | |
10089 | temp8 = true; | |
d55e5bfc | 10090 | } |
1bd55598 RD |
10091 | } |
10092 | { | |
10093 | if (!wxPyCheckForApp()) SWIG_fail; | |
10094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10095 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10096 | wxPyEndAllowThreads(__tstate); | |
10097 | if (PyErr_Occurred()) SWIG_fail; | |
10098 | } | |
10099 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 ); | |
10100 | { | |
10101 | if (temp5) delete arg5; | |
10102 | } | |
10103 | { | |
10104 | if (temp8) | |
10105 | delete arg8; | |
10106 | } | |
10107 | return resultobj; | |
10108 | fail: | |
10109 | { | |
10110 | if (temp5) delete arg5; | |
10111 | } | |
10112 | { | |
10113 | if (temp8) | |
10114 | delete arg8; | |
10115 | } | |
10116 | return NULL; | |
10117 | } | |
10118 | ||
10119 | ||
10120 | SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10121 | PyObject *resultobj = 0; | |
10122 | wxCheckListBox *result = 0 ; | |
10123 | ||
10124 | if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail; | |
10125 | { | |
10126 | if (!wxPyCheckForApp()) SWIG_fail; | |
10127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10128 | result = (wxCheckListBox *)new wxCheckListBox(); | |
10129 | wxPyEndAllowThreads(__tstate); | |
10130 | if (PyErr_Occurred()) SWIG_fail; | |
10131 | } | |
10132 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 ); | |
10133 | return resultobj; | |
10134 | fail: | |
10135 | return NULL; | |
10136 | } | |
10137 | ||
10138 | ||
10139 | SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10140 | PyObject *resultobj = 0; | |
10141 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
10142 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10143 | int arg3 = (int) -1 ; | |
10144 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10145 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10146 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10147 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10148 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
10149 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
10150 | long arg7 = (long) 0 ; | |
10151 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
10152 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
10153 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
10154 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
10155 | bool result; | |
10156 | void *argp1 = 0 ; | |
10157 | int res1 = 0 ; | |
10158 | void *argp2 = 0 ; | |
10159 | int res2 = 0 ; | |
10160 | int val3 ; | |
10161 | int ecode3 = 0 ; | |
10162 | wxPoint temp4 ; | |
10163 | wxSize temp5 ; | |
10164 | bool temp6 = false ; | |
10165 | long val7 ; | |
10166 | int ecode7 = 0 ; | |
10167 | void *argp8 = 0 ; | |
10168 | int res8 = 0 ; | |
10169 | bool temp9 = false ; | |
10170 | PyObject * obj0 = 0 ; | |
10171 | PyObject * obj1 = 0 ; | |
10172 | PyObject * obj2 = 0 ; | |
10173 | PyObject * obj3 = 0 ; | |
10174 | PyObject * obj4 = 0 ; | |
10175 | PyObject * obj5 = 0 ; | |
10176 | PyObject * obj6 = 0 ; | |
10177 | PyObject * obj7 = 0 ; | |
10178 | PyObject * obj8 = 0 ; | |
10179 | char * kwnames[] = { | |
10180 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10181 | }; | |
10182 | ||
10183 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
10184 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10185 | if (!SWIG_IsOK(res1)) { | |
10186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10187 | } | |
10188 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
10189 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10190 | if (!SWIG_IsOK(res2)) { | |
10191 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
10192 | } | |
10193 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
10194 | if (obj2) { | |
10195 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10196 | if (!SWIG_IsOK(ecode3)) { | |
10197 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
10198 | } | |
10199 | arg3 = static_cast< int >(val3); | |
10200 | } | |
10201 | if (obj3) { | |
d55e5bfc | 10202 | { |
1bd55598 RD |
10203 | arg4 = &temp4; |
10204 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 10205 | } |
1bd55598 RD |
10206 | } |
10207 | if (obj4) { | |
d55e5bfc | 10208 | { |
1bd55598 RD |
10209 | arg5 = &temp5; |
10210 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 10211 | } |
1bd55598 RD |
10212 | } |
10213 | if (obj5) { | |
d55e5bfc | 10214 | { |
1bd55598 RD |
10215 | if (! PySequence_Check(obj5)) { |
10216 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10217 | SWIG_fail; | |
10218 | } | |
10219 | arg6 = new wxArrayString; | |
10220 | temp6 = true; | |
10221 | int i, len=PySequence_Length(obj5); | |
10222 | for (i=0; i<len; i++) { | |
10223 | PyObject* item = PySequence_GetItem(obj5, i); | |
10224 | wxString* s = wxString_in_helper(item); | |
10225 | if (PyErr_Occurred()) SWIG_fail; | |
10226 | arg6->Add(*s); | |
10227 | delete s; | |
10228 | Py_DECREF(item); | |
10229 | } | |
10230 | } | |
10231 | } | |
10232 | if (obj6) { | |
10233 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
10234 | if (!SWIG_IsOK(ecode7)) { | |
10235 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
10236 | } | |
10237 | arg7 = static_cast< long >(val7); | |
10238 | } | |
10239 | if (obj7) { | |
10240 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
10241 | if (!SWIG_IsOK(res8)) { | |
10242 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
10243 | } | |
10244 | if (!argp8) { | |
10245 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 10246 | } |
1bd55598 RD |
10247 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
10248 | } | |
10249 | if (obj8) { | |
d55e5bfc | 10250 | { |
1bd55598 RD |
10251 | arg9 = wxString_in_helper(obj8); |
10252 | if (arg9 == NULL) SWIG_fail; | |
10253 | temp9 = true; | |
d55e5bfc | 10254 | } |
1bd55598 RD |
10255 | } |
10256 | { | |
10257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10258 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
10259 | wxPyEndAllowThreads(__tstate); | |
10260 | if (PyErr_Occurred()) SWIG_fail; | |
10261 | } | |
10262 | { | |
10263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10264 | } | |
10265 | { | |
10266 | if (temp6) delete arg6; | |
10267 | } | |
10268 | { | |
10269 | if (temp9) | |
10270 | delete arg9; | |
10271 | } | |
10272 | return resultobj; | |
10273 | fail: | |
10274 | { | |
10275 | if (temp6) delete arg6; | |
10276 | } | |
10277 | { | |
10278 | if (temp9) | |
10279 | delete arg9; | |
10280 | } | |
10281 | return NULL; | |
10282 | } | |
10283 | ||
10284 | ||
10285 | SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10286 | PyObject *resultobj = 0; | |
10287 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
50f151d7 | 10288 | unsigned int arg2 ; |
1bd55598 RD |
10289 | bool result; |
10290 | void *argp1 = 0 ; | |
10291 | int res1 = 0 ; | |
50f151d7 | 10292 | unsigned int val2 ; |
1bd55598 RD |
10293 | int ecode2 = 0 ; |
10294 | PyObject * obj0 = 0 ; | |
10295 | PyObject * obj1 = 0 ; | |
10296 | char * kwnames[] = { | |
10297 | (char *) "self",(char *) "index", NULL | |
10298 | }; | |
10299 | ||
10300 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail; | |
10301 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10302 | if (!SWIG_IsOK(res1)) { | |
10303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10304 | } | |
10305 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
50f151d7 | 10306 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
1bd55598 | 10307 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 10308 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'"); |
1bd55598 | 10309 | } |
50f151d7 | 10310 | arg2 = static_cast< unsigned int >(val2); |
1bd55598 RD |
10311 | { |
10312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10313 | result = (bool)(arg1)->IsChecked(arg2); | |
10314 | wxPyEndAllowThreads(__tstate); | |
10315 | if (PyErr_Occurred()) SWIG_fail; | |
10316 | } | |
10317 | { | |
10318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10319 | } | |
10320 | return resultobj; | |
10321 | fail: | |
10322 | return NULL; | |
10323 | } | |
10324 | ||
10325 | ||
10326 | SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10327 | PyObject *resultobj = 0; | |
10328 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
50f151d7 | 10329 | unsigned int arg2 ; |
1bd55598 RD |
10330 | int arg3 = (int) true ; |
10331 | void *argp1 = 0 ; | |
10332 | int res1 = 0 ; | |
50f151d7 | 10333 | unsigned int val2 ; |
1bd55598 RD |
10334 | int ecode2 = 0 ; |
10335 | int val3 ; | |
10336 | int ecode3 = 0 ; | |
10337 | PyObject * obj0 = 0 ; | |
10338 | PyObject * obj1 = 0 ; | |
10339 | PyObject * obj2 = 0 ; | |
10340 | char * kwnames[] = { | |
10341 | (char *) "self",(char *) "index",(char *) "check", NULL | |
10342 | }; | |
10343 | ||
10344 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10345 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10346 | if (!SWIG_IsOK(res1)) { | |
10347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10348 | } | |
10349 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
50f151d7 | 10350 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
1bd55598 | 10351 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 10352 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'"); |
1bd55598 | 10353 | } |
50f151d7 | 10354 | arg2 = static_cast< unsigned int >(val2); |
1bd55598 RD |
10355 | if (obj2) { |
10356 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10357 | if (!SWIG_IsOK(ecode3)) { | |
10358 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'"); | |
10359 | } | |
10360 | arg3 = static_cast< int >(val3); | |
10361 | } | |
10362 | { | |
10363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10364 | (arg1)->Check(arg2,arg3); | |
10365 | wxPyEndAllowThreads(__tstate); | |
10366 | if (PyErr_Occurred()) SWIG_fail; | |
10367 | } | |
10368 | resultobj = SWIG_Py_Void(); | |
10369 | return resultobj; | |
10370 | fail: | |
10371 | return NULL; | |
d55e5bfc RD |
10372 | } |
10373 | ||
10374 | ||
1bd55598 RD |
10375 | SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10376 | PyObject *obj; | |
10377 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10378 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj)); | |
10379 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10380 | } |
10381 | ||
1bd55598 RD |
10382 | SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10383 | return SWIG_Python_InitShadowInstance(args); | |
10384 | } | |
d55e5bfc | 10385 | |
1bd55598 RD |
10386 | SWIGINTERN int TextCtrlNameStr_set(PyObject *) { |
10387 | SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only."); | |
10388 | return 1; | |
d55e5bfc RD |
10389 | } |
10390 | ||
10391 | ||
1bd55598 RD |
10392 | SWIGINTERN PyObject *TextCtrlNameStr_get(void) { |
10393 | PyObject *pyobj = 0; | |
10394 | ||
10395 | { | |
d55e5bfc | 10396 | #if wxUSE_UNICODE |
1bd55598 | 10397 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); |
d55e5bfc | 10398 | #else |
1bd55598 | 10399 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); |
d55e5bfc | 10400 | #endif |
1bd55598 RD |
10401 | } |
10402 | return pyobj; | |
10403 | } | |
10404 | ||
10405 | ||
10406 | SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10407 | PyObject *resultobj = 0; | |
10408 | wxColour const &arg1_defvalue = wxNullColour ; | |
10409 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
10410 | wxColour const &arg2_defvalue = wxNullColour ; | |
10411 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
10412 | wxFont const &arg3_defvalue = wxNullFont ; | |
10413 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
10414 | wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; | |
10415 | wxTextAttr *result = 0 ; | |
10416 | wxColour temp1 ; | |
10417 | wxColour temp2 ; | |
10418 | void *argp3 = 0 ; | |
10419 | int res3 = 0 ; | |
10420 | int val4 ; | |
10421 | int ecode4 = 0 ; | |
10422 | PyObject * obj0 = 0 ; | |
10423 | PyObject * obj1 = 0 ; | |
10424 | PyObject * obj2 = 0 ; | |
10425 | PyObject * obj3 = 0 ; | |
10426 | char * kwnames[] = { | |
10427 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
10428 | }; | |
10429 | ||
10430 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10431 | if (obj0) { | |
d55e5bfc | 10432 | { |
1bd55598 RD |
10433 | arg1 = &temp1; |
10434 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
d55e5bfc | 10435 | } |
1bd55598 RD |
10436 | } |
10437 | if (obj1) { | |
d55e5bfc | 10438 | { |
1bd55598 RD |
10439 | arg2 = &temp2; |
10440 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 10441 | } |
1bd55598 RD |
10442 | } |
10443 | if (obj2) { | |
10444 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
10445 | if (!SWIG_IsOK(res3)) { | |
10446 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d55e5bfc | 10447 | } |
1bd55598 RD |
10448 | if (!argp3) { |
10449 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d55e5bfc | 10450 | } |
1bd55598 RD |
10451 | arg3 = reinterpret_cast< wxFont * >(argp3); |
10452 | } | |
10453 | if (obj3) { | |
10454 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10455 | if (!SWIG_IsOK(ecode4)) { | |
10456 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'"); | |
10457 | } | |
10458 | arg4 = static_cast< wxTextAttrAlignment >(val4); | |
10459 | } | |
10460 | { | |
10461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10462 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4); | |
10463 | wxPyEndAllowThreads(__tstate); | |
10464 | if (PyErr_Occurred()) SWIG_fail; | |
10465 | } | |
10466 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 ); | |
10467 | return resultobj; | |
10468 | fail: | |
10469 | return NULL; | |
d55e5bfc RD |
10470 | } |
10471 | ||
10472 | ||
1bd55598 RD |
10473 | SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10474 | PyObject *resultobj = 0; | |
10475 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10476 | void *argp1 = 0 ; | |
10477 | int res1 = 0 ; | |
10478 | PyObject *swig_obj[1] ; | |
10479 | ||
10480 | if (!args) SWIG_fail; | |
10481 | swig_obj[0] = args; | |
10482 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 ); | |
10483 | if (!SWIG_IsOK(res1)) { | |
10484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10485 | } | |
10486 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10487 | { | |
10488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10489 | delete arg1; | |
d55e5bfc | 10490 | |
1bd55598 RD |
10491 | wxPyEndAllowThreads(__tstate); |
10492 | if (PyErr_Occurred()) SWIG_fail; | |
10493 | } | |
10494 | resultobj = SWIG_Py_Void(); | |
10495 | return resultobj; | |
10496 | fail: | |
10497 | return NULL; | |
d55e5bfc RD |
10498 | } |
10499 | ||
10500 | ||
1bd55598 RD |
10501 | SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10502 | PyObject *resultobj = 0; | |
10503 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10504 | void *argp1 = 0 ; | |
10505 | int res1 = 0 ; | |
10506 | PyObject *swig_obj[1] ; | |
10507 | ||
10508 | if (!args) SWIG_fail; | |
10509 | swig_obj[0] = args; | |
10510 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10511 | if (!SWIG_IsOK(res1)) { | |
10512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10513 | } | |
10514 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10515 | { | |
10516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10517 | (arg1)->Init(); | |
10518 | wxPyEndAllowThreads(__tstate); | |
10519 | if (PyErr_Occurred()) SWIG_fail; | |
10520 | } | |
10521 | resultobj = SWIG_Py_Void(); | |
10522 | return resultobj; | |
10523 | fail: | |
10524 | return NULL; | |
10525 | } | |
10526 | ||
10527 | ||
2131d850 RD |
10528 | SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10529 | PyObject *resultobj = 0; | |
10530 | wxTextAttr *arg1 = 0 ; | |
10531 | wxTextAttr *arg2 = 0 ; | |
10532 | wxTextAttr result; | |
10533 | void *argp1 = 0 ; | |
10534 | int res1 = 0 ; | |
10535 | void *argp2 = 0 ; | |
10536 | int res2 = 0 ; | |
10537 | PyObject * obj0 = 0 ; | |
10538 | PyObject * obj1 = 0 ; | |
10539 | char * kwnames[] = { | |
10540 | (char *) "base",(char *) "overlay", NULL | |
10541 | }; | |
10542 | ||
10543 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail; | |
10544 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
10545 | if (!SWIG_IsOK(res1)) { | |
10546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
10547 | } | |
10548 | if (!argp1) { | |
10549 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
10550 | } | |
10551 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10552 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
10553 | if (!SWIG_IsOK(res2)) { | |
10554 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
10555 | } | |
10556 | if (!argp2) { | |
10557 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
10558 | } | |
10559 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
10560 | { | |
10561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10562 | result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2); | |
10563 | wxPyEndAllowThreads(__tstate); | |
10564 | if (PyErr_Occurred()) SWIG_fail; | |
10565 | } | |
10566 | resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 ); | |
10567 | return resultobj; | |
10568 | fail: | |
10569 | return NULL; | |
10570 | } | |
10571 | ||
10572 | ||
1bd55598 RD |
10573 | SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10574 | PyObject *resultobj = 0; | |
10575 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10576 | wxColour *arg2 = 0 ; | |
10577 | void *argp1 = 0 ; | |
10578 | int res1 = 0 ; | |
10579 | wxColour temp2 ; | |
10580 | PyObject * obj0 = 0 ; | |
10581 | PyObject * obj1 = 0 ; | |
10582 | char * kwnames[] = { | |
10583 | (char *) "self",(char *) "colText", NULL | |
10584 | }; | |
10585 | ||
10586 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
10587 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10588 | if (!SWIG_IsOK(res1)) { | |
10589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10590 | } | |
10591 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10592 | { | |
10593 | arg2 = &temp2; | |
10594 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10595 | } | |
10596 | { | |
10597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10598 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
10599 | wxPyEndAllowThreads(__tstate); | |
10600 | if (PyErr_Occurred()) SWIG_fail; | |
10601 | } | |
10602 | resultobj = SWIG_Py_Void(); | |
10603 | return resultobj; | |
10604 | fail: | |
10605 | return NULL; | |
10606 | } | |
10607 | ||
10608 | ||
10609 | SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10610 | PyObject *resultobj = 0; | |
10611 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10612 | wxColour *arg2 = 0 ; | |
10613 | void *argp1 = 0 ; | |
10614 | int res1 = 0 ; | |
10615 | wxColour temp2 ; | |
10616 | PyObject * obj0 = 0 ; | |
10617 | PyObject * obj1 = 0 ; | |
10618 | char * kwnames[] = { | |
10619 | (char *) "self",(char *) "colBack", NULL | |
10620 | }; | |
10621 | ||
10622 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
10623 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10624 | if (!SWIG_IsOK(res1)) { | |
10625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10626 | } | |
10627 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10628 | { | |
10629 | arg2 = &temp2; | |
10630 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10631 | } | |
10632 | { | |
10633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10634 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
10635 | wxPyEndAllowThreads(__tstate); | |
10636 | if (PyErr_Occurred()) SWIG_fail; | |
10637 | } | |
10638 | resultobj = SWIG_Py_Void(); | |
10639 | return resultobj; | |
10640 | fail: | |
10641 | return NULL; | |
10642 | } | |
10643 | ||
10644 | ||
10645 | SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10646 | PyObject *resultobj = 0; | |
10647 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10648 | wxFont *arg2 = 0 ; | |
10649 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
10650 | void *argp1 = 0 ; | |
10651 | int res1 = 0 ; | |
10652 | void *argp2 = 0 ; | |
10653 | int res2 = 0 ; | |
10654 | long val3 ; | |
10655 | int ecode3 = 0 ; | |
10656 | PyObject * obj0 = 0 ; | |
10657 | PyObject * obj1 = 0 ; | |
10658 | PyObject * obj2 = 0 ; | |
10659 | char * kwnames[] = { | |
10660 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
10661 | }; | |
10662 | ||
10663 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10664 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10665 | if (!SWIG_IsOK(res1)) { | |
10666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10667 | } | |
10668 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10669 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
10670 | if (!SWIG_IsOK(res2)) { | |
10671 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10672 | } | |
10673 | if (!argp2) { | |
10674 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10675 | } | |
10676 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
10677 | if (obj2) { | |
10678 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
10679 | if (!SWIG_IsOK(ecode3)) { | |
10680 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'"); | |
10681 | } | |
10682 | arg3 = static_cast< long >(val3); | |
10683 | } | |
10684 | { | |
10685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10686 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
10687 | wxPyEndAllowThreads(__tstate); | |
10688 | if (PyErr_Occurred()) SWIG_fail; | |
10689 | } | |
10690 | resultobj = SWIG_Py_Void(); | |
10691 | return resultobj; | |
10692 | fail: | |
10693 | return NULL; | |
10694 | } | |
10695 | ||
10696 | ||
10697 | SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10698 | PyObject *resultobj = 0; | |
10699 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10700 | wxTextAttrAlignment arg2 ; | |
10701 | void *argp1 = 0 ; | |
10702 | int res1 = 0 ; | |
10703 | int val2 ; | |
10704 | int ecode2 = 0 ; | |
10705 | PyObject * obj0 = 0 ; | |
10706 | PyObject * obj1 = 0 ; | |
10707 | char * kwnames[] = { | |
10708 | (char *) "self",(char *) "alignment", NULL | |
10709 | }; | |
10710 | ||
10711 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
10712 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10713 | if (!SWIG_IsOK(res1)) { | |
10714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10715 | } | |
10716 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10717 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10718 | if (!SWIG_IsOK(ecode2)) { | |
10719 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
10720 | } | |
10721 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
10722 | { | |
10723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10724 | (arg1)->SetAlignment(arg2); | |
10725 | wxPyEndAllowThreads(__tstate); | |
10726 | if (PyErr_Occurred()) SWIG_fail; | |
10727 | } | |
10728 | resultobj = SWIG_Py_Void(); | |
10729 | return resultobj; | |
10730 | fail: | |
10731 | return NULL; | |
10732 | } | |
10733 | ||
10734 | ||
10735 | SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10736 | PyObject *resultobj = 0; | |
10737 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10738 | wxArrayInt *arg2 = 0 ; | |
10739 | void *argp1 = 0 ; | |
10740 | int res1 = 0 ; | |
10741 | bool temp2 = false ; | |
10742 | PyObject * obj0 = 0 ; | |
10743 | PyObject * obj1 = 0 ; | |
10744 | char * kwnames[] = { | |
10745 | (char *) "self",(char *) "tabs", NULL | |
10746 | }; | |
10747 | ||
10748 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail; | |
10749 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10750 | if (!SWIG_IsOK(res1)) { | |
10751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10752 | } | |
10753 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10754 | { | |
10755 | if (! PySequence_Check(obj1)) { | |
10756 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
10757 | SWIG_fail; | |
10758 | } | |
10759 | arg2 = new wxArrayInt; | |
10760 | temp2 = true; | |
10761 | int i, len=PySequence_Length(obj1); | |
10762 | for (i=0; i<len; i++) { | |
10763 | PyObject* item = PySequence_GetItem(obj1, i); | |
10764 | PyObject* number = PyNumber_Int(item); | |
ec8a7755 RD |
10765 | if (!number) { |
10766 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
10767 | SWIG_fail; | |
10768 | } | |
1bd55598 RD |
10769 | arg2->Add(PyInt_AS_LONG(number)); |
10770 | Py_DECREF(item); | |
10771 | Py_DECREF(number); | |
d55e5bfc | 10772 | } |
1bd55598 RD |
10773 | } |
10774 | { | |
10775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10776 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
10777 | wxPyEndAllowThreads(__tstate); | |
10778 | if (PyErr_Occurred()) SWIG_fail; | |
10779 | } | |
10780 | resultobj = SWIG_Py_Void(); | |
10781 | { | |
10782 | if (temp2) delete arg2; | |
10783 | } | |
10784 | return resultobj; | |
10785 | fail: | |
10786 | { | |
10787 | if (temp2) delete arg2; | |
10788 | } | |
10789 | return NULL; | |
10790 | } | |
10791 | ||
10792 | ||
10793 | SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10794 | PyObject *resultobj = 0; | |
10795 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10796 | int arg2 ; | |
10797 | int arg3 = (int) 0 ; | |
10798 | void *argp1 = 0 ; | |
10799 | int res1 = 0 ; | |
10800 | int val2 ; | |
10801 | int ecode2 = 0 ; | |
10802 | int val3 ; | |
10803 | int ecode3 = 0 ; | |
10804 | PyObject * obj0 = 0 ; | |
10805 | PyObject * obj1 = 0 ; | |
10806 | PyObject * obj2 = 0 ; | |
10807 | char * kwnames[] = { | |
10808 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL | |
10809 | }; | |
10810 | ||
10811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10813 | if (!SWIG_IsOK(res1)) { | |
10814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10815 | } | |
10816 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10817 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10818 | if (!SWIG_IsOK(ecode2)) { | |
10819 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'"); | |
10820 | } | |
10821 | arg2 = static_cast< int >(val2); | |
10822 | if (obj2) { | |
10823 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10824 | if (!SWIG_IsOK(ecode3)) { | |
10825 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'"); | |
10826 | } | |
10827 | arg3 = static_cast< int >(val3); | |
10828 | } | |
10829 | { | |
10830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10831 | (arg1)->SetLeftIndent(arg2,arg3); | |
10832 | wxPyEndAllowThreads(__tstate); | |
10833 | if (PyErr_Occurred()) SWIG_fail; | |
10834 | } | |
10835 | resultobj = SWIG_Py_Void(); | |
10836 | return resultobj; | |
10837 | fail: | |
10838 | return NULL; | |
10839 | } | |
10840 | ||
10841 | ||
10842 | SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10843 | PyObject *resultobj = 0; | |
10844 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10845 | int arg2 ; | |
10846 | void *argp1 = 0 ; | |
10847 | int res1 = 0 ; | |
10848 | int val2 ; | |
10849 | int ecode2 = 0 ; | |
10850 | PyObject * obj0 = 0 ; | |
10851 | PyObject * obj1 = 0 ; | |
10852 | char * kwnames[] = { | |
10853 | (char *) "self",(char *) "indent", NULL | |
10854 | }; | |
10855 | ||
10856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10857 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10858 | if (!SWIG_IsOK(res1)) { | |
10859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10860 | } | |
10861 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10862 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10863 | if (!SWIG_IsOK(ecode2)) { | |
10864 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'"); | |
10865 | } | |
10866 | arg2 = static_cast< int >(val2); | |
10867 | { | |
10868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10869 | (arg1)->SetRightIndent(arg2); | |
10870 | wxPyEndAllowThreads(__tstate); | |
10871 | if (PyErr_Occurred()) SWIG_fail; | |
10872 | } | |
10873 | resultobj = SWIG_Py_Void(); | |
10874 | return resultobj; | |
10875 | fail: | |
10876 | return NULL; | |
10877 | } | |
10878 | ||
10879 | ||
10880 | SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10881 | PyObject *resultobj = 0; | |
10882 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10883 | long arg2 ; | |
10884 | void *argp1 = 0 ; | |
10885 | int res1 = 0 ; | |
10886 | long val2 ; | |
10887 | int ecode2 = 0 ; | |
10888 | PyObject * obj0 = 0 ; | |
10889 | PyObject * obj1 = 0 ; | |
10890 | char * kwnames[] = { | |
10891 | (char *) "self",(char *) "flags", NULL | |
10892 | }; | |
10893 | ||
10894 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
10895 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10896 | if (!SWIG_IsOK(res1)) { | |
10897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10898 | } | |
10899 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10900 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10901 | if (!SWIG_IsOK(ecode2)) { | |
10902 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'"); | |
10903 | } | |
10904 | arg2 = static_cast< long >(val2); | |
10905 | { | |
10906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10907 | (arg1)->SetFlags(arg2); | |
10908 | wxPyEndAllowThreads(__tstate); | |
10909 | if (PyErr_Occurred()) SWIG_fail; | |
10910 | } | |
10911 | resultobj = SWIG_Py_Void(); | |
10912 | return resultobj; | |
10913 | fail: | |
10914 | return NULL; | |
d55e5bfc RD |
10915 | } |
10916 | ||
10917 | ||
1bd55598 RD |
10918 | SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10919 | PyObject *resultobj = 0; | |
10920 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10921 | bool result; | |
10922 | void *argp1 = 0 ; | |
10923 | int res1 = 0 ; | |
10924 | PyObject *swig_obj[1] ; | |
10925 | ||
10926 | if (!args) SWIG_fail; | |
10927 | swig_obj[0] = args; | |
10928 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10929 | if (!SWIG_IsOK(res1)) { | |
10930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10931 | } | |
10932 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10933 | { | |
10934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10935 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
10936 | wxPyEndAllowThreads(__tstate); | |
10937 | if (PyErr_Occurred()) SWIG_fail; | |
10938 | } | |
10939 | { | |
10940 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10941 | } | |
10942 | return resultobj; | |
10943 | fail: | |
10944 | return NULL; | |
d55e5bfc RD |
10945 | } |
10946 | ||
10947 | ||
1bd55598 RD |
10948 | SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10949 | PyObject *resultobj = 0; | |
10950 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10951 | bool result; | |
10952 | void *argp1 = 0 ; | |
10953 | int res1 = 0 ; | |
10954 | PyObject *swig_obj[1] ; | |
10955 | ||
10956 | if (!args) SWIG_fail; | |
10957 | swig_obj[0] = args; | |
10958 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10959 | if (!SWIG_IsOK(res1)) { | |
10960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10961 | } | |
10962 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10963 | { | |
10964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10965 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
10966 | wxPyEndAllowThreads(__tstate); | |
10967 | if (PyErr_Occurred()) SWIG_fail; | |
10968 | } | |
10969 | { | |
10970 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10971 | } | |
10972 | return resultobj; | |
10973 | fail: | |
10974 | return NULL; | |
d55e5bfc RD |
10975 | } |
10976 | ||
10977 | ||
1bd55598 RD |
10978 | SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10979 | PyObject *resultobj = 0; | |
10980 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10981 | bool result; | |
10982 | void *argp1 = 0 ; | |
10983 | int res1 = 0 ; | |
10984 | PyObject *swig_obj[1] ; | |
10985 | ||
10986 | if (!args) SWIG_fail; | |
10987 | swig_obj[0] = args; | |
10988 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10989 | if (!SWIG_IsOK(res1)) { | |
10990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10991 | } | |
10992 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10993 | { | |
10994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10995 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
10996 | wxPyEndAllowThreads(__tstate); | |
10997 | if (PyErr_Occurred()) SWIG_fail; | |
10998 | } | |
10999 | { | |
11000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11001 | } | |
11002 | return resultobj; | |
11003 | fail: | |
11004 | return NULL; | |
d55e5bfc RD |
11005 | } |
11006 | ||
11007 | ||
1bd55598 RD |
11008 | SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11009 | PyObject *resultobj = 0; | |
11010 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11011 | bool result; | |
11012 | void *argp1 = 0 ; | |
11013 | int res1 = 0 ; | |
11014 | PyObject *swig_obj[1] ; | |
11015 | ||
11016 | if (!args) SWIG_fail; | |
11017 | swig_obj[0] = args; | |
11018 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11019 | if (!SWIG_IsOK(res1)) { | |
11020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11021 | } | |
11022 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11023 | { | |
11024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11025 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
11026 | wxPyEndAllowThreads(__tstate); | |
11027 | if (PyErr_Occurred()) SWIG_fail; | |
11028 | } | |
11029 | { | |
11030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11031 | } | |
11032 | return resultobj; | |
11033 | fail: | |
11034 | return NULL; | |
d55e5bfc RD |
11035 | } |
11036 | ||
11037 | ||
1bd55598 RD |
11038 | SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11039 | PyObject *resultobj = 0; | |
11040 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11041 | bool result; | |
11042 | void *argp1 = 0 ; | |
11043 | int res1 = 0 ; | |
11044 | PyObject *swig_obj[1] ; | |
11045 | ||
11046 | if (!args) SWIG_fail; | |
11047 | swig_obj[0] = args; | |
11048 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11049 | if (!SWIG_IsOK(res1)) { | |
11050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11051 | } | |
11052 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11053 | { | |
11054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11055 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
11056 | wxPyEndAllowThreads(__tstate); | |
11057 | if (PyErr_Occurred()) SWIG_fail; | |
11058 | } | |
11059 | { | |
11060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11061 | } | |
11062 | return resultobj; | |
11063 | fail: | |
11064 | return NULL; | |
d55e5bfc RD |
11065 | } |
11066 | ||
11067 | ||
1bd55598 RD |
11068 | SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11069 | PyObject *resultobj = 0; | |
11070 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11071 | bool result; | |
11072 | void *argp1 = 0 ; | |
11073 | int res1 = 0 ; | |
11074 | PyObject *swig_obj[1] ; | |
11075 | ||
11076 | if (!args) SWIG_fail; | |
11077 | swig_obj[0] = args; | |
11078 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11079 | if (!SWIG_IsOK(res1)) { | |
11080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11081 | } | |
11082 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11083 | { | |
11084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11085 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
11086 | wxPyEndAllowThreads(__tstate); | |
11087 | if (PyErr_Occurred()) SWIG_fail; | |
11088 | } | |
11089 | { | |
11090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11091 | } | |
11092 | return resultobj; | |
11093 | fail: | |
11094 | return NULL; | |
d55e5bfc RD |
11095 | } |
11096 | ||
11097 | ||
1bd55598 RD |
11098 | SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11099 | PyObject *resultobj = 0; | |
11100 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11101 | bool result; | |
11102 | void *argp1 = 0 ; | |
11103 | int res1 = 0 ; | |
11104 | PyObject *swig_obj[1] ; | |
11105 | ||
11106 | if (!args) SWIG_fail; | |
11107 | swig_obj[0] = args; | |
11108 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11109 | if (!SWIG_IsOK(res1)) { | |
11110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11111 | } | |
11112 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11113 | { | |
11114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11115 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
11116 | wxPyEndAllowThreads(__tstate); | |
11117 | if (PyErr_Occurred()) SWIG_fail; | |
11118 | } | |
11119 | { | |
11120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11121 | } | |
11122 | return resultobj; | |
11123 | fail: | |
11124 | return NULL; | |
11125 | } | |
11126 | ||
11127 | ||
11128 | SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11129 | PyObject *resultobj = 0; | |
11130 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11131 | long arg2 ; | |
11132 | bool result; | |
11133 | void *argp1 = 0 ; | |
11134 | int res1 = 0 ; | |
11135 | long val2 ; | |
11136 | int ecode2 = 0 ; | |
11137 | PyObject * obj0 = 0 ; | |
11138 | PyObject * obj1 = 0 ; | |
11139 | char * kwnames[] = { | |
11140 | (char *) "self",(char *) "flag", NULL | |
11141 | }; | |
11142 | ||
11143 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail; | |
11144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11145 | if (!SWIG_IsOK(res1)) { | |
11146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11147 | } | |
11148 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11149 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
11150 | if (!SWIG_IsOK(ecode2)) { | |
11151 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'"); | |
11152 | } | |
11153 | arg2 = static_cast< long >(val2); | |
11154 | { | |
11155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11156 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
11157 | wxPyEndAllowThreads(__tstate); | |
11158 | if (PyErr_Occurred()) SWIG_fail; | |
11159 | } | |
11160 | { | |
11161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11162 | } | |
11163 | return resultobj; | |
11164 | fail: | |
11165 | return NULL; | |
d55e5bfc RD |
11166 | } |
11167 | ||
11168 | ||
1bd55598 RD |
11169 | SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11170 | PyObject *resultobj = 0; | |
11171 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11172 | wxColour *result = 0 ; | |
11173 | void *argp1 = 0 ; | |
11174 | int res1 = 0 ; | |
11175 | PyObject *swig_obj[1] ; | |
11176 | ||
11177 | if (!args) SWIG_fail; | |
11178 | swig_obj[0] = args; | |
11179 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11180 | if (!SWIG_IsOK(res1)) { | |
11181 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11182 | } | |
11183 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11184 | { | |
11185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 11186 | { |
1bd55598 RD |
11187 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); |
11188 | result = (wxColour *) &_result_ref; | |
d55e5bfc | 11189 | } |
1bd55598 RD |
11190 | wxPyEndAllowThreads(__tstate); |
11191 | if (PyErr_Occurred()) SWIG_fail; | |
11192 | } | |
11193 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
11194 | return resultobj; | |
11195 | fail: | |
11196 | return NULL; | |
d55e5bfc RD |
11197 | } |
11198 | ||
11199 | ||
1bd55598 RD |
11200 | SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11201 | PyObject *resultobj = 0; | |
11202 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11203 | wxColour *result = 0 ; | |
11204 | void *argp1 = 0 ; | |
11205 | int res1 = 0 ; | |
11206 | PyObject *swig_obj[1] ; | |
11207 | ||
11208 | if (!args) SWIG_fail; | |
11209 | swig_obj[0] = args; | |
11210 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11211 | if (!SWIG_IsOK(res1)) { | |
11212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11213 | } | |
11214 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11215 | { | |
11216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 11217 | { |
1bd55598 RD |
11218 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); |
11219 | result = (wxColour *) &_result_ref; | |
d55e5bfc | 11220 | } |
1bd55598 RD |
11221 | wxPyEndAllowThreads(__tstate); |
11222 | if (PyErr_Occurred()) SWIG_fail; | |
11223 | } | |
11224 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
11225 | return resultobj; | |
11226 | fail: | |
11227 | return NULL; | |
d55e5bfc RD |
11228 | } |
11229 | ||
11230 | ||
1bd55598 RD |
11231 | SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11232 | PyObject *resultobj = 0; | |
11233 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11234 | wxFont *result = 0 ; | |
11235 | void *argp1 = 0 ; | |
11236 | int res1 = 0 ; | |
11237 | PyObject *swig_obj[1] ; | |
11238 | ||
11239 | if (!args) SWIG_fail; | |
11240 | swig_obj[0] = args; | |
11241 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11242 | if (!SWIG_IsOK(res1)) { | |
11243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11244 | } | |
11245 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11246 | { | |
11247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 11248 | { |
1bd55598 RD |
11249 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); |
11250 | result = (wxFont *) &_result_ref; | |
d55e5bfc | 11251 | } |
1bd55598 RD |
11252 | wxPyEndAllowThreads(__tstate); |
11253 | if (PyErr_Occurred()) SWIG_fail; | |
11254 | } | |
11255 | { | |
11256 | wxFont* resultptr = new wxFont(*result); | |
11257 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
11258 | } | |
11259 | return resultobj; | |
11260 | fail: | |
11261 | return NULL; | |
d55e5bfc RD |
11262 | } |
11263 | ||
11264 | ||
1bd55598 RD |
11265 | SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11266 | PyObject *resultobj = 0; | |
11267 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11268 | wxTextAttrAlignment result; | |
11269 | void *argp1 = 0 ; | |
11270 | int res1 = 0 ; | |
11271 | PyObject *swig_obj[1] ; | |
11272 | ||
11273 | if (!args) SWIG_fail; | |
11274 | swig_obj[0] = args; | |
11275 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11276 | if (!SWIG_IsOK(res1)) { | |
11277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11278 | } | |
11279 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11280 | { | |
11281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11282 | result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment(); | |
11283 | wxPyEndAllowThreads(__tstate); | |
11284 | if (PyErr_Occurred()) SWIG_fail; | |
11285 | } | |
11286 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11287 | return resultobj; | |
11288 | fail: | |
11289 | return NULL; | |
d55e5bfc RD |
11290 | } |
11291 | ||
11292 | ||
1bd55598 RD |
11293 | SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11294 | PyObject *resultobj = 0; | |
11295 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11296 | wxArrayInt *result = 0 ; | |
11297 | void *argp1 = 0 ; | |
11298 | int res1 = 0 ; | |
11299 | PyObject *swig_obj[1] ; | |
11300 | ||
11301 | if (!args) SWIG_fail; | |
11302 | swig_obj[0] = args; | |
11303 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11304 | if (!SWIG_IsOK(res1)) { | |
11305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11306 | } | |
11307 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11308 | { | |
11309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11310 | { |
1bd55598 RD |
11311 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); |
11312 | result = (wxArrayInt *) &_result_ref; | |
36ed4f51 | 11313 | } |
1bd55598 RD |
11314 | wxPyEndAllowThreads(__tstate); |
11315 | if (PyErr_Occurred()) SWIG_fail; | |
11316 | } | |
11317 | { | |
b39fe951 | 11318 | resultobj = wxArrayInt2PyList_helper(*result); |
1bd55598 RD |
11319 | } |
11320 | return resultobj; | |
11321 | fail: | |
11322 | return NULL; | |
d55e5bfc RD |
11323 | } |
11324 | ||
11325 | ||
1bd55598 RD |
11326 | SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11327 | PyObject *resultobj = 0; | |
11328 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11329 | long result; | |
11330 | void *argp1 = 0 ; | |
11331 | int res1 = 0 ; | |
11332 | PyObject *swig_obj[1] ; | |
11333 | ||
11334 | if (!args) SWIG_fail; | |
11335 | swig_obj[0] = args; | |
11336 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11337 | if (!SWIG_IsOK(res1)) { | |
11338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11339 | } | |
11340 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11341 | { | |
11342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11343 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
11344 | wxPyEndAllowThreads(__tstate); | |
11345 | if (PyErr_Occurred()) SWIG_fail; | |
11346 | } | |
11347 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11348 | return resultobj; | |
11349 | fail: | |
11350 | return NULL; | |
d55e5bfc RD |
11351 | } |
11352 | ||
11353 | ||
1bd55598 RD |
11354 | SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11355 | PyObject *resultobj = 0; | |
11356 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11357 | long result; | |
11358 | void *argp1 = 0 ; | |
11359 | int res1 = 0 ; | |
11360 | PyObject *swig_obj[1] ; | |
11361 | ||
11362 | if (!args) SWIG_fail; | |
11363 | swig_obj[0] = args; | |
11364 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11365 | if (!SWIG_IsOK(res1)) { | |
11366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11367 | } | |
11368 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11369 | { | |
11370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11371 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
11372 | wxPyEndAllowThreads(__tstate); | |
11373 | if (PyErr_Occurred()) SWIG_fail; | |
11374 | } | |
11375 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11376 | return resultobj; | |
11377 | fail: | |
11378 | return NULL; | |
d55e5bfc RD |
11379 | } |
11380 | ||
11381 | ||
1bd55598 RD |
11382 | SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11383 | PyObject *resultobj = 0; | |
11384 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11385 | long result; | |
11386 | void *argp1 = 0 ; | |
11387 | int res1 = 0 ; | |
11388 | PyObject *swig_obj[1] ; | |
11389 | ||
11390 | if (!args) SWIG_fail; | |
11391 | swig_obj[0] = args; | |
11392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11393 | if (!SWIG_IsOK(res1)) { | |
11394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11395 | } | |
11396 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11397 | { | |
11398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11399 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
11400 | wxPyEndAllowThreads(__tstate); | |
11401 | if (PyErr_Occurred()) SWIG_fail; | |
11402 | } | |
11403 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11404 | return resultobj; | |
11405 | fail: | |
11406 | return NULL; | |
d55e5bfc RD |
11407 | } |
11408 | ||
11409 | ||
1bd55598 RD |
11410 | SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11411 | PyObject *resultobj = 0; | |
11412 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11413 | long result; | |
11414 | void *argp1 = 0 ; | |
11415 | int res1 = 0 ; | |
11416 | PyObject *swig_obj[1] ; | |
11417 | ||
11418 | if (!args) SWIG_fail; | |
11419 | swig_obj[0] = args; | |
11420 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11421 | if (!SWIG_IsOK(res1)) { | |
11422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11423 | } | |
11424 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11425 | { | |
11426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11427 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
11428 | wxPyEndAllowThreads(__tstate); | |
11429 | if (PyErr_Occurred()) SWIG_fail; | |
11430 | } | |
11431 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11432 | return resultobj; | |
11433 | fail: | |
11434 | return NULL; | |
d55e5bfc RD |
11435 | } |
11436 | ||
11437 | ||
1bd55598 RD |
11438 | SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11439 | PyObject *resultobj = 0; | |
11440 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11441 | bool result; | |
11442 | void *argp1 = 0 ; | |
11443 | int res1 = 0 ; | |
11444 | PyObject *swig_obj[1] ; | |
11445 | ||
11446 | if (!args) SWIG_fail; | |
11447 | swig_obj[0] = args; | |
11448 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11449 | if (!SWIG_IsOK(res1)) { | |
11450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11451 | } | |
11452 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11453 | { | |
11454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11455 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
11456 | wxPyEndAllowThreads(__tstate); | |
11457 | if (PyErr_Occurred()) SWIG_fail; | |
11458 | } | |
11459 | { | |
11460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11461 | } | |
11462 | return resultobj; | |
11463 | fail: | |
11464 | return NULL; | |
11465 | } | |
11466 | ||
11467 | ||
11468 | SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11469 | PyObject *resultobj = 0; | |
11470 | wxTextAttr *arg1 = 0 ; | |
11471 | wxTextAttr *arg2 = 0 ; | |
11472 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
11473 | wxTextAttr result; | |
11474 | void *argp1 = 0 ; | |
11475 | int res1 = 0 ; | |
11476 | void *argp2 = 0 ; | |
11477 | int res2 = 0 ; | |
11478 | void *argp3 = 0 ; | |
11479 | int res3 = 0 ; | |
11480 | PyObject * obj0 = 0 ; | |
11481 | PyObject * obj1 = 0 ; | |
11482 | PyObject * obj2 = 0 ; | |
11483 | char * kwnames[] = { | |
11484 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
11485 | }; | |
11486 | ||
11487 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11488 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
11489 | if (!SWIG_IsOK(res1)) { | |
11490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
11491 | } | |
11492 | if (!argp1) { | |
11493 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
11494 | } | |
11495 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11496 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
11497 | if (!SWIG_IsOK(res2)) { | |
11498 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
11499 | } | |
11500 | if (!argp2) { | |
11501 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
11502 | } | |
11503 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
11504 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11505 | if (!SWIG_IsOK(res3)) { | |
11506 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'"); | |
11507 | } | |
11508 | arg3 = reinterpret_cast< wxTextCtrl * >(argp3); | |
11509 | { | |
11510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11511 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
11512 | wxPyEndAllowThreads(__tstate); | |
11513 | if (PyErr_Occurred()) SWIG_fail; | |
11514 | } | |
11515 | resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 ); | |
11516 | return resultobj; | |
11517 | fail: | |
11518 | return NULL; | |
11519 | } | |
11520 | ||
11521 | ||
11522 | SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11523 | PyObject *obj; | |
11524 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11525 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj)); | |
11526 | return SWIG_Py_Void(); | |
11527 | } | |
11528 | ||
11529 | SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11530 | return SWIG_Python_InitShadowInstance(args); | |
11531 | } | |
11532 | ||
11533 | SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11534 | PyObject *resultobj = 0; | |
11535 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11536 | int arg2 = (int) -1 ; | |
11537 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11538 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11539 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11540 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11541 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11542 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11543 | long arg6 = (long) 0 ; | |
11544 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11545 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11546 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
11547 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11548 | wxTextCtrl *result = 0 ; | |
11549 | void *argp1 = 0 ; | |
11550 | int res1 = 0 ; | |
11551 | int val2 ; | |
11552 | int ecode2 = 0 ; | |
11553 | bool temp3 = false ; | |
11554 | wxPoint temp4 ; | |
11555 | wxSize temp5 ; | |
11556 | long val6 ; | |
11557 | int ecode6 = 0 ; | |
11558 | void *argp7 = 0 ; | |
11559 | int res7 = 0 ; | |
11560 | bool temp8 = false ; | |
11561 | PyObject * obj0 = 0 ; | |
11562 | PyObject * obj1 = 0 ; | |
11563 | PyObject * obj2 = 0 ; | |
11564 | PyObject * obj3 = 0 ; | |
11565 | PyObject * obj4 = 0 ; | |
11566 | PyObject * obj5 = 0 ; | |
11567 | PyObject * obj6 = 0 ; | |
11568 | PyObject * obj7 = 0 ; | |
11569 | char * kwnames[] = { | |
11570 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11571 | }; | |
11572 | ||
11573 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
11574 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
11575 | if (!SWIG_IsOK(res1)) { | |
11576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
11577 | } | |
11578 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
11579 | if (obj1) { | |
11580 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11581 | if (!SWIG_IsOK(ecode2)) { | |
11582 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'"); | |
11583 | } | |
11584 | arg2 = static_cast< int >(val2); | |
11585 | } | |
11586 | if (obj2) { | |
36ed4f51 | 11587 | { |
1bd55598 RD |
11588 | arg3 = wxString_in_helper(obj2); |
11589 | if (arg3 == NULL) SWIG_fail; | |
11590 | temp3 = true; | |
36ed4f51 | 11591 | } |
1bd55598 RD |
11592 | } |
11593 | if (obj3) { | |
36ed4f51 | 11594 | { |
1bd55598 RD |
11595 | arg4 = &temp4; |
11596 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 11597 | } |
1bd55598 RD |
11598 | } |
11599 | if (obj4) { | |
d55e5bfc | 11600 | { |
1bd55598 RD |
11601 | arg5 = &temp5; |
11602 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 11603 | } |
1bd55598 RD |
11604 | } |
11605 | if (obj5) { | |
11606 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
11607 | if (!SWIG_IsOK(ecode6)) { | |
11608 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'"); | |
11609 | } | |
11610 | arg6 = static_cast< long >(val6); | |
11611 | } | |
11612 | if (obj6) { | |
11613 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
11614 | if (!SWIG_IsOK(res7)) { | |
11615 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 11616 | } |
1bd55598 RD |
11617 | if (!argp7) { |
11618 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 11619 | } |
1bd55598 RD |
11620 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
11621 | } | |
11622 | if (obj7) { | |
d55e5bfc | 11623 | { |
1bd55598 RD |
11624 | arg8 = wxString_in_helper(obj7); |
11625 | if (arg8 == NULL) SWIG_fail; | |
11626 | temp8 = true; | |
d55e5bfc | 11627 | } |
1bd55598 RD |
11628 | } |
11629 | { | |
11630 | if (!wxPyCheckForApp()) SWIG_fail; | |
11631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11632 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11633 | wxPyEndAllowThreads(__tstate); | |
11634 | if (PyErr_Occurred()) SWIG_fail; | |
11635 | } | |
11636 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 ); | |
11637 | { | |
11638 | if (temp3) | |
11639 | delete arg3; | |
11640 | } | |
11641 | { | |
11642 | if (temp8) | |
11643 | delete arg8; | |
11644 | } | |
11645 | return resultobj; | |
11646 | fail: | |
11647 | { | |
11648 | if (temp3) | |
11649 | delete arg3; | |
11650 | } | |
11651 | { | |
11652 | if (temp8) | |
11653 | delete arg8; | |
11654 | } | |
11655 | return NULL; | |
d55e5bfc RD |
11656 | } |
11657 | ||
11658 | ||
1bd55598 RD |
11659 | SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11660 | PyObject *resultobj = 0; | |
11661 | wxTextCtrl *result = 0 ; | |
11662 | ||
11663 | if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail; | |
11664 | { | |
11665 | if (!wxPyCheckForApp()) SWIG_fail; | |
11666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11667 | result = (wxTextCtrl *)new wxTextCtrl(); | |
11668 | wxPyEndAllowThreads(__tstate); | |
11669 | if (PyErr_Occurred()) SWIG_fail; | |
11670 | } | |
11671 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 ); | |
11672 | return resultobj; | |
11673 | fail: | |
11674 | return NULL; | |
11675 | } | |
11676 | ||
11677 | ||
11678 | SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11679 | PyObject *resultobj = 0; | |
11680 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11681 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11682 | int arg3 = (int) -1 ; | |
11683 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11684 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11685 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11686 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11687 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11688 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11689 | long arg7 = (long) 0 ; | |
11690 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11691 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11692 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
11693 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11694 | bool result; | |
11695 | void *argp1 = 0 ; | |
11696 | int res1 = 0 ; | |
11697 | void *argp2 = 0 ; | |
11698 | int res2 = 0 ; | |
11699 | int val3 ; | |
11700 | int ecode3 = 0 ; | |
11701 | bool temp4 = false ; | |
11702 | wxPoint temp5 ; | |
11703 | wxSize temp6 ; | |
11704 | long val7 ; | |
11705 | int ecode7 = 0 ; | |
11706 | void *argp8 = 0 ; | |
11707 | int res8 = 0 ; | |
11708 | bool temp9 = false ; | |
11709 | PyObject * obj0 = 0 ; | |
11710 | PyObject * obj1 = 0 ; | |
11711 | PyObject * obj2 = 0 ; | |
11712 | PyObject * obj3 = 0 ; | |
11713 | PyObject * obj4 = 0 ; | |
11714 | PyObject * obj5 = 0 ; | |
11715 | PyObject * obj6 = 0 ; | |
11716 | PyObject * obj7 = 0 ; | |
11717 | PyObject * obj8 = 0 ; | |
11718 | char * kwnames[] = { | |
11719 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11720 | }; | |
11721 | ||
11722 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
11723 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11724 | if (!SWIG_IsOK(res1)) { | |
11725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
11726 | } | |
11727 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11728 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
11729 | if (!SWIG_IsOK(res2)) { | |
11730 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
11731 | } | |
11732 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
11733 | if (obj2) { | |
11734 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11735 | if (!SWIG_IsOK(ecode3)) { | |
11736 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
11737 | } | |
11738 | arg3 = static_cast< int >(val3); | |
11739 | } | |
11740 | if (obj3) { | |
d55e5bfc | 11741 | { |
1bd55598 RD |
11742 | arg4 = wxString_in_helper(obj3); |
11743 | if (arg4 == NULL) SWIG_fail; | |
11744 | temp4 = true; | |
d55e5bfc | 11745 | } |
1bd55598 RD |
11746 | } |
11747 | if (obj4) { | |
d55e5bfc | 11748 | { |
1bd55598 RD |
11749 | arg5 = &temp5; |
11750 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 11751 | } |
1bd55598 RD |
11752 | } |
11753 | if (obj5) { | |
d55e5bfc | 11754 | { |
1bd55598 RD |
11755 | arg6 = &temp6; |
11756 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 11757 | } |
1bd55598 RD |
11758 | } |
11759 | if (obj6) { | |
11760 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
11761 | if (!SWIG_IsOK(ecode7)) { | |
11762 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
11763 | } | |
11764 | arg7 = static_cast< long >(val7); | |
11765 | } | |
11766 | if (obj7) { | |
11767 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
11768 | if (!SWIG_IsOK(res8)) { | |
11769 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 11770 | } |
1bd55598 RD |
11771 | if (!argp8) { |
11772 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
11773 | } | |
11774 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
11775 | } | |
11776 | if (obj8) { | |
d55e5bfc | 11777 | { |
1bd55598 RD |
11778 | arg9 = wxString_in_helper(obj8); |
11779 | if (arg9 == NULL) SWIG_fail; | |
11780 | temp9 = true; | |
d55e5bfc | 11781 | } |
1bd55598 RD |
11782 | } |
11783 | { | |
11784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11785 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11786 | wxPyEndAllowThreads(__tstate); | |
11787 | if (PyErr_Occurred()) SWIG_fail; | |
11788 | } | |
11789 | { | |
11790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11791 | } | |
11792 | { | |
11793 | if (temp4) | |
11794 | delete arg4; | |
11795 | } | |
11796 | { | |
11797 | if (temp9) | |
11798 | delete arg9; | |
11799 | } | |
11800 | return resultobj; | |
11801 | fail: | |
11802 | { | |
11803 | if (temp4) | |
11804 | delete arg4; | |
11805 | } | |
11806 | { | |
11807 | if (temp9) | |
11808 | delete arg9; | |
11809 | } | |
11810 | return NULL; | |
d55e5bfc RD |
11811 | } |
11812 | ||
11813 | ||
1bd55598 RD |
11814 | SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11815 | PyObject *resultobj = 0; | |
11816 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11817 | wxString result; | |
11818 | void *argp1 = 0 ; | |
11819 | int res1 = 0 ; | |
11820 | PyObject *swig_obj[1] ; | |
11821 | ||
11822 | if (!args) SWIG_fail; | |
11823 | swig_obj[0] = args; | |
11824 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11825 | if (!SWIG_IsOK(res1)) { | |
11826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11827 | } | |
11828 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11829 | { | |
11830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11831 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
11832 | wxPyEndAllowThreads(__tstate); | |
11833 | if (PyErr_Occurred()) SWIG_fail; | |
11834 | } | |
11835 | { | |
11836 | #if wxUSE_UNICODE | |
11837 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11838 | #else | |
11839 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11840 | #endif | |
11841 | } | |
11842 | return resultobj; | |
11843 | fail: | |
11844 | return NULL; | |
11845 | } | |
11846 | ||
11847 | ||
11848 | SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11849 | PyObject *resultobj = 0; | |
11850 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11851 | wxString *arg2 = 0 ; | |
11852 | void *argp1 = 0 ; | |
11853 | int res1 = 0 ; | |
11854 | bool temp2 = false ; | |
11855 | PyObject * obj0 = 0 ; | |
11856 | PyObject * obj1 = 0 ; | |
11857 | char * kwnames[] = { | |
11858 | (char *) "self",(char *) "value", NULL | |
11859 | }; | |
11860 | ||
11861 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
11862 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11863 | if (!SWIG_IsOK(res1)) { | |
11864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
11865 | } | |
11866 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11867 | { | |
11868 | arg2 = wxString_in_helper(obj1); | |
11869 | if (arg2 == NULL) SWIG_fail; | |
11870 | temp2 = true; | |
11871 | } | |
11872 | { | |
11873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11874 | (arg1)->SetValue((wxString const &)*arg2); | |
11875 | wxPyEndAllowThreads(__tstate); | |
11876 | if (PyErr_Occurred()) SWIG_fail; | |
11877 | } | |
11878 | resultobj = SWIG_Py_Void(); | |
11879 | { | |
11880 | if (temp2) | |
11881 | delete arg2; | |
11882 | } | |
11883 | return resultobj; | |
11884 | fail: | |
11885 | { | |
11886 | if (temp2) | |
11887 | delete arg2; | |
11888 | } | |
11889 | return NULL; | |
11890 | } | |
11891 | ||
11892 | ||
b39fe951 RD |
11893 | SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11894 | PyObject *resultobj = 0; | |
11895 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11896 | bool result; | |
11897 | void *argp1 = 0 ; | |
11898 | int res1 = 0 ; | |
11899 | PyObject *swig_obj[1] ; | |
11900 | ||
11901 | if (!args) SWIG_fail; | |
11902 | swig_obj[0] = args; | |
11903 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11904 | if (!SWIG_IsOK(res1)) { | |
11905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11906 | } | |
11907 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11908 | { | |
11909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11910 | result = (bool)((wxTextCtrl const *)arg1)->IsEmpty(); | |
11911 | wxPyEndAllowThreads(__tstate); | |
11912 | if (PyErr_Occurred()) SWIG_fail; | |
11913 | } | |
11914 | { | |
11915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11916 | } | |
11917 | return resultobj; | |
11918 | fail: | |
11919 | return NULL; | |
11920 | } | |
11921 | ||
11922 | ||
11923 | SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11924 | PyObject *resultobj = 0; | |
11925 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11926 | wxString *arg2 = 0 ; | |
11927 | void *argp1 = 0 ; | |
11928 | int res1 = 0 ; | |
11929 | bool temp2 = false ; | |
11930 | PyObject * obj0 = 0 ; | |
11931 | PyObject * obj1 = 0 ; | |
11932 | char * kwnames[] = { | |
11933 | (char *) "self",(char *) "value", NULL | |
11934 | }; | |
11935 | ||
11936 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
11937 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11938 | if (!SWIG_IsOK(res1)) { | |
11939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
11940 | } | |
11941 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11942 | { | |
11943 | arg2 = wxString_in_helper(obj1); | |
11944 | if (arg2 == NULL) SWIG_fail; | |
11945 | temp2 = true; | |
11946 | } | |
11947 | { | |
11948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11949 | (arg1)->ChangeValue((wxString const &)*arg2); | |
11950 | wxPyEndAllowThreads(__tstate); | |
11951 | if (PyErr_Occurred()) SWIG_fail; | |
11952 | } | |
11953 | resultobj = SWIG_Py_Void(); | |
11954 | { | |
11955 | if (temp2) | |
11956 | delete arg2; | |
11957 | } | |
11958 | return resultobj; | |
11959 | fail: | |
11960 | { | |
11961 | if (temp2) | |
11962 | delete arg2; | |
11963 | } | |
11964 | return NULL; | |
11965 | } | |
11966 | ||
11967 | ||
1bd55598 RD |
11968 | SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11969 | PyObject *resultobj = 0; | |
11970 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11971 | long arg2 ; | |
11972 | long arg3 ; | |
11973 | wxString result; | |
11974 | void *argp1 = 0 ; | |
11975 | int res1 = 0 ; | |
11976 | long val2 ; | |
11977 | int ecode2 = 0 ; | |
11978 | long val3 ; | |
11979 | int ecode3 = 0 ; | |
11980 | PyObject * obj0 = 0 ; | |
11981 | PyObject * obj1 = 0 ; | |
11982 | PyObject * obj2 = 0 ; | |
11983 | char * kwnames[] = { | |
2131d850 | 11984 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
11985 | }; |
11986 | ||
11987 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11988 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11989 | if (!SWIG_IsOK(res1)) { | |
11990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11991 | } | |
11992 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11993 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
11994 | if (!SWIG_IsOK(ecode2)) { | |
11995 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'"); | |
11996 | } | |
11997 | arg2 = static_cast< long >(val2); | |
11998 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
11999 | if (!SWIG_IsOK(ecode3)) { | |
12000 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'"); | |
12001 | } | |
12002 | arg3 = static_cast< long >(val3); | |
12003 | { | |
12004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12005 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
12006 | wxPyEndAllowThreads(__tstate); | |
12007 | if (PyErr_Occurred()) SWIG_fail; | |
12008 | } | |
12009 | { | |
12010 | #if wxUSE_UNICODE | |
12011 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12012 | #else | |
12013 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12014 | #endif | |
12015 | } | |
12016 | return resultobj; | |
12017 | fail: | |
12018 | return NULL; | |
12019 | } | |
12020 | ||
12021 | ||
12022 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12023 | PyObject *resultobj = 0; | |
12024 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12025 | long arg2 ; | |
12026 | int result; | |
12027 | void *argp1 = 0 ; | |
12028 | int res1 = 0 ; | |
12029 | long val2 ; | |
12030 | int ecode2 = 0 ; | |
12031 | PyObject * obj0 = 0 ; | |
12032 | PyObject * obj1 = 0 ; | |
12033 | char * kwnames[] = { | |
12034 | (char *) "self",(char *) "lineNo", NULL | |
12035 | }; | |
12036 | ||
12037 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
12038 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12039 | if (!SWIG_IsOK(res1)) { | |
12040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12041 | } | |
12042 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12043 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12044 | if (!SWIG_IsOK(ecode2)) { | |
12045 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'"); | |
12046 | } | |
12047 | arg2 = static_cast< long >(val2); | |
12048 | { | |
12049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12050 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
12051 | wxPyEndAllowThreads(__tstate); | |
12052 | if (PyErr_Occurred()) SWIG_fail; | |
12053 | } | |
12054 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12055 | return resultobj; | |
12056 | fail: | |
12057 | return NULL; | |
12058 | } | |
12059 | ||
12060 | ||
12061 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12062 | PyObject *resultobj = 0; | |
12063 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12064 | long arg2 ; | |
12065 | wxString result; | |
12066 | void *argp1 = 0 ; | |
12067 | int res1 = 0 ; | |
12068 | long val2 ; | |
12069 | int ecode2 = 0 ; | |
12070 | PyObject * obj0 = 0 ; | |
12071 | PyObject * obj1 = 0 ; | |
12072 | char * kwnames[] = { | |
12073 | (char *) "self",(char *) "lineNo", NULL | |
12074 | }; | |
12075 | ||
12076 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12077 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12078 | if (!SWIG_IsOK(res1)) { | |
12079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12080 | } | |
12081 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12082 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12083 | if (!SWIG_IsOK(ecode2)) { | |
12084 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'"); | |
12085 | } | |
12086 | arg2 = static_cast< long >(val2); | |
12087 | { | |
12088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12089 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
12090 | wxPyEndAllowThreads(__tstate); | |
12091 | if (PyErr_Occurred()) SWIG_fail; | |
12092 | } | |
12093 | { | |
12094 | #if wxUSE_UNICODE | |
12095 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12096 | #else | |
12097 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12098 | #endif | |
12099 | } | |
12100 | return resultobj; | |
12101 | fail: | |
12102 | return NULL; | |
d55e5bfc RD |
12103 | } |
12104 | ||
12105 | ||
1bd55598 RD |
12106 | SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12107 | PyObject *resultobj = 0; | |
12108 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12109 | int result; | |
12110 | void *argp1 = 0 ; | |
12111 | int res1 = 0 ; | |
12112 | PyObject *swig_obj[1] ; | |
12113 | ||
12114 | if (!args) SWIG_fail; | |
12115 | swig_obj[0] = args; | |
12116 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12117 | if (!SWIG_IsOK(res1)) { | |
12118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12119 | } | |
12120 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12121 | { | |
12122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12123 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
12124 | wxPyEndAllowThreads(__tstate); | |
12125 | if (PyErr_Occurred()) SWIG_fail; | |
12126 | } | |
12127 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12128 | return resultobj; | |
12129 | fail: | |
12130 | return NULL; | |
d55e5bfc RD |
12131 | } |
12132 | ||
12133 | ||
1bd55598 RD |
12134 | SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12135 | PyObject *resultobj = 0; | |
12136 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12137 | bool result; | |
12138 | void *argp1 = 0 ; | |
12139 | int res1 = 0 ; | |
12140 | PyObject *swig_obj[1] ; | |
12141 | ||
12142 | if (!args) SWIG_fail; | |
12143 | swig_obj[0] = args; | |
12144 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12145 | if (!SWIG_IsOK(res1)) { | |
12146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12147 | } | |
12148 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12149 | { | |
12150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12151 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
12152 | wxPyEndAllowThreads(__tstate); | |
12153 | if (PyErr_Occurred()) SWIG_fail; | |
12154 | } | |
12155 | { | |
12156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12157 | } | |
12158 | return resultobj; | |
12159 | fail: | |
12160 | return NULL; | |
d55e5bfc RD |
12161 | } |
12162 | ||
12163 | ||
1bd55598 RD |
12164 | SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12165 | PyObject *resultobj = 0; | |
12166 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12167 | bool result; | |
12168 | void *argp1 = 0 ; | |
12169 | int res1 = 0 ; | |
12170 | PyObject *swig_obj[1] ; | |
12171 | ||
12172 | if (!args) SWIG_fail; | |
12173 | swig_obj[0] = args; | |
12174 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12175 | if (!SWIG_IsOK(res1)) { | |
12176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12177 | } | |
12178 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12179 | { | |
12180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12181 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
12182 | wxPyEndAllowThreads(__tstate); | |
12183 | if (PyErr_Occurred()) SWIG_fail; | |
12184 | } | |
12185 | { | |
12186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12187 | } | |
12188 | return resultobj; | |
12189 | fail: | |
12190 | return NULL; | |
d55e5bfc RD |
12191 | } |
12192 | ||
12193 | ||
1bd55598 RD |
12194 | SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12195 | PyObject *resultobj = 0; | |
12196 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12197 | bool result; | |
12198 | void *argp1 = 0 ; | |
12199 | int res1 = 0 ; | |
12200 | PyObject *swig_obj[1] ; | |
12201 | ||
12202 | if (!args) SWIG_fail; | |
12203 | swig_obj[0] = args; | |
12204 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12205 | if (!SWIG_IsOK(res1)) { | |
12206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12207 | } | |
12208 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12209 | { | |
12210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12211 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
12212 | wxPyEndAllowThreads(__tstate); | |
12213 | if (PyErr_Occurred()) SWIG_fail; | |
12214 | } | |
12215 | { | |
12216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12217 | } | |
12218 | return resultobj; | |
12219 | fail: | |
12220 | return NULL; | |
d55e5bfc RD |
12221 | } |
12222 | ||
12223 | ||
1bd55598 RD |
12224 | SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12225 | PyObject *resultobj = 0; | |
12226 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12227 | bool result; | |
12228 | void *argp1 = 0 ; | |
12229 | int res1 = 0 ; | |
12230 | PyObject *swig_obj[1] ; | |
12231 | ||
12232 | if (!args) SWIG_fail; | |
12233 | swig_obj[0] = args; | |
12234 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12235 | if (!SWIG_IsOK(res1)) { | |
12236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12237 | } | |
12238 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12239 | { | |
12240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12241 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
12242 | wxPyEndAllowThreads(__tstate); | |
12243 | if (PyErr_Occurred()) SWIG_fail; | |
12244 | } | |
12245 | { | |
12246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12247 | } | |
12248 | return resultobj; | |
12249 | fail: | |
12250 | return NULL; | |
12251 | } | |
12252 | ||
12253 | ||
12254 | SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12255 | PyObject *resultobj = 0; | |
12256 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12257 | long *arg2 = (long *) 0 ; | |
12258 | long *arg3 = (long *) 0 ; | |
12259 | void *argp1 = 0 ; | |
12260 | int res1 = 0 ; | |
12261 | long temp2 ; | |
12262 | int res2 = SWIG_TMPOBJ ; | |
12263 | long temp3 ; | |
12264 | int res3 = SWIG_TMPOBJ ; | |
12265 | PyObject *swig_obj[1] ; | |
12266 | ||
12267 | arg2 = &temp2; | |
12268 | arg3 = &temp3; | |
12269 | if (!args) SWIG_fail; | |
12270 | swig_obj[0] = args; | |
12271 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12272 | if (!SWIG_IsOK(res1)) { | |
12273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12274 | } | |
12275 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12276 | { | |
12277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12278 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
12279 | wxPyEndAllowThreads(__tstate); | |
12280 | if (PyErr_Occurred()) SWIG_fail; | |
12281 | } | |
12282 | resultobj = SWIG_Py_Void(); | |
12283 | if (SWIG_IsTmpObj(res2)) { | |
12284 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2))); | |
12285 | } else { | |
12286 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12287 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags)); | |
12288 | } | |
12289 | if (SWIG_IsTmpObj(res3)) { | |
12290 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
12291 | } else { | |
12292 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12293 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
12294 | } | |
12295 | return resultobj; | |
12296 | fail: | |
12297 | return NULL; | |
d55e5bfc RD |
12298 | } |
12299 | ||
12300 | ||
1bd55598 RD |
12301 | SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12302 | PyObject *resultobj = 0; | |
12303 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12304 | wxString result; | |
12305 | void *argp1 = 0 ; | |
12306 | int res1 = 0 ; | |
12307 | PyObject *swig_obj[1] ; | |
12308 | ||
12309 | if (!args) SWIG_fail; | |
12310 | swig_obj[0] = args; | |
12311 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12312 | if (!SWIG_IsOK(res1)) { | |
12313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12314 | } | |
12315 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12316 | { | |
12317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12318 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
12319 | wxPyEndAllowThreads(__tstate); | |
12320 | if (PyErr_Occurred()) SWIG_fail; | |
12321 | } | |
12322 | { | |
d55e5bfc | 12323 | #if wxUSE_UNICODE |
1bd55598 | 12324 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 12325 | #else |
1bd55598 | 12326 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 12327 | #endif |
1bd55598 RD |
12328 | } |
12329 | return resultobj; | |
12330 | fail: | |
12331 | return NULL; | |
d55e5bfc RD |
12332 | } |
12333 | ||
12334 | ||
1bd55598 RD |
12335 | SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12336 | PyObject *resultobj = 0; | |
12337 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12338 | void *argp1 = 0 ; | |
12339 | int res1 = 0 ; | |
12340 | PyObject *swig_obj[1] ; | |
12341 | ||
12342 | if (!args) SWIG_fail; | |
12343 | swig_obj[0] = args; | |
12344 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12345 | if (!SWIG_IsOK(res1)) { | |
12346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12347 | } | |
12348 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12349 | { | |
12350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12351 | (arg1)->Clear(); | |
12352 | wxPyEndAllowThreads(__tstate); | |
12353 | if (PyErr_Occurred()) SWIG_fail; | |
12354 | } | |
12355 | resultobj = SWIG_Py_Void(); | |
12356 | return resultobj; | |
12357 | fail: | |
12358 | return NULL; | |
12359 | } | |
12360 | ||
12361 | ||
12362 | SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12363 | PyObject *resultobj = 0; | |
12364 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12365 | long arg2 ; | |
12366 | long arg3 ; | |
12367 | wxString *arg4 = 0 ; | |
12368 | void *argp1 = 0 ; | |
12369 | int res1 = 0 ; | |
12370 | long val2 ; | |
12371 | int ecode2 = 0 ; | |
12372 | long val3 ; | |
12373 | int ecode3 = 0 ; | |
12374 | bool temp4 = false ; | |
12375 | PyObject * obj0 = 0 ; | |
12376 | PyObject * obj1 = 0 ; | |
12377 | PyObject * obj2 = 0 ; | |
12378 | PyObject * obj3 = 0 ; | |
12379 | char * kwnames[] = { | |
2131d850 | 12380 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL |
1bd55598 RD |
12381 | }; |
12382 | ||
12383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12384 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12385 | if (!SWIG_IsOK(res1)) { | |
12386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12387 | } | |
12388 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12389 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12390 | if (!SWIG_IsOK(ecode2)) { | |
12391 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'"); | |
12392 | } | |
12393 | arg2 = static_cast< long >(val2); | |
12394 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12395 | if (!SWIG_IsOK(ecode3)) { | |
12396 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'"); | |
12397 | } | |
12398 | arg3 = static_cast< long >(val3); | |
12399 | { | |
12400 | arg4 = wxString_in_helper(obj3); | |
12401 | if (arg4 == NULL) SWIG_fail; | |
12402 | temp4 = true; | |
12403 | } | |
12404 | { | |
12405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12406 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
12407 | wxPyEndAllowThreads(__tstate); | |
12408 | if (PyErr_Occurred()) SWIG_fail; | |
12409 | } | |
12410 | resultobj = SWIG_Py_Void(); | |
12411 | { | |
12412 | if (temp4) | |
12413 | delete arg4; | |
12414 | } | |
12415 | return resultobj; | |
12416 | fail: | |
12417 | { | |
12418 | if (temp4) | |
12419 | delete arg4; | |
12420 | } | |
12421 | return NULL; | |
12422 | } | |
12423 | ||
12424 | ||
12425 | SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12426 | PyObject *resultobj = 0; | |
12427 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12428 | long arg2 ; | |
12429 | long arg3 ; | |
12430 | void *argp1 = 0 ; | |
12431 | int res1 = 0 ; | |
12432 | long val2 ; | |
12433 | int ecode2 = 0 ; | |
12434 | long val3 ; | |
12435 | int ecode3 = 0 ; | |
12436 | PyObject * obj0 = 0 ; | |
12437 | PyObject * obj1 = 0 ; | |
12438 | PyObject * obj2 = 0 ; | |
12439 | char * kwnames[] = { | |
2131d850 | 12440 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
12441 | }; |
12442 | ||
12443 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12444 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12445 | if (!SWIG_IsOK(res1)) { | |
12446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12447 | } | |
12448 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12449 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12450 | if (!SWIG_IsOK(ecode2)) { | |
12451 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'"); | |
12452 | } | |
12453 | arg2 = static_cast< long >(val2); | |
12454 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12455 | if (!SWIG_IsOK(ecode3)) { | |
12456 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'"); | |
12457 | } | |
12458 | arg3 = static_cast< long >(val3); | |
12459 | { | |
12460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12461 | (arg1)->Remove(arg2,arg3); | |
12462 | wxPyEndAllowThreads(__tstate); | |
12463 | if (PyErr_Occurred()) SWIG_fail; | |
12464 | } | |
12465 | resultobj = SWIG_Py_Void(); | |
12466 | return resultobj; | |
12467 | fail: | |
12468 | return NULL; | |
12469 | } | |
12470 | ||
12471 | ||
12472 | SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12473 | PyObject *resultobj = 0; | |
12474 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12475 | wxString *arg2 = 0 ; | |
f5263701 | 12476 | int arg3 = (int) wxTEXT_TYPE_ANY ; |
1bd55598 RD |
12477 | bool result; |
12478 | void *argp1 = 0 ; | |
12479 | int res1 = 0 ; | |
12480 | bool temp2 = false ; | |
f5263701 RD |
12481 | int val3 ; |
12482 | int ecode3 = 0 ; | |
1bd55598 RD |
12483 | PyObject * obj0 = 0 ; |
12484 | PyObject * obj1 = 0 ; | |
f5263701 | 12485 | PyObject * obj2 = 0 ; |
1bd55598 | 12486 | char * kwnames[] = { |
f5263701 | 12487 | (char *) "self",(char *) "file",(char *) "fileType", NULL |
1bd55598 RD |
12488 | }; |
12489 | ||
f5263701 | 12490 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
1bd55598 RD |
12491 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); |
12492 | if (!SWIG_IsOK(res1)) { | |
12493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12494 | } | |
12495 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12496 | { | |
12497 | arg2 = wxString_in_helper(obj1); | |
12498 | if (arg2 == NULL) SWIG_fail; | |
12499 | temp2 = true; | |
12500 | } | |
f5263701 RD |
12501 | if (obj2) { |
12502 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12503 | if (!SWIG_IsOK(ecode3)) { | |
12504 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'"); | |
12505 | } | |
12506 | arg3 = static_cast< int >(val3); | |
12507 | } | |
1bd55598 RD |
12508 | { |
12509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f5263701 | 12510 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
1bd55598 RD |
12511 | wxPyEndAllowThreads(__tstate); |
12512 | if (PyErr_Occurred()) SWIG_fail; | |
12513 | } | |
12514 | { | |
12515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12516 | } | |
12517 | { | |
12518 | if (temp2) | |
12519 | delete arg2; | |
12520 | } | |
12521 | return resultobj; | |
12522 | fail: | |
12523 | { | |
12524 | if (temp2) | |
12525 | delete arg2; | |
12526 | } | |
12527 | return NULL; | |
12528 | } | |
12529 | ||
12530 | ||
12531 | SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12532 | PyObject *resultobj = 0; | |
12533 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12534 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12535 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
f5263701 | 12536 | int arg3 = (int) wxTEXT_TYPE_ANY ; |
1bd55598 RD |
12537 | bool result; |
12538 | void *argp1 = 0 ; | |
12539 | int res1 = 0 ; | |
12540 | bool temp2 = false ; | |
f5263701 RD |
12541 | int val3 ; |
12542 | int ecode3 = 0 ; | |
1bd55598 RD |
12543 | PyObject * obj0 = 0 ; |
12544 | PyObject * obj1 = 0 ; | |
f5263701 | 12545 | PyObject * obj2 = 0 ; |
1bd55598 | 12546 | char * kwnames[] = { |
f5263701 | 12547 | (char *) "self",(char *) "file",(char *) "fileType", NULL |
1bd55598 RD |
12548 | }; |
12549 | ||
f5263701 | 12550 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
1bd55598 RD |
12551 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); |
12552 | if (!SWIG_IsOK(res1)) { | |
12553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12554 | } | |
12555 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12556 | if (obj1) { | |
d55e5bfc | 12557 | { |
1bd55598 RD |
12558 | arg2 = wxString_in_helper(obj1); |
12559 | if (arg2 == NULL) SWIG_fail; | |
12560 | temp2 = true; | |
d55e5bfc | 12561 | } |
1bd55598 | 12562 | } |
f5263701 RD |
12563 | if (obj2) { |
12564 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12565 | if (!SWIG_IsOK(ecode3)) { | |
12566 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'"); | |
12567 | } | |
12568 | arg3 = static_cast< int >(val3); | |
12569 | } | |
1bd55598 RD |
12570 | { |
12571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f5263701 | 12572 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); |
1bd55598 RD |
12573 | wxPyEndAllowThreads(__tstate); |
12574 | if (PyErr_Occurred()) SWIG_fail; | |
12575 | } | |
12576 | { | |
12577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12578 | } | |
12579 | { | |
12580 | if (temp2) | |
12581 | delete arg2; | |
12582 | } | |
12583 | return resultobj; | |
12584 | fail: | |
12585 | { | |
12586 | if (temp2) | |
12587 | delete arg2; | |
12588 | } | |
12589 | return NULL; | |
d55e5bfc RD |
12590 | } |
12591 | ||
12592 | ||
1bd55598 RD |
12593 | SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12594 | PyObject *resultobj = 0; | |
12595 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12596 | void *argp1 = 0 ; | |
12597 | int res1 = 0 ; | |
12598 | PyObject *swig_obj[1] ; | |
12599 | ||
12600 | if (!args) SWIG_fail; | |
12601 | swig_obj[0] = args; | |
12602 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12603 | if (!SWIG_IsOK(res1)) { | |
12604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12605 | } | |
12606 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12607 | { | |
12608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12609 | (arg1)->MarkDirty(); | |
12610 | wxPyEndAllowThreads(__tstate); | |
12611 | if (PyErr_Occurred()) SWIG_fail; | |
12612 | } | |
12613 | resultobj = SWIG_Py_Void(); | |
12614 | return resultobj; | |
12615 | fail: | |
12616 | return NULL; | |
d55e5bfc RD |
12617 | } |
12618 | ||
12619 | ||
1bd55598 RD |
12620 | SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12621 | PyObject *resultobj = 0; | |
12622 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12623 | void *argp1 = 0 ; | |
12624 | int res1 = 0 ; | |
12625 | PyObject *swig_obj[1] ; | |
12626 | ||
12627 | if (!args) SWIG_fail; | |
12628 | swig_obj[0] = args; | |
12629 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12630 | if (!SWIG_IsOK(res1)) { | |
12631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12632 | } | |
12633 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12634 | { | |
12635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12636 | (arg1)->DiscardEdits(); | |
12637 | wxPyEndAllowThreads(__tstate); | |
12638 | if (PyErr_Occurred()) SWIG_fail; | |
12639 | } | |
12640 | resultobj = SWIG_Py_Void(); | |
12641 | return resultobj; | |
12642 | fail: | |
12643 | return NULL; | |
12644 | } | |
12645 | ||
12646 | ||
b02396e8 RD |
12647 | SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12648 | PyObject *resultobj = 0; | |
12649 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12650 | bool arg2 ; | |
12651 | void *argp1 = 0 ; | |
12652 | int res1 = 0 ; | |
12653 | bool val2 ; | |
12654 | int ecode2 = 0 ; | |
12655 | PyObject * obj0 = 0 ; | |
12656 | PyObject * obj1 = 0 ; | |
12657 | char * kwnames[] = { | |
12658 | (char *) "self",(char *) "modified", NULL | |
12659 | }; | |
12660 | ||
12661 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail; | |
12662 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12663 | if (!SWIG_IsOK(res1)) { | |
12664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12665 | } | |
12666 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12667 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
12668 | if (!SWIG_IsOK(ecode2)) { | |
12669 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'"); | |
12670 | } | |
12671 | arg2 = static_cast< bool >(val2); | |
12672 | { | |
12673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12674 | (arg1)->SetModified(arg2); | |
12675 | wxPyEndAllowThreads(__tstate); | |
12676 | if (PyErr_Occurred()) SWIG_fail; | |
12677 | } | |
12678 | resultobj = SWIG_Py_Void(); | |
12679 | return resultobj; | |
12680 | fail: | |
12681 | return NULL; | |
12682 | } | |
12683 | ||
12684 | ||
1bd55598 RD |
12685 | SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12686 | PyObject *resultobj = 0; | |
12687 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12688 | unsigned long arg2 ; | |
12689 | void *argp1 = 0 ; | |
12690 | int res1 = 0 ; | |
12691 | unsigned long val2 ; | |
12692 | int ecode2 = 0 ; | |
12693 | PyObject * obj0 = 0 ; | |
12694 | PyObject * obj1 = 0 ; | |
12695 | char * kwnames[] = { | |
12696 | (char *) "self",(char *) "len", NULL | |
12697 | }; | |
12698 | ||
12699 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
12700 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12701 | if (!SWIG_IsOK(res1)) { | |
12702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12703 | } | |
12704 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12705 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
12706 | if (!SWIG_IsOK(ecode2)) { | |
12707 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'"); | |
12708 | } | |
12709 | arg2 = static_cast< unsigned long >(val2); | |
12710 | { | |
12711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12712 | (arg1)->SetMaxLength(arg2); | |
12713 | wxPyEndAllowThreads(__tstate); | |
12714 | if (PyErr_Occurred()) SWIG_fail; | |
12715 | } | |
12716 | resultobj = SWIG_Py_Void(); | |
12717 | return resultobj; | |
12718 | fail: | |
12719 | return NULL; | |
12720 | } | |
12721 | ||
12722 | ||
12723 | SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12724 | PyObject *resultobj = 0; | |
12725 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12726 | wxString *arg2 = 0 ; | |
12727 | void *argp1 = 0 ; | |
12728 | int res1 = 0 ; | |
12729 | bool temp2 = false ; | |
12730 | PyObject * obj0 = 0 ; | |
12731 | PyObject * obj1 = 0 ; | |
12732 | char * kwnames[] = { | |
12733 | (char *) "self",(char *) "text", NULL | |
12734 | }; | |
12735 | ||
12736 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12737 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12738 | if (!SWIG_IsOK(res1)) { | |
12739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12740 | } | |
12741 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12742 | { | |
12743 | arg2 = wxString_in_helper(obj1); | |
12744 | if (arg2 == NULL) SWIG_fail; | |
12745 | temp2 = true; | |
12746 | } | |
12747 | { | |
12748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12749 | (arg1)->WriteText((wxString const &)*arg2); | |
12750 | wxPyEndAllowThreads(__tstate); | |
12751 | if (PyErr_Occurred()) SWIG_fail; | |
12752 | } | |
12753 | resultobj = SWIG_Py_Void(); | |
12754 | { | |
12755 | if (temp2) | |
12756 | delete arg2; | |
12757 | } | |
12758 | return resultobj; | |
12759 | fail: | |
12760 | { | |
12761 | if (temp2) | |
12762 | delete arg2; | |
12763 | } | |
12764 | return NULL; | |
d55e5bfc RD |
12765 | } |
12766 | ||
12767 | ||
1bd55598 RD |
12768 | SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12769 | PyObject *resultobj = 0; | |
12770 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12771 | wxString *arg2 = 0 ; | |
12772 | void *argp1 = 0 ; | |
12773 | int res1 = 0 ; | |
12774 | bool temp2 = false ; | |
12775 | PyObject * obj0 = 0 ; | |
12776 | PyObject * obj1 = 0 ; | |
12777 | char * kwnames[] = { | |
12778 | (char *) "self",(char *) "text", NULL | |
12779 | }; | |
12780 | ||
12781 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12782 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12783 | if (!SWIG_IsOK(res1)) { | |
12784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12785 | } | |
12786 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12787 | { | |
12788 | arg2 = wxString_in_helper(obj1); | |
12789 | if (arg2 == NULL) SWIG_fail; | |
12790 | temp2 = true; | |
12791 | } | |
12792 | { | |
12793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12794 | (arg1)->AppendText((wxString const &)*arg2); | |
12795 | wxPyEndAllowThreads(__tstate); | |
12796 | if (PyErr_Occurred()) SWIG_fail; | |
12797 | } | |
12798 | resultobj = SWIG_Py_Void(); | |
12799 | { | |
12800 | if (temp2) | |
12801 | delete arg2; | |
12802 | } | |
12803 | return resultobj; | |
12804 | fail: | |
12805 | { | |
12806 | if (temp2) | |
12807 | delete arg2; | |
12808 | } | |
12809 | return NULL; | |
12810 | } | |
12811 | ||
12812 | ||
12813 | SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12814 | PyObject *resultobj = 0; | |
12815 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12816 | wxKeyEvent *arg2 = 0 ; | |
12817 | bool result; | |
12818 | void *argp1 = 0 ; | |
12819 | int res1 = 0 ; | |
12820 | void *argp2 = 0 ; | |
12821 | int res2 = 0 ; | |
12822 | PyObject * obj0 = 0 ; | |
12823 | PyObject * obj1 = 0 ; | |
12824 | char * kwnames[] = { | |
12825 | (char *) "self",(char *) "event", NULL | |
12826 | }; | |
12827 | ||
12828 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail; | |
12829 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12830 | if (!SWIG_IsOK(res1)) { | |
12831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12832 | } | |
12833 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12834 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0); | |
12835 | if (!SWIG_IsOK(res2)) { | |
12836 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
12837 | } | |
12838 | if (!argp2) { | |
12839 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
12840 | } | |
12841 | arg2 = reinterpret_cast< wxKeyEvent * >(argp2); | |
12842 | { | |
12843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12844 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
12845 | wxPyEndAllowThreads(__tstate); | |
12846 | if (PyErr_Occurred()) SWIG_fail; | |
12847 | } | |
12848 | { | |
12849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12850 | } | |
12851 | return resultobj; | |
12852 | fail: | |
12853 | return NULL; | |
12854 | } | |
12855 | ||
12856 | ||
12857 | SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12858 | PyObject *resultobj = 0; | |
12859 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12860 | long arg2 ; | |
12861 | long arg3 ; | |
12862 | wxTextAttr *arg4 = 0 ; | |
12863 | bool result; | |
12864 | void *argp1 = 0 ; | |
12865 | int res1 = 0 ; | |
12866 | long val2 ; | |
12867 | int ecode2 = 0 ; | |
12868 | long val3 ; | |
12869 | int ecode3 = 0 ; | |
12870 | void *argp4 = 0 ; | |
12871 | int res4 = 0 ; | |
12872 | PyObject * obj0 = 0 ; | |
12873 | PyObject * obj1 = 0 ; | |
12874 | PyObject * obj2 = 0 ; | |
12875 | PyObject * obj3 = 0 ; | |
12876 | char * kwnames[] = { | |
12877 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
12878 | }; | |
12879 | ||
12880 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12881 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12882 | if (!SWIG_IsOK(res1)) { | |
12883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12884 | } | |
12885 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12886 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12887 | if (!SWIG_IsOK(ecode2)) { | |
12888 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'"); | |
12889 | } | |
12890 | arg2 = static_cast< long >(val2); | |
12891 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12892 | if (!SWIG_IsOK(ecode3)) { | |
12893 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'"); | |
12894 | } | |
12895 | arg3 = static_cast< long >(val3); | |
12896 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
12897 | if (!SWIG_IsOK(res4)) { | |
12898 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'"); | |
12899 | } | |
12900 | if (!argp4) { | |
12901 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'"); | |
12902 | } | |
12903 | arg4 = reinterpret_cast< wxTextAttr * >(argp4); | |
12904 | { | |
12905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12906 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
12907 | wxPyEndAllowThreads(__tstate); | |
12908 | if (PyErr_Occurred()) SWIG_fail; | |
12909 | } | |
12910 | { | |
12911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12912 | } | |
12913 | return resultobj; | |
12914 | fail: | |
12915 | return NULL; | |
12916 | } | |
12917 | ||
12918 | ||
12919 | SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12920 | PyObject *resultobj = 0; | |
12921 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12922 | long arg2 ; | |
12923 | wxTextAttr *arg3 = 0 ; | |
12924 | bool result; | |
12925 | void *argp1 = 0 ; | |
12926 | int res1 = 0 ; | |
12927 | long val2 ; | |
12928 | int ecode2 = 0 ; | |
12929 | void *argp3 = 0 ; | |
12930 | int res3 = 0 ; | |
12931 | PyObject * obj0 = 0 ; | |
12932 | PyObject * obj1 = 0 ; | |
12933 | PyObject * obj2 = 0 ; | |
12934 | char * kwnames[] = { | |
12935 | (char *) "self",(char *) "position",(char *) "style", NULL | |
12936 | }; | |
12937 | ||
12938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12940 | if (!SWIG_IsOK(res1)) { | |
12941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12942 | } | |
12943 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12944 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12945 | if (!SWIG_IsOK(ecode2)) { | |
12946 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'"); | |
12947 | } | |
12948 | arg2 = static_cast< long >(val2); | |
12949 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 ); | |
12950 | if (!SWIG_IsOK(res3)) { | |
12951 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'"); | |
12952 | } | |
12953 | if (!argp3) { | |
12954 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'"); | |
12955 | } | |
12956 | arg3 = reinterpret_cast< wxTextAttr * >(argp3); | |
12957 | { | |
12958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12959 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
12960 | wxPyEndAllowThreads(__tstate); | |
12961 | if (PyErr_Occurred()) SWIG_fail; | |
12962 | } | |
12963 | { | |
12964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12965 | } | |
12966 | return resultobj; | |
12967 | fail: | |
12968 | return NULL; | |
12969 | } | |
12970 | ||
12971 | ||
12972 | SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12973 | PyObject *resultobj = 0; | |
12974 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12975 | wxTextAttr *arg2 = 0 ; | |
12976 | bool result; | |
12977 | void *argp1 = 0 ; | |
12978 | int res1 = 0 ; | |
12979 | void *argp2 = 0 ; | |
12980 | int res2 = 0 ; | |
12981 | PyObject * obj0 = 0 ; | |
12982 | PyObject * obj1 = 0 ; | |
12983 | char * kwnames[] = { | |
12984 | (char *) "self",(char *) "style", NULL | |
12985 | }; | |
12986 | ||
12987 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
12988 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12989 | if (!SWIG_IsOK(res1)) { | |
12990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12991 | } | |
12992 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12993 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
12994 | if (!SWIG_IsOK(res2)) { | |
12995 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
12996 | } | |
12997 | if (!argp2) { | |
12998 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
12999 | } | |
13000 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
13001 | { | |
13002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13003 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
13004 | wxPyEndAllowThreads(__tstate); | |
13005 | if (PyErr_Occurred()) SWIG_fail; | |
13006 | } | |
13007 | { | |
13008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13009 | } | |
13010 | return resultobj; | |
13011 | fail: | |
13012 | return NULL; | |
d55e5bfc RD |
13013 | } |
13014 | ||
13015 | ||
1bd55598 RD |
13016 | SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13017 | PyObject *resultobj = 0; | |
13018 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13019 | wxTextAttr *result = 0 ; | |
13020 | void *argp1 = 0 ; | |
13021 | int res1 = 0 ; | |
13022 | PyObject *swig_obj[1] ; | |
13023 | ||
13024 | if (!args) SWIG_fail; | |
13025 | swig_obj[0] = args; | |
13026 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13027 | if (!SWIG_IsOK(res1)) { | |
13028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13029 | } | |
13030 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13031 | { | |
13032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 13033 | { |
1bd55598 RD |
13034 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); |
13035 | result = (wxTextAttr *) &_result_ref; | |
d55e5bfc | 13036 | } |
1bd55598 RD |
13037 | wxPyEndAllowThreads(__tstate); |
13038 | if (PyErr_Occurred()) SWIG_fail; | |
13039 | } | |
13040 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
13041 | return resultobj; | |
13042 | fail: | |
13043 | return NULL; | |
13044 | } | |
13045 | ||
13046 | ||
13047 | SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13048 | PyObject *resultobj = 0; | |
13049 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13050 | long arg2 ; | |
13051 | long arg3 ; | |
13052 | long result; | |
13053 | void *argp1 = 0 ; | |
13054 | int res1 = 0 ; | |
13055 | long val2 ; | |
13056 | int ecode2 = 0 ; | |
13057 | long val3 ; | |
13058 | int ecode3 = 0 ; | |
13059 | PyObject * obj0 = 0 ; | |
13060 | PyObject * obj1 = 0 ; | |
13061 | PyObject * obj2 = 0 ; | |
13062 | char * kwnames[] = { | |
13063 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13064 | }; | |
13065 | ||
13066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13068 | if (!SWIG_IsOK(res1)) { | |
13069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13070 | } | |
13071 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13072 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13073 | if (!SWIG_IsOK(ecode2)) { | |
13074 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'"); | |
13075 | } | |
13076 | arg2 = static_cast< long >(val2); | |
13077 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13078 | if (!SWIG_IsOK(ecode3)) { | |
13079 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'"); | |
13080 | } | |
13081 | arg3 = static_cast< long >(val3); | |
13082 | { | |
13083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13084 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
13085 | wxPyEndAllowThreads(__tstate); | |
13086 | if (PyErr_Occurred()) SWIG_fail; | |
13087 | } | |
13088 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13089 | return resultobj; | |
13090 | fail: | |
13091 | return NULL; | |
13092 | } | |
13093 | ||
13094 | ||
13095 | SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13096 | PyObject *resultobj = 0; | |
13097 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13098 | long arg2 ; | |
13099 | long *arg3 = (long *) 0 ; | |
13100 | long *arg4 = (long *) 0 ; | |
13101 | void *argp1 = 0 ; | |
13102 | int res1 = 0 ; | |
13103 | long val2 ; | |
13104 | int ecode2 = 0 ; | |
13105 | long temp3 ; | |
13106 | int res3 = SWIG_TMPOBJ ; | |
13107 | long temp4 ; | |
13108 | int res4 = SWIG_TMPOBJ ; | |
13109 | PyObject * obj0 = 0 ; | |
13110 | PyObject * obj1 = 0 ; | |
13111 | char * kwnames[] = { | |
13112 | (char *) "self",(char *) "pos", NULL | |
13113 | }; | |
13114 | ||
13115 | arg3 = &temp3; | |
13116 | arg4 = &temp4; | |
13117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail; | |
13118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13119 | if (!SWIG_IsOK(res1)) { | |
13120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13121 | } | |
13122 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13123 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13124 | if (!SWIG_IsOK(ecode2)) { | |
13125 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'"); | |
13126 | } | |
13127 | arg2 = static_cast< long >(val2); | |
13128 | { | |
13129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13130 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
13131 | wxPyEndAllowThreads(__tstate); | |
13132 | if (PyErr_Occurred()) SWIG_fail; | |
13133 | } | |
13134 | resultobj = SWIG_Py_Void(); | |
13135 | if (SWIG_IsTmpObj(res3)) { | |
13136 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
13137 | } else { | |
13138 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13139 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
13140 | } | |
13141 | if (SWIG_IsTmpObj(res4)) { | |
13142 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
13143 | } else { | |
13144 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13145 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
13146 | } | |
13147 | return resultobj; | |
13148 | fail: | |
13149 | return NULL; | |
13150 | } | |
13151 | ||
13152 | ||
13153 | SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13154 | PyObject *resultobj = 0; | |
13155 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13156 | long arg2 ; | |
13157 | void *argp1 = 0 ; | |
13158 | int res1 = 0 ; | |
13159 | long val2 ; | |
13160 | int ecode2 = 0 ; | |
13161 | PyObject * obj0 = 0 ; | |
13162 | PyObject * obj1 = 0 ; | |
13163 | char * kwnames[] = { | |
13164 | (char *) "self",(char *) "pos", NULL | |
13165 | }; | |
13166 | ||
13167 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
13168 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13169 | if (!SWIG_IsOK(res1)) { | |
13170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13171 | } | |
13172 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13173 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13174 | if (!SWIG_IsOK(ecode2)) { | |
13175 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'"); | |
13176 | } | |
13177 | arg2 = static_cast< long >(val2); | |
13178 | { | |
13179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13180 | (arg1)->ShowPosition(arg2); | |
13181 | wxPyEndAllowThreads(__tstate); | |
13182 | if (PyErr_Occurred()) SWIG_fail; | |
13183 | } | |
13184 | resultobj = SWIG_Py_Void(); | |
13185 | return resultobj; | |
13186 | fail: | |
13187 | return NULL; | |
13188 | } | |
13189 | ||
13190 | ||
13191 | SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13192 | PyObject *resultobj = 0; | |
13193 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13194 | wxPoint *arg2 = 0 ; | |
13195 | long *arg3 = (long *) 0 ; | |
13196 | long *arg4 = (long *) 0 ; | |
13197 | wxTextCtrlHitTestResult result; | |
13198 | void *argp1 = 0 ; | |
13199 | int res1 = 0 ; | |
13200 | wxPoint temp2 ; | |
13201 | long temp3 ; | |
13202 | int res3 = SWIG_TMPOBJ ; | |
13203 | long temp4 ; | |
13204 | int res4 = SWIG_TMPOBJ ; | |
13205 | PyObject * obj0 = 0 ; | |
13206 | PyObject * obj1 = 0 ; | |
13207 | char * kwnames[] = { | |
13208 | (char *) "self",(char *) "pt", NULL | |
13209 | }; | |
13210 | ||
13211 | arg3 = &temp3; | |
13212 | arg4 = &temp4; | |
13213 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
13214 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13215 | if (!SWIG_IsOK(res1)) { | |
13216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13217 | } | |
13218 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13219 | { | |
13220 | arg2 = &temp2; | |
13221 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13222 | } | |
13223 | { | |
13224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13225 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
13226 | wxPyEndAllowThreads(__tstate); | |
13227 | if (PyErr_Occurred()) SWIG_fail; | |
13228 | } | |
13229 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13230 | if (SWIG_IsTmpObj(res3)) { | |
13231 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
13232 | } else { | |
13233 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13234 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
13235 | } | |
13236 | if (SWIG_IsTmpObj(res4)) { | |
13237 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
13238 | } else { | |
13239 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13240 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
13241 | } | |
13242 | return resultobj; | |
13243 | fail: | |
13244 | return NULL; | |
13245 | } | |
13246 | ||
13247 | ||
13248 | SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13249 | PyObject *resultobj = 0; | |
13250 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13251 | wxPoint *arg2 = 0 ; | |
13252 | long *arg3 = (long *) 0 ; | |
13253 | wxTextCtrlHitTestResult result; | |
13254 | void *argp1 = 0 ; | |
13255 | int res1 = 0 ; | |
13256 | wxPoint temp2 ; | |
13257 | long temp3 ; | |
13258 | int res3 = SWIG_TMPOBJ ; | |
13259 | PyObject * obj0 = 0 ; | |
13260 | PyObject * obj1 = 0 ; | |
13261 | char * kwnames[] = { | |
13262 | (char *) "self",(char *) "pt", NULL | |
13263 | }; | |
13264 | ||
13265 | arg3 = &temp3; | |
13266 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
13267 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13268 | if (!SWIG_IsOK(res1)) { | |
13269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13270 | } | |
13271 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13272 | { | |
13273 | arg2 = &temp2; | |
13274 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13275 | } | |
13276 | { | |
13277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13278 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
13279 | wxPyEndAllowThreads(__tstate); | |
13280 | if (PyErr_Occurred()) SWIG_fail; | |
13281 | } | |
13282 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13283 | if (SWIG_IsTmpObj(res3)) { | |
13284 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
13285 | } else { | |
13286 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13287 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
13288 | } | |
13289 | return resultobj; | |
13290 | fail: | |
13291 | return NULL; | |
d55e5bfc RD |
13292 | } |
13293 | ||
13294 | ||
1bd55598 RD |
13295 | SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13296 | PyObject *resultobj = 0; | |
13297 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13298 | void *argp1 = 0 ; | |
13299 | int res1 = 0 ; | |
13300 | PyObject *swig_obj[1] ; | |
13301 | ||
13302 | if (!args) SWIG_fail; | |
13303 | swig_obj[0] = args; | |
13304 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13305 | if (!SWIG_IsOK(res1)) { | |
13306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13307 | } | |
13308 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13309 | { | |
13310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13311 | (arg1)->Copy(); | |
13312 | wxPyEndAllowThreads(__tstate); | |
13313 | if (PyErr_Occurred()) SWIG_fail; | |
13314 | } | |
13315 | resultobj = SWIG_Py_Void(); | |
13316 | return resultobj; | |
13317 | fail: | |
13318 | return NULL; | |
d55e5bfc RD |
13319 | } |
13320 | ||
13321 | ||
1bd55598 RD |
13322 | SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13323 | PyObject *resultobj = 0; | |
13324 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13325 | void *argp1 = 0 ; | |
13326 | int res1 = 0 ; | |
13327 | PyObject *swig_obj[1] ; | |
13328 | ||
13329 | if (!args) SWIG_fail; | |
13330 | swig_obj[0] = args; | |
13331 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13332 | if (!SWIG_IsOK(res1)) { | |
13333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13334 | } | |
13335 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13336 | { | |
13337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13338 | (arg1)->Cut(); | |
13339 | wxPyEndAllowThreads(__tstate); | |
13340 | if (PyErr_Occurred()) SWIG_fail; | |
13341 | } | |
13342 | resultobj = SWIG_Py_Void(); | |
13343 | return resultobj; | |
13344 | fail: | |
13345 | return NULL; | |
d55e5bfc RD |
13346 | } |
13347 | ||
13348 | ||
1bd55598 RD |
13349 | SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13350 | PyObject *resultobj = 0; | |
13351 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13352 | void *argp1 = 0 ; | |
13353 | int res1 = 0 ; | |
13354 | PyObject *swig_obj[1] ; | |
13355 | ||
13356 | if (!args) SWIG_fail; | |
13357 | swig_obj[0] = args; | |
13358 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13359 | if (!SWIG_IsOK(res1)) { | |
13360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13361 | } | |
13362 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13363 | { | |
13364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13365 | (arg1)->Paste(); | |
13366 | wxPyEndAllowThreads(__tstate); | |
13367 | if (PyErr_Occurred()) SWIG_fail; | |
13368 | } | |
13369 | resultobj = SWIG_Py_Void(); | |
13370 | return resultobj; | |
13371 | fail: | |
13372 | return NULL; | |
d55e5bfc RD |
13373 | } |
13374 | ||
13375 | ||
1bd55598 RD |
13376 | SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13377 | PyObject *resultobj = 0; | |
13378 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13379 | bool result; | |
13380 | void *argp1 = 0 ; | |
13381 | int res1 = 0 ; | |
13382 | PyObject *swig_obj[1] ; | |
13383 | ||
13384 | if (!args) SWIG_fail; | |
13385 | swig_obj[0] = args; | |
13386 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13387 | if (!SWIG_IsOK(res1)) { | |
13388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13389 | } | |
13390 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13391 | { | |
13392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13393 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
13394 | wxPyEndAllowThreads(__tstate); | |
13395 | if (PyErr_Occurred()) SWIG_fail; | |
13396 | } | |
13397 | { | |
13398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13399 | } | |
13400 | return resultobj; | |
13401 | fail: | |
13402 | return NULL; | |
d55e5bfc RD |
13403 | } |
13404 | ||
13405 | ||
1bd55598 RD |
13406 | SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13407 | PyObject *resultobj = 0; | |
13408 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13409 | bool result; | |
13410 | void *argp1 = 0 ; | |
13411 | int res1 = 0 ; | |
13412 | PyObject *swig_obj[1] ; | |
13413 | ||
13414 | if (!args) SWIG_fail; | |
13415 | swig_obj[0] = args; | |
13416 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13417 | if (!SWIG_IsOK(res1)) { | |
13418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13419 | } | |
13420 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13421 | { | |
13422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13423 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
13424 | wxPyEndAllowThreads(__tstate); | |
13425 | if (PyErr_Occurred()) SWIG_fail; | |
13426 | } | |
13427 | { | |
13428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13429 | } | |
13430 | return resultobj; | |
13431 | fail: | |
13432 | return NULL; | |
d55e5bfc RD |
13433 | } |
13434 | ||
13435 | ||
1bd55598 RD |
13436 | SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13437 | PyObject *resultobj = 0; | |
13438 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13439 | bool result; | |
13440 | void *argp1 = 0 ; | |
13441 | int res1 = 0 ; | |
13442 | PyObject *swig_obj[1] ; | |
13443 | ||
13444 | if (!args) SWIG_fail; | |
13445 | swig_obj[0] = args; | |
13446 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13447 | if (!SWIG_IsOK(res1)) { | |
13448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13449 | } | |
13450 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13451 | { | |
13452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13453 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
13454 | wxPyEndAllowThreads(__tstate); | |
13455 | if (PyErr_Occurred()) SWIG_fail; | |
13456 | } | |
13457 | { | |
13458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13459 | } | |
13460 | return resultobj; | |
13461 | fail: | |
13462 | return NULL; | |
d55e5bfc RD |
13463 | } |
13464 | ||
13465 | ||
1bd55598 RD |
13466 | SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13467 | PyObject *resultobj = 0; | |
13468 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13469 | void *argp1 = 0 ; | |
13470 | int res1 = 0 ; | |
13471 | PyObject *swig_obj[1] ; | |
13472 | ||
13473 | if (!args) SWIG_fail; | |
13474 | swig_obj[0] = args; | |
13475 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13476 | if (!SWIG_IsOK(res1)) { | |
13477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13478 | } | |
13479 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13480 | { | |
13481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13482 | (arg1)->Undo(); | |
13483 | wxPyEndAllowThreads(__tstate); | |
13484 | if (PyErr_Occurred()) SWIG_fail; | |
13485 | } | |
13486 | resultobj = SWIG_Py_Void(); | |
13487 | return resultobj; | |
13488 | fail: | |
13489 | return NULL; | |
d55e5bfc RD |
13490 | } |
13491 | ||
13492 | ||
1bd55598 RD |
13493 | SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13494 | PyObject *resultobj = 0; | |
13495 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13496 | void *argp1 = 0 ; | |
13497 | int res1 = 0 ; | |
13498 | PyObject *swig_obj[1] ; | |
13499 | ||
13500 | if (!args) SWIG_fail; | |
13501 | swig_obj[0] = args; | |
13502 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13503 | if (!SWIG_IsOK(res1)) { | |
13504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13505 | } | |
13506 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13507 | { | |
13508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13509 | (arg1)->Redo(); | |
13510 | wxPyEndAllowThreads(__tstate); | |
13511 | if (PyErr_Occurred()) SWIG_fail; | |
13512 | } | |
13513 | resultobj = SWIG_Py_Void(); | |
13514 | return resultobj; | |
13515 | fail: | |
13516 | return NULL; | |
d55e5bfc RD |
13517 | } |
13518 | ||
13519 | ||
1bd55598 RD |
13520 | SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13521 | PyObject *resultobj = 0; | |
13522 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13523 | bool result; | |
13524 | void *argp1 = 0 ; | |
13525 | int res1 = 0 ; | |
13526 | PyObject *swig_obj[1] ; | |
13527 | ||
13528 | if (!args) SWIG_fail; | |
13529 | swig_obj[0] = args; | |
13530 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13531 | if (!SWIG_IsOK(res1)) { | |
13532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13533 | } | |
13534 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13535 | { | |
13536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13537 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
13538 | wxPyEndAllowThreads(__tstate); | |
13539 | if (PyErr_Occurred()) SWIG_fail; | |
13540 | } | |
13541 | { | |
13542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13543 | } | |
13544 | return resultobj; | |
13545 | fail: | |
13546 | return NULL; | |
d55e5bfc RD |
13547 | } |
13548 | ||
13549 | ||
1bd55598 RD |
13550 | SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13551 | PyObject *resultobj = 0; | |
13552 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13553 | bool result; | |
13554 | void *argp1 = 0 ; | |
13555 | int res1 = 0 ; | |
13556 | PyObject *swig_obj[1] ; | |
13557 | ||
13558 | if (!args) SWIG_fail; | |
13559 | swig_obj[0] = args; | |
13560 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13561 | if (!SWIG_IsOK(res1)) { | |
13562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13563 | } | |
13564 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13565 | { | |
13566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13567 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
13568 | wxPyEndAllowThreads(__tstate); | |
13569 | if (PyErr_Occurred()) SWIG_fail; | |
13570 | } | |
13571 | { | |
13572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13573 | } | |
13574 | return resultobj; | |
13575 | fail: | |
13576 | return NULL; | |
13577 | } | |
13578 | ||
13579 | ||
13580 | SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13581 | PyObject *resultobj = 0; | |
13582 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13583 | long arg2 ; | |
13584 | void *argp1 = 0 ; | |
13585 | int res1 = 0 ; | |
13586 | long val2 ; | |
13587 | int ecode2 = 0 ; | |
13588 | PyObject * obj0 = 0 ; | |
13589 | PyObject * obj1 = 0 ; | |
13590 | char * kwnames[] = { | |
13591 | (char *) "self",(char *) "pos", NULL | |
13592 | }; | |
13593 | ||
13594 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
13595 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13596 | if (!SWIG_IsOK(res1)) { | |
13597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13598 | } | |
13599 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13600 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13601 | if (!SWIG_IsOK(ecode2)) { | |
13602 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
13603 | } | |
13604 | arg2 = static_cast< long >(val2); | |
13605 | { | |
13606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13607 | (arg1)->SetInsertionPoint(arg2); | |
13608 | wxPyEndAllowThreads(__tstate); | |
13609 | if (PyErr_Occurred()) SWIG_fail; | |
13610 | } | |
13611 | resultobj = SWIG_Py_Void(); | |
13612 | return resultobj; | |
13613 | fail: | |
13614 | return NULL; | |
d55e5bfc RD |
13615 | } |
13616 | ||
13617 | ||
1bd55598 RD |
13618 | SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13619 | PyObject *resultobj = 0; | |
13620 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13621 | void *argp1 = 0 ; | |
13622 | int res1 = 0 ; | |
13623 | PyObject *swig_obj[1] ; | |
13624 | ||
13625 | if (!args) SWIG_fail; | |
13626 | swig_obj[0] = args; | |
13627 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13628 | if (!SWIG_IsOK(res1)) { | |
13629 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13630 | } | |
13631 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13632 | { | |
13633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13634 | (arg1)->SetInsertionPointEnd(); | |
13635 | wxPyEndAllowThreads(__tstate); | |
13636 | if (PyErr_Occurred()) SWIG_fail; | |
13637 | } | |
13638 | resultobj = SWIG_Py_Void(); | |
13639 | return resultobj; | |
13640 | fail: | |
13641 | return NULL; | |
d55e5bfc RD |
13642 | } |
13643 | ||
13644 | ||
1bd55598 RD |
13645 | SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13646 | PyObject *resultobj = 0; | |
13647 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13648 | long result; | |
13649 | void *argp1 = 0 ; | |
13650 | int res1 = 0 ; | |
13651 | PyObject *swig_obj[1] ; | |
13652 | ||
13653 | if (!args) SWIG_fail; | |
13654 | swig_obj[0] = args; | |
13655 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13656 | if (!SWIG_IsOK(res1)) { | |
13657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13658 | } | |
13659 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13660 | { | |
13661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13662 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
13663 | wxPyEndAllowThreads(__tstate); | |
13664 | if (PyErr_Occurred()) SWIG_fail; | |
13665 | } | |
13666 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13667 | return resultobj; | |
13668 | fail: | |
13669 | return NULL; | |
d55e5bfc RD |
13670 | } |
13671 | ||
13672 | ||
1bd55598 RD |
13673 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13674 | PyObject *resultobj = 0; | |
13675 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13676 | long result; | |
13677 | void *argp1 = 0 ; | |
13678 | int res1 = 0 ; | |
13679 | PyObject *swig_obj[1] ; | |
13680 | ||
13681 | if (!args) SWIG_fail; | |
13682 | swig_obj[0] = args; | |
13683 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13684 | if (!SWIG_IsOK(res1)) { | |
13685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13686 | } | |
13687 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13688 | { | |
13689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13690 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
13691 | wxPyEndAllowThreads(__tstate); | |
13692 | if (PyErr_Occurred()) SWIG_fail; | |
13693 | } | |
13694 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13695 | return resultobj; | |
13696 | fail: | |
13697 | return NULL; | |
13698 | } | |
13699 | ||
13700 | ||
13701 | SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13702 | PyObject *resultobj = 0; | |
13703 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13704 | long arg2 ; | |
13705 | long arg3 ; | |
13706 | void *argp1 = 0 ; | |
13707 | int res1 = 0 ; | |
13708 | long val2 ; | |
13709 | int ecode2 = 0 ; | |
13710 | long val3 ; | |
13711 | int ecode3 = 0 ; | |
13712 | PyObject * obj0 = 0 ; | |
13713 | PyObject * obj1 = 0 ; | |
13714 | PyObject * obj2 = 0 ; | |
13715 | char * kwnames[] = { | |
2131d850 | 13716 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
13717 | }; |
13718 | ||
13719 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13720 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13721 | if (!SWIG_IsOK(res1)) { | |
13722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13723 | } | |
13724 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13725 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13726 | if (!SWIG_IsOK(ecode2)) { | |
13727 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
13728 | } | |
13729 | arg2 = static_cast< long >(val2); | |
13730 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13731 | if (!SWIG_IsOK(ecode3)) { | |
13732 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
13733 | } | |
13734 | arg3 = static_cast< long >(val3); | |
13735 | { | |
13736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13737 | (arg1)->SetSelection(arg2,arg3); | |
13738 | wxPyEndAllowThreads(__tstate); | |
13739 | if (PyErr_Occurred()) SWIG_fail; | |
13740 | } | |
13741 | resultobj = SWIG_Py_Void(); | |
13742 | return resultobj; | |
13743 | fail: | |
13744 | return NULL; | |
d55e5bfc RD |
13745 | } |
13746 | ||
13747 | ||
1bd55598 RD |
13748 | SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13749 | PyObject *resultobj = 0; | |
13750 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13751 | void *argp1 = 0 ; | |
13752 | int res1 = 0 ; | |
13753 | PyObject *swig_obj[1] ; | |
13754 | ||
13755 | if (!args) SWIG_fail; | |
13756 | swig_obj[0] = args; | |
13757 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13758 | if (!SWIG_IsOK(res1)) { | |
13759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13760 | } | |
13761 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13762 | { | |
13763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13764 | (arg1)->SelectAll(); | |
13765 | wxPyEndAllowThreads(__tstate); | |
13766 | if (PyErr_Occurred()) SWIG_fail; | |
13767 | } | |
13768 | resultobj = SWIG_Py_Void(); | |
13769 | return resultobj; | |
13770 | fail: | |
13771 | return NULL; | |
13772 | } | |
13773 | ||
13774 | ||
13775 | SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13776 | PyObject *resultobj = 0; | |
13777 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13778 | bool arg2 ; | |
13779 | void *argp1 = 0 ; | |
13780 | int res1 = 0 ; | |
13781 | bool val2 ; | |
13782 | int ecode2 = 0 ; | |
13783 | PyObject * obj0 = 0 ; | |
13784 | PyObject * obj1 = 0 ; | |
13785 | char * kwnames[] = { | |
13786 | (char *) "self",(char *) "editable", NULL | |
13787 | }; | |
13788 | ||
13789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail; | |
13790 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13791 | if (!SWIG_IsOK(res1)) { | |
13792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13793 | } | |
13794 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13795 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
13796 | if (!SWIG_IsOK(ecode2)) { | |
13797 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'"); | |
13798 | } | |
13799 | arg2 = static_cast< bool >(val2); | |
13800 | { | |
13801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13802 | (arg1)->SetEditable(arg2); | |
13803 | wxPyEndAllowThreads(__tstate); | |
13804 | if (PyErr_Occurred()) SWIG_fail; | |
13805 | } | |
13806 | resultobj = SWIG_Py_Void(); | |
13807 | return resultobj; | |
13808 | fail: | |
13809 | return NULL; | |
13810 | } | |
13811 | ||
13812 | ||
b39fe951 RD |
13813 | SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13814 | PyObject *resultobj = 0; | |
13815 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13816 | void *argp1 = 0 ; | |
13817 | int res1 = 0 ; | |
13818 | PyObject *swig_obj[1] ; | |
13819 | ||
13820 | if (!args) SWIG_fail; | |
13821 | swig_obj[0] = args; | |
13822 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13823 | if (!SWIG_IsOK(res1)) { | |
13824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13825 | } | |
13826 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13827 | { | |
13828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13829 | (arg1)->SendTextUpdatedEvent(); | |
13830 | wxPyEndAllowThreads(__tstate); | |
13831 | if (PyErr_Occurred()) SWIG_fail; | |
13832 | } | |
13833 | resultobj = SWIG_Py_Void(); | |
13834 | return resultobj; | |
13835 | fail: | |
13836 | return NULL; | |
13837 | } | |
13838 | ||
13839 | ||
1bd55598 RD |
13840 | SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13841 | PyObject *resultobj = 0; | |
13842 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13843 | wxString *arg2 = 0 ; | |
13844 | void *argp1 = 0 ; | |
13845 | int res1 = 0 ; | |
13846 | bool temp2 = false ; | |
13847 | PyObject * obj0 = 0 ; | |
13848 | PyObject * obj1 = 0 ; | |
13849 | char * kwnames[] = { | |
13850 | (char *) "self",(char *) "text", NULL | |
13851 | }; | |
13852 | ||
13853 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail; | |
13854 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13855 | if (!SWIG_IsOK(res1)) { | |
13856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13857 | } | |
13858 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13859 | { | |
13860 | arg2 = wxString_in_helper(obj1); | |
13861 | if (arg2 == NULL) SWIG_fail; | |
13862 | temp2 = true; | |
13863 | } | |
13864 | { | |
13865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13866 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
13867 | wxPyEndAllowThreads(__tstate); | |
13868 | if (PyErr_Occurred()) SWIG_fail; | |
13869 | } | |
13870 | resultobj = SWIG_Py_Void(); | |
13871 | { | |
13872 | if (temp2) | |
13873 | delete arg2; | |
13874 | } | |
13875 | return resultobj; | |
13876 | fail: | |
13877 | { | |
13878 | if (temp2) | |
13879 | delete arg2; | |
13880 | } | |
13881 | return NULL; | |
13882 | } | |
13883 | ||
13884 | ||
13885 | SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13886 | PyObject *resultobj = 0; | |
13887 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13888 | long arg2 ; | |
13889 | long arg3 ; | |
13890 | wxString result; | |
13891 | void *argp1 = 0 ; | |
13892 | int res1 = 0 ; | |
13893 | long val2 ; | |
13894 | int ecode2 = 0 ; | |
13895 | long val3 ; | |
13896 | int ecode3 = 0 ; | |
13897 | PyObject * obj0 = 0 ; | |
13898 | PyObject * obj1 = 0 ; | |
13899 | PyObject * obj2 = 0 ; | |
13900 | char * kwnames[] = { | |
2131d850 | 13901 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
13902 | }; |
13903 | ||
13904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13905 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13906 | if (!SWIG_IsOK(res1)) { | |
13907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13908 | } | |
13909 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13910 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13911 | if (!SWIG_IsOK(ecode2)) { | |
13912 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'"); | |
13913 | } | |
13914 | arg2 = static_cast< long >(val2); | |
13915 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13916 | if (!SWIG_IsOK(ecode3)) { | |
13917 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'"); | |
13918 | } | |
13919 | arg3 = static_cast< long >(val3); | |
13920 | { | |
13921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13922 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
13923 | wxPyEndAllowThreads(__tstate); | |
13924 | if (PyErr_Occurred()) SWIG_fail; | |
13925 | } | |
13926 | { | |
13927 | #if wxUSE_UNICODE | |
13928 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13929 | #else | |
13930 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13931 | #endif | |
13932 | } | |
13933 | return resultobj; | |
13934 | fail: | |
13935 | return NULL; | |
d55e5bfc RD |
13936 | } |
13937 | ||
13938 | ||
1bd55598 RD |
13939 | SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13940 | PyObject *resultobj = 0; | |
13941 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
13942 | SwigValueWrapper<wxVisualAttributes > result; | |
13943 | int val1 ; | |
13944 | int ecode1 = 0 ; | |
13945 | PyObject * obj0 = 0 ; | |
13946 | char * kwnames[] = { | |
13947 | (char *) "variant", NULL | |
13948 | }; | |
13949 | ||
13950 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
13951 | if (obj0) { | |
13952 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13953 | if (!SWIG_IsOK(ecode1)) { | |
13954 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
13955 | } | |
13956 | arg1 = static_cast< wxWindowVariant >(val1); | |
13957 | } | |
13958 | { | |
13959 | if (!wxPyCheckForApp()) SWIG_fail; | |
13960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13961 | result = wxTextCtrl::GetClassDefaultAttributes(arg1); | |
13962 | wxPyEndAllowThreads(__tstate); | |
13963 | if (PyErr_Occurred()) SWIG_fail; | |
13964 | } | |
13965 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
13966 | return resultobj; | |
13967 | fail: | |
13968 | return NULL; | |
13969 | } | |
13970 | ||
13971 | ||
13972 | SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13973 | PyObject *obj; | |
13974 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13975 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj)); | |
13976 | return SWIG_Py_Void(); | |
13977 | } | |
13978 | ||
13979 | SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13980 | return SWIG_Python_InitShadowInstance(args); | |
13981 | } | |
13982 | ||
13983 | SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13984 | PyObject *resultobj = 0; | |
13985 | int arg1 ; | |
13986 | wxMouseEvent *arg2 = 0 ; | |
13987 | long arg3 ; | |
13988 | long arg4 ; | |
13989 | wxTextUrlEvent *result = 0 ; | |
13990 | int val1 ; | |
13991 | int ecode1 = 0 ; | |
13992 | void *argp2 = 0 ; | |
13993 | int res2 = 0 ; | |
13994 | long val3 ; | |
13995 | int ecode3 = 0 ; | |
13996 | long val4 ; | |
13997 | int ecode4 = 0 ; | |
13998 | PyObject * obj0 = 0 ; | |
13999 | PyObject * obj1 = 0 ; | |
14000 | PyObject * obj2 = 0 ; | |
14001 | PyObject * obj3 = 0 ; | |
14002 | char * kwnames[] = { | |
14003 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
14004 | }; | |
14005 | ||
14006 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
14007 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14008 | if (!SWIG_IsOK(ecode1)) { | |
14009 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'"); | |
14010 | } | |
14011 | arg1 = static_cast< int >(val1); | |
14012 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0); | |
14013 | if (!SWIG_IsOK(res2)) { | |
14014 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'"); | |
14015 | } | |
14016 | if (!argp2) { | |
14017 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'"); | |
14018 | } | |
14019 | arg2 = reinterpret_cast< wxMouseEvent * >(argp2); | |
14020 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
14021 | if (!SWIG_IsOK(ecode3)) { | |
14022 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'"); | |
14023 | } | |
14024 | arg3 = static_cast< long >(val3); | |
14025 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
14026 | if (!SWIG_IsOK(ecode4)) { | |
14027 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'"); | |
14028 | } | |
14029 | arg4 = static_cast< long >(val4); | |
14030 | { | |
14031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14032 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
14033 | wxPyEndAllowThreads(__tstate); | |
14034 | if (PyErr_Occurred()) SWIG_fail; | |
14035 | } | |
14036 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 ); | |
14037 | return resultobj; | |
14038 | fail: | |
14039 | return NULL; | |
d55e5bfc RD |
14040 | } |
14041 | ||
14042 | ||
1bd55598 RD |
14043 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14044 | PyObject *resultobj = 0; | |
14045 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
14046 | wxMouseEvent *result = 0 ; | |
14047 | void *argp1 = 0 ; | |
14048 | int res1 = 0 ; | |
14049 | PyObject *swig_obj[1] ; | |
14050 | ||
14051 | if (!args) SWIG_fail; | |
14052 | swig_obj[0] = args; | |
14053 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
14054 | if (!SWIG_IsOK(res1)) { | |
14055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'"); | |
14056 | } | |
14057 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
14058 | { | |
14059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 14060 | { |
1bd55598 RD |
14061 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); |
14062 | result = (wxMouseEvent *) &_result_ref; | |
d55e5bfc | 14063 | } |
1bd55598 RD |
14064 | wxPyEndAllowThreads(__tstate); |
14065 | if (PyErr_Occurred()) SWIG_fail; | |
14066 | } | |
14067 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 ); | |
14068 | return resultobj; | |
14069 | fail: | |
14070 | return NULL; | |
d55e5bfc RD |
14071 | } |
14072 | ||
14073 | ||
1bd55598 RD |
14074 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14075 | PyObject *resultobj = 0; | |
14076 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
14077 | long result; | |
14078 | void *argp1 = 0 ; | |
14079 | int res1 = 0 ; | |
14080 | PyObject *swig_obj[1] ; | |
14081 | ||
14082 | if (!args) SWIG_fail; | |
14083 | swig_obj[0] = args; | |
14084 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
14085 | if (!SWIG_IsOK(res1)) { | |
14086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'"); | |
14087 | } | |
14088 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
14089 | { | |
14090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14091 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
14092 | wxPyEndAllowThreads(__tstate); | |
14093 | if (PyErr_Occurred()) SWIG_fail; | |
14094 | } | |
14095 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
14096 | return resultobj; | |
14097 | fail: | |
14098 | return NULL; | |
d55e5bfc RD |
14099 | } |
14100 | ||
14101 | ||
1bd55598 RD |
14102 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14103 | PyObject *resultobj = 0; | |
14104 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
14105 | long result; | |
14106 | void *argp1 = 0 ; | |
14107 | int res1 = 0 ; | |
14108 | PyObject *swig_obj[1] ; | |
14109 | ||
14110 | if (!args) SWIG_fail; | |
14111 | swig_obj[0] = args; | |
14112 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
14113 | if (!SWIG_IsOK(res1)) { | |
14114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'"); | |
14115 | } | |
14116 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
14117 | { | |
14118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14119 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
14120 | wxPyEndAllowThreads(__tstate); | |
14121 | if (PyErr_Occurred()) SWIG_fail; | |
14122 | } | |
14123 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
14124 | return resultobj; | |
14125 | fail: | |
14126 | return NULL; | |
d55e5bfc RD |
14127 | } |
14128 | ||
14129 | ||
1bd55598 RD |
14130 | SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14131 | PyObject *obj; | |
14132 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14133 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj)); | |
14134 | return SWIG_Py_Void(); | |
68e533f8 RD |
14135 | } |
14136 | ||
1bd55598 RD |
14137 | SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14138 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
14139 | } |
14140 | ||
1bd55598 RD |
14141 | SWIGINTERN int ScrollBarNameStr_set(PyObject *) { |
14142 | SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only."); | |
14143 | return 1; | |
d55e5bfc RD |
14144 | } |
14145 | ||
14146 | ||
1bd55598 RD |
14147 | SWIGINTERN PyObject *ScrollBarNameStr_get(void) { |
14148 | PyObject *pyobj = 0; | |
14149 | ||
14150 | { | |
14151 | #if wxUSE_UNICODE | |
14152 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
14153 | #else | |
14154 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
14155 | #endif | |
14156 | } | |
14157 | return pyobj; | |
14158 | } | |
14159 | ||
14160 | ||
14161 | SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14162 | PyObject *resultobj = 0; | |
14163 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14164 | int arg2 = (int) -1 ; | |
14165 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14166 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14167 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14168 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14169 | long arg5 = (long) wxSB_HORIZONTAL ; | |
14170 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
14171 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
14172 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
14173 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14174 | wxScrollBar *result = 0 ; | |
14175 | void *argp1 = 0 ; | |
14176 | int res1 = 0 ; | |
14177 | int val2 ; | |
14178 | int ecode2 = 0 ; | |
14179 | wxPoint temp3 ; | |
14180 | wxSize temp4 ; | |
14181 | long val5 ; | |
14182 | int ecode5 = 0 ; | |
14183 | void *argp6 = 0 ; | |
14184 | int res6 = 0 ; | |
14185 | bool temp7 = false ; | |
14186 | PyObject * obj0 = 0 ; | |
14187 | PyObject * obj1 = 0 ; | |
14188 | PyObject * obj2 = 0 ; | |
14189 | PyObject * obj3 = 0 ; | |
14190 | PyObject * obj4 = 0 ; | |
14191 | PyObject * obj5 = 0 ; | |
14192 | PyObject * obj6 = 0 ; | |
14193 | char * kwnames[] = { | |
14194 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14195 | }; | |
14196 | ||
14197 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14198 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14199 | if (!SWIG_IsOK(res1)) { | |
14200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14201 | } | |
14202 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14203 | if (obj1) { | |
14204 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14205 | if (!SWIG_IsOK(ecode2)) { | |
14206 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'"); | |
14207 | } | |
14208 | arg2 = static_cast< int >(val2); | |
14209 | } | |
14210 | if (obj2) { | |
d55e5bfc | 14211 | { |
1bd55598 RD |
14212 | arg3 = &temp3; |
14213 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 14214 | } |
1bd55598 RD |
14215 | } |
14216 | if (obj3) { | |
36ed4f51 | 14217 | { |
1bd55598 RD |
14218 | arg4 = &temp4; |
14219 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14220 | } |
1bd55598 RD |
14221 | } |
14222 | if (obj4) { | |
14223 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14224 | if (!SWIG_IsOK(ecode5)) { | |
14225 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'"); | |
14226 | } | |
14227 | arg5 = static_cast< long >(val5); | |
14228 | } | |
14229 | if (obj5) { | |
14230 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
14231 | if (!SWIG_IsOK(res6)) { | |
14232 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 14233 | } |
1bd55598 RD |
14234 | if (!argp6) { |
14235 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 14236 | } |
1bd55598 RD |
14237 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
14238 | } | |
14239 | if (obj6) { | |
d55e5bfc | 14240 | { |
1bd55598 RD |
14241 | arg7 = wxString_in_helper(obj6); |
14242 | if (arg7 == NULL) SWIG_fail; | |
14243 | temp7 = true; | |
d55e5bfc | 14244 | } |
1bd55598 RD |
14245 | } |
14246 | { | |
14247 | if (!wxPyCheckForApp()) SWIG_fail; | |
14248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14249 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
14250 | wxPyEndAllowThreads(__tstate); | |
14251 | if (PyErr_Occurred()) SWIG_fail; | |
14252 | } | |
14253 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 ); | |
14254 | { | |
14255 | if (temp7) | |
14256 | delete arg7; | |
14257 | } | |
14258 | return resultobj; | |
14259 | fail: | |
14260 | { | |
14261 | if (temp7) | |
14262 | delete arg7; | |
14263 | } | |
14264 | return NULL; | |
d55e5bfc RD |
14265 | } |
14266 | ||
14267 | ||
1bd55598 RD |
14268 | SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14269 | PyObject *resultobj = 0; | |
14270 | wxScrollBar *result = 0 ; | |
14271 | ||
14272 | if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail; | |
14273 | { | |
14274 | if (!wxPyCheckForApp()) SWIG_fail; | |
14275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14276 | result = (wxScrollBar *)new wxScrollBar(); | |
14277 | wxPyEndAllowThreads(__tstate); | |
14278 | if (PyErr_Occurred()) SWIG_fail; | |
14279 | } | |
14280 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 ); | |
14281 | return resultobj; | |
14282 | fail: | |
14283 | return NULL; | |
14284 | } | |
14285 | ||
14286 | ||
14287 | SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14288 | PyObject *resultobj = 0; | |
14289 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14290 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14291 | int arg3 = (int) -1 ; | |
14292 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14293 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14294 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14295 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14296 | long arg6 = (long) wxSB_HORIZONTAL ; | |
14297 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
14298 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
14299 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
14300 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14301 | bool result; | |
14302 | void *argp1 = 0 ; | |
14303 | int res1 = 0 ; | |
14304 | void *argp2 = 0 ; | |
14305 | int res2 = 0 ; | |
14306 | int val3 ; | |
14307 | int ecode3 = 0 ; | |
14308 | wxPoint temp4 ; | |
14309 | wxSize temp5 ; | |
14310 | long val6 ; | |
14311 | int ecode6 = 0 ; | |
14312 | void *argp7 = 0 ; | |
14313 | int res7 = 0 ; | |
14314 | bool temp8 = false ; | |
14315 | PyObject * obj0 = 0 ; | |
14316 | PyObject * obj1 = 0 ; | |
14317 | PyObject * obj2 = 0 ; | |
14318 | PyObject * obj3 = 0 ; | |
14319 | PyObject * obj4 = 0 ; | |
14320 | PyObject * obj5 = 0 ; | |
14321 | PyObject * obj6 = 0 ; | |
14322 | PyObject * obj7 = 0 ; | |
14323 | char * kwnames[] = { | |
14324 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14325 | }; | |
14326 | ||
14327 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
14328 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14329 | if (!SWIG_IsOK(res1)) { | |
14330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'"); | |
14331 | } | |
14332 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14333 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14334 | if (!SWIG_IsOK(res2)) { | |
14335 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14336 | } | |
14337 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14338 | if (obj2) { | |
14339 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14340 | if (!SWIG_IsOK(ecode3)) { | |
14341 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
14342 | } | |
14343 | arg3 = static_cast< int >(val3); | |
14344 | } | |
14345 | if (obj3) { | |
d55e5bfc | 14346 | { |
1bd55598 RD |
14347 | arg4 = &temp4; |
14348 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14349 | } |
1bd55598 RD |
14350 | } |
14351 | if (obj4) { | |
d55e5bfc | 14352 | { |
1bd55598 RD |
14353 | arg5 = &temp5; |
14354 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 14355 | } |
1bd55598 RD |
14356 | } |
14357 | if (obj5) { | |
14358 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14359 | if (!SWIG_IsOK(ecode6)) { | |
14360 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'"); | |
14361 | } | |
14362 | arg6 = static_cast< long >(val6); | |
14363 | } | |
14364 | if (obj6) { | |
14365 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
14366 | if (!SWIG_IsOK(res7)) { | |
14367 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 14368 | } |
1bd55598 RD |
14369 | if (!argp7) { |
14370 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 14371 | } |
1bd55598 RD |
14372 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
14373 | } | |
14374 | if (obj7) { | |
d55e5bfc | 14375 | { |
1bd55598 RD |
14376 | arg8 = wxString_in_helper(obj7); |
14377 | if (arg8 == NULL) SWIG_fail; | |
14378 | temp8 = true; | |
d55e5bfc | 14379 | } |
1bd55598 RD |
14380 | } |
14381 | { | |
14382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14383 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
14384 | wxPyEndAllowThreads(__tstate); | |
14385 | if (PyErr_Occurred()) SWIG_fail; | |
14386 | } | |
14387 | { | |
14388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14389 | } | |
14390 | { | |
14391 | if (temp8) | |
14392 | delete arg8; | |
14393 | } | |
14394 | return resultobj; | |
14395 | fail: | |
14396 | { | |
14397 | if (temp8) | |
14398 | delete arg8; | |
14399 | } | |
14400 | return NULL; | |
d55e5bfc RD |
14401 | } |
14402 | ||
14403 | ||
1bd55598 RD |
14404 | SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14405 | PyObject *resultobj = 0; | |
14406 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14407 | int result; | |
14408 | void *argp1 = 0 ; | |
14409 | int res1 = 0 ; | |
14410 | PyObject *swig_obj[1] ; | |
14411 | ||
14412 | if (!args) SWIG_fail; | |
14413 | swig_obj[0] = args; | |
14414 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14415 | if (!SWIG_IsOK(res1)) { | |
14416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14417 | } | |
14418 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14419 | { | |
14420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14421 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
14422 | wxPyEndAllowThreads(__tstate); | |
14423 | if (PyErr_Occurred()) SWIG_fail; | |
14424 | } | |
14425 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14426 | return resultobj; | |
14427 | fail: | |
14428 | return NULL; | |
d55e5bfc RD |
14429 | } |
14430 | ||
14431 | ||
1bd55598 RD |
14432 | SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14433 | PyObject *resultobj = 0; | |
14434 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14435 | int result; | |
14436 | void *argp1 = 0 ; | |
14437 | int res1 = 0 ; | |
14438 | PyObject *swig_obj[1] ; | |
14439 | ||
14440 | if (!args) SWIG_fail; | |
14441 | swig_obj[0] = args; | |
14442 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14443 | if (!SWIG_IsOK(res1)) { | |
14444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14445 | } | |
14446 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14447 | { | |
14448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14449 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
14450 | wxPyEndAllowThreads(__tstate); | |
14451 | if (PyErr_Occurred()) SWIG_fail; | |
14452 | } | |
14453 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14454 | return resultobj; | |
14455 | fail: | |
14456 | return NULL; | |
d55e5bfc RD |
14457 | } |
14458 | ||
14459 | ||
1bd55598 RD |
14460 | SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14461 | PyObject *resultobj = 0; | |
14462 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14463 | int result; | |
14464 | void *argp1 = 0 ; | |
14465 | int res1 = 0 ; | |
14466 | PyObject *swig_obj[1] ; | |
14467 | ||
14468 | if (!args) SWIG_fail; | |
14469 | swig_obj[0] = args; | |
14470 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14471 | if (!SWIG_IsOK(res1)) { | |
14472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14473 | } | |
14474 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14475 | { | |
14476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14477 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
14478 | wxPyEndAllowThreads(__tstate); | |
14479 | if (PyErr_Occurred()) SWIG_fail; | |
14480 | } | |
14481 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14482 | return resultobj; | |
14483 | fail: | |
14484 | return NULL; | |
d55e5bfc RD |
14485 | } |
14486 | ||
14487 | ||
1bd55598 RD |
14488 | SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14489 | PyObject *resultobj = 0; | |
14490 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14491 | int result; | |
14492 | void *argp1 = 0 ; | |
14493 | int res1 = 0 ; | |
14494 | PyObject *swig_obj[1] ; | |
14495 | ||
14496 | if (!args) SWIG_fail; | |
14497 | swig_obj[0] = args; | |
14498 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14499 | if (!SWIG_IsOK(res1)) { | |
14500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14501 | } | |
14502 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14503 | { | |
14504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14505 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
14506 | wxPyEndAllowThreads(__tstate); | |
14507 | if (PyErr_Occurred()) SWIG_fail; | |
14508 | } | |
14509 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14510 | return resultobj; | |
14511 | fail: | |
14512 | return NULL; | |
d55e5bfc RD |
14513 | } |
14514 | ||
14515 | ||
1bd55598 RD |
14516 | SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14517 | PyObject *resultobj = 0; | |
14518 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14519 | bool result; | |
14520 | void *argp1 = 0 ; | |
14521 | int res1 = 0 ; | |
14522 | PyObject *swig_obj[1] ; | |
14523 | ||
14524 | if (!args) SWIG_fail; | |
14525 | swig_obj[0] = args; | |
14526 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14527 | if (!SWIG_IsOK(res1)) { | |
14528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14529 | } | |
14530 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14531 | { | |
14532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14533 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
14534 | wxPyEndAllowThreads(__tstate); | |
14535 | if (PyErr_Occurred()) SWIG_fail; | |
14536 | } | |
14537 | { | |
14538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14539 | } | |
14540 | return resultobj; | |
14541 | fail: | |
14542 | return NULL; | |
14543 | } | |
14544 | ||
14545 | ||
14546 | SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14547 | PyObject *resultobj = 0; | |
14548 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14549 | int arg2 ; | |
14550 | void *argp1 = 0 ; | |
14551 | int res1 = 0 ; | |
14552 | int val2 ; | |
14553 | int ecode2 = 0 ; | |
14554 | PyObject * obj0 = 0 ; | |
14555 | PyObject * obj1 = 0 ; | |
14556 | char * kwnames[] = { | |
14557 | (char *) "self",(char *) "viewStart", NULL | |
14558 | }; | |
14559 | ||
14560 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
14561 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14562 | if (!SWIG_IsOK(res1)) { | |
14563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'"); | |
14564 | } | |
14565 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14566 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14567 | if (!SWIG_IsOK(ecode2)) { | |
14568 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'"); | |
14569 | } | |
14570 | arg2 = static_cast< int >(val2); | |
14571 | { | |
14572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14573 | (arg1)->SetThumbPosition(arg2); | |
14574 | wxPyEndAllowThreads(__tstate); | |
14575 | if (PyErr_Occurred()) SWIG_fail; | |
14576 | } | |
14577 | resultobj = SWIG_Py_Void(); | |
14578 | return resultobj; | |
14579 | fail: | |
14580 | return NULL; | |
14581 | } | |
14582 | ||
14583 | ||
14584 | SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14585 | PyObject *resultobj = 0; | |
14586 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
14587 | SwigValueWrapper<wxVisualAttributes > result; | |
14588 | int val1 ; | |
14589 | int ecode1 = 0 ; | |
14590 | PyObject * obj0 = 0 ; | |
14591 | char * kwnames[] = { | |
14592 | (char *) "variant", NULL | |
14593 | }; | |
14594 | ||
14595 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
14596 | if (obj0) { | |
14597 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14598 | if (!SWIG_IsOK(ecode1)) { | |
14599 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
14600 | } | |
14601 | arg1 = static_cast< wxWindowVariant >(val1); | |
14602 | } | |
14603 | { | |
14604 | if (!wxPyCheckForApp()) SWIG_fail; | |
14605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14606 | result = wxScrollBar::GetClassDefaultAttributes(arg1); | |
14607 | wxPyEndAllowThreads(__tstate); | |
14608 | if (PyErr_Occurred()) SWIG_fail; | |
14609 | } | |
14610 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
14611 | return resultobj; | |
14612 | fail: | |
14613 | return NULL; | |
d55e5bfc RD |
14614 | } |
14615 | ||
14616 | ||
1bd55598 RD |
14617 | SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14618 | PyObject *obj; | |
14619 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14620 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj)); | |
14621 | return SWIG_Py_Void(); | |
d55e5bfc RD |
14622 | } |
14623 | ||
1bd55598 RD |
14624 | SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14625 | return SWIG_Python_InitShadowInstance(args); | |
14626 | } | |
d55e5bfc | 14627 | |
1bd55598 RD |
14628 | SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) { |
14629 | SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
14630 | return 1; | |
14631 | } | |
14632 | ||
14633 | ||
14634 | SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) { | |
14635 | PyObject *pyobj = 0; | |
14636 | ||
14637 | { | |
d55e5bfc | 14638 | #if wxUSE_UNICODE |
1bd55598 | 14639 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); |
d55e5bfc | 14640 | #else |
1bd55598 | 14641 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); |
d55e5bfc | 14642 | #endif |
1bd55598 RD |
14643 | } |
14644 | return pyobj; | |
d55e5bfc RD |
14645 | } |
14646 | ||
14647 | ||
1bd55598 RD |
14648 | SWIGINTERN int SpinCtrlNameStr_set(PyObject *) { |
14649 | SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only."); | |
14650 | return 1; | |
d55e5bfc RD |
14651 | } |
14652 | ||
14653 | ||
1bd55598 RD |
14654 | SWIGINTERN PyObject *SpinCtrlNameStr_get(void) { |
14655 | PyObject *pyobj = 0; | |
14656 | ||
14657 | { | |
14658 | #if wxUSE_UNICODE | |
14659 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
14660 | #else | |
14661 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
14662 | #endif | |
14663 | } | |
14664 | return pyobj; | |
14665 | } | |
14666 | ||
14667 | ||
14668 | SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14669 | PyObject *resultobj = 0; | |
14670 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14671 | int arg2 = (int) -1 ; | |
14672 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14673 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14674 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14675 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14676 | long arg5 = (long) wxSP_HORIZONTAL ; | |
14677 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
14678 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14679 | wxSpinButton *result = 0 ; | |
14680 | void *argp1 = 0 ; | |
14681 | int res1 = 0 ; | |
14682 | int val2 ; | |
14683 | int ecode2 = 0 ; | |
14684 | wxPoint temp3 ; | |
14685 | wxSize temp4 ; | |
14686 | long val5 ; | |
14687 | int ecode5 = 0 ; | |
14688 | bool temp6 = false ; | |
14689 | PyObject * obj0 = 0 ; | |
14690 | PyObject * obj1 = 0 ; | |
14691 | PyObject * obj2 = 0 ; | |
14692 | PyObject * obj3 = 0 ; | |
14693 | PyObject * obj4 = 0 ; | |
14694 | PyObject * obj5 = 0 ; | |
14695 | char * kwnames[] = { | |
14696 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14697 | }; | |
14698 | ||
14699 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
14700 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14701 | if (!SWIG_IsOK(res1)) { | |
14702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14703 | } | |
14704 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14705 | if (obj1) { | |
14706 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14707 | if (!SWIG_IsOK(ecode2)) { | |
14708 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'"); | |
14709 | } | |
14710 | arg2 = static_cast< int >(val2); | |
14711 | } | |
14712 | if (obj2) { | |
d55e5bfc | 14713 | { |
1bd55598 RD |
14714 | arg3 = &temp3; |
14715 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 14716 | } |
1bd55598 RD |
14717 | } |
14718 | if (obj3) { | |
d55e5bfc | 14719 | { |
1bd55598 RD |
14720 | arg4 = &temp4; |
14721 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14722 | } |
1bd55598 RD |
14723 | } |
14724 | if (obj4) { | |
14725 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14726 | if (!SWIG_IsOK(ecode5)) { | |
14727 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'"); | |
14728 | } | |
14729 | arg5 = static_cast< long >(val5); | |
14730 | } | |
14731 | if (obj5) { | |
d55e5bfc | 14732 | { |
1bd55598 RD |
14733 | arg6 = wxString_in_helper(obj5); |
14734 | if (arg6 == NULL) SWIG_fail; | |
14735 | temp6 = true; | |
d55e5bfc | 14736 | } |
1bd55598 RD |
14737 | } |
14738 | { | |
14739 | if (!wxPyCheckForApp()) SWIG_fail; | |
14740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14741 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14742 | wxPyEndAllowThreads(__tstate); | |
14743 | if (PyErr_Occurred()) SWIG_fail; | |
14744 | } | |
14745 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 ); | |
14746 | { | |
14747 | if (temp6) | |
14748 | delete arg6; | |
14749 | } | |
14750 | return resultobj; | |
14751 | fail: | |
14752 | { | |
14753 | if (temp6) | |
14754 | delete arg6; | |
14755 | } | |
14756 | return NULL; | |
d55e5bfc RD |
14757 | } |
14758 | ||
14759 | ||
1bd55598 RD |
14760 | SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14761 | PyObject *resultobj = 0; | |
14762 | wxSpinButton *result = 0 ; | |
14763 | ||
14764 | if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail; | |
14765 | { | |
14766 | if (!wxPyCheckForApp()) SWIG_fail; | |
14767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14768 | result = (wxSpinButton *)new wxSpinButton(); | |
14769 | wxPyEndAllowThreads(__tstate); | |
14770 | if (PyErr_Occurred()) SWIG_fail; | |
14771 | } | |
14772 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 ); | |
14773 | return resultobj; | |
14774 | fail: | |
14775 | return NULL; | |
14776 | } | |
14777 | ||
14778 | ||
14779 | SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14780 | PyObject *resultobj = 0; | |
14781 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14782 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14783 | int arg3 = (int) -1 ; | |
14784 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14785 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14786 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14787 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14788 | long arg6 = (long) wxSP_HORIZONTAL ; | |
14789 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
14790 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14791 | bool result; | |
14792 | void *argp1 = 0 ; | |
14793 | int res1 = 0 ; | |
14794 | void *argp2 = 0 ; | |
14795 | int res2 = 0 ; | |
14796 | int val3 ; | |
14797 | int ecode3 = 0 ; | |
14798 | wxPoint temp4 ; | |
14799 | wxSize temp5 ; | |
14800 | long val6 ; | |
14801 | int ecode6 = 0 ; | |
14802 | bool temp7 = false ; | |
14803 | PyObject * obj0 = 0 ; | |
14804 | PyObject * obj1 = 0 ; | |
14805 | PyObject * obj2 = 0 ; | |
14806 | PyObject * obj3 = 0 ; | |
14807 | PyObject * obj4 = 0 ; | |
14808 | PyObject * obj5 = 0 ; | |
14809 | PyObject * obj6 = 0 ; | |
14810 | char * kwnames[] = { | |
14811 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14812 | }; | |
14813 | ||
14814 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14815 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14816 | if (!SWIG_IsOK(res1)) { | |
14817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
14818 | } | |
14819 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14820 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14821 | if (!SWIG_IsOK(res2)) { | |
14822 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14823 | } | |
14824 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14825 | if (obj2) { | |
14826 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14827 | if (!SWIG_IsOK(ecode3)) { | |
14828 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
14829 | } | |
14830 | arg3 = static_cast< int >(val3); | |
14831 | } | |
14832 | if (obj3) { | |
d55e5bfc | 14833 | { |
1bd55598 RD |
14834 | arg4 = &temp4; |
14835 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14836 | } |
1bd55598 RD |
14837 | } |
14838 | if (obj4) { | |
d55e5bfc | 14839 | { |
1bd55598 RD |
14840 | arg5 = &temp5; |
14841 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 14842 | } |
1bd55598 RD |
14843 | } |
14844 | if (obj5) { | |
14845 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14846 | if (!SWIG_IsOK(ecode6)) { | |
14847 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'"); | |
14848 | } | |
14849 | arg6 = static_cast< long >(val6); | |
14850 | } | |
14851 | if (obj6) { | |
14852 | { | |
14853 | arg7 = wxString_in_helper(obj6); | |
14854 | if (arg7 == NULL) SWIG_fail; | |
14855 | temp7 = true; | |
14856 | } | |
14857 | } | |
14858 | { | |
14859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14860 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14861 | wxPyEndAllowThreads(__tstate); | |
14862 | if (PyErr_Occurred()) SWIG_fail; | |
14863 | } | |
14864 | { | |
14865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14866 | } | |
14867 | { | |
14868 | if (temp7) | |
14869 | delete arg7; | |
14870 | } | |
14871 | return resultobj; | |
14872 | fail: | |
14873 | { | |
14874 | if (temp7) | |
14875 | delete arg7; | |
14876 | } | |
14877 | return NULL; | |
d55e5bfc RD |
14878 | } |
14879 | ||
14880 | ||
1bd55598 RD |
14881 | SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14882 | PyObject *resultobj = 0; | |
14883 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14884 | int result; | |
14885 | void *argp1 = 0 ; | |
14886 | int res1 = 0 ; | |
14887 | PyObject *swig_obj[1] ; | |
14888 | ||
14889 | if (!args) SWIG_fail; | |
14890 | swig_obj[0] = args; | |
14891 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14892 | if (!SWIG_IsOK(res1)) { | |
14893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
14894 | } | |
14895 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14896 | { | |
14897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14898 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
14899 | wxPyEndAllowThreads(__tstate); | |
14900 | if (PyErr_Occurred()) SWIG_fail; | |
14901 | } | |
14902 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14903 | return resultobj; | |
14904 | fail: | |
14905 | return NULL; | |
d55e5bfc RD |
14906 | } |
14907 | ||
14908 | ||
1bd55598 RD |
14909 | SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14910 | PyObject *resultobj = 0; | |
14911 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14912 | int result; | |
14913 | void *argp1 = 0 ; | |
14914 | int res1 = 0 ; | |
14915 | PyObject *swig_obj[1] ; | |
14916 | ||
14917 | if (!args) SWIG_fail; | |
14918 | swig_obj[0] = args; | |
14919 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14920 | if (!SWIG_IsOK(res1)) { | |
14921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
14922 | } | |
14923 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14924 | { | |
14925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14926 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
14927 | wxPyEndAllowThreads(__tstate); | |
14928 | if (PyErr_Occurred()) SWIG_fail; | |
14929 | } | |
14930 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14931 | return resultobj; | |
14932 | fail: | |
14933 | return NULL; | |
d55e5bfc RD |
14934 | } |
14935 | ||
14936 | ||
1bd55598 RD |
14937 | SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14938 | PyObject *resultobj = 0; | |
14939 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14940 | int result; | |
14941 | void *argp1 = 0 ; | |
14942 | int res1 = 0 ; | |
14943 | PyObject *swig_obj[1] ; | |
14944 | ||
14945 | if (!args) SWIG_fail; | |
14946 | swig_obj[0] = args; | |
14947 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14948 | if (!SWIG_IsOK(res1)) { | |
14949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
14950 | } | |
14951 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14952 | { | |
14953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14954 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
14955 | wxPyEndAllowThreads(__tstate); | |
14956 | if (PyErr_Occurred()) SWIG_fail; | |
14957 | } | |
14958 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14959 | return resultobj; | |
14960 | fail: | |
14961 | return NULL; | |
14962 | } | |
14963 | ||
14964 | ||
14965 | SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14966 | PyObject *resultobj = 0; | |
14967 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14968 | int arg2 ; | |
14969 | void *argp1 = 0 ; | |
14970 | int res1 = 0 ; | |
14971 | int val2 ; | |
14972 | int ecode2 = 0 ; | |
14973 | PyObject * obj0 = 0 ; | |
14974 | PyObject * obj1 = 0 ; | |
14975 | char * kwnames[] = { | |
14976 | (char *) "self",(char *) "val", NULL | |
14977 | }; | |
14978 | ||
14979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
14980 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14981 | if (!SWIG_IsOK(res1)) { | |
14982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
14983 | } | |
14984 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14985 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14986 | if (!SWIG_IsOK(ecode2)) { | |
14987 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
14988 | } | |
14989 | arg2 = static_cast< int >(val2); | |
14990 | { | |
14991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14992 | (arg1)->SetValue(arg2); | |
14993 | wxPyEndAllowThreads(__tstate); | |
14994 | if (PyErr_Occurred()) SWIG_fail; | |
14995 | } | |
14996 | resultobj = SWIG_Py_Void(); | |
14997 | return resultobj; | |
14998 | fail: | |
14999 | return NULL; | |
15000 | } | |
15001 | ||
15002 | ||
15003 | SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15004 | PyObject *resultobj = 0; | |
15005 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15006 | int arg2 ; | |
15007 | void *argp1 = 0 ; | |
15008 | int res1 = 0 ; | |
15009 | int val2 ; | |
15010 | int ecode2 = 0 ; | |
15011 | PyObject * obj0 = 0 ; | |
15012 | PyObject * obj1 = 0 ; | |
15013 | char * kwnames[] = { | |
15014 | (char *) "self",(char *) "minVal", NULL | |
15015 | }; | |
15016 | ||
15017 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail; | |
15018 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15019 | if (!SWIG_IsOK(res1)) { | |
15020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
15021 | } | |
15022 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15023 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15024 | if (!SWIG_IsOK(ecode2)) { | |
15025 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'"); | |
15026 | } | |
15027 | arg2 = static_cast< int >(val2); | |
15028 | { | |
15029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15030 | (arg1)->SetMin(arg2); | |
15031 | wxPyEndAllowThreads(__tstate); | |
15032 | if (PyErr_Occurred()) SWIG_fail; | |
15033 | } | |
15034 | resultobj = SWIG_Py_Void(); | |
15035 | return resultobj; | |
15036 | fail: | |
15037 | return NULL; | |
15038 | } | |
15039 | ||
15040 | ||
15041 | SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15042 | PyObject *resultobj = 0; | |
15043 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15044 | int arg2 ; | |
15045 | void *argp1 = 0 ; | |
15046 | int res1 = 0 ; | |
15047 | int val2 ; | |
15048 | int ecode2 = 0 ; | |
15049 | PyObject * obj0 = 0 ; | |
15050 | PyObject * obj1 = 0 ; | |
15051 | char * kwnames[] = { | |
15052 | (char *) "self",(char *) "maxVal", NULL | |
15053 | }; | |
15054 | ||
15055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail; | |
15056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15057 | if (!SWIG_IsOK(res1)) { | |
15058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
15059 | } | |
15060 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15061 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15062 | if (!SWIG_IsOK(ecode2)) { | |
15063 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'"); | |
15064 | } | |
15065 | arg2 = static_cast< int >(val2); | |
15066 | { | |
15067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15068 | (arg1)->SetMax(arg2); | |
15069 | wxPyEndAllowThreads(__tstate); | |
15070 | if (PyErr_Occurred()) SWIG_fail; | |
15071 | } | |
15072 | resultobj = SWIG_Py_Void(); | |
15073 | return resultobj; | |
15074 | fail: | |
15075 | return NULL; | |
15076 | } | |
15077 | ||
15078 | ||
15079 | SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15080 | PyObject *resultobj = 0; | |
15081 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15082 | int arg2 ; | |
15083 | int arg3 ; | |
15084 | void *argp1 = 0 ; | |
15085 | int res1 = 0 ; | |
15086 | int val2 ; | |
15087 | int ecode2 = 0 ; | |
15088 | int val3 ; | |
15089 | int ecode3 = 0 ; | |
15090 | PyObject * obj0 = 0 ; | |
15091 | PyObject * obj1 = 0 ; | |
15092 | PyObject * obj2 = 0 ; | |
15093 | char * kwnames[] = { | |
15094 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
15095 | }; | |
15096 | ||
15097 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15098 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15099 | if (!SWIG_IsOK(res1)) { | |
15100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
15101 | } | |
15102 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15103 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15104 | if (!SWIG_IsOK(ecode2)) { | |
15105 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
15106 | } | |
15107 | arg2 = static_cast< int >(val2); | |
15108 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15109 | if (!SWIG_IsOK(ecode3)) { | |
15110 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
15111 | } | |
15112 | arg3 = static_cast< int >(val3); | |
15113 | { | |
15114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15115 | (arg1)->SetRange(arg2,arg3); | |
15116 | wxPyEndAllowThreads(__tstate); | |
15117 | if (PyErr_Occurred()) SWIG_fail; | |
15118 | } | |
15119 | resultobj = SWIG_Py_Void(); | |
15120 | return resultobj; | |
15121 | fail: | |
15122 | return NULL; | |
d55e5bfc RD |
15123 | } |
15124 | ||
15125 | ||
1bd55598 RD |
15126 | SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15127 | PyObject *resultobj = 0; | |
15128 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15129 | bool result; | |
15130 | void *argp1 = 0 ; | |
15131 | int res1 = 0 ; | |
15132 | PyObject *swig_obj[1] ; | |
15133 | ||
15134 | if (!args) SWIG_fail; | |
15135 | swig_obj[0] = args; | |
15136 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15137 | if (!SWIG_IsOK(res1)) { | |
15138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
15139 | } | |
15140 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15141 | { | |
15142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15143 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
15144 | wxPyEndAllowThreads(__tstate); | |
15145 | if (PyErr_Occurred()) SWIG_fail; | |
15146 | } | |
15147 | { | |
15148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15149 | } | |
15150 | return resultobj; | |
15151 | fail: | |
15152 | return NULL; | |
d55e5bfc RD |
15153 | } |
15154 | ||
15155 | ||
1bd55598 RD |
15156 | SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15157 | PyObject *resultobj = 0; | |
15158 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
15159 | SwigValueWrapper<wxVisualAttributes > result; | |
15160 | int val1 ; | |
15161 | int ecode1 = 0 ; | |
15162 | PyObject * obj0 = 0 ; | |
15163 | char * kwnames[] = { | |
15164 | (char *) "variant", NULL | |
15165 | }; | |
15166 | ||
15167 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
15168 | if (obj0) { | |
15169 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15170 | if (!SWIG_IsOK(ecode1)) { | |
15171 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
15172 | } | |
15173 | arg1 = static_cast< wxWindowVariant >(val1); | |
15174 | } | |
15175 | { | |
15176 | if (!wxPyCheckForApp()) SWIG_fail; | |
15177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15178 | result = wxSpinButton::GetClassDefaultAttributes(arg1); | |
15179 | wxPyEndAllowThreads(__tstate); | |
15180 | if (PyErr_Occurred()) SWIG_fail; | |
15181 | } | |
15182 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
15183 | return resultobj; | |
15184 | fail: | |
15185 | return NULL; | |
15186 | } | |
15187 | ||
15188 | ||
15189 | SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15190 | PyObject *obj; | |
15191 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15192 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj)); | |
15193 | return SWIG_Py_Void(); | |
15194 | } | |
15195 | ||
15196 | SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15197 | return SWIG_Python_InitShadowInstance(args); | |
15198 | } | |
15199 | ||
15200 | SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15201 | PyObject *resultobj = 0; | |
15202 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15203 | int arg2 = (int) -1 ; | |
15204 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15205 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15206 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15207 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15208 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15209 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15210 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
15211 | int arg7 = (int) 0 ; | |
15212 | int arg8 = (int) 100 ; | |
15213 | int arg9 = (int) 0 ; | |
15214 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
15215 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
15216 | wxSpinCtrl *result = 0 ; | |
15217 | void *argp1 = 0 ; | |
15218 | int res1 = 0 ; | |
15219 | int val2 ; | |
15220 | int ecode2 = 0 ; | |
15221 | bool temp3 = false ; | |
15222 | wxPoint temp4 ; | |
15223 | wxSize temp5 ; | |
15224 | long val6 ; | |
15225 | int ecode6 = 0 ; | |
15226 | int val7 ; | |
15227 | int ecode7 = 0 ; | |
15228 | int val8 ; | |
15229 | int ecode8 = 0 ; | |
15230 | int val9 ; | |
15231 | int ecode9 = 0 ; | |
15232 | bool temp10 = false ; | |
15233 | PyObject * obj0 = 0 ; | |
15234 | PyObject * obj1 = 0 ; | |
15235 | PyObject * obj2 = 0 ; | |
15236 | PyObject * obj3 = 0 ; | |
15237 | PyObject * obj4 = 0 ; | |
15238 | PyObject * obj5 = 0 ; | |
15239 | PyObject * obj6 = 0 ; | |
15240 | PyObject * obj7 = 0 ; | |
15241 | PyObject * obj8 = 0 ; | |
15242 | PyObject * obj9 = 0 ; | |
15243 | char * kwnames[] = { | |
15244 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
15245 | }; | |
15246 | ||
15247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
15248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15249 | if (!SWIG_IsOK(res1)) { | |
15250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
15251 | } | |
15252 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
15253 | if (obj1) { | |
15254 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15255 | if (!SWIG_IsOK(ecode2)) { | |
15256 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'"); | |
15257 | } | |
15258 | arg2 = static_cast< int >(val2); | |
15259 | } | |
15260 | if (obj2) { | |
d55e5bfc | 15261 | { |
1bd55598 RD |
15262 | arg3 = wxString_in_helper(obj2); |
15263 | if (arg3 == NULL) SWIG_fail; | |
15264 | temp3 = true; | |
d55e5bfc | 15265 | } |
1bd55598 RD |
15266 | } |
15267 | if (obj3) { | |
d55e5bfc | 15268 | { |
1bd55598 RD |
15269 | arg4 = &temp4; |
15270 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 15271 | } |
1bd55598 RD |
15272 | } |
15273 | if (obj4) { | |
d55e5bfc | 15274 | { |
1bd55598 RD |
15275 | arg5 = &temp5; |
15276 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 15277 | } |
1bd55598 RD |
15278 | } |
15279 | if (obj5) { | |
15280 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
15281 | if (!SWIG_IsOK(ecode6)) { | |
15282 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'"); | |
15283 | } | |
15284 | arg6 = static_cast< long >(val6); | |
15285 | } | |
15286 | if (obj6) { | |
15287 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
15288 | if (!SWIG_IsOK(ecode7)) { | |
15289 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'"); | |
15290 | } | |
15291 | arg7 = static_cast< int >(val7); | |
15292 | } | |
15293 | if (obj7) { | |
15294 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
15295 | if (!SWIG_IsOK(ecode8)) { | |
15296 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'"); | |
15297 | } | |
15298 | arg8 = static_cast< int >(val8); | |
15299 | } | |
15300 | if (obj8) { | |
15301 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
15302 | if (!SWIG_IsOK(ecode9)) { | |
15303 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'"); | |
15304 | } | |
15305 | arg9 = static_cast< int >(val9); | |
15306 | } | |
15307 | if (obj9) { | |
d55e5bfc | 15308 | { |
1bd55598 RD |
15309 | arg10 = wxString_in_helper(obj9); |
15310 | if (arg10 == NULL) SWIG_fail; | |
15311 | temp10 = true; | |
d55e5bfc | 15312 | } |
1bd55598 RD |
15313 | } |
15314 | { | |
15315 | if (!wxPyCheckForApp()) SWIG_fail; | |
15316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15317 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
15318 | wxPyEndAllowThreads(__tstate); | |
15319 | if (PyErr_Occurred()) SWIG_fail; | |
15320 | } | |
15321 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 ); | |
15322 | { | |
15323 | if (temp3) | |
15324 | delete arg3; | |
15325 | } | |
15326 | { | |
15327 | if (temp10) | |
15328 | delete arg10; | |
15329 | } | |
15330 | return resultobj; | |
15331 | fail: | |
15332 | { | |
15333 | if (temp3) | |
15334 | delete arg3; | |
15335 | } | |
15336 | { | |
15337 | if (temp10) | |
15338 | delete arg10; | |
15339 | } | |
15340 | return NULL; | |
d55e5bfc RD |
15341 | } |
15342 | ||
15343 | ||
1bd55598 RD |
15344 | SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15345 | PyObject *resultobj = 0; | |
15346 | wxSpinCtrl *result = 0 ; | |
15347 | ||
15348 | if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail; | |
15349 | { | |
15350 | if (!wxPyCheckForApp()) SWIG_fail; | |
15351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15352 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
15353 | wxPyEndAllowThreads(__tstate); | |
15354 | if (PyErr_Occurred()) SWIG_fail; | |
15355 | } | |
15356 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 ); | |
15357 | return resultobj; | |
15358 | fail: | |
15359 | return NULL; | |
15360 | } | |
15361 | ||
15362 | ||
15363 | SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15364 | PyObject *resultobj = 0; | |
15365 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15366 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15367 | int arg3 = (int) -1 ; | |
15368 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15369 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15370 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
15371 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15372 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15373 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15374 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
15375 | int arg8 = (int) 0 ; | |
15376 | int arg9 = (int) 100 ; | |
15377 | int arg10 = (int) 0 ; | |
15378 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
15379 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
15380 | bool result; | |
15381 | void *argp1 = 0 ; | |
15382 | int res1 = 0 ; | |
15383 | void *argp2 = 0 ; | |
15384 | int res2 = 0 ; | |
15385 | int val3 ; | |
15386 | int ecode3 = 0 ; | |
15387 | bool temp4 = false ; | |
15388 | wxPoint temp5 ; | |
15389 | wxSize temp6 ; | |
15390 | long val7 ; | |
15391 | int ecode7 = 0 ; | |
15392 | int val8 ; | |
15393 | int ecode8 = 0 ; | |
15394 | int val9 ; | |
15395 | int ecode9 = 0 ; | |
15396 | int val10 ; | |
15397 | int ecode10 = 0 ; | |
15398 | bool temp11 = false ; | |
15399 | PyObject * obj0 = 0 ; | |
15400 | PyObject * obj1 = 0 ; | |
15401 | PyObject * obj2 = 0 ; | |
15402 | PyObject * obj3 = 0 ; | |
15403 | PyObject * obj4 = 0 ; | |
15404 | PyObject * obj5 = 0 ; | |
15405 | PyObject * obj6 = 0 ; | |
15406 | PyObject * obj7 = 0 ; | |
15407 | PyObject * obj8 = 0 ; | |
15408 | PyObject * obj9 = 0 ; | |
15409 | PyObject * obj10 = 0 ; | |
15410 | char * kwnames[] = { | |
15411 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
15412 | }; | |
15413 | ||
15414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
15415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15416 | if (!SWIG_IsOK(res1)) { | |
15417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15418 | } | |
15419 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15420 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15421 | if (!SWIG_IsOK(res2)) { | |
15422 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
15423 | } | |
15424 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
15425 | if (obj2) { | |
15426 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15427 | if (!SWIG_IsOK(ecode3)) { | |
15428 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
15429 | } | |
15430 | arg3 = static_cast< int >(val3); | |
15431 | } | |
15432 | if (obj3) { | |
36ed4f51 | 15433 | { |
1bd55598 RD |
15434 | arg4 = wxString_in_helper(obj3); |
15435 | if (arg4 == NULL) SWIG_fail; | |
15436 | temp4 = true; | |
36ed4f51 | 15437 | } |
1bd55598 RD |
15438 | } |
15439 | if (obj4) { | |
36ed4f51 | 15440 | { |
1bd55598 RD |
15441 | arg5 = &temp5; |
15442 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 15443 | } |
1bd55598 RD |
15444 | } |
15445 | if (obj5) { | |
d55e5bfc | 15446 | { |
1bd55598 RD |
15447 | arg6 = &temp6; |
15448 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 15449 | } |
1bd55598 RD |
15450 | } |
15451 | if (obj6) { | |
15452 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
15453 | if (!SWIG_IsOK(ecode7)) { | |
15454 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
15455 | } | |
15456 | arg7 = static_cast< long >(val7); | |
15457 | } | |
15458 | if (obj7) { | |
15459 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
15460 | if (!SWIG_IsOK(ecode8)) { | |
15461 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'"); | |
15462 | } | |
15463 | arg8 = static_cast< int >(val8); | |
15464 | } | |
15465 | if (obj8) { | |
15466 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
15467 | if (!SWIG_IsOK(ecode9)) { | |
15468 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'"); | |
15469 | } | |
15470 | arg9 = static_cast< int >(val9); | |
15471 | } | |
15472 | if (obj9) { | |
15473 | ecode10 = SWIG_AsVal_int(obj9, &val10); | |
15474 | if (!SWIG_IsOK(ecode10)) { | |
15475 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'"); | |
15476 | } | |
15477 | arg10 = static_cast< int >(val10); | |
15478 | } | |
15479 | if (obj10) { | |
15480 | { | |
15481 | arg11 = wxString_in_helper(obj10); | |
15482 | if (arg11 == NULL) SWIG_fail; | |
15483 | temp11 = true; | |
15484 | } | |
15485 | } | |
15486 | { | |
15487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15488 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
15489 | wxPyEndAllowThreads(__tstate); | |
15490 | if (PyErr_Occurred()) SWIG_fail; | |
15491 | } | |
15492 | { | |
15493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15494 | } | |
15495 | { | |
15496 | if (temp4) | |
15497 | delete arg4; | |
15498 | } | |
15499 | { | |
15500 | if (temp11) | |
15501 | delete arg11; | |
15502 | } | |
15503 | return resultobj; | |
15504 | fail: | |
15505 | { | |
15506 | if (temp4) | |
15507 | delete arg4; | |
15508 | } | |
15509 | { | |
15510 | if (temp11) | |
15511 | delete arg11; | |
15512 | } | |
15513 | return NULL; | |
d55e5bfc RD |
15514 | } |
15515 | ||
15516 | ||
1bd55598 RD |
15517 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15518 | PyObject *resultobj = 0; | |
15519 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15520 | int result; | |
15521 | void *argp1 = 0 ; | |
15522 | int res1 = 0 ; | |
15523 | PyObject *swig_obj[1] ; | |
15524 | ||
15525 | if (!args) SWIG_fail; | |
15526 | swig_obj[0] = args; | |
15527 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15528 | if (!SWIG_IsOK(res1)) { | |
15529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15530 | } | |
15531 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15532 | { | |
15533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15534 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
15535 | wxPyEndAllowThreads(__tstate); | |
15536 | if (PyErr_Occurred()) SWIG_fail; | |
15537 | } | |
15538 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15539 | return resultobj; | |
15540 | fail: | |
15541 | return NULL; | |
15542 | } | |
15543 | ||
15544 | ||
15545 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15546 | PyObject *resultobj = 0; | |
15547 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15548 | int arg2 ; | |
15549 | void *argp1 = 0 ; | |
15550 | int res1 = 0 ; | |
15551 | int val2 ; | |
15552 | int ecode2 = 0 ; | |
15553 | PyObject * obj0 = 0 ; | |
15554 | PyObject * obj1 = 0 ; | |
15555 | char * kwnames[] = { | |
15556 | (char *) "self",(char *) "value", NULL | |
15557 | }; | |
15558 | ||
15559 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
15560 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15561 | if (!SWIG_IsOK(res1)) { | |
15562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15563 | } | |
15564 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15565 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15566 | if (!SWIG_IsOK(ecode2)) { | |
15567 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
15568 | } | |
15569 | arg2 = static_cast< int >(val2); | |
15570 | { | |
15571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15572 | (arg1)->SetValue(arg2); | |
15573 | wxPyEndAllowThreads(__tstate); | |
15574 | if (PyErr_Occurred()) SWIG_fail; | |
15575 | } | |
15576 | resultobj = SWIG_Py_Void(); | |
15577 | return resultobj; | |
15578 | fail: | |
15579 | return NULL; | |
15580 | } | |
15581 | ||
15582 | ||
15583 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15584 | PyObject *resultobj = 0; | |
15585 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15586 | wxString *arg2 = 0 ; | |
15587 | void *argp1 = 0 ; | |
15588 | int res1 = 0 ; | |
15589 | bool temp2 = false ; | |
15590 | PyObject * obj0 = 0 ; | |
15591 | PyObject * obj1 = 0 ; | |
15592 | char * kwnames[] = { | |
15593 | (char *) "self",(char *) "text", NULL | |
15594 | }; | |
15595 | ||
15596 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail; | |
15597 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15598 | if (!SWIG_IsOK(res1)) { | |
15599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15600 | } | |
15601 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15602 | { | |
15603 | arg2 = wxString_in_helper(obj1); | |
15604 | if (arg2 == NULL) SWIG_fail; | |
15605 | temp2 = true; | |
15606 | } | |
15607 | { | |
15608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15609 | (arg1)->SetValue((wxString const &)*arg2); | |
15610 | wxPyEndAllowThreads(__tstate); | |
15611 | if (PyErr_Occurred()) SWIG_fail; | |
15612 | } | |
15613 | resultobj = SWIG_Py_Void(); | |
15614 | { | |
15615 | if (temp2) | |
15616 | delete arg2; | |
15617 | } | |
15618 | return resultobj; | |
15619 | fail: | |
15620 | { | |
15621 | if (temp2) | |
15622 | delete arg2; | |
15623 | } | |
15624 | return NULL; | |
15625 | } | |
15626 | ||
15627 | ||
15628 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15629 | PyObject *resultobj = 0; | |
15630 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15631 | int arg2 ; | |
15632 | int arg3 ; | |
15633 | void *argp1 = 0 ; | |
15634 | int res1 = 0 ; | |
15635 | int val2 ; | |
15636 | int ecode2 = 0 ; | |
15637 | int val3 ; | |
15638 | int ecode3 = 0 ; | |
15639 | PyObject * obj0 = 0 ; | |
15640 | PyObject * obj1 = 0 ; | |
15641 | PyObject * obj2 = 0 ; | |
15642 | char * kwnames[] = { | |
15643 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
15644 | }; | |
15645 | ||
15646 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15647 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15648 | if (!SWIG_IsOK(res1)) { | |
15649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15650 | } | |
15651 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15652 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15653 | if (!SWIG_IsOK(ecode2)) { | |
15654 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
15655 | } | |
15656 | arg2 = static_cast< int >(val2); | |
15657 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15658 | if (!SWIG_IsOK(ecode3)) { | |
15659 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
15660 | } | |
15661 | arg3 = static_cast< int >(val3); | |
15662 | { | |
15663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15664 | (arg1)->SetRange(arg2,arg3); | |
15665 | wxPyEndAllowThreads(__tstate); | |
15666 | if (PyErr_Occurred()) SWIG_fail; | |
15667 | } | |
15668 | resultobj = SWIG_Py_Void(); | |
15669 | return resultobj; | |
15670 | fail: | |
15671 | return NULL; | |
d55e5bfc RD |
15672 | } |
15673 | ||
15674 | ||
1bd55598 RD |
15675 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15676 | PyObject *resultobj = 0; | |
15677 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15678 | int result; | |
15679 | void *argp1 = 0 ; | |
15680 | int res1 = 0 ; | |
15681 | PyObject *swig_obj[1] ; | |
15682 | ||
15683 | if (!args) SWIG_fail; | |
15684 | swig_obj[0] = args; | |
15685 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15686 | if (!SWIG_IsOK(res1)) { | |
15687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15688 | } | |
15689 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15690 | { | |
15691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15692 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
15693 | wxPyEndAllowThreads(__tstate); | |
15694 | if (PyErr_Occurred()) SWIG_fail; | |
15695 | } | |
15696 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15697 | return resultobj; | |
15698 | fail: | |
15699 | return NULL; | |
d55e5bfc RD |
15700 | } |
15701 | ||
15702 | ||
1bd55598 RD |
15703 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15704 | PyObject *resultobj = 0; | |
15705 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15706 | int result; | |
15707 | void *argp1 = 0 ; | |
15708 | int res1 = 0 ; | |
15709 | PyObject *swig_obj[1] ; | |
15710 | ||
15711 | if (!args) SWIG_fail; | |
15712 | swig_obj[0] = args; | |
15713 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15714 | if (!SWIG_IsOK(res1)) { | |
15715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15716 | } | |
15717 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15718 | { | |
15719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15720 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
15721 | wxPyEndAllowThreads(__tstate); | |
15722 | if (PyErr_Occurred()) SWIG_fail; | |
15723 | } | |
15724 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15725 | return resultobj; | |
15726 | fail: | |
15727 | return NULL; | |
15728 | } | |
15729 | ||
15730 | ||
15731 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15732 | PyObject *resultobj = 0; | |
15733 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15734 | long arg2 ; | |
15735 | long arg3 ; | |
15736 | void *argp1 = 0 ; | |
15737 | int res1 = 0 ; | |
15738 | long val2 ; | |
15739 | int ecode2 = 0 ; | |
15740 | long val3 ; | |
15741 | int ecode3 = 0 ; | |
15742 | PyObject * obj0 = 0 ; | |
15743 | PyObject * obj1 = 0 ; | |
15744 | PyObject * obj2 = 0 ; | |
15745 | char * kwnames[] = { | |
2131d850 | 15746 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
15747 | }; |
15748 | ||
15749 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15750 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15751 | if (!SWIG_IsOK(res1)) { | |
15752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15753 | } | |
15754 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15755 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
15756 | if (!SWIG_IsOK(ecode2)) { | |
15757 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
15758 | } | |
15759 | arg2 = static_cast< long >(val2); | |
15760 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
15761 | if (!SWIG_IsOK(ecode3)) { | |
15762 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
15763 | } | |
15764 | arg3 = static_cast< long >(val3); | |
15765 | { | |
15766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15767 | (arg1)->SetSelection(arg2,arg3); | |
15768 | wxPyEndAllowThreads(__tstate); | |
15769 | if (PyErr_Occurred()) SWIG_fail; | |
15770 | } | |
15771 | resultobj = SWIG_Py_Void(); | |
15772 | return resultobj; | |
15773 | fail: | |
15774 | return NULL; | |
15775 | } | |
15776 | ||
15777 | ||
15778 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15779 | PyObject *resultobj = 0; | |
15780 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
15781 | SwigValueWrapper<wxVisualAttributes > result; | |
15782 | int val1 ; | |
15783 | int ecode1 = 0 ; | |
15784 | PyObject * obj0 = 0 ; | |
15785 | char * kwnames[] = { | |
15786 | (char *) "variant", NULL | |
15787 | }; | |
15788 | ||
15789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
15790 | if (obj0) { | |
15791 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15792 | if (!SWIG_IsOK(ecode1)) { | |
15793 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
15794 | } | |
15795 | arg1 = static_cast< wxWindowVariant >(val1); | |
15796 | } | |
15797 | { | |
15798 | if (!wxPyCheckForApp()) SWIG_fail; | |
15799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15800 | result = wxSpinCtrl::GetClassDefaultAttributes(arg1); | |
15801 | wxPyEndAllowThreads(__tstate); | |
15802 | if (PyErr_Occurred()) SWIG_fail; | |
15803 | } | |
15804 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
15805 | return resultobj; | |
15806 | fail: | |
15807 | return NULL; | |
d55e5bfc RD |
15808 | } |
15809 | ||
15810 | ||
1bd55598 RD |
15811 | SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15812 | PyObject *obj; | |
15813 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15814 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj)); | |
15815 | return SWIG_Py_Void(); | |
d55e5bfc RD |
15816 | } |
15817 | ||
1bd55598 RD |
15818 | SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15819 | return SWIG_Python_InitShadowInstance(args); | |
15820 | } | |
d55e5bfc | 15821 | |
1bd55598 RD |
15822 | SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15823 | PyObject *resultobj = 0; | |
15824 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15825 | int arg2 = (int) 0 ; | |
15826 | wxSpinEvent *result = 0 ; | |
15827 | int val1 ; | |
15828 | int ecode1 = 0 ; | |
15829 | int val2 ; | |
15830 | int ecode2 = 0 ; | |
15831 | PyObject * obj0 = 0 ; | |
15832 | PyObject * obj1 = 0 ; | |
15833 | char * kwnames[] = { | |
15834 | (char *) "commandType",(char *) "winid", NULL | |
15835 | }; | |
15836 | ||
15837 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
15838 | if (obj0) { | |
15839 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15840 | if (!SWIG_IsOK(ecode1)) { | |
15841 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
15842 | } | |
15843 | arg1 = static_cast< wxEventType >(val1); | |
15844 | } | |
15845 | if (obj1) { | |
15846 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15847 | if (!SWIG_IsOK(ecode2)) { | |
15848 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'"); | |
15849 | } | |
15850 | arg2 = static_cast< int >(val2); | |
15851 | } | |
15852 | { | |
15853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15854 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
15855 | wxPyEndAllowThreads(__tstate); | |
15856 | if (PyErr_Occurred()) SWIG_fail; | |
15857 | } | |
15858 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 ); | |
15859 | return resultobj; | |
15860 | fail: | |
15861 | return NULL; | |
d55e5bfc RD |
15862 | } |
15863 | ||
15864 | ||
1bd55598 RD |
15865 | SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15866 | PyObject *resultobj = 0; | |
15867 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
15868 | int result; | |
15869 | void *argp1 = 0 ; | |
15870 | int res1 = 0 ; | |
15871 | PyObject *swig_obj[1] ; | |
15872 | ||
15873 | if (!args) SWIG_fail; | |
15874 | swig_obj[0] = args; | |
15875 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 ); | |
15876 | if (!SWIG_IsOK(res1)) { | |
15877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'"); | |
15878 | } | |
15879 | arg1 = reinterpret_cast< wxSpinEvent * >(argp1); | |
15880 | { | |
15881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15882 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
15883 | wxPyEndAllowThreads(__tstate); | |
15884 | if (PyErr_Occurred()) SWIG_fail; | |
15885 | } | |
15886 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15887 | return resultobj; | |
15888 | fail: | |
15889 | return NULL; | |
15890 | } | |
15891 | ||
15892 | ||
15893 | SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15894 | PyObject *resultobj = 0; | |
15895 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
15896 | int arg2 ; | |
15897 | void *argp1 = 0 ; | |
15898 | int res1 = 0 ; | |
15899 | int val2 ; | |
15900 | int ecode2 = 0 ; | |
15901 | PyObject * obj0 = 0 ; | |
15902 | PyObject * obj1 = 0 ; | |
15903 | char * kwnames[] = { | |
15904 | (char *) "self",(char *) "pos", NULL | |
15905 | }; | |
15906 | ||
15907 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
15908 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 ); | |
15909 | if (!SWIG_IsOK(res1)) { | |
15910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'"); | |
15911 | } | |
15912 | arg1 = reinterpret_cast< wxSpinEvent * >(argp1); | |
15913 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15914 | if (!SWIG_IsOK(ecode2)) { | |
15915 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'"); | |
15916 | } | |
15917 | arg2 = static_cast< int >(val2); | |
15918 | { | |
15919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15920 | (arg1)->SetPosition(arg2); | |
15921 | wxPyEndAllowThreads(__tstate); | |
15922 | if (PyErr_Occurred()) SWIG_fail; | |
15923 | } | |
15924 | resultobj = SWIG_Py_Void(); | |
15925 | return resultobj; | |
15926 | fail: | |
15927 | return NULL; | |
d55e5bfc RD |
15928 | } |
15929 | ||
15930 | ||
1bd55598 RD |
15931 | SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15932 | PyObject *obj; | |
15933 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15934 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj)); | |
15935 | return SWIG_Py_Void(); | |
d55e5bfc RD |
15936 | } |
15937 | ||
1bd55598 RD |
15938 | SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15939 | return SWIG_Python_InitShadowInstance(args); | |
15940 | } | |
d55e5bfc | 15941 | |
1bd55598 RD |
15942 | SWIGINTERN int RadioBoxNameStr_set(PyObject *) { |
15943 | SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only."); | |
15944 | return 1; | |
d55e5bfc RD |
15945 | } |
15946 | ||
15947 | ||
1bd55598 RD |
15948 | SWIGINTERN PyObject *RadioBoxNameStr_get(void) { |
15949 | PyObject *pyobj = 0; | |
15950 | ||
15951 | { | |
15952 | #if wxUSE_UNICODE | |
15953 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
15954 | #else | |
15955 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
15956 | #endif | |
15957 | } | |
15958 | return pyobj; | |
d55e5bfc RD |
15959 | } |
15960 | ||
15961 | ||
1bd55598 RD |
15962 | SWIGINTERN int RadioButtonNameStr_set(PyObject *) { |
15963 | SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only."); | |
15964 | return 1; | |
15965 | } | |
15966 | ||
15967 | ||
15968 | SWIGINTERN PyObject *RadioButtonNameStr_get(void) { | |
15969 | PyObject *pyobj = 0; | |
15970 | ||
15971 | { | |
15972 | #if wxUSE_UNICODE | |
15973 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
15974 | #else | |
15975 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
15976 | #endif | |
15977 | } | |
15978 | return pyobj; | |
15979 | } | |
15980 | ||
15981 | ||
15982 | SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15983 | PyObject *resultobj = 0; | |
15984 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15985 | int arg2 = (int) -1 ; | |
15986 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15987 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15988 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15989 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15990 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15991 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15992 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
15993 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
15994 | int arg7 = (int) 0 ; | |
15995 | long arg8 = (long) wxRA_HORIZONTAL ; | |
15996 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
15997 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
15998 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
15999 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
16000 | wxRadioBox *result = 0 ; | |
16001 | void *argp1 = 0 ; | |
16002 | int res1 = 0 ; | |
16003 | int val2 ; | |
16004 | int ecode2 = 0 ; | |
16005 | bool temp3 = false ; | |
16006 | wxPoint temp4 ; | |
16007 | wxSize temp5 ; | |
16008 | bool temp6 = false ; | |
16009 | int val7 ; | |
16010 | int ecode7 = 0 ; | |
16011 | long val8 ; | |
16012 | int ecode8 = 0 ; | |
16013 | void *argp9 = 0 ; | |
16014 | int res9 = 0 ; | |
16015 | bool temp10 = false ; | |
16016 | PyObject * obj0 = 0 ; | |
16017 | PyObject * obj1 = 0 ; | |
16018 | PyObject * obj2 = 0 ; | |
16019 | PyObject * obj3 = 0 ; | |
16020 | PyObject * obj4 = 0 ; | |
16021 | PyObject * obj5 = 0 ; | |
16022 | PyObject * obj6 = 0 ; | |
16023 | PyObject * obj7 = 0 ; | |
16024 | PyObject * obj8 = 0 ; | |
16025 | PyObject * obj9 = 0 ; | |
16026 | char * kwnames[] = { | |
16027 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
16028 | }; | |
16029 | ||
16030 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
16031 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16032 | if (!SWIG_IsOK(res1)) { | |
16033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16034 | } | |
16035 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16036 | if (obj1) { | |
16037 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16038 | if (!SWIG_IsOK(ecode2)) { | |
16039 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'"); | |
16040 | } | |
16041 | arg2 = static_cast< int >(val2); | |
16042 | } | |
16043 | if (obj2) { | |
36ed4f51 | 16044 | { |
1bd55598 RD |
16045 | arg3 = wxString_in_helper(obj2); |
16046 | if (arg3 == NULL) SWIG_fail; | |
16047 | temp3 = true; | |
36ed4f51 | 16048 | } |
1bd55598 RD |
16049 | } |
16050 | if (obj3) { | |
36ed4f51 | 16051 | { |
1bd55598 RD |
16052 | arg4 = &temp4; |
16053 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 16054 | } |
1bd55598 RD |
16055 | } |
16056 | if (obj4) { | |
d55e5bfc | 16057 | { |
1bd55598 RD |
16058 | arg5 = &temp5; |
16059 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 16060 | } |
1bd55598 RD |
16061 | } |
16062 | if (obj5) { | |
d55e5bfc | 16063 | { |
1bd55598 RD |
16064 | if (! PySequence_Check(obj5)) { |
16065 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
16066 | SWIG_fail; | |
16067 | } | |
16068 | arg6 = new wxArrayString; | |
16069 | temp6 = true; | |
16070 | int i, len=PySequence_Length(obj5); | |
16071 | for (i=0; i<len; i++) { | |
16072 | PyObject* item = PySequence_GetItem(obj5, i); | |
16073 | wxString* s = wxString_in_helper(item); | |
16074 | if (PyErr_Occurred()) SWIG_fail; | |
16075 | arg6->Add(*s); | |
16076 | delete s; | |
16077 | Py_DECREF(item); | |
16078 | } | |
d55e5bfc | 16079 | } |
1bd55598 RD |
16080 | } |
16081 | if (obj6) { | |
16082 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
16083 | if (!SWIG_IsOK(ecode7)) { | |
16084 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'"); | |
16085 | } | |
16086 | arg7 = static_cast< int >(val7); | |
16087 | } | |
16088 | if (obj7) { | |
16089 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
16090 | if (!SWIG_IsOK(ecode8)) { | |
16091 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'"); | |
16092 | } | |
16093 | arg8 = static_cast< long >(val8); | |
16094 | } | |
16095 | if (obj8) { | |
16096 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
16097 | if (!SWIG_IsOK(res9)) { | |
16098 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 16099 | } |
1bd55598 RD |
16100 | if (!argp9) { |
16101 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 16102 | } |
1bd55598 RD |
16103 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
16104 | } | |
16105 | if (obj9) { | |
d55e5bfc | 16106 | { |
1bd55598 RD |
16107 | arg10 = wxString_in_helper(obj9); |
16108 | if (arg10 == NULL) SWIG_fail; | |
16109 | temp10 = true; | |
d55e5bfc | 16110 | } |
1bd55598 RD |
16111 | } |
16112 | { | |
16113 | if (!wxPyCheckForApp()) SWIG_fail; | |
16114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16115 | result = (wxRadioBox *)new wxRadioBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
16116 | wxPyEndAllowThreads(__tstate); | |
16117 | if (PyErr_Occurred()) SWIG_fail; | |
16118 | } | |
16119 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 ); | |
16120 | { | |
16121 | if (temp3) | |
16122 | delete arg3; | |
16123 | } | |
16124 | { | |
16125 | if (temp6) delete arg6; | |
16126 | } | |
16127 | { | |
16128 | if (temp10) | |
16129 | delete arg10; | |
16130 | } | |
16131 | return resultobj; | |
16132 | fail: | |
16133 | { | |
16134 | if (temp3) | |
16135 | delete arg3; | |
16136 | } | |
16137 | { | |
16138 | if (temp6) delete arg6; | |
16139 | } | |
16140 | { | |
16141 | if (temp10) | |
16142 | delete arg10; | |
16143 | } | |
16144 | return NULL; | |
d55e5bfc RD |
16145 | } |
16146 | ||
16147 | ||
1bd55598 RD |
16148 | SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16149 | PyObject *resultobj = 0; | |
16150 | wxRadioBox *result = 0 ; | |
16151 | ||
16152 | if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail; | |
16153 | { | |
16154 | if (!wxPyCheckForApp()) SWIG_fail; | |
16155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16156 | result = (wxRadioBox *)new wxRadioBox(); | |
16157 | wxPyEndAllowThreads(__tstate); | |
16158 | if (PyErr_Occurred()) SWIG_fail; | |
16159 | } | |
16160 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 ); | |
16161 | return resultobj; | |
16162 | fail: | |
16163 | return NULL; | |
16164 | } | |
16165 | ||
16166 | ||
16167 | SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16168 | PyObject *resultobj = 0; | |
16169 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16170 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16171 | int arg3 = (int) -1 ; | |
16172 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16173 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16174 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
16175 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
16176 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
16177 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
16178 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
16179 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
16180 | int arg8 = (int) 0 ; | |
16181 | long arg9 = (long) wxRA_HORIZONTAL ; | |
16182 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
16183 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
16184 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
16185 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
16186 | bool result; | |
16187 | void *argp1 = 0 ; | |
16188 | int res1 = 0 ; | |
16189 | void *argp2 = 0 ; | |
16190 | int res2 = 0 ; | |
16191 | int val3 ; | |
16192 | int ecode3 = 0 ; | |
16193 | bool temp4 = false ; | |
16194 | wxPoint temp5 ; | |
16195 | wxSize temp6 ; | |
16196 | bool temp7 = false ; | |
16197 | int val8 ; | |
16198 | int ecode8 = 0 ; | |
16199 | long val9 ; | |
16200 | int ecode9 = 0 ; | |
16201 | void *argp10 = 0 ; | |
16202 | int res10 = 0 ; | |
16203 | bool temp11 = false ; | |
16204 | PyObject * obj0 = 0 ; | |
16205 | PyObject * obj1 = 0 ; | |
16206 | PyObject * obj2 = 0 ; | |
16207 | PyObject * obj3 = 0 ; | |
16208 | PyObject * obj4 = 0 ; | |
16209 | PyObject * obj5 = 0 ; | |
16210 | PyObject * obj6 = 0 ; | |
16211 | PyObject * obj7 = 0 ; | |
16212 | PyObject * obj8 = 0 ; | |
16213 | PyObject * obj9 = 0 ; | |
16214 | PyObject * obj10 = 0 ; | |
16215 | char * kwnames[] = { | |
16216 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
16217 | }; | |
16218 | ||
16219 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
16220 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16221 | if (!SWIG_IsOK(res1)) { | |
16222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16223 | } | |
16224 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16225 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16226 | if (!SWIG_IsOK(res2)) { | |
16227 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
16228 | } | |
16229 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
16230 | if (obj2) { | |
16231 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16232 | if (!SWIG_IsOK(ecode3)) { | |
16233 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
16234 | } | |
16235 | arg3 = static_cast< int >(val3); | |
16236 | } | |
16237 | if (obj3) { | |
36ed4f51 | 16238 | { |
1bd55598 RD |
16239 | arg4 = wxString_in_helper(obj3); |
16240 | if (arg4 == NULL) SWIG_fail; | |
16241 | temp4 = true; | |
36ed4f51 | 16242 | } |
1bd55598 RD |
16243 | } |
16244 | if (obj4) { | |
36ed4f51 | 16245 | { |
1bd55598 RD |
16246 | arg5 = &temp5; |
16247 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 16248 | } |
1bd55598 RD |
16249 | } |
16250 | if (obj5) { | |
d55e5bfc | 16251 | { |
1bd55598 RD |
16252 | arg6 = &temp6; |
16253 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 16254 | } |
1bd55598 RD |
16255 | } |
16256 | if (obj6) { | |
36ed4f51 | 16257 | { |
1bd55598 RD |
16258 | if (! PySequence_Check(obj6)) { |
16259 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
16260 | SWIG_fail; | |
16261 | } | |
16262 | arg7 = new wxArrayString; | |
16263 | temp7 = true; | |
16264 | int i, len=PySequence_Length(obj6); | |
16265 | for (i=0; i<len; i++) { | |
16266 | PyObject* item = PySequence_GetItem(obj6, i); | |
16267 | wxString* s = wxString_in_helper(item); | |
16268 | if (PyErr_Occurred()) SWIG_fail; | |
16269 | arg7->Add(*s); | |
16270 | delete s; | |
16271 | Py_DECREF(item); | |
16272 | } | |
36ed4f51 | 16273 | } |
1bd55598 RD |
16274 | } |
16275 | if (obj7) { | |
16276 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
16277 | if (!SWIG_IsOK(ecode8)) { | |
16278 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'"); | |
16279 | } | |
16280 | arg8 = static_cast< int >(val8); | |
16281 | } | |
16282 | if (obj8) { | |
16283 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
16284 | if (!SWIG_IsOK(ecode9)) { | |
16285 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'"); | |
16286 | } | |
16287 | arg9 = static_cast< long >(val9); | |
16288 | } | |
16289 | if (obj9) { | |
16290 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
16291 | if (!SWIG_IsOK(res10)) { | |
16292 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 16293 | } |
1bd55598 RD |
16294 | if (!argp10) { |
16295 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 16296 | } |
1bd55598 RD |
16297 | arg10 = reinterpret_cast< wxValidator * >(argp10); |
16298 | } | |
16299 | if (obj10) { | |
d55e5bfc | 16300 | { |
1bd55598 RD |
16301 | arg11 = wxString_in_helper(obj10); |
16302 | if (arg11 == NULL) SWIG_fail; | |
16303 | temp11 = true; | |
d55e5bfc | 16304 | } |
1bd55598 RD |
16305 | } |
16306 | { | |
16307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16308 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
16309 | wxPyEndAllowThreads(__tstate); | |
16310 | if (PyErr_Occurred()) SWIG_fail; | |
16311 | } | |
16312 | { | |
16313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16314 | } | |
16315 | { | |
16316 | if (temp4) | |
16317 | delete arg4; | |
16318 | } | |
16319 | { | |
16320 | if (temp7) delete arg7; | |
16321 | } | |
16322 | { | |
16323 | if (temp11) | |
16324 | delete arg11; | |
16325 | } | |
16326 | return resultobj; | |
16327 | fail: | |
16328 | { | |
16329 | if (temp4) | |
16330 | delete arg4; | |
16331 | } | |
16332 | { | |
16333 | if (temp7) delete arg7; | |
16334 | } | |
16335 | { | |
16336 | if (temp11) | |
16337 | delete arg11; | |
16338 | } | |
16339 | return NULL; | |
16340 | } | |
16341 | ||
16342 | ||
16343 | SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16344 | PyObject *resultobj = 0; | |
16345 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16346 | int arg2 ; | |
16347 | void *argp1 = 0 ; | |
16348 | int res1 = 0 ; | |
16349 | int val2 ; | |
16350 | int ecode2 = 0 ; | |
16351 | PyObject * obj0 = 0 ; | |
16352 | PyObject * obj1 = 0 ; | |
16353 | char * kwnames[] = { | |
16354 | (char *) "self",(char *) "n", NULL | |
16355 | }; | |
16356 | ||
16357 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
16358 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16359 | if (!SWIG_IsOK(res1)) { | |
16360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16361 | } | |
16362 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16363 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16364 | if (!SWIG_IsOK(ecode2)) { | |
16365 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
16366 | } | |
16367 | arg2 = static_cast< int >(val2); | |
16368 | { | |
16369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16370 | (arg1)->SetSelection(arg2); | |
16371 | wxPyEndAllowThreads(__tstate); | |
16372 | if (PyErr_Occurred()) SWIG_fail; | |
16373 | } | |
16374 | resultobj = SWIG_Py_Void(); | |
16375 | return resultobj; | |
16376 | fail: | |
16377 | return NULL; | |
d55e5bfc RD |
16378 | } |
16379 | ||
16380 | ||
1bd55598 RD |
16381 | SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16382 | PyObject *resultobj = 0; | |
16383 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16384 | int result; | |
16385 | void *argp1 = 0 ; | |
16386 | int res1 = 0 ; | |
16387 | PyObject *swig_obj[1] ; | |
16388 | ||
16389 | if (!args) SWIG_fail; | |
16390 | swig_obj[0] = args; | |
16391 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16392 | if (!SWIG_IsOK(res1)) { | |
16393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16394 | } | |
16395 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16396 | { | |
16397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16398 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
16399 | wxPyEndAllowThreads(__tstate); | |
16400 | if (PyErr_Occurred()) SWIG_fail; | |
16401 | } | |
16402 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16403 | return resultobj; | |
16404 | fail: | |
16405 | return NULL; | |
d55e5bfc RD |
16406 | } |
16407 | ||
16408 | ||
1bd55598 RD |
16409 | SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16410 | PyObject *resultobj = 0; | |
16411 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16412 | wxString result; | |
16413 | void *argp1 = 0 ; | |
16414 | int res1 = 0 ; | |
16415 | PyObject *swig_obj[1] ; | |
16416 | ||
16417 | if (!args) SWIG_fail; | |
16418 | swig_obj[0] = args; | |
16419 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16420 | if (!SWIG_IsOK(res1)) { | |
16421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16422 | } | |
16423 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16424 | { | |
16425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16426 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
16427 | wxPyEndAllowThreads(__tstate); | |
16428 | if (PyErr_Occurred()) SWIG_fail; | |
16429 | } | |
16430 | { | |
16431 | #if wxUSE_UNICODE | |
16432 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16433 | #else | |
16434 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16435 | #endif | |
16436 | } | |
16437 | return resultobj; | |
16438 | fail: | |
16439 | return NULL; | |
16440 | } | |
16441 | ||
16442 | ||
16443 | SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16444 | PyObject *resultobj = 0; | |
16445 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16446 | wxString *arg2 = 0 ; | |
16447 | bool result; | |
16448 | void *argp1 = 0 ; | |
16449 | int res1 = 0 ; | |
16450 | bool temp2 = false ; | |
16451 | PyObject * obj0 = 0 ; | |
16452 | PyObject * obj1 = 0 ; | |
16453 | char * kwnames[] = { | |
16454 | (char *) "self",(char *) "s", NULL | |
16455 | }; | |
16456 | ||
16457 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
16458 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16459 | if (!SWIG_IsOK(res1)) { | |
16460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16461 | } | |
16462 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16463 | { | |
16464 | arg2 = wxString_in_helper(obj1); | |
16465 | if (arg2 == NULL) SWIG_fail; | |
16466 | temp2 = true; | |
16467 | } | |
16468 | { | |
16469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16470 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
16471 | wxPyEndAllowThreads(__tstate); | |
16472 | if (PyErr_Occurred()) SWIG_fail; | |
16473 | } | |
16474 | { | |
16475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16476 | } | |
16477 | { | |
16478 | if (temp2) | |
16479 | delete arg2; | |
16480 | } | |
16481 | return resultobj; | |
16482 | fail: | |
16483 | { | |
16484 | if (temp2) | |
16485 | delete arg2; | |
16486 | } | |
16487 | return NULL; | |
4896ac9e RD |
16488 | } |
16489 | ||
16490 | ||
1bd55598 RD |
16491 | SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16492 | PyObject *resultobj = 0; | |
16493 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
1c71765a | 16494 | size_t result; |
1bd55598 RD |
16495 | void *argp1 = 0 ; |
16496 | int res1 = 0 ; | |
16497 | PyObject *swig_obj[1] ; | |
16498 | ||
16499 | if (!args) SWIG_fail; | |
16500 | swig_obj[0] = args; | |
16501 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16502 | if (!SWIG_IsOK(res1)) { | |
16503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16504 | } | |
16505 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16506 | { | |
16507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1c71765a | 16508 | result = (size_t)((wxRadioBox const *)arg1)->GetCount(); |
1bd55598 RD |
16509 | wxPyEndAllowThreads(__tstate); |
16510 | if (PyErr_Occurred()) SWIG_fail; | |
16511 | } | |
1c71765a | 16512 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); |
1bd55598 RD |
16513 | return resultobj; |
16514 | fail: | |
16515 | return NULL; | |
16516 | } | |
16517 | ||
16518 | ||
16519 | SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16520 | PyObject *resultobj = 0; | |
16521 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16522 | wxString *arg2 = 0 ; | |
16523 | int result; | |
16524 | void *argp1 = 0 ; | |
16525 | int res1 = 0 ; | |
16526 | bool temp2 = false ; | |
16527 | PyObject * obj0 = 0 ; | |
16528 | PyObject * obj1 = 0 ; | |
16529 | char * kwnames[] = { | |
16530 | (char *) "self",(char *) "s", NULL | |
16531 | }; | |
16532 | ||
16533 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
16534 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16535 | if (!SWIG_IsOK(res1)) { | |
16536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16537 | } | |
16538 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16539 | { | |
16540 | arg2 = wxString_in_helper(obj1); | |
16541 | if (arg2 == NULL) SWIG_fail; | |
16542 | temp2 = true; | |
16543 | } | |
16544 | { | |
16545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16546 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
16547 | wxPyEndAllowThreads(__tstate); | |
16548 | if (PyErr_Occurred()) SWIG_fail; | |
16549 | } | |
16550 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16551 | { | |
16552 | if (temp2) | |
16553 | delete arg2; | |
16554 | } | |
16555 | return resultobj; | |
16556 | fail: | |
16557 | { | |
16558 | if (temp2) | |
16559 | delete arg2; | |
16560 | } | |
16561 | return NULL; | |
16562 | } | |
16563 | ||
16564 | ||
16565 | SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16566 | PyObject *resultobj = 0; | |
16567 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16568 | int arg2 ; | |
16569 | wxString result; | |
16570 | void *argp1 = 0 ; | |
16571 | int res1 = 0 ; | |
16572 | int val2 ; | |
16573 | int ecode2 = 0 ; | |
16574 | PyObject * obj0 = 0 ; | |
16575 | PyObject * obj1 = 0 ; | |
16576 | char * kwnames[] = { | |
16577 | (char *) "self",(char *) "n", NULL | |
16578 | }; | |
16579 | ||
16580 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail; | |
16581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16582 | if (!SWIG_IsOK(res1)) { | |
16583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16584 | } | |
16585 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16586 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16587 | if (!SWIG_IsOK(ecode2)) { | |
16588 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'"); | |
16589 | } | |
16590 | arg2 = static_cast< int >(val2); | |
16591 | { | |
16592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16593 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
16594 | wxPyEndAllowThreads(__tstate); | |
16595 | if (PyErr_Occurred()) SWIG_fail; | |
16596 | } | |
16597 | { | |
16598 | #if wxUSE_UNICODE | |
16599 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16600 | #else | |
16601 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16602 | #endif | |
16603 | } | |
16604 | return resultobj; | |
16605 | fail: | |
16606 | return NULL; | |
16607 | } | |
16608 | ||
16609 | ||
16610 | SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16611 | PyObject *resultobj = 0; | |
16612 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16613 | int arg2 ; | |
16614 | wxString *arg3 = 0 ; | |
16615 | void *argp1 = 0 ; | |
16616 | int res1 = 0 ; | |
16617 | int val2 ; | |
16618 | int ecode2 = 0 ; | |
16619 | bool temp3 = false ; | |
16620 | PyObject * obj0 = 0 ; | |
16621 | PyObject * obj1 = 0 ; | |
16622 | PyObject * obj2 = 0 ; | |
16623 | char * kwnames[] = { | |
16624 | (char *) "self",(char *) "n",(char *) "label", NULL | |
16625 | }; | |
16626 | ||
16627 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16628 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16629 | if (!SWIG_IsOK(res1)) { | |
16630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16631 | } | |
16632 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16633 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16634 | if (!SWIG_IsOK(ecode2)) { | |
16635 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'"); | |
16636 | } | |
16637 | arg2 = static_cast< int >(val2); | |
16638 | { | |
16639 | arg3 = wxString_in_helper(obj2); | |
16640 | if (arg3 == NULL) SWIG_fail; | |
16641 | temp3 = true; | |
16642 | } | |
16643 | { | |
16644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16645 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
16646 | wxPyEndAllowThreads(__tstate); | |
16647 | if (PyErr_Occurred()) SWIG_fail; | |
16648 | } | |
16649 | resultobj = SWIG_Py_Void(); | |
16650 | { | |
16651 | if (temp3) | |
16652 | delete arg3; | |
16653 | } | |
16654 | return resultobj; | |
16655 | fail: | |
16656 | { | |
16657 | if (temp3) | |
16658 | delete arg3; | |
16659 | } | |
16660 | return NULL; | |
16661 | } | |
16662 | ||
16663 | ||
16664 | SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16665 | PyObject *resultobj = 0; | |
16666 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16667 | unsigned int arg2 ; |
1bd55598 RD |
16668 | bool arg3 = (bool) true ; |
16669 | void *argp1 = 0 ; | |
16670 | int res1 = 0 ; | |
50f151d7 | 16671 | unsigned int val2 ; |
1bd55598 RD |
16672 | int ecode2 = 0 ; |
16673 | bool val3 ; | |
16674 | int ecode3 = 0 ; | |
16675 | PyObject * obj0 = 0 ; | |
16676 | PyObject * obj1 = 0 ; | |
16677 | PyObject * obj2 = 0 ; | |
16678 | char * kwnames[] = { | |
16679 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
16680 | }; | |
16681 | ||
16682 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16683 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16684 | if (!SWIG_IsOK(res1)) { | |
16685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16686 | } | |
16687 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
50f151d7 | 16688 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
1bd55598 | 16689 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 16690 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'"); |
1bd55598 | 16691 | } |
50f151d7 | 16692 | arg2 = static_cast< unsigned int >(val2); |
1bd55598 RD |
16693 | if (obj2) { |
16694 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
16695 | if (!SWIG_IsOK(ecode3)) { | |
16696 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'"); | |
16697 | } | |
16698 | arg3 = static_cast< bool >(val3); | |
16699 | } | |
16700 | { | |
16701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16702 | (arg1)->Enable(arg2,arg3); | |
16703 | wxPyEndAllowThreads(__tstate); | |
16704 | if (PyErr_Occurred()) SWIG_fail; | |
16705 | } | |
16706 | resultobj = SWIG_Py_Void(); | |
16707 | return resultobj; | |
16708 | fail: | |
16709 | return NULL; | |
16710 | } | |
16711 | ||
16712 | ||
16713 | SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16714 | PyObject *resultobj = 0; | |
16715 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16716 | unsigned int arg2 ; |
1bd55598 RD |
16717 | bool arg3 = (bool) true ; |
16718 | void *argp1 = 0 ; | |
16719 | int res1 = 0 ; | |
50f151d7 | 16720 | unsigned int val2 ; |
1bd55598 RD |
16721 | int ecode2 = 0 ; |
16722 | bool val3 ; | |
16723 | int ecode3 = 0 ; | |
16724 | PyObject * obj0 = 0 ; | |
16725 | PyObject * obj1 = 0 ; | |
16726 | PyObject * obj2 = 0 ; | |
16727 | char * kwnames[] = { | |
16728 | (char *) "self",(char *) "n",(char *) "show", NULL | |
16729 | }; | |
16730 | ||
16731 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16732 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16733 | if (!SWIG_IsOK(res1)) { | |
16734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16735 | } | |
16736 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
50f151d7 | 16737 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
1bd55598 | 16738 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 16739 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'"); |
1bd55598 | 16740 | } |
50f151d7 | 16741 | arg2 = static_cast< unsigned int >(val2); |
1bd55598 RD |
16742 | if (obj2) { |
16743 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
16744 | if (!SWIG_IsOK(ecode3)) { | |
16745 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'"); | |
16746 | } | |
16747 | arg3 = static_cast< bool >(val3); | |
16748 | } | |
16749 | { | |
16750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16751 | (arg1)->Show(arg2,arg3); | |
16752 | wxPyEndAllowThreads(__tstate); | |
16753 | if (PyErr_Occurred()) SWIG_fail; | |
16754 | } | |
16755 | resultobj = SWIG_Py_Void(); | |
16756 | return resultobj; | |
16757 | fail: | |
16758 | return NULL; | |
d55e5bfc RD |
16759 | } |
16760 | ||
16761 | ||
50f151d7 RD |
16762 | SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16763 | PyObject *resultobj = 0; | |
16764 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16765 | unsigned int arg2 ; | |
16766 | bool result; | |
16767 | void *argp1 = 0 ; | |
16768 | int res1 = 0 ; | |
16769 | unsigned int val2 ; | |
16770 | int ecode2 = 0 ; | |
16771 | PyObject * obj0 = 0 ; | |
16772 | PyObject * obj1 = 0 ; | |
16773 | char * kwnames[] = { | |
16774 | (char *) "self",(char *) "n", NULL | |
16775 | }; | |
16776 | ||
16777 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
16778 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16779 | if (!SWIG_IsOK(res1)) { | |
16780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16781 | } | |
16782 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16783 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
16784 | if (!SWIG_IsOK(ecode2)) { | |
16785 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'"); | |
16786 | } | |
16787 | arg2 = static_cast< unsigned int >(val2); | |
16788 | { | |
16789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16790 | result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2); | |
16791 | wxPyEndAllowThreads(__tstate); | |
16792 | if (PyErr_Occurred()) SWIG_fail; | |
16793 | } | |
16794 | { | |
16795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16796 | } | |
16797 | return resultobj; | |
16798 | fail: | |
16799 | return NULL; | |
16800 | } | |
16801 | ||
16802 | ||
16803 | SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16804 | PyObject *resultobj = 0; | |
16805 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16806 | unsigned int arg2 ; | |
16807 | bool result; | |
16808 | void *argp1 = 0 ; | |
16809 | int res1 = 0 ; | |
16810 | unsigned int val2 ; | |
16811 | int ecode2 = 0 ; | |
16812 | PyObject * obj0 = 0 ; | |
16813 | PyObject * obj1 = 0 ; | |
16814 | char * kwnames[] = { | |
16815 | (char *) "self",(char *) "n", NULL | |
16816 | }; | |
16817 | ||
16818 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail; | |
16819 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16820 | if (!SWIG_IsOK(res1)) { | |
16821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16822 | } | |
16823 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16824 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
16825 | if (!SWIG_IsOK(ecode2)) { | |
16826 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'"); | |
16827 | } | |
16828 | arg2 = static_cast< unsigned int >(val2); | |
16829 | { | |
16830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16831 | result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2); | |
16832 | wxPyEndAllowThreads(__tstate); | |
16833 | if (PyErr_Occurred()) SWIG_fail; | |
16834 | } | |
16835 | { | |
16836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16837 | } | |
16838 | return resultobj; | |
16839 | fail: | |
16840 | return NULL; | |
16841 | } | |
16842 | ||
16843 | ||
1bd55598 RD |
16844 | SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16845 | PyObject *resultobj = 0; | |
16846 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16847 | unsigned int result; |
1bd55598 RD |
16848 | void *argp1 = 0 ; |
16849 | int res1 = 0 ; | |
16850 | PyObject *swig_obj[1] ; | |
16851 | ||
16852 | if (!args) SWIG_fail; | |
16853 | swig_obj[0] = args; | |
16854 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16855 | if (!SWIG_IsOK(res1)) { | |
16856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16857 | } | |
16858 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16859 | { | |
16860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50f151d7 | 16861 | result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount(); |
1bd55598 RD |
16862 | wxPyEndAllowThreads(__tstate); |
16863 | if (PyErr_Occurred()) SWIG_fail; | |
16864 | } | |
50f151d7 | 16865 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
1bd55598 RD |
16866 | return resultobj; |
16867 | fail: | |
16868 | return NULL; | |
d55e5bfc RD |
16869 | } |
16870 | ||
16871 | ||
1bd55598 RD |
16872 | SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16873 | PyObject *resultobj = 0; | |
16874 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16875 | unsigned int result; |
1bd55598 RD |
16876 | void *argp1 = 0 ; |
16877 | int res1 = 0 ; | |
16878 | PyObject *swig_obj[1] ; | |
16879 | ||
16880 | if (!args) SWIG_fail; | |
16881 | swig_obj[0] = args; | |
16882 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16883 | if (!SWIG_IsOK(res1)) { | |
16884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16885 | } | |
16886 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16887 | { | |
16888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50f151d7 | 16889 | result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount(); |
1bd55598 RD |
16890 | wxPyEndAllowThreads(__tstate); |
16891 | if (PyErr_Occurred()) SWIG_fail; | |
16892 | } | |
50f151d7 | 16893 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
1bd55598 RD |
16894 | return resultobj; |
16895 | fail: | |
16896 | return NULL; | |
16897 | } | |
16898 | ||
16899 | ||
16900 | SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16901 | PyObject *resultobj = 0; | |
16902 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16903 | int arg2 ; | |
16904 | wxDirection arg3 ; | |
16905 | long arg4 ; | |
16906 | int result; | |
16907 | void *argp1 = 0 ; | |
16908 | int res1 = 0 ; | |
16909 | int val2 ; | |
16910 | int ecode2 = 0 ; | |
16911 | int val3 ; | |
16912 | int ecode3 = 0 ; | |
16913 | long val4 ; | |
16914 | int ecode4 = 0 ; | |
16915 | PyObject * obj0 = 0 ; | |
16916 | PyObject * obj1 = 0 ; | |
16917 | PyObject * obj2 = 0 ; | |
16918 | PyObject * obj3 = 0 ; | |
16919 | char * kwnames[] = { | |
16920 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
16921 | }; | |
16922 | ||
16923 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16924 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16925 | if (!SWIG_IsOK(res1)) { | |
16926 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16927 | } | |
16928 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16929 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16930 | if (!SWIG_IsOK(ecode2)) { | |
16931 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'"); | |
16932 | } | |
16933 | arg2 = static_cast< int >(val2); | |
16934 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16935 | if (!SWIG_IsOK(ecode3)) { | |
16936 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'"); | |
16937 | } | |
16938 | arg3 = static_cast< wxDirection >(val3); | |
16939 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
16940 | if (!SWIG_IsOK(ecode4)) { | |
16941 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'"); | |
16942 | } | |
16943 | arg4 = static_cast< long >(val4); | |
16944 | { | |
16945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16946 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
16947 | wxPyEndAllowThreads(__tstate); | |
16948 | if (PyErr_Occurred()) SWIG_fail; | |
16949 | } | |
16950 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16951 | return resultobj; | |
16952 | fail: | |
16953 | return NULL; | |
16954 | } | |
16955 | ||
16956 | ||
2131d850 RD |
16957 | SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16958 | PyObject *resultobj = 0; | |
16959 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16960 | unsigned int arg2 ; | |
16961 | wxString *arg3 = 0 ; | |
16962 | void *argp1 = 0 ; | |
16963 | int res1 = 0 ; | |
16964 | unsigned int val2 ; | |
16965 | int ecode2 = 0 ; | |
16966 | bool temp3 = false ; | |
16967 | PyObject * obj0 = 0 ; | |
16968 | PyObject * obj1 = 0 ; | |
16969 | PyObject * obj2 = 0 ; | |
16970 | char * kwnames[] = { | |
16971 | (char *) "self",(char *) "item",(char *) "text", NULL | |
16972 | }; | |
16973 | ||
16974 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16975 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16976 | if (!SWIG_IsOK(res1)) { | |
16977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16978 | } | |
16979 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16980 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
16981 | if (!SWIG_IsOK(ecode2)) { | |
16982 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'"); | |
16983 | } | |
16984 | arg2 = static_cast< unsigned int >(val2); | |
16985 | { | |
16986 | arg3 = wxString_in_helper(obj2); | |
16987 | if (arg3 == NULL) SWIG_fail; | |
16988 | temp3 = true; | |
16989 | } | |
16990 | { | |
16991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16992 | (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3); | |
16993 | wxPyEndAllowThreads(__tstate); | |
16994 | if (PyErr_Occurred()) SWIG_fail; | |
16995 | } | |
16996 | resultobj = SWIG_Py_Void(); | |
16997 | { | |
16998 | if (temp3) | |
16999 | delete arg3; | |
17000 | } | |
17001 | return resultobj; | |
17002 | fail: | |
17003 | { | |
17004 | if (temp3) | |
17005 | delete arg3; | |
17006 | } | |
17007 | return NULL; | |
17008 | } | |
17009 | ||
17010 | ||
17011 | SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17012 | PyObject *resultobj = 0; | |
17013 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17014 | unsigned int arg2 ; | |
17015 | wxToolTip *result = 0 ; | |
17016 | void *argp1 = 0 ; | |
17017 | int res1 = 0 ; | |
17018 | unsigned int val2 ; | |
17019 | int ecode2 = 0 ; | |
17020 | PyObject * obj0 = 0 ; | |
17021 | PyObject * obj1 = 0 ; | |
17022 | char * kwnames[] = { | |
17023 | (char *) "self",(char *) "item", NULL | |
17024 | }; | |
17025 | ||
17026 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail; | |
17027 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17028 | if (!SWIG_IsOK(res1)) { | |
17029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
17030 | } | |
17031 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17032 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
17033 | if (!SWIG_IsOK(ecode2)) { | |
17034 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'"); | |
17035 | } | |
17036 | arg2 = static_cast< unsigned int >(val2); | |
17037 | { | |
17038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17039 | result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2); | |
17040 | wxPyEndAllowThreads(__tstate); | |
17041 | if (PyErr_Occurred()) SWIG_fail; | |
17042 | } | |
17043 | { | |
17044 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
17045 | } | |
17046 | return resultobj; | |
17047 | fail: | |
17048 | return NULL; | |
17049 | } | |
17050 | ||
17051 | ||
b850e7f3 RD |
17052 | SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17053 | PyObject *resultobj = 0; | |
17054 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17055 | unsigned int arg2 ; | |
17056 | wxString *arg3 = 0 ; | |
17057 | void *argp1 = 0 ; | |
17058 | int res1 = 0 ; | |
17059 | unsigned int val2 ; | |
17060 | int ecode2 = 0 ; | |
17061 | bool temp3 = false ; | |
17062 | PyObject * obj0 = 0 ; | |
17063 | PyObject * obj1 = 0 ; | |
17064 | PyObject * obj2 = 0 ; | |
17065 | char * kwnames[] = { | |
17066 | (char *) "self",(char *) "n",(char *) "helpText", NULL | |
17067 | }; | |
17068 | ||
17069 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17070 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17071 | if (!SWIG_IsOK(res1)) { | |
17072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
17073 | } | |
17074 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17075 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
17076 | if (!SWIG_IsOK(ecode2)) { | |
17077 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'"); | |
17078 | } | |
17079 | arg2 = static_cast< unsigned int >(val2); | |
17080 | { | |
17081 | arg3 = wxString_in_helper(obj2); | |
17082 | if (arg3 == NULL) SWIG_fail; | |
17083 | temp3 = true; | |
17084 | } | |
17085 | { | |
17086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17087 | (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3); | |
17088 | wxPyEndAllowThreads(__tstate); | |
17089 | if (PyErr_Occurred()) SWIG_fail; | |
17090 | } | |
17091 | resultobj = SWIG_Py_Void(); | |
17092 | { | |
17093 | if (temp3) | |
17094 | delete arg3; | |
17095 | } | |
17096 | return resultobj; | |
17097 | fail: | |
17098 | { | |
17099 | if (temp3) | |
17100 | delete arg3; | |
17101 | } | |
17102 | return NULL; | |
17103 | } | |
17104 | ||
17105 | ||
17106 | SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17107 | PyObject *resultobj = 0; | |
17108 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17109 | unsigned int arg2 ; | |
17110 | wxString result; | |
17111 | void *argp1 = 0 ; | |
17112 | int res1 = 0 ; | |
17113 | unsigned int val2 ; | |
17114 | int ecode2 = 0 ; | |
17115 | PyObject * obj0 = 0 ; | |
17116 | PyObject * obj1 = 0 ; | |
17117 | char * kwnames[] = { | |
17118 | (char *) "self",(char *) "n", NULL | |
17119 | }; | |
17120 | ||
17121 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail; | |
17122 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17123 | if (!SWIG_IsOK(res1)) { | |
17124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
17125 | } | |
17126 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17127 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
17128 | if (!SWIG_IsOK(ecode2)) { | |
17129 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'"); | |
17130 | } | |
17131 | arg2 = static_cast< unsigned int >(val2); | |
17132 | { | |
17133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17134 | result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2); | |
17135 | wxPyEndAllowThreads(__tstate); | |
17136 | if (PyErr_Occurred()) SWIG_fail; | |
17137 | } | |
17138 | { | |
17139 | #if wxUSE_UNICODE | |
17140 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17141 | #else | |
17142 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17143 | #endif | |
17144 | } | |
17145 | return resultobj; | |
17146 | fail: | |
17147 | return NULL; | |
17148 | } | |
17149 | ||
17150 | ||
1bd55598 RD |
17151 | SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17152 | PyObject *resultobj = 0; | |
17153 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
17154 | SwigValueWrapper<wxVisualAttributes > result; | |
17155 | int val1 ; | |
17156 | int ecode1 = 0 ; | |
17157 | PyObject * obj0 = 0 ; | |
17158 | char * kwnames[] = { | |
17159 | (char *) "variant", NULL | |
17160 | }; | |
17161 | ||
17162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
17163 | if (obj0) { | |
17164 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17165 | if (!SWIG_IsOK(ecode1)) { | |
17166 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
17167 | } | |
17168 | arg1 = static_cast< wxWindowVariant >(val1); | |
17169 | } | |
17170 | { | |
17171 | if (!wxPyCheckForApp()) SWIG_fail; | |
17172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17173 | result = wxRadioBox::GetClassDefaultAttributes(arg1); | |
17174 | wxPyEndAllowThreads(__tstate); | |
17175 | if (PyErr_Occurred()) SWIG_fail; | |
17176 | } | |
17177 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
17178 | return resultobj; | |
17179 | fail: | |
17180 | return NULL; | |
17181 | } | |
17182 | ||
17183 | ||
17184 | SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17185 | PyObject *obj; | |
17186 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17187 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj)); | |
17188 | return SWIG_Py_Void(); | |
17189 | } | |
17190 | ||
17191 | SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17192 | return SWIG_Python_InitShadowInstance(args); | |
17193 | } | |
17194 | ||
17195 | SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17196 | PyObject *resultobj = 0; | |
17197 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17198 | int arg2 = (int) -1 ; | |
17199 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17200 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17201 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
17202 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17203 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17204 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17205 | long arg6 = (long) 0 ; | |
17206 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
17207 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
17208 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
17209 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17210 | wxRadioButton *result = 0 ; | |
17211 | void *argp1 = 0 ; | |
17212 | int res1 = 0 ; | |
17213 | int val2 ; | |
17214 | int ecode2 = 0 ; | |
17215 | bool temp3 = false ; | |
17216 | wxPoint temp4 ; | |
17217 | wxSize temp5 ; | |
17218 | long val6 ; | |
17219 | int ecode6 = 0 ; | |
17220 | void *argp7 = 0 ; | |
17221 | int res7 = 0 ; | |
17222 | bool temp8 = false ; | |
17223 | PyObject * obj0 = 0 ; | |
17224 | PyObject * obj1 = 0 ; | |
17225 | PyObject * obj2 = 0 ; | |
17226 | PyObject * obj3 = 0 ; | |
17227 | PyObject * obj4 = 0 ; | |
17228 | PyObject * obj5 = 0 ; | |
17229 | PyObject * obj6 = 0 ; | |
17230 | PyObject * obj7 = 0 ; | |
17231 | char * kwnames[] = { | |
17232 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17233 | }; | |
17234 | ||
17235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
17236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17237 | if (!SWIG_IsOK(res1)) { | |
17238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17239 | } | |
17240 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17241 | if (obj1) { | |
17242 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17243 | if (!SWIG_IsOK(ecode2)) { | |
17244 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'"); | |
17245 | } | |
17246 | arg2 = static_cast< int >(val2); | |
17247 | } | |
17248 | if (obj2) { | |
d55e5bfc | 17249 | { |
1bd55598 RD |
17250 | arg3 = wxString_in_helper(obj2); |
17251 | if (arg3 == NULL) SWIG_fail; | |
17252 | temp3 = true; | |
d55e5bfc | 17253 | } |
1bd55598 RD |
17254 | } |
17255 | if (obj3) { | |
d55e5bfc | 17256 | { |
1bd55598 RD |
17257 | arg4 = &temp4; |
17258 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 17259 | } |
1bd55598 RD |
17260 | } |
17261 | if (obj4) { | |
d55e5bfc | 17262 | { |
1bd55598 RD |
17263 | arg5 = &temp5; |
17264 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 17265 | } |
1bd55598 RD |
17266 | } |
17267 | if (obj5) { | |
17268 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
17269 | if (!SWIG_IsOK(ecode6)) { | |
17270 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'"); | |
17271 | } | |
17272 | arg6 = static_cast< long >(val6); | |
17273 | } | |
17274 | if (obj6) { | |
17275 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
17276 | if (!SWIG_IsOK(res7)) { | |
17277 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 17278 | } |
1bd55598 RD |
17279 | if (!argp7) { |
17280 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
17281 | } | |
17282 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
17283 | } | |
17284 | if (obj7) { | |
d55e5bfc | 17285 | { |
1bd55598 RD |
17286 | arg8 = wxString_in_helper(obj7); |
17287 | if (arg8 == NULL) SWIG_fail; | |
17288 | temp8 = true; | |
d55e5bfc | 17289 | } |
1bd55598 RD |
17290 | } |
17291 | { | |
17292 | if (!wxPyCheckForApp()) SWIG_fail; | |
17293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17294 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
17295 | wxPyEndAllowThreads(__tstate); | |
17296 | if (PyErr_Occurred()) SWIG_fail; | |
17297 | } | |
17298 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 ); | |
17299 | { | |
17300 | if (temp3) | |
17301 | delete arg3; | |
17302 | } | |
17303 | { | |
17304 | if (temp8) | |
17305 | delete arg8; | |
17306 | } | |
17307 | return resultobj; | |
17308 | fail: | |
17309 | { | |
17310 | if (temp3) | |
17311 | delete arg3; | |
17312 | } | |
17313 | { | |
17314 | if (temp8) | |
17315 | delete arg8; | |
17316 | } | |
17317 | return NULL; | |
d55e5bfc RD |
17318 | } |
17319 | ||
17320 | ||
1bd55598 RD |
17321 | SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17322 | PyObject *resultobj = 0; | |
17323 | wxRadioButton *result = 0 ; | |
17324 | ||
17325 | if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail; | |
17326 | { | |
17327 | if (!wxPyCheckForApp()) SWIG_fail; | |
17328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17329 | result = (wxRadioButton *)new wxRadioButton(); | |
17330 | wxPyEndAllowThreads(__tstate); | |
17331 | if (PyErr_Occurred()) SWIG_fail; | |
17332 | } | |
17333 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 ); | |
17334 | return resultobj; | |
17335 | fail: | |
17336 | return NULL; | |
17337 | } | |
17338 | ||
17339 | ||
17340 | SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17341 | PyObject *resultobj = 0; | |
17342 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17343 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17344 | int arg3 = (int) -1 ; | |
17345 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
17346 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
17347 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
17348 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
17349 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
17350 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
17351 | long arg7 = (long) 0 ; | |
17352 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
17353 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
17354 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
17355 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
17356 | bool result; | |
17357 | void *argp1 = 0 ; | |
17358 | int res1 = 0 ; | |
17359 | void *argp2 = 0 ; | |
17360 | int res2 = 0 ; | |
17361 | int val3 ; | |
17362 | int ecode3 = 0 ; | |
17363 | bool temp4 = false ; | |
17364 | wxPoint temp5 ; | |
17365 | wxSize temp6 ; | |
17366 | long val7 ; | |
17367 | int ecode7 = 0 ; | |
17368 | void *argp8 = 0 ; | |
17369 | int res8 = 0 ; | |
17370 | bool temp9 = false ; | |
17371 | PyObject * obj0 = 0 ; | |
17372 | PyObject * obj1 = 0 ; | |
17373 | PyObject * obj2 = 0 ; | |
17374 | PyObject * obj3 = 0 ; | |
17375 | PyObject * obj4 = 0 ; | |
17376 | PyObject * obj5 = 0 ; | |
17377 | PyObject * obj6 = 0 ; | |
17378 | PyObject * obj7 = 0 ; | |
17379 | PyObject * obj8 = 0 ; | |
17380 | char * kwnames[] = { | |
17381 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17382 | }; | |
17383 | ||
17384 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
17385 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17386 | if (!SWIG_IsOK(res1)) { | |
17387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17388 | } | |
17389 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17390 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17391 | if (!SWIG_IsOK(res2)) { | |
17392 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
17393 | } | |
17394 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
17395 | if (obj2) { | |
17396 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17397 | if (!SWIG_IsOK(ecode3)) { | |
17398 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
17399 | } | |
17400 | arg3 = static_cast< int >(val3); | |
17401 | } | |
17402 | if (obj3) { | |
d55e5bfc | 17403 | { |
1bd55598 RD |
17404 | arg4 = wxString_in_helper(obj3); |
17405 | if (arg4 == NULL) SWIG_fail; | |
17406 | temp4 = true; | |
d55e5bfc | 17407 | } |
1bd55598 RD |
17408 | } |
17409 | if (obj4) { | |
d55e5bfc | 17410 | { |
1bd55598 RD |
17411 | arg5 = &temp5; |
17412 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 17413 | } |
1bd55598 RD |
17414 | } |
17415 | if (obj5) { | |
d55e5bfc | 17416 | { |
1bd55598 RD |
17417 | arg6 = &temp6; |
17418 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 17419 | } |
1bd55598 RD |
17420 | } |
17421 | if (obj6) { | |
17422 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
17423 | if (!SWIG_IsOK(ecode7)) { | |
17424 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
17425 | } | |
17426 | arg7 = static_cast< long >(val7); | |
17427 | } | |
17428 | if (obj7) { | |
17429 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
17430 | if (!SWIG_IsOK(res8)) { | |
17431 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 17432 | } |
1bd55598 RD |
17433 | if (!argp8) { |
17434 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 17435 | } |
1bd55598 RD |
17436 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
17437 | } | |
17438 | if (obj8) { | |
d55e5bfc | 17439 | { |
1bd55598 RD |
17440 | arg9 = wxString_in_helper(obj8); |
17441 | if (arg9 == NULL) SWIG_fail; | |
17442 | temp9 = true; | |
d55e5bfc | 17443 | } |
1bd55598 RD |
17444 | } |
17445 | { | |
17446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17447 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
17448 | wxPyEndAllowThreads(__tstate); | |
17449 | if (PyErr_Occurred()) SWIG_fail; | |
17450 | } | |
17451 | { | |
17452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17453 | } | |
17454 | { | |
17455 | if (temp4) | |
17456 | delete arg4; | |
17457 | } | |
17458 | { | |
17459 | if (temp9) | |
17460 | delete arg9; | |
17461 | } | |
17462 | return resultobj; | |
17463 | fail: | |
17464 | { | |
17465 | if (temp4) | |
17466 | delete arg4; | |
17467 | } | |
17468 | { | |
17469 | if (temp9) | |
17470 | delete arg9; | |
17471 | } | |
17472 | return NULL; | |
d55e5bfc RD |
17473 | } |
17474 | ||
17475 | ||
1bd55598 RD |
17476 | SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17477 | PyObject *resultobj = 0; | |
17478 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17479 | bool result; | |
17480 | void *argp1 = 0 ; | |
17481 | int res1 = 0 ; | |
17482 | PyObject *swig_obj[1] ; | |
17483 | ||
17484 | if (!args) SWIG_fail; | |
17485 | swig_obj[0] = args; | |
17486 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17487 | if (!SWIG_IsOK(res1)) { | |
17488 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17489 | } | |
17490 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17491 | { | |
17492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17493 | result = (bool)(arg1)->GetValue(); | |
17494 | wxPyEndAllowThreads(__tstate); | |
17495 | if (PyErr_Occurred()) SWIG_fail; | |
17496 | } | |
17497 | { | |
17498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17499 | } | |
17500 | return resultobj; | |
17501 | fail: | |
17502 | return NULL; | |
17503 | } | |
17504 | ||
17505 | ||
17506 | SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17507 | PyObject *resultobj = 0; | |
17508 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17509 | bool arg2 ; | |
17510 | void *argp1 = 0 ; | |
17511 | int res1 = 0 ; | |
17512 | bool val2 ; | |
17513 | int ecode2 = 0 ; | |
17514 | PyObject * obj0 = 0 ; | |
17515 | PyObject * obj1 = 0 ; | |
17516 | char * kwnames[] = { | |
17517 | (char *) "self",(char *) "value", NULL | |
17518 | }; | |
17519 | ||
17520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
17521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17522 | if (!SWIG_IsOK(res1)) { | |
17523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17524 | } | |
17525 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17526 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
17527 | if (!SWIG_IsOK(ecode2)) { | |
17528 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
17529 | } | |
17530 | arg2 = static_cast< bool >(val2); | |
17531 | { | |
17532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17533 | (arg1)->SetValue(arg2); | |
17534 | wxPyEndAllowThreads(__tstate); | |
17535 | if (PyErr_Occurred()) SWIG_fail; | |
17536 | } | |
17537 | resultobj = SWIG_Py_Void(); | |
17538 | return resultobj; | |
17539 | fail: | |
17540 | return NULL; | |
17541 | } | |
17542 | ||
17543 | ||
17544 | SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17545 | PyObject *resultobj = 0; | |
17546 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
17547 | SwigValueWrapper<wxVisualAttributes > result; | |
17548 | int val1 ; | |
17549 | int ecode1 = 0 ; | |
17550 | PyObject * obj0 = 0 ; | |
17551 | char * kwnames[] = { | |
17552 | (char *) "variant", NULL | |
17553 | }; | |
17554 | ||
17555 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
17556 | if (obj0) { | |
17557 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17558 | if (!SWIG_IsOK(ecode1)) { | |
17559 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
17560 | } | |
17561 | arg1 = static_cast< wxWindowVariant >(val1); | |
17562 | } | |
17563 | { | |
17564 | if (!wxPyCheckForApp()) SWIG_fail; | |
17565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17566 | result = wxRadioButton::GetClassDefaultAttributes(arg1); | |
17567 | wxPyEndAllowThreads(__tstate); | |
17568 | if (PyErr_Occurred()) SWIG_fail; | |
17569 | } | |
17570 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
17571 | return resultobj; | |
17572 | fail: | |
17573 | return NULL; | |
d55e5bfc RD |
17574 | } |
17575 | ||
17576 | ||
1bd55598 RD |
17577 | SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17578 | PyObject *obj; | |
17579 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17580 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj)); | |
17581 | return SWIG_Py_Void(); | |
d55e5bfc RD |
17582 | } |
17583 | ||
1bd55598 RD |
17584 | SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17585 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
17586 | } |
17587 | ||
1bd55598 RD |
17588 | SWIGINTERN int SliderNameStr_set(PyObject *) { |
17589 | SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only."); | |
17590 | return 1; | |
d55e5bfc RD |
17591 | } |
17592 | ||
17593 | ||
1bd55598 RD |
17594 | SWIGINTERN PyObject *SliderNameStr_get(void) { |
17595 | PyObject *pyobj = 0; | |
17596 | ||
17597 | { | |
17598 | #if wxUSE_UNICODE | |
17599 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
17600 | #else | |
17601 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
17602 | #endif | |
17603 | } | |
17604 | return pyobj; | |
17605 | } | |
17606 | ||
17607 | ||
17608 | SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17609 | PyObject *resultobj = 0; | |
17610 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17611 | int arg2 = (int) -1 ; | |
17612 | int arg3 = (int) 0 ; | |
17613 | int arg4 = (int) 0 ; | |
17614 | int arg5 = (int) 100 ; | |
17615 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
17616 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
17617 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
17618 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
17619 | long arg8 = (long) wxSL_HORIZONTAL ; | |
17620 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
17621 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
17622 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
17623 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
17624 | wxSlider *result = 0 ; | |
17625 | void *argp1 = 0 ; | |
17626 | int res1 = 0 ; | |
17627 | int val2 ; | |
17628 | int ecode2 = 0 ; | |
17629 | int val3 ; | |
17630 | int ecode3 = 0 ; | |
17631 | int val4 ; | |
17632 | int ecode4 = 0 ; | |
17633 | int val5 ; | |
17634 | int ecode5 = 0 ; | |
17635 | wxPoint temp6 ; | |
17636 | wxSize temp7 ; | |
17637 | long val8 ; | |
17638 | int ecode8 = 0 ; | |
17639 | void *argp9 = 0 ; | |
17640 | int res9 = 0 ; | |
17641 | bool temp10 = false ; | |
17642 | PyObject * obj0 = 0 ; | |
17643 | PyObject * obj1 = 0 ; | |
17644 | PyObject * obj2 = 0 ; | |
17645 | PyObject * obj3 = 0 ; | |
17646 | PyObject * obj4 = 0 ; | |
17647 | PyObject * obj5 = 0 ; | |
17648 | PyObject * obj6 = 0 ; | |
17649 | PyObject * obj7 = 0 ; | |
17650 | PyObject * obj8 = 0 ; | |
17651 | PyObject * obj9 = 0 ; | |
17652 | char * kwnames[] = { | |
17653 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17654 | }; | |
17655 | ||
17656 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) 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_Slider" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17660 | } | |
17661 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17662 | if (obj1) { | |
17663 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17664 | if (!SWIG_IsOK(ecode2)) { | |
17665 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'"); | |
17666 | } | |
17667 | arg2 = static_cast< int >(val2); | |
17668 | } | |
17669 | if (obj2) { | |
17670 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17671 | if (!SWIG_IsOK(ecode3)) { | |
17672 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'"); | |
17673 | } | |
17674 | arg3 = static_cast< int >(val3); | |
17675 | } | |
17676 | if (obj3) { | |
17677 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17678 | if (!SWIG_IsOK(ecode4)) { | |
17679 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'"); | |
17680 | } | |
17681 | arg4 = static_cast< int >(val4); | |
17682 | } | |
17683 | if (obj4) { | |
17684 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17685 | if (!SWIG_IsOK(ecode5)) { | |
17686 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'"); | |
17687 | } | |
17688 | arg5 = static_cast< int >(val5); | |
17689 | } | |
17690 | if (obj5) { | |
36ed4f51 | 17691 | { |
1bd55598 RD |
17692 | arg6 = &temp6; |
17693 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
36ed4f51 | 17694 | } |
1bd55598 RD |
17695 | } |
17696 | if (obj6) { | |
36ed4f51 | 17697 | { |
1bd55598 RD |
17698 | arg7 = &temp7; |
17699 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
36ed4f51 | 17700 | } |
1bd55598 RD |
17701 | } |
17702 | if (obj7) { | |
17703 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
17704 | if (!SWIG_IsOK(ecode8)) { | |
17705 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'"); | |
17706 | } | |
17707 | arg8 = static_cast< long >(val8); | |
17708 | } | |
17709 | if (obj8) { | |
17710 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
17711 | if (!SWIG_IsOK(res9)) { | |
17712 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 17713 | } |
1bd55598 RD |
17714 | if (!argp9) { |
17715 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 17716 | } |
1bd55598 RD |
17717 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
17718 | } | |
17719 | if (obj9) { | |
d55e5bfc | 17720 | { |
1bd55598 RD |
17721 | arg10 = wxString_in_helper(obj9); |
17722 | if (arg10 == NULL) SWIG_fail; | |
17723 | temp10 = true; | |
d55e5bfc | 17724 | } |
1bd55598 RD |
17725 | } |
17726 | { | |
17727 | if (!wxPyCheckForApp()) SWIG_fail; | |
17728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17729 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
17730 | wxPyEndAllowThreads(__tstate); | |
17731 | if (PyErr_Occurred()) SWIG_fail; | |
17732 | } | |
17733 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 ); | |
17734 | { | |
17735 | if (temp10) | |
17736 | delete arg10; | |
17737 | } | |
17738 | return resultobj; | |
17739 | fail: | |
17740 | { | |
17741 | if (temp10) | |
17742 | delete arg10; | |
17743 | } | |
17744 | return NULL; | |
d55e5bfc RD |
17745 | } |
17746 | ||
17747 | ||
1bd55598 RD |
17748 | SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17749 | PyObject *resultobj = 0; | |
17750 | wxSlider *result = 0 ; | |
17751 | ||
17752 | if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail; | |
17753 | { | |
17754 | if (!wxPyCheckForApp()) SWIG_fail; | |
17755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17756 | result = (wxSlider *)new wxSlider(); | |
17757 | wxPyEndAllowThreads(__tstate); | |
17758 | if (PyErr_Occurred()) SWIG_fail; | |
17759 | } | |
17760 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 ); | |
17761 | return resultobj; | |
17762 | fail: | |
17763 | return NULL; | |
17764 | } | |
17765 | ||
17766 | ||
17767 | SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17768 | PyObject *resultobj = 0; | |
17769 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17770 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17771 | int arg3 = (int) -1 ; | |
17772 | int arg4 = (int) 0 ; | |
17773 | int arg5 = (int) 0 ; | |
17774 | int arg6 = (int) 100 ; | |
17775 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17776 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17777 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
17778 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
17779 | long arg9 = (long) wxSL_HORIZONTAL ; | |
17780 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
17781 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
17782 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
17783 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
17784 | bool result; | |
17785 | void *argp1 = 0 ; | |
17786 | int res1 = 0 ; | |
17787 | void *argp2 = 0 ; | |
17788 | int res2 = 0 ; | |
17789 | int val3 ; | |
17790 | int ecode3 = 0 ; | |
17791 | int val4 ; | |
17792 | int ecode4 = 0 ; | |
17793 | int val5 ; | |
17794 | int ecode5 = 0 ; | |
17795 | int val6 ; | |
17796 | int ecode6 = 0 ; | |
17797 | wxPoint temp7 ; | |
17798 | wxSize temp8 ; | |
17799 | long val9 ; | |
17800 | int ecode9 = 0 ; | |
17801 | void *argp10 = 0 ; | |
17802 | int res10 = 0 ; | |
17803 | bool temp11 = false ; | |
17804 | PyObject * obj0 = 0 ; | |
17805 | PyObject * obj1 = 0 ; | |
17806 | PyObject * obj2 = 0 ; | |
17807 | PyObject * obj3 = 0 ; | |
17808 | PyObject * obj4 = 0 ; | |
17809 | PyObject * obj5 = 0 ; | |
17810 | PyObject * obj6 = 0 ; | |
17811 | PyObject * obj7 = 0 ; | |
17812 | PyObject * obj8 = 0 ; | |
17813 | PyObject * obj9 = 0 ; | |
17814 | PyObject * obj10 = 0 ; | |
17815 | char * kwnames[] = { | |
17816 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17817 | }; | |
17818 | ||
17819 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
17820 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17821 | if (!SWIG_IsOK(res1)) { | |
17822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17823 | } | |
17824 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17825 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17826 | if (!SWIG_IsOK(res2)) { | |
17827 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
17828 | } | |
17829 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
17830 | if (obj2) { | |
17831 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17832 | if (!SWIG_IsOK(ecode3)) { | |
17833 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'"); | |
17834 | } | |
17835 | arg3 = static_cast< int >(val3); | |
17836 | } | |
17837 | if (obj3) { | |
17838 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17839 | if (!SWIG_IsOK(ecode4)) { | |
17840 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'"); | |
17841 | } | |
17842 | arg4 = static_cast< int >(val4); | |
17843 | } | |
17844 | if (obj4) { | |
17845 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17846 | if (!SWIG_IsOK(ecode5)) { | |
17847 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'"); | |
17848 | } | |
17849 | arg5 = static_cast< int >(val5); | |
17850 | } | |
17851 | if (obj5) { | |
17852 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
17853 | if (!SWIG_IsOK(ecode6)) { | |
17854 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'"); | |
17855 | } | |
17856 | arg6 = static_cast< int >(val6); | |
17857 | } | |
17858 | if (obj6) { | |
d55e5bfc | 17859 | { |
1bd55598 RD |
17860 | arg7 = &temp7; |
17861 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
d55e5bfc | 17862 | } |
1bd55598 RD |
17863 | } |
17864 | if (obj7) { | |
d55e5bfc | 17865 | { |
1bd55598 RD |
17866 | arg8 = &temp8; |
17867 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
d55e5bfc | 17868 | } |
1bd55598 RD |
17869 | } |
17870 | if (obj8) { | |
17871 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
17872 | if (!SWIG_IsOK(ecode9)) { | |
17873 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'"); | |
17874 | } | |
17875 | arg9 = static_cast< long >(val9); | |
17876 | } | |
17877 | if (obj9) { | |
17878 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
17879 | if (!SWIG_IsOK(res10)) { | |
17880 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 17881 | } |
1bd55598 RD |
17882 | if (!argp10) { |
17883 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 17884 | } |
1bd55598 RD |
17885 | arg10 = reinterpret_cast< wxValidator * >(argp10); |
17886 | } | |
17887 | if (obj10) { | |
d55e5bfc | 17888 | { |
1bd55598 RD |
17889 | arg11 = wxString_in_helper(obj10); |
17890 | if (arg11 == NULL) SWIG_fail; | |
17891 | temp11 = true; | |
d55e5bfc | 17892 | } |
1bd55598 RD |
17893 | } |
17894 | { | |
17895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17896 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
17897 | wxPyEndAllowThreads(__tstate); | |
17898 | if (PyErr_Occurred()) SWIG_fail; | |
17899 | } | |
17900 | { | |
17901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17902 | } | |
17903 | { | |
17904 | if (temp11) | |
17905 | delete arg11; | |
17906 | } | |
17907 | return resultobj; | |
17908 | fail: | |
17909 | { | |
17910 | if (temp11) | |
17911 | delete arg11; | |
17912 | } | |
17913 | return NULL; | |
d55e5bfc RD |
17914 | } |
17915 | ||
17916 | ||
1bd55598 RD |
17917 | SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17918 | PyObject *resultobj = 0; | |
17919 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17920 | int result; | |
17921 | void *argp1 = 0 ; | |
17922 | int res1 = 0 ; | |
17923 | PyObject *swig_obj[1] ; | |
17924 | ||
17925 | if (!args) SWIG_fail; | |
17926 | swig_obj[0] = args; | |
17927 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17928 | if (!SWIG_IsOK(res1)) { | |
17929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17930 | } | |
17931 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17932 | { | |
17933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17934 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
17935 | wxPyEndAllowThreads(__tstate); | |
17936 | if (PyErr_Occurred()) SWIG_fail; | |
17937 | } | |
17938 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17939 | return resultobj; | |
17940 | fail: | |
17941 | return NULL; | |
17942 | } | |
17943 | ||
17944 | ||
17945 | SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17946 | PyObject *resultobj = 0; | |
17947 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17948 | int arg2 ; | |
17949 | void *argp1 = 0 ; | |
17950 | int res1 = 0 ; | |
17951 | int val2 ; | |
17952 | int ecode2 = 0 ; | |
17953 | PyObject * obj0 = 0 ; | |
17954 | PyObject * obj1 = 0 ; | |
17955 | char * kwnames[] = { | |
17956 | (char *) "self",(char *) "value", NULL | |
17957 | }; | |
17958 | ||
17959 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
17960 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17961 | if (!SWIG_IsOK(res1)) { | |
17962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17963 | } | |
17964 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17965 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17966 | if (!SWIG_IsOK(ecode2)) { | |
17967 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
17968 | } | |
17969 | arg2 = static_cast< int >(val2); | |
17970 | { | |
17971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17972 | (arg1)->SetValue(arg2); | |
17973 | wxPyEndAllowThreads(__tstate); | |
17974 | if (PyErr_Occurred()) SWIG_fail; | |
17975 | } | |
17976 | resultobj = SWIG_Py_Void(); | |
17977 | return resultobj; | |
17978 | fail: | |
17979 | return NULL; | |
17980 | } | |
17981 | ||
17982 | ||
17983 | SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17984 | PyObject *resultobj = 0; | |
17985 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17986 | int arg2 ; | |
17987 | int arg3 ; | |
17988 | void *argp1 = 0 ; | |
17989 | int res1 = 0 ; | |
17990 | int val2 ; | |
17991 | int ecode2 = 0 ; | |
17992 | int val3 ; | |
17993 | int ecode3 = 0 ; | |
17994 | PyObject * obj0 = 0 ; | |
17995 | PyObject * obj1 = 0 ; | |
17996 | PyObject * obj2 = 0 ; | |
17997 | char * kwnames[] = { | |
17998 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
17999 | }; | |
18000 | ||
18001 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18002 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18003 | if (!SWIG_IsOK(res1)) { | |
18004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18005 | } | |
18006 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18007 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18008 | if (!SWIG_IsOK(ecode2)) { | |
18009 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
18010 | } | |
18011 | arg2 = static_cast< int >(val2); | |
18012 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18013 | if (!SWIG_IsOK(ecode3)) { | |
18014 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
18015 | } | |
18016 | arg3 = static_cast< int >(val3); | |
18017 | { | |
18018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18019 | (arg1)->SetRange(arg2,arg3); | |
18020 | wxPyEndAllowThreads(__tstate); | |
18021 | if (PyErr_Occurred()) SWIG_fail; | |
18022 | } | |
18023 | resultobj = SWIG_Py_Void(); | |
18024 | return resultobj; | |
18025 | fail: | |
18026 | return NULL; | |
d55e5bfc RD |
18027 | } |
18028 | ||
18029 | ||
1bd55598 RD |
18030 | SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18031 | PyObject *resultobj = 0; | |
18032 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18033 | int result; | |
18034 | void *argp1 = 0 ; | |
18035 | int res1 = 0 ; | |
18036 | PyObject *swig_obj[1] ; | |
18037 | ||
18038 | if (!args) SWIG_fail; | |
18039 | swig_obj[0] = args; | |
18040 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18041 | if (!SWIG_IsOK(res1)) { | |
18042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18043 | } | |
18044 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18045 | { | |
18046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18047 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
18048 | wxPyEndAllowThreads(__tstate); | |
18049 | if (PyErr_Occurred()) SWIG_fail; | |
18050 | } | |
18051 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18052 | return resultobj; | |
18053 | fail: | |
18054 | return NULL; | |
f20a2e1f RD |
18055 | } |
18056 | ||
18057 | ||
1bd55598 RD |
18058 | SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18059 | PyObject *resultobj = 0; | |
18060 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18061 | int result; | |
18062 | void *argp1 = 0 ; | |
18063 | int res1 = 0 ; | |
18064 | PyObject *swig_obj[1] ; | |
18065 | ||
18066 | if (!args) SWIG_fail; | |
18067 | swig_obj[0] = args; | |
18068 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18069 | if (!SWIG_IsOK(res1)) { | |
18070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18071 | } | |
18072 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18073 | { | |
18074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18075 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
18076 | wxPyEndAllowThreads(__tstate); | |
18077 | if (PyErr_Occurred()) SWIG_fail; | |
18078 | } | |
18079 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18080 | return resultobj; | |
18081 | fail: | |
18082 | return NULL; | |
18083 | } | |
18084 | ||
18085 | ||
18086 | SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18087 | PyObject *resultobj = 0; | |
18088 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18089 | int arg2 ; | |
18090 | void *argp1 = 0 ; | |
18091 | int res1 = 0 ; | |
18092 | int val2 ; | |
18093 | int ecode2 = 0 ; | |
18094 | PyObject * obj0 = 0 ; | |
18095 | PyObject * obj1 = 0 ; | |
18096 | char * kwnames[] = { | |
18097 | (char *) "self",(char *) "minValue", NULL | |
18098 | }; | |
18099 | ||
18100 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail; | |
18101 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18102 | if (!SWIG_IsOK(res1)) { | |
18103 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18104 | } | |
18105 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18106 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18107 | if (!SWIG_IsOK(ecode2)) { | |
18108 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'"); | |
18109 | } | |
18110 | arg2 = static_cast< int >(val2); | |
18111 | { | |
18112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18113 | (arg1)->SetMin(arg2); | |
18114 | wxPyEndAllowThreads(__tstate); | |
18115 | if (PyErr_Occurred()) SWIG_fail; | |
18116 | } | |
18117 | resultobj = SWIG_Py_Void(); | |
18118 | return resultobj; | |
18119 | fail: | |
18120 | return NULL; | |
18121 | } | |
18122 | ||
18123 | ||
18124 | SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18125 | PyObject *resultobj = 0; | |
18126 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18127 | int arg2 ; | |
18128 | void *argp1 = 0 ; | |
18129 | int res1 = 0 ; | |
18130 | int val2 ; | |
18131 | int ecode2 = 0 ; | |
18132 | PyObject * obj0 = 0 ; | |
18133 | PyObject * obj1 = 0 ; | |
18134 | char * kwnames[] = { | |
18135 | (char *) "self",(char *) "maxValue", NULL | |
18136 | }; | |
18137 | ||
18138 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail; | |
18139 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18140 | if (!SWIG_IsOK(res1)) { | |
18141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18142 | } | |
18143 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18144 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18145 | if (!SWIG_IsOK(ecode2)) { | |
18146 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'"); | |
18147 | } | |
18148 | arg2 = static_cast< int >(val2); | |
18149 | { | |
18150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18151 | (arg1)->SetMax(arg2); | |
18152 | wxPyEndAllowThreads(__tstate); | |
18153 | if (PyErr_Occurred()) SWIG_fail; | |
18154 | } | |
18155 | resultobj = SWIG_Py_Void(); | |
18156 | return resultobj; | |
18157 | fail: | |
18158 | return NULL; | |
18159 | } | |
18160 | ||
18161 | ||
18162 | SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18163 | PyObject *resultobj = 0; | |
18164 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18165 | int arg2 ; | |
18166 | void *argp1 = 0 ; | |
18167 | int res1 = 0 ; | |
18168 | int val2 ; | |
18169 | int ecode2 = 0 ; | |
18170 | PyObject * obj0 = 0 ; | |
18171 | PyObject * obj1 = 0 ; | |
18172 | char * kwnames[] = { | |
18173 | (char *) "self",(char *) "lineSize", NULL | |
18174 | }; | |
18175 | ||
18176 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
18177 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18178 | if (!SWIG_IsOK(res1)) { | |
18179 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18180 | } | |
18181 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18182 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18183 | if (!SWIG_IsOK(ecode2)) { | |
18184 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'"); | |
18185 | } | |
18186 | arg2 = static_cast< int >(val2); | |
18187 | { | |
18188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18189 | (arg1)->SetLineSize(arg2); | |
18190 | wxPyEndAllowThreads(__tstate); | |
18191 | if (PyErr_Occurred()) SWIG_fail; | |
18192 | } | |
18193 | resultobj = SWIG_Py_Void(); | |
18194 | return resultobj; | |
18195 | fail: | |
18196 | return NULL; | |
18197 | } | |
18198 | ||
18199 | ||
18200 | SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18201 | PyObject *resultobj = 0; | |
18202 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18203 | int arg2 ; | |
18204 | void *argp1 = 0 ; | |
18205 | int res1 = 0 ; | |
18206 | int val2 ; | |
18207 | int ecode2 = 0 ; | |
18208 | PyObject * obj0 = 0 ; | |
18209 | PyObject * obj1 = 0 ; | |
18210 | char * kwnames[] = { | |
18211 | (char *) "self",(char *) "pageSize", NULL | |
18212 | }; | |
18213 | ||
18214 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
18215 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18216 | if (!SWIG_IsOK(res1)) { | |
18217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18218 | } | |
18219 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18220 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18221 | if (!SWIG_IsOK(ecode2)) { | |
18222 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'"); | |
18223 | } | |
18224 | arg2 = static_cast< int >(val2); | |
18225 | { | |
18226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18227 | (arg1)->SetPageSize(arg2); | |
18228 | wxPyEndAllowThreads(__tstate); | |
18229 | if (PyErr_Occurred()) SWIG_fail; | |
18230 | } | |
18231 | resultobj = SWIG_Py_Void(); | |
18232 | return resultobj; | |
18233 | fail: | |
18234 | return NULL; | |
d55e5bfc RD |
18235 | } |
18236 | ||
18237 | ||
1bd55598 RD |
18238 | SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18239 | PyObject *resultobj = 0; | |
18240 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18241 | int result; | |
18242 | void *argp1 = 0 ; | |
18243 | int res1 = 0 ; | |
18244 | PyObject *swig_obj[1] ; | |
18245 | ||
18246 | if (!args) SWIG_fail; | |
18247 | swig_obj[0] = args; | |
18248 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18249 | if (!SWIG_IsOK(res1)) { | |
18250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18251 | } | |
18252 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18253 | { | |
18254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18255 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
18256 | wxPyEndAllowThreads(__tstate); | |
18257 | if (PyErr_Occurred()) SWIG_fail; | |
18258 | } | |
18259 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18260 | return resultobj; | |
18261 | fail: | |
18262 | return NULL; | |
d55e5bfc RD |
18263 | } |
18264 | ||
18265 | ||
1bd55598 RD |
18266 | SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18267 | PyObject *resultobj = 0; | |
18268 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18269 | int result; | |
18270 | void *argp1 = 0 ; | |
18271 | int res1 = 0 ; | |
18272 | PyObject *swig_obj[1] ; | |
18273 | ||
18274 | if (!args) SWIG_fail; | |
18275 | swig_obj[0] = args; | |
18276 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18277 | if (!SWIG_IsOK(res1)) { | |
18278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18279 | } | |
18280 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18281 | { | |
18282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18283 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
18284 | wxPyEndAllowThreads(__tstate); | |
18285 | if (PyErr_Occurred()) SWIG_fail; | |
18286 | } | |
18287 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18288 | return resultobj; | |
18289 | fail: | |
18290 | return NULL; | |
18291 | } | |
18292 | ||
18293 | ||
18294 | SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18295 | PyObject *resultobj = 0; | |
18296 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18297 | int arg2 ; | |
18298 | void *argp1 = 0 ; | |
18299 | int res1 = 0 ; | |
18300 | int val2 ; | |
18301 | int ecode2 = 0 ; | |
18302 | PyObject * obj0 = 0 ; | |
18303 | PyObject * obj1 = 0 ; | |
18304 | char * kwnames[] = { | |
18305 | (char *) "self",(char *) "lenPixels", NULL | |
18306 | }; | |
18307 | ||
18308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
18309 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18310 | if (!SWIG_IsOK(res1)) { | |
18311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18312 | } | |
18313 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18314 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18315 | if (!SWIG_IsOK(ecode2)) { | |
18316 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'"); | |
18317 | } | |
18318 | arg2 = static_cast< int >(val2); | |
18319 | { | |
18320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18321 | (arg1)->SetThumbLength(arg2); | |
18322 | wxPyEndAllowThreads(__tstate); | |
18323 | if (PyErr_Occurred()) SWIG_fail; | |
18324 | } | |
18325 | resultobj = SWIG_Py_Void(); | |
18326 | return resultobj; | |
18327 | fail: | |
18328 | return NULL; | |
d55e5bfc RD |
18329 | } |
18330 | ||
18331 | ||
1bd55598 RD |
18332 | SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18333 | PyObject *resultobj = 0; | |
18334 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18335 | int result; | |
18336 | void *argp1 = 0 ; | |
18337 | int res1 = 0 ; | |
18338 | PyObject *swig_obj[1] ; | |
18339 | ||
18340 | if (!args) SWIG_fail; | |
18341 | swig_obj[0] = args; | |
18342 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18343 | if (!SWIG_IsOK(res1)) { | |
18344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18345 | } | |
18346 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18347 | { | |
18348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18349 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
18350 | wxPyEndAllowThreads(__tstate); | |
18351 | if (PyErr_Occurred()) SWIG_fail; | |
18352 | } | |
18353 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18354 | return resultobj; | |
18355 | fail: | |
18356 | return NULL; | |
18357 | } | |
18358 | ||
18359 | ||
18360 | SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18361 | PyObject *resultobj = 0; | |
18362 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18363 | int arg2 ; | |
18364 | int arg3 = (int) 1 ; | |
18365 | void *argp1 = 0 ; | |
18366 | int res1 = 0 ; | |
18367 | int val2 ; | |
18368 | int ecode2 = 0 ; | |
18369 | int val3 ; | |
18370 | int ecode3 = 0 ; | |
18371 | PyObject * obj0 = 0 ; | |
18372 | PyObject * obj1 = 0 ; | |
18373 | PyObject * obj2 = 0 ; | |
18374 | char * kwnames[] = { | |
18375 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
18376 | }; | |
18377 | ||
18378 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18379 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18380 | if (!SWIG_IsOK(res1)) { | |
18381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18382 | } | |
18383 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18384 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18385 | if (!SWIG_IsOK(ecode2)) { | |
18386 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'"); | |
18387 | } | |
18388 | arg2 = static_cast< int >(val2); | |
18389 | if (obj2) { | |
18390 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18391 | if (!SWIG_IsOK(ecode3)) { | |
18392 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'"); | |
18393 | } | |
18394 | arg3 = static_cast< int >(val3); | |
18395 | } | |
18396 | { | |
18397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18398 | (arg1)->SetTickFreq(arg2,arg3); | |
18399 | wxPyEndAllowThreads(__tstate); | |
18400 | if (PyErr_Occurred()) SWIG_fail; | |
18401 | } | |
18402 | resultobj = SWIG_Py_Void(); | |
18403 | return resultobj; | |
18404 | fail: | |
18405 | return NULL; | |
d55e5bfc RD |
18406 | } |
18407 | ||
18408 | ||
1bd55598 RD |
18409 | SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18410 | PyObject *resultobj = 0; | |
18411 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18412 | int result; | |
18413 | void *argp1 = 0 ; | |
18414 | int res1 = 0 ; | |
18415 | PyObject *swig_obj[1] ; | |
18416 | ||
18417 | if (!args) SWIG_fail; | |
18418 | swig_obj[0] = args; | |
18419 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18420 | if (!SWIG_IsOK(res1)) { | |
18421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18422 | } | |
18423 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18424 | { | |
18425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18426 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
18427 | wxPyEndAllowThreads(__tstate); | |
18428 | if (PyErr_Occurred()) SWIG_fail; | |
18429 | } | |
18430 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18431 | return resultobj; | |
18432 | fail: | |
18433 | return NULL; | |
d55e5bfc RD |
18434 | } |
18435 | ||
18436 | ||
1bd55598 RD |
18437 | SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18438 | PyObject *resultobj = 0; | |
18439 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18440 | void *argp1 = 0 ; | |
18441 | int res1 = 0 ; | |
18442 | PyObject *swig_obj[1] ; | |
18443 | ||
18444 | if (!args) SWIG_fail; | |
18445 | swig_obj[0] = args; | |
18446 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18447 | if (!SWIG_IsOK(res1)) { | |
18448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18449 | } | |
18450 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18451 | { | |
18452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18453 | (arg1)->ClearTicks(); | |
18454 | wxPyEndAllowThreads(__tstate); | |
18455 | if (PyErr_Occurred()) SWIG_fail; | |
18456 | } | |
18457 | resultobj = SWIG_Py_Void(); | |
18458 | return resultobj; | |
18459 | fail: | |
18460 | return NULL; | |
18461 | } | |
18462 | ||
18463 | ||
18464 | SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18465 | PyObject *resultobj = 0; | |
18466 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18467 | int arg2 ; | |
18468 | void *argp1 = 0 ; | |
18469 | int res1 = 0 ; | |
18470 | int val2 ; | |
18471 | int ecode2 = 0 ; | |
18472 | PyObject * obj0 = 0 ; | |
18473 | PyObject * obj1 = 0 ; | |
18474 | char * kwnames[] = { | |
18475 | (char *) "self",(char *) "tickPos", NULL | |
18476 | }; | |
18477 | ||
18478 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail; | |
18479 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18480 | if (!SWIG_IsOK(res1)) { | |
18481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18482 | } | |
18483 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18484 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18485 | if (!SWIG_IsOK(ecode2)) { | |
18486 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'"); | |
18487 | } | |
18488 | arg2 = static_cast< int >(val2); | |
18489 | { | |
18490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18491 | (arg1)->SetTick(arg2); | |
18492 | wxPyEndAllowThreads(__tstate); | |
18493 | if (PyErr_Occurred()) SWIG_fail; | |
18494 | } | |
18495 | resultobj = SWIG_Py_Void(); | |
18496 | return resultobj; | |
18497 | fail: | |
18498 | return NULL; | |
d55e5bfc RD |
18499 | } |
18500 | ||
18501 | ||
1bd55598 RD |
18502 | SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18503 | PyObject *resultobj = 0; | |
18504 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18505 | void *argp1 = 0 ; | |
18506 | int res1 = 0 ; | |
18507 | PyObject *swig_obj[1] ; | |
18508 | ||
18509 | if (!args) SWIG_fail; | |
18510 | swig_obj[0] = args; | |
18511 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18512 | if (!SWIG_IsOK(res1)) { | |
18513 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18514 | } | |
18515 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18516 | { | |
18517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18518 | (arg1)->ClearSel(); | |
18519 | wxPyEndAllowThreads(__tstate); | |
18520 | if (PyErr_Occurred()) SWIG_fail; | |
18521 | } | |
18522 | resultobj = SWIG_Py_Void(); | |
18523 | return resultobj; | |
18524 | fail: | |
18525 | return NULL; | |
d55e5bfc RD |
18526 | } |
18527 | ||
18528 | ||
1bd55598 RD |
18529 | SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18530 | PyObject *resultobj = 0; | |
18531 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18532 | int result; | |
18533 | void *argp1 = 0 ; | |
18534 | int res1 = 0 ; | |
18535 | PyObject *swig_obj[1] ; | |
18536 | ||
18537 | if (!args) SWIG_fail; | |
18538 | swig_obj[0] = args; | |
18539 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18540 | if (!SWIG_IsOK(res1)) { | |
18541 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18542 | } | |
18543 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18544 | { | |
18545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18546 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
18547 | wxPyEndAllowThreads(__tstate); | |
18548 | if (PyErr_Occurred()) SWIG_fail; | |
18549 | } | |
18550 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18551 | return resultobj; | |
18552 | fail: | |
18553 | return NULL; | |
d55e5bfc RD |
18554 | } |
18555 | ||
18556 | ||
1bd55598 RD |
18557 | SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18558 | PyObject *resultobj = 0; | |
18559 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18560 | int result; | |
18561 | void *argp1 = 0 ; | |
18562 | int res1 = 0 ; | |
18563 | PyObject *swig_obj[1] ; | |
18564 | ||
18565 | if (!args) SWIG_fail; | |
18566 | swig_obj[0] = args; | |
18567 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18568 | if (!SWIG_IsOK(res1)) { | |
18569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18570 | } | |
18571 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18572 | { | |
18573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18574 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
18575 | wxPyEndAllowThreads(__tstate); | |
18576 | if (PyErr_Occurred()) SWIG_fail; | |
18577 | } | |
18578 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18579 | return resultobj; | |
18580 | fail: | |
18581 | return NULL; | |
18582 | } | |
18583 | ||
18584 | ||
18585 | SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18586 | PyObject *resultobj = 0; | |
18587 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18588 | int arg2 ; | |
18589 | int arg3 ; | |
18590 | void *argp1 = 0 ; | |
18591 | int res1 = 0 ; | |
18592 | int val2 ; | |
18593 | int ecode2 = 0 ; | |
18594 | int val3 ; | |
18595 | int ecode3 = 0 ; | |
18596 | PyObject * obj0 = 0 ; | |
18597 | PyObject * obj1 = 0 ; | |
18598 | PyObject * obj2 = 0 ; | |
18599 | char * kwnames[] = { | |
18600 | (char *) "self",(char *) "min",(char *) "max", NULL | |
18601 | }; | |
18602 | ||
18603 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18605 | if (!SWIG_IsOK(res1)) { | |
18606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18607 | } | |
18608 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18609 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18610 | if (!SWIG_IsOK(ecode2)) { | |
18611 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
18612 | } | |
18613 | arg2 = static_cast< int >(val2); | |
18614 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18615 | if (!SWIG_IsOK(ecode3)) { | |
18616 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'"); | |
18617 | } | |
18618 | arg3 = static_cast< int >(val3); | |
18619 | { | |
18620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18621 | (arg1)->SetSelection(arg2,arg3); | |
18622 | wxPyEndAllowThreads(__tstate); | |
18623 | if (PyErr_Occurred()) SWIG_fail; | |
18624 | } | |
18625 | resultobj = SWIG_Py_Void(); | |
18626 | return resultobj; | |
18627 | fail: | |
18628 | return NULL; | |
18629 | } | |
18630 | ||
18631 | ||
18632 | SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18633 | PyObject *resultobj = 0; | |
18634 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
18635 | SwigValueWrapper<wxVisualAttributes > result; | |
18636 | int val1 ; | |
18637 | int ecode1 = 0 ; | |
18638 | PyObject * obj0 = 0 ; | |
18639 | char * kwnames[] = { | |
18640 | (char *) "variant", NULL | |
18641 | }; | |
18642 | ||
18643 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
18644 | if (obj0) { | |
18645 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18646 | if (!SWIG_IsOK(ecode1)) { | |
18647 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
18648 | } | |
18649 | arg1 = static_cast< wxWindowVariant >(val1); | |
18650 | } | |
18651 | { | |
18652 | if (!wxPyCheckForApp()) SWIG_fail; | |
18653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18654 | result = wxSlider::GetClassDefaultAttributes(arg1); | |
18655 | wxPyEndAllowThreads(__tstate); | |
18656 | if (PyErr_Occurred()) SWIG_fail; | |
18657 | } | |
18658 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
18659 | return resultobj; | |
18660 | fail: | |
18661 | return NULL; | |
d55e5bfc RD |
18662 | } |
18663 | ||
18664 | ||
1bd55598 RD |
18665 | SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18666 | PyObject *obj; | |
18667 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18668 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj)); | |
18669 | return SWIG_Py_Void(); | |
d55e5bfc RD |
18670 | } |
18671 | ||
1bd55598 RD |
18672 | SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18673 | return SWIG_Python_InitShadowInstance(args); | |
18674 | } | |
d55e5bfc | 18675 | |
1bd55598 RD |
18676 | SWIGINTERN int ToggleButtonNameStr_set(PyObject *) { |
18677 | SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only."); | |
18678 | return 1; | |
d55e5bfc RD |
18679 | } |
18680 | ||
18681 | ||
1bd55598 RD |
18682 | SWIGINTERN PyObject *ToggleButtonNameStr_get(void) { |
18683 | PyObject *pyobj = 0; | |
18684 | ||
18685 | { | |
18686 | #if wxUSE_UNICODE | |
18687 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
18688 | #else | |
18689 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
18690 | #endif | |
18691 | } | |
18692 | return pyobj; | |
18693 | } | |
18694 | ||
18695 | ||
18696 | SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18697 | PyObject *resultobj = 0; | |
18698 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18699 | int arg2 = (int) -1 ; | |
18700 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
18701 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18702 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
18703 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18704 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18705 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18706 | long arg6 = (long) 0 ; | |
18707 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
18708 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
18709 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
18710 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
18711 | wxToggleButton *result = 0 ; | |
18712 | void *argp1 = 0 ; | |
18713 | int res1 = 0 ; | |
18714 | int val2 ; | |
18715 | int ecode2 = 0 ; | |
18716 | bool temp3 = false ; | |
18717 | wxPoint temp4 ; | |
18718 | wxSize temp5 ; | |
18719 | long val6 ; | |
18720 | int ecode6 = 0 ; | |
18721 | void *argp7 = 0 ; | |
18722 | int res7 = 0 ; | |
18723 | bool temp8 = false ; | |
18724 | PyObject * obj0 = 0 ; | |
18725 | PyObject * obj1 = 0 ; | |
18726 | PyObject * obj2 = 0 ; | |
18727 | PyObject * obj3 = 0 ; | |
18728 | PyObject * obj4 = 0 ; | |
18729 | PyObject * obj5 = 0 ; | |
18730 | PyObject * obj6 = 0 ; | |
18731 | PyObject * obj7 = 0 ; | |
18732 | char * kwnames[] = { | |
18733 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
18734 | }; | |
18735 | ||
18736 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
18737 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18738 | if (!SWIG_IsOK(res1)) { | |
18739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18740 | } | |
18741 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18742 | if (obj1) { | |
18743 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18744 | if (!SWIG_IsOK(ecode2)) { | |
18745 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'"); | |
18746 | } | |
18747 | arg2 = static_cast< int >(val2); | |
18748 | } | |
18749 | if (obj2) { | |
d55e5bfc | 18750 | { |
1bd55598 RD |
18751 | arg3 = wxString_in_helper(obj2); |
18752 | if (arg3 == NULL) SWIG_fail; | |
18753 | temp3 = true; | |
d55e5bfc | 18754 | } |
1bd55598 RD |
18755 | } |
18756 | if (obj3) { | |
36ed4f51 | 18757 | { |
1bd55598 RD |
18758 | arg4 = &temp4; |
18759 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 18760 | } |
1bd55598 RD |
18761 | } |
18762 | if (obj4) { | |
d55e5bfc | 18763 | { |
1bd55598 RD |
18764 | arg5 = &temp5; |
18765 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 18766 | } |
1bd55598 RD |
18767 | } |
18768 | if (obj5) { | |
18769 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
18770 | if (!SWIG_IsOK(ecode6)) { | |
18771 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'"); | |
18772 | } | |
18773 | arg6 = static_cast< long >(val6); | |
18774 | } | |
18775 | if (obj6) { | |
18776 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
18777 | if (!SWIG_IsOK(res7)) { | |
18778 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 18779 | } |
1bd55598 RD |
18780 | if (!argp7) { |
18781 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 18782 | } |
1bd55598 RD |
18783 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
18784 | } | |
18785 | if (obj7) { | |
d55e5bfc | 18786 | { |
1bd55598 RD |
18787 | arg8 = wxString_in_helper(obj7); |
18788 | if (arg8 == NULL) SWIG_fail; | |
18789 | temp8 = true; | |
d55e5bfc | 18790 | } |
1bd55598 RD |
18791 | } |
18792 | { | |
18793 | if (!wxPyCheckForApp()) SWIG_fail; | |
18794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18795 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
18796 | wxPyEndAllowThreads(__tstate); | |
18797 | if (PyErr_Occurred()) SWIG_fail; | |
18798 | } | |
18799 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 ); | |
18800 | { | |
18801 | if (temp3) | |
18802 | delete arg3; | |
18803 | } | |
18804 | { | |
18805 | if (temp8) | |
18806 | delete arg8; | |
18807 | } | |
18808 | return resultobj; | |
18809 | fail: | |
18810 | { | |
18811 | if (temp3) | |
18812 | delete arg3; | |
18813 | } | |
18814 | { | |
18815 | if (temp8) | |
18816 | delete arg8; | |
18817 | } | |
18818 | return NULL; | |
d55e5bfc RD |
18819 | } |
18820 | ||
18821 | ||
1bd55598 RD |
18822 | SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18823 | PyObject *resultobj = 0; | |
18824 | wxToggleButton *result = 0 ; | |
18825 | ||
18826 | if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail; | |
18827 | { | |
18828 | if (!wxPyCheckForApp()) SWIG_fail; | |
18829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18830 | result = (wxToggleButton *)new wxToggleButton(); | |
18831 | wxPyEndAllowThreads(__tstate); | |
18832 | if (PyErr_Occurred()) SWIG_fail; | |
18833 | } | |
18834 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 ); | |
18835 | return resultobj; | |
18836 | fail: | |
18837 | return NULL; | |
18838 | } | |
18839 | ||
18840 | ||
18841 | SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18842 | PyObject *resultobj = 0; | |
18843 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
18844 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18845 | int arg3 = (int) -1 ; | |
18846 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18847 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18848 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
18849 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
18850 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
18851 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
18852 | long arg7 = (long) 0 ; | |
18853 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
18854 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
18855 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
18856 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
18857 | bool result; | |
18858 | void *argp1 = 0 ; | |
18859 | int res1 = 0 ; | |
18860 | void *argp2 = 0 ; | |
18861 | int res2 = 0 ; | |
18862 | int val3 ; | |
18863 | int ecode3 = 0 ; | |
18864 | bool temp4 = false ; | |
18865 | wxPoint temp5 ; | |
18866 | wxSize temp6 ; | |
18867 | long val7 ; | |
18868 | int ecode7 = 0 ; | |
18869 | void *argp8 = 0 ; | |
18870 | int res8 = 0 ; | |
18871 | bool temp9 = false ; | |
18872 | PyObject * obj0 = 0 ; | |
18873 | PyObject * obj1 = 0 ; | |
18874 | PyObject * obj2 = 0 ; | |
18875 | PyObject * obj3 = 0 ; | |
18876 | PyObject * obj4 = 0 ; | |
18877 | PyObject * obj5 = 0 ; | |
18878 | PyObject * obj6 = 0 ; | |
18879 | PyObject * obj7 = 0 ; | |
18880 | PyObject * obj8 = 0 ; | |
18881 | char * kwnames[] = { | |
18882 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
18883 | }; | |
18884 | ||
18885 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
18886 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
18887 | if (!SWIG_IsOK(res1)) { | |
18888 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'"); | |
18889 | } | |
18890 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
18891 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18892 | if (!SWIG_IsOK(res2)) { | |
18893 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
18894 | } | |
18895 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
18896 | if (obj2) { | |
18897 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18898 | if (!SWIG_IsOK(ecode3)) { | |
18899 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
18900 | } | |
18901 | arg3 = static_cast< int >(val3); | |
18902 | } | |
18903 | if (obj3) { | |
36ed4f51 | 18904 | { |
1bd55598 RD |
18905 | arg4 = wxString_in_helper(obj3); |
18906 | if (arg4 == NULL) SWIG_fail; | |
18907 | temp4 = true; | |
36ed4f51 | 18908 | } |
1bd55598 RD |
18909 | } |
18910 | if (obj4) { | |
36ed4f51 | 18911 | { |
1bd55598 RD |
18912 | arg5 = &temp5; |
18913 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 18914 | } |
1bd55598 RD |
18915 | } |
18916 | if (obj5) { | |
36ed4f51 | 18917 | { |
1bd55598 RD |
18918 | arg6 = &temp6; |
18919 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
36ed4f51 | 18920 | } |
1bd55598 RD |
18921 | } |
18922 | if (obj6) { | |
18923 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
18924 | if (!SWIG_IsOK(ecode7)) { | |
18925 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
18926 | } | |
18927 | arg7 = static_cast< long >(val7); | |
18928 | } | |
18929 | if (obj7) { | |
18930 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
18931 | if (!SWIG_IsOK(res8)) { | |
18932 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 18933 | } |
1bd55598 RD |
18934 | if (!argp8) { |
18935 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 18936 | } |
1bd55598 RD |
18937 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
18938 | } | |
18939 | if (obj8) { | |
d55e5bfc | 18940 | { |
1bd55598 RD |
18941 | arg9 = wxString_in_helper(obj8); |
18942 | if (arg9 == NULL) SWIG_fail; | |
18943 | temp9 = true; | |
d55e5bfc | 18944 | } |
1bd55598 RD |
18945 | } |
18946 | { | |
18947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18948 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
18949 | wxPyEndAllowThreads(__tstate); | |
18950 | if (PyErr_Occurred()) SWIG_fail; | |
18951 | } | |
18952 | { | |
18953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18954 | } | |
18955 | { | |
18956 | if (temp4) | |
18957 | delete arg4; | |
18958 | } | |
18959 | { | |
18960 | if (temp9) | |
18961 | delete arg9; | |
18962 | } | |
18963 | return resultobj; | |
18964 | fail: | |
18965 | { | |
18966 | if (temp4) | |
18967 | delete arg4; | |
18968 | } | |
18969 | { | |
18970 | if (temp9) | |
18971 | delete arg9; | |
18972 | } | |
18973 | return NULL; | |
18974 | } | |
18975 | ||
18976 | ||
18977 | SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18978 | PyObject *resultobj = 0; | |
18979 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
18980 | bool arg2 ; | |
18981 | void *argp1 = 0 ; | |
18982 | int res1 = 0 ; | |
18983 | bool val2 ; | |
18984 | int ecode2 = 0 ; | |
18985 | PyObject * obj0 = 0 ; | |
18986 | PyObject * obj1 = 0 ; | |
18987 | char * kwnames[] = { | |
18988 | (char *) "self",(char *) "value", NULL | |
18989 | }; | |
18990 | ||
18991 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
18992 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
18993 | if (!SWIG_IsOK(res1)) { | |
18994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'"); | |
18995 | } | |
18996 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
18997 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18998 | if (!SWIG_IsOK(ecode2)) { | |
18999 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
19000 | } | |
19001 | arg2 = static_cast< bool >(val2); | |
19002 | { | |
19003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19004 | (arg1)->SetValue(arg2); | |
19005 | wxPyEndAllowThreads(__tstate); | |
19006 | if (PyErr_Occurred()) SWIG_fail; | |
19007 | } | |
19008 | resultobj = SWIG_Py_Void(); | |
19009 | return resultobj; | |
19010 | fail: | |
19011 | return NULL; | |
d55e5bfc RD |
19012 | } |
19013 | ||
19014 | ||
1bd55598 RD |
19015 | SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19016 | PyObject *resultobj = 0; | |
19017 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
19018 | bool result; | |
19019 | void *argp1 = 0 ; | |
19020 | int res1 = 0 ; | |
19021 | PyObject *swig_obj[1] ; | |
19022 | ||
19023 | if (!args) SWIG_fail; | |
19024 | swig_obj[0] = args; | |
19025 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
19026 | if (!SWIG_IsOK(res1)) { | |
19027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'"); | |
19028 | } | |
19029 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
19030 | { | |
19031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19032 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
19033 | wxPyEndAllowThreads(__tstate); | |
19034 | if (PyErr_Occurred()) SWIG_fail; | |
19035 | } | |
19036 | { | |
19037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19038 | } | |
19039 | return resultobj; | |
19040 | fail: | |
19041 | return NULL; | |
f20a2e1f RD |
19042 | } |
19043 | ||
19044 | ||
1bd55598 RD |
19045 | SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19046 | PyObject *resultobj = 0; | |
19047 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
19048 | SwigValueWrapper<wxVisualAttributes > result; | |
19049 | int val1 ; | |
19050 | int ecode1 = 0 ; | |
19051 | PyObject * obj0 = 0 ; | |
19052 | char * kwnames[] = { | |
19053 | (char *) "variant", NULL | |
19054 | }; | |
19055 | ||
19056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
19057 | if (obj0) { | |
19058 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19059 | if (!SWIG_IsOK(ecode1)) { | |
19060 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
19061 | } | |
19062 | arg1 = static_cast< wxWindowVariant >(val1); | |
19063 | } | |
19064 | { | |
19065 | if (!wxPyCheckForApp()) SWIG_fail; | |
19066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19067 | result = wxToggleButton::GetClassDefaultAttributes(arg1); | |
19068 | wxPyEndAllowThreads(__tstate); | |
19069 | if (PyErr_Occurred()) SWIG_fail; | |
19070 | } | |
19071 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
19072 | return resultobj; | |
19073 | fail: | |
19074 | return NULL; | |
d55e5bfc RD |
19075 | } |
19076 | ||
19077 | ||
1bd55598 RD |
19078 | SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19079 | PyObject *obj; | |
19080 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19081 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj)); | |
19082 | return SWIG_Py_Void(); | |
d55e5bfc RD |
19083 | } |
19084 | ||
1bd55598 RD |
19085 | SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19086 | return SWIG_Python_InitShadowInstance(args); | |
19087 | } | |
d55e5bfc | 19088 | |
1bd55598 RD |
19089 | SWIGINTERN int NotebookNameStr_set(PyObject *) { |
19090 | SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only."); | |
19091 | return 1; | |
d55e5bfc RD |
19092 | } |
19093 | ||
19094 | ||
1bd55598 RD |
19095 | SWIGINTERN PyObject *NotebookNameStr_get(void) { |
19096 | PyObject *pyobj = 0; | |
19097 | ||
19098 | { | |
d55e5bfc | 19099 | #if wxUSE_UNICODE |
1bd55598 | 19100 | pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d55e5bfc | 19101 | #else |
1bd55598 | 19102 | pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d55e5bfc | 19103 | #endif |
1bd55598 RD |
19104 | } |
19105 | return pyobj; | |
d55e5bfc RD |
19106 | } |
19107 | ||
19108 | ||
1bd55598 RD |
19109 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19110 | PyObject *resultobj = 0; | |
19111 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19112 | size_t result; | |
19113 | void *argp1 = 0 ; | |
19114 | int res1 = 0 ; | |
19115 | PyObject *swig_obj[1] ; | |
19116 | ||
19117 | if (!args) SWIG_fail; | |
19118 | swig_obj[0] = args; | |
19119 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19120 | if (!SWIG_IsOK(res1)) { | |
19121 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19122 | } | |
19123 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19124 | { | |
19125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19126 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount(); | |
19127 | wxPyEndAllowThreads(__tstate); | |
19128 | if (PyErr_Occurred()) SWIG_fail; | |
19129 | } | |
19130 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
19131 | return resultobj; | |
19132 | fail: | |
19133 | return NULL; | |
19134 | } | |
19135 | ||
19136 | ||
19137 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19138 | PyObject *resultobj = 0; | |
19139 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19140 | size_t arg2 ; | |
19141 | wxWindow *result = 0 ; | |
19142 | void *argp1 = 0 ; | |
19143 | int res1 = 0 ; | |
19144 | size_t val2 ; | |
19145 | int ecode2 = 0 ; | |
19146 | PyObject * obj0 = 0 ; | |
19147 | PyObject * obj1 = 0 ; | |
19148 | char * kwnames[] = { | |
19149 | (char *) "self",(char *) "n", NULL | |
19150 | }; | |
19151 | ||
19152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19153 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19154 | if (!SWIG_IsOK(res1)) { | |
19155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19156 | } | |
19157 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19158 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19159 | if (!SWIG_IsOK(ecode2)) { | |
19160 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'"); | |
19161 | } | |
19162 | arg2 = static_cast< size_t >(val2); | |
19163 | { | |
19164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19165 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
19166 | wxPyEndAllowThreads(__tstate); | |
19167 | if (PyErr_Occurred()) SWIG_fail; | |
19168 | } | |
19169 | { | |
19170 | resultobj = wxPyMake_wxObject(result, 0); | |
19171 | } | |
19172 | return resultobj; | |
19173 | fail: | |
19174 | return NULL; | |
d55e5bfc RD |
19175 | } |
19176 | ||
19177 | ||
1bd55598 RD |
19178 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19179 | PyObject *resultobj = 0; | |
19180 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19181 | wxWindow *result = 0 ; | |
19182 | void *argp1 = 0 ; | |
19183 | int res1 = 0 ; | |
19184 | PyObject *swig_obj[1] ; | |
19185 | ||
19186 | if (!args) SWIG_fail; | |
19187 | swig_obj[0] = args; | |
19188 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19189 | if (!SWIG_IsOK(res1)) { | |
19190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19191 | } | |
19192 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19193 | { | |
19194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19195 | result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage(); | |
19196 | wxPyEndAllowThreads(__tstate); | |
19197 | if (PyErr_Occurred()) SWIG_fail; | |
19198 | } | |
19199 | { | |
19200 | resultobj = wxPyMake_wxObject(result, 0); | |
19201 | } | |
19202 | return resultobj; | |
19203 | fail: | |
19204 | return NULL; | |
d55e5bfc RD |
19205 | } |
19206 | ||
19207 | ||
1bd55598 RD |
19208 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19209 | PyObject *resultobj = 0; | |
19210 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19211 | int result; | |
19212 | void *argp1 = 0 ; | |
19213 | int res1 = 0 ; | |
19214 | PyObject *swig_obj[1] ; | |
19215 | ||
19216 | if (!args) SWIG_fail; | |
19217 | swig_obj[0] = args; | |
19218 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19219 | if (!SWIG_IsOK(res1)) { | |
19220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19221 | } | |
19222 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19223 | { | |
19224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19225 | result = (int)((wxBookCtrlBase const *)arg1)->GetSelection(); | |
19226 | wxPyEndAllowThreads(__tstate); | |
19227 | if (PyErr_Occurred()) SWIG_fail; | |
19228 | } | |
19229 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19230 | return resultobj; | |
19231 | fail: | |
19232 | return NULL; | |
19233 | } | |
19234 | ||
19235 | ||
19236 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19237 | PyObject *resultobj = 0; | |
19238 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19239 | size_t arg2 ; | |
19240 | wxString *arg3 = 0 ; | |
19241 | bool result; | |
19242 | void *argp1 = 0 ; | |
19243 | int res1 = 0 ; | |
19244 | size_t val2 ; | |
19245 | int ecode2 = 0 ; | |
19246 | bool temp3 = false ; | |
19247 | PyObject * obj0 = 0 ; | |
19248 | PyObject * obj1 = 0 ; | |
19249 | PyObject * obj2 = 0 ; | |
19250 | char * kwnames[] = { | |
19251 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
19252 | }; | |
19253 | ||
19254 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19255 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19256 | if (!SWIG_IsOK(res1)) { | |
19257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19258 | } | |
19259 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19260 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19261 | if (!SWIG_IsOK(ecode2)) { | |
19262 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'"); | |
19263 | } | |
19264 | arg2 = static_cast< size_t >(val2); | |
19265 | { | |
19266 | arg3 = wxString_in_helper(obj2); | |
19267 | if (arg3 == NULL) SWIG_fail; | |
19268 | temp3 = true; | |
19269 | } | |
19270 | { | |
19271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19272 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
19273 | wxPyEndAllowThreads(__tstate); | |
19274 | if (PyErr_Occurred()) SWIG_fail; | |
19275 | } | |
19276 | { | |
19277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19278 | } | |
19279 | { | |
19280 | if (temp3) | |
19281 | delete arg3; | |
19282 | } | |
19283 | return resultobj; | |
19284 | fail: | |
19285 | { | |
19286 | if (temp3) | |
19287 | delete arg3; | |
19288 | } | |
19289 | return NULL; | |
19290 | } | |
19291 | ||
19292 | ||
19293 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19294 | PyObject *resultobj = 0; | |
19295 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19296 | size_t arg2 ; | |
19297 | wxString result; | |
19298 | void *argp1 = 0 ; | |
19299 | int res1 = 0 ; | |
19300 | size_t val2 ; | |
19301 | int ecode2 = 0 ; | |
19302 | PyObject * obj0 = 0 ; | |
19303 | PyObject * obj1 = 0 ; | |
19304 | char * kwnames[] = { | |
19305 | (char *) "self",(char *) "n", NULL | |
19306 | }; | |
19307 | ||
19308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail; | |
19309 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19310 | if (!SWIG_IsOK(res1)) { | |
19311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19312 | } | |
19313 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19314 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19315 | if (!SWIG_IsOK(ecode2)) { | |
19316 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'"); | |
19317 | } | |
19318 | arg2 = static_cast< size_t >(val2); | |
19319 | { | |
19320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19321 | result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2); | |
19322 | wxPyEndAllowThreads(__tstate); | |
19323 | if (PyErr_Occurred()) SWIG_fail; | |
19324 | } | |
19325 | { | |
19326 | #if wxUSE_UNICODE | |
19327 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19328 | #else | |
19329 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19330 | #endif | |
19331 | } | |
19332 | return resultobj; | |
19333 | fail: | |
19334 | return NULL; | |
19335 | } | |
19336 | ||
19337 | ||
19338 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19339 | PyObject *resultobj = 0; | |
19340 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19341 | wxImageList *arg2 = (wxImageList *) 0 ; | |
19342 | void *argp1 = 0 ; | |
19343 | int res1 = 0 ; | |
19344 | void *argp2 = 0 ; | |
19345 | int res2 = 0 ; | |
19346 | PyObject * obj0 = 0 ; | |
19347 | PyObject * obj1 = 0 ; | |
19348 | char * kwnames[] = { | |
19349 | (char *) "self",(char *) "imageList", NULL | |
19350 | }; | |
19351 | ||
19352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
19353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19354 | if (!SWIG_IsOK(res1)) { | |
19355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19356 | } | |
19357 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19358 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
19359 | if (!SWIG_IsOK(res2)) { | |
19360 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
19361 | } | |
19362 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
19363 | { | |
19364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19365 | (arg1)->SetImageList(arg2); | |
19366 | wxPyEndAllowThreads(__tstate); | |
19367 | if (PyErr_Occurred()) SWIG_fail; | |
19368 | } | |
19369 | resultobj = SWIG_Py_Void(); | |
19370 | return resultobj; | |
19371 | fail: | |
19372 | return NULL; | |
19373 | } | |
19374 | ||
19375 | ||
19376 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19377 | PyObject *resultobj = 0; | |
19378 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19379 | wxImageList *arg2 = (wxImageList *) 0 ; | |
19380 | void *argp1 = 0 ; | |
19381 | int res1 = 0 ; | |
19382 | int res2 = 0 ; | |
19383 | PyObject * obj0 = 0 ; | |
19384 | PyObject * obj1 = 0 ; | |
19385 | char * kwnames[] = { | |
19386 | (char *) "self",(char *) "imageList", NULL | |
19387 | }; | |
19388 | ||
19389 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
19390 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19391 | if (!SWIG_IsOK(res1)) { | |
19392 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19393 | } | |
19394 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19395 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
19396 | if (!SWIG_IsOK(res2)) { | |
19397 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
19398 | } | |
19399 | { | |
19400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19401 | (arg1)->AssignImageList(arg2); | |
19402 | wxPyEndAllowThreads(__tstate); | |
19403 | if (PyErr_Occurred()) SWIG_fail; | |
19404 | } | |
19405 | resultobj = SWIG_Py_Void(); | |
19406 | return resultobj; | |
19407 | fail: | |
19408 | return NULL; | |
d55e5bfc RD |
19409 | } |
19410 | ||
19411 | ||
1bd55598 RD |
19412 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19413 | PyObject *resultobj = 0; | |
19414 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19415 | wxImageList *result = 0 ; | |
19416 | void *argp1 = 0 ; | |
19417 | int res1 = 0 ; | |
19418 | PyObject *swig_obj[1] ; | |
19419 | ||
19420 | if (!args) SWIG_fail; | |
19421 | swig_obj[0] = args; | |
19422 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19423 | if (!SWIG_IsOK(res1)) { | |
19424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19425 | } | |
19426 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19427 | { | |
19428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19429 | result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList(); | |
19430 | wxPyEndAllowThreads(__tstate); | |
19431 | if (PyErr_Occurred()) SWIG_fail; | |
19432 | } | |
3ecece7e RD |
19433 | { |
19434 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
19435 | } | |
1bd55598 RD |
19436 | return resultobj; |
19437 | fail: | |
19438 | return NULL; | |
19439 | } | |
19440 | ||
19441 | ||
19442 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19443 | PyObject *resultobj = 0; | |
19444 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19445 | size_t arg2 ; | |
19446 | int result; | |
19447 | void *argp1 = 0 ; | |
19448 | int res1 = 0 ; | |
19449 | size_t val2 ; | |
19450 | int ecode2 = 0 ; | |
19451 | PyObject * obj0 = 0 ; | |
19452 | PyObject * obj1 = 0 ; | |
19453 | char * kwnames[] = { | |
19454 | (char *) "self",(char *) "n", NULL | |
19455 | }; | |
19456 | ||
19457 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19458 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19459 | if (!SWIG_IsOK(res1)) { | |
19460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19461 | } | |
19462 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19463 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19464 | if (!SWIG_IsOK(ecode2)) { | |
19465 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'"); | |
19466 | } | |
19467 | arg2 = static_cast< size_t >(val2); | |
19468 | { | |
19469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19470 | result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2); | |
19471 | wxPyEndAllowThreads(__tstate); | |
19472 | if (PyErr_Occurred()) SWIG_fail; | |
19473 | } | |
19474 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19475 | return resultobj; | |
19476 | fail: | |
19477 | return NULL; | |
19478 | } | |
19479 | ||
19480 | ||
19481 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19482 | PyObject *resultobj = 0; | |
19483 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19484 | size_t arg2 ; | |
19485 | int arg3 ; | |
19486 | bool result; | |
19487 | void *argp1 = 0 ; | |
19488 | int res1 = 0 ; | |
19489 | size_t val2 ; | |
19490 | int ecode2 = 0 ; | |
19491 | int val3 ; | |
19492 | int ecode3 = 0 ; | |
19493 | PyObject * obj0 = 0 ; | |
19494 | PyObject * obj1 = 0 ; | |
19495 | PyObject * obj2 = 0 ; | |
19496 | char * kwnames[] = { | |
19497 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
19498 | }; | |
19499 | ||
19500 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19501 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19502 | if (!SWIG_IsOK(res1)) { | |
19503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19504 | } | |
19505 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19506 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19507 | if (!SWIG_IsOK(ecode2)) { | |
19508 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'"); | |
19509 | } | |
19510 | arg2 = static_cast< size_t >(val2); | |
19511 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19512 | if (!SWIG_IsOK(ecode3)) { | |
19513 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'"); | |
19514 | } | |
19515 | arg3 = static_cast< int >(val3); | |
19516 | { | |
19517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19518 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
19519 | wxPyEndAllowThreads(__tstate); | |
19520 | if (PyErr_Occurred()) SWIG_fail; | |
19521 | } | |
19522 | { | |
19523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19524 | } | |
19525 | return resultobj; | |
19526 | fail: | |
19527 | return NULL; | |
19528 | } | |
19529 | ||
19530 | ||
19531 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19532 | PyObject *resultobj = 0; | |
19533 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19534 | wxSize *arg2 = 0 ; | |
19535 | void *argp1 = 0 ; | |
19536 | int res1 = 0 ; | |
19537 | wxSize temp2 ; | |
19538 | PyObject * obj0 = 0 ; | |
19539 | PyObject * obj1 = 0 ; | |
19540 | char * kwnames[] = { | |
19541 | (char *) "self",(char *) "size", NULL | |
19542 | }; | |
19543 | ||
19544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
19545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19546 | if (!SWIG_IsOK(res1)) { | |
19547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19548 | } | |
19549 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19550 | { | |
19551 | arg2 = &temp2; | |
19552 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19553 | } | |
19554 | { | |
19555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19556 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
19557 | wxPyEndAllowThreads(__tstate); | |
19558 | if (PyErr_Occurred()) SWIG_fail; | |
19559 | } | |
19560 | resultobj = SWIG_Py_Void(); | |
19561 | return resultobj; | |
19562 | fail: | |
19563 | return NULL; | |
19564 | } | |
19565 | ||
19566 | ||
19567 | SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19568 | PyObject *resultobj = 0; | |
19569 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19570 | wxSize *arg2 = 0 ; | |
19571 | wxSize result; | |
19572 | void *argp1 = 0 ; | |
19573 | int res1 = 0 ; | |
19574 | wxSize temp2 ; | |
19575 | PyObject * obj0 = 0 ; | |
19576 | PyObject * obj1 = 0 ; | |
19577 | char * kwnames[] = { | |
19578 | (char *) "self",(char *) "sizePage", NULL | |
19579 | }; | |
19580 | ||
19581 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19582 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19583 | if (!SWIG_IsOK(res1)) { | |
19584 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19585 | } | |
19586 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19587 | { | |
19588 | arg2 = &temp2; | |
19589 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19590 | } | |
19591 | { | |
19592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19593 | result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
19594 | wxPyEndAllowThreads(__tstate); | |
19595 | if (PyErr_Occurred()) SWIG_fail; | |
19596 | } | |
19597 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
19598 | return resultobj; | |
19599 | fail: | |
19600 | return NULL; | |
d55e5bfc RD |
19601 | } |
19602 | ||
19603 | ||
1bd55598 RD |
19604 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19605 | PyObject *resultobj = 0; | |
19606 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
e9d6f3a4 | 19607 | unsigned int result; |
1bd55598 RD |
19608 | void *argp1 = 0 ; |
19609 | int res1 = 0 ; | |
19610 | PyObject *swig_obj[1] ; | |
19611 | ||
19612 | if (!args) SWIG_fail; | |
19613 | swig_obj[0] = args; | |
19614 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19615 | if (!SWIG_IsOK(res1)) { | |
19616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19617 | } | |
19618 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19619 | { | |
19620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e9d6f3a4 | 19621 | result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder(); |
1bd55598 RD |
19622 | wxPyEndAllowThreads(__tstate); |
19623 | if (PyErr_Occurred()) SWIG_fail; | |
19624 | } | |
e9d6f3a4 | 19625 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
1bd55598 RD |
19626 | return resultobj; |
19627 | fail: | |
19628 | return NULL; | |
19629 | } | |
19630 | ||
19631 | ||
19632 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19633 | PyObject *resultobj = 0; | |
19634 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
e9d6f3a4 | 19635 | unsigned int arg2 ; |
1bd55598 RD |
19636 | void *argp1 = 0 ; |
19637 | int res1 = 0 ; | |
e9d6f3a4 | 19638 | unsigned int val2 ; |
1bd55598 RD |
19639 | int ecode2 = 0 ; |
19640 | PyObject * obj0 = 0 ; | |
19641 | PyObject * obj1 = 0 ; | |
19642 | char * kwnames[] = { | |
19643 | (char *) "self",(char *) "internalBorder", NULL | |
19644 | }; | |
19645 | ||
19646 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail; | |
19647 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19648 | if (!SWIG_IsOK(res1)) { | |
19649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19650 | } | |
19651 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
e9d6f3a4 | 19652 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
1bd55598 | 19653 | if (!SWIG_IsOK(ecode2)) { |
e9d6f3a4 | 19654 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'"); |
1bd55598 | 19655 | } |
e9d6f3a4 | 19656 | arg2 = static_cast< unsigned int >(val2); |
1bd55598 RD |
19657 | { |
19658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19659 | (arg1)->SetInternalBorder(arg2); | |
19660 | wxPyEndAllowThreads(__tstate); | |
19661 | if (PyErr_Occurred()) SWIG_fail; | |
19662 | } | |
19663 | resultobj = SWIG_Py_Void(); | |
19664 | return resultobj; | |
19665 | fail: | |
19666 | return NULL; | |
d55e5bfc RD |
19667 | } |
19668 | ||
19669 | ||
1bd55598 RD |
19670 | SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19671 | PyObject *resultobj = 0; | |
19672 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19673 | bool result; | |
19674 | void *argp1 = 0 ; | |
19675 | int res1 = 0 ; | |
19676 | PyObject *swig_obj[1] ; | |
19677 | ||
19678 | if (!args) SWIG_fail; | |
19679 | swig_obj[0] = args; | |
19680 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19681 | if (!SWIG_IsOK(res1)) { | |
19682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19683 | } | |
19684 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19685 | { | |
19686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19687 | result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical(); | |
19688 | wxPyEndAllowThreads(__tstate); | |
19689 | if (PyErr_Occurred()) SWIG_fail; | |
19690 | } | |
19691 | { | |
19692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19693 | } | |
19694 | return resultobj; | |
19695 | fail: | |
19696 | return NULL; | |
19697 | } | |
19698 | ||
19699 | ||
e9d6f3a4 RD |
19700 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19701 | PyObject *resultobj = 0; | |
19702 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19703 | int arg2 ; | |
19704 | void *argp1 = 0 ; | |
19705 | int res1 = 0 ; | |
19706 | int val2 ; | |
19707 | int ecode2 = 0 ; | |
19708 | PyObject * obj0 = 0 ; | |
19709 | PyObject * obj1 = 0 ; | |
19710 | char * kwnames[] = { | |
19711 | (char *) "self",(char *) "margin", NULL | |
19712 | }; | |
19713 | ||
19714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
19715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19716 | if (!SWIG_IsOK(res1)) { | |
19717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19718 | } | |
19719 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19720 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19721 | if (!SWIG_IsOK(ecode2)) { | |
19722 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'"); | |
19723 | } | |
19724 | arg2 = static_cast< int >(val2); | |
19725 | { | |
19726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19727 | (arg1)->SetControlMargin(arg2); | |
19728 | wxPyEndAllowThreads(__tstate); | |
19729 | if (PyErr_Occurred()) SWIG_fail; | |
19730 | } | |
19731 | resultobj = SWIG_Py_Void(); | |
19732 | return resultobj; | |
19733 | fail: | |
19734 | return NULL; | |
19735 | } | |
19736 | ||
19737 | ||
19738 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19739 | PyObject *resultobj = 0; | |
19740 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19741 | int result; | |
19742 | void *argp1 = 0 ; | |
19743 | int res1 = 0 ; | |
19744 | PyObject *swig_obj[1] ; | |
19745 | ||
19746 | if (!args) SWIG_fail; | |
19747 | swig_obj[0] = args; | |
19748 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19749 | if (!SWIG_IsOK(res1)) { | |
19750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19751 | } | |
19752 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19753 | { | |
19754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19755 | result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin(); | |
19756 | wxPyEndAllowThreads(__tstate); | |
19757 | if (PyErr_Occurred()) SWIG_fail; | |
19758 | } | |
19759 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19760 | return resultobj; | |
19761 | fail: | |
19762 | return NULL; | |
19763 | } | |
19764 | ||
19765 | ||
1bd55598 RD |
19766 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19767 | PyObject *resultobj = 0; | |
19768 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19769 | bool arg2 ; | |
19770 | void *argp1 = 0 ; | |
19771 | int res1 = 0 ; | |
19772 | bool val2 ; | |
19773 | int ecode2 = 0 ; | |
19774 | PyObject * obj0 = 0 ; | |
19775 | PyObject * obj1 = 0 ; | |
19776 | char * kwnames[] = { | |
19777 | (char *) "self",(char *) "fit", NULL | |
19778 | }; | |
19779 | ||
19780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19782 | if (!SWIG_IsOK(res1)) { | |
19783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19784 | } | |
19785 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19786 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19787 | if (!SWIG_IsOK(ecode2)) { | |
19788 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'"); | |
19789 | } | |
19790 | arg2 = static_cast< bool >(val2); | |
19791 | { | |
19792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19793 | (arg1)->SetFitToCurrentPage(arg2); | |
19794 | wxPyEndAllowThreads(__tstate); | |
19795 | if (PyErr_Occurred()) SWIG_fail; | |
19796 | } | |
19797 | resultobj = SWIG_Py_Void(); | |
19798 | return resultobj; | |
19799 | fail: | |
19800 | return NULL; | |
d55e5bfc RD |
19801 | } |
19802 | ||
19803 | ||
1bd55598 RD |
19804 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19805 | PyObject *resultobj = 0; | |
19806 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19807 | bool result; | |
19808 | void *argp1 = 0 ; | |
19809 | int res1 = 0 ; | |
19810 | PyObject *swig_obj[1] ; | |
19811 | ||
19812 | if (!args) SWIG_fail; | |
19813 | swig_obj[0] = args; | |
19814 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19815 | if (!SWIG_IsOK(res1)) { | |
19816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19817 | } | |
19818 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19819 | { | |
19820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19821 | result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage(); | |
19822 | wxPyEndAllowThreads(__tstate); | |
19823 | if (PyErr_Occurred()) SWIG_fail; | |
19824 | } | |
19825 | { | |
19826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19827 | } | |
19828 | return resultobj; | |
19829 | fail: | |
19830 | return NULL; | |
19831 | } | |
19832 | ||
19833 | ||
e9d6f3a4 RD |
19834 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19835 | PyObject *resultobj = 0; | |
19836 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19837 | wxSizer *result = 0 ; | |
19838 | void *argp1 = 0 ; | |
19839 | int res1 = 0 ; | |
19840 | PyObject *swig_obj[1] ; | |
19841 | ||
19842 | if (!args) SWIG_fail; | |
19843 | swig_obj[0] = args; | |
19844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19845 | if (!SWIG_IsOK(res1)) { | |
19846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19847 | } | |
19848 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19849 | { | |
19850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19851 | result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer(); | |
19852 | wxPyEndAllowThreads(__tstate); | |
19853 | if (PyErr_Occurred()) SWIG_fail; | |
19854 | } | |
19855 | { | |
19856 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
19857 | } | |
19858 | return resultobj; | |
19859 | fail: | |
19860 | return NULL; | |
19861 | } | |
19862 | ||
19863 | ||
1bd55598 RD |
19864 | SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19865 | PyObject *resultobj = 0; | |
19866 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19867 | size_t arg2 ; | |
19868 | bool result; | |
19869 | void *argp1 = 0 ; | |
19870 | int res1 = 0 ; | |
19871 | size_t val2 ; | |
19872 | int ecode2 = 0 ; | |
19873 | PyObject * obj0 = 0 ; | |
19874 | PyObject * obj1 = 0 ; | |
19875 | char * kwnames[] = { | |
19876 | (char *) "self",(char *) "n", NULL | |
19877 | }; | |
19878 | ||
19879 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19880 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19881 | if (!SWIG_IsOK(res1)) { | |
19882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19883 | } | |
19884 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19885 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19886 | if (!SWIG_IsOK(ecode2)) { | |
19887 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'"); | |
19888 | } | |
19889 | arg2 = static_cast< size_t >(val2); | |
19890 | { | |
19891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19892 | result = (bool)(arg1)->DeletePage(arg2); | |
19893 | wxPyEndAllowThreads(__tstate); | |
19894 | if (PyErr_Occurred()) SWIG_fail; | |
19895 | } | |
19896 | { | |
19897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19898 | } | |
19899 | return resultobj; | |
19900 | fail: | |
19901 | return NULL; | |
19902 | } | |
19903 | ||
19904 | ||
19905 | SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19906 | PyObject *resultobj = 0; | |
19907 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19908 | size_t arg2 ; | |
19909 | bool result; | |
19910 | void *argp1 = 0 ; | |
19911 | int res1 = 0 ; | |
19912 | size_t val2 ; | |
19913 | int ecode2 = 0 ; | |
19914 | PyObject * obj0 = 0 ; | |
19915 | PyObject * obj1 = 0 ; | |
19916 | char * kwnames[] = { | |
19917 | (char *) "self",(char *) "n", NULL | |
19918 | }; | |
19919 | ||
19920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19921 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19922 | if (!SWIG_IsOK(res1)) { | |
19923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19924 | } | |
19925 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19926 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19927 | if (!SWIG_IsOK(ecode2)) { | |
19928 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'"); | |
19929 | } | |
19930 | arg2 = static_cast< size_t >(val2); | |
19931 | { | |
19932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19933 | result = (bool)(arg1)->RemovePage(arg2); | |
19934 | wxPyEndAllowThreads(__tstate); | |
19935 | if (PyErr_Occurred()) SWIG_fail; | |
19936 | } | |
19937 | { | |
19938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19939 | } | |
19940 | return resultobj; | |
19941 | fail: | |
19942 | return NULL; | |
f20a2e1f RD |
19943 | } |
19944 | ||
19945 | ||
1bd55598 RD |
19946 | SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19947 | PyObject *resultobj = 0; | |
19948 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19949 | bool result; | |
19950 | void *argp1 = 0 ; | |
19951 | int res1 = 0 ; | |
19952 | PyObject *swig_obj[1] ; | |
19953 | ||
19954 | if (!args) SWIG_fail; | |
19955 | swig_obj[0] = args; | |
19956 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19957 | if (!SWIG_IsOK(res1)) { | |
19958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19959 | } | |
19960 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19961 | { | |
19962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19963 | result = (bool)(arg1)->DeleteAllPages(); | |
19964 | wxPyEndAllowThreads(__tstate); | |
19965 | if (PyErr_Occurred()) SWIG_fail; | |
19966 | } | |
19967 | { | |
19968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19969 | } | |
19970 | return resultobj; | |
19971 | fail: | |
19972 | return NULL; | |
19973 | } | |
19974 | ||
19975 | ||
19976 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19977 | PyObject *resultobj = 0; | |
19978 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19979 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19980 | wxString *arg3 = 0 ; | |
19981 | bool arg4 = (bool) false ; | |
19982 | int arg5 = (int) -1 ; | |
19983 | bool result; | |
19984 | void *argp1 = 0 ; | |
19985 | int res1 = 0 ; | |
19986 | void *argp2 = 0 ; | |
19987 | int res2 = 0 ; | |
19988 | bool temp3 = false ; | |
19989 | bool val4 ; | |
19990 | int ecode4 = 0 ; | |
19991 | int val5 ; | |
19992 | int ecode5 = 0 ; | |
19993 | PyObject * obj0 = 0 ; | |
19994 | PyObject * obj1 = 0 ; | |
19995 | PyObject * obj2 = 0 ; | |
19996 | PyObject * obj3 = 0 ; | |
19997 | PyObject * obj4 = 0 ; | |
19998 | char * kwnames[] = { | |
19999 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
20000 | }; | |
20001 | ||
20002 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20003 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20004 | if (!SWIG_IsOK(res1)) { | |
20005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20006 | } | |
20007 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20008 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20009 | if (!SWIG_IsOK(res2)) { | |
20010 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20011 | } | |
20012 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20013 | { | |
20014 | arg3 = wxString_in_helper(obj2); | |
20015 | if (arg3 == NULL) SWIG_fail; | |
20016 | temp3 = true; | |
20017 | } | |
20018 | if (obj3) { | |
20019 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
20020 | if (!SWIG_IsOK(ecode4)) { | |
20021 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'"); | |
20022 | } | |
20023 | arg4 = static_cast< bool >(val4); | |
20024 | } | |
20025 | if (obj4) { | |
20026 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20027 | if (!SWIG_IsOK(ecode5)) { | |
20028 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'"); | |
20029 | } | |
20030 | arg5 = static_cast< int >(val5); | |
20031 | } | |
20032 | { | |
20033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20034 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
20035 | wxPyEndAllowThreads(__tstate); | |
20036 | if (PyErr_Occurred()) SWIG_fail; | |
20037 | } | |
20038 | { | |
20039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20040 | } | |
20041 | { | |
20042 | if (temp3) | |
20043 | delete arg3; | |
20044 | } | |
20045 | return resultobj; | |
20046 | fail: | |
20047 | { | |
20048 | if (temp3) | |
20049 | delete arg3; | |
20050 | } | |
20051 | return NULL; | |
20052 | } | |
20053 | ||
20054 | ||
20055 | SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20056 | PyObject *resultobj = 0; | |
20057 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20058 | size_t arg2 ; | |
20059 | wxWindow *arg3 = (wxWindow *) 0 ; | |
20060 | wxString *arg4 = 0 ; | |
20061 | bool arg5 = (bool) false ; | |
20062 | int arg6 = (int) -1 ; | |
20063 | bool result; | |
20064 | void *argp1 = 0 ; | |
20065 | int res1 = 0 ; | |
20066 | size_t val2 ; | |
20067 | int ecode2 = 0 ; | |
20068 | void *argp3 = 0 ; | |
20069 | int res3 = 0 ; | |
20070 | bool temp4 = false ; | |
20071 | bool val5 ; | |
20072 | int ecode5 = 0 ; | |
20073 | int val6 ; | |
20074 | int ecode6 = 0 ; | |
20075 | PyObject * obj0 = 0 ; | |
20076 | PyObject * obj1 = 0 ; | |
20077 | PyObject * obj2 = 0 ; | |
20078 | PyObject * obj3 = 0 ; | |
20079 | PyObject * obj4 = 0 ; | |
20080 | PyObject * obj5 = 0 ; | |
20081 | char * kwnames[] = { | |
20082 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
20083 | }; | |
20084 | ||
20085 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20086 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20087 | if (!SWIG_IsOK(res1)) { | |
20088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20089 | } | |
20090 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20091 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
20092 | if (!SWIG_IsOK(ecode2)) { | |
20093 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'"); | |
20094 | } | |
20095 | arg2 = static_cast< size_t >(val2); | |
20096 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20097 | if (!SWIG_IsOK(res3)) { | |
20098 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
20099 | } | |
20100 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
20101 | { | |
20102 | arg4 = wxString_in_helper(obj3); | |
20103 | if (arg4 == NULL) SWIG_fail; | |
20104 | temp4 = true; | |
20105 | } | |
20106 | if (obj4) { | |
20107 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
20108 | if (!SWIG_IsOK(ecode5)) { | |
20109 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'"); | |
20110 | } | |
20111 | arg5 = static_cast< bool >(val5); | |
20112 | } | |
20113 | if (obj5) { | |
20114 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20115 | if (!SWIG_IsOK(ecode6)) { | |
20116 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'"); | |
20117 | } | |
20118 | arg6 = static_cast< int >(val6); | |
20119 | } | |
20120 | { | |
20121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20122 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
20123 | wxPyEndAllowThreads(__tstate); | |
20124 | if (PyErr_Occurred()) SWIG_fail; | |
20125 | } | |
20126 | { | |
20127 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20128 | } | |
20129 | { | |
20130 | if (temp4) | |
20131 | delete arg4; | |
20132 | } | |
20133 | return resultobj; | |
20134 | fail: | |
20135 | { | |
20136 | if (temp4) | |
20137 | delete arg4; | |
20138 | } | |
20139 | return NULL; | |
20140 | } | |
20141 | ||
20142 | ||
20143 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20144 | PyObject *resultobj = 0; | |
20145 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20146 | size_t arg2 ; | |
20147 | int result; | |
20148 | void *argp1 = 0 ; | |
20149 | int res1 = 0 ; | |
20150 | size_t val2 ; | |
20151 | int ecode2 = 0 ; | |
20152 | PyObject * obj0 = 0 ; | |
20153 | PyObject * obj1 = 0 ; | |
20154 | char * kwnames[] = { | |
20155 | (char *) "self",(char *) "n", NULL | |
20156 | }; | |
20157 | ||
20158 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20159 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20160 | if (!SWIG_IsOK(res1)) { | |
20161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20162 | } | |
20163 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20164 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
20165 | if (!SWIG_IsOK(ecode2)) { | |
20166 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'"); | |
20167 | } | |
20168 | arg2 = static_cast< size_t >(val2); | |
20169 | { | |
20170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20171 | result = (int)(arg1)->SetSelection(arg2); | |
20172 | wxPyEndAllowThreads(__tstate); | |
20173 | if (PyErr_Occurred()) SWIG_fail; | |
20174 | } | |
20175 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20176 | return resultobj; | |
20177 | fail: | |
20178 | return NULL; | |
20179 | } | |
20180 | ||
20181 | ||
b39fe951 RD |
20182 | SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20183 | PyObject *resultobj = 0; | |
20184 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20185 | size_t arg2 ; | |
20186 | int result; | |
20187 | void *argp1 = 0 ; | |
20188 | int res1 = 0 ; | |
20189 | size_t val2 ; | |
20190 | int ecode2 = 0 ; | |
20191 | PyObject * obj0 = 0 ; | |
20192 | PyObject * obj1 = 0 ; | |
20193 | char * kwnames[] = { | |
20194 | (char *) "self",(char *) "n", NULL | |
20195 | }; | |
20196 | ||
20197 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20198 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20199 | if (!SWIG_IsOK(res1)) { | |
20200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20201 | } | |
20202 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20203 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
20204 | if (!SWIG_IsOK(ecode2)) { | |
20205 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'"); | |
20206 | } | |
20207 | arg2 = static_cast< size_t >(val2); | |
20208 | { | |
20209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20210 | result = (int)(arg1)->ChangeSelection(arg2); | |
20211 | wxPyEndAllowThreads(__tstate); | |
20212 | if (PyErr_Occurred()) SWIG_fail; | |
20213 | } | |
20214 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20215 | return resultobj; | |
20216 | fail: | |
20217 | return NULL; | |
20218 | } | |
20219 | ||
20220 | ||
1bd55598 RD |
20221 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20222 | PyObject *resultobj = 0; | |
20223 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20224 | bool arg2 = (bool) true ; | |
20225 | void *argp1 = 0 ; | |
20226 | int res1 = 0 ; | |
20227 | bool val2 ; | |
20228 | int ecode2 = 0 ; | |
20229 | PyObject * obj0 = 0 ; | |
20230 | PyObject * obj1 = 0 ; | |
20231 | char * kwnames[] = { | |
20232 | (char *) "self",(char *) "forward", NULL | |
20233 | }; | |
20234 | ||
20235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20237 | if (!SWIG_IsOK(res1)) { | |
20238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20239 | } | |
20240 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20241 | if (obj1) { | |
20242 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
20243 | if (!SWIG_IsOK(ecode2)) { | |
20244 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'"); | |
20245 | } | |
20246 | arg2 = static_cast< bool >(val2); | |
20247 | } | |
20248 | { | |
20249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20250 | (arg1)->AdvanceSelection(arg2); | |
20251 | wxPyEndAllowThreads(__tstate); | |
20252 | if (PyErr_Occurred()) SWIG_fail; | |
20253 | } | |
20254 | resultobj = SWIG_Py_Void(); | |
20255 | return resultobj; | |
20256 | fail: | |
20257 | return NULL; | |
20258 | } | |
20259 | ||
20260 | ||
704eda0c RD |
20261 | SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20262 | PyObject *resultobj = 0; | |
20263 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20264 | wxPoint *arg2 = 0 ; | |
20265 | long *arg3 = (long *) 0 ; | |
20266 | int result; | |
20267 | void *argp1 = 0 ; | |
20268 | int res1 = 0 ; | |
20269 | wxPoint temp2 ; | |
20270 | long temp3 ; | |
20271 | int res3 = SWIG_TMPOBJ ; | |
20272 | PyObject * obj0 = 0 ; | |
20273 | PyObject * obj1 = 0 ; | |
20274 | char * kwnames[] = { | |
20275 | (char *) "self",(char *) "pt", NULL | |
20276 | }; | |
20277 | ||
20278 | arg3 = &temp3; | |
20279 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
20280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20281 | if (!SWIG_IsOK(res1)) { | |
20282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
20283 | } | |
20284 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20285 | { | |
20286 | arg2 = &temp2; | |
20287 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20288 | } | |
20289 | { | |
20290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20291 | result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
20292 | wxPyEndAllowThreads(__tstate); | |
20293 | if (PyErr_Occurred()) SWIG_fail; | |
20294 | } | |
20295 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20296 | if (SWIG_IsTmpObj(res3)) { | |
20297 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
20298 | } else { | |
20299 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20300 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
20301 | } | |
20302 | return resultobj; | |
20303 | fail: | |
20304 | return NULL; | |
20305 | } | |
20306 | ||
20307 | ||
1bd55598 RD |
20308 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20309 | PyObject *resultobj = 0; | |
20310 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
20311 | SwigValueWrapper<wxVisualAttributes > result; | |
20312 | int val1 ; | |
20313 | int ecode1 = 0 ; | |
20314 | PyObject * obj0 = 0 ; | |
20315 | char * kwnames[] = { | |
20316 | (char *) "variant", NULL | |
20317 | }; | |
20318 | ||
20319 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
20320 | if (obj0) { | |
20321 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20322 | if (!SWIG_IsOK(ecode1)) { | |
20323 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
20324 | } | |
20325 | arg1 = static_cast< wxWindowVariant >(val1); | |
20326 | } | |
20327 | { | |
20328 | if (!wxPyCheckForApp()) SWIG_fail; | |
20329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20330 | result = wxBookCtrlBase::GetClassDefaultAttributes(arg1); | |
20331 | wxPyEndAllowThreads(__tstate); | |
20332 | if (PyErr_Occurred()) SWIG_fail; | |
20333 | } | |
20334 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
20335 | return resultobj; | |
20336 | fail: | |
20337 | return NULL; | |
20338 | } | |
20339 | ||
20340 | ||
20341 | SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20342 | PyObject *obj; | |
20343 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20344 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj)); | |
20345 | return SWIG_Py_Void(); | |
20346 | } | |
20347 | ||
20348 | SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20349 | PyObject *resultobj = 0; | |
20350 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20351 | int arg2 = (int) 0 ; | |
20352 | int arg3 = (int) -1 ; | |
20353 | int arg4 = (int) -1 ; | |
20354 | wxBookCtrlBaseEvent *result = 0 ; | |
20355 | int val1 ; | |
20356 | int ecode1 = 0 ; | |
20357 | int val2 ; | |
20358 | int ecode2 = 0 ; | |
20359 | int val3 ; | |
20360 | int ecode3 = 0 ; | |
20361 | int val4 ; | |
20362 | int ecode4 = 0 ; | |
20363 | PyObject * obj0 = 0 ; | |
20364 | PyObject * obj1 = 0 ; | |
20365 | PyObject * obj2 = 0 ; | |
20366 | PyObject * obj3 = 0 ; | |
20367 | char * kwnames[] = { | |
20368 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
20369 | }; | |
20370 | ||
20371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20372 | if (obj0) { | |
20373 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20374 | if (!SWIG_IsOK(ecode1)) { | |
20375 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
20376 | } | |
20377 | arg1 = static_cast< wxEventType >(val1); | |
20378 | } | |
20379 | if (obj1) { | |
20380 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20381 | if (!SWIG_IsOK(ecode2)) { | |
20382 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'"); | |
20383 | } | |
20384 | arg2 = static_cast< int >(val2); | |
20385 | } | |
20386 | if (obj2) { | |
20387 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20388 | if (!SWIG_IsOK(ecode3)) { | |
20389 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'"); | |
20390 | } | |
20391 | arg3 = static_cast< int >(val3); | |
20392 | } | |
20393 | if (obj3) { | |
20394 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20395 | if (!SWIG_IsOK(ecode4)) { | |
20396 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'"); | |
20397 | } | |
20398 | arg4 = static_cast< int >(val4); | |
20399 | } | |
20400 | { | |
20401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20402 | result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4); | |
20403 | wxPyEndAllowThreads(__tstate); | |
20404 | if (PyErr_Occurred()) SWIG_fail; | |
20405 | } | |
20406 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 ); | |
20407 | return resultobj; | |
20408 | fail: | |
20409 | return NULL; | |
d55e5bfc RD |
20410 | } |
20411 | ||
20412 | ||
1bd55598 RD |
20413 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20414 | PyObject *resultobj = 0; | |
20415 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20416 | int result; | |
20417 | void *argp1 = 0 ; | |
20418 | int res1 = 0 ; | |
20419 | PyObject *swig_obj[1] ; | |
20420 | ||
20421 | if (!args) SWIG_fail; | |
20422 | swig_obj[0] = args; | |
20423 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20424 | if (!SWIG_IsOK(res1)) { | |
20425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'"); | |
20426 | } | |
20427 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20428 | { | |
20429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20430 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection(); | |
20431 | wxPyEndAllowThreads(__tstate); | |
20432 | if (PyErr_Occurred()) SWIG_fail; | |
20433 | } | |
20434 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20435 | return resultobj; | |
20436 | fail: | |
20437 | return NULL; | |
20438 | } | |
20439 | ||
20440 | ||
20441 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20442 | PyObject *resultobj = 0; | |
20443 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20444 | int arg2 ; | |
20445 | void *argp1 = 0 ; | |
20446 | int res1 = 0 ; | |
20447 | int val2 ; | |
20448 | int ecode2 = 0 ; | |
20449 | PyObject * obj0 = 0 ; | |
20450 | PyObject * obj1 = 0 ; | |
20451 | char * kwnames[] = { | |
20452 | (char *) "self",(char *) "nSel", NULL | |
20453 | }; | |
20454 | ||
20455 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20456 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20457 | if (!SWIG_IsOK(res1)) { | |
20458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'"); | |
20459 | } | |
20460 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20461 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20462 | if (!SWIG_IsOK(ecode2)) { | |
20463 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
20464 | } | |
20465 | arg2 = static_cast< int >(val2); | |
20466 | { | |
20467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20468 | (arg1)->SetSelection(arg2); | |
20469 | wxPyEndAllowThreads(__tstate); | |
20470 | if (PyErr_Occurred()) SWIG_fail; | |
20471 | } | |
20472 | resultobj = SWIG_Py_Void(); | |
20473 | return resultobj; | |
20474 | fail: | |
20475 | return NULL; | |
d55e5bfc RD |
20476 | } |
20477 | ||
20478 | ||
1bd55598 RD |
20479 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20480 | PyObject *resultobj = 0; | |
20481 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20482 | int result; | |
20483 | void *argp1 = 0 ; | |
20484 | int res1 = 0 ; | |
20485 | PyObject *swig_obj[1] ; | |
20486 | ||
20487 | if (!args) SWIG_fail; | |
20488 | swig_obj[0] = args; | |
20489 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20490 | if (!SWIG_IsOK(res1)) { | |
20491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'"); | |
20492 | } | |
20493 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20494 | { | |
20495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20496 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection(); | |
20497 | wxPyEndAllowThreads(__tstate); | |
20498 | if (PyErr_Occurred()) SWIG_fail; | |
20499 | } | |
20500 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20501 | return resultobj; | |
20502 | fail: | |
20503 | return NULL; | |
20504 | } | |
20505 | ||
20506 | ||
20507 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20508 | PyObject *resultobj = 0; | |
20509 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20510 | int arg2 ; | |
20511 | void *argp1 = 0 ; | |
20512 | int res1 = 0 ; | |
20513 | int val2 ; | |
20514 | int ecode2 = 0 ; | |
20515 | PyObject * obj0 = 0 ; | |
20516 | PyObject * obj1 = 0 ; | |
20517 | char * kwnames[] = { | |
20518 | (char *) "self",(char *) "nOldSel", NULL | |
20519 | }; | |
20520 | ||
20521 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20522 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20523 | if (!SWIG_IsOK(res1)) { | |
20524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'"); | |
20525 | } | |
20526 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20527 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20528 | if (!SWIG_IsOK(ecode2)) { | |
20529 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'"); | |
20530 | } | |
20531 | arg2 = static_cast< int >(val2); | |
20532 | { | |
20533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20534 | (arg1)->SetOldSelection(arg2); | |
20535 | wxPyEndAllowThreads(__tstate); | |
20536 | if (PyErr_Occurred()) SWIG_fail; | |
20537 | } | |
20538 | resultobj = SWIG_Py_Void(); | |
20539 | return resultobj; | |
20540 | fail: | |
20541 | return NULL; | |
20542 | } | |
20543 | ||
20544 | ||
20545 | SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20546 | PyObject *obj; | |
20547 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20548 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj)); | |
20549 | return SWIG_Py_Void(); | |
20550 | } | |
20551 | ||
20552 | SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20553 | return SWIG_Python_InitShadowInstance(args); | |
20554 | } | |
20555 | ||
20556 | SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20557 | PyObject *resultobj = 0; | |
20558 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20559 | int arg2 = (int) -1 ; | |
20560 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20561 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20562 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20563 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20564 | long arg5 = (long) 0 ; | |
20565 | wxString const &arg6_defvalue = wxPyNotebookNameStr ; | |
20566 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20567 | wxNotebook *result = 0 ; | |
20568 | void *argp1 = 0 ; | |
20569 | int res1 = 0 ; | |
20570 | int val2 ; | |
20571 | int ecode2 = 0 ; | |
20572 | wxPoint temp3 ; | |
20573 | wxSize temp4 ; | |
20574 | long val5 ; | |
20575 | int ecode5 = 0 ; | |
20576 | bool temp6 = false ; | |
20577 | PyObject * obj0 = 0 ; | |
20578 | PyObject * obj1 = 0 ; | |
20579 | PyObject * obj2 = 0 ; | |
20580 | PyObject * obj3 = 0 ; | |
20581 | PyObject * obj4 = 0 ; | |
20582 | PyObject * obj5 = 0 ; | |
20583 | char * kwnames[] = { | |
20584 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20585 | }; | |
20586 | ||
20587 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20588 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20589 | if (!SWIG_IsOK(res1)) { | |
20590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20591 | } | |
20592 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20593 | if (obj1) { | |
20594 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20595 | if (!SWIG_IsOK(ecode2)) { | |
20596 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'"); | |
20597 | } | |
20598 | arg2 = static_cast< int >(val2); | |
20599 | } | |
20600 | if (obj2) { | |
20601 | { | |
20602 | arg3 = &temp3; | |
20603 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 20604 | } |
1bd55598 RD |
20605 | } |
20606 | if (obj3) { | |
d55e5bfc | 20607 | { |
1bd55598 RD |
20608 | arg4 = &temp4; |
20609 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 20610 | } |
1bd55598 RD |
20611 | } |
20612 | if (obj4) { | |
20613 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
20614 | if (!SWIG_IsOK(ecode5)) { | |
20615 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'"); | |
20616 | } | |
20617 | arg5 = static_cast< long >(val5); | |
20618 | } | |
20619 | if (obj5) { | |
d55e5bfc | 20620 | { |
1bd55598 RD |
20621 | arg6 = wxString_in_helper(obj5); |
20622 | if (arg6 == NULL) SWIG_fail; | |
20623 | temp6 = true; | |
d55e5bfc | 20624 | } |
1bd55598 RD |
20625 | } |
20626 | { | |
20627 | if (!wxPyCheckForApp()) SWIG_fail; | |
20628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20629 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20630 | wxPyEndAllowThreads(__tstate); | |
20631 | if (PyErr_Occurred()) SWIG_fail; | |
20632 | } | |
20633 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 ); | |
20634 | { | |
20635 | if (temp6) | |
20636 | delete arg6; | |
20637 | } | |
20638 | return resultobj; | |
20639 | fail: | |
20640 | { | |
20641 | if (temp6) | |
20642 | delete arg6; | |
20643 | } | |
20644 | return NULL; | |
20645 | } | |
20646 | ||
20647 | ||
20648 | SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20649 | PyObject *resultobj = 0; | |
20650 | wxNotebook *result = 0 ; | |
20651 | ||
20652 | if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail; | |
20653 | { | |
20654 | if (!wxPyCheckForApp()) SWIG_fail; | |
20655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20656 | result = (wxNotebook *)new wxNotebook(); | |
20657 | wxPyEndAllowThreads(__tstate); | |
20658 | if (PyErr_Occurred()) SWIG_fail; | |
20659 | } | |
20660 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 ); | |
20661 | return resultobj; | |
20662 | fail: | |
20663 | return NULL; | |
20664 | } | |
20665 | ||
20666 | ||
20667 | SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20668 | PyObject *resultobj = 0; | |
20669 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20670 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20671 | int arg3 = (int) -1 ; | |
20672 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20673 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20674 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20675 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20676 | long arg6 = (long) 0 ; | |
20677 | wxString const &arg7_defvalue = wxPyNotebookNameStr ; | |
20678 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20679 | bool result; | |
20680 | void *argp1 = 0 ; | |
20681 | int res1 = 0 ; | |
20682 | void *argp2 = 0 ; | |
20683 | int res2 = 0 ; | |
20684 | int val3 ; | |
20685 | int ecode3 = 0 ; | |
20686 | wxPoint temp4 ; | |
20687 | wxSize temp5 ; | |
20688 | long val6 ; | |
20689 | int ecode6 = 0 ; | |
20690 | bool temp7 = false ; | |
20691 | PyObject * obj0 = 0 ; | |
20692 | PyObject * obj1 = 0 ; | |
20693 | PyObject * obj2 = 0 ; | |
20694 | PyObject * obj3 = 0 ; | |
20695 | PyObject * obj4 = 0 ; | |
20696 | PyObject * obj5 = 0 ; | |
20697 | PyObject * obj6 = 0 ; | |
20698 | char * kwnames[] = { | |
20699 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20700 | }; | |
20701 | ||
20702 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20703 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20704 | if (!SWIG_IsOK(res1)) { | |
20705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20706 | } | |
20707 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20708 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20709 | if (!SWIG_IsOK(res2)) { | |
20710 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20711 | } | |
20712 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20713 | if (obj2) { | |
20714 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20715 | if (!SWIG_IsOK(ecode3)) { | |
20716 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
20717 | } | |
20718 | arg3 = static_cast< int >(val3); | |
20719 | } | |
20720 | if (obj3) { | |
d55e5bfc | 20721 | { |
1bd55598 RD |
20722 | arg4 = &temp4; |
20723 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 20724 | } |
1bd55598 RD |
20725 | } |
20726 | if (obj4) { | |
d55e5bfc | 20727 | { |
1bd55598 RD |
20728 | arg5 = &temp5; |
20729 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 20730 | } |
1bd55598 RD |
20731 | } |
20732 | if (obj5) { | |
20733 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20734 | if (!SWIG_IsOK(ecode6)) { | |
20735 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
20736 | } | |
20737 | arg6 = static_cast< long >(val6); | |
20738 | } | |
20739 | if (obj6) { | |
d55e5bfc | 20740 | { |
1bd55598 RD |
20741 | arg7 = wxString_in_helper(obj6); |
20742 | if (arg7 == NULL) SWIG_fail; | |
20743 | temp7 = true; | |
d55e5bfc | 20744 | } |
1bd55598 RD |
20745 | } |
20746 | { | |
20747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20748 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20749 | wxPyEndAllowThreads(__tstate); | |
20750 | if (PyErr_Occurred()) SWIG_fail; | |
20751 | } | |
20752 | { | |
20753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20754 | } | |
20755 | { | |
20756 | if (temp7) | |
20757 | delete arg7; | |
20758 | } | |
20759 | return resultobj; | |
20760 | fail: | |
20761 | { | |
20762 | if (temp7) | |
20763 | delete arg7; | |
20764 | } | |
20765 | return NULL; | |
d55e5bfc RD |
20766 | } |
20767 | ||
20768 | ||
1bd55598 RD |
20769 | SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20770 | PyObject *resultobj = 0; | |
20771 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20772 | int result; | |
20773 | void *argp1 = 0 ; | |
20774 | int res1 = 0 ; | |
20775 | PyObject *swig_obj[1] ; | |
20776 | ||
20777 | if (!args) SWIG_fail; | |
20778 | swig_obj[0] = args; | |
20779 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20780 | if (!SWIG_IsOK(res1)) { | |
20781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'"); | |
20782 | } | |
20783 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20784 | { | |
20785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20786 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
20787 | wxPyEndAllowThreads(__tstate); | |
20788 | if (PyErr_Occurred()) SWIG_fail; | |
20789 | } | |
20790 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20791 | return resultobj; | |
20792 | fail: | |
20793 | return NULL; | |
20794 | } | |
20795 | ||
20796 | ||
20797 | SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20798 | PyObject *resultobj = 0; | |
20799 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20800 | wxSize *arg2 = 0 ; | |
20801 | void *argp1 = 0 ; | |
20802 | int res1 = 0 ; | |
20803 | wxSize temp2 ; | |
20804 | PyObject * obj0 = 0 ; | |
20805 | PyObject * obj1 = 0 ; | |
20806 | char * kwnames[] = { | |
20807 | (char *) "self",(char *) "padding", NULL | |
20808 | }; | |
20809 | ||
20810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail; | |
20811 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20812 | if (!SWIG_IsOK(res1)) { | |
20813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20814 | } | |
20815 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20816 | { | |
20817 | arg2 = &temp2; | |
20818 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20819 | } | |
20820 | { | |
20821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20822 | (arg1)->SetPadding((wxSize const &)*arg2); | |
20823 | wxPyEndAllowThreads(__tstate); | |
20824 | if (PyErr_Occurred()) SWIG_fail; | |
20825 | } | |
20826 | resultobj = SWIG_Py_Void(); | |
20827 | return resultobj; | |
20828 | fail: | |
20829 | return NULL; | |
20830 | } | |
20831 | ||
20832 | ||
20833 | SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20834 | PyObject *resultobj = 0; | |
20835 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20836 | wxSize *arg2 = 0 ; | |
20837 | void *argp1 = 0 ; | |
20838 | int res1 = 0 ; | |
20839 | wxSize temp2 ; | |
20840 | PyObject * obj0 = 0 ; | |
20841 | PyObject * obj1 = 0 ; | |
20842 | char * kwnames[] = { | |
20843 | (char *) "self",(char *) "sz", NULL | |
20844 | }; | |
20845 | ||
20846 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
20847 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20848 | if (!SWIG_IsOK(res1)) { | |
20849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20850 | } | |
20851 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20852 | { | |
20853 | arg2 = &temp2; | |
20854 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20855 | } | |
20856 | { | |
20857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20858 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
20859 | wxPyEndAllowThreads(__tstate); | |
20860 | if (PyErr_Occurred()) SWIG_fail; | |
20861 | } | |
20862 | resultobj = SWIG_Py_Void(); | |
20863 | return resultobj; | |
20864 | fail: | |
20865 | return NULL; | |
20866 | } | |
20867 | ||
20868 | ||
1bd55598 RD |
20869 | SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20870 | PyObject *resultobj = 0; | |
20871 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20872 | wxColour result; | |
20873 | void *argp1 = 0 ; | |
20874 | int res1 = 0 ; | |
20875 | PyObject *swig_obj[1] ; | |
20876 | ||
20877 | if (!args) SWIG_fail; | |
20878 | swig_obj[0] = args; | |
20879 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20880 | if (!SWIG_IsOK(res1)) { | |
20881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'"); | |
20882 | } | |
20883 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20884 | { | |
20885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20886 | result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour(); | |
20887 | wxPyEndAllowThreads(__tstate); | |
20888 | if (PyErr_Occurred()) SWIG_fail; | |
20889 | } | |
20890 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
20891 | return resultobj; | |
20892 | fail: | |
20893 | return NULL; | |
20894 | } | |
20895 | ||
20896 | ||
20897 | SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20898 | PyObject *resultobj = 0; | |
20899 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
20900 | SwigValueWrapper<wxVisualAttributes > result; | |
20901 | int val1 ; | |
20902 | int ecode1 = 0 ; | |
20903 | PyObject * obj0 = 0 ; | |
20904 | char * kwnames[] = { | |
20905 | (char *) "variant", NULL | |
20906 | }; | |
20907 | ||
20908 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
20909 | if (obj0) { | |
20910 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20911 | if (!SWIG_IsOK(ecode1)) { | |
20912 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
20913 | } | |
20914 | arg1 = static_cast< wxWindowVariant >(val1); | |
20915 | } | |
20916 | { | |
20917 | if (!wxPyCheckForApp()) SWIG_fail; | |
20918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20919 | result = wxNotebook::GetClassDefaultAttributes(arg1); | |
20920 | wxPyEndAllowThreads(__tstate); | |
20921 | if (PyErr_Occurred()) SWIG_fail; | |
20922 | } | |
20923 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
20924 | return resultobj; | |
20925 | fail: | |
20926 | return NULL; | |
20927 | } | |
20928 | ||
20929 | ||
b39fe951 RD |
20930 | SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20931 | PyObject *resultobj = 0; | |
20932 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20933 | int arg2 ; | |
20934 | bool result; | |
20935 | void *argp1 = 0 ; | |
20936 | int res1 = 0 ; | |
20937 | int val2 ; | |
20938 | int ecode2 = 0 ; | |
20939 | PyObject * obj0 = 0 ; | |
20940 | PyObject * obj1 = 0 ; | |
20941 | char * kwnames[] = { | |
20942 | (char *) "self",(char *) "nPage", NULL | |
20943 | }; | |
20944 | ||
20945 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
20946 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20947 | if (!SWIG_IsOK(res1)) { | |
20948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20949 | } | |
20950 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20951 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20952 | if (!SWIG_IsOK(ecode2)) { | |
20953 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'"); | |
20954 | } | |
20955 | arg2 = static_cast< int >(val2); | |
20956 | { | |
20957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20958 | result = (bool)(arg1)->SendPageChangingEvent(arg2); | |
20959 | wxPyEndAllowThreads(__tstate); | |
20960 | if (PyErr_Occurred()) SWIG_fail; | |
20961 | } | |
20962 | { | |
20963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20964 | } | |
20965 | return resultobj; | |
20966 | fail: | |
20967 | return NULL; | |
20968 | } | |
20969 | ||
20970 | ||
20971 | SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20972 | PyObject *resultobj = 0; | |
20973 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20974 | int arg2 ; | |
20975 | int arg3 = (int) -1 ; | |
20976 | void *argp1 = 0 ; | |
20977 | int res1 = 0 ; | |
20978 | int val2 ; | |
20979 | int ecode2 = 0 ; | |
20980 | int val3 ; | |
20981 | int ecode3 = 0 ; | |
20982 | PyObject * obj0 = 0 ; | |
20983 | PyObject * obj1 = 0 ; | |
20984 | PyObject * obj2 = 0 ; | |
20985 | char * kwnames[] = { | |
20986 | (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL | |
20987 | }; | |
20988 | ||
20989 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20991 | if (!SWIG_IsOK(res1)) { | |
20992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20993 | } | |
20994 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20995 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20996 | if (!SWIG_IsOK(ecode2)) { | |
20997 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'"); | |
20998 | } | |
20999 | arg2 = static_cast< int >(val2); | |
21000 | if (obj2) { | |
21001 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21002 | if (!SWIG_IsOK(ecode3)) { | |
21003 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'"); | |
21004 | } | |
21005 | arg3 = static_cast< int >(val3); | |
21006 | } | |
21007 | { | |
21008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21009 | (arg1)->SendPageChangedEvent(arg2,arg3); | |
21010 | wxPyEndAllowThreads(__tstate); | |
21011 | if (PyErr_Occurred()) SWIG_fail; | |
21012 | } | |
21013 | resultobj = SWIG_Py_Void(); | |
21014 | return resultobj; | |
21015 | fail: | |
21016 | return NULL; | |
21017 | } | |
21018 | ||
21019 | ||
1bd55598 RD |
21020 | SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21021 | PyObject *obj; | |
21022 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21023 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj)); | |
21024 | return SWIG_Py_Void(); | |
21025 | } | |
21026 | ||
21027 | SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21028 | return SWIG_Python_InitShadowInstance(args); | |
21029 | } | |
21030 | ||
21031 | SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21032 | PyObject *resultobj = 0; | |
21033 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21034 | int arg2 = (int) 0 ; | |
21035 | int arg3 = (int) -1 ; | |
21036 | int arg4 = (int) -1 ; | |
21037 | wxNotebookEvent *result = 0 ; | |
21038 | int val1 ; | |
21039 | int ecode1 = 0 ; | |
21040 | int val2 ; | |
21041 | int ecode2 = 0 ; | |
21042 | int val3 ; | |
21043 | int ecode3 = 0 ; | |
21044 | int val4 ; | |
21045 | int ecode4 = 0 ; | |
21046 | PyObject * obj0 = 0 ; | |
21047 | PyObject * obj1 = 0 ; | |
21048 | PyObject * obj2 = 0 ; | |
21049 | PyObject * obj3 = 0 ; | |
21050 | char * kwnames[] = { | |
21051 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21052 | }; | |
21053 | ||
21054 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21055 | if (obj0) { | |
21056 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21057 | if (!SWIG_IsOK(ecode1)) { | |
21058 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21059 | } | |
21060 | arg1 = static_cast< wxEventType >(val1); | |
21061 | } | |
21062 | if (obj1) { | |
21063 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21064 | if (!SWIG_IsOK(ecode2)) { | |
21065 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21066 | } | |
21067 | arg2 = static_cast< int >(val2); | |
21068 | } | |
21069 | if (obj2) { | |
21070 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21071 | if (!SWIG_IsOK(ecode3)) { | |
21072 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21073 | } | |
21074 | arg3 = static_cast< int >(val3); | |
21075 | } | |
21076 | if (obj3) { | |
21077 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21078 | if (!SWIG_IsOK(ecode4)) { | |
21079 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21080 | } | |
21081 | arg4 = static_cast< int >(val4); | |
21082 | } | |
21083 | { | |
21084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21085 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
21086 | wxPyEndAllowThreads(__tstate); | |
21087 | if (PyErr_Occurred()) SWIG_fail; | |
21088 | } | |
21089 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 ); | |
21090 | return resultobj; | |
21091 | fail: | |
21092 | return NULL; | |
21093 | } | |
21094 | ||
21095 | ||
21096 | SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21097 | PyObject *obj; | |
21098 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21099 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj)); | |
21100 | return SWIG_Py_Void(); | |
21101 | } | |
21102 | ||
21103 | SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21104 | return SWIG_Python_InitShadowInstance(args); | |
21105 | } | |
21106 | ||
21107 | SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21108 | PyObject *resultobj = 0; | |
21109 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21110 | int arg2 = (int) -1 ; | |
21111 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21112 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21113 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21114 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21115 | long arg5 = (long) 0 ; | |
21116 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21117 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21118 | wxListbook *result = 0 ; | |
21119 | void *argp1 = 0 ; | |
21120 | int res1 = 0 ; | |
21121 | int val2 ; | |
21122 | int ecode2 = 0 ; | |
21123 | wxPoint temp3 ; | |
21124 | wxSize temp4 ; | |
21125 | long val5 ; | |
21126 | int ecode5 = 0 ; | |
21127 | bool temp6 = false ; | |
21128 | PyObject * obj0 = 0 ; | |
21129 | PyObject * obj1 = 0 ; | |
21130 | PyObject * obj2 = 0 ; | |
21131 | PyObject * obj3 = 0 ; | |
21132 | PyObject * obj4 = 0 ; | |
21133 | PyObject * obj5 = 0 ; | |
21134 | char * kwnames[] = { | |
21135 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21136 | }; | |
21137 | ||
21138 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21139 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21140 | if (!SWIG_IsOK(res1)) { | |
21141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21142 | } | |
21143 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21144 | if (obj1) { | |
21145 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21146 | if (!SWIG_IsOK(ecode2)) { | |
21147 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'"); | |
21148 | } | |
21149 | arg2 = static_cast< int >(val2); | |
21150 | } | |
21151 | if (obj2) { | |
d55e5bfc | 21152 | { |
1bd55598 RD |
21153 | arg3 = &temp3; |
21154 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 21155 | } |
1bd55598 RD |
21156 | } |
21157 | if (obj3) { | |
d55e5bfc | 21158 | { |
1bd55598 RD |
21159 | arg4 = &temp4; |
21160 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 21161 | } |
1bd55598 RD |
21162 | } |
21163 | if (obj4) { | |
21164 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21165 | if (!SWIG_IsOK(ecode5)) { | |
21166 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'"); | |
21167 | } | |
21168 | arg5 = static_cast< long >(val5); | |
21169 | } | |
21170 | if (obj5) { | |
d55e5bfc | 21171 | { |
1bd55598 RD |
21172 | arg6 = wxString_in_helper(obj5); |
21173 | if (arg6 == NULL) SWIG_fail; | |
21174 | temp6 = true; | |
d55e5bfc | 21175 | } |
1bd55598 RD |
21176 | } |
21177 | { | |
21178 | if (!wxPyCheckForApp()) SWIG_fail; | |
21179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21180 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21181 | wxPyEndAllowThreads(__tstate); | |
21182 | if (PyErr_Occurred()) SWIG_fail; | |
21183 | } | |
21184 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 ); | |
21185 | { | |
21186 | if (temp6) | |
21187 | delete arg6; | |
21188 | } | |
21189 | return resultobj; | |
21190 | fail: | |
21191 | { | |
21192 | if (temp6) | |
21193 | delete arg6; | |
21194 | } | |
21195 | return NULL; | |
21196 | } | |
21197 | ||
21198 | ||
21199 | SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21200 | PyObject *resultobj = 0; | |
21201 | wxListbook *result = 0 ; | |
21202 | ||
21203 | if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail; | |
21204 | { | |
21205 | if (!wxPyCheckForApp()) SWIG_fail; | |
21206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21207 | result = (wxListbook *)new wxListbook(); | |
21208 | wxPyEndAllowThreads(__tstate); | |
21209 | if (PyErr_Occurred()) SWIG_fail; | |
21210 | } | |
21211 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 ); | |
21212 | return resultobj; | |
21213 | fail: | |
21214 | return NULL; | |
21215 | } | |
21216 | ||
21217 | ||
21218 | SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21219 | PyObject *resultobj = 0; | |
21220 | wxListbook *arg1 = (wxListbook *) 0 ; | |
21221 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21222 | int arg3 = (int) -1 ; | |
21223 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21224 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21225 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21226 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21227 | long arg6 = (long) 0 ; | |
21228 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
21229 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21230 | bool result; | |
21231 | void *argp1 = 0 ; | |
21232 | int res1 = 0 ; | |
21233 | void *argp2 = 0 ; | |
21234 | int res2 = 0 ; | |
21235 | int val3 ; | |
21236 | int ecode3 = 0 ; | |
21237 | wxPoint temp4 ; | |
21238 | wxSize temp5 ; | |
21239 | long val6 ; | |
21240 | int ecode6 = 0 ; | |
21241 | bool temp7 = false ; | |
21242 | PyObject * obj0 = 0 ; | |
21243 | PyObject * obj1 = 0 ; | |
21244 | PyObject * obj2 = 0 ; | |
21245 | PyObject * obj3 = 0 ; | |
21246 | PyObject * obj4 = 0 ; | |
21247 | PyObject * obj5 = 0 ; | |
21248 | PyObject * obj6 = 0 ; | |
21249 | char * kwnames[] = { | |
21250 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21251 | }; | |
21252 | ||
21253 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21254 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 ); | |
21255 | if (!SWIG_IsOK(res1)) { | |
21256 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'"); | |
21257 | } | |
21258 | arg1 = reinterpret_cast< wxListbook * >(argp1); | |
21259 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21260 | if (!SWIG_IsOK(res2)) { | |
21261 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21262 | } | |
21263 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21264 | if (obj2) { | |
21265 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21266 | if (!SWIG_IsOK(ecode3)) { | |
21267 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'"); | |
21268 | } | |
21269 | arg3 = static_cast< int >(val3); | |
21270 | } | |
21271 | if (obj3) { | |
d55e5bfc | 21272 | { |
1bd55598 RD |
21273 | arg4 = &temp4; |
21274 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 21275 | } |
1bd55598 RD |
21276 | } |
21277 | if (obj4) { | |
d55e5bfc | 21278 | { |
1bd55598 RD |
21279 | arg5 = &temp5; |
21280 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 21281 | } |
1bd55598 RD |
21282 | } |
21283 | if (obj5) { | |
21284 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21285 | if (!SWIG_IsOK(ecode6)) { | |
21286 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'"); | |
21287 | } | |
21288 | arg6 = static_cast< long >(val6); | |
21289 | } | |
21290 | if (obj6) { | |
d55e5bfc | 21291 | { |
1bd55598 RD |
21292 | arg7 = wxString_in_helper(obj6); |
21293 | if (arg7 == NULL) SWIG_fail; | |
21294 | temp7 = true; | |
d55e5bfc | 21295 | } |
1bd55598 RD |
21296 | } |
21297 | { | |
21298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21299 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21300 | wxPyEndAllowThreads(__tstate); | |
21301 | if (PyErr_Occurred()) SWIG_fail; | |
21302 | } | |
21303 | { | |
21304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21305 | } | |
21306 | { | |
21307 | if (temp7) | |
21308 | delete arg7; | |
21309 | } | |
21310 | return resultobj; | |
21311 | fail: | |
21312 | { | |
21313 | if (temp7) | |
21314 | delete arg7; | |
21315 | } | |
21316 | return NULL; | |
d55e5bfc RD |
21317 | } |
21318 | ||
21319 | ||
1bd55598 RD |
21320 | SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21321 | PyObject *resultobj = 0; | |
21322 | wxListbook *arg1 = (wxListbook *) 0 ; | |
21323 | wxListView *result = 0 ; | |
21324 | void *argp1 = 0 ; | |
21325 | int res1 = 0 ; | |
21326 | PyObject *swig_obj[1] ; | |
21327 | ||
21328 | if (!args) SWIG_fail; | |
21329 | swig_obj[0] = args; | |
21330 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 ); | |
21331 | if (!SWIG_IsOK(res1)) { | |
21332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'"); | |
21333 | } | |
21334 | arg1 = reinterpret_cast< wxListbook * >(argp1); | |
21335 | { | |
21336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21337 | result = (wxListView *)(arg1)->GetListView(); | |
21338 | wxPyEndAllowThreads(__tstate); | |
21339 | if (PyErr_Occurred()) SWIG_fail; | |
21340 | } | |
21341 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 ); | |
21342 | return resultobj; | |
21343 | fail: | |
21344 | return NULL; | |
21345 | } | |
21346 | ||
21347 | ||
21348 | SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21349 | PyObject *obj; | |
21350 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21351 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj)); | |
21352 | return SWIG_Py_Void(); | |
21353 | } | |
21354 | ||
21355 | SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21356 | return SWIG_Python_InitShadowInstance(args); | |
21357 | } | |
21358 | ||
21359 | SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21360 | PyObject *resultobj = 0; | |
21361 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21362 | int arg2 = (int) 0 ; | |
21363 | int arg3 = (int) -1 ; | |
21364 | int arg4 = (int) -1 ; | |
21365 | wxListbookEvent *result = 0 ; | |
21366 | int val1 ; | |
21367 | int ecode1 = 0 ; | |
21368 | int val2 ; | |
21369 | int ecode2 = 0 ; | |
21370 | int val3 ; | |
21371 | int ecode3 = 0 ; | |
21372 | int val4 ; | |
21373 | int ecode4 = 0 ; | |
21374 | PyObject * obj0 = 0 ; | |
21375 | PyObject * obj1 = 0 ; | |
21376 | PyObject * obj2 = 0 ; | |
21377 | PyObject * obj3 = 0 ; | |
21378 | char * kwnames[] = { | |
21379 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21380 | }; | |
21381 | ||
21382 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21383 | if (obj0) { | |
21384 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21385 | if (!SWIG_IsOK(ecode1)) { | |
21386 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21387 | } | |
21388 | arg1 = static_cast< wxEventType >(val1); | |
21389 | } | |
21390 | if (obj1) { | |
21391 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21392 | if (!SWIG_IsOK(ecode2)) { | |
21393 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21394 | } | |
21395 | arg2 = static_cast< int >(val2); | |
21396 | } | |
21397 | if (obj2) { | |
21398 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21399 | if (!SWIG_IsOK(ecode3)) { | |
21400 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21401 | } | |
21402 | arg3 = static_cast< int >(val3); | |
21403 | } | |
21404 | if (obj3) { | |
21405 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21406 | if (!SWIG_IsOK(ecode4)) { | |
21407 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21408 | } | |
21409 | arg4 = static_cast< int >(val4); | |
21410 | } | |
21411 | { | |
21412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21413 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
21414 | wxPyEndAllowThreads(__tstate); | |
21415 | if (PyErr_Occurred()) SWIG_fail; | |
21416 | } | |
21417 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 ); | |
21418 | return resultobj; | |
21419 | fail: | |
21420 | return NULL; | |
21421 | } | |
21422 | ||
21423 | ||
21424 | SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21425 | PyObject *obj; | |
21426 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21427 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj)); | |
21428 | return SWIG_Py_Void(); | |
21429 | } | |
21430 | ||
21431 | SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21432 | return SWIG_Python_InitShadowInstance(args); | |
21433 | } | |
21434 | ||
21435 | SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21436 | PyObject *resultobj = 0; | |
21437 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21438 | int arg2 ; | |
21439 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21440 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21441 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21442 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21443 | long arg5 = (long) 0 ; | |
21444 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21445 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21446 | wxChoicebook *result = 0 ; | |
21447 | void *argp1 = 0 ; | |
21448 | int res1 = 0 ; | |
21449 | int val2 ; | |
21450 | int ecode2 = 0 ; | |
21451 | wxPoint temp3 ; | |
21452 | wxSize temp4 ; | |
21453 | long val5 ; | |
21454 | int ecode5 = 0 ; | |
21455 | bool temp6 = false ; | |
21456 | PyObject * obj0 = 0 ; | |
21457 | PyObject * obj1 = 0 ; | |
21458 | PyObject * obj2 = 0 ; | |
21459 | PyObject * obj3 = 0 ; | |
21460 | PyObject * obj4 = 0 ; | |
21461 | PyObject * obj5 = 0 ; | |
21462 | char * kwnames[] = { | |
21463 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21464 | }; | |
21465 | ||
21466 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21467 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21468 | if (!SWIG_IsOK(res1)) { | |
21469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21470 | } | |
21471 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21472 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21473 | if (!SWIG_IsOK(ecode2)) { | |
21474 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'"); | |
21475 | } | |
21476 | arg2 = static_cast< int >(val2); | |
21477 | if (obj2) { | |
36ed4f51 | 21478 | { |
1bd55598 RD |
21479 | arg3 = &temp3; |
21480 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 21481 | } |
1bd55598 RD |
21482 | } |
21483 | if (obj3) { | |
36ed4f51 | 21484 | { |
1bd55598 RD |
21485 | arg4 = &temp4; |
21486 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 21487 | } |
1bd55598 RD |
21488 | } |
21489 | if (obj4) { | |
21490 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21491 | if (!SWIG_IsOK(ecode5)) { | |
21492 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'"); | |
21493 | } | |
21494 | arg5 = static_cast< long >(val5); | |
21495 | } | |
21496 | if (obj5) { | |
d55e5bfc | 21497 | { |
1bd55598 RD |
21498 | arg6 = wxString_in_helper(obj5); |
21499 | if (arg6 == NULL) SWIG_fail; | |
21500 | temp6 = true; | |
d55e5bfc | 21501 | } |
1bd55598 RD |
21502 | } |
21503 | { | |
21504 | if (!wxPyCheckForApp()) SWIG_fail; | |
21505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21506 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21507 | wxPyEndAllowThreads(__tstate); | |
21508 | if (PyErr_Occurred()) SWIG_fail; | |
21509 | } | |
21510 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 ); | |
21511 | { | |
21512 | if (temp6) | |
21513 | delete arg6; | |
21514 | } | |
21515 | return resultobj; | |
21516 | fail: | |
21517 | { | |
21518 | if (temp6) | |
21519 | delete arg6; | |
21520 | } | |
21521 | return NULL; | |
d55e5bfc RD |
21522 | } |
21523 | ||
21524 | ||
1bd55598 RD |
21525 | SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21526 | PyObject *resultobj = 0; | |
21527 | wxChoicebook *result = 0 ; | |
21528 | ||
21529 | if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail; | |
21530 | { | |
21531 | if (!wxPyCheckForApp()) SWIG_fail; | |
21532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21533 | result = (wxChoicebook *)new wxChoicebook(); | |
21534 | wxPyEndAllowThreads(__tstate); | |
21535 | if (PyErr_Occurred()) SWIG_fail; | |
21536 | } | |
21537 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 ); | |
21538 | return resultobj; | |
21539 | fail: | |
21540 | return NULL; | |
21541 | } | |
21542 | ||
21543 | ||
21544 | SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21545 | PyObject *resultobj = 0; | |
21546 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
21547 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21548 | int arg3 ; | |
21549 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21550 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21551 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21552 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21553 | long arg6 = (long) 0 ; | |
21554 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
21555 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21556 | bool result; | |
21557 | void *argp1 = 0 ; | |
21558 | int res1 = 0 ; | |
21559 | void *argp2 = 0 ; | |
21560 | int res2 = 0 ; | |
21561 | int val3 ; | |
21562 | int ecode3 = 0 ; | |
21563 | wxPoint temp4 ; | |
21564 | wxSize temp5 ; | |
21565 | long val6 ; | |
21566 | int ecode6 = 0 ; | |
21567 | bool temp7 = false ; | |
21568 | PyObject * obj0 = 0 ; | |
21569 | PyObject * obj1 = 0 ; | |
21570 | PyObject * obj2 = 0 ; | |
21571 | PyObject * obj3 = 0 ; | |
21572 | PyObject * obj4 = 0 ; | |
21573 | PyObject * obj5 = 0 ; | |
21574 | PyObject * obj6 = 0 ; | |
21575 | char * kwnames[] = { | |
21576 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21577 | }; | |
21578 | ||
21579 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21580 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 ); | |
21581 | if (!SWIG_IsOK(res1)) { | |
21582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'"); | |
21583 | } | |
21584 | arg1 = reinterpret_cast< wxChoicebook * >(argp1); | |
21585 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21586 | if (!SWIG_IsOK(res2)) { | |
21587 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21588 | } | |
21589 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21590 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21591 | if (!SWIG_IsOK(ecode3)) { | |
21592 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
21593 | } | |
21594 | arg3 = static_cast< int >(val3); | |
21595 | if (obj3) { | |
d55e5bfc | 21596 | { |
1bd55598 RD |
21597 | arg4 = &temp4; |
21598 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 21599 | } |
1bd55598 RD |
21600 | } |
21601 | if (obj4) { | |
d55e5bfc | 21602 | { |
1bd55598 RD |
21603 | arg5 = &temp5; |
21604 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 21605 | } |
1bd55598 RD |
21606 | } |
21607 | if (obj5) { | |
21608 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21609 | if (!SWIG_IsOK(ecode6)) { | |
21610 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
21611 | } | |
21612 | arg6 = static_cast< long >(val6); | |
21613 | } | |
21614 | if (obj6) { | |
d55e5bfc | 21615 | { |
1bd55598 RD |
21616 | arg7 = wxString_in_helper(obj6); |
21617 | if (arg7 == NULL) SWIG_fail; | |
21618 | temp7 = true; | |
d55e5bfc | 21619 | } |
1bd55598 RD |
21620 | } |
21621 | { | |
21622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21623 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21624 | wxPyEndAllowThreads(__tstate); | |
21625 | if (PyErr_Occurred()) SWIG_fail; | |
21626 | } | |
21627 | { | |
21628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21629 | } | |
21630 | { | |
21631 | if (temp7) | |
21632 | delete arg7; | |
21633 | } | |
21634 | return resultobj; | |
21635 | fail: | |
21636 | { | |
21637 | if (temp7) | |
21638 | delete arg7; | |
21639 | } | |
21640 | return NULL; | |
d55e5bfc RD |
21641 | } |
21642 | ||
21643 | ||
1bd55598 RD |
21644 | SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21645 | PyObject *resultobj = 0; | |
21646 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
21647 | wxChoice *result = 0 ; | |
21648 | void *argp1 = 0 ; | |
21649 | int res1 = 0 ; | |
21650 | PyObject *swig_obj[1] ; | |
21651 | ||
21652 | if (!args) SWIG_fail; | |
21653 | swig_obj[0] = args; | |
21654 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 ); | |
21655 | if (!SWIG_IsOK(res1)) { | |
21656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'"); | |
21657 | } | |
21658 | arg1 = reinterpret_cast< wxChoicebook * >(argp1); | |
21659 | { | |
21660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21661 | result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl(); | |
21662 | wxPyEndAllowThreads(__tstate); | |
21663 | if (PyErr_Occurred()) SWIG_fail; | |
21664 | } | |
21665 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 ); | |
21666 | return resultobj; | |
21667 | fail: | |
21668 | return NULL; | |
21669 | } | |
21670 | ||
21671 | ||
21672 | SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21673 | PyObject *obj; | |
21674 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21675 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj)); | |
21676 | return SWIG_Py_Void(); | |
21677 | } | |
21678 | ||
21679 | SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21680 | return SWIG_Python_InitShadowInstance(args); | |
21681 | } | |
21682 | ||
21683 | SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21684 | PyObject *resultobj = 0; | |
21685 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21686 | int arg2 = (int) 0 ; | |
21687 | int arg3 = (int) -1 ; | |
21688 | int arg4 = (int) -1 ; | |
21689 | wxChoicebookEvent *result = 0 ; | |
21690 | int val1 ; | |
21691 | int ecode1 = 0 ; | |
21692 | int val2 ; | |
21693 | int ecode2 = 0 ; | |
21694 | int val3 ; | |
21695 | int ecode3 = 0 ; | |
21696 | int val4 ; | |
21697 | int ecode4 = 0 ; | |
21698 | PyObject * obj0 = 0 ; | |
21699 | PyObject * obj1 = 0 ; | |
21700 | PyObject * obj2 = 0 ; | |
21701 | PyObject * obj3 = 0 ; | |
21702 | char * kwnames[] = { | |
21703 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21704 | }; | |
21705 | ||
21706 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21707 | if (obj0) { | |
21708 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21709 | if (!SWIG_IsOK(ecode1)) { | |
21710 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21711 | } | |
21712 | arg1 = static_cast< wxEventType >(val1); | |
21713 | } | |
21714 | if (obj1) { | |
21715 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21716 | if (!SWIG_IsOK(ecode2)) { | |
21717 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21718 | } | |
21719 | arg2 = static_cast< int >(val2); | |
21720 | } | |
21721 | if (obj2) { | |
21722 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21723 | if (!SWIG_IsOK(ecode3)) { | |
21724 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21725 | } | |
21726 | arg3 = static_cast< int >(val3); | |
21727 | } | |
21728 | if (obj3) { | |
21729 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21730 | if (!SWIG_IsOK(ecode4)) { | |
21731 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21732 | } | |
21733 | arg4 = static_cast< int >(val4); | |
21734 | } | |
21735 | { | |
21736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21737 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
21738 | wxPyEndAllowThreads(__tstate); | |
21739 | if (PyErr_Occurred()) SWIG_fail; | |
21740 | } | |
21741 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 ); | |
21742 | return resultobj; | |
21743 | fail: | |
21744 | return NULL; | |
21745 | } | |
21746 | ||
21747 | ||
21748 | SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21749 | PyObject *obj; | |
21750 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21751 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj)); | |
21752 | return SWIG_Py_Void(); | |
21753 | } | |
21754 | ||
21755 | SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21756 | return SWIG_Python_InitShadowInstance(args); | |
21757 | } | |
21758 | ||
21759 | SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21760 | PyObject *resultobj = 0; | |
21761 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21762 | int arg2 ; | |
21763 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21764 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21765 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21766 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21767 | long arg5 = (long) wxBK_DEFAULT ; | |
21768 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21769 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21770 | wxTreebook *result = 0 ; | |
21771 | void *argp1 = 0 ; | |
21772 | int res1 = 0 ; | |
21773 | int val2 ; | |
21774 | int ecode2 = 0 ; | |
21775 | wxPoint temp3 ; | |
21776 | wxSize temp4 ; | |
21777 | long val5 ; | |
21778 | int ecode5 = 0 ; | |
21779 | bool temp6 = false ; | |
21780 | PyObject * obj0 = 0 ; | |
21781 | PyObject * obj1 = 0 ; | |
21782 | PyObject * obj2 = 0 ; | |
21783 | PyObject * obj3 = 0 ; | |
21784 | PyObject * obj4 = 0 ; | |
21785 | PyObject * obj5 = 0 ; | |
21786 | char * kwnames[] = { | |
21787 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21788 | }; | |
21789 | ||
21790 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21791 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21792 | if (!SWIG_IsOK(res1)) { | |
21793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21794 | } | |
21795 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21796 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21797 | if (!SWIG_IsOK(ecode2)) { | |
21798 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'"); | |
21799 | } | |
21800 | arg2 = static_cast< int >(val2); | |
21801 | if (obj2) { | |
36ed4f51 | 21802 | { |
1bd55598 RD |
21803 | arg3 = &temp3; |
21804 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 21805 | } |
1bd55598 RD |
21806 | } |
21807 | if (obj3) { | |
36ed4f51 | 21808 | { |
1bd55598 RD |
21809 | arg4 = &temp4; |
21810 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 21811 | } |
1bd55598 RD |
21812 | } |
21813 | if (obj4) { | |
21814 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21815 | if (!SWIG_IsOK(ecode5)) { | |
21816 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'"); | |
21817 | } | |
21818 | arg5 = static_cast< long >(val5); | |
21819 | } | |
21820 | if (obj5) { | |
d55e5bfc | 21821 | { |
1bd55598 RD |
21822 | arg6 = wxString_in_helper(obj5); |
21823 | if (arg6 == NULL) SWIG_fail; | |
21824 | temp6 = true; | |
d55e5bfc | 21825 | } |
1bd55598 RD |
21826 | } |
21827 | { | |
21828 | if (!wxPyCheckForApp()) SWIG_fail; | |
21829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21830 | result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21831 | wxPyEndAllowThreads(__tstate); | |
21832 | if (PyErr_Occurred()) SWIG_fail; | |
21833 | } | |
21834 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 ); | |
21835 | { | |
21836 | if (temp6) | |
21837 | delete arg6; | |
21838 | } | |
21839 | return resultobj; | |
21840 | fail: | |
21841 | { | |
21842 | if (temp6) | |
21843 | delete arg6; | |
21844 | } | |
21845 | return NULL; | |
d55e5bfc RD |
21846 | } |
21847 | ||
21848 | ||
1bd55598 RD |
21849 | SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21850 | PyObject *resultobj = 0; | |
21851 | wxTreebook *result = 0 ; | |
21852 | ||
21853 | if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail; | |
21854 | { | |
21855 | if (!wxPyCheckForApp()) SWIG_fail; | |
21856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21857 | result = (wxTreebook *)new wxTreebook(); | |
21858 | wxPyEndAllowThreads(__tstate); | |
21859 | if (PyErr_Occurred()) SWIG_fail; | |
21860 | } | |
21861 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 ); | |
21862 | return resultobj; | |
21863 | fail: | |
21864 | return NULL; | |
21865 | } | |
21866 | ||
21867 | ||
21868 | SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21869 | PyObject *resultobj = 0; | |
21870 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21871 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21872 | int arg3 ; | |
21873 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21874 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21875 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21876 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21877 | long arg6 = (long) wxBK_DEFAULT ; | |
21878 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
21879 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21880 | bool result; | |
21881 | void *argp1 = 0 ; | |
21882 | int res1 = 0 ; | |
21883 | void *argp2 = 0 ; | |
21884 | int res2 = 0 ; | |
21885 | int val3 ; | |
21886 | int ecode3 = 0 ; | |
21887 | wxPoint temp4 ; | |
21888 | wxSize temp5 ; | |
21889 | long val6 ; | |
21890 | int ecode6 = 0 ; | |
21891 | bool temp7 = false ; | |
21892 | PyObject * obj0 = 0 ; | |
21893 | PyObject * obj1 = 0 ; | |
21894 | PyObject * obj2 = 0 ; | |
21895 | PyObject * obj3 = 0 ; | |
21896 | PyObject * obj4 = 0 ; | |
21897 | PyObject * obj5 = 0 ; | |
21898 | PyObject * obj6 = 0 ; | |
21899 | char * kwnames[] = { | |
21900 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21901 | }; | |
21902 | ||
21903 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21904 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21905 | if (!SWIG_IsOK(res1)) { | |
21906 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
21907 | } | |
21908 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21909 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21910 | if (!SWIG_IsOK(res2)) { | |
21911 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21912 | } | |
21913 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21914 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21915 | if (!SWIG_IsOK(ecode3)) { | |
21916 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
21917 | } | |
21918 | arg3 = static_cast< int >(val3); | |
21919 | if (obj3) { | |
36ed4f51 | 21920 | { |
1bd55598 RD |
21921 | arg4 = &temp4; |
21922 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 21923 | } |
1bd55598 RD |
21924 | } |
21925 | if (obj4) { | |
d55e5bfc | 21926 | { |
1bd55598 RD |
21927 | arg5 = &temp5; |
21928 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 21929 | } |
1bd55598 RD |
21930 | } |
21931 | if (obj5) { | |
21932 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21933 | if (!SWIG_IsOK(ecode6)) { | |
21934 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
21935 | } | |
21936 | arg6 = static_cast< long >(val6); | |
21937 | } | |
21938 | if (obj6) { | |
36ed4f51 | 21939 | { |
1bd55598 RD |
21940 | arg7 = wxString_in_helper(obj6); |
21941 | if (arg7 == NULL) SWIG_fail; | |
21942 | temp7 = true; | |
36ed4f51 | 21943 | } |
1bd55598 RD |
21944 | } |
21945 | { | |
21946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21947 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21948 | wxPyEndAllowThreads(__tstate); | |
21949 | if (PyErr_Occurred()) SWIG_fail; | |
21950 | } | |
21951 | { | |
21952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21953 | } | |
21954 | { | |
21955 | if (temp7) | |
21956 | delete arg7; | |
21957 | } | |
21958 | return resultobj; | |
21959 | fail: | |
21960 | { | |
21961 | if (temp7) | |
21962 | delete arg7; | |
21963 | } | |
21964 | return NULL; | |
21965 | } | |
21966 | ||
21967 | ||
21968 | SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21969 | PyObject *resultobj = 0; | |
21970 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21971 | size_t arg2 ; | |
21972 | wxWindow *arg3 = (wxWindow *) 0 ; | |
21973 | wxString *arg4 = 0 ; | |
21974 | bool arg5 = (bool) false ; | |
21975 | int arg6 = (int) wxNOT_FOUND ; | |
21976 | bool result; | |
21977 | void *argp1 = 0 ; | |
21978 | int res1 = 0 ; | |
21979 | size_t val2 ; | |
21980 | int ecode2 = 0 ; | |
21981 | void *argp3 = 0 ; | |
21982 | int res3 = 0 ; | |
21983 | bool temp4 = false ; | |
21984 | bool val5 ; | |
21985 | int ecode5 = 0 ; | |
21986 | int val6 ; | |
21987 | int ecode6 = 0 ; | |
21988 | PyObject * obj0 = 0 ; | |
21989 | PyObject * obj1 = 0 ; | |
21990 | PyObject * obj2 = 0 ; | |
21991 | PyObject * obj3 = 0 ; | |
21992 | PyObject * obj4 = 0 ; | |
21993 | PyObject * obj5 = 0 ; | |
21994 | char * kwnames[] = { | |
21995 | (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
21996 | }; | |
21997 | ||
21998 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21999 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22000 | if (!SWIG_IsOK(res1)) { | |
22001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22002 | } | |
22003 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22004 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22005 | if (!SWIG_IsOK(ecode2)) { | |
22006 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'"); | |
22007 | } | |
22008 | arg2 = static_cast< size_t >(val2); | |
22009 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22010 | if (!SWIG_IsOK(res3)) { | |
22011 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
22012 | } | |
22013 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
22014 | { | |
22015 | arg4 = wxString_in_helper(obj3); | |
22016 | if (arg4 == NULL) SWIG_fail; | |
22017 | temp4 = true; | |
22018 | } | |
22019 | if (obj4) { | |
22020 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
22021 | if (!SWIG_IsOK(ecode5)) { | |
22022 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'"); | |
22023 | } | |
22024 | arg5 = static_cast< bool >(val5); | |
22025 | } | |
22026 | if (obj5) { | |
22027 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22028 | if (!SWIG_IsOK(ecode6)) { | |
22029 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'"); | |
22030 | } | |
22031 | arg6 = static_cast< int >(val6); | |
22032 | } | |
22033 | { | |
22034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22035 | result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
22036 | wxPyEndAllowThreads(__tstate); | |
22037 | if (PyErr_Occurred()) SWIG_fail; | |
22038 | } | |
22039 | { | |
22040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22041 | } | |
22042 | { | |
22043 | if (temp4) | |
22044 | delete arg4; | |
22045 | } | |
22046 | return resultobj; | |
22047 | fail: | |
22048 | { | |
22049 | if (temp4) | |
22050 | delete arg4; | |
22051 | } | |
22052 | return NULL; | |
22053 | } | |
22054 | ||
22055 | ||
22056 | SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22057 | PyObject *resultobj = 0; | |
22058 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22059 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22060 | wxString *arg3 = 0 ; | |
22061 | bool arg4 = (bool) false ; | |
22062 | int arg5 = (int) wxNOT_FOUND ; | |
22063 | bool result; | |
22064 | void *argp1 = 0 ; | |
22065 | int res1 = 0 ; | |
22066 | void *argp2 = 0 ; | |
22067 | int res2 = 0 ; | |
22068 | bool temp3 = false ; | |
22069 | bool val4 ; | |
22070 | int ecode4 = 0 ; | |
22071 | int val5 ; | |
22072 | int ecode5 = 0 ; | |
22073 | PyObject * obj0 = 0 ; | |
22074 | PyObject * obj1 = 0 ; | |
22075 | PyObject * obj2 = 0 ; | |
22076 | PyObject * obj3 = 0 ; | |
22077 | PyObject * obj4 = 0 ; | |
22078 | char * kwnames[] = { | |
22079 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
22080 | }; | |
22081 | ||
22082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
22083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22084 | if (!SWIG_IsOK(res1)) { | |
22085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22086 | } | |
22087 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22088 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22089 | if (!SWIG_IsOK(res2)) { | |
22090 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
22091 | } | |
22092 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
22093 | { | |
22094 | arg3 = wxString_in_helper(obj2); | |
22095 | if (arg3 == NULL) SWIG_fail; | |
22096 | temp3 = true; | |
22097 | } | |
22098 | if (obj3) { | |
22099 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
22100 | if (!SWIG_IsOK(ecode4)) { | |
22101 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'"); | |
22102 | } | |
22103 | arg4 = static_cast< bool >(val4); | |
22104 | } | |
22105 | if (obj4) { | |
22106 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22107 | if (!SWIG_IsOK(ecode5)) { | |
22108 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'"); | |
22109 | } | |
22110 | arg5 = static_cast< int >(val5); | |
22111 | } | |
22112 | { | |
22113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22114 | result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
22115 | wxPyEndAllowThreads(__tstate); | |
22116 | if (PyErr_Occurred()) SWIG_fail; | |
22117 | } | |
22118 | { | |
22119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22120 | } | |
22121 | { | |
22122 | if (temp3) | |
22123 | delete arg3; | |
22124 | } | |
22125 | return resultobj; | |
22126 | fail: | |
22127 | { | |
22128 | if (temp3) | |
22129 | delete arg3; | |
22130 | } | |
22131 | return NULL; | |
22132 | } | |
22133 | ||
22134 | ||
22135 | SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22136 | PyObject *resultobj = 0; | |
22137 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22138 | size_t arg2 ; | |
22139 | bool result; | |
22140 | void *argp1 = 0 ; | |
22141 | int res1 = 0 ; | |
22142 | size_t val2 ; | |
22143 | int ecode2 = 0 ; | |
22144 | PyObject * obj0 = 0 ; | |
22145 | PyObject * obj1 = 0 ; | |
22146 | char * kwnames[] = { | |
22147 | (char *) "self",(char *) "pos", NULL | |
22148 | }; | |
22149 | ||
22150 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail; | |
22151 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22152 | if (!SWIG_IsOK(res1)) { | |
22153 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
22154 | } | |
22155 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22156 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22157 | if (!SWIG_IsOK(ecode2)) { | |
22158 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'"); | |
22159 | } | |
22160 | arg2 = static_cast< size_t >(val2); | |
22161 | { | |
22162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22163 | result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2); | |
22164 | wxPyEndAllowThreads(__tstate); | |
22165 | if (PyErr_Occurred()) SWIG_fail; | |
22166 | } | |
22167 | { | |
22168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22169 | } | |
22170 | return resultobj; | |
22171 | fail: | |
22172 | return NULL; | |
22173 | } | |
22174 | ||
22175 | ||
22176 | SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22177 | PyObject *resultobj = 0; | |
22178 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22179 | size_t arg2 ; | |
22180 | bool arg3 = (bool) true ; | |
22181 | bool result; | |
22182 | void *argp1 = 0 ; | |
22183 | int res1 = 0 ; | |
22184 | size_t val2 ; | |
22185 | int ecode2 = 0 ; | |
22186 | bool val3 ; | |
22187 | int ecode3 = 0 ; | |
22188 | PyObject * obj0 = 0 ; | |
22189 | PyObject * obj1 = 0 ; | |
22190 | PyObject * obj2 = 0 ; | |
22191 | char * kwnames[] = { | |
22192 | (char *) "self",(char *) "pos",(char *) "expand", NULL | |
22193 | }; | |
22194 | ||
22195 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22196 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22197 | if (!SWIG_IsOK(res1)) { | |
22198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22199 | } | |
22200 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22201 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22202 | if (!SWIG_IsOK(ecode2)) { | |
22203 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'"); | |
22204 | } | |
22205 | arg2 = static_cast< size_t >(val2); | |
22206 | if (obj2) { | |
22207 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
22208 | if (!SWIG_IsOK(ecode3)) { | |
22209 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'"); | |
22210 | } | |
22211 | arg3 = static_cast< bool >(val3); | |
22212 | } | |
22213 | { | |
22214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22215 | result = (bool)(arg1)->ExpandNode(arg2,arg3); | |
22216 | wxPyEndAllowThreads(__tstate); | |
22217 | if (PyErr_Occurred()) SWIG_fail; | |
22218 | } | |
22219 | { | |
22220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22221 | } | |
22222 | return resultobj; | |
22223 | fail: | |
22224 | return NULL; | |
22225 | } | |
22226 | ||
22227 | ||
22228 | SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22229 | PyObject *resultobj = 0; | |
22230 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22231 | size_t arg2 ; | |
22232 | bool result; | |
22233 | void *argp1 = 0 ; | |
22234 | int res1 = 0 ; | |
22235 | size_t val2 ; | |
22236 | int ecode2 = 0 ; | |
22237 | PyObject * obj0 = 0 ; | |
22238 | PyObject * obj1 = 0 ; | |
22239 | char * kwnames[] = { | |
22240 | (char *) "self",(char *) "pos", NULL | |
22241 | }; | |
22242 | ||
22243 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail; | |
22244 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22245 | if (!SWIG_IsOK(res1)) { | |
22246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22247 | } | |
22248 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22249 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22250 | if (!SWIG_IsOK(ecode2)) { | |
22251 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'"); | |
22252 | } | |
22253 | arg2 = static_cast< size_t >(val2); | |
22254 | { | |
22255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22256 | result = (bool)(arg1)->CollapseNode(arg2); | |
22257 | wxPyEndAllowThreads(__tstate); | |
22258 | if (PyErr_Occurred()) SWIG_fail; | |
22259 | } | |
22260 | { | |
22261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22262 | } | |
22263 | return resultobj; | |
22264 | fail: | |
22265 | return NULL; | |
22266 | } | |
22267 | ||
22268 | ||
22269 | SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22270 | PyObject *resultobj = 0; | |
22271 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22272 | size_t arg2 ; | |
22273 | int result; | |
22274 | void *argp1 = 0 ; | |
22275 | int res1 = 0 ; | |
22276 | size_t val2 ; | |
22277 | int ecode2 = 0 ; | |
22278 | PyObject * obj0 = 0 ; | |
22279 | PyObject * obj1 = 0 ; | |
22280 | char * kwnames[] = { | |
22281 | (char *) "self",(char *) "pos", NULL | |
22282 | }; | |
22283 | ||
22284 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
22285 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22286 | if (!SWIG_IsOK(res1)) { | |
22287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
22288 | } | |
22289 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22290 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22291 | if (!SWIG_IsOK(ecode2)) { | |
22292 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'"); | |
22293 | } | |
22294 | arg2 = static_cast< size_t >(val2); | |
22295 | { | |
22296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22297 | result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2); | |
22298 | wxPyEndAllowThreads(__tstate); | |
22299 | if (PyErr_Occurred()) SWIG_fail; | |
22300 | } | |
22301 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22302 | return resultobj; | |
22303 | fail: | |
22304 | return NULL; | |
d55e5bfc RD |
22305 | } |
22306 | ||
22307 | ||
1bd55598 RD |
22308 | SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22309 | PyObject *resultobj = 0; | |
22310 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
10044bf1 | 22311 | wxPyTreeCtrl *result = 0 ; |
1bd55598 RD |
22312 | void *argp1 = 0 ; |
22313 | int res1 = 0 ; | |
22314 | PyObject *swig_obj[1] ; | |
22315 | ||
22316 | if (!args) SWIG_fail; | |
22317 | swig_obj[0] = args; | |
22318 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22319 | if (!SWIG_IsOK(res1)) { | |
22320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
22321 | } | |
22322 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22323 | { | |
22324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10044bf1 | 22325 | result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl(); |
1bd55598 RD |
22326 | wxPyEndAllowThreads(__tstate); |
22327 | if (PyErr_Occurred()) SWIG_fail; | |
22328 | } | |
10044bf1 RD |
22329 | { |
22330 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
22331 | } | |
1bd55598 RD |
22332 | return resultobj; |
22333 | fail: | |
22334 | return NULL; | |
22335 | } | |
22336 | ||
22337 | ||
22338 | SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22339 | PyObject *obj; | |
22340 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22341 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj)); | |
22342 | return SWIG_Py_Void(); | |
22343 | } | |
22344 | ||
22345 | SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22346 | return SWIG_Python_InitShadowInstance(args); | |
22347 | } | |
22348 | ||
22349 | SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22350 | PyObject *resultobj = 0; | |
22351 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22352 | int arg2 = (int) 0 ; | |
22353 | int arg3 = (int) wxNOT_FOUND ; | |
22354 | int arg4 = (int) wxNOT_FOUND ; | |
22355 | wxTreebookEvent *result = 0 ; | |
22356 | int val1 ; | |
22357 | int ecode1 = 0 ; | |
22358 | int val2 ; | |
22359 | int ecode2 = 0 ; | |
22360 | int val3 ; | |
22361 | int ecode3 = 0 ; | |
22362 | int val4 ; | |
22363 | int ecode4 = 0 ; | |
22364 | PyObject * obj0 = 0 ; | |
22365 | PyObject * obj1 = 0 ; | |
22366 | PyObject * obj2 = 0 ; | |
22367 | PyObject * obj3 = 0 ; | |
22368 | char * kwnames[] = { | |
22369 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
22370 | }; | |
22371 | ||
22372 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22373 | if (obj0) { | |
22374 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22375 | if (!SWIG_IsOK(ecode1)) { | |
22376 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
22377 | } | |
22378 | arg1 = static_cast< wxEventType >(val1); | |
22379 | } | |
22380 | if (obj1) { | |
22381 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22382 | if (!SWIG_IsOK(ecode2)) { | |
22383 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
22384 | } | |
22385 | arg2 = static_cast< int >(val2); | |
22386 | } | |
22387 | if (obj2) { | |
22388 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22389 | if (!SWIG_IsOK(ecode3)) { | |
22390 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
22391 | } | |
22392 | arg3 = static_cast< int >(val3); | |
22393 | } | |
22394 | if (obj3) { | |
22395 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22396 | if (!SWIG_IsOK(ecode4)) { | |
22397 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
22398 | } | |
22399 | arg4 = static_cast< int >(val4); | |
22400 | } | |
22401 | { | |
22402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22403 | result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4); | |
22404 | wxPyEndAllowThreads(__tstate); | |
22405 | if (PyErr_Occurred()) SWIG_fail; | |
22406 | } | |
22407 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 ); | |
22408 | return resultobj; | |
22409 | fail: | |
22410 | return NULL; | |
22411 | } | |
22412 | ||
22413 | ||
22414 | SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22415 | PyObject *obj; | |
22416 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22417 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj)); | |
22418 | return SWIG_Py_Void(); | |
22419 | } | |
22420 | ||
22421 | SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22422 | return SWIG_Python_InitShadowInstance(args); | |
22423 | } | |
22424 | ||
22425 | SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22426 | PyObject *resultobj = 0; | |
22427 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22428 | int arg2 ; | |
22429 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22430 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22431 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22432 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22433 | long arg5 = (long) wxBK_DEFAULT ; | |
22434 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
22435 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22436 | wxToolbook *result = 0 ; | |
22437 | void *argp1 = 0 ; | |
22438 | int res1 = 0 ; | |
22439 | int val2 ; | |
22440 | int ecode2 = 0 ; | |
22441 | wxPoint temp3 ; | |
22442 | wxSize temp4 ; | |
22443 | long val5 ; | |
22444 | int ecode5 = 0 ; | |
22445 | bool temp6 = false ; | |
22446 | PyObject * obj0 = 0 ; | |
22447 | PyObject * obj1 = 0 ; | |
22448 | PyObject * obj2 = 0 ; | |
22449 | PyObject * obj3 = 0 ; | |
22450 | PyObject * obj4 = 0 ; | |
22451 | PyObject * obj5 = 0 ; | |
22452 | char * kwnames[] = { | |
22453 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22454 | }; | |
22455 | ||
22456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22457 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22458 | if (!SWIG_IsOK(res1)) { | |
22459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
22460 | } | |
22461 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
22462 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22463 | if (!SWIG_IsOK(ecode2)) { | |
22464 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'"); | |
22465 | } | |
22466 | arg2 = static_cast< int >(val2); | |
22467 | if (obj2) { | |
36ed4f51 | 22468 | { |
1bd55598 RD |
22469 | arg3 = &temp3; |
22470 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 22471 | } |
1bd55598 RD |
22472 | } |
22473 | if (obj3) { | |
36ed4f51 | 22474 | { |
1bd55598 RD |
22475 | arg4 = &temp4; |
22476 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 22477 | } |
1bd55598 RD |
22478 | } |
22479 | if (obj4) { | |
22480 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
22481 | if (!SWIG_IsOK(ecode5)) { | |
22482 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'"); | |
22483 | } | |
22484 | arg5 = static_cast< long >(val5); | |
22485 | } | |
22486 | if (obj5) { | |
d55e5bfc | 22487 | { |
1bd55598 RD |
22488 | arg6 = wxString_in_helper(obj5); |
22489 | if (arg6 == NULL) SWIG_fail; | |
22490 | temp6 = true; | |
d55e5bfc | 22491 | } |
1bd55598 RD |
22492 | } |
22493 | { | |
22494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22495 | result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22496 | wxPyEndAllowThreads(__tstate); | |
22497 | if (PyErr_Occurred()) SWIG_fail; | |
22498 | } | |
22499 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 ); | |
22500 | { | |
22501 | if (temp6) | |
22502 | delete arg6; | |
22503 | } | |
22504 | return resultobj; | |
22505 | fail: | |
22506 | { | |
22507 | if (temp6) | |
22508 | delete arg6; | |
22509 | } | |
22510 | return NULL; | |
d55e5bfc RD |
22511 | } |
22512 | ||
22513 | ||
1bd55598 RD |
22514 | SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22515 | PyObject *resultobj = 0; | |
22516 | wxToolbook *result = 0 ; | |
22517 | ||
22518 | if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail; | |
22519 | { | |
22520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22521 | result = (wxToolbook *)new wxToolbook(); | |
22522 | wxPyEndAllowThreads(__tstate); | |
22523 | if (PyErr_Occurred()) SWIG_fail; | |
22524 | } | |
22525 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 ); | |
22526 | return resultobj; | |
22527 | fail: | |
22528 | return NULL; | |
22529 | } | |
22530 | ||
22531 | ||
22532 | SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22533 | PyObject *resultobj = 0; | |
22534 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
22535 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22536 | int arg3 ; | |
22537 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22538 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22539 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22540 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22541 | long arg6 = (long) 0 ; | |
22542 | wxString const &arg7_defvalue = wxEmptyString ; | |
22543 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22544 | bool result; | |
22545 | void *argp1 = 0 ; | |
22546 | int res1 = 0 ; | |
22547 | void *argp2 = 0 ; | |
22548 | int res2 = 0 ; | |
22549 | int val3 ; | |
22550 | int ecode3 = 0 ; | |
22551 | wxPoint temp4 ; | |
22552 | wxSize temp5 ; | |
22553 | long val6 ; | |
22554 | int ecode6 = 0 ; | |
22555 | bool temp7 = false ; | |
22556 | PyObject * obj0 = 0 ; | |
22557 | PyObject * obj1 = 0 ; | |
22558 | PyObject * obj2 = 0 ; | |
22559 | PyObject * obj3 = 0 ; | |
22560 | PyObject * obj4 = 0 ; | |
22561 | PyObject * obj5 = 0 ; | |
22562 | PyObject * obj6 = 0 ; | |
22563 | char * kwnames[] = { | |
22564 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22565 | }; | |
22566 | ||
22567 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
22568 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
22569 | if (!SWIG_IsOK(res1)) { | |
22570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'"); | |
22571 | } | |
22572 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
22573 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22574 | if (!SWIG_IsOK(res2)) { | |
22575 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
22576 | } | |
22577 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
22578 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22579 | if (!SWIG_IsOK(ecode3)) { | |
22580 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'"); | |
22581 | } | |
22582 | arg3 = static_cast< int >(val3); | |
22583 | if (obj3) { | |
22584 | { | |
22585 | arg4 = &temp4; | |
22586 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
f20a2e1f | 22587 | } |
1bd55598 RD |
22588 | } |
22589 | if (obj4) { | |
f20a2e1f | 22590 | { |
1bd55598 RD |
22591 | arg5 = &temp5; |
22592 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
f20a2e1f | 22593 | } |
1bd55598 RD |
22594 | } |
22595 | if (obj5) { | |
22596 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
22597 | if (!SWIG_IsOK(ecode6)) { | |
22598 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'"); | |
22599 | } | |
22600 | arg6 = static_cast< long >(val6); | |
22601 | } | |
22602 | if (obj6) { | |
f20a2e1f | 22603 | { |
1bd55598 RD |
22604 | arg7 = wxString_in_helper(obj6); |
22605 | if (arg7 == NULL) SWIG_fail; | |
22606 | temp7 = true; | |
f20a2e1f | 22607 | } |
1bd55598 RD |
22608 | } |
22609 | { | |
22610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22611 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22612 | wxPyEndAllowThreads(__tstate); | |
22613 | if (PyErr_Occurred()) SWIG_fail; | |
22614 | } | |
22615 | { | |
22616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22617 | } | |
22618 | { | |
22619 | if (temp7) | |
22620 | delete arg7; | |
22621 | } | |
22622 | return resultobj; | |
22623 | fail: | |
22624 | { | |
22625 | if (temp7) | |
22626 | delete arg7; | |
22627 | } | |
22628 | return NULL; | |
f20a2e1f RD |
22629 | } |
22630 | ||
22631 | ||
1bd55598 RD |
22632 | SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22633 | PyObject *resultobj = 0; | |
22634 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
22635 | wxToolBarBase *result = 0 ; | |
22636 | void *argp1 = 0 ; | |
22637 | int res1 = 0 ; | |
22638 | PyObject *swig_obj[1] ; | |
22639 | ||
22640 | if (!args) SWIG_fail; | |
22641 | swig_obj[0] = args; | |
22642 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
22643 | if (!SWIG_IsOK(res1)) { | |
22644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'"); | |
22645 | } | |
22646 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
22647 | { | |
22648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22649 | result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar(); | |
22650 | wxPyEndAllowThreads(__tstate); | |
22651 | if (PyErr_Occurred()) SWIG_fail; | |
22652 | } | |
22653 | { | |
22654 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
22655 | } | |
22656 | return resultobj; | |
22657 | fail: | |
22658 | return NULL; | |
d55e5bfc RD |
22659 | } |
22660 | ||
22661 | ||
1bd55598 RD |
22662 | SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22663 | PyObject *resultobj = 0; | |
22664 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
22665 | void *argp1 = 0 ; | |
22666 | int res1 = 0 ; | |
22667 | PyObject *swig_obj[1] ; | |
22668 | ||
22669 | if (!args) SWIG_fail; | |
22670 | swig_obj[0] = args; | |
22671 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
22672 | if (!SWIG_IsOK(res1)) { | |
22673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'"); | |
22674 | } | |
22675 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
22676 | { | |
22677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22678 | (arg1)->Realize(); | |
22679 | wxPyEndAllowThreads(__tstate); | |
22680 | if (PyErr_Occurred()) SWIG_fail; | |
22681 | } | |
22682 | resultobj = SWIG_Py_Void(); | |
22683 | return resultobj; | |
22684 | fail: | |
22685 | return NULL; | |
22686 | } | |
22687 | ||
22688 | ||
22689 | SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22690 | PyObject *obj; | |
22691 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22692 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj)); | |
22693 | return SWIG_Py_Void(); | |
22694 | } | |
22695 | ||
22696 | SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22697 | return SWIG_Python_InitShadowInstance(args); | |
22698 | } | |
22699 | ||
22700 | SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22701 | PyObject *resultobj = 0; | |
22702 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22703 | int arg2 = (int) 0 ; | |
22704 | int arg3 = (int) wxNOT_FOUND ; | |
22705 | int arg4 = (int) wxNOT_FOUND ; | |
22706 | wxToolbookEvent *result = 0 ; | |
22707 | int val1 ; | |
22708 | int ecode1 = 0 ; | |
22709 | int val2 ; | |
22710 | int ecode2 = 0 ; | |
22711 | int val3 ; | |
22712 | int ecode3 = 0 ; | |
22713 | int val4 ; | |
22714 | int ecode4 = 0 ; | |
22715 | PyObject * obj0 = 0 ; | |
22716 | PyObject * obj1 = 0 ; | |
22717 | PyObject * obj2 = 0 ; | |
22718 | PyObject * obj3 = 0 ; | |
22719 | char * kwnames[] = { | |
22720 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
22721 | }; | |
22722 | ||
22723 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22724 | if (obj0) { | |
22725 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22726 | if (!SWIG_IsOK(ecode1)) { | |
22727 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
22728 | } | |
22729 | arg1 = static_cast< wxEventType >(val1); | |
22730 | } | |
22731 | if (obj1) { | |
22732 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22733 | if (!SWIG_IsOK(ecode2)) { | |
22734 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'"); | |
22735 | } | |
22736 | arg2 = static_cast< int >(val2); | |
22737 | } | |
22738 | if (obj2) { | |
22739 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22740 | if (!SWIG_IsOK(ecode3)) { | |
22741 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'"); | |
22742 | } | |
22743 | arg3 = static_cast< int >(val3); | |
22744 | } | |
22745 | if (obj3) { | |
22746 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22747 | if (!SWIG_IsOK(ecode4)) { | |
22748 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'"); | |
22749 | } | |
22750 | arg4 = static_cast< int >(val4); | |
22751 | } | |
22752 | { | |
22753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22754 | result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4); | |
22755 | wxPyEndAllowThreads(__tstate); | |
22756 | if (PyErr_Occurred()) SWIG_fail; | |
22757 | } | |
22758 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 ); | |
22759 | return resultobj; | |
22760 | fail: | |
22761 | return NULL; | |
d55e5bfc RD |
22762 | } |
22763 | ||
22764 | ||
1bd55598 RD |
22765 | SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22766 | PyObject *obj; | |
22767 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22768 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj)); | |
22769 | return SWIG_Py_Void(); | |
d55e5bfc RD |
22770 | } |
22771 | ||
1bd55598 RD |
22772 | SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22773 | return SWIG_Python_InitShadowInstance(args); | |
22774 | } | |
d55e5bfc | 22775 | |
1bd55598 RD |
22776 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22777 | PyObject *resultobj = 0; | |
22778 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22779 | int result; | |
22780 | void *argp1 = 0 ; | |
22781 | int res1 = 0 ; | |
22782 | PyObject *swig_obj[1] ; | |
22783 | ||
22784 | if (!args) SWIG_fail; | |
22785 | swig_obj[0] = args; | |
22786 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22787 | if (!SWIG_IsOK(res1)) { | |
22788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22789 | } | |
22790 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22791 | { | |
22792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22793 | result = (int)(arg1)->GetId(); | |
22794 | wxPyEndAllowThreads(__tstate); | |
22795 | if (PyErr_Occurred()) SWIG_fail; | |
22796 | } | |
22797 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22798 | return resultobj; | |
22799 | fail: | |
22800 | return NULL; | |
d55e5bfc | 22801 | } |
1bd55598 RD |
22802 | |
22803 | ||
22804 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22805 | PyObject *resultobj = 0; | |
22806 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22807 | wxControl *result = 0 ; | |
22808 | void *argp1 = 0 ; | |
22809 | int res1 = 0 ; | |
22810 | PyObject *swig_obj[1] ; | |
22811 | ||
22812 | if (!args) SWIG_fail; | |
22813 | swig_obj[0] = args; | |
22814 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22815 | if (!SWIG_IsOK(res1)) { | |
22816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22817 | } | |
22818 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22819 | { | |
22820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22821 | result = (wxControl *)(arg1)->GetControl(); | |
22822 | wxPyEndAllowThreads(__tstate); | |
22823 | if (PyErr_Occurred()) SWIG_fail; | |
22824 | } | |
22825 | { | |
22826 | resultobj = wxPyMake_wxObject(result, 0); | |
22827 | } | |
22828 | return resultobj; | |
22829 | fail: | |
22830 | return NULL; | |
d55e5bfc RD |
22831 | } |
22832 | ||
22833 | ||
1bd55598 RD |
22834 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22835 | PyObject *resultobj = 0; | |
22836 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22837 | wxToolBarBase *result = 0 ; | |
22838 | void *argp1 = 0 ; | |
22839 | int res1 = 0 ; | |
22840 | PyObject *swig_obj[1] ; | |
22841 | ||
22842 | if (!args) SWIG_fail; | |
22843 | swig_obj[0] = args; | |
22844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22845 | if (!SWIG_IsOK(res1)) { | |
22846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22847 | } | |
22848 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22849 | { | |
22850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22851 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
22852 | wxPyEndAllowThreads(__tstate); | |
22853 | if (PyErr_Occurred()) SWIG_fail; | |
22854 | } | |
22855 | { | |
22856 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
22857 | } | |
22858 | return resultobj; | |
22859 | fail: | |
22860 | return NULL; | |
d55e5bfc RD |
22861 | } |
22862 | ||
22863 | ||
1bd55598 RD |
22864 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22865 | PyObject *resultobj = 0; | |
22866 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22867 | int result; | |
22868 | void *argp1 = 0 ; | |
22869 | int res1 = 0 ; | |
22870 | PyObject *swig_obj[1] ; | |
22871 | ||
22872 | if (!args) SWIG_fail; | |
22873 | swig_obj[0] = args; | |
22874 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22875 | if (!SWIG_IsOK(res1)) { | |
22876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22877 | } | |
22878 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22879 | { | |
22880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22881 | result = (int)(arg1)->IsButton(); | |
22882 | wxPyEndAllowThreads(__tstate); | |
22883 | if (PyErr_Occurred()) SWIG_fail; | |
22884 | } | |
22885 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22886 | return resultobj; | |
22887 | fail: | |
22888 | return NULL; | |
d55e5bfc RD |
22889 | } |
22890 | ||
22891 | ||
1bd55598 RD |
22892 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22893 | PyObject *resultobj = 0; | |
22894 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22895 | int result; | |
22896 | void *argp1 = 0 ; | |
22897 | int res1 = 0 ; | |
22898 | PyObject *swig_obj[1] ; | |
22899 | ||
22900 | if (!args) SWIG_fail; | |
22901 | swig_obj[0] = args; | |
22902 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22903 | if (!SWIG_IsOK(res1)) { | |
22904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22905 | } | |
22906 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22907 | { | |
22908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22909 | result = (int)(arg1)->IsControl(); | |
22910 | wxPyEndAllowThreads(__tstate); | |
22911 | if (PyErr_Occurred()) SWIG_fail; | |
22912 | } | |
22913 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22914 | return resultobj; | |
22915 | fail: | |
22916 | return NULL; | |
d55e5bfc RD |
22917 | } |
22918 | ||
22919 | ||
1bd55598 RD |
22920 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22921 | PyObject *resultobj = 0; | |
22922 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22923 | int 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_wxToolBarToolBase, 0 | 0 ); | |
22931 | if (!SWIG_IsOK(res1)) { | |
22932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22933 | } | |
22934 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22935 | { | |
22936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22937 | result = (int)(arg1)->IsSeparator(); | |
22938 | wxPyEndAllowThreads(__tstate); | |
22939 | if (PyErr_Occurred()) SWIG_fail; | |
22940 | } | |
22941 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22942 | return resultobj; | |
22943 | fail: | |
22944 | return NULL; | |
d55e5bfc RD |
22945 | } |
22946 | ||
22947 | ||
1bd55598 RD |
22948 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22949 | PyObject *resultobj = 0; | |
22950 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22951 | int 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_wxToolBarToolBase, 0 | 0 ); | |
22959 | if (!SWIG_IsOK(res1)) { | |
22960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22961 | } | |
22962 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22963 | { | |
22964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22965 | result = (int)(arg1)->GetStyle(); | |
22966 | wxPyEndAllowThreads(__tstate); | |
22967 | if (PyErr_Occurred()) SWIG_fail; | |
22968 | } | |
22969 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22970 | return resultobj; | |
22971 | fail: | |
22972 | return NULL; | |
d55e5bfc RD |
22973 | } |
22974 | ||
22975 | ||
1bd55598 RD |
22976 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22977 | PyObject *resultobj = 0; | |
22978 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22979 | wxItemKind 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_wxToolBarToolBase, 0 | 0 ); | |
22987 | if (!SWIG_IsOK(res1)) { | |
22988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22989 | } | |
22990 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22991 | { | |
22992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22993 | result = (wxItemKind)(arg1)->GetKind(); | |
22994 | wxPyEndAllowThreads(__tstate); | |
22995 | if (PyErr_Occurred()) SWIG_fail; | |
22996 | } | |
22997 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22998 | return resultobj; | |
22999 | fail: | |
23000 | return NULL; | |
d55e5bfc RD |
23001 | } |
23002 | ||
23003 | ||
1bd55598 RD |
23004 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23005 | PyObject *resultobj = 0; | |
23006 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23007 | bool result; | |
23008 | void *argp1 = 0 ; | |
23009 | int res1 = 0 ; | |
23010 | PyObject *swig_obj[1] ; | |
23011 | ||
23012 | if (!args) SWIG_fail; | |
23013 | swig_obj[0] = args; | |
23014 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23015 | if (!SWIG_IsOK(res1)) { | |
23016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23017 | } | |
23018 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23019 | { | |
23020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23021 | result = (bool)(arg1)->IsEnabled(); | |
23022 | wxPyEndAllowThreads(__tstate); | |
23023 | if (PyErr_Occurred()) SWIG_fail; | |
23024 | } | |
23025 | { | |
23026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23027 | } | |
23028 | return resultobj; | |
23029 | fail: | |
23030 | return NULL; | |
d55e5bfc RD |
23031 | } |
23032 | ||
23033 | ||
1bd55598 RD |
23034 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23035 | PyObject *resultobj = 0; | |
23036 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23037 | bool result; | |
23038 | void *argp1 = 0 ; | |
23039 | int res1 = 0 ; | |
23040 | PyObject *swig_obj[1] ; | |
23041 | ||
23042 | if (!args) SWIG_fail; | |
23043 | swig_obj[0] = args; | |
23044 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23045 | if (!SWIG_IsOK(res1)) { | |
23046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23047 | } | |
23048 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23049 | { | |
23050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23051 | result = (bool)(arg1)->IsToggled(); | |
23052 | wxPyEndAllowThreads(__tstate); | |
23053 | if (PyErr_Occurred()) SWIG_fail; | |
23054 | } | |
23055 | { | |
23056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23057 | } | |
23058 | return resultobj; | |
23059 | fail: | |
23060 | return NULL; | |
d55e5bfc RD |
23061 | } |
23062 | ||
23063 | ||
1bd55598 RD |
23064 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23065 | PyObject *resultobj = 0; | |
23066 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23067 | bool result; | |
23068 | void *argp1 = 0 ; | |
23069 | int res1 = 0 ; | |
23070 | PyObject *swig_obj[1] ; | |
23071 | ||
23072 | if (!args) SWIG_fail; | |
23073 | swig_obj[0] = args; | |
23074 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23075 | if (!SWIG_IsOK(res1)) { | |
23076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23077 | } | |
23078 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23079 | { | |
23080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23081 | result = (bool)(arg1)->CanBeToggled(); | |
23082 | wxPyEndAllowThreads(__tstate); | |
23083 | if (PyErr_Occurred()) SWIG_fail; | |
23084 | } | |
23085 | { | |
23086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23087 | } | |
23088 | return resultobj; | |
23089 | fail: | |
23090 | return NULL; | |
d55e5bfc RD |
23091 | } |
23092 | ||
23093 | ||
1bd55598 RD |
23094 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23095 | PyObject *resultobj = 0; | |
23096 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23097 | wxBitmap *result = 0 ; | |
23098 | void *argp1 = 0 ; | |
23099 | int res1 = 0 ; | |
23100 | PyObject *swig_obj[1] ; | |
23101 | ||
23102 | if (!args) SWIG_fail; | |
23103 | swig_obj[0] = args; | |
23104 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23105 | if (!SWIG_IsOK(res1)) { | |
23106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23107 | } | |
23108 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23109 | { | |
23110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 23111 | { |
1bd55598 RD |
23112 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); |
23113 | result = (wxBitmap *) &_result_ref; | |
36ed4f51 | 23114 | } |
1bd55598 RD |
23115 | wxPyEndAllowThreads(__tstate); |
23116 | if (PyErr_Occurred()) SWIG_fail; | |
23117 | } | |
23118 | { | |
23119 | wxBitmap* resultptr = new wxBitmap(*result); | |
23120 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
23121 | } | |
23122 | return resultobj; | |
23123 | fail: | |
23124 | return NULL; | |
d55e5bfc RD |
23125 | } |
23126 | ||
23127 | ||
1bd55598 RD |
23128 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23129 | PyObject *resultobj = 0; | |
23130 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23131 | wxBitmap *result = 0 ; | |
23132 | void *argp1 = 0 ; | |
23133 | int res1 = 0 ; | |
23134 | PyObject *swig_obj[1] ; | |
23135 | ||
23136 | if (!args) SWIG_fail; | |
23137 | swig_obj[0] = args; | |
23138 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23139 | if (!SWIG_IsOK(res1)) { | |
23140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23141 | } | |
23142 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23143 | { | |
23144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 23145 | { |
1bd55598 RD |
23146 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); |
23147 | result = (wxBitmap *) &_result_ref; | |
d55e5bfc | 23148 | } |
1bd55598 RD |
23149 | wxPyEndAllowThreads(__tstate); |
23150 | if (PyErr_Occurred()) SWIG_fail; | |
23151 | } | |
23152 | { | |
23153 | wxBitmap* resultptr = new wxBitmap(*result); | |
23154 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
23155 | } | |
23156 | return resultobj; | |
23157 | fail: | |
23158 | return NULL; | |
d55e5bfc RD |
23159 | } |
23160 | ||
23161 | ||
1bd55598 RD |
23162 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23163 | PyObject *resultobj = 0; | |
23164 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23165 | wxBitmap result; | |
23166 | void *argp1 = 0 ; | |
23167 | int res1 = 0 ; | |
23168 | PyObject *swig_obj[1] ; | |
23169 | ||
23170 | if (!args) SWIG_fail; | |
23171 | swig_obj[0] = args; | |
23172 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23173 | if (!SWIG_IsOK(res1)) { | |
23174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23175 | } | |
23176 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23177 | { | |
23178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23179 | result = (arg1)->GetBitmap(); | |
23180 | wxPyEndAllowThreads(__tstate); | |
23181 | if (PyErr_Occurred()) SWIG_fail; | |
23182 | } | |
23183 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
23184 | return resultobj; | |
23185 | fail: | |
23186 | return NULL; | |
d55e5bfc RD |
23187 | } |
23188 | ||
23189 | ||
1bd55598 RD |
23190 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23191 | PyObject *resultobj = 0; | |
23192 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23193 | wxString result; | |
23194 | void *argp1 = 0 ; | |
23195 | int res1 = 0 ; | |
23196 | PyObject *swig_obj[1] ; | |
23197 | ||
23198 | if (!args) SWIG_fail; | |
23199 | swig_obj[0] = args; | |
23200 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23201 | if (!SWIG_IsOK(res1)) { | |
23202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23203 | } | |
23204 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23205 | { | |
23206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23207 | result = (arg1)->GetLabel(); | |
23208 | wxPyEndAllowThreads(__tstate); | |
23209 | if (PyErr_Occurred()) SWIG_fail; | |
23210 | } | |
23211 | { | |
23212 | #if wxUSE_UNICODE | |
23213 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23214 | #else | |
23215 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23216 | #endif | |
23217 | } | |
23218 | return resultobj; | |
23219 | fail: | |
23220 | return NULL; | |
d55e5bfc RD |
23221 | } |
23222 | ||
23223 | ||
1bd55598 RD |
23224 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23225 | PyObject *resultobj = 0; | |
23226 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23227 | wxString result; | |
23228 | void *argp1 = 0 ; | |
23229 | int res1 = 0 ; | |
23230 | PyObject *swig_obj[1] ; | |
23231 | ||
23232 | if (!args) SWIG_fail; | |
23233 | swig_obj[0] = args; | |
23234 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23235 | if (!SWIG_IsOK(res1)) { | |
23236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23237 | } | |
23238 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23239 | { | |
23240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23241 | result = (arg1)->GetShortHelp(); | |
23242 | wxPyEndAllowThreads(__tstate); | |
23243 | if (PyErr_Occurred()) SWIG_fail; | |
23244 | } | |
23245 | { | |
23246 | #if wxUSE_UNICODE | |
23247 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23248 | #else | |
23249 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23250 | #endif | |
23251 | } | |
23252 | return resultobj; | |
23253 | fail: | |
23254 | return NULL; | |
d55e5bfc RD |
23255 | } |
23256 | ||
23257 | ||
1bd55598 RD |
23258 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23259 | PyObject *resultobj = 0; | |
23260 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23261 | wxString result; | |
23262 | void *argp1 = 0 ; | |
23263 | int res1 = 0 ; | |
23264 | PyObject *swig_obj[1] ; | |
23265 | ||
23266 | if (!args) SWIG_fail; | |
23267 | swig_obj[0] = args; | |
23268 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23269 | if (!SWIG_IsOK(res1)) { | |
23270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23271 | } | |
23272 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23273 | { | |
23274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23275 | result = (arg1)->GetLongHelp(); | |
23276 | wxPyEndAllowThreads(__tstate); | |
23277 | if (PyErr_Occurred()) SWIG_fail; | |
23278 | } | |
23279 | { | |
23280 | #if wxUSE_UNICODE | |
23281 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23282 | #else | |
23283 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23284 | #endif | |
23285 | } | |
23286 | return resultobj; | |
23287 | fail: | |
23288 | return NULL; | |
23289 | } | |
23290 | ||
23291 | ||
23292 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23293 | PyObject *resultobj = 0; | |
23294 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23295 | bool arg2 ; | |
23296 | bool result; | |
23297 | void *argp1 = 0 ; | |
23298 | int res1 = 0 ; | |
23299 | bool val2 ; | |
23300 | int ecode2 = 0 ; | |
23301 | PyObject * obj0 = 0 ; | |
23302 | PyObject * obj1 = 0 ; | |
23303 | char * kwnames[] = { | |
23304 | (char *) "self",(char *) "enable", NULL | |
23305 | }; | |
23306 | ||
23307 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail; | |
23308 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23309 | if (!SWIG_IsOK(res1)) { | |
23310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23311 | } | |
23312 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23313 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23314 | if (!SWIG_IsOK(ecode2)) { | |
23315 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'"); | |
23316 | } | |
23317 | arg2 = static_cast< bool >(val2); | |
23318 | { | |
23319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23320 | result = (bool)(arg1)->Enable(arg2); | |
23321 | wxPyEndAllowThreads(__tstate); | |
23322 | if (PyErr_Occurred()) SWIG_fail; | |
23323 | } | |
23324 | { | |
23325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23326 | } | |
23327 | return resultobj; | |
23328 | fail: | |
23329 | return NULL; | |
d55e5bfc RD |
23330 | } |
23331 | ||
23332 | ||
1bd55598 RD |
23333 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23334 | PyObject *resultobj = 0; | |
23335 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23336 | void *argp1 = 0 ; | |
23337 | int res1 = 0 ; | |
23338 | PyObject *swig_obj[1] ; | |
23339 | ||
23340 | if (!args) SWIG_fail; | |
23341 | swig_obj[0] = args; | |
23342 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23343 | if (!SWIG_IsOK(res1)) { | |
23344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23345 | } | |
23346 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23347 | { | |
23348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23349 | (arg1)->Toggle(); | |
23350 | wxPyEndAllowThreads(__tstate); | |
23351 | if (PyErr_Occurred()) SWIG_fail; | |
23352 | } | |
23353 | resultobj = SWIG_Py_Void(); | |
23354 | return resultobj; | |
23355 | fail: | |
23356 | return NULL; | |
23357 | } | |
23358 | ||
23359 | ||
23360 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23361 | PyObject *resultobj = 0; | |
23362 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23363 | bool arg2 ; | |
23364 | bool result; | |
23365 | void *argp1 = 0 ; | |
23366 | int res1 = 0 ; | |
23367 | bool val2 ; | |
23368 | int ecode2 = 0 ; | |
23369 | PyObject * obj0 = 0 ; | |
23370 | PyObject * obj1 = 0 ; | |
23371 | char * kwnames[] = { | |
23372 | (char *) "self",(char *) "toggle", NULL | |
23373 | }; | |
23374 | ||
23375 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
23376 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23377 | if (!SWIG_IsOK(res1)) { | |
23378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23379 | } | |
23380 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23381 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23382 | if (!SWIG_IsOK(ecode2)) { | |
23383 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'"); | |
23384 | } | |
23385 | arg2 = static_cast< bool >(val2); | |
23386 | { | |
23387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23388 | result = (bool)(arg1)->SetToggle(arg2); | |
23389 | wxPyEndAllowThreads(__tstate); | |
23390 | if (PyErr_Occurred()) SWIG_fail; | |
23391 | } | |
23392 | { | |
23393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23394 | } | |
23395 | return resultobj; | |
23396 | fail: | |
23397 | return NULL; | |
23398 | } | |
23399 | ||
23400 | ||
23401 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23402 | PyObject *resultobj = 0; | |
23403 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23404 | wxString *arg2 = 0 ; | |
23405 | bool result; | |
23406 | void *argp1 = 0 ; | |
23407 | int res1 = 0 ; | |
23408 | bool temp2 = false ; | |
23409 | PyObject * obj0 = 0 ; | |
23410 | PyObject * obj1 = 0 ; | |
23411 | char * kwnames[] = { | |
23412 | (char *) "self",(char *) "help", NULL | |
23413 | }; | |
23414 | ||
23415 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
23416 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23417 | if (!SWIG_IsOK(res1)) { | |
23418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23419 | } | |
23420 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23421 | { | |
23422 | arg2 = wxString_in_helper(obj1); | |
23423 | if (arg2 == NULL) SWIG_fail; | |
23424 | temp2 = true; | |
23425 | } | |
23426 | { | |
23427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23428 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
23429 | wxPyEndAllowThreads(__tstate); | |
23430 | if (PyErr_Occurred()) SWIG_fail; | |
23431 | } | |
23432 | { | |
23433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23434 | } | |
23435 | { | |
23436 | if (temp2) | |
23437 | delete arg2; | |
23438 | } | |
23439 | return resultobj; | |
23440 | fail: | |
23441 | { | |
23442 | if (temp2) | |
23443 | delete arg2; | |
23444 | } | |
23445 | return NULL; | |
23446 | } | |
23447 | ||
23448 | ||
23449 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23450 | PyObject *resultobj = 0; | |
23451 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23452 | wxString *arg2 = 0 ; | |
23453 | bool result; | |
23454 | void *argp1 = 0 ; | |
23455 | int res1 = 0 ; | |
23456 | bool temp2 = false ; | |
23457 | PyObject * obj0 = 0 ; | |
23458 | PyObject * obj1 = 0 ; | |
23459 | char * kwnames[] = { | |
23460 | (char *) "self",(char *) "help", NULL | |
23461 | }; | |
23462 | ||
23463 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
23464 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23465 | if (!SWIG_IsOK(res1)) { | |
23466 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23467 | } | |
23468 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23469 | { | |
23470 | arg2 = wxString_in_helper(obj1); | |
23471 | if (arg2 == NULL) SWIG_fail; | |
23472 | temp2 = true; | |
23473 | } | |
23474 | { | |
23475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23476 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
23477 | wxPyEndAllowThreads(__tstate); | |
23478 | if (PyErr_Occurred()) SWIG_fail; | |
23479 | } | |
23480 | { | |
23481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23482 | } | |
23483 | { | |
23484 | if (temp2) | |
23485 | delete arg2; | |
23486 | } | |
23487 | return resultobj; | |
23488 | fail: | |
23489 | { | |
23490 | if (temp2) | |
23491 | delete arg2; | |
23492 | } | |
23493 | return NULL; | |
23494 | } | |
23495 | ||
23496 | ||
23497 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23498 | PyObject *resultobj = 0; | |
23499 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23500 | wxBitmap *arg2 = 0 ; | |
23501 | void *argp1 = 0 ; | |
23502 | int res1 = 0 ; | |
23503 | void *argp2 = 0 ; | |
23504 | int res2 = 0 ; | |
23505 | PyObject * obj0 = 0 ; | |
23506 | PyObject * obj1 = 0 ; | |
23507 | char * kwnames[] = { | |
23508 | (char *) "self",(char *) "bmp", NULL | |
23509 | }; | |
23510 | ||
23511 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
23512 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23513 | if (!SWIG_IsOK(res1)) { | |
23514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23515 | } | |
23516 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23517 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23518 | if (!SWIG_IsOK(res2)) { | |
23519 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23520 | } | |
23521 | if (!argp2) { | |
23522 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23523 | } | |
23524 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
23525 | { | |
23526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23527 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
23528 | wxPyEndAllowThreads(__tstate); | |
23529 | if (PyErr_Occurred()) SWIG_fail; | |
23530 | } | |
23531 | resultobj = SWIG_Py_Void(); | |
23532 | return resultobj; | |
23533 | fail: | |
23534 | return NULL; | |
23535 | } | |
23536 | ||
23537 | ||
23538 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23539 | PyObject *resultobj = 0; | |
23540 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23541 | wxBitmap *arg2 = 0 ; | |
23542 | void *argp1 = 0 ; | |
23543 | int res1 = 0 ; | |
23544 | void *argp2 = 0 ; | |
23545 | int res2 = 0 ; | |
23546 | PyObject * obj0 = 0 ; | |
23547 | PyObject * obj1 = 0 ; | |
23548 | char * kwnames[] = { | |
23549 | (char *) "self",(char *) "bmp", NULL | |
23550 | }; | |
23551 | ||
23552 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
23553 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23554 | if (!SWIG_IsOK(res1)) { | |
23555 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23556 | } | |
23557 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23558 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23559 | if (!SWIG_IsOK(res2)) { | |
23560 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23561 | } | |
23562 | if (!argp2) { | |
23563 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23564 | } | |
23565 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
23566 | { | |
23567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23568 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
23569 | wxPyEndAllowThreads(__tstate); | |
23570 | if (PyErr_Occurred()) SWIG_fail; | |
23571 | } | |
23572 | resultobj = SWIG_Py_Void(); | |
23573 | return resultobj; | |
23574 | fail: | |
23575 | return NULL; | |
23576 | } | |
23577 | ||
23578 | ||
23579 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23580 | PyObject *resultobj = 0; | |
23581 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23582 | wxString *arg2 = 0 ; | |
23583 | void *argp1 = 0 ; | |
23584 | int res1 = 0 ; | |
23585 | bool temp2 = false ; | |
23586 | PyObject * obj0 = 0 ; | |
23587 | PyObject * obj1 = 0 ; | |
23588 | char * kwnames[] = { | |
23589 | (char *) "self",(char *) "label", NULL | |
23590 | }; | |
23591 | ||
23592 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
23593 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23594 | if (!SWIG_IsOK(res1)) { | |
23595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23596 | } | |
23597 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23598 | { | |
23599 | arg2 = wxString_in_helper(obj1); | |
23600 | if (arg2 == NULL) SWIG_fail; | |
23601 | temp2 = true; | |
23602 | } | |
23603 | { | |
23604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23605 | (arg1)->SetLabel((wxString const &)*arg2); | |
23606 | wxPyEndAllowThreads(__tstate); | |
23607 | if (PyErr_Occurred()) SWIG_fail; | |
23608 | } | |
23609 | resultobj = SWIG_Py_Void(); | |
23610 | { | |
23611 | if (temp2) | |
23612 | delete arg2; | |
23613 | } | |
23614 | return resultobj; | |
23615 | fail: | |
23616 | { | |
23617 | if (temp2) | |
23618 | delete arg2; | |
23619 | } | |
23620 | return NULL; | |
d55e5bfc RD |
23621 | } |
23622 | ||
23623 | ||
1bd55598 RD |
23624 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23625 | PyObject *resultobj = 0; | |
23626 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23627 | void *argp1 = 0 ; | |
23628 | int res1 = 0 ; | |
23629 | PyObject *swig_obj[1] ; | |
23630 | ||
23631 | if (!args) SWIG_fail; | |
23632 | swig_obj[0] = args; | |
23633 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23634 | if (!SWIG_IsOK(res1)) { | |
23635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23636 | } | |
23637 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23638 | { | |
23639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23640 | (arg1)->Detach(); | |
23641 | wxPyEndAllowThreads(__tstate); | |
23642 | if (PyErr_Occurred()) SWIG_fail; | |
23643 | } | |
23644 | resultobj = SWIG_Py_Void(); | |
23645 | return resultobj; | |
23646 | fail: | |
23647 | return NULL; | |
23648 | } | |
23649 | ||
23650 | ||
23651 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23652 | PyObject *resultobj = 0; | |
23653 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23654 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
23655 | void *argp1 = 0 ; | |
23656 | int res1 = 0 ; | |
23657 | void *argp2 = 0 ; | |
23658 | int res2 = 0 ; | |
23659 | PyObject * obj0 = 0 ; | |
23660 | PyObject * obj1 = 0 ; | |
23661 | char * kwnames[] = { | |
23662 | (char *) "self",(char *) "tbar", NULL | |
23663 | }; | |
23664 | ||
23665 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail; | |
23666 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23667 | if (!SWIG_IsOK(res1)) { | |
23668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23669 | } | |
23670 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23671 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23672 | if (!SWIG_IsOK(res2)) { | |
23673 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'"); | |
23674 | } | |
23675 | arg2 = reinterpret_cast< wxToolBarBase * >(argp2); | |
23676 | { | |
23677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23678 | (arg1)->Attach(arg2); | |
23679 | wxPyEndAllowThreads(__tstate); | |
23680 | if (PyErr_Occurred()) SWIG_fail; | |
23681 | } | |
23682 | resultobj = SWIG_Py_Void(); | |
23683 | return resultobj; | |
23684 | fail: | |
23685 | return NULL; | |
d55e5bfc RD |
23686 | } |
23687 | ||
23688 | ||
1bd55598 RD |
23689 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23690 | PyObject *resultobj = 0; | |
23691 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23692 | PyObject *result = 0 ; | |
23693 | void *argp1 = 0 ; | |
23694 | int res1 = 0 ; | |
23695 | PyObject *swig_obj[1] ; | |
23696 | ||
23697 | if (!args) SWIG_fail; | |
23698 | swig_obj[0] = args; | |
23699 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23700 | if (!SWIG_IsOK(res1)) { | |
23701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23702 | } | |
23703 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23704 | { | |
23705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23706 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
23707 | wxPyEndAllowThreads(__tstate); | |
23708 | if (PyErr_Occurred()) SWIG_fail; | |
23709 | } | |
23710 | resultobj = result; | |
23711 | return resultobj; | |
23712 | fail: | |
23713 | return NULL; | |
23714 | } | |
23715 | ||
23716 | ||
23717 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23718 | PyObject *resultobj = 0; | |
23719 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23720 | PyObject *arg2 = (PyObject *) 0 ; | |
23721 | void *argp1 = 0 ; | |
23722 | int res1 = 0 ; | |
23723 | PyObject * obj0 = 0 ; | |
23724 | PyObject * obj1 = 0 ; | |
23725 | char * kwnames[] = { | |
23726 | (char *) "self",(char *) "clientData", NULL | |
23727 | }; | |
23728 | ||
23729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail; | |
23730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23731 | if (!SWIG_IsOK(res1)) { | |
23732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23733 | } | |
23734 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23735 | arg2 = obj1; | |
23736 | { | |
23737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23738 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
23739 | wxPyEndAllowThreads(__tstate); | |
23740 | if (PyErr_Occurred()) SWIG_fail; | |
23741 | } | |
23742 | resultobj = SWIG_Py_Void(); | |
23743 | return resultobj; | |
23744 | fail: | |
23745 | return NULL; | |
23746 | } | |
23747 | ||
23748 | ||
23749 | SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23750 | PyObject *obj; | |
23751 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23752 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj)); | |
23753 | return SWIG_Py_Void(); | |
23754 | } | |
23755 | ||
23756 | SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23757 | PyObject *resultobj = 0; | |
23758 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23759 | int arg2 ; | |
23760 | wxString *arg3 = 0 ; | |
23761 | wxBitmap *arg4 = 0 ; | |
23762 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
23763 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
23764 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; | |
23765 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
23766 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23767 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23768 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23769 | PyObject *arg9 = (PyObject *) NULL ; | |
23770 | wxToolBarToolBase *result = 0 ; | |
23771 | void *argp1 = 0 ; | |
23772 | int res1 = 0 ; | |
23773 | int val2 ; | |
23774 | int ecode2 = 0 ; | |
23775 | bool temp3 = false ; | |
23776 | void *argp4 = 0 ; | |
23777 | int res4 = 0 ; | |
23778 | void *argp5 = 0 ; | |
23779 | int res5 = 0 ; | |
23780 | int val6 ; | |
23781 | int ecode6 = 0 ; | |
23782 | bool temp7 = false ; | |
23783 | bool temp8 = false ; | |
23784 | PyObject * obj0 = 0 ; | |
23785 | PyObject * obj1 = 0 ; | |
23786 | PyObject * obj2 = 0 ; | |
23787 | PyObject * obj3 = 0 ; | |
23788 | PyObject * obj4 = 0 ; | |
23789 | PyObject * obj5 = 0 ; | |
23790 | PyObject * obj6 = 0 ; | |
23791 | PyObject * obj7 = 0 ; | |
23792 | PyObject * obj8 = 0 ; | |
23793 | char * kwnames[] = { | |
23794 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
23795 | }; | |
23796 | ||
23797 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
23798 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23799 | if (!SWIG_IsOK(res1)) { | |
23800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23801 | } | |
23802 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23803 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23804 | if (!SWIG_IsOK(ecode2)) { | |
23805 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'"); | |
23806 | } | |
23807 | arg2 = static_cast< int >(val2); | |
23808 | { | |
23809 | arg3 = wxString_in_helper(obj2); | |
23810 | if (arg3 == NULL) SWIG_fail; | |
23811 | temp3 = true; | |
23812 | } | |
23813 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23814 | if (!SWIG_IsOK(res4)) { | |
23815 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
23816 | } | |
23817 | if (!argp4) { | |
23818 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
23819 | } | |
23820 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
23821 | if (obj4) { | |
23822 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23823 | if (!SWIG_IsOK(res5)) { | |
23824 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
36ed4f51 | 23825 | } |
1bd55598 RD |
23826 | if (!argp5) { |
23827 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
f20a2e1f | 23828 | } |
1bd55598 RD |
23829 | arg5 = reinterpret_cast< wxBitmap * >(argp5); |
23830 | } | |
23831 | if (obj5) { | |
23832 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
23833 | if (!SWIG_IsOK(ecode6)) { | |
23834 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'"); | |
23835 | } | |
23836 | arg6 = static_cast< wxItemKind >(val6); | |
23837 | } | |
23838 | if (obj6) { | |
f20a2e1f | 23839 | { |
1bd55598 RD |
23840 | arg7 = wxString_in_helper(obj6); |
23841 | if (arg7 == NULL) SWIG_fail; | |
23842 | temp7 = true; | |
f20a2e1f | 23843 | } |
1bd55598 RD |
23844 | } |
23845 | if (obj7) { | |
f20a2e1f | 23846 | { |
1bd55598 RD |
23847 | arg8 = wxString_in_helper(obj7); |
23848 | if (arg8 == NULL) SWIG_fail; | |
23849 | temp8 = true; | |
d55e5bfc | 23850 | } |
1bd55598 RD |
23851 | } |
23852 | if (obj8) { | |
23853 | arg9 = obj8; | |
23854 | } | |
23855 | { | |
23856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23857 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
23858 | wxPyEndAllowThreads(__tstate); | |
23859 | if (PyErr_Occurred()) SWIG_fail; | |
23860 | } | |
23861 | { | |
23862 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23863 | } | |
23864 | { | |
23865 | if (temp3) | |
23866 | delete arg3; | |
23867 | } | |
23868 | { | |
23869 | if (temp7) | |
23870 | delete arg7; | |
23871 | } | |
23872 | { | |
23873 | if (temp8) | |
23874 | delete arg8; | |
23875 | } | |
23876 | return resultobj; | |
23877 | fail: | |
23878 | { | |
23879 | if (temp3) | |
23880 | delete arg3; | |
23881 | } | |
23882 | { | |
23883 | if (temp7) | |
23884 | delete arg7; | |
23885 | } | |
23886 | { | |
23887 | if (temp8) | |
23888 | delete arg8; | |
23889 | } | |
23890 | return NULL; | |
23891 | } | |
23892 | ||
23893 | ||
23894 | SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23895 | PyObject *resultobj = 0; | |
23896 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23897 | size_t arg2 ; | |
23898 | int arg3 ; | |
23899 | wxString *arg4 = 0 ; | |
23900 | wxBitmap *arg5 = 0 ; | |
23901 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
23902 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
23903 | wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ; | |
23904 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23905 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23906 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
23907 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
23908 | PyObject *arg10 = (PyObject *) NULL ; | |
23909 | wxToolBarToolBase *result = 0 ; | |
23910 | void *argp1 = 0 ; | |
23911 | int res1 = 0 ; | |
23912 | size_t val2 ; | |
23913 | int ecode2 = 0 ; | |
23914 | int val3 ; | |
23915 | int ecode3 = 0 ; | |
23916 | bool temp4 = false ; | |
23917 | void *argp5 = 0 ; | |
23918 | int res5 = 0 ; | |
23919 | void *argp6 = 0 ; | |
23920 | int res6 = 0 ; | |
23921 | int val7 ; | |
23922 | int ecode7 = 0 ; | |
23923 | bool temp8 = false ; | |
23924 | bool temp9 = false ; | |
23925 | PyObject * obj0 = 0 ; | |
23926 | PyObject * obj1 = 0 ; | |
23927 | PyObject * obj2 = 0 ; | |
23928 | PyObject * obj3 = 0 ; | |
23929 | PyObject * obj4 = 0 ; | |
23930 | PyObject * obj5 = 0 ; | |
23931 | PyObject * obj6 = 0 ; | |
23932 | PyObject * obj7 = 0 ; | |
23933 | PyObject * obj8 = 0 ; | |
23934 | PyObject * obj9 = 0 ; | |
23935 | char * kwnames[] = { | |
23936 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
23937 | }; | |
23938 | ||
23939 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
23940 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23941 | if (!SWIG_IsOK(res1)) { | |
23942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23943 | } | |
23944 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23945 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
23946 | if (!SWIG_IsOK(ecode2)) { | |
23947 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'"); | |
23948 | } | |
23949 | arg2 = static_cast< size_t >(val2); | |
23950 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23951 | if (!SWIG_IsOK(ecode3)) { | |
23952 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'"); | |
23953 | } | |
23954 | arg3 = static_cast< int >(val3); | |
23955 | { | |
23956 | arg4 = wxString_in_helper(obj3); | |
23957 | if (arg4 == NULL) SWIG_fail; | |
23958 | temp4 = true; | |
23959 | } | |
23960 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23961 | if (!SWIG_IsOK(res5)) { | |
23962 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
23963 | } | |
23964 | if (!argp5) { | |
23965 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
23966 | } | |
23967 | arg5 = reinterpret_cast< wxBitmap * >(argp5); | |
23968 | if (obj5) { | |
23969 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23970 | if (!SWIG_IsOK(res6)) { | |
23971 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 23972 | } |
1bd55598 RD |
23973 | if (!argp6) { |
23974 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 23975 | } |
1bd55598 RD |
23976 | arg6 = reinterpret_cast< wxBitmap * >(argp6); |
23977 | } | |
23978 | if (obj6) { | |
23979 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
23980 | if (!SWIG_IsOK(ecode7)) { | |
23981 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'"); | |
23982 | } | |
23983 | arg7 = static_cast< wxItemKind >(val7); | |
23984 | } | |
23985 | if (obj7) { | |
d55e5bfc | 23986 | { |
1bd55598 RD |
23987 | arg8 = wxString_in_helper(obj7); |
23988 | if (arg8 == NULL) SWIG_fail; | |
23989 | temp8 = true; | |
d55e5bfc | 23990 | } |
1bd55598 RD |
23991 | } |
23992 | if (obj8) { | |
d55e5bfc | 23993 | { |
1bd55598 RD |
23994 | arg9 = wxString_in_helper(obj8); |
23995 | if (arg9 == NULL) SWIG_fail; | |
23996 | temp9 = true; | |
d55e5bfc | 23997 | } |
1bd55598 RD |
23998 | } |
23999 | if (obj9) { | |
24000 | arg10 = obj9; | |
24001 | } | |
24002 | { | |
24003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24004 | result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10); | |
24005 | wxPyEndAllowThreads(__tstate); | |
24006 | if (PyErr_Occurred()) SWIG_fail; | |
24007 | } | |
24008 | { | |
24009 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24010 | } | |
24011 | { | |
24012 | if (temp4) | |
24013 | delete arg4; | |
24014 | } | |
24015 | { | |
24016 | if (temp8) | |
24017 | delete arg8; | |
24018 | } | |
24019 | { | |
24020 | if (temp9) | |
24021 | delete arg9; | |
24022 | } | |
24023 | return resultobj; | |
24024 | fail: | |
24025 | { | |
24026 | if (temp4) | |
24027 | delete arg4; | |
24028 | } | |
24029 | { | |
24030 | if (temp8) | |
24031 | delete arg8; | |
24032 | } | |
24033 | { | |
24034 | if (temp9) | |
24035 | delete arg9; | |
24036 | } | |
24037 | return NULL; | |
24038 | } | |
24039 | ||
24040 | ||
24041 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24042 | PyObject *resultobj = 0; | |
24043 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24044 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
24045 | wxToolBarToolBase *result = 0 ; | |
24046 | void *argp1 = 0 ; | |
24047 | int res1 = 0 ; | |
24048 | void *argp2 = 0 ; | |
24049 | int res2 = 0 ; | |
24050 | PyObject * obj0 = 0 ; | |
24051 | PyObject * obj1 = 0 ; | |
24052 | char * kwnames[] = { | |
24053 | (char *) "self",(char *) "tool", NULL | |
24054 | }; | |
24055 | ||
24056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
24057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24058 | if (!SWIG_IsOK(res1)) { | |
24059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24060 | } | |
24061 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24062 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
24063 | if (!SWIG_IsOK(res2)) { | |
24064 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'"); | |
24065 | } | |
24066 | arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2); | |
24067 | { | |
24068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24069 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
24070 | wxPyEndAllowThreads(__tstate); | |
24071 | if (PyErr_Occurred()) SWIG_fail; | |
24072 | } | |
24073 | { | |
24074 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24075 | } | |
24076 | return resultobj; | |
24077 | fail: | |
24078 | return NULL; | |
24079 | } | |
24080 | ||
24081 | ||
24082 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24083 | PyObject *resultobj = 0; | |
24084 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24085 | size_t arg2 ; | |
24086 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
24087 | wxToolBarToolBase *result = 0 ; | |
24088 | void *argp1 = 0 ; | |
24089 | int res1 = 0 ; | |
24090 | size_t val2 ; | |
24091 | int ecode2 = 0 ; | |
24092 | void *argp3 = 0 ; | |
24093 | int res3 = 0 ; | |
24094 | PyObject * obj0 = 0 ; | |
24095 | PyObject * obj1 = 0 ; | |
24096 | PyObject * obj2 = 0 ; | |
24097 | char * kwnames[] = { | |
24098 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
24099 | }; | |
24100 | ||
24101 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24102 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24103 | if (!SWIG_IsOK(res1)) { | |
24104 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24105 | } | |
24106 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24107 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24108 | if (!SWIG_IsOK(ecode2)) { | |
24109 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'"); | |
24110 | } | |
24111 | arg2 = static_cast< size_t >(val2); | |
24112 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
24113 | if (!SWIG_IsOK(res3)) { | |
24114 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'"); | |
24115 | } | |
24116 | arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3); | |
24117 | { | |
24118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24119 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
24120 | wxPyEndAllowThreads(__tstate); | |
24121 | if (PyErr_Occurred()) SWIG_fail; | |
24122 | } | |
24123 | { | |
24124 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24125 | } | |
24126 | return resultobj; | |
24127 | fail: | |
24128 | return NULL; | |
24129 | } | |
24130 | ||
24131 | ||
24132 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24133 | PyObject *resultobj = 0; | |
24134 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24135 | wxControl *arg2 = (wxControl *) 0 ; | |
24136 | wxToolBarToolBase *result = 0 ; | |
24137 | void *argp1 = 0 ; | |
24138 | int res1 = 0 ; | |
24139 | void *argp2 = 0 ; | |
24140 | int res2 = 0 ; | |
24141 | PyObject * obj0 = 0 ; | |
24142 | PyObject * obj1 = 0 ; | |
24143 | char * kwnames[] = { | |
24144 | (char *) "self",(char *) "control", NULL | |
24145 | }; | |
24146 | ||
24147 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
24148 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24149 | if (!SWIG_IsOK(res1)) { | |
24150 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24151 | } | |
24152 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24153 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 ); | |
24154 | if (!SWIG_IsOK(res2)) { | |
24155 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'"); | |
24156 | } | |
24157 | arg2 = reinterpret_cast< wxControl * >(argp2); | |
24158 | { | |
24159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24160 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
24161 | wxPyEndAllowThreads(__tstate); | |
24162 | if (PyErr_Occurred()) SWIG_fail; | |
24163 | } | |
24164 | { | |
24165 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24166 | } | |
24167 | return resultobj; | |
24168 | fail: | |
24169 | return NULL; | |
24170 | } | |
24171 | ||
24172 | ||
24173 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24174 | PyObject *resultobj = 0; | |
24175 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24176 | size_t arg2 ; | |
24177 | wxControl *arg3 = (wxControl *) 0 ; | |
24178 | wxToolBarToolBase *result = 0 ; | |
24179 | void *argp1 = 0 ; | |
24180 | int res1 = 0 ; | |
24181 | size_t val2 ; | |
24182 | int ecode2 = 0 ; | |
24183 | void *argp3 = 0 ; | |
24184 | int res3 = 0 ; | |
24185 | PyObject * obj0 = 0 ; | |
24186 | PyObject * obj1 = 0 ; | |
24187 | PyObject * obj2 = 0 ; | |
24188 | char * kwnames[] = { | |
24189 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
24190 | }; | |
24191 | ||
24192 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24193 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24194 | if (!SWIG_IsOK(res1)) { | |
24195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24196 | } | |
24197 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24198 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24199 | if (!SWIG_IsOK(ecode2)) { | |
24200 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'"); | |
24201 | } | |
24202 | arg2 = static_cast< size_t >(val2); | |
24203 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 ); | |
24204 | if (!SWIG_IsOK(res3)) { | |
24205 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'"); | |
24206 | } | |
24207 | arg3 = reinterpret_cast< wxControl * >(argp3); | |
24208 | { | |
24209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24210 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
24211 | wxPyEndAllowThreads(__tstate); | |
24212 | if (PyErr_Occurred()) SWIG_fail; | |
24213 | } | |
24214 | { | |
24215 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24216 | } | |
24217 | return resultobj; | |
24218 | fail: | |
24219 | return NULL; | |
24220 | } | |
24221 | ||
24222 | ||
24223 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24224 | PyObject *resultobj = 0; | |
24225 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24226 | int arg2 ; | |
24227 | wxControl *result = 0 ; | |
24228 | void *argp1 = 0 ; | |
24229 | int res1 = 0 ; | |
24230 | int val2 ; | |
24231 | int ecode2 = 0 ; | |
24232 | PyObject * obj0 = 0 ; | |
24233 | PyObject * obj1 = 0 ; | |
24234 | char * kwnames[] = { | |
24235 | (char *) "self",(char *) "id", NULL | |
24236 | }; | |
24237 | ||
24238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
24239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24240 | if (!SWIG_IsOK(res1)) { | |
24241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24242 | } | |
24243 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24244 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24245 | if (!SWIG_IsOK(ecode2)) { | |
24246 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'"); | |
24247 | } | |
24248 | arg2 = static_cast< int >(val2); | |
24249 | { | |
24250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24251 | result = (wxControl *)(arg1)->FindControl(arg2); | |
24252 | wxPyEndAllowThreads(__tstate); | |
24253 | if (PyErr_Occurred()) SWIG_fail; | |
24254 | } | |
24255 | { | |
24256 | resultobj = wxPyMake_wxObject(result, 0); | |
24257 | } | |
24258 | return resultobj; | |
24259 | fail: | |
24260 | return NULL; | |
d55e5bfc RD |
24261 | } |
24262 | ||
24263 | ||
1bd55598 RD |
24264 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24265 | PyObject *resultobj = 0; | |
24266 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24267 | wxToolBarToolBase *result = 0 ; | |
24268 | void *argp1 = 0 ; | |
24269 | int res1 = 0 ; | |
24270 | PyObject *swig_obj[1] ; | |
24271 | ||
24272 | if (!args) SWIG_fail; | |
24273 | swig_obj[0] = args; | |
24274 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24275 | if (!SWIG_IsOK(res1)) { | |
24276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24277 | } | |
24278 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24279 | { | |
24280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24281 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
24282 | wxPyEndAllowThreads(__tstate); | |
24283 | if (PyErr_Occurred()) SWIG_fail; | |
24284 | } | |
24285 | { | |
24286 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24287 | } | |
24288 | return resultobj; | |
24289 | fail: | |
24290 | return NULL; | |
24291 | } | |
24292 | ||
24293 | ||
24294 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24295 | PyObject *resultobj = 0; | |
24296 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24297 | size_t arg2 ; | |
24298 | wxToolBarToolBase *result = 0 ; | |
24299 | void *argp1 = 0 ; | |
24300 | int res1 = 0 ; | |
24301 | size_t val2 ; | |
24302 | int ecode2 = 0 ; | |
24303 | PyObject * obj0 = 0 ; | |
24304 | PyObject * obj1 = 0 ; | |
24305 | char * kwnames[] = { | |
24306 | (char *) "self",(char *) "pos", NULL | |
24307 | }; | |
24308 | ||
24309 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail; | |
24310 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24311 | if (!SWIG_IsOK(res1)) { | |
24312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24313 | } | |
24314 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24315 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24316 | if (!SWIG_IsOK(ecode2)) { | |
24317 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'"); | |
24318 | } | |
24319 | arg2 = static_cast< size_t >(val2); | |
24320 | { | |
24321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24322 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
24323 | wxPyEndAllowThreads(__tstate); | |
24324 | if (PyErr_Occurred()) SWIG_fail; | |
24325 | } | |
24326 | { | |
24327 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24328 | } | |
24329 | return resultobj; | |
24330 | fail: | |
24331 | return NULL; | |
24332 | } | |
24333 | ||
24334 | ||
24335 | SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24336 | PyObject *resultobj = 0; | |
24337 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24338 | int arg2 ; | |
24339 | wxToolBarToolBase *result = 0 ; | |
24340 | void *argp1 = 0 ; | |
24341 | int res1 = 0 ; | |
24342 | int val2 ; | |
24343 | int ecode2 = 0 ; | |
24344 | PyObject * obj0 = 0 ; | |
24345 | PyObject * obj1 = 0 ; | |
24346 | char * kwnames[] = { | |
24347 | (char *) "self",(char *) "id", NULL | |
24348 | }; | |
24349 | ||
24350 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail; | |
24351 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24352 | if (!SWIG_IsOK(res1)) { | |
24353 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24354 | } | |
24355 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24356 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24357 | if (!SWIG_IsOK(ecode2)) { | |
24358 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'"); | |
24359 | } | |
24360 | arg2 = static_cast< int >(val2); | |
24361 | { | |
24362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24363 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
24364 | wxPyEndAllowThreads(__tstate); | |
24365 | if (PyErr_Occurred()) SWIG_fail; | |
24366 | } | |
24367 | { | |
24368 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24369 | } | |
24370 | return resultobj; | |
24371 | fail: | |
24372 | return NULL; | |
24373 | } | |
24374 | ||
24375 | ||
24376 | SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24377 | PyObject *resultobj = 0; | |
24378 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24379 | size_t arg2 ; | |
24380 | bool result; | |
24381 | void *argp1 = 0 ; | |
24382 | int res1 = 0 ; | |
24383 | size_t val2 ; | |
24384 | int ecode2 = 0 ; | |
24385 | PyObject * obj0 = 0 ; | |
24386 | PyObject * obj1 = 0 ; | |
24387 | char * kwnames[] = { | |
24388 | (char *) "self",(char *) "pos", NULL | |
24389 | }; | |
24390 | ||
24391 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
24392 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24393 | if (!SWIG_IsOK(res1)) { | |
24394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24395 | } | |
24396 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24397 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24398 | if (!SWIG_IsOK(ecode2)) { | |
24399 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'"); | |
24400 | } | |
24401 | arg2 = static_cast< size_t >(val2); | |
24402 | { | |
24403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24404 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
24405 | wxPyEndAllowThreads(__tstate); | |
24406 | if (PyErr_Occurred()) SWIG_fail; | |
24407 | } | |
24408 | { | |
24409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24410 | } | |
24411 | return resultobj; | |
24412 | fail: | |
24413 | return NULL; | |
24414 | } | |
24415 | ||
24416 | ||
24417 | SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24418 | PyObject *resultobj = 0; | |
24419 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24420 | int arg2 ; | |
24421 | bool result; | |
24422 | void *argp1 = 0 ; | |
24423 | int res1 = 0 ; | |
24424 | int val2 ; | |
24425 | int ecode2 = 0 ; | |
24426 | PyObject * obj0 = 0 ; | |
24427 | PyObject * obj1 = 0 ; | |
24428 | char * kwnames[] = { | |
24429 | (char *) "self",(char *) "id", NULL | |
24430 | }; | |
24431 | ||
24432 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail; | |
24433 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24434 | if (!SWIG_IsOK(res1)) { | |
24435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24436 | } | |
24437 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24438 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24439 | if (!SWIG_IsOK(ecode2)) { | |
24440 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'"); | |
24441 | } | |
24442 | arg2 = static_cast< int >(val2); | |
24443 | { | |
24444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24445 | result = (bool)(arg1)->DeleteTool(arg2); | |
24446 | wxPyEndAllowThreads(__tstate); | |
24447 | if (PyErr_Occurred()) SWIG_fail; | |
24448 | } | |
24449 | { | |
24450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24451 | } | |
24452 | return resultobj; | |
24453 | fail: | |
24454 | return NULL; | |
d55e5bfc RD |
24455 | } |
24456 | ||
24457 | ||
1bd55598 RD |
24458 | SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24459 | PyObject *resultobj = 0; | |
24460 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
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_wxToolBarBase, 0 | 0 ); | |
24468 | if (!SWIG_IsOK(res1)) { | |
24469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24470 | } | |
24471 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24472 | { | |
24473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24474 | (arg1)->ClearTools(); | |
24475 | wxPyEndAllowThreads(__tstate); | |
24476 | if (PyErr_Occurred()) SWIG_fail; | |
24477 | } | |
24478 | resultobj = SWIG_Py_Void(); | |
24479 | return resultobj; | |
24480 | fail: | |
24481 | return NULL; | |
d55e5bfc RD |
24482 | } |
24483 | ||
24484 | ||
1bd55598 RD |
24485 | SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24486 | PyObject *resultobj = 0; | |
24487 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24488 | bool result; | |
24489 | void *argp1 = 0 ; | |
24490 | int res1 = 0 ; | |
24491 | PyObject *swig_obj[1] ; | |
24492 | ||
24493 | if (!args) SWIG_fail; | |
24494 | swig_obj[0] = args; | |
24495 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24496 | if (!SWIG_IsOK(res1)) { | |
24497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24498 | } | |
24499 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24500 | { | |
24501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24502 | result = (bool)(arg1)->Realize(); | |
24503 | wxPyEndAllowThreads(__tstate); | |
24504 | if (PyErr_Occurred()) SWIG_fail; | |
24505 | } | |
24506 | { | |
24507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24508 | } | |
24509 | return resultobj; | |
24510 | fail: | |
24511 | return NULL; | |
24512 | } | |
24513 | ||
24514 | ||
24515 | SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24516 | PyObject *resultobj = 0; | |
24517 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24518 | int arg2 ; | |
24519 | bool arg3 ; | |
24520 | void *argp1 = 0 ; | |
24521 | int res1 = 0 ; | |
24522 | int val2 ; | |
24523 | int ecode2 = 0 ; | |
24524 | bool val3 ; | |
24525 | int ecode3 = 0 ; | |
24526 | PyObject * obj0 = 0 ; | |
24527 | PyObject * obj1 = 0 ; | |
24528 | PyObject * obj2 = 0 ; | |
24529 | char * kwnames[] = { | |
24530 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
24531 | }; | |
24532 | ||
24533 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24534 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24535 | if (!SWIG_IsOK(res1)) { | |
24536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24537 | } | |
24538 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24539 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24540 | if (!SWIG_IsOK(ecode2)) { | |
24541 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'"); | |
24542 | } | |
24543 | arg2 = static_cast< int >(val2); | |
24544 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24545 | if (!SWIG_IsOK(ecode3)) { | |
24546 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'"); | |
24547 | } | |
24548 | arg3 = static_cast< bool >(val3); | |
24549 | { | |
24550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24551 | (arg1)->EnableTool(arg2,arg3); | |
24552 | wxPyEndAllowThreads(__tstate); | |
24553 | if (PyErr_Occurred()) SWIG_fail; | |
24554 | } | |
24555 | resultobj = SWIG_Py_Void(); | |
24556 | return resultobj; | |
24557 | fail: | |
24558 | return NULL; | |
24559 | } | |
24560 | ||
24561 | ||
24562 | SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24563 | PyObject *resultobj = 0; | |
24564 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24565 | int arg2 ; | |
24566 | bool arg3 ; | |
24567 | void *argp1 = 0 ; | |
24568 | int res1 = 0 ; | |
24569 | int val2 ; | |
24570 | int ecode2 = 0 ; | |
24571 | bool val3 ; | |
24572 | int ecode3 = 0 ; | |
24573 | PyObject * obj0 = 0 ; | |
24574 | PyObject * obj1 = 0 ; | |
24575 | PyObject * obj2 = 0 ; | |
24576 | char * kwnames[] = { | |
24577 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
24578 | }; | |
24579 | ||
24580 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24582 | if (!SWIG_IsOK(res1)) { | |
24583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24584 | } | |
24585 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24586 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24587 | if (!SWIG_IsOK(ecode2)) { | |
24588 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'"); | |
24589 | } | |
24590 | arg2 = static_cast< int >(val2); | |
24591 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24592 | if (!SWIG_IsOK(ecode3)) { | |
24593 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'"); | |
24594 | } | |
24595 | arg3 = static_cast< bool >(val3); | |
24596 | { | |
24597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24598 | (arg1)->ToggleTool(arg2,arg3); | |
24599 | wxPyEndAllowThreads(__tstate); | |
24600 | if (PyErr_Occurred()) SWIG_fail; | |
24601 | } | |
24602 | resultobj = SWIG_Py_Void(); | |
24603 | return resultobj; | |
24604 | fail: | |
24605 | return NULL; | |
24606 | } | |
24607 | ||
24608 | ||
24609 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24610 | PyObject *resultobj = 0; | |
24611 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24612 | int arg2 ; | |
24613 | bool arg3 ; | |
24614 | void *argp1 = 0 ; | |
24615 | int res1 = 0 ; | |
24616 | int val2 ; | |
24617 | int ecode2 = 0 ; | |
24618 | bool val3 ; | |
24619 | int ecode3 = 0 ; | |
24620 | PyObject * obj0 = 0 ; | |
24621 | PyObject * obj1 = 0 ; | |
24622 | PyObject * obj2 = 0 ; | |
24623 | char * kwnames[] = { | |
24624 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
24625 | }; | |
24626 | ||
24627 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24628 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24629 | if (!SWIG_IsOK(res1)) { | |
24630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24631 | } | |
24632 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24633 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24634 | if (!SWIG_IsOK(ecode2)) { | |
24635 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'"); | |
24636 | } | |
24637 | arg2 = static_cast< int >(val2); | |
24638 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24639 | if (!SWIG_IsOK(ecode3)) { | |
24640 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'"); | |
24641 | } | |
24642 | arg3 = static_cast< bool >(val3); | |
24643 | { | |
24644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24645 | (arg1)->SetToggle(arg2,arg3); | |
24646 | wxPyEndAllowThreads(__tstate); | |
24647 | if (PyErr_Occurred()) SWIG_fail; | |
24648 | } | |
24649 | resultobj = SWIG_Py_Void(); | |
24650 | return resultobj; | |
24651 | fail: | |
24652 | return NULL; | |
24653 | } | |
24654 | ||
24655 | ||
24656 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24657 | PyObject *resultobj = 0; | |
24658 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24659 | int arg2 ; | |
24660 | PyObject *result = 0 ; | |
24661 | void *argp1 = 0 ; | |
24662 | int res1 = 0 ; | |
24663 | int val2 ; | |
24664 | int ecode2 = 0 ; | |
24665 | PyObject * obj0 = 0 ; | |
24666 | PyObject * obj1 = 0 ; | |
24667 | char * kwnames[] = { | |
24668 | (char *) "self",(char *) "id", NULL | |
24669 | }; | |
24670 | ||
24671 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24672 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24673 | if (!SWIG_IsOK(res1)) { | |
24674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24675 | } | |
24676 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24677 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24678 | if (!SWIG_IsOK(ecode2)) { | |
24679 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'"); | |
24680 | } | |
24681 | arg2 = static_cast< int >(val2); | |
24682 | { | |
24683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24684 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
24685 | wxPyEndAllowThreads(__tstate); | |
24686 | if (PyErr_Occurred()) SWIG_fail; | |
24687 | } | |
24688 | resultobj = result; | |
24689 | return resultobj; | |
24690 | fail: | |
24691 | return NULL; | |
24692 | } | |
24693 | ||
24694 | ||
24695 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24696 | PyObject *resultobj = 0; | |
24697 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24698 | int arg2 ; | |
24699 | PyObject *arg3 = (PyObject *) 0 ; | |
24700 | void *argp1 = 0 ; | |
24701 | int res1 = 0 ; | |
24702 | int val2 ; | |
24703 | int ecode2 = 0 ; | |
24704 | PyObject * obj0 = 0 ; | |
24705 | PyObject * obj1 = 0 ; | |
24706 | PyObject * obj2 = 0 ; | |
24707 | char * kwnames[] = { | |
24708 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
24709 | }; | |
24710 | ||
24711 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24712 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24713 | if (!SWIG_IsOK(res1)) { | |
24714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24715 | } | |
24716 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24717 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24718 | if (!SWIG_IsOK(ecode2)) { | |
24719 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'"); | |
24720 | } | |
24721 | arg2 = static_cast< int >(val2); | |
24722 | arg3 = obj2; | |
24723 | { | |
24724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24725 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
24726 | wxPyEndAllowThreads(__tstate); | |
24727 | if (PyErr_Occurred()) SWIG_fail; | |
24728 | } | |
24729 | resultobj = SWIG_Py_Void(); | |
24730 | return resultobj; | |
24731 | fail: | |
24732 | return NULL; | |
24733 | } | |
24734 | ||
24735 | ||
24736 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24737 | PyObject *resultobj = 0; | |
24738 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24739 | int arg2 ; | |
24740 | int result; | |
24741 | void *argp1 = 0 ; | |
24742 | int res1 = 0 ; | |
24743 | int val2 ; | |
24744 | int ecode2 = 0 ; | |
24745 | PyObject * obj0 = 0 ; | |
24746 | PyObject * obj1 = 0 ; | |
24747 | char * kwnames[] = { | |
24748 | (char *) "self",(char *) "id", NULL | |
24749 | }; | |
24750 | ||
24751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
24752 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24753 | if (!SWIG_IsOK(res1)) { | |
24754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
24755 | } | |
24756 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24757 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24758 | if (!SWIG_IsOK(ecode2)) { | |
24759 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'"); | |
24760 | } | |
24761 | arg2 = static_cast< int >(val2); | |
24762 | { | |
24763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24764 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
24765 | wxPyEndAllowThreads(__tstate); | |
24766 | if (PyErr_Occurred()) SWIG_fail; | |
24767 | } | |
24768 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24769 | return resultobj; | |
24770 | fail: | |
24771 | return NULL; | |
24772 | } | |
24773 | ||
24774 | ||
24775 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24776 | PyObject *resultobj = 0; | |
24777 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24778 | int arg2 ; | |
24779 | bool result; | |
24780 | void *argp1 = 0 ; | |
24781 | int res1 = 0 ; | |
24782 | int val2 ; | |
24783 | int ecode2 = 0 ; | |
24784 | PyObject * obj0 = 0 ; | |
24785 | PyObject * obj1 = 0 ; | |
24786 | char * kwnames[] = { | |
24787 | (char *) "self",(char *) "id", NULL | |
24788 | }; | |
24789 | ||
24790 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail; | |
24791 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24792 | if (!SWIG_IsOK(res1)) { | |
24793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24794 | } | |
24795 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24796 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24797 | if (!SWIG_IsOK(ecode2)) { | |
24798 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'"); | |
24799 | } | |
24800 | arg2 = static_cast< int >(val2); | |
24801 | { | |
24802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24803 | result = (bool)(arg1)->GetToolState(arg2); | |
24804 | wxPyEndAllowThreads(__tstate); | |
24805 | if (PyErr_Occurred()) SWIG_fail; | |
24806 | } | |
24807 | { | |
24808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24809 | } | |
24810 | return resultobj; | |
24811 | fail: | |
24812 | return NULL; | |
24813 | } | |
24814 | ||
24815 | ||
24816 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24817 | PyObject *resultobj = 0; | |
24818 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24819 | int arg2 ; | |
24820 | bool result; | |
24821 | void *argp1 = 0 ; | |
24822 | int res1 = 0 ; | |
24823 | int val2 ; | |
24824 | int ecode2 = 0 ; | |
24825 | PyObject * obj0 = 0 ; | |
24826 | PyObject * obj1 = 0 ; | |
24827 | char * kwnames[] = { | |
24828 | (char *) "self",(char *) "id", NULL | |
24829 | }; | |
24830 | ||
24831 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
24832 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24833 | if (!SWIG_IsOK(res1)) { | |
24834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24835 | } | |
24836 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24837 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24838 | if (!SWIG_IsOK(ecode2)) { | |
24839 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'"); | |
24840 | } | |
24841 | arg2 = static_cast< int >(val2); | |
24842 | { | |
24843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24844 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
24845 | wxPyEndAllowThreads(__tstate); | |
24846 | if (PyErr_Occurred()) SWIG_fail; | |
24847 | } | |
24848 | { | |
24849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24850 | } | |
24851 | return resultobj; | |
24852 | fail: | |
24853 | return NULL; | |
24854 | } | |
24855 | ||
24856 | ||
24857 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24858 | PyObject *resultobj = 0; | |
24859 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24860 | int arg2 ; | |
24861 | wxString *arg3 = 0 ; | |
24862 | void *argp1 = 0 ; | |
24863 | int res1 = 0 ; | |
24864 | int val2 ; | |
24865 | int ecode2 = 0 ; | |
24866 | bool temp3 = false ; | |
24867 | PyObject * obj0 = 0 ; | |
24868 | PyObject * obj1 = 0 ; | |
24869 | PyObject * obj2 = 0 ; | |
24870 | char * kwnames[] = { | |
24871 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
24872 | }; | |
24873 | ||
24874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24875 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24876 | if (!SWIG_IsOK(res1)) { | |
24877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24878 | } | |
24879 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24880 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24881 | if (!SWIG_IsOK(ecode2)) { | |
24882 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'"); | |
24883 | } | |
24884 | arg2 = static_cast< int >(val2); | |
24885 | { | |
24886 | arg3 = wxString_in_helper(obj2); | |
24887 | if (arg3 == NULL) SWIG_fail; | |
24888 | temp3 = true; | |
24889 | } | |
24890 | { | |
24891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24892 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
24893 | wxPyEndAllowThreads(__tstate); | |
24894 | if (PyErr_Occurred()) SWIG_fail; | |
24895 | } | |
24896 | resultobj = SWIG_Py_Void(); | |
24897 | { | |
24898 | if (temp3) | |
24899 | delete arg3; | |
24900 | } | |
24901 | return resultobj; | |
24902 | fail: | |
24903 | { | |
24904 | if (temp3) | |
24905 | delete arg3; | |
24906 | } | |
24907 | return NULL; | |
24908 | } | |
24909 | ||
24910 | ||
24911 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24912 | PyObject *resultobj = 0; | |
24913 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24914 | int arg2 ; | |
24915 | wxString result; | |
24916 | void *argp1 = 0 ; | |
24917 | int res1 = 0 ; | |
24918 | int val2 ; | |
24919 | int ecode2 = 0 ; | |
24920 | PyObject * obj0 = 0 ; | |
24921 | PyObject * obj1 = 0 ; | |
24922 | char * kwnames[] = { | |
24923 | (char *) "self",(char *) "id", NULL | |
24924 | }; | |
24925 | ||
24926 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
24927 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24928 | if (!SWIG_IsOK(res1)) { | |
24929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24930 | } | |
24931 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24932 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24933 | if (!SWIG_IsOK(ecode2)) { | |
24934 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'"); | |
24935 | } | |
24936 | arg2 = static_cast< int >(val2); | |
24937 | { | |
24938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24939 | result = (arg1)->GetToolShortHelp(arg2); | |
24940 | wxPyEndAllowThreads(__tstate); | |
24941 | if (PyErr_Occurred()) SWIG_fail; | |
24942 | } | |
24943 | { | |
24944 | #if wxUSE_UNICODE | |
24945 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24946 | #else | |
24947 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24948 | #endif | |
24949 | } | |
24950 | return resultobj; | |
24951 | fail: | |
24952 | return NULL; | |
24953 | } | |
24954 | ||
24955 | ||
24956 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24957 | PyObject *resultobj = 0; | |
24958 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24959 | int arg2 ; | |
24960 | wxString *arg3 = 0 ; | |
24961 | void *argp1 = 0 ; | |
24962 | int res1 = 0 ; | |
24963 | int val2 ; | |
24964 | int ecode2 = 0 ; | |
24965 | bool temp3 = false ; | |
24966 | PyObject * obj0 = 0 ; | |
24967 | PyObject * obj1 = 0 ; | |
24968 | PyObject * obj2 = 0 ; | |
24969 | char * kwnames[] = { | |
24970 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
24971 | }; | |
24972 | ||
24973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24975 | if (!SWIG_IsOK(res1)) { | |
24976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24977 | } | |
24978 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24979 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24980 | if (!SWIG_IsOK(ecode2)) { | |
24981 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'"); | |
24982 | } | |
24983 | arg2 = static_cast< int >(val2); | |
24984 | { | |
24985 | arg3 = wxString_in_helper(obj2); | |
24986 | if (arg3 == NULL) SWIG_fail; | |
24987 | temp3 = true; | |
24988 | } | |
24989 | { | |
24990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24991 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
24992 | wxPyEndAllowThreads(__tstate); | |
24993 | if (PyErr_Occurred()) SWIG_fail; | |
24994 | } | |
24995 | resultobj = SWIG_Py_Void(); | |
24996 | { | |
24997 | if (temp3) | |
24998 | delete arg3; | |
24999 | } | |
25000 | return resultobj; | |
25001 | fail: | |
25002 | { | |
25003 | if (temp3) | |
25004 | delete arg3; | |
25005 | } | |
25006 | return NULL; | |
25007 | } | |
25008 | ||
25009 | ||
25010 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25011 | PyObject *resultobj = 0; | |
25012 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25013 | int arg2 ; | |
25014 | wxString result; | |
25015 | void *argp1 = 0 ; | |
25016 | int res1 = 0 ; | |
25017 | int val2 ; | |
25018 | int ecode2 = 0 ; | |
25019 | PyObject * obj0 = 0 ; | |
25020 | PyObject * obj1 = 0 ; | |
25021 | char * kwnames[] = { | |
25022 | (char *) "self",(char *) "id", NULL | |
25023 | }; | |
25024 | ||
25025 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
25026 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25027 | if (!SWIG_IsOK(res1)) { | |
25028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25029 | } | |
25030 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25031 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25032 | if (!SWIG_IsOK(ecode2)) { | |
25033 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'"); | |
25034 | } | |
25035 | arg2 = static_cast< int >(val2); | |
25036 | { | |
25037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25038 | result = (arg1)->GetToolLongHelp(arg2); | |
25039 | wxPyEndAllowThreads(__tstate); | |
25040 | if (PyErr_Occurred()) SWIG_fail; | |
25041 | } | |
25042 | { | |
25043 | #if wxUSE_UNICODE | |
25044 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25045 | #else | |
25046 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25047 | #endif | |
25048 | } | |
25049 | return resultobj; | |
25050 | fail: | |
25051 | return NULL; | |
25052 | } | |
25053 | ||
25054 | ||
25055 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25056 | PyObject *resultobj = 0; | |
25057 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25058 | int arg2 ; | |
25059 | int arg3 ; | |
25060 | void *argp1 = 0 ; | |
25061 | int res1 = 0 ; | |
25062 | int val2 ; | |
25063 | int ecode2 = 0 ; | |
25064 | int val3 ; | |
25065 | int ecode3 = 0 ; | |
25066 | PyObject * obj0 = 0 ; | |
25067 | PyObject * obj1 = 0 ; | |
25068 | PyObject * obj2 = 0 ; | |
25069 | char * kwnames[] = { | |
25070 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25071 | }; | |
25072 | ||
25073 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25074 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25075 | if (!SWIG_IsOK(res1)) { | |
25076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25077 | } | |
25078 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25079 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25080 | if (!SWIG_IsOK(ecode2)) { | |
25081 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'"); | |
25082 | } | |
25083 | arg2 = static_cast< int >(val2); | |
25084 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25085 | if (!SWIG_IsOK(ecode3)) { | |
25086 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'"); | |
25087 | } | |
25088 | arg3 = static_cast< int >(val3); | |
25089 | { | |
25090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25091 | (arg1)->SetMargins(arg2,arg3); | |
25092 | wxPyEndAllowThreads(__tstate); | |
25093 | if (PyErr_Occurred()) SWIG_fail; | |
25094 | } | |
25095 | resultobj = SWIG_Py_Void(); | |
25096 | return resultobj; | |
25097 | fail: | |
25098 | return NULL; | |
25099 | } | |
25100 | ||
25101 | ||
25102 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25103 | PyObject *resultobj = 0; | |
25104 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25105 | wxSize *arg2 = 0 ; | |
25106 | void *argp1 = 0 ; | |
25107 | int res1 = 0 ; | |
25108 | wxSize temp2 ; | |
25109 | PyObject * obj0 = 0 ; | |
25110 | PyObject * obj1 = 0 ; | |
25111 | char * kwnames[] = { | |
25112 | (char *) "self",(char *) "size", NULL | |
25113 | }; | |
25114 | ||
25115 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
25116 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25117 | if (!SWIG_IsOK(res1)) { | |
25118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25119 | } | |
25120 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25121 | { | |
25122 | arg2 = &temp2; | |
25123 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25124 | } | |
25125 | { | |
25126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25127 | (arg1)->SetMargins((wxSize const &)*arg2); | |
25128 | wxPyEndAllowThreads(__tstate); | |
25129 | if (PyErr_Occurred()) SWIG_fail; | |
25130 | } | |
25131 | resultobj = SWIG_Py_Void(); | |
25132 | return resultobj; | |
25133 | fail: | |
25134 | return NULL; | |
25135 | } | |
25136 | ||
25137 | ||
25138 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25139 | PyObject *resultobj = 0; | |
25140 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25141 | int arg2 ; | |
25142 | void *argp1 = 0 ; | |
25143 | int res1 = 0 ; | |
25144 | int val2 ; | |
25145 | int ecode2 = 0 ; | |
25146 | PyObject * obj0 = 0 ; | |
25147 | PyObject * obj1 = 0 ; | |
25148 | char * kwnames[] = { | |
25149 | (char *) "self",(char *) "packing", NULL | |
25150 | }; | |
25151 | ||
25152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail; | |
25153 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25154 | if (!SWIG_IsOK(res1)) { | |
25155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25156 | } | |
25157 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25158 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25159 | if (!SWIG_IsOK(ecode2)) { | |
25160 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'"); | |
25161 | } | |
25162 | arg2 = static_cast< int >(val2); | |
25163 | { | |
25164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25165 | (arg1)->SetToolPacking(arg2); | |
25166 | wxPyEndAllowThreads(__tstate); | |
25167 | if (PyErr_Occurred()) SWIG_fail; | |
25168 | } | |
25169 | resultobj = SWIG_Py_Void(); | |
25170 | return resultobj; | |
25171 | fail: | |
25172 | return NULL; | |
25173 | } | |
25174 | ||
25175 | ||
25176 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25177 | PyObject *resultobj = 0; | |
25178 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25179 | int arg2 ; | |
25180 | void *argp1 = 0 ; | |
25181 | int res1 = 0 ; | |
25182 | int val2 ; | |
25183 | int ecode2 = 0 ; | |
25184 | PyObject * obj0 = 0 ; | |
25185 | PyObject * obj1 = 0 ; | |
25186 | char * kwnames[] = { | |
25187 | (char *) "self",(char *) "separation", NULL | |
25188 | }; | |
25189 | ||
25190 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail; | |
25191 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25192 | if (!SWIG_IsOK(res1)) { | |
25193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25194 | } | |
25195 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25196 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25197 | if (!SWIG_IsOK(ecode2)) { | |
25198 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'"); | |
25199 | } | |
25200 | arg2 = static_cast< int >(val2); | |
25201 | { | |
25202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25203 | (arg1)->SetToolSeparation(arg2); | |
25204 | wxPyEndAllowThreads(__tstate); | |
25205 | if (PyErr_Occurred()) SWIG_fail; | |
25206 | } | |
25207 | resultobj = SWIG_Py_Void(); | |
25208 | return resultobj; | |
25209 | fail: | |
25210 | return NULL; | |
d55e5bfc RD |
25211 | } |
25212 | ||
25213 | ||
1bd55598 RD |
25214 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25215 | PyObject *resultobj = 0; | |
25216 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25217 | wxSize result; | |
25218 | void *argp1 = 0 ; | |
25219 | int res1 = 0 ; | |
25220 | PyObject *swig_obj[1] ; | |
25221 | ||
25222 | if (!args) SWIG_fail; | |
25223 | swig_obj[0] = args; | |
25224 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25225 | if (!SWIG_IsOK(res1)) { | |
25226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25227 | } | |
25228 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25229 | { | |
25230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25231 | result = (arg1)->GetToolMargins(); | |
25232 | wxPyEndAllowThreads(__tstate); | |
25233 | if (PyErr_Occurred()) SWIG_fail; | |
25234 | } | |
25235 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25236 | return resultobj; | |
25237 | fail: | |
25238 | return NULL; | |
d55e5bfc RD |
25239 | } |
25240 | ||
25241 | ||
1bd55598 RD |
25242 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25243 | PyObject *resultobj = 0; | |
25244 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25245 | wxSize result; | |
25246 | void *argp1 = 0 ; | |
25247 | int res1 = 0 ; | |
25248 | PyObject *swig_obj[1] ; | |
25249 | ||
25250 | if (!args) SWIG_fail; | |
25251 | swig_obj[0] = args; | |
25252 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25253 | if (!SWIG_IsOK(res1)) { | |
25254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25255 | } | |
25256 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25257 | { | |
25258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25259 | result = (arg1)->GetMargins(); | |
25260 | wxPyEndAllowThreads(__tstate); | |
25261 | if (PyErr_Occurred()) SWIG_fail; | |
25262 | } | |
25263 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25264 | return resultobj; | |
25265 | fail: | |
25266 | return NULL; | |
d55e5bfc RD |
25267 | } |
25268 | ||
25269 | ||
1bd55598 RD |
25270 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25271 | PyObject *resultobj = 0; | |
25272 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25273 | int result; | |
25274 | void *argp1 = 0 ; | |
25275 | int res1 = 0 ; | |
25276 | PyObject *swig_obj[1] ; | |
25277 | ||
25278 | if (!args) SWIG_fail; | |
25279 | swig_obj[0] = args; | |
25280 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25281 | if (!SWIG_IsOK(res1)) { | |
25282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25283 | } | |
25284 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25285 | { | |
25286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25287 | result = (int)(arg1)->GetToolPacking(); | |
25288 | wxPyEndAllowThreads(__tstate); | |
25289 | if (PyErr_Occurred()) SWIG_fail; | |
25290 | } | |
25291 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25292 | return resultobj; | |
25293 | fail: | |
25294 | return NULL; | |
d55e5bfc RD |
25295 | } |
25296 | ||
25297 | ||
1bd55598 RD |
25298 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25299 | PyObject *resultobj = 0; | |
25300 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25301 | int result; | |
25302 | void *argp1 = 0 ; | |
25303 | int res1 = 0 ; | |
25304 | PyObject *swig_obj[1] ; | |
25305 | ||
25306 | if (!args) SWIG_fail; | |
25307 | swig_obj[0] = args; | |
25308 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25309 | if (!SWIG_IsOK(res1)) { | |
25310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25311 | } | |
25312 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25313 | { | |
25314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25315 | result = (int)(arg1)->GetToolSeparation(); | |
25316 | wxPyEndAllowThreads(__tstate); | |
25317 | if (PyErr_Occurred()) SWIG_fail; | |
25318 | } | |
25319 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25320 | return resultobj; | |
25321 | fail: | |
25322 | return NULL; | |
25323 | } | |
25324 | ||
25325 | ||
25326 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25327 | PyObject *resultobj = 0; | |
25328 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25329 | int arg2 ; | |
25330 | void *argp1 = 0 ; | |
25331 | int res1 = 0 ; | |
25332 | int val2 ; | |
25333 | int ecode2 = 0 ; | |
25334 | PyObject * obj0 = 0 ; | |
25335 | PyObject * obj1 = 0 ; | |
25336 | char * kwnames[] = { | |
25337 | (char *) "self",(char *) "nRows", NULL | |
25338 | }; | |
25339 | ||
25340 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail; | |
25341 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25342 | if (!SWIG_IsOK(res1)) { | |
25343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25344 | } | |
25345 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25346 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25347 | if (!SWIG_IsOK(ecode2)) { | |
25348 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'"); | |
25349 | } | |
25350 | arg2 = static_cast< int >(val2); | |
25351 | { | |
25352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25353 | (arg1)->SetRows(arg2); | |
25354 | wxPyEndAllowThreads(__tstate); | |
25355 | if (PyErr_Occurred()) SWIG_fail; | |
25356 | } | |
25357 | resultobj = SWIG_Py_Void(); | |
25358 | return resultobj; | |
25359 | fail: | |
25360 | return NULL; | |
25361 | } | |
25362 | ||
25363 | ||
25364 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25365 | PyObject *resultobj = 0; | |
25366 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25367 | int arg2 ; | |
25368 | int arg3 ; | |
25369 | void *argp1 = 0 ; | |
25370 | int res1 = 0 ; | |
25371 | int val2 ; | |
25372 | int ecode2 = 0 ; | |
25373 | int val3 ; | |
25374 | int ecode3 = 0 ; | |
25375 | PyObject * obj0 = 0 ; | |
25376 | PyObject * obj1 = 0 ; | |
25377 | PyObject * obj2 = 0 ; | |
25378 | char * kwnames[] = { | |
25379 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
25380 | }; | |
25381 | ||
25382 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25383 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25384 | if (!SWIG_IsOK(res1)) { | |
25385 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25386 | } | |
25387 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25388 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25389 | if (!SWIG_IsOK(ecode2)) { | |
25390 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'"); | |
25391 | } | |
25392 | arg2 = static_cast< int >(val2); | |
25393 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25394 | if (!SWIG_IsOK(ecode3)) { | |
25395 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'"); | |
25396 | } | |
25397 | arg3 = static_cast< int >(val3); | |
25398 | { | |
25399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25400 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
25401 | wxPyEndAllowThreads(__tstate); | |
25402 | if (PyErr_Occurred()) SWIG_fail; | |
25403 | } | |
25404 | resultobj = SWIG_Py_Void(); | |
25405 | return resultobj; | |
25406 | fail: | |
25407 | return NULL; | |
d55e5bfc RD |
25408 | } |
25409 | ||
25410 | ||
1bd55598 RD |
25411 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25412 | PyObject *resultobj = 0; | |
25413 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25414 | int result; | |
25415 | void *argp1 = 0 ; | |
25416 | int res1 = 0 ; | |
25417 | PyObject *swig_obj[1] ; | |
25418 | ||
25419 | if (!args) SWIG_fail; | |
25420 | swig_obj[0] = args; | |
25421 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25422 | if (!SWIG_IsOK(res1)) { | |
25423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25424 | } | |
25425 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25426 | { | |
25427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25428 | result = (int)(arg1)->GetMaxRows(); | |
25429 | wxPyEndAllowThreads(__tstate); | |
25430 | if (PyErr_Occurred()) SWIG_fail; | |
25431 | } | |
25432 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25433 | return resultobj; | |
25434 | fail: | |
25435 | return NULL; | |
d55e5bfc RD |
25436 | } |
25437 | ||
25438 | ||
1bd55598 RD |
25439 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25440 | PyObject *resultobj = 0; | |
25441 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25442 | int result; | |
25443 | void *argp1 = 0 ; | |
25444 | int res1 = 0 ; | |
25445 | PyObject *swig_obj[1] ; | |
25446 | ||
25447 | if (!args) SWIG_fail; | |
25448 | swig_obj[0] = args; | |
25449 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25450 | if (!SWIG_IsOK(res1)) { | |
25451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25452 | } | |
25453 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25454 | { | |
25455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25456 | result = (int)(arg1)->GetMaxCols(); | |
25457 | wxPyEndAllowThreads(__tstate); | |
25458 | if (PyErr_Occurred()) SWIG_fail; | |
25459 | } | |
25460 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25461 | return resultobj; | |
25462 | fail: | |
25463 | return NULL; | |
25464 | } | |
25465 | ||
25466 | ||
25467 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25468 | PyObject *resultobj = 0; | |
25469 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25470 | wxSize *arg2 = 0 ; | |
25471 | void *argp1 = 0 ; | |
25472 | int res1 = 0 ; | |
25473 | wxSize temp2 ; | |
25474 | PyObject * obj0 = 0 ; | |
25475 | PyObject * obj1 = 0 ; | |
25476 | char * kwnames[] = { | |
25477 | (char *) "self",(char *) "size", NULL | |
25478 | }; | |
25479 | ||
25480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
25481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25482 | if (!SWIG_IsOK(res1)) { | |
25483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25484 | } | |
25485 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25486 | { | |
25487 | arg2 = &temp2; | |
25488 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25489 | } | |
25490 | { | |
25491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25492 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
25493 | wxPyEndAllowThreads(__tstate); | |
25494 | if (PyErr_Occurred()) SWIG_fail; | |
25495 | } | |
25496 | resultobj = SWIG_Py_Void(); | |
25497 | return resultobj; | |
25498 | fail: | |
25499 | return NULL; | |
d55e5bfc RD |
25500 | } |
25501 | ||
25502 | ||
1bd55598 RD |
25503 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25504 | PyObject *resultobj = 0; | |
25505 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25506 | wxSize result; | |
25507 | void *argp1 = 0 ; | |
25508 | int res1 = 0 ; | |
25509 | PyObject *swig_obj[1] ; | |
25510 | ||
25511 | if (!args) SWIG_fail; | |
25512 | swig_obj[0] = args; | |
25513 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25514 | if (!SWIG_IsOK(res1)) { | |
25515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25516 | } | |
25517 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25518 | { | |
25519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25520 | result = (arg1)->GetToolBitmapSize(); | |
25521 | wxPyEndAllowThreads(__tstate); | |
25522 | if (PyErr_Occurred()) SWIG_fail; | |
25523 | } | |
25524 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25525 | return resultobj; | |
25526 | fail: | |
25527 | return NULL; | |
d55e5bfc RD |
25528 | } |
25529 | ||
25530 | ||
1bd55598 RD |
25531 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25532 | PyObject *resultobj = 0; | |
25533 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25534 | wxSize result; | |
25535 | void *argp1 = 0 ; | |
25536 | int res1 = 0 ; | |
25537 | PyObject *swig_obj[1] ; | |
25538 | ||
25539 | if (!args) SWIG_fail; | |
25540 | swig_obj[0] = args; | |
25541 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25542 | if (!SWIG_IsOK(res1)) { | |
25543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25544 | } | |
25545 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25546 | { | |
25547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25548 | result = (arg1)->GetToolSize(); | |
25549 | wxPyEndAllowThreads(__tstate); | |
25550 | if (PyErr_Occurred()) SWIG_fail; | |
25551 | } | |
25552 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25553 | return resultobj; | |
25554 | fail: | |
25555 | return NULL; | |
25556 | } | |
25557 | ||
25558 | ||
25559 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25560 | PyObject *resultobj = 0; | |
25561 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25562 | int arg2 ; | |
25563 | int arg3 ; | |
25564 | wxToolBarToolBase *result = 0 ; | |
25565 | void *argp1 = 0 ; | |
25566 | int res1 = 0 ; | |
25567 | int val2 ; | |
25568 | int ecode2 = 0 ; | |
25569 | int val3 ; | |
25570 | int ecode3 = 0 ; | |
25571 | PyObject * obj0 = 0 ; | |
25572 | PyObject * obj1 = 0 ; | |
25573 | PyObject * obj2 = 0 ; | |
25574 | char * kwnames[] = { | |
25575 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25576 | }; | |
25577 | ||
25578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25580 | if (!SWIG_IsOK(res1)) { | |
25581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25582 | } | |
25583 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25584 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25585 | if (!SWIG_IsOK(ecode2)) { | |
25586 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'"); | |
25587 | } | |
25588 | arg2 = static_cast< int >(val2); | |
25589 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25590 | if (!SWIG_IsOK(ecode3)) { | |
25591 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'"); | |
25592 | } | |
25593 | arg3 = static_cast< int >(val3); | |
25594 | { | |
25595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25596 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
25597 | wxPyEndAllowThreads(__tstate); | |
25598 | if (PyErr_Occurred()) SWIG_fail; | |
25599 | } | |
25600 | { | |
25601 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
25602 | } | |
25603 | return resultobj; | |
25604 | fail: | |
25605 | return NULL; | |
25606 | } | |
25607 | ||
25608 | ||
25609 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25610 | PyObject *resultobj = 0; | |
25611 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25612 | int arg2 ; | |
25613 | wxToolBarToolBase *result = 0 ; | |
25614 | void *argp1 = 0 ; | |
25615 | int res1 = 0 ; | |
25616 | int val2 ; | |
25617 | int ecode2 = 0 ; | |
25618 | PyObject * obj0 = 0 ; | |
25619 | PyObject * obj1 = 0 ; | |
25620 | char * kwnames[] = { | |
25621 | (char *) "self",(char *) "toolid", NULL | |
25622 | }; | |
25623 | ||
25624 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail; | |
25625 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25626 | if (!SWIG_IsOK(res1)) { | |
25627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
25628 | } | |
25629 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25630 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25631 | if (!SWIG_IsOK(ecode2)) { | |
25632 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'"); | |
25633 | } | |
25634 | arg2 = static_cast< int >(val2); | |
25635 | { | |
25636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25637 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
25638 | wxPyEndAllowThreads(__tstate); | |
25639 | if (PyErr_Occurred()) SWIG_fail; | |
25640 | } | |
25641 | { | |
25642 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
25643 | } | |
25644 | return resultobj; | |
25645 | fail: | |
25646 | return NULL; | |
d55e5bfc RD |
25647 | } |
25648 | ||
25649 | ||
1bd55598 RD |
25650 | SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25651 | PyObject *resultobj = 0; | |
25652 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25653 | bool result; | |
25654 | void *argp1 = 0 ; | |
25655 | int res1 = 0 ; | |
25656 | PyObject *swig_obj[1] ; | |
25657 | ||
25658 | if (!args) SWIG_fail; | |
25659 | swig_obj[0] = args; | |
25660 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25661 | if (!SWIG_IsOK(res1)) { | |
25662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25663 | } | |
25664 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25665 | { | |
25666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25667 | result = (bool)(arg1)->IsVertical(); | |
25668 | wxPyEndAllowThreads(__tstate); | |
25669 | if (PyErr_Occurred()) SWIG_fail; | |
25670 | } | |
25671 | { | |
25672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25673 | } | |
25674 | return resultobj; | |
25675 | fail: | |
25676 | return NULL; | |
d55e5bfc RD |
25677 | } |
25678 | ||
25679 | ||
1bd55598 RD |
25680 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25681 | PyObject *resultobj = 0; | |
25682 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25683 | size_t result; | |
25684 | void *argp1 = 0 ; | |
25685 | int res1 = 0 ; | |
25686 | PyObject *swig_obj[1] ; | |
25687 | ||
25688 | if (!args) SWIG_fail; | |
25689 | swig_obj[0] = args; | |
25690 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25691 | if (!SWIG_IsOK(res1)) { | |
25692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
25693 | } | |
25694 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25695 | { | |
25696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25697 | result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount(); | |
25698 | wxPyEndAllowThreads(__tstate); | |
25699 | if (PyErr_Occurred()) SWIG_fail; | |
25700 | } | |
25701 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
25702 | return resultobj; | |
25703 | fail: | |
25704 | return NULL; | |
25705 | } | |
25706 | ||
25707 | ||
25708 | SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25709 | PyObject *obj; | |
25710 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25711 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj)); | |
25712 | return SWIG_Py_Void(); | |
25713 | } | |
25714 | ||
25715 | SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25716 | PyObject *resultobj = 0; | |
25717 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25718 | int arg2 = (int) -1 ; | |
25719 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
25720 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25721 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25722 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25723 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
25724 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
25725 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
25726 | wxToolBar *result = 0 ; | |
25727 | void *argp1 = 0 ; | |
25728 | int res1 = 0 ; | |
25729 | int val2 ; | |
25730 | int ecode2 = 0 ; | |
25731 | wxPoint temp3 ; | |
25732 | wxSize temp4 ; | |
25733 | long val5 ; | |
25734 | int ecode5 = 0 ; | |
25735 | bool temp6 = false ; | |
25736 | PyObject * obj0 = 0 ; | |
25737 | PyObject * obj1 = 0 ; | |
25738 | PyObject * obj2 = 0 ; | |
25739 | PyObject * obj3 = 0 ; | |
25740 | PyObject * obj4 = 0 ; | |
25741 | PyObject * obj5 = 0 ; | |
25742 | char * kwnames[] = { | |
25743 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
25744 | }; | |
25745 | ||
25746 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
25747 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25748 | if (!SWIG_IsOK(res1)) { | |
25749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25750 | } | |
25751 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25752 | if (obj1) { | |
25753 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25754 | if (!SWIG_IsOK(ecode2)) { | |
25755 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'"); | |
25756 | } | |
25757 | arg2 = static_cast< int >(val2); | |
25758 | } | |
25759 | if (obj2) { | |
d55e5bfc | 25760 | { |
1bd55598 RD |
25761 | arg3 = &temp3; |
25762 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 25763 | } |
1bd55598 RD |
25764 | } |
25765 | if (obj3) { | |
d55e5bfc | 25766 | { |
1bd55598 RD |
25767 | arg4 = &temp4; |
25768 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 25769 | } |
1bd55598 RD |
25770 | } |
25771 | if (obj4) { | |
25772 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
25773 | if (!SWIG_IsOK(ecode5)) { | |
25774 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'"); | |
25775 | } | |
25776 | arg5 = static_cast< long >(val5); | |
25777 | } | |
25778 | if (obj5) { | |
36ed4f51 | 25779 | { |
1bd55598 RD |
25780 | arg6 = wxString_in_helper(obj5); |
25781 | if (arg6 == NULL) SWIG_fail; | |
25782 | temp6 = true; | |
36ed4f51 | 25783 | } |
1bd55598 RD |
25784 | } |
25785 | { | |
25786 | if (!wxPyCheckForApp()) SWIG_fail; | |
25787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25788 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
25789 | wxPyEndAllowThreads(__tstate); | |
25790 | if (PyErr_Occurred()) SWIG_fail; | |
25791 | } | |
25792 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 ); | |
25793 | { | |
25794 | if (temp6) | |
25795 | delete arg6; | |
25796 | } | |
25797 | return resultobj; | |
25798 | fail: | |
25799 | { | |
25800 | if (temp6) | |
25801 | delete arg6; | |
25802 | } | |
25803 | return NULL; | |
d55e5bfc RD |
25804 | } |
25805 | ||
25806 | ||
1bd55598 RD |
25807 | SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25808 | PyObject *resultobj = 0; | |
25809 | wxToolBar *result = 0 ; | |
25810 | ||
25811 | if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail; | |
25812 | { | |
25813 | if (!wxPyCheckForApp()) SWIG_fail; | |
25814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25815 | result = (wxToolBar *)new wxToolBar(); | |
25816 | wxPyEndAllowThreads(__tstate); | |
25817 | if (PyErr_Occurred()) SWIG_fail; | |
25818 | } | |
25819 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 ); | |
25820 | return resultobj; | |
25821 | fail: | |
25822 | return NULL; | |
25823 | } | |
25824 | ||
25825 | ||
25826 | SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25827 | PyObject *resultobj = 0; | |
25828 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
25829 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25830 | int arg3 = (int) -1 ; | |
25831 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
25832 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25833 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25834 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25835 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
25836 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
25837 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
25838 | bool result; | |
25839 | void *argp1 = 0 ; | |
25840 | int res1 = 0 ; | |
25841 | void *argp2 = 0 ; | |
25842 | int res2 = 0 ; | |
25843 | int val3 ; | |
25844 | int ecode3 = 0 ; | |
25845 | wxPoint temp4 ; | |
25846 | wxSize temp5 ; | |
25847 | long val6 ; | |
25848 | int ecode6 = 0 ; | |
25849 | bool temp7 = false ; | |
25850 | PyObject * obj0 = 0 ; | |
25851 | PyObject * obj1 = 0 ; | |
25852 | PyObject * obj2 = 0 ; | |
25853 | PyObject * obj3 = 0 ; | |
25854 | PyObject * obj4 = 0 ; | |
25855 | PyObject * obj5 = 0 ; | |
25856 | PyObject * obj6 = 0 ; | |
25857 | char * kwnames[] = { | |
25858 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
25859 | }; | |
25860 | ||
25861 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
25862 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
25863 | if (!SWIG_IsOK(res1)) { | |
25864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'"); | |
25865 | } | |
25866 | arg1 = reinterpret_cast< wxToolBar * >(argp1); | |
25867 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25868 | if (!SWIG_IsOK(res2)) { | |
25869 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25870 | } | |
25871 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25872 | if (obj2) { | |
25873 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25874 | if (!SWIG_IsOK(ecode3)) { | |
25875 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
25876 | } | |
25877 | arg3 = static_cast< int >(val3); | |
25878 | } | |
25879 | if (obj3) { | |
d55e5bfc | 25880 | { |
1bd55598 RD |
25881 | arg4 = &temp4; |
25882 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 25883 | } |
1bd55598 RD |
25884 | } |
25885 | if (obj4) { | |
d55e5bfc | 25886 | { |
1bd55598 RD |
25887 | arg5 = &temp5; |
25888 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 25889 | } |
1bd55598 RD |
25890 | } |
25891 | if (obj5) { | |
25892 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
25893 | if (!SWIG_IsOK(ecode6)) { | |
25894 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'"); | |
25895 | } | |
25896 | arg6 = static_cast< long >(val6); | |
25897 | } | |
25898 | if (obj6) { | |
36ed4f51 | 25899 | { |
1bd55598 RD |
25900 | arg7 = wxString_in_helper(obj6); |
25901 | if (arg7 == NULL) SWIG_fail; | |
25902 | temp7 = true; | |
36ed4f51 | 25903 | } |
1bd55598 RD |
25904 | } |
25905 | { | |
25906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25907 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
25908 | wxPyEndAllowThreads(__tstate); | |
25909 | if (PyErr_Occurred()) SWIG_fail; | |
25910 | } | |
25911 | { | |
25912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25913 | } | |
25914 | { | |
25915 | if (temp7) | |
25916 | delete arg7; | |
25917 | } | |
25918 | return resultobj; | |
25919 | fail: | |
25920 | { | |
25921 | if (temp7) | |
25922 | delete arg7; | |
25923 | } | |
25924 | return NULL; | |
25925 | } | |
25926 | ||
25927 | ||
1bd55598 RD |
25928 | SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25929 | PyObject *resultobj = 0; | |
25930 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
25931 | SwigValueWrapper<wxVisualAttributes > result; | |
25932 | int val1 ; | |
25933 | int ecode1 = 0 ; | |
25934 | PyObject * obj0 = 0 ; | |
25935 | char * kwnames[] = { | |
25936 | (char *) "variant", NULL | |
25937 | }; | |
25938 | ||
25939 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
25940 | if (obj0) { | |
25941 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
25942 | if (!SWIG_IsOK(ecode1)) { | |
25943 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
25944 | } | |
25945 | arg1 = static_cast< wxWindowVariant >(val1); | |
25946 | } | |
25947 | { | |
25948 | if (!wxPyCheckForApp()) SWIG_fail; | |
25949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25950 | result = wxToolBar::GetClassDefaultAttributes(arg1); | |
25951 | wxPyEndAllowThreads(__tstate); | |
25952 | if (PyErr_Occurred()) SWIG_fail; | |
25953 | } | |
25954 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
25955 | return resultobj; | |
25956 | fail: | |
25957 | return NULL; | |
d55e5bfc RD |
25958 | } |
25959 | ||
25960 | ||
1bd55598 RD |
25961 | SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25962 | PyObject *obj; | |
25963 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25964 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj)); | |
25965 | return SWIG_Py_Void(); | |
d55e5bfc RD |
25966 | } |
25967 | ||
1bd55598 RD |
25968 | SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25969 | return SWIG_Python_InitShadowInstance(args); | |
25970 | } | |
d55e5bfc | 25971 | |
1bd55598 RD |
25972 | SWIGINTERN int ListCtrlNameStr_set(PyObject *) { |
25973 | SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only."); | |
25974 | return 1; | |
d55e5bfc RD |
25975 | } |
25976 | ||
25977 | ||
1bd55598 RD |
25978 | SWIGINTERN PyObject *ListCtrlNameStr_get(void) { |
25979 | PyObject *pyobj = 0; | |
25980 | ||
25981 | { | |
25982 | #if wxUSE_UNICODE | |
25983 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
25984 | #else | |
25985 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
25986 | #endif | |
25987 | } | |
25988 | return pyobj; | |
25989 | } | |
25990 | ||
25991 | ||
25992 | SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25993 | PyObject *resultobj = 0; | |
25994 | wxColour const &arg1_defvalue = wxNullColour ; | |
25995 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
25996 | wxColour const &arg2_defvalue = wxNullColour ; | |
25997 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
25998 | wxFont const &arg3_defvalue = wxNullFont ; | |
25999 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
26000 | wxListItemAttr *result = 0 ; | |
26001 | wxColour temp1 ; | |
26002 | wxColour temp2 ; | |
26003 | void *argp3 = 0 ; | |
26004 | int res3 = 0 ; | |
26005 | PyObject * obj0 = 0 ; | |
26006 | PyObject * obj1 = 0 ; | |
26007 | PyObject * obj2 = 0 ; | |
26008 | char * kwnames[] = { | |
26009 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
26010 | }; | |
26011 | ||
26012 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26013 | if (obj0) { | |
d55e5bfc | 26014 | { |
1bd55598 RD |
26015 | arg1 = &temp1; |
26016 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
d55e5bfc | 26017 | } |
1bd55598 RD |
26018 | } |
26019 | if (obj1) { | |
36ed4f51 | 26020 | { |
1bd55598 RD |
26021 | arg2 = &temp2; |
26022 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
36ed4f51 | 26023 | } |
1bd55598 RD |
26024 | } |
26025 | if (obj2) { | |
26026 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
26027 | if (!SWIG_IsOK(res3)) { | |
26028 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d55e5bfc | 26029 | } |
1bd55598 RD |
26030 | if (!argp3) { |
26031 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
36ed4f51 | 26032 | } |
1bd55598 RD |
26033 | arg3 = reinterpret_cast< wxFont * >(argp3); |
26034 | } | |
26035 | { | |
26036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26037 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
26038 | wxPyEndAllowThreads(__tstate); | |
26039 | if (PyErr_Occurred()) SWIG_fail; | |
26040 | } | |
26041 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 ); | |
26042 | return resultobj; | |
26043 | fail: | |
26044 | return NULL; | |
d55e5bfc RD |
26045 | } |
26046 | ||
26047 | ||
1bd55598 RD |
26048 | SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26049 | PyObject *resultobj = 0; | |
26050 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26051 | void *argp1 = 0 ; | |
26052 | int res1 = 0 ; | |
26053 | PyObject *swig_obj[1] ; | |
26054 | ||
26055 | if (!args) SWIG_fail; | |
26056 | swig_obj[0] = args; | |
26057 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 ); | |
26058 | if (!SWIG_IsOK(res1)) { | |
26059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26060 | } | |
26061 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26062 | { | |
26063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26064 | delete arg1; | |
d55e5bfc | 26065 | |
1bd55598 RD |
26066 | wxPyEndAllowThreads(__tstate); |
26067 | if (PyErr_Occurred()) SWIG_fail; | |
26068 | } | |
26069 | resultobj = SWIG_Py_Void(); | |
26070 | return resultobj; | |
26071 | fail: | |
26072 | return NULL; | |
26073 | } | |
26074 | ||
26075 | ||
26076 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26077 | PyObject *resultobj = 0; | |
26078 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26079 | wxColour *arg2 = 0 ; | |
26080 | void *argp1 = 0 ; | |
26081 | int res1 = 0 ; | |
26082 | wxColour temp2 ; | |
26083 | PyObject * obj0 = 0 ; | |
26084 | PyObject * obj1 = 0 ; | |
26085 | char * kwnames[] = { | |
26086 | (char *) "self",(char *) "colText", NULL | |
26087 | }; | |
26088 | ||
26089 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
26090 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26091 | if (!SWIG_IsOK(res1)) { | |
26092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26093 | } | |
26094 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26095 | { | |
26096 | arg2 = &temp2; | |
26097 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26098 | } | |
26099 | { | |
26100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26101 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
26102 | wxPyEndAllowThreads(__tstate); | |
26103 | if (PyErr_Occurred()) SWIG_fail; | |
26104 | } | |
26105 | resultobj = SWIG_Py_Void(); | |
26106 | return resultobj; | |
26107 | fail: | |
26108 | return NULL; | |
26109 | } | |
26110 | ||
26111 | ||
26112 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26113 | PyObject *resultobj = 0; | |
26114 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26115 | wxColour *arg2 = 0 ; | |
26116 | void *argp1 = 0 ; | |
26117 | int res1 = 0 ; | |
26118 | wxColour temp2 ; | |
26119 | PyObject * obj0 = 0 ; | |
26120 | PyObject * obj1 = 0 ; | |
26121 | char * kwnames[] = { | |
26122 | (char *) "self",(char *) "colBack", NULL | |
26123 | }; | |
26124 | ||
26125 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
26126 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26127 | if (!SWIG_IsOK(res1)) { | |
26128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26129 | } | |
26130 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26131 | { | |
26132 | arg2 = &temp2; | |
26133 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26134 | } | |
26135 | { | |
26136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26137 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26138 | wxPyEndAllowThreads(__tstate); | |
26139 | if (PyErr_Occurred()) SWIG_fail; | |
26140 | } | |
26141 | resultobj = SWIG_Py_Void(); | |
26142 | return resultobj; | |
26143 | fail: | |
26144 | return NULL; | |
26145 | } | |
26146 | ||
26147 | ||
26148 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26149 | PyObject *resultobj = 0; | |
26150 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26151 | wxFont *arg2 = 0 ; | |
26152 | void *argp1 = 0 ; | |
26153 | int res1 = 0 ; | |
26154 | void *argp2 = 0 ; | |
26155 | int res2 = 0 ; | |
26156 | PyObject * obj0 = 0 ; | |
26157 | PyObject * obj1 = 0 ; | |
26158 | char * kwnames[] = { | |
26159 | (char *) "self",(char *) "font", NULL | |
26160 | }; | |
26161 | ||
26162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
26163 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26164 | if (!SWIG_IsOK(res1)) { | |
26165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26166 | } | |
26167 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26168 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
26169 | if (!SWIG_IsOK(res2)) { | |
26170 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
26171 | } | |
26172 | if (!argp2) { | |
26173 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
26174 | } | |
26175 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
26176 | { | |
26177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26178 | (arg1)->SetFont((wxFont const &)*arg2); | |
26179 | wxPyEndAllowThreads(__tstate); | |
26180 | if (PyErr_Occurred()) SWIG_fail; | |
26181 | } | |
26182 | resultobj = SWIG_Py_Void(); | |
26183 | return resultobj; | |
26184 | fail: | |
26185 | return NULL; | |
d55e5bfc RD |
26186 | } |
26187 | ||
26188 | ||
1bd55598 RD |
26189 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26190 | PyObject *resultobj = 0; | |
26191 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26192 | bool result; | |
26193 | void *argp1 = 0 ; | |
26194 | int res1 = 0 ; | |
26195 | PyObject *swig_obj[1] ; | |
26196 | ||
26197 | if (!args) SWIG_fail; | |
26198 | swig_obj[0] = args; | |
26199 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26200 | if (!SWIG_IsOK(res1)) { | |
26201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26202 | } | |
26203 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26204 | { | |
26205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26206 | result = (bool)(arg1)->HasTextColour(); | |
26207 | wxPyEndAllowThreads(__tstate); | |
26208 | if (PyErr_Occurred()) SWIG_fail; | |
26209 | } | |
26210 | { | |
26211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26212 | } | |
26213 | return resultobj; | |
26214 | fail: | |
26215 | return NULL; | |
f20a2e1f RD |
26216 | } |
26217 | ||
26218 | ||
1bd55598 RD |
26219 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26220 | PyObject *resultobj = 0; | |
26221 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26222 | bool result; | |
26223 | void *argp1 = 0 ; | |
26224 | int res1 = 0 ; | |
26225 | PyObject *swig_obj[1] ; | |
26226 | ||
26227 | if (!args) SWIG_fail; | |
26228 | swig_obj[0] = args; | |
26229 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26230 | if (!SWIG_IsOK(res1)) { | |
26231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26232 | } | |
26233 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26234 | { | |
26235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26236 | result = (bool)(arg1)->HasBackgroundColour(); | |
26237 | wxPyEndAllowThreads(__tstate); | |
26238 | if (PyErr_Occurred()) SWIG_fail; | |
26239 | } | |
26240 | { | |
26241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26242 | } | |
26243 | return resultobj; | |
26244 | fail: | |
26245 | return NULL; | |
d55e5bfc | 26246 | } |
1bd55598 RD |
26247 | |
26248 | ||
26249 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26250 | PyObject *resultobj = 0; | |
26251 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26252 | bool result; | |
26253 | void *argp1 = 0 ; | |
26254 | int res1 = 0 ; | |
26255 | PyObject *swig_obj[1] ; | |
26256 | ||
26257 | if (!args) SWIG_fail; | |
26258 | swig_obj[0] = args; | |
26259 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26260 | if (!SWIG_IsOK(res1)) { | |
26261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26262 | } | |
26263 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26264 | { | |
26265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26266 | result = (bool)(arg1)->HasFont(); | |
26267 | wxPyEndAllowThreads(__tstate); | |
26268 | if (PyErr_Occurred()) SWIG_fail; | |
26269 | } | |
26270 | { | |
26271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26272 | } | |
26273 | return resultobj; | |
26274 | fail: | |
26275 | return NULL; | |
d55e5bfc RD |
26276 | } |
26277 | ||
26278 | ||
1bd55598 RD |
26279 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26280 | PyObject *resultobj = 0; | |
26281 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26282 | wxColour result; | |
26283 | void *argp1 = 0 ; | |
26284 | int res1 = 0 ; | |
26285 | PyObject *swig_obj[1] ; | |
26286 | ||
26287 | if (!args) SWIG_fail; | |
26288 | swig_obj[0] = args; | |
26289 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26290 | if (!SWIG_IsOK(res1)) { | |
26291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26292 | } | |
26293 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26294 | { | |
26295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26296 | result = (arg1)->GetTextColour(); | |
26297 | wxPyEndAllowThreads(__tstate); | |
26298 | if (PyErr_Occurred()) SWIG_fail; | |
26299 | } | |
26300 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
26301 | return resultobj; | |
26302 | fail: | |
26303 | return NULL; | |
d55e5bfc RD |
26304 | } |
26305 | ||
26306 | ||
1bd55598 RD |
26307 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26308 | PyObject *resultobj = 0; | |
26309 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26310 | wxColour result; | |
26311 | void *argp1 = 0 ; | |
26312 | int res1 = 0 ; | |
26313 | PyObject *swig_obj[1] ; | |
26314 | ||
26315 | if (!args) SWIG_fail; | |
26316 | swig_obj[0] = args; | |
26317 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26318 | if (!SWIG_IsOK(res1)) { | |
26319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26320 | } | |
26321 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26322 | { | |
26323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26324 | result = (arg1)->GetBackgroundColour(); | |
26325 | wxPyEndAllowThreads(__tstate); | |
26326 | if (PyErr_Occurred()) SWIG_fail; | |
26327 | } | |
26328 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
26329 | return resultobj; | |
26330 | fail: | |
26331 | return NULL; | |
d55e5bfc RD |
26332 | } |
26333 | ||
26334 | ||
1bd55598 RD |
26335 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26336 | PyObject *resultobj = 0; | |
26337 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26338 | wxFont result; | |
26339 | void *argp1 = 0 ; | |
26340 | int res1 = 0 ; | |
26341 | PyObject *swig_obj[1] ; | |
26342 | ||
26343 | if (!args) SWIG_fail; | |
26344 | swig_obj[0] = args; | |
26345 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26346 | if (!SWIG_IsOK(res1)) { | |
26347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26348 | } | |
26349 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26350 | { | |
26351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26352 | result = (arg1)->GetFont(); | |
26353 | wxPyEndAllowThreads(__tstate); | |
26354 | if (PyErr_Occurred()) SWIG_fail; | |
26355 | } | |
26356 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
26357 | return resultobj; | |
26358 | fail: | |
26359 | return NULL; | |
26360 | } | |
26361 | ||
26362 | ||
26363 | SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26364 | PyObject *resultobj = 0; | |
26365 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26366 | wxListItemAttr *arg2 = 0 ; | |
26367 | void *argp1 = 0 ; | |
26368 | int res1 = 0 ; | |
26369 | void *argp2 = 0 ; | |
26370 | int res2 = 0 ; | |
26371 | PyObject * obj0 = 0 ; | |
26372 | PyObject * obj1 = 0 ; | |
26373 | char * kwnames[] = { | |
26374 | (char *) "self",(char *) "source", NULL | |
26375 | }; | |
26376 | ||
26377 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail; | |
26378 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26379 | if (!SWIG_IsOK(res1)) { | |
26380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26381 | } | |
26382 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26383 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0); | |
26384 | if (!SWIG_IsOK(res2)) { | |
26385 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'"); | |
26386 | } | |
26387 | if (!argp2) { | |
26388 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'"); | |
26389 | } | |
26390 | arg2 = reinterpret_cast< wxListItemAttr * >(argp2); | |
26391 | { | |
26392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26393 | (arg1)->AssignFrom((wxListItemAttr const &)*arg2); | |
26394 | wxPyEndAllowThreads(__tstate); | |
26395 | if (PyErr_Occurred()) SWIG_fail; | |
26396 | } | |
26397 | resultobj = SWIG_Py_Void(); | |
26398 | return resultobj; | |
26399 | fail: | |
26400 | return NULL; | |
121b9a67 RD |
26401 | } |
26402 | ||
26403 | ||
1bd55598 RD |
26404 | SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26405 | PyObject *resultobj = 0; | |
26406 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26407 | void *argp1 = 0 ; | |
26408 | int res1 = 0 ; | |
26409 | PyObject *swig_obj[1] ; | |
26410 | ||
26411 | if (!args) SWIG_fail; | |
26412 | swig_obj[0] = args; | |
26413 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26414 | if (!SWIG_IsOK(res1)) { | |
26415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26416 | } | |
26417 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26418 | { | |
26419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26420 | wxListItemAttr_Destroy(arg1); | |
26421 | wxPyEndAllowThreads(__tstate); | |
26422 | if (PyErr_Occurred()) SWIG_fail; | |
26423 | } | |
26424 | resultobj = SWIG_Py_Void(); | |
26425 | return resultobj; | |
26426 | fail: | |
26427 | return NULL; | |
121b9a67 RD |
26428 | } |
26429 | ||
26430 | ||
1bd55598 RD |
26431 | SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26432 | PyObject *obj; | |
26433 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26434 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj)); | |
26435 | return SWIG_Py_Void(); | |
121b9a67 RD |
26436 | } |
26437 | ||
1bd55598 RD |
26438 | SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26439 | return SWIG_Python_InitShadowInstance(args); | |
26440 | } | |
121b9a67 | 26441 | |
1bd55598 RD |
26442 | SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26443 | PyObject *resultobj = 0; | |
26444 | wxListItem *result = 0 ; | |
26445 | ||
26446 | if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail; | |
26447 | { | |
26448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26449 | result = (wxListItem *)new wxListItem(); | |
26450 | wxPyEndAllowThreads(__tstate); | |
26451 | if (PyErr_Occurred()) SWIG_fail; | |
26452 | } | |
3ecece7e | 26453 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 ); |
1bd55598 RD |
26454 | return resultobj; |
26455 | fail: | |
26456 | return NULL; | |
121b9a67 RD |
26457 | } |
26458 | ||
26459 | ||
1bd55598 RD |
26460 | SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26461 | PyObject *resultobj = 0; | |
26462 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26463 | void *argp1 = 0 ; | |
26464 | int res1 = 0 ; | |
26465 | PyObject *swig_obj[1] ; | |
26466 | ||
26467 | if (!args) SWIG_fail; | |
26468 | swig_obj[0] = args; | |
26469 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 ); | |
26470 | if (!SWIG_IsOK(res1)) { | |
26471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26472 | } | |
26473 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26474 | { | |
26475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26476 | delete arg1; | |
f20a2e1f | 26477 | |
1bd55598 RD |
26478 | wxPyEndAllowThreads(__tstate); |
26479 | if (PyErr_Occurred()) SWIG_fail; | |
26480 | } | |
26481 | resultobj = SWIG_Py_Void(); | |
26482 | return resultobj; | |
26483 | fail: | |
26484 | return NULL; | |
f20a2e1f RD |
26485 | } |
26486 | ||
26487 | ||
1bd55598 RD |
26488 | SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26489 | PyObject *resultobj = 0; | |
26490 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26491 | void *argp1 = 0 ; | |
26492 | int res1 = 0 ; | |
26493 | PyObject *swig_obj[1] ; | |
26494 | ||
26495 | if (!args) SWIG_fail; | |
26496 | swig_obj[0] = args; | |
26497 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26498 | if (!SWIG_IsOK(res1)) { | |
26499 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26500 | } | |
26501 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26502 | { | |
26503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26504 | (arg1)->Clear(); | |
26505 | wxPyEndAllowThreads(__tstate); | |
26506 | if (PyErr_Occurred()) SWIG_fail; | |
26507 | } | |
26508 | resultobj = SWIG_Py_Void(); | |
26509 | return resultobj; | |
26510 | fail: | |
26511 | return NULL; | |
d55e5bfc | 26512 | } |
1bd55598 RD |
26513 | |
26514 | ||
26515 | SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26516 | PyObject *resultobj = 0; | |
26517 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26518 | void *argp1 = 0 ; | |
26519 | int res1 = 0 ; | |
26520 | PyObject *swig_obj[1] ; | |
26521 | ||
26522 | if (!args) SWIG_fail; | |
26523 | swig_obj[0] = args; | |
26524 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26525 | if (!SWIG_IsOK(res1)) { | |
26526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26527 | } | |
26528 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26529 | { | |
26530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26531 | (arg1)->ClearAttributes(); | |
26532 | wxPyEndAllowThreads(__tstate); | |
26533 | if (PyErr_Occurred()) SWIG_fail; | |
26534 | } | |
26535 | resultobj = SWIG_Py_Void(); | |
26536 | return resultobj; | |
26537 | fail: | |
26538 | return NULL; | |
26539 | } | |
26540 | ||
26541 | ||
26542 | SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26543 | PyObject *resultobj = 0; | |
26544 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26545 | long arg2 ; | |
26546 | void *argp1 = 0 ; | |
26547 | int res1 = 0 ; | |
26548 | long val2 ; | |
26549 | int ecode2 = 0 ; | |
26550 | PyObject * obj0 = 0 ; | |
26551 | PyObject * obj1 = 0 ; | |
26552 | char * kwnames[] = { | |
26553 | (char *) "self",(char *) "mask", NULL | |
26554 | }; | |
26555 | ||
26556 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
26557 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26558 | if (!SWIG_IsOK(res1)) { | |
26559 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26560 | } | |
26561 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26562 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26563 | if (!SWIG_IsOK(ecode2)) { | |
26564 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'"); | |
26565 | } | |
26566 | arg2 = static_cast< long >(val2); | |
26567 | { | |
26568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26569 | (arg1)->SetMask(arg2); | |
26570 | wxPyEndAllowThreads(__tstate); | |
26571 | if (PyErr_Occurred()) SWIG_fail; | |
26572 | } | |
26573 | resultobj = SWIG_Py_Void(); | |
26574 | return resultobj; | |
26575 | fail: | |
26576 | return NULL; | |
26577 | } | |
26578 | ||
26579 | ||
26580 | SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26581 | PyObject *resultobj = 0; | |
26582 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26583 | long arg2 ; | |
26584 | void *argp1 = 0 ; | |
26585 | int res1 = 0 ; | |
26586 | long val2 ; | |
26587 | int ecode2 = 0 ; | |
26588 | PyObject * obj0 = 0 ; | |
26589 | PyObject * obj1 = 0 ; | |
26590 | char * kwnames[] = { | |
26591 | (char *) "self",(char *) "id", NULL | |
26592 | }; | |
26593 | ||
26594 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
26595 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26596 | if (!SWIG_IsOK(res1)) { | |
26597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26598 | } | |
26599 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26600 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26601 | if (!SWIG_IsOK(ecode2)) { | |
26602 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'"); | |
26603 | } | |
26604 | arg2 = static_cast< long >(val2); | |
26605 | { | |
26606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26607 | (arg1)->SetId(arg2); | |
26608 | wxPyEndAllowThreads(__tstate); | |
26609 | if (PyErr_Occurred()) SWIG_fail; | |
26610 | } | |
26611 | resultobj = SWIG_Py_Void(); | |
26612 | return resultobj; | |
26613 | fail: | |
26614 | return NULL; | |
26615 | } | |
26616 | ||
26617 | ||
26618 | SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26619 | PyObject *resultobj = 0; | |
26620 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26621 | int arg2 ; | |
26622 | void *argp1 = 0 ; | |
26623 | int res1 = 0 ; | |
26624 | int val2 ; | |
26625 | int ecode2 = 0 ; | |
26626 | PyObject * obj0 = 0 ; | |
26627 | PyObject * obj1 = 0 ; | |
26628 | char * kwnames[] = { | |
26629 | (char *) "self",(char *) "col", NULL | |
26630 | }; | |
26631 | ||
26632 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
26633 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26634 | if (!SWIG_IsOK(res1)) { | |
26635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26636 | } | |
26637 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26638 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26639 | if (!SWIG_IsOK(ecode2)) { | |
26640 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'"); | |
26641 | } | |
26642 | arg2 = static_cast< int >(val2); | |
26643 | { | |
26644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26645 | (arg1)->SetColumn(arg2); | |
26646 | wxPyEndAllowThreads(__tstate); | |
26647 | if (PyErr_Occurred()) SWIG_fail; | |
26648 | } | |
26649 | resultobj = SWIG_Py_Void(); | |
26650 | return resultobj; | |
26651 | fail: | |
26652 | return NULL; | |
26653 | } | |
26654 | ||
26655 | ||
26656 | SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26657 | PyObject *resultobj = 0; | |
26658 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26659 | long arg2 ; | |
26660 | void *argp1 = 0 ; | |
26661 | int res1 = 0 ; | |
26662 | long val2 ; | |
26663 | int ecode2 = 0 ; | |
26664 | PyObject * obj0 = 0 ; | |
26665 | PyObject * obj1 = 0 ; | |
26666 | char * kwnames[] = { | |
26667 | (char *) "self",(char *) "state", NULL | |
26668 | }; | |
26669 | ||
26670 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail; | |
26671 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26672 | if (!SWIG_IsOK(res1)) { | |
26673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26674 | } | |
26675 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26676 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26677 | if (!SWIG_IsOK(ecode2)) { | |
26678 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'"); | |
26679 | } | |
26680 | arg2 = static_cast< long >(val2); | |
26681 | { | |
26682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26683 | (arg1)->SetState(arg2); | |
26684 | wxPyEndAllowThreads(__tstate); | |
26685 | if (PyErr_Occurred()) SWIG_fail; | |
26686 | } | |
26687 | resultobj = SWIG_Py_Void(); | |
26688 | return resultobj; | |
26689 | fail: | |
26690 | return NULL; | |
26691 | } | |
26692 | ||
26693 | ||
26694 | SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26695 | PyObject *resultobj = 0; | |
26696 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26697 | long arg2 ; | |
26698 | void *argp1 = 0 ; | |
26699 | int res1 = 0 ; | |
26700 | long val2 ; | |
26701 | int ecode2 = 0 ; | |
26702 | PyObject * obj0 = 0 ; | |
26703 | PyObject * obj1 = 0 ; | |
26704 | char * kwnames[] = { | |
26705 | (char *) "self",(char *) "stateMask", NULL | |
26706 | }; | |
26707 | ||
26708 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
26709 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26710 | if (!SWIG_IsOK(res1)) { | |
26711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26712 | } | |
26713 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26714 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26715 | if (!SWIG_IsOK(ecode2)) { | |
26716 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'"); | |
26717 | } | |
26718 | arg2 = static_cast< long >(val2); | |
26719 | { | |
26720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26721 | (arg1)->SetStateMask(arg2); | |
26722 | wxPyEndAllowThreads(__tstate); | |
26723 | if (PyErr_Occurred()) SWIG_fail; | |
26724 | } | |
26725 | resultobj = SWIG_Py_Void(); | |
26726 | return resultobj; | |
26727 | fail: | |
26728 | return NULL; | |
26729 | } | |
26730 | ||
26731 | ||
26732 | SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26733 | PyObject *resultobj = 0; | |
26734 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26735 | wxString *arg2 = 0 ; | |
26736 | void *argp1 = 0 ; | |
26737 | int res1 = 0 ; | |
26738 | bool temp2 = false ; | |
26739 | PyObject * obj0 = 0 ; | |
26740 | PyObject * obj1 = 0 ; | |
26741 | char * kwnames[] = { | |
26742 | (char *) "self",(char *) "text", NULL | |
26743 | }; | |
26744 | ||
26745 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail; | |
26746 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26747 | if (!SWIG_IsOK(res1)) { | |
26748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26749 | } | |
26750 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26751 | { | |
26752 | arg2 = wxString_in_helper(obj1); | |
26753 | if (arg2 == NULL) SWIG_fail; | |
26754 | temp2 = true; | |
26755 | } | |
26756 | { | |
26757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26758 | (arg1)->SetText((wxString const &)*arg2); | |
26759 | wxPyEndAllowThreads(__tstate); | |
26760 | if (PyErr_Occurred()) SWIG_fail; | |
26761 | } | |
26762 | resultobj = SWIG_Py_Void(); | |
26763 | { | |
26764 | if (temp2) | |
26765 | delete arg2; | |
26766 | } | |
26767 | return resultobj; | |
26768 | fail: | |
26769 | { | |
26770 | if (temp2) | |
26771 | delete arg2; | |
26772 | } | |
26773 | return NULL; | |
26774 | } | |
26775 | ||
26776 | ||
26777 | SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26778 | PyObject *resultobj = 0; | |
26779 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26780 | int arg2 ; | |
26781 | void *argp1 = 0 ; | |
26782 | int res1 = 0 ; | |
26783 | int val2 ; | |
26784 | int ecode2 = 0 ; | |
26785 | PyObject * obj0 = 0 ; | |
26786 | PyObject * obj1 = 0 ; | |
26787 | char * kwnames[] = { | |
26788 | (char *) "self",(char *) "image", NULL | |
26789 | }; | |
26790 | ||
26791 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26792 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26793 | if (!SWIG_IsOK(res1)) { | |
26794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26795 | } | |
26796 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26797 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26798 | if (!SWIG_IsOK(ecode2)) { | |
26799 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'"); | |
26800 | } | |
26801 | arg2 = static_cast< int >(val2); | |
26802 | { | |
26803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26804 | (arg1)->SetImage(arg2); | |
26805 | wxPyEndAllowThreads(__tstate); | |
26806 | if (PyErr_Occurred()) SWIG_fail; | |
26807 | } | |
26808 | resultobj = SWIG_Py_Void(); | |
26809 | return resultobj; | |
26810 | fail: | |
26811 | return NULL; | |
26812 | } | |
26813 | ||
26814 | ||
26815 | SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26816 | PyObject *resultobj = 0; | |
26817 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26818 | long arg2 ; | |
26819 | void *argp1 = 0 ; | |
26820 | int res1 = 0 ; | |
26821 | long val2 ; | |
26822 | int ecode2 = 0 ; | |
26823 | PyObject * obj0 = 0 ; | |
26824 | PyObject * obj1 = 0 ; | |
26825 | char * kwnames[] = { | |
26826 | (char *) "self",(char *) "data", NULL | |
26827 | }; | |
26828 | ||
26829 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
26830 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26831 | if (!SWIG_IsOK(res1)) { | |
26832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26833 | } | |
26834 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26835 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26836 | if (!SWIG_IsOK(ecode2)) { | |
26837 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'"); | |
26838 | } | |
26839 | arg2 = static_cast< long >(val2); | |
26840 | { | |
26841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26842 | (arg1)->SetData(arg2); | |
26843 | wxPyEndAllowThreads(__tstate); | |
26844 | if (PyErr_Occurred()) SWIG_fail; | |
26845 | } | |
26846 | resultobj = SWIG_Py_Void(); | |
26847 | return resultobj; | |
26848 | fail: | |
26849 | return NULL; | |
26850 | } | |
26851 | ||
26852 | ||
26853 | SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26854 | PyObject *resultobj = 0; | |
26855 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26856 | int arg2 ; | |
26857 | void *argp1 = 0 ; | |
26858 | int res1 = 0 ; | |
26859 | int val2 ; | |
26860 | int ecode2 = 0 ; | |
26861 | PyObject * obj0 = 0 ; | |
26862 | PyObject * obj1 = 0 ; | |
26863 | char * kwnames[] = { | |
26864 | (char *) "self",(char *) "width", NULL | |
26865 | }; | |
26866 | ||
26867 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
26868 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26869 | if (!SWIG_IsOK(res1)) { | |
26870 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26871 | } | |
26872 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26873 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26874 | if (!SWIG_IsOK(ecode2)) { | |
26875 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
26876 | } | |
26877 | arg2 = static_cast< int >(val2); | |
26878 | { | |
26879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26880 | (arg1)->SetWidth(arg2); | |
26881 | wxPyEndAllowThreads(__tstate); | |
26882 | if (PyErr_Occurred()) SWIG_fail; | |
26883 | } | |
26884 | resultobj = SWIG_Py_Void(); | |
26885 | return resultobj; | |
26886 | fail: | |
26887 | return NULL; | |
26888 | } | |
26889 | ||
26890 | ||
26891 | SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26892 | PyObject *resultobj = 0; | |
26893 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26894 | wxListColumnFormat arg2 ; | |
26895 | void *argp1 = 0 ; | |
26896 | int res1 = 0 ; | |
26897 | int val2 ; | |
26898 | int ecode2 = 0 ; | |
26899 | PyObject * obj0 = 0 ; | |
26900 | PyObject * obj1 = 0 ; | |
26901 | char * kwnames[] = { | |
26902 | (char *) "self",(char *) "align", NULL | |
26903 | }; | |
26904 | ||
26905 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail; | |
26906 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26907 | if (!SWIG_IsOK(res1)) { | |
26908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26909 | } | |
26910 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26911 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26912 | if (!SWIG_IsOK(ecode2)) { | |
26913 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'"); | |
26914 | } | |
26915 | arg2 = static_cast< wxListColumnFormat >(val2); | |
26916 | { | |
26917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26918 | (arg1)->SetAlign(arg2); | |
26919 | wxPyEndAllowThreads(__tstate); | |
26920 | if (PyErr_Occurred()) SWIG_fail; | |
26921 | } | |
26922 | resultobj = SWIG_Py_Void(); | |
26923 | return resultobj; | |
26924 | fail: | |
26925 | return NULL; | |
26926 | } | |
26927 | ||
26928 | ||
26929 | SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26930 | PyObject *resultobj = 0; | |
26931 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26932 | wxColour *arg2 = 0 ; | |
26933 | void *argp1 = 0 ; | |
26934 | int res1 = 0 ; | |
26935 | wxColour temp2 ; | |
26936 | PyObject * obj0 = 0 ; | |
26937 | PyObject * obj1 = 0 ; | |
26938 | char * kwnames[] = { | |
26939 | (char *) "self",(char *) "colText", NULL | |
26940 | }; | |
26941 | ||
26942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
26943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26944 | if (!SWIG_IsOK(res1)) { | |
26945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26946 | } | |
26947 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26948 | { | |
26949 | arg2 = &temp2; | |
26950 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26951 | } | |
26952 | { | |
26953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26954 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
26955 | wxPyEndAllowThreads(__tstate); | |
26956 | if (PyErr_Occurred()) SWIG_fail; | |
26957 | } | |
26958 | resultobj = SWIG_Py_Void(); | |
26959 | return resultobj; | |
26960 | fail: | |
26961 | return NULL; | |
26962 | } | |
26963 | ||
26964 | ||
26965 | SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26966 | PyObject *resultobj = 0; | |
26967 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26968 | wxColour *arg2 = 0 ; | |
26969 | void *argp1 = 0 ; | |
26970 | int res1 = 0 ; | |
26971 | wxColour temp2 ; | |
26972 | PyObject * obj0 = 0 ; | |
26973 | PyObject * obj1 = 0 ; | |
26974 | char * kwnames[] = { | |
26975 | (char *) "self",(char *) "colBack", NULL | |
26976 | }; | |
26977 | ||
26978 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
26979 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26980 | if (!SWIG_IsOK(res1)) { | |
26981 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26982 | } | |
26983 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26984 | { | |
26985 | arg2 = &temp2; | |
26986 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26987 | } | |
26988 | { | |
26989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26990 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26991 | wxPyEndAllowThreads(__tstate); | |
26992 | if (PyErr_Occurred()) SWIG_fail; | |
26993 | } | |
26994 | resultobj = SWIG_Py_Void(); | |
26995 | return resultobj; | |
26996 | fail: | |
26997 | return NULL; | |
26998 | } | |
26999 | ||
27000 | ||
27001 | SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27002 | PyObject *resultobj = 0; | |
27003 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27004 | wxFont *arg2 = 0 ; | |
27005 | void *argp1 = 0 ; | |
27006 | int res1 = 0 ; | |
27007 | void *argp2 = 0 ; | |
27008 | int res2 = 0 ; | |
27009 | PyObject * obj0 = 0 ; | |
27010 | PyObject * obj1 = 0 ; | |
27011 | char * kwnames[] = { | |
27012 | (char *) "self",(char *) "font", NULL | |
27013 | }; | |
27014 | ||
27015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
27016 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27017 | if (!SWIG_IsOK(res1)) { | |
27018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27019 | } | |
27020 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27021 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
27022 | if (!SWIG_IsOK(res2)) { | |
27023 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
27024 | } | |
27025 | if (!argp2) { | |
27026 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
27027 | } | |
27028 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
27029 | { | |
27030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27031 | (arg1)->SetFont((wxFont const &)*arg2); | |
27032 | wxPyEndAllowThreads(__tstate); | |
27033 | if (PyErr_Occurred()) SWIG_fail; | |
27034 | } | |
27035 | resultobj = SWIG_Py_Void(); | |
27036 | return resultobj; | |
27037 | fail: | |
27038 | return NULL; | |
d55e5bfc RD |
27039 | } |
27040 | ||
27041 | ||
1bd55598 RD |
27042 | SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27043 | PyObject *resultobj = 0; | |
27044 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27045 | long result; | |
27046 | void *argp1 = 0 ; | |
27047 | int res1 = 0 ; | |
27048 | PyObject *swig_obj[1] ; | |
27049 | ||
27050 | if (!args) SWIG_fail; | |
27051 | swig_obj[0] = args; | |
27052 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27053 | if (!SWIG_IsOK(res1)) { | |
27054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27055 | } | |
27056 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27057 | { | |
27058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27059 | result = (long)(arg1)->GetMask(); | |
27060 | wxPyEndAllowThreads(__tstate); | |
27061 | if (PyErr_Occurred()) SWIG_fail; | |
27062 | } | |
27063 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27064 | return resultobj; | |
27065 | fail: | |
27066 | return NULL; | |
d55e5bfc RD |
27067 | } |
27068 | ||
27069 | ||
1bd55598 RD |
27070 | SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27071 | PyObject *resultobj = 0; | |
27072 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27073 | long result; | |
27074 | void *argp1 = 0 ; | |
27075 | int res1 = 0 ; | |
27076 | PyObject *swig_obj[1] ; | |
27077 | ||
27078 | if (!args) SWIG_fail; | |
27079 | swig_obj[0] = args; | |
27080 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27081 | if (!SWIG_IsOK(res1)) { | |
27082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27083 | } | |
27084 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27085 | { | |
27086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27087 | result = (long)(arg1)->GetId(); | |
27088 | wxPyEndAllowThreads(__tstate); | |
27089 | if (PyErr_Occurred()) SWIG_fail; | |
27090 | } | |
27091 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27092 | return resultobj; | |
27093 | fail: | |
27094 | return NULL; | |
d55e5bfc RD |
27095 | } |
27096 | ||
27097 | ||
1bd55598 RD |
27098 | SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27099 | PyObject *resultobj = 0; | |
27100 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27101 | int result; | |
27102 | void *argp1 = 0 ; | |
27103 | int res1 = 0 ; | |
27104 | PyObject *swig_obj[1] ; | |
27105 | ||
27106 | if (!args) SWIG_fail; | |
27107 | swig_obj[0] = args; | |
27108 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27109 | if (!SWIG_IsOK(res1)) { | |
27110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27111 | } | |
27112 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27113 | { | |
27114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27115 | result = (int)(arg1)->GetColumn(); | |
27116 | wxPyEndAllowThreads(__tstate); | |
27117 | if (PyErr_Occurred()) SWIG_fail; | |
27118 | } | |
27119 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27120 | return resultobj; | |
27121 | fail: | |
27122 | return NULL; | |
d55e5bfc RD |
27123 | } |
27124 | ||
27125 | ||
1bd55598 RD |
27126 | SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27127 | PyObject *resultobj = 0; | |
27128 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27129 | long result; | |
27130 | void *argp1 = 0 ; | |
27131 | int res1 = 0 ; | |
27132 | PyObject *swig_obj[1] ; | |
27133 | ||
27134 | if (!args) SWIG_fail; | |
27135 | swig_obj[0] = args; | |
27136 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27137 | if (!SWIG_IsOK(res1)) { | |
27138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27139 | } | |
27140 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27141 | { | |
27142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27143 | result = (long)(arg1)->GetState(); | |
27144 | wxPyEndAllowThreads(__tstate); | |
27145 | if (PyErr_Occurred()) SWIG_fail; | |
27146 | } | |
27147 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27148 | return resultobj; | |
27149 | fail: | |
27150 | return NULL; | |
8fb0e70a RD |
27151 | } |
27152 | ||
27153 | ||
1bd55598 RD |
27154 | SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27155 | PyObject *resultobj = 0; | |
27156 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27157 | wxString *result = 0 ; | |
27158 | void *argp1 = 0 ; | |
27159 | int res1 = 0 ; | |
27160 | PyObject *swig_obj[1] ; | |
27161 | ||
27162 | if (!args) SWIG_fail; | |
27163 | swig_obj[0] = args; | |
27164 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27165 | if (!SWIG_IsOK(res1)) { | |
27166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27167 | } | |
27168 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27169 | { | |
27170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 27171 | { |
1bd55598 RD |
27172 | wxString const &_result_ref = (arg1)->GetText(); |
27173 | result = (wxString *) &_result_ref; | |
36ed4f51 | 27174 | } |
1bd55598 RD |
27175 | wxPyEndAllowThreads(__tstate); |
27176 | if (PyErr_Occurred()) SWIG_fail; | |
27177 | } | |
27178 | { | |
27179 | #if wxUSE_UNICODE | |
27180 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27181 | #else | |
27182 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27183 | #endif | |
27184 | } | |
27185 | return resultobj; | |
27186 | fail: | |
27187 | return NULL; | |
d55e5bfc RD |
27188 | } |
27189 | ||
27190 | ||
1bd55598 RD |
27191 | SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27192 | PyObject *resultobj = 0; | |
27193 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27194 | int result; | |
27195 | void *argp1 = 0 ; | |
27196 | int res1 = 0 ; | |
27197 | PyObject *swig_obj[1] ; | |
27198 | ||
27199 | if (!args) SWIG_fail; | |
27200 | swig_obj[0] = args; | |
27201 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27202 | if (!SWIG_IsOK(res1)) { | |
27203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27204 | } | |
27205 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27206 | { | |
27207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27208 | result = (int)(arg1)->GetImage(); | |
27209 | wxPyEndAllowThreads(__tstate); | |
27210 | if (PyErr_Occurred()) SWIG_fail; | |
27211 | } | |
27212 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27213 | return resultobj; | |
27214 | fail: | |
27215 | return NULL; | |
d55e5bfc RD |
27216 | } |
27217 | ||
27218 | ||
1bd55598 RD |
27219 | SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27220 | PyObject *resultobj = 0; | |
27221 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27222 | long result; | |
27223 | void *argp1 = 0 ; | |
27224 | int res1 = 0 ; | |
27225 | PyObject *swig_obj[1] ; | |
27226 | ||
27227 | if (!args) SWIG_fail; | |
27228 | swig_obj[0] = args; | |
27229 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27230 | if (!SWIG_IsOK(res1)) { | |
27231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27232 | } | |
27233 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27234 | { | |
27235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27236 | result = (long)(arg1)->GetData(); | |
27237 | wxPyEndAllowThreads(__tstate); | |
27238 | if (PyErr_Occurred()) SWIG_fail; | |
27239 | } | |
27240 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27241 | return resultobj; | |
27242 | fail: | |
27243 | return NULL; | |
d55e5bfc RD |
27244 | } |
27245 | ||
27246 | ||
1bd55598 RD |
27247 | SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27248 | PyObject *resultobj = 0; | |
27249 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27250 | int result; | |
27251 | void *argp1 = 0 ; | |
27252 | int res1 = 0 ; | |
27253 | PyObject *swig_obj[1] ; | |
27254 | ||
27255 | if (!args) SWIG_fail; | |
27256 | swig_obj[0] = args; | |
27257 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27258 | if (!SWIG_IsOK(res1)) { | |
27259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27260 | } | |
27261 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27262 | { | |
27263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27264 | result = (int)(arg1)->GetWidth(); | |
27265 | wxPyEndAllowThreads(__tstate); | |
27266 | if (PyErr_Occurred()) SWIG_fail; | |
27267 | } | |
27268 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27269 | return resultobj; | |
27270 | fail: | |
27271 | return NULL; | |
d55e5bfc RD |
27272 | } |
27273 | ||
27274 | ||
1bd55598 RD |
27275 | SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27276 | PyObject *resultobj = 0; | |
27277 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27278 | wxListColumnFormat result; | |
27279 | void *argp1 = 0 ; | |
27280 | int res1 = 0 ; | |
27281 | PyObject *swig_obj[1] ; | |
27282 | ||
27283 | if (!args) SWIG_fail; | |
27284 | swig_obj[0] = args; | |
27285 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27286 | if (!SWIG_IsOK(res1)) { | |
27287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27288 | } | |
27289 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27290 | { | |
27291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27292 | result = (wxListColumnFormat)(arg1)->GetAlign(); | |
27293 | wxPyEndAllowThreads(__tstate); | |
27294 | if (PyErr_Occurred()) SWIG_fail; | |
27295 | } | |
27296 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27297 | return resultobj; | |
27298 | fail: | |
27299 | return NULL; | |
d55e5bfc RD |
27300 | } |
27301 | ||
27302 | ||
1bd55598 RD |
27303 | SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27304 | PyObject *resultobj = 0; | |
27305 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27306 | wxListItemAttr *result = 0 ; | |
27307 | void *argp1 = 0 ; | |
27308 | int res1 = 0 ; | |
27309 | PyObject *swig_obj[1] ; | |
27310 | ||
27311 | if (!args) SWIG_fail; | |
27312 | swig_obj[0] = args; | |
27313 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27314 | if (!SWIG_IsOK(res1)) { | |
27315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27316 | } | |
27317 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27318 | { | |
27319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27320 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
27321 | wxPyEndAllowThreads(__tstate); | |
27322 | if (PyErr_Occurred()) SWIG_fail; | |
27323 | } | |
27324 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
27325 | return resultobj; | |
27326 | fail: | |
27327 | return NULL; | |
d55e5bfc RD |
27328 | } |
27329 | ||
27330 | ||
1bd55598 RD |
27331 | SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27332 | PyObject *resultobj = 0; | |
27333 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27334 | bool result; | |
27335 | void *argp1 = 0 ; | |
27336 | int res1 = 0 ; | |
27337 | PyObject *swig_obj[1] ; | |
27338 | ||
27339 | if (!args) SWIG_fail; | |
27340 | swig_obj[0] = args; | |
27341 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27342 | if (!SWIG_IsOK(res1)) { | |
27343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27344 | } | |
27345 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27346 | { | |
27347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27348 | result = (bool)(arg1)->HasAttributes(); | |
27349 | wxPyEndAllowThreads(__tstate); | |
27350 | if (PyErr_Occurred()) SWIG_fail; | |
27351 | } | |
27352 | { | |
27353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27354 | } | |
27355 | return resultobj; | |
27356 | fail: | |
27357 | return NULL; | |
d55e5bfc RD |
27358 | } |
27359 | ||
27360 | ||
1bd55598 RD |
27361 | SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27362 | PyObject *resultobj = 0; | |
27363 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27364 | wxColour result; | |
27365 | void *argp1 = 0 ; | |
27366 | int res1 = 0 ; | |
27367 | PyObject *swig_obj[1] ; | |
27368 | ||
27369 | if (!args) SWIG_fail; | |
27370 | swig_obj[0] = args; | |
27371 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27372 | if (!SWIG_IsOK(res1)) { | |
27373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
27374 | } | |
27375 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27376 | { | |
27377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27378 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
27379 | wxPyEndAllowThreads(__tstate); | |
27380 | if (PyErr_Occurred()) SWIG_fail; | |
27381 | } | |
27382 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
27383 | return resultobj; | |
27384 | fail: | |
27385 | return NULL; | |
d55e5bfc RD |
27386 | } |
27387 | ||
27388 | ||
1bd55598 RD |
27389 | SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27390 | PyObject *resultobj = 0; | |
27391 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27392 | wxColour result; | |
27393 | void *argp1 = 0 ; | |
27394 | int res1 = 0 ; | |
27395 | PyObject *swig_obj[1] ; | |
27396 | ||
27397 | if (!args) SWIG_fail; | |
27398 | swig_obj[0] = args; | |
27399 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27400 | if (!SWIG_IsOK(res1)) { | |
27401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
27402 | } | |
27403 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27404 | { | |
27405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27406 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
27407 | wxPyEndAllowThreads(__tstate); | |
27408 | if (PyErr_Occurred()) SWIG_fail; | |
27409 | } | |
27410 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
27411 | return resultobj; | |
27412 | fail: | |
27413 | return NULL; | |
d55e5bfc RD |
27414 | } |
27415 | ||
27416 | ||
1bd55598 RD |
27417 | SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27418 | PyObject *resultobj = 0; | |
27419 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27420 | wxFont result; | |
27421 | void *argp1 = 0 ; | |
27422 | int res1 = 0 ; | |
27423 | PyObject *swig_obj[1] ; | |
27424 | ||
27425 | if (!args) SWIG_fail; | |
27426 | swig_obj[0] = args; | |
27427 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27428 | if (!SWIG_IsOK(res1)) { | |
27429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
27430 | } | |
27431 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27432 | { | |
27433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27434 | result = ((wxListItem const *)arg1)->GetFont(); | |
27435 | wxPyEndAllowThreads(__tstate); | |
27436 | if (PyErr_Occurred()) SWIG_fail; | |
27437 | } | |
27438 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
27439 | return resultobj; | |
27440 | fail: | |
27441 | return NULL; | |
27442 | } | |
27443 | ||
27444 | ||
27445 | SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27446 | PyObject *resultobj = 0; | |
27447 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27448 | long arg2 ; | |
27449 | void *argp1 = 0 ; | |
27450 | int res1 = 0 ; | |
27451 | long val2 ; | |
27452 | int ecode2 = 0 ; | |
27453 | PyObject *swig_obj[2] ; | |
27454 | ||
27455 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail; | |
27456 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27457 | if (!SWIG_IsOK(res1)) { | |
27458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27459 | } | |
27460 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27461 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27462 | if (!SWIG_IsOK(ecode2)) { | |
27463 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'"); | |
27464 | } | |
27465 | arg2 = static_cast< long >(val2); | |
27466 | if (arg1) (arg1)->m_mask = arg2; | |
27467 | ||
27468 | resultobj = SWIG_Py_Void(); | |
27469 | return resultobj; | |
27470 | fail: | |
27471 | return NULL; | |
d55e5bfc RD |
27472 | } |
27473 | ||
27474 | ||
1bd55598 RD |
27475 | SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27476 | PyObject *resultobj = 0; | |
27477 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27478 | long result; | |
27479 | void *argp1 = 0 ; | |
27480 | int res1 = 0 ; | |
27481 | PyObject *swig_obj[1] ; | |
27482 | ||
27483 | if (!args) SWIG_fail; | |
27484 | swig_obj[0] = args; | |
27485 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27486 | if (!SWIG_IsOK(res1)) { | |
27487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27488 | } | |
27489 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27490 | result = (long) ((arg1)->m_mask); | |
27491 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27492 | return resultobj; | |
27493 | fail: | |
27494 | return NULL; | |
27495 | } | |
27496 | ||
27497 | ||
27498 | SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27499 | PyObject *resultobj = 0; | |
27500 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27501 | long arg2 ; | |
27502 | void *argp1 = 0 ; | |
27503 | int res1 = 0 ; | |
27504 | long val2 ; | |
27505 | int ecode2 = 0 ; | |
27506 | PyObject *swig_obj[2] ; | |
27507 | ||
27508 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail; | |
27509 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27510 | if (!SWIG_IsOK(res1)) { | |
27511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27512 | } | |
27513 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27514 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27515 | if (!SWIG_IsOK(ecode2)) { | |
27516 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'"); | |
27517 | } | |
27518 | arg2 = static_cast< long >(val2); | |
27519 | if (arg1) (arg1)->m_itemId = arg2; | |
27520 | ||
27521 | resultobj = SWIG_Py_Void(); | |
27522 | return resultobj; | |
27523 | fail: | |
27524 | return NULL; | |
7e08d4ef RD |
27525 | } |
27526 | ||
27527 | ||
1bd55598 RD |
27528 | SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27529 | PyObject *resultobj = 0; | |
27530 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27531 | long result; | |
27532 | void *argp1 = 0 ; | |
27533 | int res1 = 0 ; | |
27534 | PyObject *swig_obj[1] ; | |
27535 | ||
27536 | if (!args) SWIG_fail; | |
27537 | swig_obj[0] = args; | |
27538 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27539 | if (!SWIG_IsOK(res1)) { | |
27540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27541 | } | |
27542 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27543 | result = (long) ((arg1)->m_itemId); | |
27544 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27545 | return resultobj; | |
27546 | fail: | |
27547 | return NULL; | |
27548 | } | |
27549 | ||
27550 | ||
27551 | SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27552 | PyObject *resultobj = 0; | |
27553 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27554 | int arg2 ; | |
27555 | void *argp1 = 0 ; | |
27556 | int res1 = 0 ; | |
27557 | int val2 ; | |
27558 | int ecode2 = 0 ; | |
27559 | PyObject *swig_obj[2] ; | |
27560 | ||
27561 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail; | |
27562 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27563 | if (!SWIG_IsOK(res1)) { | |
27564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27565 | } | |
27566 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27567 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27568 | if (!SWIG_IsOK(ecode2)) { | |
27569 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'"); | |
27570 | } | |
27571 | arg2 = static_cast< int >(val2); | |
27572 | if (arg1) (arg1)->m_col = arg2; | |
27573 | ||
27574 | resultobj = SWIG_Py_Void(); | |
27575 | return resultobj; | |
27576 | fail: | |
27577 | return NULL; | |
7e08d4ef RD |
27578 | } |
27579 | ||
27580 | ||
1bd55598 RD |
27581 | SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27582 | PyObject *resultobj = 0; | |
27583 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27584 | int result; | |
27585 | void *argp1 = 0 ; | |
27586 | int res1 = 0 ; | |
27587 | PyObject *swig_obj[1] ; | |
27588 | ||
27589 | if (!args) SWIG_fail; | |
27590 | swig_obj[0] = args; | |
27591 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27592 | if (!SWIG_IsOK(res1)) { | |
27593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27594 | } | |
27595 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27596 | result = (int) ((arg1)->m_col); | |
27597 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27598 | return resultobj; | |
27599 | fail: | |
27600 | return NULL; | |
27601 | } | |
27602 | ||
27603 | ||
27604 | SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27605 | PyObject *resultobj = 0; | |
27606 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27607 | long arg2 ; | |
27608 | void *argp1 = 0 ; | |
27609 | int res1 = 0 ; | |
27610 | long val2 ; | |
27611 | int ecode2 = 0 ; | |
27612 | PyObject *swig_obj[2] ; | |
27613 | ||
27614 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail; | |
27615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27616 | if (!SWIG_IsOK(res1)) { | |
27617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27618 | } | |
27619 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27620 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27621 | if (!SWIG_IsOK(ecode2)) { | |
27622 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'"); | |
27623 | } | |
27624 | arg2 = static_cast< long >(val2); | |
27625 | if (arg1) (arg1)->m_state = arg2; | |
27626 | ||
27627 | resultobj = SWIG_Py_Void(); | |
27628 | return resultobj; | |
27629 | fail: | |
27630 | return NULL; | |
7e08d4ef RD |
27631 | } |
27632 | ||
27633 | ||
1bd55598 RD |
27634 | SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27635 | PyObject *resultobj = 0; | |
27636 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27637 | long result; | |
27638 | void *argp1 = 0 ; | |
27639 | int res1 = 0 ; | |
27640 | PyObject *swig_obj[1] ; | |
27641 | ||
27642 | if (!args) SWIG_fail; | |
27643 | swig_obj[0] = args; | |
27644 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27645 | if (!SWIG_IsOK(res1)) { | |
27646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27647 | } | |
27648 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27649 | result = (long) ((arg1)->m_state); | |
27650 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27651 | return resultobj; | |
27652 | fail: | |
27653 | return NULL; | |
27654 | } | |
27655 | ||
27656 | ||
27657 | SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27658 | PyObject *resultobj = 0; | |
27659 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27660 | long arg2 ; | |
27661 | void *argp1 = 0 ; | |
27662 | int res1 = 0 ; | |
27663 | long val2 ; | |
27664 | int ecode2 = 0 ; | |
27665 | PyObject *swig_obj[2] ; | |
27666 | ||
27667 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail; | |
27668 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27669 | if (!SWIG_IsOK(res1)) { | |
27670 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27671 | } | |
27672 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27673 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27674 | if (!SWIG_IsOK(ecode2)) { | |
27675 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'"); | |
27676 | } | |
27677 | arg2 = static_cast< long >(val2); | |
27678 | if (arg1) (arg1)->m_stateMask = arg2; | |
27679 | ||
27680 | resultobj = SWIG_Py_Void(); | |
27681 | return resultobj; | |
27682 | fail: | |
27683 | return NULL; | |
7e08d4ef RD |
27684 | } |
27685 | ||
27686 | ||
1bd55598 RD |
27687 | SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27688 | PyObject *resultobj = 0; | |
27689 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27690 | long result; | |
27691 | void *argp1 = 0 ; | |
27692 | int res1 = 0 ; | |
27693 | PyObject *swig_obj[1] ; | |
27694 | ||
27695 | if (!args) SWIG_fail; | |
27696 | swig_obj[0] = args; | |
27697 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27698 | if (!SWIG_IsOK(res1)) { | |
27699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27700 | } | |
27701 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27702 | result = (long) ((arg1)->m_stateMask); | |
27703 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27704 | return resultobj; | |
27705 | fail: | |
27706 | return NULL; | |
27707 | } | |
27708 | ||
27709 | ||
27710 | SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27711 | PyObject *resultobj = 0; | |
27712 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27713 | wxString *arg2 = (wxString *) 0 ; | |
27714 | void *argp1 = 0 ; | |
27715 | int res1 = 0 ; | |
27716 | bool temp2 = false ; | |
27717 | PyObject *swig_obj[2] ; | |
27718 | ||
27719 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail; | |
27720 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27721 | if (!SWIG_IsOK(res1)) { | |
27722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27723 | } | |
27724 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27725 | { | |
27726 | arg2 = wxString_in_helper(swig_obj[1]); | |
27727 | if (arg2 == NULL) SWIG_fail; | |
27728 | temp2 = true; | |
27729 | } | |
27730 | if (arg1) (arg1)->m_text = *arg2; | |
27731 | ||
27732 | resultobj = SWIG_Py_Void(); | |
27733 | { | |
27734 | if (temp2) | |
27735 | delete arg2; | |
27736 | } | |
27737 | return resultobj; | |
27738 | fail: | |
27739 | { | |
27740 | if (temp2) | |
27741 | delete arg2; | |
27742 | } | |
27743 | return NULL; | |
7e08d4ef RD |
27744 | } |
27745 | ||
27746 | ||
1bd55598 RD |
27747 | SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27748 | PyObject *resultobj = 0; | |
27749 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27750 | wxString *result = 0 ; | |
27751 | void *argp1 = 0 ; | |
27752 | int res1 = 0 ; | |
27753 | PyObject *swig_obj[1] ; | |
27754 | ||
27755 | if (!args) SWIG_fail; | |
27756 | swig_obj[0] = args; | |
27757 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27758 | if (!SWIG_IsOK(res1)) { | |
27759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27760 | } | |
27761 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27762 | result = (wxString *)& ((arg1)->m_text); | |
27763 | { | |
27764 | #if wxUSE_UNICODE | |
27765 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27766 | #else | |
27767 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27768 | #endif | |
27769 | } | |
27770 | return resultobj; | |
27771 | fail: | |
27772 | return NULL; | |
d55e5bfc RD |
27773 | } |
27774 | ||
27775 | ||
1bd55598 RD |
27776 | SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27777 | PyObject *resultobj = 0; | |
27778 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27779 | int arg2 ; | |
27780 | void *argp1 = 0 ; | |
27781 | int res1 = 0 ; | |
27782 | int val2 ; | |
27783 | int ecode2 = 0 ; | |
27784 | PyObject *swig_obj[2] ; | |
27785 | ||
27786 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail; | |
27787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27788 | if (!SWIG_IsOK(res1)) { | |
27789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27790 | } | |
27791 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27792 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27793 | if (!SWIG_IsOK(ecode2)) { | |
27794 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'"); | |
27795 | } | |
27796 | arg2 = static_cast< int >(val2); | |
27797 | if (arg1) (arg1)->m_image = arg2; | |
27798 | ||
27799 | resultobj = SWIG_Py_Void(); | |
27800 | return resultobj; | |
27801 | fail: | |
27802 | return NULL; | |
d55e5bfc RD |
27803 | } |
27804 | ||
27805 | ||
1bd55598 RD |
27806 | SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27807 | PyObject *resultobj = 0; | |
27808 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27809 | int result; | |
27810 | void *argp1 = 0 ; | |
27811 | int res1 = 0 ; | |
27812 | PyObject *swig_obj[1] ; | |
27813 | ||
27814 | if (!args) SWIG_fail; | |
27815 | swig_obj[0] = args; | |
27816 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27817 | if (!SWIG_IsOK(res1)) { | |
27818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27819 | } | |
27820 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27821 | result = (int) ((arg1)->m_image); | |
27822 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27823 | return resultobj; | |
27824 | fail: | |
27825 | return NULL; | |
27826 | } | |
27827 | ||
27828 | ||
27829 | SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27830 | PyObject *resultobj = 0; | |
27831 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27832 | long arg2 ; | |
27833 | void *argp1 = 0 ; | |
27834 | int res1 = 0 ; | |
27835 | long val2 ; | |
27836 | int ecode2 = 0 ; | |
27837 | PyObject *swig_obj[2] ; | |
27838 | ||
27839 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail; | |
27840 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27841 | if (!SWIG_IsOK(res1)) { | |
27842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27843 | } | |
27844 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27845 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27846 | if (!SWIG_IsOK(ecode2)) { | |
27847 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'"); | |
27848 | } | |
27849 | arg2 = static_cast< long >(val2); | |
27850 | if (arg1) (arg1)->m_data = arg2; | |
27851 | ||
27852 | resultobj = SWIG_Py_Void(); | |
27853 | return resultobj; | |
27854 | fail: | |
27855 | return NULL; | |
d55e5bfc RD |
27856 | } |
27857 | ||
27858 | ||
1bd55598 RD |
27859 | SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27860 | PyObject *resultobj = 0; | |
27861 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27862 | long result; | |
27863 | void *argp1 = 0 ; | |
27864 | int res1 = 0 ; | |
27865 | PyObject *swig_obj[1] ; | |
27866 | ||
27867 | if (!args) SWIG_fail; | |
27868 | swig_obj[0] = args; | |
27869 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27870 | if (!SWIG_IsOK(res1)) { | |
27871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27872 | } | |
27873 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27874 | result = (long) ((arg1)->m_data); | |
27875 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27876 | return resultobj; | |
27877 | fail: | |
27878 | return NULL; | |
27879 | } | |
27880 | ||
27881 | ||
27882 | SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27883 | PyObject *resultobj = 0; | |
27884 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27885 | int arg2 ; | |
27886 | void *argp1 = 0 ; | |
27887 | int res1 = 0 ; | |
27888 | int val2 ; | |
27889 | int ecode2 = 0 ; | |
27890 | PyObject *swig_obj[2] ; | |
27891 | ||
27892 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail; | |
27893 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27894 | if (!SWIG_IsOK(res1)) { | |
27895 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27896 | } | |
27897 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27898 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27899 | if (!SWIG_IsOK(ecode2)) { | |
27900 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'"); | |
27901 | } | |
27902 | arg2 = static_cast< int >(val2); | |
27903 | if (arg1) (arg1)->m_format = arg2; | |
27904 | ||
27905 | resultobj = SWIG_Py_Void(); | |
27906 | return resultobj; | |
27907 | fail: | |
27908 | return NULL; | |
d55e5bfc RD |
27909 | } |
27910 | ||
27911 | ||
1bd55598 RD |
27912 | SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27913 | PyObject *resultobj = 0; | |
27914 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27915 | int result; | |
27916 | void *argp1 = 0 ; | |
27917 | int res1 = 0 ; | |
27918 | PyObject *swig_obj[1] ; | |
27919 | ||
27920 | if (!args) SWIG_fail; | |
27921 | swig_obj[0] = args; | |
27922 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27923 | if (!SWIG_IsOK(res1)) { | |
27924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27925 | } | |
27926 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27927 | result = (int) ((arg1)->m_format); | |
27928 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27929 | return resultobj; | |
27930 | fail: | |
27931 | return NULL; | |
27932 | } | |
27933 | ||
27934 | ||
27935 | SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27936 | PyObject *resultobj = 0; | |
27937 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27938 | int arg2 ; | |
27939 | void *argp1 = 0 ; | |
27940 | int res1 = 0 ; | |
27941 | int val2 ; | |
27942 | int ecode2 = 0 ; | |
27943 | PyObject *swig_obj[2] ; | |
27944 | ||
27945 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail; | |
27946 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27947 | if (!SWIG_IsOK(res1)) { | |
27948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27949 | } | |
27950 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27951 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27952 | if (!SWIG_IsOK(ecode2)) { | |
27953 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'"); | |
27954 | } | |
27955 | arg2 = static_cast< int >(val2); | |
27956 | if (arg1) (arg1)->m_width = arg2; | |
27957 | ||
27958 | resultobj = SWIG_Py_Void(); | |
27959 | return resultobj; | |
27960 | fail: | |
27961 | return NULL; | |
d55e5bfc RD |
27962 | } |
27963 | ||
27964 | ||
1bd55598 RD |
27965 | SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27966 | PyObject *resultobj = 0; | |
27967 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27968 | int result; | |
27969 | void *argp1 = 0 ; | |
27970 | int res1 = 0 ; | |
27971 | PyObject *swig_obj[1] ; | |
27972 | ||
27973 | if (!args) SWIG_fail; | |
27974 | swig_obj[0] = args; | |
27975 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27976 | if (!SWIG_IsOK(res1)) { | |
27977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27978 | } | |
27979 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27980 | result = (int) ((arg1)->m_width); | |
27981 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27982 | return resultobj; | |
27983 | fail: | |
27984 | return NULL; | |
27985 | } | |
27986 | ||
27987 | ||
27988 | SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27989 | PyObject *obj; | |
27990 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27991 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj)); | |
27992 | return SWIG_Py_Void(); | |
27993 | } | |
27994 | ||
27995 | SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27996 | return SWIG_Python_InitShadowInstance(args); | |
27997 | } | |
27998 | ||
27999 | SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28000 | PyObject *resultobj = 0; | |
28001 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
28002 | int arg2 = (int) 0 ; | |
28003 | wxListEvent *result = 0 ; | |
28004 | int val1 ; | |
28005 | int ecode1 = 0 ; | |
28006 | int val2 ; | |
28007 | int ecode2 = 0 ; | |
28008 | PyObject * obj0 = 0 ; | |
28009 | PyObject * obj1 = 0 ; | |
28010 | char * kwnames[] = { | |
28011 | (char *) "commandType",(char *) "id", NULL | |
28012 | }; | |
28013 | ||
28014 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
28015 | if (obj0) { | |
28016 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
28017 | if (!SWIG_IsOK(ecode1)) { | |
28018 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
28019 | } | |
28020 | arg1 = static_cast< wxEventType >(val1); | |
28021 | } | |
28022 | if (obj1) { | |
28023 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28024 | if (!SWIG_IsOK(ecode2)) { | |
28025 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'"); | |
28026 | } | |
28027 | arg2 = static_cast< int >(val2); | |
28028 | } | |
28029 | { | |
28030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28031 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
28032 | wxPyEndAllowThreads(__tstate); | |
28033 | if (PyErr_Occurred()) SWIG_fail; | |
28034 | } | |
28035 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 ); | |
28036 | return resultobj; | |
28037 | fail: | |
28038 | return NULL; | |
28039 | } | |
28040 | ||
28041 | ||
28042 | SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28043 | PyObject *resultobj = 0; | |
28044 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28045 | int arg2 ; | |
28046 | void *argp1 = 0 ; | |
28047 | int res1 = 0 ; | |
28048 | int val2 ; | |
28049 | int ecode2 = 0 ; | |
28050 | PyObject *swig_obj[2] ; | |
28051 | ||
28052 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail; | |
28053 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28054 | if (!SWIG_IsOK(res1)) { | |
28055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28056 | } | |
28057 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28058 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
28059 | if (!SWIG_IsOK(ecode2)) { | |
28060 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'"); | |
28061 | } | |
28062 | arg2 = static_cast< int >(val2); | |
28063 | if (arg1) (arg1)->m_code = arg2; | |
28064 | ||
28065 | resultobj = SWIG_Py_Void(); | |
28066 | return resultobj; | |
28067 | fail: | |
28068 | return NULL; | |
d55e5bfc RD |
28069 | } |
28070 | ||
28071 | ||
1bd55598 RD |
28072 | SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28073 | PyObject *resultobj = 0; | |
28074 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28075 | int result; | |
28076 | void *argp1 = 0 ; | |
28077 | int res1 = 0 ; | |
28078 | PyObject *swig_obj[1] ; | |
28079 | ||
28080 | if (!args) SWIG_fail; | |
28081 | swig_obj[0] = args; | |
28082 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28083 | if (!SWIG_IsOK(res1)) { | |
28084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28085 | } | |
28086 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28087 | result = (int) ((arg1)->m_code); | |
28088 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28089 | return resultobj; | |
28090 | fail: | |
28091 | return NULL; | |
28092 | } | |
28093 | ||
28094 | ||
28095 | SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28096 | PyObject *resultobj = 0; | |
28097 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28098 | long arg2 ; | |
28099 | void *argp1 = 0 ; | |
28100 | int res1 = 0 ; | |
28101 | long val2 ; | |
28102 | int ecode2 = 0 ; | |
28103 | PyObject *swig_obj[2] ; | |
28104 | ||
28105 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail; | |
28106 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28107 | if (!SWIG_IsOK(res1)) { | |
28108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28109 | } | |
28110 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28111 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
28112 | if (!SWIG_IsOK(ecode2)) { | |
28113 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'"); | |
28114 | } | |
28115 | arg2 = static_cast< long >(val2); | |
28116 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
28117 | ||
28118 | resultobj = SWIG_Py_Void(); | |
28119 | return resultobj; | |
28120 | fail: | |
28121 | return NULL; | |
d55e5bfc RD |
28122 | } |
28123 | ||
28124 | ||
1bd55598 RD |
28125 | SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28126 | PyObject *resultobj = 0; | |
28127 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28128 | long result; | |
28129 | void *argp1 = 0 ; | |
28130 | int res1 = 0 ; | |
28131 | PyObject *swig_obj[1] ; | |
28132 | ||
28133 | if (!args) SWIG_fail; | |
28134 | swig_obj[0] = args; | |
28135 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28136 | if (!SWIG_IsOK(res1)) { | |
28137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28138 | } | |
28139 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28140 | result = (long) ((arg1)->m_oldItemIndex); | |
28141 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28142 | return resultobj; | |
28143 | fail: | |
28144 | return NULL; | |
28145 | } | |
28146 | ||
28147 | ||
28148 | SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28149 | PyObject *resultobj = 0; | |
28150 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28151 | long arg2 ; | |
28152 | void *argp1 = 0 ; | |
28153 | int res1 = 0 ; | |
28154 | long val2 ; | |
28155 | int ecode2 = 0 ; | |
28156 | PyObject *swig_obj[2] ; | |
28157 | ||
28158 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail; | |
28159 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28160 | if (!SWIG_IsOK(res1)) { | |
28161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28162 | } | |
28163 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28164 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
28165 | if (!SWIG_IsOK(ecode2)) { | |
28166 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'"); | |
28167 | } | |
28168 | arg2 = static_cast< long >(val2); | |
28169 | if (arg1) (arg1)->m_itemIndex = arg2; | |
28170 | ||
28171 | resultobj = SWIG_Py_Void(); | |
28172 | return resultobj; | |
28173 | fail: | |
28174 | return NULL; | |
f20a2e1f RD |
28175 | } |
28176 | ||
28177 | ||
1bd55598 RD |
28178 | SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28179 | PyObject *resultobj = 0; | |
28180 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28181 | long result; | |
28182 | void *argp1 = 0 ; | |
28183 | int res1 = 0 ; | |
28184 | PyObject *swig_obj[1] ; | |
28185 | ||
28186 | if (!args) SWIG_fail; | |
28187 | swig_obj[0] = args; | |
28188 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28189 | if (!SWIG_IsOK(res1)) { | |
28190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28191 | } | |
28192 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28193 | result = (long) ((arg1)->m_itemIndex); | |
28194 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28195 | return resultobj; | |
28196 | fail: | |
28197 | return NULL; | |
28198 | } | |
28199 | ||
28200 | ||
28201 | SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28202 | PyObject *resultobj = 0; | |
28203 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28204 | int arg2 ; | |
28205 | void *argp1 = 0 ; | |
28206 | int res1 = 0 ; | |
28207 | int val2 ; | |
28208 | int ecode2 = 0 ; | |
28209 | PyObject *swig_obj[2] ; | |
28210 | ||
28211 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail; | |
28212 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28213 | if (!SWIG_IsOK(res1)) { | |
28214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28215 | } | |
28216 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28217 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
28218 | if (!SWIG_IsOK(ecode2)) { | |
28219 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'"); | |
28220 | } | |
28221 | arg2 = static_cast< int >(val2); | |
28222 | if (arg1) (arg1)->m_col = arg2; | |
28223 | ||
28224 | resultobj = SWIG_Py_Void(); | |
28225 | return resultobj; | |
28226 | fail: | |
28227 | return NULL; | |
d55e5bfc RD |
28228 | } |
28229 | ||
28230 | ||
1bd55598 RD |
28231 | SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28232 | PyObject *resultobj = 0; | |
28233 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28234 | int result; | |
28235 | void *argp1 = 0 ; | |
28236 | int res1 = 0 ; | |
28237 | PyObject *swig_obj[1] ; | |
28238 | ||
28239 | if (!args) SWIG_fail; | |
28240 | swig_obj[0] = args; | |
28241 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28242 | if (!SWIG_IsOK(res1)) { | |
28243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28244 | } | |
28245 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28246 | result = (int) ((arg1)->m_col); | |
28247 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28248 | return resultobj; | |
28249 | fail: | |
28250 | return NULL; | |
28251 | } | |
28252 | ||
28253 | ||
28254 | SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28255 | PyObject *resultobj = 0; | |
28256 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28257 | wxPoint *arg2 = (wxPoint *) 0 ; | |
28258 | void *argp1 = 0 ; | |
28259 | int res1 = 0 ; | |
28260 | void *argp2 = 0 ; | |
28261 | int res2 = 0 ; | |
28262 | PyObject *swig_obj[2] ; | |
28263 | ||
28264 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail; | |
28265 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28266 | if (!SWIG_IsOK(res1)) { | |
28267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28268 | } | |
28269 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28270 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 ); | |
28271 | if (!SWIG_IsOK(res2)) { | |
28272 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'"); | |
28273 | } | |
28274 | arg2 = reinterpret_cast< wxPoint * >(argp2); | |
28275 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
28276 | ||
28277 | resultobj = SWIG_Py_Void(); | |
28278 | return resultobj; | |
28279 | fail: | |
28280 | return NULL; | |
d55e5bfc RD |
28281 | } |
28282 | ||
28283 | ||
1bd55598 RD |
28284 | SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28285 | PyObject *resultobj = 0; | |
28286 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28287 | wxPoint *result = 0 ; | |
28288 | void *argp1 = 0 ; | |
28289 | int res1 = 0 ; | |
28290 | PyObject *swig_obj[1] ; | |
28291 | ||
28292 | if (!args) SWIG_fail; | |
28293 | swig_obj[0] = args; | |
28294 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28295 | if (!SWIG_IsOK(res1)) { | |
28296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28297 | } | |
28298 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28299 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
28300 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 ); | |
28301 | return resultobj; | |
28302 | fail: | |
28303 | return NULL; | |
28304 | } | |
28305 | ||
28306 | ||
28307 | SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28308 | PyObject *resultobj = 0; | |
28309 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28310 | wxListItem *result = 0 ; | |
28311 | void *argp1 = 0 ; | |
28312 | int res1 = 0 ; | |
28313 | PyObject *swig_obj[1] ; | |
28314 | ||
28315 | if (!args) SWIG_fail; | |
28316 | swig_obj[0] = args; | |
28317 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28318 | if (!SWIG_IsOK(res1)) { | |
28319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28320 | } | |
28321 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28322 | result = (wxListItem *)& ((arg1)->m_item); | |
28323 | { | |
3ecece7e | 28324 | resultobj = wxPyMake_wxObject(result, 0); |
1bd55598 RD |
28325 | } |
28326 | return resultobj; | |
28327 | fail: | |
28328 | return NULL; | |
d55e5bfc RD |
28329 | } |
28330 | ||
28331 | ||
1bd55598 RD |
28332 | SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28333 | PyObject *resultobj = 0; | |
28334 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28335 | int result; | |
28336 | void *argp1 = 0 ; | |
28337 | int res1 = 0 ; | |
28338 | PyObject *swig_obj[1] ; | |
28339 | ||
28340 | if (!args) SWIG_fail; | |
28341 | swig_obj[0] = args; | |
28342 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28343 | if (!SWIG_IsOK(res1)) { | |
28344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28345 | } | |
28346 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28347 | { | |
28348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28349 | result = (int)(arg1)->GetKeyCode(); | |
28350 | wxPyEndAllowThreads(__tstate); | |
28351 | if (PyErr_Occurred()) SWIG_fail; | |
28352 | } | |
28353 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28354 | return resultobj; | |
28355 | fail: | |
28356 | return NULL; | |
d55e5bfc RD |
28357 | } |
28358 | ||
28359 | ||
1bd55598 RD |
28360 | SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28361 | PyObject *resultobj = 0; | |
28362 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28363 | long result; | |
28364 | void *argp1 = 0 ; | |
28365 | int res1 = 0 ; | |
28366 | PyObject *swig_obj[1] ; | |
28367 | ||
28368 | if (!args) SWIG_fail; | |
28369 | swig_obj[0] = args; | |
28370 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28371 | if (!SWIG_IsOK(res1)) { | |
28372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28373 | } | |
28374 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28375 | { | |
28376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28377 | result = (long)(arg1)->GetIndex(); | |
28378 | wxPyEndAllowThreads(__tstate); | |
28379 | if (PyErr_Occurred()) SWIG_fail; | |
28380 | } | |
28381 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28382 | return resultobj; | |
28383 | fail: | |
28384 | return NULL; | |
d55e5bfc RD |
28385 | } |
28386 | ||
28387 | ||
1bd55598 RD |
28388 | SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28389 | PyObject *resultobj = 0; | |
28390 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28391 | int result; | |
28392 | void *argp1 = 0 ; | |
28393 | int res1 = 0 ; | |
28394 | PyObject *swig_obj[1] ; | |
28395 | ||
28396 | if (!args) SWIG_fail; | |
28397 | swig_obj[0] = args; | |
28398 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28399 | if (!SWIG_IsOK(res1)) { | |
28400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28401 | } | |
28402 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28403 | { | |
28404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28405 | result = (int)(arg1)->GetColumn(); | |
28406 | wxPyEndAllowThreads(__tstate); | |
28407 | if (PyErr_Occurred()) SWIG_fail; | |
28408 | } | |
28409 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28410 | return resultobj; | |
28411 | fail: | |
28412 | return NULL; | |
d55e5bfc RD |
28413 | } |
28414 | ||
28415 | ||
1bd55598 RD |
28416 | SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28417 | PyObject *resultobj = 0; | |
28418 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28419 | wxPoint result; | |
28420 | void *argp1 = 0 ; | |
28421 | int res1 = 0 ; | |
28422 | PyObject *swig_obj[1] ; | |
28423 | ||
28424 | if (!args) SWIG_fail; | |
28425 | swig_obj[0] = args; | |
28426 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28427 | if (!SWIG_IsOK(res1)) { | |
28428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28429 | } | |
28430 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28431 | { | |
28432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28433 | result = (arg1)->GetPoint(); | |
28434 | wxPyEndAllowThreads(__tstate); | |
28435 | if (PyErr_Occurred()) SWIG_fail; | |
28436 | } | |
28437 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
28438 | return resultobj; | |
28439 | fail: | |
28440 | return NULL; | |
d55e5bfc RD |
28441 | } |
28442 | ||
28443 | ||
1bd55598 RD |
28444 | SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28445 | PyObject *resultobj = 0; | |
28446 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28447 | wxString *result = 0 ; | |
28448 | void *argp1 = 0 ; | |
28449 | int res1 = 0 ; | |
28450 | PyObject *swig_obj[1] ; | |
28451 | ||
28452 | if (!args) SWIG_fail; | |
28453 | swig_obj[0] = args; | |
28454 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28455 | if (!SWIG_IsOK(res1)) { | |
28456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28457 | } | |
28458 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28459 | { | |
28460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 28461 | { |
1bd55598 RD |
28462 | wxString const &_result_ref = (arg1)->GetLabel(); |
28463 | result = (wxString *) &_result_ref; | |
d55e5bfc | 28464 | } |
1bd55598 RD |
28465 | wxPyEndAllowThreads(__tstate); |
28466 | if (PyErr_Occurred()) SWIG_fail; | |
28467 | } | |
28468 | { | |
28469 | #if wxUSE_UNICODE | |
28470 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28471 | #else | |
28472 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28473 | #endif | |
28474 | } | |
28475 | return resultobj; | |
28476 | fail: | |
28477 | return NULL; | |
d55e5bfc RD |
28478 | } |
28479 | ||
28480 | ||
1bd55598 RD |
28481 | SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28482 | PyObject *resultobj = 0; | |
28483 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28484 | wxString *result = 0 ; | |
28485 | void *argp1 = 0 ; | |
28486 | int res1 = 0 ; | |
28487 | PyObject *swig_obj[1] ; | |
28488 | ||
28489 | if (!args) SWIG_fail; | |
28490 | swig_obj[0] = args; | |
28491 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28492 | if (!SWIG_IsOK(res1)) { | |
28493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28494 | } | |
28495 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28496 | { | |
28497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 28498 | { |
1bd55598 RD |
28499 | wxString const &_result_ref = (arg1)->GetText(); |
28500 | result = (wxString *) &_result_ref; | |
36ed4f51 | 28501 | } |
1bd55598 RD |
28502 | wxPyEndAllowThreads(__tstate); |
28503 | if (PyErr_Occurred()) SWIG_fail; | |
28504 | } | |
28505 | { | |
28506 | #if wxUSE_UNICODE | |
28507 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28508 | #else | |
28509 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28510 | #endif | |
28511 | } | |
28512 | return resultobj; | |
28513 | fail: | |
28514 | return NULL; | |
d55e5bfc RD |
28515 | } |
28516 | ||
28517 | ||
1bd55598 RD |
28518 | SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28519 | PyObject *resultobj = 0; | |
28520 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28521 | int result; | |
28522 | void *argp1 = 0 ; | |
28523 | int res1 = 0 ; | |
28524 | PyObject *swig_obj[1] ; | |
28525 | ||
28526 | if (!args) SWIG_fail; | |
28527 | swig_obj[0] = args; | |
28528 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28529 | if (!SWIG_IsOK(res1)) { | |
28530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28531 | } | |
28532 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28533 | { | |
28534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28535 | result = (int)(arg1)->GetImage(); | |
28536 | wxPyEndAllowThreads(__tstate); | |
28537 | if (PyErr_Occurred()) SWIG_fail; | |
28538 | } | |
28539 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28540 | return resultobj; | |
28541 | fail: | |
28542 | return NULL; | |
d55e5bfc RD |
28543 | } |
28544 | ||
28545 | ||
1bd55598 RD |
28546 | SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28547 | PyObject *resultobj = 0; | |
28548 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28549 | long result; | |
28550 | void *argp1 = 0 ; | |
28551 | int res1 = 0 ; | |
28552 | PyObject *swig_obj[1] ; | |
28553 | ||
28554 | if (!args) SWIG_fail; | |
28555 | swig_obj[0] = args; | |
28556 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28557 | if (!SWIG_IsOK(res1)) { | |
28558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28559 | } | |
28560 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28561 | { | |
28562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28563 | result = (long)(arg1)->GetData(); | |
28564 | wxPyEndAllowThreads(__tstate); | |
28565 | if (PyErr_Occurred()) SWIG_fail; | |
28566 | } | |
28567 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28568 | return resultobj; | |
28569 | fail: | |
28570 | return NULL; | |
d55e5bfc RD |
28571 | } |
28572 | ||
28573 | ||
1bd55598 RD |
28574 | SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28575 | PyObject *resultobj = 0; | |
28576 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28577 | long result; | |
28578 | void *argp1 = 0 ; | |
28579 | int res1 = 0 ; | |
28580 | PyObject *swig_obj[1] ; | |
28581 | ||
28582 | if (!args) SWIG_fail; | |
28583 | swig_obj[0] = args; | |
28584 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28585 | if (!SWIG_IsOK(res1)) { | |
28586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28587 | } | |
28588 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28589 | { | |
28590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28591 | result = (long)(arg1)->GetMask(); | |
28592 | wxPyEndAllowThreads(__tstate); | |
28593 | if (PyErr_Occurred()) SWIG_fail; | |
28594 | } | |
28595 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28596 | return resultobj; | |
28597 | fail: | |
28598 | return NULL; | |
d55e5bfc RD |
28599 | } |
28600 | ||
28601 | ||
1bd55598 RD |
28602 | SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28603 | PyObject *resultobj = 0; | |
28604 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28605 | wxListItem *result = 0 ; | |
28606 | void *argp1 = 0 ; | |
28607 | int res1 = 0 ; | |
28608 | PyObject *swig_obj[1] ; | |
28609 | ||
28610 | if (!args) SWIG_fail; | |
28611 | swig_obj[0] = args; | |
28612 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28613 | if (!SWIG_IsOK(res1)) { | |
28614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28615 | } | |
28616 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28617 | { | |
28618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 28619 | { |
1bd55598 RD |
28620 | wxListItem const &_result_ref = (arg1)->GetItem(); |
28621 | result = (wxListItem *) &_result_ref; | |
d55e5bfc | 28622 | } |
1bd55598 RD |
28623 | wxPyEndAllowThreads(__tstate); |
28624 | if (PyErr_Occurred()) SWIG_fail; | |
28625 | } | |
28626 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28627 | return resultobj; | |
28628 | fail: | |
28629 | return NULL; | |
d55e5bfc RD |
28630 | } |
28631 | ||
28632 | ||
1bd55598 RD |
28633 | SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28634 | PyObject *resultobj = 0; | |
28635 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28636 | long result; | |
28637 | void *argp1 = 0 ; | |
28638 | int res1 = 0 ; | |
28639 | PyObject *swig_obj[1] ; | |
28640 | ||
28641 | if (!args) SWIG_fail; | |
28642 | swig_obj[0] = args; | |
28643 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28644 | if (!SWIG_IsOK(res1)) { | |
28645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28646 | } | |
28647 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28648 | { | |
28649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28650 | result = (long)(arg1)->GetCacheFrom(); | |
28651 | wxPyEndAllowThreads(__tstate); | |
28652 | if (PyErr_Occurred()) SWIG_fail; | |
28653 | } | |
28654 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28655 | return resultobj; | |
28656 | fail: | |
28657 | return NULL; | |
d55e5bfc RD |
28658 | } |
28659 | ||
28660 | ||
1bd55598 RD |
28661 | SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28662 | PyObject *resultobj = 0; | |
28663 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28664 | long result; | |
28665 | void *argp1 = 0 ; | |
28666 | int res1 = 0 ; | |
28667 | PyObject *swig_obj[1] ; | |
28668 | ||
28669 | if (!args) SWIG_fail; | |
28670 | swig_obj[0] = args; | |
28671 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28672 | if (!SWIG_IsOK(res1)) { | |
28673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28674 | } | |
28675 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28676 | { | |
28677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28678 | result = (long)(arg1)->GetCacheTo(); | |
28679 | wxPyEndAllowThreads(__tstate); | |
28680 | if (PyErr_Occurred()) SWIG_fail; | |
28681 | } | |
28682 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28683 | return resultobj; | |
28684 | fail: | |
28685 | return NULL; | |
7e08d4ef RD |
28686 | } |
28687 | ||
28688 | ||
1bd55598 RD |
28689 | SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28690 | PyObject *resultobj = 0; | |
28691 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28692 | bool result; | |
28693 | void *argp1 = 0 ; | |
28694 | int res1 = 0 ; | |
28695 | PyObject *swig_obj[1] ; | |
28696 | ||
28697 | if (!args) SWIG_fail; | |
28698 | swig_obj[0] = args; | |
28699 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28700 | if (!SWIG_IsOK(res1)) { | |
28701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'"); | |
28702 | } | |
28703 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28704 | { | |
28705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28706 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
28707 | wxPyEndAllowThreads(__tstate); | |
28708 | if (PyErr_Occurred()) SWIG_fail; | |
28709 | } | |
28710 | { | |
28711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28712 | } | |
28713 | return resultobj; | |
28714 | fail: | |
28715 | return NULL; | |
28716 | } | |
28717 | ||
28718 | ||
28719 | SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28720 | PyObject *resultobj = 0; | |
28721 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28722 | bool arg2 ; | |
28723 | void *argp1 = 0 ; | |
28724 | int res1 = 0 ; | |
28725 | bool val2 ; | |
28726 | int ecode2 = 0 ; | |
28727 | PyObject * obj0 = 0 ; | |
28728 | PyObject * obj1 = 0 ; | |
28729 | char * kwnames[] = { | |
28730 | (char *) "self",(char *) "editCancelled", NULL | |
28731 | }; | |
28732 | ||
28733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail; | |
28734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28735 | if (!SWIG_IsOK(res1)) { | |
28736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28737 | } | |
28738 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28739 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
28740 | if (!SWIG_IsOK(ecode2)) { | |
28741 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'"); | |
28742 | } | |
28743 | arg2 = static_cast< bool >(val2); | |
28744 | { | |
28745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28746 | (arg1)->SetEditCanceled(arg2); | |
28747 | wxPyEndAllowThreads(__tstate); | |
28748 | if (PyErr_Occurred()) SWIG_fail; | |
28749 | } | |
28750 | resultobj = SWIG_Py_Void(); | |
28751 | return resultobj; | |
28752 | fail: | |
28753 | return NULL; | |
28754 | } | |
28755 | ||
28756 | ||
28757 | SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28758 | PyObject *obj; | |
28759 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28760 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj)); | |
28761 | return SWIG_Py_Void(); | |
28762 | } | |
28763 | ||
28764 | SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28765 | return SWIG_Python_InitShadowInstance(args); | |
28766 | } | |
28767 | ||
28768 | SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28769 | PyObject *resultobj = 0; | |
28770 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28771 | int arg2 = (int) -1 ; | |
28772 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28773 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28774 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28775 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28776 | long arg5 = (long) wxLC_ICON ; | |
28777 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28778 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28779 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
28780 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28781 | wxPyListCtrl *result = 0 ; | |
28782 | void *argp1 = 0 ; | |
28783 | int res1 = 0 ; | |
28784 | int val2 ; | |
28785 | int ecode2 = 0 ; | |
28786 | wxPoint temp3 ; | |
28787 | wxSize temp4 ; | |
28788 | long val5 ; | |
28789 | int ecode5 = 0 ; | |
28790 | void *argp6 = 0 ; | |
28791 | int res6 = 0 ; | |
28792 | bool temp7 = false ; | |
28793 | PyObject * obj0 = 0 ; | |
28794 | PyObject * obj1 = 0 ; | |
28795 | PyObject * obj2 = 0 ; | |
28796 | PyObject * obj3 = 0 ; | |
28797 | PyObject * obj4 = 0 ; | |
28798 | PyObject * obj5 = 0 ; | |
28799 | PyObject * obj6 = 0 ; | |
28800 | char * kwnames[] = { | |
28801 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28802 | }; | |
28803 | ||
28804 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28805 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28806 | if (!SWIG_IsOK(res1)) { | |
28807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
28808 | } | |
28809 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
28810 | if (obj1) { | |
28811 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28812 | if (!SWIG_IsOK(ecode2)) { | |
28813 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'"); | |
28814 | } | |
28815 | arg2 = static_cast< int >(val2); | |
28816 | } | |
28817 | if (obj2) { | |
7e08d4ef | 28818 | { |
1bd55598 RD |
28819 | arg3 = &temp3; |
28820 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7e08d4ef | 28821 | } |
1bd55598 RD |
28822 | } |
28823 | if (obj3) { | |
7e08d4ef | 28824 | { |
1bd55598 RD |
28825 | arg4 = &temp4; |
28826 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7e08d4ef | 28827 | } |
1bd55598 RD |
28828 | } |
28829 | if (obj4) { | |
28830 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
28831 | if (!SWIG_IsOK(ecode5)) { | |
28832 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'"); | |
28833 | } | |
28834 | arg5 = static_cast< long >(val5); | |
28835 | } | |
28836 | if (obj5) { | |
28837 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
28838 | if (!SWIG_IsOK(res6)) { | |
28839 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 28840 | } |
1bd55598 RD |
28841 | if (!argp6) { |
28842 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 28843 | } |
1bd55598 RD |
28844 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
28845 | } | |
28846 | if (obj6) { | |
7e08d4ef | 28847 | { |
1bd55598 RD |
28848 | arg7 = wxString_in_helper(obj6); |
28849 | if (arg7 == NULL) SWIG_fail; | |
28850 | temp7 = true; | |
7e08d4ef | 28851 | } |
1bd55598 RD |
28852 | } |
28853 | { | |
28854 | if (!wxPyCheckForApp()) SWIG_fail; | |
28855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28856 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28857 | wxPyEndAllowThreads(__tstate); | |
28858 | if (PyErr_Occurred()) SWIG_fail; | |
28859 | } | |
28860 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 ); | |
28861 | { | |
28862 | if (temp7) | |
28863 | delete arg7; | |
28864 | } | |
28865 | return resultobj; | |
28866 | fail: | |
28867 | { | |
28868 | if (temp7) | |
28869 | delete arg7; | |
28870 | } | |
28871 | return NULL; | |
7e08d4ef RD |
28872 | } |
28873 | ||
28874 | ||
1bd55598 RD |
28875 | SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28876 | PyObject *resultobj = 0; | |
28877 | wxPyListCtrl *result = 0 ; | |
28878 | ||
28879 | if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail; | |
28880 | { | |
28881 | if (!wxPyCheckForApp()) SWIG_fail; | |
28882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28883 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
28884 | wxPyEndAllowThreads(__tstate); | |
28885 | if (PyErr_Occurred()) SWIG_fail; | |
28886 | } | |
28887 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 ); | |
28888 | return resultobj; | |
28889 | fail: | |
28890 | return NULL; | |
28891 | } | |
28892 | ||
28893 | ||
28894 | SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28895 | PyObject *resultobj = 0; | |
28896 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28897 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28898 | int arg3 = (int) -1 ; | |
28899 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28900 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28901 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28902 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28903 | long arg6 = (long) wxLC_ICON ; | |
28904 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
28905 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
28906 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
28907 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28908 | bool result; | |
28909 | void *argp1 = 0 ; | |
28910 | int res1 = 0 ; | |
28911 | void *argp2 = 0 ; | |
28912 | int res2 = 0 ; | |
28913 | int val3 ; | |
28914 | int ecode3 = 0 ; | |
28915 | wxPoint temp4 ; | |
28916 | wxSize temp5 ; | |
28917 | long val6 ; | |
28918 | int ecode6 = 0 ; | |
28919 | void *argp7 = 0 ; | |
28920 | int res7 = 0 ; | |
28921 | bool temp8 = false ; | |
28922 | PyObject * obj0 = 0 ; | |
28923 | PyObject * obj1 = 0 ; | |
28924 | PyObject * obj2 = 0 ; | |
28925 | PyObject * obj3 = 0 ; | |
28926 | PyObject * obj4 = 0 ; | |
28927 | PyObject * obj5 = 0 ; | |
28928 | PyObject * obj6 = 0 ; | |
28929 | PyObject * obj7 = 0 ; | |
28930 | char * kwnames[] = { | |
28931 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28932 | }; | |
28933 | ||
28934 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
28935 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28936 | if (!SWIG_IsOK(res1)) { | |
28937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28938 | } | |
28939 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28940 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28941 | if (!SWIG_IsOK(res2)) { | |
28942 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
28943 | } | |
28944 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
28945 | if (obj2) { | |
28946 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28947 | if (!SWIG_IsOK(ecode3)) { | |
28948 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
28949 | } | |
28950 | arg3 = static_cast< int >(val3); | |
28951 | } | |
28952 | if (obj3) { | |
7e08d4ef | 28953 | { |
1bd55598 RD |
28954 | arg4 = &temp4; |
28955 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7e08d4ef | 28956 | } |
1bd55598 RD |
28957 | } |
28958 | if (obj4) { | |
7e08d4ef | 28959 | { |
1bd55598 RD |
28960 | arg5 = &temp5; |
28961 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7e08d4ef | 28962 | } |
1bd55598 RD |
28963 | } |
28964 | if (obj5) { | |
28965 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
28966 | if (!SWIG_IsOK(ecode6)) { | |
28967 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
28968 | } | |
28969 | arg6 = static_cast< long >(val6); | |
28970 | } | |
28971 | if (obj6) { | |
28972 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
28973 | if (!SWIG_IsOK(res7)) { | |
28974 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 28975 | } |
1bd55598 RD |
28976 | if (!argp7) { |
28977 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 28978 | } |
1bd55598 RD |
28979 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
28980 | } | |
28981 | if (obj7) { | |
7e08d4ef | 28982 | { |
1bd55598 RD |
28983 | arg8 = wxString_in_helper(obj7); |
28984 | if (arg8 == NULL) SWIG_fail; | |
28985 | temp8 = true; | |
7e08d4ef | 28986 | } |
1bd55598 RD |
28987 | } |
28988 | { | |
28989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28990 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
28991 | wxPyEndAllowThreads(__tstate); | |
28992 | if (PyErr_Occurred()) SWIG_fail; | |
28993 | } | |
28994 | { | |
28995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28996 | } | |
28997 | { | |
28998 | if (temp8) | |
28999 | delete arg8; | |
29000 | } | |
29001 | return resultobj; | |
29002 | fail: | |
29003 | { | |
29004 | if (temp8) | |
29005 | delete arg8; | |
29006 | } | |
29007 | return NULL; | |
29008 | } | |
29009 | ||
29010 | ||
29011 | SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29012 | PyObject *resultobj = 0; | |
29013 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29014 | PyObject *arg2 = (PyObject *) 0 ; | |
29015 | PyObject *arg3 = (PyObject *) 0 ; | |
29016 | void *argp1 = 0 ; | |
29017 | int res1 = 0 ; | |
29018 | PyObject * obj0 = 0 ; | |
29019 | PyObject * obj1 = 0 ; | |
29020 | PyObject * obj2 = 0 ; | |
29021 | char * kwnames[] = { | |
29022 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29023 | }; | |
29024 | ||
29025 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29026 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29027 | if (!SWIG_IsOK(res1)) { | |
29028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29029 | } | |
29030 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29031 | arg2 = obj1; | |
29032 | arg3 = obj2; | |
29033 | { | |
29034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29035 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29036 | wxPyEndAllowThreads(__tstate); | |
29037 | if (PyErr_Occurred()) SWIG_fail; | |
29038 | } | |
29039 | resultobj = SWIG_Py_Void(); | |
29040 | return resultobj; | |
29041 | fail: | |
29042 | return NULL; | |
29043 | } | |
29044 | ||
29045 | ||
29046 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29047 | PyObject *resultobj = 0; | |
29048 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29049 | int arg2 ; | |
29050 | wxListItem *result = 0 ; | |
29051 | void *argp1 = 0 ; | |
29052 | int res1 = 0 ; | |
29053 | int val2 ; | |
29054 | int ecode2 = 0 ; | |
29055 | PyObject * obj0 = 0 ; | |
29056 | PyObject * obj1 = 0 ; | |
29057 | char * kwnames[] = { | |
29058 | (char *) "self",(char *) "col", NULL | |
29059 | }; | |
29060 | ||
29061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
29062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29063 | if (!SWIG_IsOK(res1)) { | |
29064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29065 | } | |
29066 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29067 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29068 | if (!SWIG_IsOK(ecode2)) { | |
29069 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'"); | |
29070 | } | |
29071 | arg2 = static_cast< int >(val2); | |
29072 | { | |
29073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29074 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
29075 | wxPyEndAllowThreads(__tstate); | |
29076 | if (PyErr_Occurred()) SWIG_fail; | |
29077 | } | |
29078 | { | |
3ecece7e | 29079 | resultobj = wxPyMake_wxObject(result, 0); |
1bd55598 RD |
29080 | } |
29081 | return resultobj; | |
29082 | fail: | |
29083 | return NULL; | |
29084 | } | |
29085 | ||
29086 | ||
29087 | SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29088 | PyObject *resultobj = 0; | |
29089 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29090 | int arg2 ; | |
29091 | wxListItem *arg3 = 0 ; | |
29092 | bool result; | |
29093 | void *argp1 = 0 ; | |
29094 | int res1 = 0 ; | |
29095 | int val2 ; | |
29096 | int ecode2 = 0 ; | |
29097 | void *argp3 = 0 ; | |
29098 | int res3 = 0 ; | |
29099 | PyObject * obj0 = 0 ; | |
29100 | PyObject * obj1 = 0 ; | |
29101 | PyObject * obj2 = 0 ; | |
29102 | char * kwnames[] = { | |
29103 | (char *) "self",(char *) "col",(char *) "item", NULL | |
29104 | }; | |
29105 | ||
29106 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29107 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29108 | if (!SWIG_IsOK(res1)) { | |
29109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29110 | } | |
29111 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29112 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29113 | if (!SWIG_IsOK(ecode2)) { | |
29114 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'"); | |
29115 | } | |
29116 | arg2 = static_cast< int >(val2); | |
29117 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 ); | |
29118 | if (!SWIG_IsOK(res3)) { | |
29119 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
29120 | } | |
29121 | if (!argp3) { | |
29122 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
29123 | } | |
29124 | arg3 = reinterpret_cast< wxListItem * >(argp3); | |
29125 | { | |
29126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29127 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
29128 | wxPyEndAllowThreads(__tstate); | |
29129 | if (PyErr_Occurred()) SWIG_fail; | |
29130 | } | |
29131 | { | |
29132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29133 | } | |
29134 | return resultobj; | |
29135 | fail: | |
29136 | return NULL; | |
29137 | } | |
29138 | ||
29139 | ||
29140 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29141 | PyObject *resultobj = 0; | |
29142 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29143 | int arg2 ; | |
29144 | int result; | |
29145 | void *argp1 = 0 ; | |
29146 | int res1 = 0 ; | |
29147 | int val2 ; | |
29148 | int ecode2 = 0 ; | |
29149 | PyObject * obj0 = 0 ; | |
29150 | PyObject * obj1 = 0 ; | |
29151 | char * kwnames[] = { | |
29152 | (char *) "self",(char *) "col", NULL | |
29153 | }; | |
29154 | ||
29155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
29156 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29157 | if (!SWIG_IsOK(res1)) { | |
29158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29159 | } | |
29160 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29161 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29162 | if (!SWIG_IsOK(ecode2)) { | |
29163 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'"); | |
29164 | } | |
29165 | arg2 = static_cast< int >(val2); | |
29166 | { | |
29167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29168 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
29169 | wxPyEndAllowThreads(__tstate); | |
29170 | if (PyErr_Occurred()) SWIG_fail; | |
29171 | } | |
29172 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29173 | return resultobj; | |
29174 | fail: | |
29175 | return NULL; | |
29176 | } | |
29177 | ||
29178 | ||
29179 | SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29180 | PyObject *resultobj = 0; | |
29181 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29182 | int arg2 ; | |
29183 | int arg3 ; | |
29184 | bool result; | |
29185 | void *argp1 = 0 ; | |
29186 | int res1 = 0 ; | |
29187 | int val2 ; | |
29188 | int ecode2 = 0 ; | |
29189 | int val3 ; | |
29190 | int ecode3 = 0 ; | |
29191 | PyObject * obj0 = 0 ; | |
29192 | PyObject * obj1 = 0 ; | |
29193 | PyObject * obj2 = 0 ; | |
29194 | char * kwnames[] = { | |
29195 | (char *) "self",(char *) "col",(char *) "width", NULL | |
29196 | }; | |
29197 | ||
29198 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29199 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29200 | if (!SWIG_IsOK(res1)) { | |
29201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29202 | } | |
29203 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29204 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29205 | if (!SWIG_IsOK(ecode2)) { | |
29206 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'"); | |
29207 | } | |
29208 | arg2 = static_cast< int >(val2); | |
29209 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29210 | if (!SWIG_IsOK(ecode3)) { | |
29211 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'"); | |
29212 | } | |
29213 | arg3 = static_cast< int >(val3); | |
29214 | { | |
29215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29216 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
29217 | wxPyEndAllowThreads(__tstate); | |
29218 | if (PyErr_Occurred()) SWIG_fail; | |
29219 | } | |
29220 | { | |
29221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29222 | } | |
29223 | return resultobj; | |
29224 | fail: | |
29225 | return NULL; | |
7e08d4ef RD |
29226 | } |
29227 | ||
29228 | ||
1bd55598 RD |
29229 | SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29230 | PyObject *resultobj = 0; | |
29231 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29232 | int result; | |
29233 | void *argp1 = 0 ; | |
29234 | int res1 = 0 ; | |
29235 | PyObject *swig_obj[1] ; | |
29236 | ||
29237 | if (!args) SWIG_fail; | |
29238 | swig_obj[0] = args; | |
29239 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29240 | if (!SWIG_IsOK(res1)) { | |
29241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29242 | } | |
29243 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29244 | { | |
29245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29246 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
29247 | wxPyEndAllowThreads(__tstate); | |
29248 | if (PyErr_Occurred()) SWIG_fail; | |
29249 | } | |
29250 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29251 | return resultobj; | |
29252 | fail: | |
29253 | return NULL; | |
7e08d4ef RD |
29254 | } |
29255 | ||
29256 | ||
1bd55598 RD |
29257 | SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29258 | PyObject *resultobj = 0; | |
29259 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29260 | wxRect result; | |
29261 | void *argp1 = 0 ; | |
29262 | int res1 = 0 ; | |
29263 | PyObject *swig_obj[1] ; | |
29264 | ||
29265 | if (!args) SWIG_fail; | |
29266 | swig_obj[0] = args; | |
29267 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29268 | if (!SWIG_IsOK(res1)) { | |
29269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29270 | } | |
29271 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29272 | { | |
29273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29274 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
29275 | wxPyEndAllowThreads(__tstate); | |
29276 | if (PyErr_Occurred()) SWIG_fail; | |
29277 | } | |
29278 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
29279 | return resultobj; | |
29280 | fail: | |
29281 | return NULL; | |
7e08d4ef RD |
29282 | } |
29283 | ||
29284 | ||
1bd55598 RD |
29285 | SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29286 | PyObject *resultobj = 0; | |
29287 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29288 | wxTextCtrl *result = 0 ; | |
29289 | void *argp1 = 0 ; | |
29290 | int res1 = 0 ; | |
29291 | PyObject *swig_obj[1] ; | |
29292 | ||
29293 | if (!args) SWIG_fail; | |
29294 | swig_obj[0] = args; | |
29295 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29296 | if (!SWIG_IsOK(res1)) { | |
29297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29298 | } | |
29299 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29300 | { | |
29301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29302 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
29303 | wxPyEndAllowThreads(__tstate); | |
29304 | if (PyErr_Occurred()) SWIG_fail; | |
29305 | } | |
29306 | { | |
29307 | resultobj = wxPyMake_wxObject(result, 0); | |
29308 | } | |
29309 | return resultobj; | |
29310 | fail: | |
29311 | return NULL; | |
29312 | } | |
29313 | ||
29314 | ||
29315 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29316 | PyObject *resultobj = 0; | |
29317 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29318 | long arg2 ; | |
29319 | int arg3 = (int) 0 ; | |
29320 | wxListItem *result = 0 ; | |
29321 | void *argp1 = 0 ; | |
29322 | int res1 = 0 ; | |
29323 | long val2 ; | |
29324 | int ecode2 = 0 ; | |
29325 | int val3 ; | |
29326 | int ecode3 = 0 ; | |
29327 | PyObject * obj0 = 0 ; | |
29328 | PyObject * obj1 = 0 ; | |
29329 | PyObject * obj2 = 0 ; | |
29330 | char * kwnames[] = { | |
29331 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
29332 | }; | |
29333 | ||
29334 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29335 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29336 | if (!SWIG_IsOK(res1)) { | |
29337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29338 | } | |
29339 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29340 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29341 | if (!SWIG_IsOK(ecode2)) { | |
29342 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'"); | |
29343 | } | |
29344 | arg2 = static_cast< long >(val2); | |
29345 | if (obj2) { | |
29346 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29347 | if (!SWIG_IsOK(ecode3)) { | |
29348 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'"); | |
29349 | } | |
29350 | arg3 = static_cast< int >(val3); | |
29351 | } | |
29352 | { | |
29353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29354 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
29355 | wxPyEndAllowThreads(__tstate); | |
29356 | if (PyErr_Occurred()) SWIG_fail; | |
29357 | } | |
29358 | { | |
3ecece7e | 29359 | resultobj = wxPyMake_wxObject(result, 0); |
1bd55598 RD |
29360 | } |
29361 | return resultobj; | |
29362 | fail: | |
29363 | return NULL; | |
29364 | } | |
29365 | ||
29366 | ||
29367 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29368 | PyObject *resultobj = 0; | |
29369 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29370 | wxListItem *arg2 = 0 ; | |
29371 | bool result; | |
29372 | void *argp1 = 0 ; | |
29373 | int res1 = 0 ; | |
29374 | void *argp2 = 0 ; | |
29375 | int res2 = 0 ; | |
29376 | PyObject * obj0 = 0 ; | |
29377 | PyObject * obj1 = 0 ; | |
29378 | char * kwnames[] = { | |
29379 | (char *) "self",(char *) "info", NULL | |
29380 | }; | |
29381 | ||
29382 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
29383 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29384 | if (!SWIG_IsOK(res1)) { | |
29385 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29386 | } | |
29387 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29388 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 ); | |
29389 | if (!SWIG_IsOK(res2)) { | |
29390 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
29391 | } | |
29392 | if (!argp2) { | |
29393 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
29394 | } | |
29395 | arg2 = reinterpret_cast< wxListItem * >(argp2); | |
29396 | { | |
29397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29398 | result = (bool)(arg1)->SetItem(*arg2); | |
29399 | wxPyEndAllowThreads(__tstate); | |
29400 | if (PyErr_Occurred()) SWIG_fail; | |
29401 | } | |
29402 | { | |
29403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29404 | } | |
29405 | return resultobj; | |
29406 | fail: | |
29407 | return NULL; | |
29408 | } | |
29409 | ||
29410 | ||
29411 | SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29412 | PyObject *resultobj = 0; | |
29413 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29414 | long arg2 ; | |
29415 | int arg3 ; | |
29416 | wxString *arg4 = 0 ; | |
29417 | int arg5 = (int) -1 ; | |
29418 | long result; | |
29419 | void *argp1 = 0 ; | |
29420 | int res1 = 0 ; | |
29421 | long val2 ; | |
29422 | int ecode2 = 0 ; | |
29423 | int val3 ; | |
29424 | int ecode3 = 0 ; | |
29425 | bool temp4 = false ; | |
29426 | int val5 ; | |
29427 | int ecode5 = 0 ; | |
29428 | PyObject * obj0 = 0 ; | |
29429 | PyObject * obj1 = 0 ; | |
29430 | PyObject * obj2 = 0 ; | |
29431 | PyObject * obj3 = 0 ; | |
29432 | PyObject * obj4 = 0 ; | |
29433 | char * kwnames[] = { | |
29434 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
29435 | }; | |
29436 | ||
29437 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29439 | if (!SWIG_IsOK(res1)) { | |
29440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29441 | } | |
29442 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29443 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29444 | if (!SWIG_IsOK(ecode2)) { | |
29445 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'"); | |
29446 | } | |
29447 | arg2 = static_cast< long >(val2); | |
29448 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29449 | if (!SWIG_IsOK(ecode3)) { | |
29450 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'"); | |
29451 | } | |
29452 | arg3 = static_cast< int >(val3); | |
29453 | { | |
29454 | arg4 = wxString_in_helper(obj3); | |
29455 | if (arg4 == NULL) SWIG_fail; | |
29456 | temp4 = true; | |
29457 | } | |
29458 | if (obj4) { | |
29459 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
29460 | if (!SWIG_IsOK(ecode5)) { | |
29461 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'"); | |
29462 | } | |
29463 | arg5 = static_cast< int >(val5); | |
29464 | } | |
29465 | { | |
29466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29467 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
29468 | wxPyEndAllowThreads(__tstate); | |
29469 | if (PyErr_Occurred()) SWIG_fail; | |
29470 | } | |
29471 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
29472 | { | |
29473 | if (temp4) | |
29474 | delete arg4; | |
29475 | } | |
29476 | return resultobj; | |
29477 | fail: | |
29478 | { | |
29479 | if (temp4) | |
29480 | delete arg4; | |
29481 | } | |
29482 | return NULL; | |
29483 | } | |
29484 | ||
29485 | ||
29486 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29487 | PyObject *resultobj = 0; | |
29488 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29489 | long arg2 ; | |
29490 | long arg3 ; | |
29491 | int result; | |
29492 | void *argp1 = 0 ; | |
29493 | int res1 = 0 ; | |
29494 | long val2 ; | |
29495 | int ecode2 = 0 ; | |
29496 | long val3 ; | |
29497 | int ecode3 = 0 ; | |
29498 | PyObject * obj0 = 0 ; | |
29499 | PyObject * obj1 = 0 ; | |
29500 | PyObject * obj2 = 0 ; | |
29501 | char * kwnames[] = { | |
29502 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
29503 | }; | |
29504 | ||
29505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29507 | if (!SWIG_IsOK(res1)) { | |
29508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29509 | } | |
29510 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29511 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29512 | if (!SWIG_IsOK(ecode2)) { | |
29513 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'"); | |
29514 | } | |
29515 | arg2 = static_cast< long >(val2); | |
29516 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29517 | if (!SWIG_IsOK(ecode3)) { | |
29518 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'"); | |
29519 | } | |
29520 | arg3 = static_cast< long >(val3); | |
29521 | { | |
29522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29523 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
29524 | wxPyEndAllowThreads(__tstate); | |
29525 | if (PyErr_Occurred()) SWIG_fail; | |
29526 | } | |
29527 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29528 | return resultobj; | |
29529 | fail: | |
29530 | return NULL; | |
29531 | } | |
29532 | ||
29533 | ||
29534 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29535 | PyObject *resultobj = 0; | |
29536 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29537 | long arg2 ; | |
29538 | long arg3 ; | |
29539 | long arg4 ; | |
29540 | bool result; | |
29541 | void *argp1 = 0 ; | |
29542 | int res1 = 0 ; | |
29543 | long val2 ; | |
29544 | int ecode2 = 0 ; | |
29545 | long val3 ; | |
29546 | int ecode3 = 0 ; | |
29547 | long val4 ; | |
29548 | int ecode4 = 0 ; | |
29549 | PyObject * obj0 = 0 ; | |
29550 | PyObject * obj1 = 0 ; | |
29551 | PyObject * obj2 = 0 ; | |
29552 | PyObject * obj3 = 0 ; | |
29553 | char * kwnames[] = { | |
29554 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
29555 | }; | |
29556 | ||
29557 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29558 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29559 | if (!SWIG_IsOK(res1)) { | |
29560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29561 | } | |
29562 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29563 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29564 | if (!SWIG_IsOK(ecode2)) { | |
29565 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'"); | |
29566 | } | |
29567 | arg2 = static_cast< long >(val2); | |
29568 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29569 | if (!SWIG_IsOK(ecode3)) { | |
29570 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'"); | |
29571 | } | |
29572 | arg3 = static_cast< long >(val3); | |
29573 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
29574 | if (!SWIG_IsOK(ecode4)) { | |
29575 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'"); | |
29576 | } | |
29577 | arg4 = static_cast< long >(val4); | |
29578 | { | |
29579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29580 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
29581 | wxPyEndAllowThreads(__tstate); | |
29582 | if (PyErr_Occurred()) SWIG_fail; | |
29583 | } | |
29584 | { | |
29585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29586 | } | |
29587 | return resultobj; | |
29588 | fail: | |
29589 | return NULL; | |
29590 | } | |
29591 | ||
29592 | ||
29593 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29594 | PyObject *resultobj = 0; | |
29595 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29596 | long arg2 ; | |
29597 | int arg3 ; | |
29598 | int arg4 = (int) -1 ; | |
29599 | bool result; | |
29600 | void *argp1 = 0 ; | |
29601 | int res1 = 0 ; | |
29602 | long val2 ; | |
29603 | int ecode2 = 0 ; | |
29604 | int val3 ; | |
29605 | int ecode3 = 0 ; | |
29606 | int val4 ; | |
29607 | int ecode4 = 0 ; | |
29608 | PyObject * obj0 = 0 ; | |
29609 | PyObject * obj1 = 0 ; | |
29610 | PyObject * obj2 = 0 ; | |
29611 | PyObject * obj3 = 0 ; | |
29612 | char * kwnames[] = { | |
29613 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
29614 | }; | |
29615 | ||
29616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29618 | if (!SWIG_IsOK(res1)) { | |
29619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29620 | } | |
29621 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29622 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29623 | if (!SWIG_IsOK(ecode2)) { | |
29624 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'"); | |
29625 | } | |
29626 | arg2 = static_cast< long >(val2); | |
29627 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29628 | if (!SWIG_IsOK(ecode3)) { | |
29629 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'"); | |
29630 | } | |
29631 | arg3 = static_cast< int >(val3); | |
29632 | if (obj3) { | |
29633 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29634 | if (!SWIG_IsOK(ecode4)) { | |
29635 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'"); | |
29636 | } | |
29637 | arg4 = static_cast< int >(val4); | |
29638 | } | |
29639 | { | |
29640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29641 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
29642 | wxPyEndAllowThreads(__tstate); | |
29643 | if (PyErr_Occurred()) SWIG_fail; | |
29644 | } | |
29645 | { | |
29646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29647 | } | |
29648 | return resultobj; | |
29649 | fail: | |
29650 | return NULL; | |
29651 | } | |
29652 | ||
29653 | ||
29654 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29655 | PyObject *resultobj = 0; | |
29656 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29657 | long arg2 ; | |
29658 | long arg3 ; | |
29659 | int arg4 ; | |
29660 | bool result; | |
29661 | void *argp1 = 0 ; | |
29662 | int res1 = 0 ; | |
29663 | long val2 ; | |
29664 | int ecode2 = 0 ; | |
29665 | long val3 ; | |
29666 | int ecode3 = 0 ; | |
29667 | int val4 ; | |
29668 | int ecode4 = 0 ; | |
29669 | PyObject * obj0 = 0 ; | |
29670 | PyObject * obj1 = 0 ; | |
29671 | PyObject * obj2 = 0 ; | |
29672 | PyObject * obj3 = 0 ; | |
29673 | char * kwnames[] = { | |
29674 | (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL | |
29675 | }; | |
29676 | ||
29677 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29678 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29679 | if (!SWIG_IsOK(res1)) { | |
29680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29681 | } | |
29682 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29683 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29684 | if (!SWIG_IsOK(ecode2)) { | |
29685 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'"); | |
29686 | } | |
29687 | arg2 = static_cast< long >(val2); | |
29688 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29689 | if (!SWIG_IsOK(ecode3)) { | |
29690 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'"); | |
29691 | } | |
29692 | arg3 = static_cast< long >(val3); | |
29693 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29694 | if (!SWIG_IsOK(ecode4)) { | |
29695 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'"); | |
29696 | } | |
29697 | arg4 = static_cast< int >(val4); | |
29698 | { | |
29699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29700 | result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4); | |
29701 | wxPyEndAllowThreads(__tstate); | |
29702 | if (PyErr_Occurred()) SWIG_fail; | |
29703 | } | |
29704 | { | |
29705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29706 | } | |
29707 | return resultobj; | |
29708 | fail: | |
29709 | return NULL; | |
29710 | } | |
29711 | ||
29712 | ||
29713 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29714 | PyObject *resultobj = 0; | |
29715 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29716 | long arg2 ; | |
29717 | wxString result; | |
29718 | void *argp1 = 0 ; | |
29719 | int res1 = 0 ; | |
29720 | long val2 ; | |
29721 | int ecode2 = 0 ; | |
29722 | PyObject * obj0 = 0 ; | |
29723 | PyObject * obj1 = 0 ; | |
29724 | char * kwnames[] = { | |
29725 | (char *) "self",(char *) "item", NULL | |
29726 | }; | |
29727 | ||
29728 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail; | |
29729 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29730 | if (!SWIG_IsOK(res1)) { | |
29731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29732 | } | |
29733 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29734 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29735 | if (!SWIG_IsOK(ecode2)) { | |
29736 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'"); | |
29737 | } | |
29738 | arg2 = static_cast< long >(val2); | |
29739 | { | |
29740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29741 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
29742 | wxPyEndAllowThreads(__tstate); | |
29743 | if (PyErr_Occurred()) SWIG_fail; | |
29744 | } | |
29745 | { | |
29746 | #if wxUSE_UNICODE | |
29747 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29748 | #else | |
29749 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29750 | #endif | |
29751 | } | |
29752 | return resultobj; | |
29753 | fail: | |
29754 | return NULL; | |
29755 | } | |
29756 | ||
29757 | ||
29758 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29759 | PyObject *resultobj = 0; | |
29760 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29761 | long arg2 ; | |
29762 | wxString *arg3 = 0 ; | |
29763 | void *argp1 = 0 ; | |
29764 | int res1 = 0 ; | |
29765 | long val2 ; | |
29766 | int ecode2 = 0 ; | |
29767 | bool temp3 = false ; | |
29768 | PyObject * obj0 = 0 ; | |
29769 | PyObject * obj1 = 0 ; | |
29770 | PyObject * obj2 = 0 ; | |
29771 | char * kwnames[] = { | |
29772 | (char *) "self",(char *) "item",(char *) "str", NULL | |
29773 | }; | |
29774 | ||
29775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29776 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29777 | if (!SWIG_IsOK(res1)) { | |
29778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29779 | } | |
29780 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29781 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29782 | if (!SWIG_IsOK(ecode2)) { | |
29783 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'"); | |
29784 | } | |
29785 | arg2 = static_cast< long >(val2); | |
29786 | { | |
29787 | arg3 = wxString_in_helper(obj2); | |
29788 | if (arg3 == NULL) SWIG_fail; | |
29789 | temp3 = true; | |
29790 | } | |
29791 | { | |
29792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29793 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
29794 | wxPyEndAllowThreads(__tstate); | |
29795 | if (PyErr_Occurred()) SWIG_fail; | |
29796 | } | |
29797 | resultobj = SWIG_Py_Void(); | |
29798 | { | |
29799 | if (temp3) | |
29800 | delete arg3; | |
29801 | } | |
29802 | return resultobj; | |
29803 | fail: | |
29804 | { | |
29805 | if (temp3) | |
29806 | delete arg3; | |
29807 | } | |
29808 | return NULL; | |
29809 | } | |
29810 | ||
29811 | ||
29812 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29813 | PyObject *resultobj = 0; | |
29814 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29815 | long arg2 ; | |
29816 | long result; | |
29817 | void *argp1 = 0 ; | |
29818 | int res1 = 0 ; | |
29819 | long val2 ; | |
29820 | int ecode2 = 0 ; | |
29821 | PyObject * obj0 = 0 ; | |
29822 | PyObject * obj1 = 0 ; | |
29823 | char * kwnames[] = { | |
29824 | (char *) "self",(char *) "item", NULL | |
29825 | }; | |
29826 | ||
29827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail; | |
29828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29829 | if (!SWIG_IsOK(res1)) { | |
29830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29831 | } | |
29832 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29833 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29834 | if (!SWIG_IsOK(ecode2)) { | |
29835 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'"); | |
29836 | } | |
29837 | arg2 = static_cast< long >(val2); | |
29838 | { | |
29839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29840 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
29841 | wxPyEndAllowThreads(__tstate); | |
29842 | if (PyErr_Occurred()) SWIG_fail; | |
29843 | } | |
29844 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
29845 | return resultobj; | |
29846 | fail: | |
29847 | return NULL; | |
29848 | } | |
29849 | ||
29850 | ||
29851 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29852 | PyObject *resultobj = 0; | |
29853 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29854 | long arg2 ; | |
29855 | long arg3 ; | |
29856 | bool result; | |
29857 | void *argp1 = 0 ; | |
29858 | int res1 = 0 ; | |
29859 | long val2 ; | |
29860 | int ecode2 = 0 ; | |
29861 | long val3 ; | |
29862 | int ecode3 = 0 ; | |
29863 | PyObject * obj0 = 0 ; | |
29864 | PyObject * obj1 = 0 ; | |
29865 | PyObject * obj2 = 0 ; | |
29866 | char * kwnames[] = { | |
29867 | (char *) "self",(char *) "item",(char *) "data", NULL | |
29868 | }; | |
29869 | ||
29870 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29871 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29872 | if (!SWIG_IsOK(res1)) { | |
29873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29874 | } | |
29875 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29876 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29877 | if (!SWIG_IsOK(ecode2)) { | |
29878 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'"); | |
29879 | } | |
29880 | arg2 = static_cast< long >(val2); | |
29881 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29882 | if (!SWIG_IsOK(ecode3)) { | |
29883 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'"); | |
29884 | } | |
29885 | arg3 = static_cast< long >(val3); | |
29886 | { | |
29887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29888 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
29889 | wxPyEndAllowThreads(__tstate); | |
29890 | if (PyErr_Occurred()) SWIG_fail; | |
29891 | } | |
29892 | { | |
29893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29894 | } | |
29895 | return resultobj; | |
29896 | fail: | |
29897 | return NULL; | |
29898 | } | |
29899 | ||
29900 | ||
29901 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29902 | PyObject *resultobj = 0; | |
29903 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29904 | long arg2 ; | |
29905 | wxPoint result; | |
29906 | void *argp1 = 0 ; | |
29907 | int res1 = 0 ; | |
29908 | long val2 ; | |
29909 | int ecode2 = 0 ; | |
29910 | PyObject * obj0 = 0 ; | |
29911 | PyObject * obj1 = 0 ; | |
29912 | char * kwnames[] = { | |
29913 | (char *) "self",(char *) "item", NULL | |
29914 | }; | |
29915 | ||
29916 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
29917 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29918 | if (!SWIG_IsOK(res1)) { | |
29919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29920 | } | |
29921 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29922 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29923 | if (!SWIG_IsOK(ecode2)) { | |
29924 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'"); | |
29925 | } | |
29926 | arg2 = static_cast< long >(val2); | |
29927 | { | |
29928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29929 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
29930 | wxPyEndAllowThreads(__tstate); | |
29931 | if (PyErr_Occurred()) SWIG_fail; | |
29932 | } | |
29933 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
29934 | return resultobj; | |
29935 | fail: | |
29936 | return NULL; | |
29937 | } | |
29938 | ||
29939 | ||
29940 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29941 | PyObject *resultobj = 0; | |
29942 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29943 | long arg2 ; | |
29944 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
29945 | wxRect result; | |
29946 | void *argp1 = 0 ; | |
29947 | int res1 = 0 ; | |
29948 | long val2 ; | |
29949 | int ecode2 = 0 ; | |
29950 | int val3 ; | |
29951 | int ecode3 = 0 ; | |
29952 | PyObject * obj0 = 0 ; | |
29953 | PyObject * obj1 = 0 ; | |
29954 | PyObject * obj2 = 0 ; | |
29955 | char * kwnames[] = { | |
29956 | (char *) "self",(char *) "item",(char *) "code", NULL | |
29957 | }; | |
29958 | ||
29959 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29960 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29961 | if (!SWIG_IsOK(res1)) { | |
29962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29963 | } | |
29964 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29965 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29966 | if (!SWIG_IsOK(ecode2)) { | |
29967 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'"); | |
29968 | } | |
29969 | arg2 = static_cast< long >(val2); | |
29970 | if (obj2) { | |
29971 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29972 | if (!SWIG_IsOK(ecode3)) { | |
29973 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'"); | |
29974 | } | |
29975 | arg3 = static_cast< int >(val3); | |
29976 | } | |
29977 | { | |
29978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29979 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
29980 | wxPyEndAllowThreads(__tstate); | |
29981 | if (PyErr_Occurred()) SWIG_fail; | |
29982 | } | |
29983 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
29984 | return resultobj; | |
29985 | fail: | |
29986 | return NULL; | |
29987 | } | |
29988 | ||
29989 | ||
29990 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29991 | PyObject *resultobj = 0; | |
29992 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29993 | long arg2 ; | |
29994 | wxPoint *arg3 = 0 ; | |
29995 | bool result; | |
29996 | void *argp1 = 0 ; | |
29997 | int res1 = 0 ; | |
29998 | long val2 ; | |
29999 | int ecode2 = 0 ; | |
30000 | wxPoint temp3 ; | |
30001 | PyObject * obj0 = 0 ; | |
30002 | PyObject * obj1 = 0 ; | |
30003 | PyObject * obj2 = 0 ; | |
30004 | char * kwnames[] = { | |
30005 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
30006 | }; | |
30007 | ||
30008 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30009 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30010 | if (!SWIG_IsOK(res1)) { | |
30011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30012 | } | |
30013 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30014 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30015 | if (!SWIG_IsOK(ecode2)) { | |
30016 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'"); | |
30017 | } | |
30018 | arg2 = static_cast< long >(val2); | |
30019 | { | |
30020 | arg3 = &temp3; | |
30021 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30022 | } | |
30023 | { | |
30024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30025 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
30026 | wxPyEndAllowThreads(__tstate); | |
30027 | if (PyErr_Occurred()) SWIG_fail; | |
30028 | } | |
30029 | { | |
30030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30031 | } | |
30032 | return resultobj; | |
30033 | fail: | |
30034 | return NULL; | |
7e08d4ef RD |
30035 | } |
30036 | ||
30037 | ||
1bd55598 RD |
30038 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30039 | PyObject *resultobj = 0; | |
30040 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30041 | int result; | |
30042 | void *argp1 = 0 ; | |
30043 | int res1 = 0 ; | |
30044 | PyObject *swig_obj[1] ; | |
30045 | ||
30046 | if (!args) SWIG_fail; | |
30047 | swig_obj[0] = args; | |
30048 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30049 | if (!SWIG_IsOK(res1)) { | |
30050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30051 | } | |
30052 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30053 | { | |
30054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30055 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
30056 | wxPyEndAllowThreads(__tstate); | |
30057 | if (PyErr_Occurred()) SWIG_fail; | |
30058 | } | |
30059 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30060 | return resultobj; | |
30061 | fail: | |
30062 | return NULL; | |
7e08d4ef RD |
30063 | } |
30064 | ||
30065 | ||
1bd55598 RD |
30066 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30067 | PyObject *resultobj = 0; | |
30068 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30069 | int result; | |
30070 | void *argp1 = 0 ; | |
30071 | int res1 = 0 ; | |
30072 | PyObject *swig_obj[1] ; | |
30073 | ||
30074 | if (!args) SWIG_fail; | |
30075 | swig_obj[0] = args; | |
30076 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30077 | if (!SWIG_IsOK(res1)) { | |
30078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30079 | } | |
30080 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30081 | { | |
30082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30083 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
30084 | wxPyEndAllowThreads(__tstate); | |
30085 | if (PyErr_Occurred()) SWIG_fail; | |
30086 | } | |
30087 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30088 | return resultobj; | |
30089 | fail: | |
30090 | return NULL; | |
7e08d4ef RD |
30091 | } |
30092 | ||
30093 | ||
1bd55598 RD |
30094 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30095 | PyObject *resultobj = 0; | |
30096 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30097 | wxSize result; | |
30098 | void *argp1 = 0 ; | |
30099 | int res1 = 0 ; | |
30100 | PyObject *swig_obj[1] ; | |
30101 | ||
30102 | if (!args) SWIG_fail; | |
30103 | swig_obj[0] = args; | |
30104 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30105 | if (!SWIG_IsOK(res1)) { | |
30106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30107 | } | |
30108 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30109 | { | |
30110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30111 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
30112 | wxPyEndAllowThreads(__tstate); | |
30113 | if (PyErr_Occurred()) SWIG_fail; | |
30114 | } | |
30115 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
30116 | return resultobj; | |
30117 | fail: | |
30118 | return NULL; | |
30119 | } | |
30120 | ||
30121 | ||
30122 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30123 | PyObject *resultobj = 0; | |
30124 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30125 | int arg2 ; | |
30126 | bool arg3 = (bool) false ; | |
30127 | void *argp1 = 0 ; | |
30128 | int res1 = 0 ; | |
30129 | int val2 ; | |
30130 | int ecode2 = 0 ; | |
30131 | bool val3 ; | |
30132 | int ecode3 = 0 ; | |
30133 | PyObject * obj0 = 0 ; | |
30134 | PyObject * obj1 = 0 ; | |
30135 | PyObject * obj2 = 0 ; | |
30136 | char * kwnames[] = { | |
30137 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
30138 | }; | |
30139 | ||
30140 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30141 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30142 | if (!SWIG_IsOK(res1)) { | |
30143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30144 | } | |
30145 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30146 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30147 | if (!SWIG_IsOK(ecode2)) { | |
30148 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'"); | |
30149 | } | |
30150 | arg2 = static_cast< int >(val2); | |
30151 | if (obj2) { | |
30152 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
30153 | if (!SWIG_IsOK(ecode3)) { | |
30154 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'"); | |
30155 | } | |
30156 | arg3 = static_cast< bool >(val3); | |
30157 | } | |
30158 | { | |
30159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30160 | (arg1)->SetItemSpacing(arg2,arg3); | |
30161 | wxPyEndAllowThreads(__tstate); | |
30162 | if (PyErr_Occurred()) SWIG_fail; | |
30163 | } | |
30164 | resultobj = SWIG_Py_Void(); | |
30165 | return resultobj; | |
30166 | fail: | |
30167 | return NULL; | |
7e08d4ef RD |
30168 | } |
30169 | ||
30170 | ||
1bd55598 RD |
30171 | SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30172 | PyObject *resultobj = 0; | |
30173 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30174 | int result; | |
30175 | void *argp1 = 0 ; | |
30176 | int res1 = 0 ; | |
30177 | PyObject *swig_obj[1] ; | |
30178 | ||
30179 | if (!args) SWIG_fail; | |
30180 | swig_obj[0] = args; | |
30181 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30182 | if (!SWIG_IsOK(res1)) { | |
30183 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30184 | } | |
30185 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30186 | { | |
30187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30188 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
30189 | wxPyEndAllowThreads(__tstate); | |
30190 | if (PyErr_Occurred()) SWIG_fail; | |
30191 | } | |
30192 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30193 | return resultobj; | |
30194 | fail: | |
30195 | return NULL; | |
7e08d4ef RD |
30196 | } |
30197 | ||
30198 | ||
1bd55598 RD |
30199 | SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30200 | PyObject *resultobj = 0; | |
30201 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30202 | wxColour result; | |
30203 | void *argp1 = 0 ; | |
30204 | int res1 = 0 ; | |
30205 | PyObject *swig_obj[1] ; | |
30206 | ||
30207 | if (!args) SWIG_fail; | |
30208 | swig_obj[0] = args; | |
30209 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30210 | if (!SWIG_IsOK(res1)) { | |
30211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30212 | } | |
30213 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30214 | { | |
30215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30216 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
30217 | wxPyEndAllowThreads(__tstate); | |
30218 | if (PyErr_Occurred()) SWIG_fail; | |
30219 | } | |
30220 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
30221 | return resultobj; | |
30222 | fail: | |
30223 | return NULL; | |
30224 | } | |
30225 | ||
30226 | ||
30227 | SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30228 | PyObject *resultobj = 0; | |
30229 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30230 | wxColour *arg2 = 0 ; | |
30231 | void *argp1 = 0 ; | |
30232 | int res1 = 0 ; | |
30233 | wxColour temp2 ; | |
30234 | PyObject * obj0 = 0 ; | |
30235 | PyObject * obj1 = 0 ; | |
30236 | char * kwnames[] = { | |
30237 | (char *) "self",(char *) "col", NULL | |
30238 | }; | |
30239 | ||
30240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
30241 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30242 | if (!SWIG_IsOK(res1)) { | |
30243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30244 | } | |
30245 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30246 | { | |
30247 | arg2 = &temp2; | |
30248 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
30249 | } | |
30250 | { | |
30251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30252 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
30253 | wxPyEndAllowThreads(__tstate); | |
30254 | if (PyErr_Occurred()) SWIG_fail; | |
30255 | } | |
30256 | resultobj = SWIG_Py_Void(); | |
30257 | return resultobj; | |
30258 | fail: | |
30259 | return NULL; | |
7e08d4ef RD |
30260 | } |
30261 | ||
30262 | ||
1bd55598 RD |
30263 | SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30264 | PyObject *resultobj = 0; | |
30265 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30266 | long result; | |
30267 | void *argp1 = 0 ; | |
30268 | int res1 = 0 ; | |
30269 | PyObject *swig_obj[1] ; | |
30270 | ||
30271 | if (!args) SWIG_fail; | |
30272 | swig_obj[0] = args; | |
30273 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30274 | if (!SWIG_IsOK(res1)) { | |
30275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30276 | } | |
30277 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30278 | { | |
30279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30280 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
30281 | wxPyEndAllowThreads(__tstate); | |
30282 | if (PyErr_Occurred()) SWIG_fail; | |
30283 | } | |
30284 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30285 | return resultobj; | |
30286 | fail: | |
30287 | return NULL; | |
30288 | } | |
30289 | ||
30290 | ||
30291 | SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30292 | PyObject *resultobj = 0; | |
30293 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30294 | long arg2 ; | |
30295 | bool arg3 = (bool) true ; | |
30296 | void *argp1 = 0 ; | |
30297 | int res1 = 0 ; | |
30298 | long val2 ; | |
30299 | int ecode2 = 0 ; | |
30300 | bool val3 ; | |
30301 | int ecode3 = 0 ; | |
30302 | PyObject * obj0 = 0 ; | |
30303 | PyObject * obj1 = 0 ; | |
30304 | PyObject * obj2 = 0 ; | |
30305 | char * kwnames[] = { | |
30306 | (char *) "self",(char *) "style",(char *) "add", NULL | |
30307 | }; | |
30308 | ||
30309 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30310 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30311 | if (!SWIG_IsOK(res1)) { | |
30312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30313 | } | |
30314 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30315 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30316 | if (!SWIG_IsOK(ecode2)) { | |
30317 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'"); | |
30318 | } | |
30319 | arg2 = static_cast< long >(val2); | |
30320 | if (obj2) { | |
30321 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
30322 | if (!SWIG_IsOK(ecode3)) { | |
30323 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'"); | |
30324 | } | |
30325 | arg3 = static_cast< bool >(val3); | |
30326 | } | |
30327 | { | |
30328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30329 | (arg1)->SetSingleStyle(arg2,arg3); | |
30330 | wxPyEndAllowThreads(__tstate); | |
30331 | if (PyErr_Occurred()) SWIG_fail; | |
30332 | } | |
30333 | resultobj = SWIG_Py_Void(); | |
30334 | return resultobj; | |
30335 | fail: | |
30336 | return NULL; | |
30337 | } | |
30338 | ||
30339 | ||
30340 | SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30341 | PyObject *resultobj = 0; | |
30342 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30343 | long arg2 ; | |
30344 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
30345 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
30346 | long result; | |
30347 | void *argp1 = 0 ; | |
30348 | int res1 = 0 ; | |
30349 | long val2 ; | |
30350 | int ecode2 = 0 ; | |
30351 | int val3 ; | |
30352 | int ecode3 = 0 ; | |
30353 | int val4 ; | |
30354 | int ecode4 = 0 ; | |
30355 | PyObject * obj0 = 0 ; | |
30356 | PyObject * obj1 = 0 ; | |
30357 | PyObject * obj2 = 0 ; | |
30358 | PyObject * obj3 = 0 ; | |
30359 | char * kwnames[] = { | |
30360 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
30361 | }; | |
30362 | ||
30363 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30364 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30365 | if (!SWIG_IsOK(res1)) { | |
30366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30367 | } | |
30368 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30369 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30370 | if (!SWIG_IsOK(ecode2)) { | |
30371 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'"); | |
30372 | } | |
30373 | arg2 = static_cast< long >(val2); | |
30374 | if (obj2) { | |
30375 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30376 | if (!SWIG_IsOK(ecode3)) { | |
30377 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'"); | |
30378 | } | |
30379 | arg3 = static_cast< int >(val3); | |
30380 | } | |
30381 | if (obj3) { | |
30382 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30383 | if (!SWIG_IsOK(ecode4)) { | |
30384 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'"); | |
30385 | } | |
30386 | arg4 = static_cast< int >(val4); | |
30387 | } | |
30388 | { | |
30389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30390 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
30391 | wxPyEndAllowThreads(__tstate); | |
30392 | if (PyErr_Occurred()) SWIG_fail; | |
30393 | } | |
30394 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30395 | return resultobj; | |
30396 | fail: | |
30397 | return NULL; | |
30398 | } | |
30399 | ||
30400 | ||
30401 | SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30402 | PyObject *resultobj = 0; | |
30403 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30404 | int arg2 ; | |
30405 | wxImageList *result = 0 ; | |
30406 | void *argp1 = 0 ; | |
30407 | int res1 = 0 ; | |
30408 | int val2 ; | |
30409 | int ecode2 = 0 ; | |
30410 | PyObject * obj0 = 0 ; | |
30411 | PyObject * obj1 = 0 ; | |
30412 | char * kwnames[] = { | |
30413 | (char *) "self",(char *) "which", NULL | |
30414 | }; | |
30415 | ||
30416 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
30417 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30418 | if (!SWIG_IsOK(res1)) { | |
30419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30420 | } | |
30421 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30422 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30423 | if (!SWIG_IsOK(ecode2)) { | |
30424 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'"); | |
30425 | } | |
30426 | arg2 = static_cast< int >(val2); | |
30427 | { | |
30428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30429 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
30430 | wxPyEndAllowThreads(__tstate); | |
30431 | if (PyErr_Occurred()) SWIG_fail; | |
30432 | } | |
3ecece7e RD |
30433 | { |
30434 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
30435 | } | |
1bd55598 RD |
30436 | return resultobj; |
30437 | fail: | |
30438 | return NULL; | |
30439 | } | |
30440 | ||
30441 | ||
30442 | SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30443 | PyObject *resultobj = 0; | |
30444 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30445 | wxImageList *arg2 = (wxImageList *) 0 ; | |
30446 | int arg3 ; | |
30447 | void *argp1 = 0 ; | |
30448 | int res1 = 0 ; | |
30449 | void *argp2 = 0 ; | |
30450 | int res2 = 0 ; | |
30451 | int val3 ; | |
30452 | int ecode3 = 0 ; | |
30453 | PyObject * obj0 = 0 ; | |
30454 | PyObject * obj1 = 0 ; | |
30455 | PyObject * obj2 = 0 ; | |
30456 | char * kwnames[] = { | |
30457 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
30458 | }; | |
30459 | ||
30460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30462 | if (!SWIG_IsOK(res1)) { | |
30463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30464 | } | |
30465 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30466 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30467 | if (!SWIG_IsOK(res2)) { | |
30468 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
30469 | } | |
30470 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
30471 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30472 | if (!SWIG_IsOK(ecode3)) { | |
30473 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'"); | |
30474 | } | |
30475 | arg3 = static_cast< int >(val3); | |
30476 | { | |
30477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30478 | (arg1)->SetImageList(arg2,arg3); | |
30479 | wxPyEndAllowThreads(__tstate); | |
30480 | if (PyErr_Occurred()) SWIG_fail; | |
30481 | } | |
30482 | resultobj = SWIG_Py_Void(); | |
30483 | return resultobj; | |
30484 | fail: | |
30485 | return NULL; | |
30486 | } | |
30487 | ||
30488 | ||
30489 | SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30490 | PyObject *resultobj = 0; | |
30491 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30492 | wxImageList *arg2 = (wxImageList *) 0 ; | |
30493 | int arg3 ; | |
30494 | void *argp1 = 0 ; | |
30495 | int res1 = 0 ; | |
30496 | int res2 = 0 ; | |
30497 | int val3 ; | |
30498 | int ecode3 = 0 ; | |
30499 | PyObject * obj0 = 0 ; | |
30500 | PyObject * obj1 = 0 ; | |
30501 | PyObject * obj2 = 0 ; | |
30502 | char * kwnames[] = { | |
30503 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
30504 | }; | |
30505 | ||
30506 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30507 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30508 | if (!SWIG_IsOK(res1)) { | |
30509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30510 | } | |
30511 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30512 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
30513 | if (!SWIG_IsOK(res2)) { | |
30514 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
30515 | } | |
30516 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30517 | if (!SWIG_IsOK(ecode3)) { | |
30518 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'"); | |
30519 | } | |
30520 | arg3 = static_cast< int >(val3); | |
30521 | { | |
30522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30523 | (arg1)->AssignImageList(arg2,arg3); | |
30524 | wxPyEndAllowThreads(__tstate); | |
30525 | if (PyErr_Occurred()) SWIG_fail; | |
30526 | } | |
30527 | resultobj = SWIG_Py_Void(); | |
30528 | return resultobj; | |
30529 | fail: | |
30530 | return NULL; | |
7e08d4ef RD |
30531 | } |
30532 | ||
30533 | ||
1bd55598 RD |
30534 | SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30535 | PyObject *resultobj = 0; | |
30536 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30537 | bool result; | |
30538 | void *argp1 = 0 ; | |
30539 | int res1 = 0 ; | |
30540 | PyObject *swig_obj[1] ; | |
30541 | ||
30542 | if (!args) SWIG_fail; | |
30543 | swig_obj[0] = args; | |
30544 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30545 | if (!SWIG_IsOK(res1)) { | |
30546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30547 | } | |
30548 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30549 | { | |
30550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30551 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
30552 | wxPyEndAllowThreads(__tstate); | |
30553 | if (PyErr_Occurred()) SWIG_fail; | |
30554 | } | |
30555 | { | |
30556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30557 | } | |
30558 | return resultobj; | |
30559 | fail: | |
30560 | return NULL; | |
44bf767a RD |
30561 | } |
30562 | ||
30563 | ||
1bd55598 RD |
30564 | SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30565 | PyObject *resultobj = 0; | |
30566 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30567 | bool result; | |
30568 | void *argp1 = 0 ; | |
30569 | int res1 = 0 ; | |
30570 | PyObject *swig_obj[1] ; | |
30571 | ||
30572 | if (!args) SWIG_fail; | |
30573 | swig_obj[0] = args; | |
30574 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30575 | if (!SWIG_IsOK(res1)) { | |
30576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30577 | } | |
30578 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30579 | { | |
30580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30581 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
30582 | wxPyEndAllowThreads(__tstate); | |
30583 | if (PyErr_Occurred()) SWIG_fail; | |
30584 | } | |
30585 | { | |
30586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30587 | } | |
30588 | return resultobj; | |
30589 | fail: | |
30590 | return NULL; | |
30591 | } | |
30592 | ||
30593 | ||
30594 | SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30595 | PyObject *resultobj = 0; | |
30596 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30597 | long arg2 ; | |
30598 | void *argp1 = 0 ; | |
30599 | int res1 = 0 ; | |
30600 | long val2 ; | |
30601 | int ecode2 = 0 ; | |
30602 | PyObject * obj0 = 0 ; | |
30603 | PyObject * obj1 = 0 ; | |
30604 | char * kwnames[] = { | |
30605 | (char *) "self",(char *) "item", NULL | |
30606 | }; | |
30607 | ||
30608 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
30609 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30610 | if (!SWIG_IsOK(res1)) { | |
30611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30612 | } | |
30613 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30614 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30615 | if (!SWIG_IsOK(ecode2)) { | |
30616 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'"); | |
30617 | } | |
30618 | arg2 = static_cast< long >(val2); | |
30619 | { | |
30620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30621 | (arg1)->RefreshItem(arg2); | |
30622 | wxPyEndAllowThreads(__tstate); | |
30623 | if (PyErr_Occurred()) SWIG_fail; | |
30624 | } | |
30625 | resultobj = SWIG_Py_Void(); | |
30626 | return resultobj; | |
30627 | fail: | |
30628 | return NULL; | |
30629 | } | |
30630 | ||
30631 | ||
30632 | SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30633 | PyObject *resultobj = 0; | |
30634 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30635 | long arg2 ; | |
30636 | long arg3 ; | |
30637 | void *argp1 = 0 ; | |
30638 | int res1 = 0 ; | |
30639 | long val2 ; | |
30640 | int ecode2 = 0 ; | |
30641 | long val3 ; | |
30642 | int ecode3 = 0 ; | |
30643 | PyObject * obj0 = 0 ; | |
30644 | PyObject * obj1 = 0 ; | |
30645 | PyObject * obj2 = 0 ; | |
30646 | char * kwnames[] = { | |
30647 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
30648 | }; | |
30649 | ||
30650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30652 | if (!SWIG_IsOK(res1)) { | |
30653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30654 | } | |
30655 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30656 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30657 | if (!SWIG_IsOK(ecode2)) { | |
30658 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'"); | |
30659 | } | |
30660 | arg2 = static_cast< long >(val2); | |
30661 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
30662 | if (!SWIG_IsOK(ecode3)) { | |
30663 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'"); | |
30664 | } | |
30665 | arg3 = static_cast< long >(val3); | |
30666 | { | |
30667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30668 | (arg1)->RefreshItems(arg2,arg3); | |
30669 | wxPyEndAllowThreads(__tstate); | |
30670 | if (PyErr_Occurred()) SWIG_fail; | |
30671 | } | |
30672 | resultobj = SWIG_Py_Void(); | |
30673 | return resultobj; | |
30674 | fail: | |
30675 | return NULL; | |
30676 | } | |
30677 | ||
30678 | ||
30679 | SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30680 | PyObject *resultobj = 0; | |
30681 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30682 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
30683 | bool result; | |
30684 | void *argp1 = 0 ; | |
30685 | int res1 = 0 ; | |
30686 | int val2 ; | |
30687 | int ecode2 = 0 ; | |
30688 | PyObject * obj0 = 0 ; | |
30689 | PyObject * obj1 = 0 ; | |
30690 | char * kwnames[] = { | |
30691 | (char *) "self",(char *) "flag", NULL | |
30692 | }; | |
30693 | ||
30694 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail; | |
30695 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30696 | if (!SWIG_IsOK(res1)) { | |
30697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30698 | } | |
30699 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30700 | if (obj1) { | |
30701 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30702 | if (!SWIG_IsOK(ecode2)) { | |
30703 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'"); | |
30704 | } | |
30705 | arg2 = static_cast< int >(val2); | |
30706 | } | |
30707 | { | |
30708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30709 | result = (bool)(arg1)->Arrange(arg2); | |
30710 | wxPyEndAllowThreads(__tstate); | |
30711 | if (PyErr_Occurred()) SWIG_fail; | |
30712 | } | |
30713 | { | |
30714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30715 | } | |
30716 | return resultobj; | |
30717 | fail: | |
30718 | return NULL; | |
30719 | } | |
30720 | ||
30721 | ||
30722 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30723 | PyObject *resultobj = 0; | |
30724 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30725 | long arg2 ; | |
30726 | bool result; | |
30727 | void *argp1 = 0 ; | |
30728 | int res1 = 0 ; | |
30729 | long val2 ; | |
30730 | int ecode2 = 0 ; | |
30731 | PyObject * obj0 = 0 ; | |
30732 | PyObject * obj1 = 0 ; | |
30733 | char * kwnames[] = { | |
30734 | (char *) "self",(char *) "item", NULL | |
30735 | }; | |
30736 | ||
30737 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
30738 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30739 | if (!SWIG_IsOK(res1)) { | |
30740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30741 | } | |
30742 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30743 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30744 | if (!SWIG_IsOK(ecode2)) { | |
30745 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'"); | |
30746 | } | |
30747 | arg2 = static_cast< long >(val2); | |
30748 | { | |
30749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30750 | result = (bool)(arg1)->DeleteItem(arg2); | |
30751 | wxPyEndAllowThreads(__tstate); | |
30752 | if (PyErr_Occurred()) SWIG_fail; | |
30753 | } | |
30754 | { | |
30755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30756 | } | |
30757 | return resultobj; | |
30758 | fail: | |
30759 | return NULL; | |
d55e5bfc RD |
30760 | } |
30761 | ||
30762 | ||
1bd55598 RD |
30763 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30764 | PyObject *resultobj = 0; | |
30765 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30766 | bool result; | |
30767 | void *argp1 = 0 ; | |
30768 | int res1 = 0 ; | |
30769 | PyObject *swig_obj[1] ; | |
30770 | ||
30771 | if (!args) SWIG_fail; | |
30772 | swig_obj[0] = args; | |
30773 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30774 | if (!SWIG_IsOK(res1)) { | |
30775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30776 | } | |
30777 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30778 | { | |
30779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30780 | result = (bool)(arg1)->DeleteAllItems(); | |
30781 | wxPyEndAllowThreads(__tstate); | |
30782 | if (PyErr_Occurred()) SWIG_fail; | |
30783 | } | |
30784 | { | |
30785 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30786 | } | |
30787 | return resultobj; | |
30788 | fail: | |
30789 | return NULL; | |
30790 | } | |
30791 | ||
30792 | ||
30793 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30794 | PyObject *resultobj = 0; | |
30795 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30796 | int arg2 ; | |
30797 | bool result; | |
30798 | void *argp1 = 0 ; | |
30799 | int res1 = 0 ; | |
30800 | int val2 ; | |
30801 | int ecode2 = 0 ; | |
30802 | PyObject * obj0 = 0 ; | |
30803 | PyObject * obj1 = 0 ; | |
30804 | char * kwnames[] = { | |
30805 | (char *) "self",(char *) "col", NULL | |
30806 | }; | |
30807 | ||
30808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
30809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30810 | if (!SWIG_IsOK(res1)) { | |
30811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30812 | } | |
30813 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30814 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30815 | if (!SWIG_IsOK(ecode2)) { | |
30816 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'"); | |
30817 | } | |
30818 | arg2 = static_cast< int >(val2); | |
30819 | { | |
30820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30821 | result = (bool)(arg1)->DeleteColumn(arg2); | |
30822 | wxPyEndAllowThreads(__tstate); | |
30823 | if (PyErr_Occurred()) SWIG_fail; | |
30824 | } | |
30825 | { | |
30826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30827 | } | |
30828 | return resultobj; | |
30829 | fail: | |
30830 | return NULL; | |
b411df4a RD |
30831 | } |
30832 | ||
30833 | ||
1bd55598 RD |
30834 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30835 | PyObject *resultobj = 0; | |
30836 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30837 | bool result; | |
30838 | void *argp1 = 0 ; | |
30839 | int res1 = 0 ; | |
30840 | PyObject *swig_obj[1] ; | |
30841 | ||
30842 | if (!args) SWIG_fail; | |
30843 | swig_obj[0] = args; | |
30844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30845 | if (!SWIG_IsOK(res1)) { | |
30846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30847 | } | |
30848 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30849 | { | |
30850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30851 | result = (bool)(arg1)->DeleteAllColumns(); | |
30852 | wxPyEndAllowThreads(__tstate); | |
30853 | if (PyErr_Occurred()) SWIG_fail; | |
30854 | } | |
30855 | { | |
30856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30857 | } | |
30858 | return resultobj; | |
30859 | fail: | |
30860 | return NULL; | |
b411df4a RD |
30861 | } |
30862 | ||
30863 | ||
1bd55598 RD |
30864 | SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30865 | PyObject *resultobj = 0; | |
30866 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30867 | void *argp1 = 0 ; | |
30868 | int res1 = 0 ; | |
30869 | PyObject *swig_obj[1] ; | |
30870 | ||
30871 | if (!args) SWIG_fail; | |
30872 | swig_obj[0] = args; | |
30873 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30874 | if (!SWIG_IsOK(res1)) { | |
30875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30876 | } | |
30877 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30878 | { | |
30879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30880 | (arg1)->ClearAll(); | |
30881 | wxPyEndAllowThreads(__tstate); | |
30882 | if (PyErr_Occurred()) SWIG_fail; | |
30883 | } | |
30884 | resultobj = SWIG_Py_Void(); | |
30885 | return resultobj; | |
30886 | fail: | |
30887 | return NULL; | |
30888 | } | |
30889 | ||
30890 | ||
30891 | SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30892 | PyObject *resultobj = 0; | |
30893 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30894 | long arg2 ; | |
30895 | void *argp1 = 0 ; | |
30896 | int res1 = 0 ; | |
30897 | long val2 ; | |
30898 | int ecode2 = 0 ; | |
30899 | PyObject * obj0 = 0 ; | |
30900 | PyObject * obj1 = 0 ; | |
30901 | char * kwnames[] = { | |
30902 | (char *) "self",(char *) "item", NULL | |
30903 | }; | |
30904 | ||
30905 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
30906 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30907 | if (!SWIG_IsOK(res1)) { | |
30908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30909 | } | |
30910 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30911 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30912 | if (!SWIG_IsOK(ecode2)) { | |
30913 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'"); | |
30914 | } | |
30915 | arg2 = static_cast< long >(val2); | |
30916 | { | |
30917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30918 | (arg1)->EditLabel(arg2); | |
30919 | wxPyEndAllowThreads(__tstate); | |
30920 | if (PyErr_Occurred()) SWIG_fail; | |
30921 | } | |
30922 | resultobj = SWIG_Py_Void(); | |
30923 | return resultobj; | |
30924 | fail: | |
30925 | return NULL; | |
30926 | } | |
30927 | ||
30928 | ||
30929 | SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30930 | PyObject *resultobj = 0; | |
30931 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30932 | long arg2 ; | |
30933 | bool result; | |
30934 | void *argp1 = 0 ; | |
30935 | int res1 = 0 ; | |
30936 | long val2 ; | |
30937 | int ecode2 = 0 ; | |
30938 | PyObject * obj0 = 0 ; | |
30939 | PyObject * obj1 = 0 ; | |
30940 | char * kwnames[] = { | |
30941 | (char *) "self",(char *) "item", NULL | |
30942 | }; | |
30943 | ||
30944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
30945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30946 | if (!SWIG_IsOK(res1)) { | |
30947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30948 | } | |
30949 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30950 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30951 | if (!SWIG_IsOK(ecode2)) { | |
30952 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'"); | |
30953 | } | |
30954 | arg2 = static_cast< long >(val2); | |
30955 | { | |
30956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30957 | result = (bool)(arg1)->EnsureVisible(arg2); | |
30958 | wxPyEndAllowThreads(__tstate); | |
30959 | if (PyErr_Occurred()) SWIG_fail; | |
30960 | } | |
30961 | { | |
30962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30963 | } | |
30964 | return resultobj; | |
30965 | fail: | |
30966 | return NULL; | |
30967 | } | |
30968 | ||
30969 | ||
30970 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30971 | PyObject *resultobj = 0; | |
30972 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30973 | long arg2 ; | |
30974 | wxString *arg3 = 0 ; | |
30975 | bool arg4 = (bool) false ; | |
30976 | long result; | |
30977 | void *argp1 = 0 ; | |
30978 | int res1 = 0 ; | |
30979 | long val2 ; | |
30980 | int ecode2 = 0 ; | |
30981 | bool temp3 = false ; | |
30982 | bool val4 ; | |
30983 | int ecode4 = 0 ; | |
30984 | PyObject * obj0 = 0 ; | |
30985 | PyObject * obj1 = 0 ; | |
30986 | PyObject * obj2 = 0 ; | |
30987 | PyObject * obj3 = 0 ; | |
30988 | char * kwnames[] = { | |
30989 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
30990 | }; | |
30991 | ||
30992 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30993 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30994 | if (!SWIG_IsOK(res1)) { | |
30995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30996 | } | |
30997 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30998 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30999 | if (!SWIG_IsOK(ecode2)) { | |
31000 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'"); | |
31001 | } | |
31002 | arg2 = static_cast< long >(val2); | |
31003 | { | |
31004 | arg3 = wxString_in_helper(obj2); | |
31005 | if (arg3 == NULL) SWIG_fail; | |
31006 | temp3 = true; | |
31007 | } | |
31008 | if (obj3) { | |
31009 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
31010 | if (!SWIG_IsOK(ecode4)) { | |
31011 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'"); | |
31012 | } | |
31013 | arg4 = static_cast< bool >(val4); | |
31014 | } | |
31015 | { | |
31016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31017 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
31018 | wxPyEndAllowThreads(__tstate); | |
31019 | if (PyErr_Occurred()) SWIG_fail; | |
31020 | } | |
31021 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31022 | { | |
31023 | if (temp3) | |
31024 | delete arg3; | |
31025 | } | |
31026 | return resultobj; | |
31027 | fail: | |
31028 | { | |
31029 | if (temp3) | |
31030 | delete arg3; | |
31031 | } | |
31032 | return NULL; | |
31033 | } | |
31034 | ||
31035 | ||
31036 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31037 | PyObject *resultobj = 0; | |
31038 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31039 | long arg2 ; | |
31040 | long arg3 ; | |
31041 | long result; | |
31042 | void *argp1 = 0 ; | |
31043 | int res1 = 0 ; | |
31044 | long val2 ; | |
31045 | int ecode2 = 0 ; | |
31046 | long val3 ; | |
31047 | int ecode3 = 0 ; | |
31048 | PyObject * obj0 = 0 ; | |
31049 | PyObject * obj1 = 0 ; | |
31050 | PyObject * obj2 = 0 ; | |
31051 | char * kwnames[] = { | |
31052 | (char *) "self",(char *) "start",(char *) "data", NULL | |
31053 | }; | |
31054 | ||
31055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31057 | if (!SWIG_IsOK(res1)) { | |
31058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31059 | } | |
31060 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31061 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31062 | if (!SWIG_IsOK(ecode2)) { | |
31063 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'"); | |
31064 | } | |
31065 | arg2 = static_cast< long >(val2); | |
31066 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
31067 | if (!SWIG_IsOK(ecode3)) { | |
31068 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'"); | |
31069 | } | |
31070 | arg3 = static_cast< long >(val3); | |
31071 | { | |
31072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31073 | result = (long)(arg1)->FindItem(arg2,arg3); | |
31074 | wxPyEndAllowThreads(__tstate); | |
31075 | if (PyErr_Occurred()) SWIG_fail; | |
31076 | } | |
31077 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31078 | return resultobj; | |
31079 | fail: | |
31080 | return NULL; | |
31081 | } | |
31082 | ||
31083 | ||
31084 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31085 | PyObject *resultobj = 0; | |
31086 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31087 | long arg2 ; | |
31088 | wxPoint *arg3 = 0 ; | |
31089 | int arg4 ; | |
31090 | long result; | |
31091 | void *argp1 = 0 ; | |
31092 | int res1 = 0 ; | |
31093 | long val2 ; | |
31094 | int ecode2 = 0 ; | |
31095 | wxPoint temp3 ; | |
31096 | int val4 ; | |
31097 | int ecode4 = 0 ; | |
31098 | PyObject * obj0 = 0 ; | |
31099 | PyObject * obj1 = 0 ; | |
31100 | PyObject * obj2 = 0 ; | |
31101 | PyObject * obj3 = 0 ; | |
31102 | char * kwnames[] = { | |
31103 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
31104 | }; | |
31105 | ||
31106 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31107 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31108 | if (!SWIG_IsOK(res1)) { | |
31109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31110 | } | |
31111 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31112 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31113 | if (!SWIG_IsOK(ecode2)) { | |
31114 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'"); | |
31115 | } | |
31116 | arg2 = static_cast< long >(val2); | |
31117 | { | |
31118 | arg3 = &temp3; | |
31119 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31120 | } | |
31121 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31122 | if (!SWIG_IsOK(ecode4)) { | |
31123 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'"); | |
31124 | } | |
31125 | arg4 = static_cast< int >(val4); | |
31126 | { | |
31127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31128 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
31129 | wxPyEndAllowThreads(__tstate); | |
31130 | if (PyErr_Occurred()) SWIG_fail; | |
31131 | } | |
31132 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31133 | return resultobj; | |
31134 | fail: | |
31135 | return NULL; | |
31136 | } | |
31137 | ||
31138 | ||
31139 | SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31140 | PyObject *resultobj = 0; | |
31141 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31142 | wxPoint *arg2 = 0 ; | |
31143 | int *arg3 = 0 ; | |
31144 | long result; | |
31145 | void *argp1 = 0 ; | |
31146 | int res1 = 0 ; | |
31147 | wxPoint temp2 ; | |
31148 | int temp3 ; | |
31149 | int res3 = SWIG_TMPOBJ ; | |
31150 | PyObject * obj0 = 0 ; | |
31151 | PyObject * obj1 = 0 ; | |
31152 | char * kwnames[] = { | |
31153 | (char *) "self",(char *) "point", NULL | |
31154 | }; | |
31155 | ||
31156 | arg3 = &temp3; | |
31157 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
31158 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31159 | if (!SWIG_IsOK(res1)) { | |
31160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31161 | } | |
31162 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31163 | { | |
31164 | arg2 = &temp2; | |
31165 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31166 | } | |
31167 | { | |
31168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31169 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
31170 | wxPyEndAllowThreads(__tstate); | |
31171 | if (PyErr_Occurred()) SWIG_fail; | |
31172 | } | |
31173 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31174 | if (SWIG_IsTmpObj(res3)) { | |
31175 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
31176 | } else { | |
31177 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31178 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
31179 | } | |
31180 | return resultobj; | |
31181 | fail: | |
31182 | return NULL; | |
31183 | } | |
31184 | ||
31185 | ||
704eda0c RD |
31186 | SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31187 | PyObject *resultobj = 0; | |
31188 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31189 | wxPoint *arg2 = 0 ; | |
31190 | int *arg3 = 0 ; | |
31191 | long *arg4 = (long *) 0 ; | |
31192 | long result; | |
31193 | void *argp1 = 0 ; | |
31194 | int res1 = 0 ; | |
31195 | wxPoint temp2 ; | |
31196 | int temp3 ; | |
31197 | int res3 = SWIG_TMPOBJ ; | |
31198 | long temp4 ; | |
31199 | int res4 = SWIG_TMPOBJ ; | |
31200 | PyObject * obj0 = 0 ; | |
31201 | PyObject * obj1 = 0 ; | |
31202 | char * kwnames[] = { | |
31203 | (char *) "self",(char *) "point", NULL | |
31204 | }; | |
31205 | ||
31206 | arg3 = &temp3; | |
31207 | arg4 = &temp4; | |
31208 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
31209 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31210 | if (!SWIG_IsOK(res1)) { | |
31211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31212 | } | |
31213 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31214 | { | |
31215 | arg2 = &temp2; | |
31216 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31217 | } | |
31218 | { | |
31219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31220 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4); | |
31221 | wxPyEndAllowThreads(__tstate); | |
31222 | if (PyErr_Occurred()) SWIG_fail; | |
31223 | } | |
31224 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31225 | if (SWIG_IsTmpObj(res3)) { | |
31226 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
31227 | } else { | |
31228 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31229 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
31230 | } | |
31231 | if (SWIG_IsTmpObj(res4)) { | |
31232 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
31233 | } else { | |
31234 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31235 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
31236 | } | |
31237 | return resultobj; | |
31238 | fail: | |
31239 | return NULL; | |
31240 | } | |
31241 | ||
31242 | ||
1bd55598 RD |
31243 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31244 | PyObject *resultobj = 0; | |
31245 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31246 | wxListItem *arg2 = 0 ; | |
31247 | long result; | |
31248 | void *argp1 = 0 ; | |
31249 | int res1 = 0 ; | |
31250 | void *argp2 = 0 ; | |
31251 | int res2 = 0 ; | |
31252 | PyObject * obj0 = 0 ; | |
31253 | PyObject * obj1 = 0 ; | |
31254 | char * kwnames[] = { | |
31255 | (char *) "self",(char *) "info", NULL | |
31256 | }; | |
31257 | ||
31258 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
31259 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31260 | if (!SWIG_IsOK(res1)) { | |
31261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31262 | } | |
31263 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31264 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 ); | |
31265 | if (!SWIG_IsOK(res2)) { | |
31266 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
31267 | } | |
31268 | if (!argp2) { | |
31269 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
31270 | } | |
31271 | arg2 = reinterpret_cast< wxListItem * >(argp2); | |
31272 | { | |
31273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31274 | result = (long)(arg1)->InsertItem(*arg2); | |
31275 | wxPyEndAllowThreads(__tstate); | |
31276 | if (PyErr_Occurred()) SWIG_fail; | |
31277 | } | |
31278 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31279 | return resultobj; | |
31280 | fail: | |
31281 | return NULL; | |
31282 | } | |
31283 | ||
31284 | ||
31285 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31286 | PyObject *resultobj = 0; | |
31287 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31288 | long arg2 ; | |
31289 | wxString *arg3 = 0 ; | |
31290 | int arg4 = (int) -1 ; | |
31291 | long result; | |
31292 | void *argp1 = 0 ; | |
31293 | int res1 = 0 ; | |
31294 | long val2 ; | |
31295 | int ecode2 = 0 ; | |
31296 | bool temp3 = false ; | |
31297 | int val4 ; | |
31298 | int ecode4 = 0 ; | |
31299 | PyObject * obj0 = 0 ; | |
31300 | PyObject * obj1 = 0 ; | |
31301 | PyObject * obj2 = 0 ; | |
31302 | PyObject * obj3 = 0 ; | |
31303 | char * kwnames[] = { | |
31304 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
31305 | }; | |
31306 | ||
31307 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31308 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31309 | if (!SWIG_IsOK(res1)) { | |
31310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31311 | } | |
31312 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31313 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31314 | if (!SWIG_IsOK(ecode2)) { | |
31315 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'"); | |
31316 | } | |
31317 | arg2 = static_cast< long >(val2); | |
31318 | { | |
31319 | arg3 = wxString_in_helper(obj2); | |
31320 | if (arg3 == NULL) SWIG_fail; | |
31321 | temp3 = true; | |
31322 | } | |
31323 | if (obj3) { | |
31324 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31325 | if (!SWIG_IsOK(ecode4)) { | |
31326 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'"); | |
31327 | } | |
31328 | arg4 = static_cast< int >(val4); | |
31329 | } | |
31330 | { | |
31331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31332 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
31333 | wxPyEndAllowThreads(__tstate); | |
31334 | if (PyErr_Occurred()) SWIG_fail; | |
31335 | } | |
31336 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31337 | { | |
31338 | if (temp3) | |
31339 | delete arg3; | |
31340 | } | |
31341 | return resultobj; | |
31342 | fail: | |
31343 | { | |
31344 | if (temp3) | |
31345 | delete arg3; | |
31346 | } | |
31347 | return NULL; | |
31348 | } | |
31349 | ||
31350 | ||
31351 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31352 | PyObject *resultobj = 0; | |
31353 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31354 | long arg2 ; | |
31355 | int arg3 ; | |
31356 | long result; | |
31357 | void *argp1 = 0 ; | |
31358 | int res1 = 0 ; | |
31359 | long val2 ; | |
31360 | int ecode2 = 0 ; | |
31361 | int val3 ; | |
31362 | int ecode3 = 0 ; | |
31363 | PyObject * obj0 = 0 ; | |
31364 | PyObject * obj1 = 0 ; | |
31365 | PyObject * obj2 = 0 ; | |
31366 | char * kwnames[] = { | |
31367 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
31368 | }; | |
31369 | ||
31370 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31371 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31372 | if (!SWIG_IsOK(res1)) { | |
31373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31374 | } | |
31375 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31376 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31377 | if (!SWIG_IsOK(ecode2)) { | |
31378 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'"); | |
31379 | } | |
31380 | arg2 = static_cast< long >(val2); | |
31381 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31382 | if (!SWIG_IsOK(ecode3)) { | |
31383 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'"); | |
31384 | } | |
31385 | arg3 = static_cast< int >(val3); | |
31386 | { | |
31387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31388 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
31389 | wxPyEndAllowThreads(__tstate); | |
31390 | if (PyErr_Occurred()) SWIG_fail; | |
31391 | } | |
31392 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31393 | return resultobj; | |
31394 | fail: | |
31395 | return NULL; | |
31396 | } | |
31397 | ||
31398 | ||
31399 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31400 | PyObject *resultobj = 0; | |
31401 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31402 | long arg2 ; | |
31403 | wxString *arg3 = 0 ; | |
31404 | int arg4 ; | |
31405 | long result; | |
31406 | void *argp1 = 0 ; | |
31407 | int res1 = 0 ; | |
31408 | long val2 ; | |
31409 | int ecode2 = 0 ; | |
31410 | bool temp3 = false ; | |
31411 | int val4 ; | |
31412 | int ecode4 = 0 ; | |
31413 | PyObject * obj0 = 0 ; | |
31414 | PyObject * obj1 = 0 ; | |
31415 | PyObject * obj2 = 0 ; | |
31416 | PyObject * obj3 = 0 ; | |
31417 | char * kwnames[] = { | |
31418 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
31419 | }; | |
31420 | ||
31421 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31422 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31423 | if (!SWIG_IsOK(res1)) { | |
31424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31425 | } | |
31426 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31427 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31428 | if (!SWIG_IsOK(ecode2)) { | |
31429 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'"); | |
31430 | } | |
31431 | arg2 = static_cast< long >(val2); | |
31432 | { | |
31433 | arg3 = wxString_in_helper(obj2); | |
31434 | if (arg3 == NULL) SWIG_fail; | |
31435 | temp3 = true; | |
31436 | } | |
31437 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31438 | if (!SWIG_IsOK(ecode4)) { | |
31439 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'"); | |
31440 | } | |
31441 | arg4 = static_cast< int >(val4); | |
31442 | { | |
31443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31444 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
31445 | wxPyEndAllowThreads(__tstate); | |
31446 | if (PyErr_Occurred()) SWIG_fail; | |
31447 | } | |
31448 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31449 | { | |
31450 | if (temp3) | |
31451 | delete arg3; | |
31452 | } | |
31453 | return resultobj; | |
31454 | fail: | |
31455 | { | |
31456 | if (temp3) | |
31457 | delete arg3; | |
31458 | } | |
31459 | return NULL; | |
31460 | } | |
31461 | ||
31462 | ||
31463 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31464 | PyObject *resultobj = 0; | |
31465 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31466 | long arg2 ; | |
31467 | wxListItem *arg3 = 0 ; | |
31468 | long result; | |
31469 | void *argp1 = 0 ; | |
31470 | int res1 = 0 ; | |
31471 | long val2 ; | |
31472 | int ecode2 = 0 ; | |
31473 | void *argp3 = 0 ; | |
31474 | int res3 = 0 ; | |
31475 | PyObject * obj0 = 0 ; | |
31476 | PyObject * obj1 = 0 ; | |
31477 | PyObject * obj2 = 0 ; | |
31478 | char * kwnames[] = { | |
31479 | (char *) "self",(char *) "col",(char *) "info", NULL | |
31480 | }; | |
31481 | ||
31482 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31483 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31484 | if (!SWIG_IsOK(res1)) { | |
31485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31486 | } | |
31487 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31488 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31489 | if (!SWIG_IsOK(ecode2)) { | |
31490 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'"); | |
31491 | } | |
31492 | arg2 = static_cast< long >(val2); | |
31493 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 ); | |
31494 | if (!SWIG_IsOK(res3)) { | |
31495 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
31496 | } | |
31497 | if (!argp3) { | |
31498 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
31499 | } | |
31500 | arg3 = reinterpret_cast< wxListItem * >(argp3); | |
31501 | { | |
31502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31503 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
31504 | wxPyEndAllowThreads(__tstate); | |
31505 | if (PyErr_Occurred()) SWIG_fail; | |
31506 | } | |
31507 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31508 | return resultobj; | |
31509 | fail: | |
31510 | return NULL; | |
31511 | } | |
31512 | ||
31513 | ||
31514 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31515 | PyObject *resultobj = 0; | |
31516 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31517 | long arg2 ; | |
31518 | wxString *arg3 = 0 ; | |
31519 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
31520 | int arg5 = (int) -1 ; | |
31521 | long result; | |
31522 | void *argp1 = 0 ; | |
31523 | int res1 = 0 ; | |
31524 | long val2 ; | |
31525 | int ecode2 = 0 ; | |
31526 | bool temp3 = false ; | |
31527 | int val4 ; | |
31528 | int ecode4 = 0 ; | |
31529 | int val5 ; | |
31530 | int ecode5 = 0 ; | |
31531 | PyObject * obj0 = 0 ; | |
31532 | PyObject * obj1 = 0 ; | |
31533 | PyObject * obj2 = 0 ; | |
31534 | PyObject * obj3 = 0 ; | |
31535 | PyObject * obj4 = 0 ; | |
31536 | char * kwnames[] = { | |
31537 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
31538 | }; | |
31539 | ||
31540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
31541 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31542 | if (!SWIG_IsOK(res1)) { | |
31543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31544 | } | |
31545 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31546 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31547 | if (!SWIG_IsOK(ecode2)) { | |
31548 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'"); | |
31549 | } | |
31550 | arg2 = static_cast< long >(val2); | |
31551 | { | |
31552 | arg3 = wxString_in_helper(obj2); | |
31553 | if (arg3 == NULL) SWIG_fail; | |
31554 | temp3 = true; | |
31555 | } | |
31556 | if (obj3) { | |
31557 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31558 | if (!SWIG_IsOK(ecode4)) { | |
31559 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'"); | |
31560 | } | |
31561 | arg4 = static_cast< int >(val4); | |
31562 | } | |
31563 | if (obj4) { | |
31564 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31565 | if (!SWIG_IsOK(ecode5)) { | |
31566 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'"); | |
31567 | } | |
31568 | arg5 = static_cast< int >(val5); | |
31569 | } | |
31570 | { | |
31571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31572 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
31573 | wxPyEndAllowThreads(__tstate); | |
31574 | if (PyErr_Occurred()) SWIG_fail; | |
31575 | } | |
31576 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31577 | { | |
31578 | if (temp3) | |
31579 | delete arg3; | |
31580 | } | |
31581 | return resultobj; | |
31582 | fail: | |
31583 | { | |
31584 | if (temp3) | |
31585 | delete arg3; | |
31586 | } | |
31587 | return NULL; | |
31588 | } | |
31589 | ||
31590 | ||
31591 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31592 | PyObject *resultobj = 0; | |
31593 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31594 | long arg2 ; | |
31595 | void *argp1 = 0 ; | |
31596 | int res1 = 0 ; | |
31597 | long val2 ; | |
31598 | int ecode2 = 0 ; | |
31599 | PyObject * obj0 = 0 ; | |
31600 | PyObject * obj1 = 0 ; | |
31601 | char * kwnames[] = { | |
31602 | (char *) "self",(char *) "count", NULL | |
31603 | }; | |
31604 | ||
31605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
31606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31607 | if (!SWIG_IsOK(res1)) { | |
31608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31609 | } | |
31610 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31611 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31612 | if (!SWIG_IsOK(ecode2)) { | |
31613 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'"); | |
31614 | } | |
31615 | arg2 = static_cast< long >(val2); | |
31616 | { | |
31617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31618 | (arg1)->SetItemCount(arg2); | |
31619 | wxPyEndAllowThreads(__tstate); | |
31620 | if (PyErr_Occurred()) SWIG_fail; | |
31621 | } | |
31622 | resultobj = SWIG_Py_Void(); | |
31623 | return resultobj; | |
31624 | fail: | |
31625 | return NULL; | |
31626 | } | |
31627 | ||
31628 | ||
31629 | SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31630 | PyObject *resultobj = 0; | |
31631 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31632 | int arg2 ; | |
31633 | int arg3 ; | |
31634 | bool result; | |
31635 | void *argp1 = 0 ; | |
31636 | int res1 = 0 ; | |
31637 | int val2 ; | |
31638 | int ecode2 = 0 ; | |
31639 | int val3 ; | |
31640 | int ecode3 = 0 ; | |
31641 | PyObject * obj0 = 0 ; | |
31642 | PyObject * obj1 = 0 ; | |
31643 | PyObject * obj2 = 0 ; | |
31644 | char * kwnames[] = { | |
31645 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
31646 | }; | |
31647 | ||
31648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31650 | if (!SWIG_IsOK(res1)) { | |
31651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31652 | } | |
31653 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31654 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31655 | if (!SWIG_IsOK(ecode2)) { | |
31656 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'"); | |
31657 | } | |
31658 | arg2 = static_cast< int >(val2); | |
31659 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31660 | if (!SWIG_IsOK(ecode3)) { | |
31661 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'"); | |
31662 | } | |
31663 | arg3 = static_cast< int >(val3); | |
31664 | { | |
31665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31666 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
31667 | wxPyEndAllowThreads(__tstate); | |
31668 | if (PyErr_Occurred()) SWIG_fail; | |
31669 | } | |
31670 | { | |
31671 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31672 | } | |
31673 | return resultobj; | |
31674 | fail: | |
31675 | return NULL; | |
31676 | } | |
31677 | ||
31678 | ||
31679 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31680 | PyObject *resultobj = 0; | |
31681 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31682 | long arg2 ; | |
31683 | wxColour *arg3 = 0 ; | |
31684 | void *argp1 = 0 ; | |
31685 | int res1 = 0 ; | |
31686 | long val2 ; | |
31687 | int ecode2 = 0 ; | |
31688 | wxColour temp3 ; | |
31689 | PyObject * obj0 = 0 ; | |
31690 | PyObject * obj1 = 0 ; | |
31691 | PyObject * obj2 = 0 ; | |
31692 | char * kwnames[] = { | |
31693 | (char *) "self",(char *) "item",(char *) "col", NULL | |
31694 | }; | |
31695 | ||
31696 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31697 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31698 | if (!SWIG_IsOK(res1)) { | |
31699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31700 | } | |
31701 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31702 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31703 | if (!SWIG_IsOK(ecode2)) { | |
31704 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'"); | |
31705 | } | |
31706 | arg2 = static_cast< long >(val2); | |
31707 | { | |
31708 | arg3 = &temp3; | |
31709 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31710 | } | |
31711 | { | |
31712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31713 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
31714 | wxPyEndAllowThreads(__tstate); | |
31715 | if (PyErr_Occurred()) SWIG_fail; | |
31716 | } | |
31717 | resultobj = SWIG_Py_Void(); | |
31718 | return resultobj; | |
31719 | fail: | |
31720 | return NULL; | |
31721 | } | |
31722 | ||
31723 | ||
31724 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31725 | PyObject *resultobj = 0; | |
31726 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31727 | long arg2 ; | |
31728 | wxColour result; | |
31729 | void *argp1 = 0 ; | |
31730 | int res1 = 0 ; | |
31731 | long val2 ; | |
31732 | int ecode2 = 0 ; | |
31733 | PyObject * obj0 = 0 ; | |
31734 | PyObject * obj1 = 0 ; | |
31735 | char * kwnames[] = { | |
31736 | (char *) "self",(char *) "item", NULL | |
31737 | }; | |
31738 | ||
31739 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
31740 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31741 | if (!SWIG_IsOK(res1)) { | |
31742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
31743 | } | |
31744 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31745 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31746 | if (!SWIG_IsOK(ecode2)) { | |
31747 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'"); | |
31748 | } | |
31749 | arg2 = static_cast< long >(val2); | |
31750 | { | |
31751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31752 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
31753 | wxPyEndAllowThreads(__tstate); | |
31754 | if (PyErr_Occurred()) SWIG_fail; | |
31755 | } | |
31756 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
31757 | return resultobj; | |
31758 | fail: | |
31759 | return NULL; | |
31760 | } | |
31761 | ||
31762 | ||
31763 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31764 | PyObject *resultobj = 0; | |
31765 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31766 | long arg2 ; | |
31767 | wxColour *arg3 = 0 ; | |
31768 | void *argp1 = 0 ; | |
31769 | int res1 = 0 ; | |
31770 | long val2 ; | |
31771 | int ecode2 = 0 ; | |
31772 | wxColour temp3 ; | |
31773 | PyObject * obj0 = 0 ; | |
31774 | PyObject * obj1 = 0 ; | |
31775 | PyObject * obj2 = 0 ; | |
31776 | char * kwnames[] = { | |
31777 | (char *) "self",(char *) "item",(char *) "col", NULL | |
31778 | }; | |
31779 | ||
31780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31782 | if (!SWIG_IsOK(res1)) { | |
31783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31784 | } | |
31785 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31786 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31787 | if (!SWIG_IsOK(ecode2)) { | |
31788 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'"); | |
31789 | } | |
31790 | arg2 = static_cast< long >(val2); | |
31791 | { | |
31792 | arg3 = &temp3; | |
31793 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31794 | } | |
31795 | { | |
31796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31797 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
31798 | wxPyEndAllowThreads(__tstate); | |
31799 | if (PyErr_Occurred()) SWIG_fail; | |
31800 | } | |
31801 | resultobj = SWIG_Py_Void(); | |
31802 | return resultobj; | |
31803 | fail: | |
31804 | return NULL; | |
31805 | } | |
31806 | ||
31807 | ||
31808 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31809 | PyObject *resultobj = 0; | |
31810 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31811 | long arg2 ; | |
31812 | wxColour result; | |
31813 | void *argp1 = 0 ; | |
31814 | int res1 = 0 ; | |
31815 | long val2 ; | |
31816 | int ecode2 = 0 ; | |
31817 | PyObject * obj0 = 0 ; | |
31818 | PyObject * obj1 = 0 ; | |
31819 | char * kwnames[] = { | |
31820 | (char *) "self",(char *) "item", NULL | |
31821 | }; | |
31822 | ||
31823 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
31824 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31825 | if (!SWIG_IsOK(res1)) { | |
31826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
31827 | } | |
31828 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31829 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31830 | if (!SWIG_IsOK(ecode2)) { | |
31831 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'"); | |
31832 | } | |
31833 | arg2 = static_cast< long >(val2); | |
31834 | { | |
31835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31836 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
31837 | wxPyEndAllowThreads(__tstate); | |
31838 | if (PyErr_Occurred()) SWIG_fail; | |
31839 | } | |
31840 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
31841 | return resultobj; | |
31842 | fail: | |
31843 | return NULL; | |
31844 | } | |
31845 | ||
31846 | ||
31847 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31848 | PyObject *resultobj = 0; | |
31849 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31850 | long arg2 ; | |
31851 | wxFont *arg3 = 0 ; | |
31852 | void *argp1 = 0 ; | |
31853 | int res1 = 0 ; | |
31854 | long val2 ; | |
31855 | int ecode2 = 0 ; | |
31856 | void *argp3 = 0 ; | |
31857 | int res3 = 0 ; | |
31858 | PyObject * obj0 = 0 ; | |
31859 | PyObject * obj1 = 0 ; | |
31860 | PyObject * obj2 = 0 ; | |
31861 | char * kwnames[] = { | |
31862 | (char *) "self",(char *) "item",(char *) "f", NULL | |
31863 | }; | |
31864 | ||
31865 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31866 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31867 | if (!SWIG_IsOK(res1)) { | |
31868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31869 | } | |
31870 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31871 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31872 | if (!SWIG_IsOK(ecode2)) { | |
31873 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'"); | |
31874 | } | |
31875 | arg2 = static_cast< long >(val2); | |
31876 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
31877 | if (!SWIG_IsOK(res3)) { | |
31878 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
31879 | } | |
31880 | if (!argp3) { | |
31881 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
31882 | } | |
31883 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
31884 | { | |
31885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31886 | (arg1)->SetItemFont(arg2,(wxFont const &)*arg3); | |
31887 | wxPyEndAllowThreads(__tstate); | |
31888 | if (PyErr_Occurred()) SWIG_fail; | |
31889 | } | |
31890 | resultobj = SWIG_Py_Void(); | |
31891 | return resultobj; | |
31892 | fail: | |
31893 | return NULL; | |
31894 | } | |
31895 | ||
31896 | ||
31897 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31898 | PyObject *resultobj = 0; | |
31899 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31900 | long arg2 ; | |
31901 | wxFont result; | |
31902 | void *argp1 = 0 ; | |
31903 | int res1 = 0 ; | |
31904 | long val2 ; | |
31905 | int ecode2 = 0 ; | |
31906 | PyObject * obj0 = 0 ; | |
31907 | PyObject * obj1 = 0 ; | |
31908 | char * kwnames[] = { | |
31909 | (char *) "self",(char *) "item", NULL | |
31910 | }; | |
31911 | ||
31912 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
31913 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31914 | if (!SWIG_IsOK(res1)) { | |
31915 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
31916 | } | |
31917 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31918 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31919 | if (!SWIG_IsOK(ecode2)) { | |
31920 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'"); | |
31921 | } | |
31922 | arg2 = static_cast< long >(val2); | |
31923 | { | |
31924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31925 | result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2); | |
31926 | wxPyEndAllowThreads(__tstate); | |
31927 | if (PyErr_Occurred()) SWIG_fail; | |
31928 | } | |
31929 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
31930 | return resultobj; | |
31931 | fail: | |
31932 | return NULL; | |
31933 | } | |
31934 | ||
31935 | ||
31936 | SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31937 | PyObject *resultobj = 0; | |
31938 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31939 | PyObject *arg2 = (PyObject *) 0 ; | |
31940 | bool result; | |
31941 | void *argp1 = 0 ; | |
31942 | int res1 = 0 ; | |
31943 | PyObject * obj0 = 0 ; | |
31944 | PyObject * obj1 = 0 ; | |
31945 | char * kwnames[] = { | |
31946 | (char *) "self",(char *) "func", NULL | |
31947 | }; | |
31948 | ||
31949 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail; | |
31950 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31951 | if (!SWIG_IsOK(res1)) { | |
31952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31953 | } | |
31954 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31955 | arg2 = obj1; | |
31956 | { | |
31957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31958 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
31959 | wxPyEndAllowThreads(__tstate); | |
31960 | if (PyErr_Occurred()) SWIG_fail; | |
31961 | } | |
31962 | { | |
31963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31964 | } | |
31965 | return resultobj; | |
31966 | fail: | |
31967 | return NULL; | |
b411df4a RD |
31968 | } |
31969 | ||
31970 | ||
1bd55598 RD |
31971 | SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31972 | PyObject *resultobj = 0; | |
31973 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31974 | wxWindow *result = 0 ; | |
31975 | void *argp1 = 0 ; | |
31976 | int res1 = 0 ; | |
31977 | PyObject *swig_obj[1] ; | |
31978 | ||
31979 | if (!args) SWIG_fail; | |
31980 | swig_obj[0] = args; | |
31981 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31982 | if (!SWIG_IsOK(res1)) { | |
31983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31984 | } | |
31985 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31986 | { | |
31987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31988 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
31989 | wxPyEndAllowThreads(__tstate); | |
31990 | if (PyErr_Occurred()) SWIG_fail; | |
31991 | } | |
31992 | { | |
31993 | resultobj = wxPyMake_wxObject(result, 0); | |
31994 | } | |
31995 | return resultobj; | |
31996 | fail: | |
31997 | return NULL; | |
7993762b RD |
31998 | } |
31999 | ||
32000 | ||
1bd55598 RD |
32001 | SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32002 | PyObject *resultobj = 0; | |
32003 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
32004 | SwigValueWrapper<wxVisualAttributes > result; | |
32005 | int val1 ; | |
32006 | int ecode1 = 0 ; | |
32007 | PyObject * obj0 = 0 ; | |
32008 | char * kwnames[] = { | |
32009 | (char *) "variant", NULL | |
32010 | }; | |
32011 | ||
32012 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
32013 | if (obj0) { | |
32014 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32015 | if (!SWIG_IsOK(ecode1)) { | |
32016 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
32017 | } | |
32018 | arg1 = static_cast< wxWindowVariant >(val1); | |
32019 | } | |
32020 | { | |
32021 | if (!wxPyCheckForApp()) SWIG_fail; | |
32022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32023 | result = wxPyListCtrl::GetClassDefaultAttributes(arg1); | |
32024 | wxPyEndAllowThreads(__tstate); | |
32025 | if (PyErr_Occurred()) SWIG_fail; | |
32026 | } | |
32027 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
32028 | return resultobj; | |
32029 | fail: | |
32030 | return NULL; | |
32031 | } | |
32032 | ||
32033 | ||
32034 | SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32035 | PyObject *obj; | |
32036 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32037 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj)); | |
32038 | return SWIG_Py_Void(); | |
32039 | } | |
32040 | ||
32041 | SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32042 | return SWIG_Python_InitShadowInstance(args); | |
32043 | } | |
32044 | ||
32045 | SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32046 | PyObject *resultobj = 0; | |
32047 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32048 | int arg2 = (int) -1 ; | |
32049 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
32050 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32051 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32052 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32053 | long arg5 = (long) wxLC_REPORT ; | |
32054 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32055 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32056 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
32057 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32058 | wxListView *result = 0 ; | |
32059 | void *argp1 = 0 ; | |
32060 | int res1 = 0 ; | |
32061 | int val2 ; | |
32062 | int ecode2 = 0 ; | |
32063 | wxPoint temp3 ; | |
32064 | wxSize temp4 ; | |
32065 | long val5 ; | |
32066 | int ecode5 = 0 ; | |
32067 | void *argp6 = 0 ; | |
32068 | int res6 = 0 ; | |
32069 | bool temp7 = false ; | |
32070 | PyObject * obj0 = 0 ; | |
32071 | PyObject * obj1 = 0 ; | |
32072 | PyObject * obj2 = 0 ; | |
32073 | PyObject * obj3 = 0 ; | |
32074 | PyObject * obj4 = 0 ; | |
32075 | PyObject * obj5 = 0 ; | |
32076 | PyObject * obj6 = 0 ; | |
32077 | char * kwnames[] = { | |
32078 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32079 | }; | |
32080 | ||
32081 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
32082 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
32083 | if (!SWIG_IsOK(res1)) { | |
32084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
32085 | } | |
32086 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
32087 | if (obj1) { | |
32088 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32089 | if (!SWIG_IsOK(ecode2)) { | |
32090 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'"); | |
32091 | } | |
32092 | arg2 = static_cast< int >(val2); | |
32093 | } | |
32094 | if (obj2) { | |
b411df4a | 32095 | { |
1bd55598 RD |
32096 | arg3 = &temp3; |
32097 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
b411df4a | 32098 | } |
1bd55598 RD |
32099 | } |
32100 | if (obj3) { | |
32101 | { | |
32102 | arg4 = &temp4; | |
32103 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
b411df4a | 32104 | } |
1bd55598 RD |
32105 | } |
32106 | if (obj4) { | |
32107 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
32108 | if (!SWIG_IsOK(ecode5)) { | |
32109 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'"); | |
32110 | } | |
32111 | arg5 = static_cast< long >(val5); | |
32112 | } | |
32113 | if (obj5) { | |
32114 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
32115 | if (!SWIG_IsOK(res6)) { | |
32116 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
b411df4a | 32117 | } |
1bd55598 RD |
32118 | if (!argp6) { |
32119 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
b411df4a | 32120 | } |
1bd55598 RD |
32121 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
32122 | } | |
32123 | if (obj6) { | |
b411df4a | 32124 | { |
1bd55598 RD |
32125 | arg7 = wxString_in_helper(obj6); |
32126 | if (arg7 == NULL) SWIG_fail; | |
32127 | temp7 = true; | |
b411df4a | 32128 | } |
1bd55598 RD |
32129 | } |
32130 | { | |
32131 | if (!wxPyCheckForApp()) SWIG_fail; | |
32132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32133 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32134 | wxPyEndAllowThreads(__tstate); | |
32135 | if (PyErr_Occurred()) SWIG_fail; | |
32136 | } | |
32137 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 ); | |
32138 | { | |
32139 | if (temp7) | |
32140 | delete arg7; | |
32141 | } | |
32142 | return resultobj; | |
32143 | fail: | |
32144 | { | |
32145 | if (temp7) | |
32146 | delete arg7; | |
32147 | } | |
32148 | return NULL; | |
b411df4a RD |
32149 | } |
32150 | ||
32151 | ||
1bd55598 RD |
32152 | SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32153 | PyObject *resultobj = 0; | |
32154 | wxListView *result = 0 ; | |
32155 | ||
32156 | if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail; | |
32157 | { | |
32158 | if (!wxPyCheckForApp()) SWIG_fail; | |
32159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32160 | result = (wxListView *)new wxListView(); | |
32161 | wxPyEndAllowThreads(__tstate); | |
32162 | if (PyErr_Occurred()) SWIG_fail; | |
32163 | } | |
32164 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 ); | |
32165 | return resultobj; | |
32166 | fail: | |
32167 | return NULL; | |
32168 | } | |
32169 | ||
32170 | ||
32171 | SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32172 | PyObject *resultobj = 0; | |
32173 | wxListView *arg1 = (wxListView *) 0 ; | |
32174 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32175 | int arg3 = (int) -1 ; | |
32176 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
32177 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
32178 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
32179 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
32180 | long arg6 = (long) wxLC_REPORT ; | |
32181 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
32182 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
32183 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
32184 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
32185 | bool result; | |
32186 | void *argp1 = 0 ; | |
32187 | int res1 = 0 ; | |
32188 | void *argp2 = 0 ; | |
32189 | int res2 = 0 ; | |
32190 | int val3 ; | |
32191 | int ecode3 = 0 ; | |
32192 | wxPoint temp4 ; | |
32193 | wxSize temp5 ; | |
32194 | long val6 ; | |
32195 | int ecode6 = 0 ; | |
32196 | void *argp7 = 0 ; | |
32197 | int res7 = 0 ; | |
32198 | bool temp8 = false ; | |
32199 | PyObject * obj0 = 0 ; | |
32200 | PyObject * obj1 = 0 ; | |
32201 | PyObject * obj2 = 0 ; | |
32202 | PyObject * obj3 = 0 ; | |
32203 | PyObject * obj4 = 0 ; | |
32204 | PyObject * obj5 = 0 ; | |
32205 | PyObject * obj6 = 0 ; | |
32206 | PyObject * obj7 = 0 ; | |
32207 | char * kwnames[] = { | |
32208 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32209 | }; | |
32210 | ||
32211 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
32212 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32213 | if (!SWIG_IsOK(res1)) { | |
32214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32215 | } | |
32216 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32217 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
32218 | if (!SWIG_IsOK(res2)) { | |
32219 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
32220 | } | |
32221 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
32222 | if (obj2) { | |
32223 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32224 | if (!SWIG_IsOK(ecode3)) { | |
32225 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'"); | |
32226 | } | |
32227 | arg3 = static_cast< int >(val3); | |
32228 | } | |
32229 | if (obj3) { | |
d55e5bfc | 32230 | { |
1bd55598 RD |
32231 | arg4 = &temp4; |
32232 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 32233 | } |
1bd55598 RD |
32234 | } |
32235 | if (obj4) { | |
36ed4f51 | 32236 | { |
1bd55598 RD |
32237 | arg5 = &temp5; |
32238 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 32239 | } |
1bd55598 RD |
32240 | } |
32241 | if (obj5) { | |
32242 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
32243 | if (!SWIG_IsOK(ecode6)) { | |
32244 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'"); | |
32245 | } | |
32246 | arg6 = static_cast< long >(val6); | |
32247 | } | |
32248 | if (obj6) { | |
32249 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
32250 | if (!SWIG_IsOK(res7)) { | |
32251 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 32252 | } |
1bd55598 RD |
32253 | if (!argp7) { |
32254 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
32255 | } | |
32256 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
32257 | } | |
32258 | if (obj7) { | |
d55e5bfc | 32259 | { |
1bd55598 RD |
32260 | arg8 = wxString_in_helper(obj7); |
32261 | if (arg8 == NULL) SWIG_fail; | |
32262 | temp8 = true; | |
d55e5bfc | 32263 | } |
1bd55598 RD |
32264 | } |
32265 | { | |
32266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32267 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
32268 | wxPyEndAllowThreads(__tstate); | |
32269 | if (PyErr_Occurred()) SWIG_fail; | |
32270 | } | |
32271 | { | |
32272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32273 | } | |
32274 | { | |
32275 | if (temp8) | |
32276 | delete arg8; | |
32277 | } | |
32278 | return resultobj; | |
32279 | fail: | |
32280 | { | |
32281 | if (temp8) | |
32282 | delete arg8; | |
32283 | } | |
32284 | return NULL; | |
32285 | } | |
32286 | ||
32287 | ||
32288 | SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32289 | PyObject *resultobj = 0; | |
32290 | wxListView *arg1 = (wxListView *) 0 ; | |
32291 | long arg2 ; | |
32292 | bool arg3 = (bool) true ; | |
32293 | void *argp1 = 0 ; | |
32294 | int res1 = 0 ; | |
32295 | long val2 ; | |
32296 | int ecode2 = 0 ; | |
32297 | bool val3 ; | |
32298 | int ecode3 = 0 ; | |
32299 | PyObject * obj0 = 0 ; | |
32300 | PyObject * obj1 = 0 ; | |
32301 | PyObject * obj2 = 0 ; | |
32302 | char * kwnames[] = { | |
32303 | (char *) "self",(char *) "n",(char *) "on", NULL | |
32304 | }; | |
32305 | ||
32306 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32307 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32308 | if (!SWIG_IsOK(res1)) { | |
32309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32310 | } | |
32311 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32312 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32313 | if (!SWIG_IsOK(ecode2)) { | |
32314 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'"); | |
32315 | } | |
32316 | arg2 = static_cast< long >(val2); | |
32317 | if (obj2) { | |
32318 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
32319 | if (!SWIG_IsOK(ecode3)) { | |
32320 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'"); | |
32321 | } | |
32322 | arg3 = static_cast< bool >(val3); | |
32323 | } | |
32324 | { | |
32325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32326 | (arg1)->Select(arg2,arg3); | |
32327 | wxPyEndAllowThreads(__tstate); | |
32328 | if (PyErr_Occurred()) SWIG_fail; | |
32329 | } | |
32330 | resultobj = SWIG_Py_Void(); | |
32331 | return resultobj; | |
32332 | fail: | |
32333 | return NULL; | |
32334 | } | |
32335 | ||
32336 | ||
32337 | SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32338 | PyObject *resultobj = 0; | |
32339 | wxListView *arg1 = (wxListView *) 0 ; | |
32340 | long arg2 ; | |
32341 | void *argp1 = 0 ; | |
32342 | int res1 = 0 ; | |
32343 | long val2 ; | |
32344 | int ecode2 = 0 ; | |
32345 | PyObject * obj0 = 0 ; | |
32346 | PyObject * obj1 = 0 ; | |
32347 | char * kwnames[] = { | |
32348 | (char *) "self",(char *) "index", NULL | |
32349 | }; | |
32350 | ||
32351 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail; | |
32352 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32353 | if (!SWIG_IsOK(res1)) { | |
32354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32355 | } | |
32356 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32357 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32358 | if (!SWIG_IsOK(ecode2)) { | |
32359 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'"); | |
32360 | } | |
32361 | arg2 = static_cast< long >(val2); | |
32362 | { | |
32363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32364 | (arg1)->Focus(arg2); | |
32365 | wxPyEndAllowThreads(__tstate); | |
32366 | if (PyErr_Occurred()) SWIG_fail; | |
32367 | } | |
32368 | resultobj = SWIG_Py_Void(); | |
32369 | return resultobj; | |
32370 | fail: | |
32371 | return NULL; | |
d55e5bfc RD |
32372 | } |
32373 | ||
32374 | ||
1bd55598 RD |
32375 | SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32376 | PyObject *resultobj = 0; | |
32377 | wxListView *arg1 = (wxListView *) 0 ; | |
32378 | long result; | |
32379 | void *argp1 = 0 ; | |
32380 | int res1 = 0 ; | |
32381 | PyObject *swig_obj[1] ; | |
32382 | ||
32383 | if (!args) SWIG_fail; | |
32384 | swig_obj[0] = args; | |
32385 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32386 | if (!SWIG_IsOK(res1)) { | |
32387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
32388 | } | |
32389 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32390 | { | |
32391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32392 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
32393 | wxPyEndAllowThreads(__tstate); | |
32394 | if (PyErr_Occurred()) SWIG_fail; | |
32395 | } | |
32396 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
32397 | return resultobj; | |
32398 | fail: | |
32399 | return NULL; | |
32400 | } | |
32401 | ||
32402 | ||
32403 | SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32404 | PyObject *resultobj = 0; | |
32405 | wxListView *arg1 = (wxListView *) 0 ; | |
32406 | long arg2 ; | |
32407 | long result; | |
32408 | void *argp1 = 0 ; | |
32409 | int res1 = 0 ; | |
32410 | long val2 ; | |
32411 | int ecode2 = 0 ; | |
32412 | PyObject * obj0 = 0 ; | |
32413 | PyObject * obj1 = 0 ; | |
32414 | char * kwnames[] = { | |
32415 | (char *) "self",(char *) "item", NULL | |
32416 | }; | |
32417 | ||
32418 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
32419 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32420 | if (!SWIG_IsOK(res1)) { | |
32421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
32422 | } | |
32423 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32424 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32425 | if (!SWIG_IsOK(ecode2)) { | |
32426 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'"); | |
32427 | } | |
32428 | arg2 = static_cast< long >(val2); | |
32429 | { | |
32430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32431 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
32432 | wxPyEndAllowThreads(__tstate); | |
32433 | if (PyErr_Occurred()) SWIG_fail; | |
32434 | } | |
32435 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
32436 | return resultobj; | |
32437 | fail: | |
32438 | return NULL; | |
d55e5bfc RD |
32439 | } |
32440 | ||
32441 | ||
1bd55598 RD |
32442 | SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32443 | PyObject *resultobj = 0; | |
32444 | wxListView *arg1 = (wxListView *) 0 ; | |
32445 | long result; | |
32446 | void *argp1 = 0 ; | |
32447 | int res1 = 0 ; | |
32448 | PyObject *swig_obj[1] ; | |
32449 | ||
32450 | if (!args) SWIG_fail; | |
32451 | swig_obj[0] = args; | |
32452 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32453 | if (!SWIG_IsOK(res1)) { | |
32454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
32455 | } | |
32456 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32457 | { | |
32458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32459 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
32460 | wxPyEndAllowThreads(__tstate); | |
32461 | if (PyErr_Occurred()) SWIG_fail; | |
32462 | } | |
32463 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
32464 | return resultobj; | |
32465 | fail: | |
32466 | return NULL; | |
32467 | } | |
32468 | ||
32469 | ||
32470 | SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32471 | PyObject *resultobj = 0; | |
32472 | wxListView *arg1 = (wxListView *) 0 ; | |
32473 | long arg2 ; | |
32474 | bool result; | |
32475 | void *argp1 = 0 ; | |
32476 | int res1 = 0 ; | |
32477 | long val2 ; | |
32478 | int ecode2 = 0 ; | |
32479 | PyObject * obj0 = 0 ; | |
32480 | PyObject * obj1 = 0 ; | |
32481 | char * kwnames[] = { | |
32482 | (char *) "self",(char *) "index", NULL | |
32483 | }; | |
32484 | ||
32485 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
32486 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32487 | if (!SWIG_IsOK(res1)) { | |
32488 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32489 | } | |
32490 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32491 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32492 | if (!SWIG_IsOK(ecode2)) { | |
32493 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'"); | |
32494 | } | |
32495 | arg2 = static_cast< long >(val2); | |
32496 | { | |
32497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32498 | result = (bool)(arg1)->IsSelected(arg2); | |
32499 | wxPyEndAllowThreads(__tstate); | |
32500 | if (PyErr_Occurred()) SWIG_fail; | |
32501 | } | |
32502 | { | |
32503 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32504 | } | |
32505 | return resultobj; | |
32506 | fail: | |
32507 | return NULL; | |
32508 | } | |
32509 | ||
32510 | ||
32511 | SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32512 | PyObject *resultobj = 0; | |
32513 | wxListView *arg1 = (wxListView *) 0 ; | |
32514 | int arg2 ; | |
32515 | int arg3 ; | |
32516 | void *argp1 = 0 ; | |
32517 | int res1 = 0 ; | |
32518 | int val2 ; | |
32519 | int ecode2 = 0 ; | |
32520 | int val3 ; | |
32521 | int ecode3 = 0 ; | |
32522 | PyObject * obj0 = 0 ; | |
32523 | PyObject * obj1 = 0 ; | |
32524 | PyObject * obj2 = 0 ; | |
32525 | char * kwnames[] = { | |
32526 | (char *) "self",(char *) "col",(char *) "image", NULL | |
32527 | }; | |
32528 | ||
32529 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32530 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32531 | if (!SWIG_IsOK(res1)) { | |
32532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32533 | } | |
32534 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32535 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32536 | if (!SWIG_IsOK(ecode2)) { | |
32537 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'"); | |
32538 | } | |
32539 | arg2 = static_cast< int >(val2); | |
32540 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32541 | if (!SWIG_IsOK(ecode3)) { | |
32542 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'"); | |
32543 | } | |
32544 | arg3 = static_cast< int >(val3); | |
32545 | { | |
32546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32547 | (arg1)->SetColumnImage(arg2,arg3); | |
32548 | wxPyEndAllowThreads(__tstate); | |
32549 | if (PyErr_Occurred()) SWIG_fail; | |
32550 | } | |
32551 | resultobj = SWIG_Py_Void(); | |
32552 | return resultobj; | |
32553 | fail: | |
32554 | return NULL; | |
32555 | } | |
32556 | ||
32557 | ||
32558 | SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32559 | PyObject *resultobj = 0; | |
32560 | wxListView *arg1 = (wxListView *) 0 ; | |
32561 | int arg2 ; | |
32562 | void *argp1 = 0 ; | |
32563 | int res1 = 0 ; | |
32564 | int val2 ; | |
32565 | int ecode2 = 0 ; | |
32566 | PyObject * obj0 = 0 ; | |
32567 | PyObject * obj1 = 0 ; | |
32568 | char * kwnames[] = { | |
32569 | (char *) "self",(char *) "col", NULL | |
32570 | }; | |
32571 | ||
32572 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
32573 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32574 | if (!SWIG_IsOK(res1)) { | |
32575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32576 | } | |
32577 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32578 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32579 | if (!SWIG_IsOK(ecode2)) { | |
32580 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'"); | |
32581 | } | |
32582 | arg2 = static_cast< int >(val2); | |
32583 | { | |
32584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32585 | (arg1)->ClearColumnImage(arg2); | |
32586 | wxPyEndAllowThreads(__tstate); | |
32587 | if (PyErr_Occurred()) SWIG_fail; | |
32588 | } | |
32589 | resultobj = SWIG_Py_Void(); | |
32590 | return resultobj; | |
32591 | fail: | |
32592 | return NULL; | |
d55e5bfc RD |
32593 | } |
32594 | ||
32595 | ||
1bd55598 RD |
32596 | SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32597 | PyObject *obj; | |
32598 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32599 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj)); | |
32600 | return SWIG_Py_Void(); | |
d55e5bfc RD |
32601 | } |
32602 | ||
1bd55598 RD |
32603 | SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32604 | return SWIG_Python_InitShadowInstance(args); | |
32605 | } | |
d55e5bfc | 32606 | |
1bd55598 RD |
32607 | SWIGINTERN int TreeCtrlNameStr_set(PyObject *) { |
32608 | SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only."); | |
32609 | return 1; | |
d55e5bfc RD |
32610 | } |
32611 | ||
32612 | ||
1bd55598 RD |
32613 | SWIGINTERN PyObject *TreeCtrlNameStr_get(void) { |
32614 | PyObject *pyobj = 0; | |
32615 | ||
32616 | { | |
32617 | #if wxUSE_UNICODE | |
32618 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
32619 | #else | |
32620 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
32621 | #endif | |
32622 | } | |
32623 | return pyobj; | |
d55e5bfc RD |
32624 | } |
32625 | ||
32626 | ||
1bd55598 RD |
32627 | SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32628 | PyObject *resultobj = 0; | |
32629 | wxTreeItemId *result = 0 ; | |
32630 | ||
32631 | if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail; | |
32632 | { | |
32633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32634 | result = (wxTreeItemId *)new wxTreeItemId(); | |
32635 | wxPyEndAllowThreads(__tstate); | |
32636 | if (PyErr_Occurred()) SWIG_fail; | |
32637 | } | |
32638 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 ); | |
32639 | return resultobj; | |
32640 | fail: | |
32641 | return NULL; | |
d55e5bfc RD |
32642 | } |
32643 | ||
32644 | ||
1bd55598 RD |
32645 | SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32646 | PyObject *resultobj = 0; | |
32647 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32648 | void *argp1 = 0 ; | |
32649 | int res1 = 0 ; | |
32650 | PyObject *swig_obj[1] ; | |
32651 | ||
32652 | if (!args) SWIG_fail; | |
32653 | swig_obj[0] = args; | |
32654 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 ); | |
32655 | if (!SWIG_IsOK(res1)) { | |
32656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32657 | } | |
32658 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32659 | { | |
32660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32661 | delete arg1; | |
d55e5bfc | 32662 | |
1bd55598 RD |
32663 | wxPyEndAllowThreads(__tstate); |
32664 | if (PyErr_Occurred()) SWIG_fail; | |
32665 | } | |
32666 | resultobj = SWIG_Py_Void(); | |
32667 | return resultobj; | |
32668 | fail: | |
32669 | return NULL; | |
d55e5bfc RD |
32670 | } |
32671 | ||
32672 | ||
1bd55598 RD |
32673 | SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32674 | PyObject *resultobj = 0; | |
32675 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32676 | bool result; | |
32677 | void *argp1 = 0 ; | |
32678 | int res1 = 0 ; | |
32679 | PyObject *swig_obj[1] ; | |
32680 | ||
32681 | if (!args) SWIG_fail; | |
32682 | swig_obj[0] = args; | |
32683 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32684 | if (!SWIG_IsOK(res1)) { | |
32685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'"); | |
32686 | } | |
32687 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32688 | { | |
32689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32690 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
32691 | wxPyEndAllowThreads(__tstate); | |
32692 | if (PyErr_Occurred()) SWIG_fail; | |
32693 | } | |
32694 | { | |
32695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32696 | } | |
32697 | return resultobj; | |
32698 | fail: | |
32699 | return NULL; | |
32700 | } | |
32701 | ||
32702 | ||
32703 | SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32704 | PyObject *resultobj = 0; | |
32705 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32706 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
32707 | bool result; | |
32708 | void *argp1 = 0 ; | |
32709 | int res1 = 0 ; | |
32710 | void *argp2 = 0 ; | |
32711 | int res2 = 0 ; | |
32712 | PyObject * obj0 = 0 ; | |
32713 | PyObject * obj1 = 0 ; | |
32714 | char * kwnames[] = { | |
32715 | (char *) "self",(char *) "other", NULL | |
32716 | }; | |
32717 | ||
32718 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
32719 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32720 | if (!SWIG_IsOK(res1)) { | |
32721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32722 | } | |
32723 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32724 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32725 | if (!SWIG_IsOK(res2)) { | |
32726 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'"); | |
32727 | } | |
32728 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32729 | { | |
32730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32731 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
32732 | wxPyEndAllowThreads(__tstate); | |
32733 | if (PyErr_Occurred()) SWIG_fail; | |
32734 | } | |
32735 | { | |
32736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32737 | } | |
32738 | return resultobj; | |
32739 | fail: | |
32740 | return NULL; | |
32741 | } | |
32742 | ||
32743 | ||
32744 | SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32745 | PyObject *resultobj = 0; | |
32746 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32747 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
32748 | bool result; | |
32749 | void *argp1 = 0 ; | |
32750 | int res1 = 0 ; | |
32751 | void *argp2 = 0 ; | |
32752 | int res2 = 0 ; | |
32753 | PyObject * obj0 = 0 ; | |
32754 | PyObject * obj1 = 0 ; | |
32755 | char * kwnames[] = { | |
32756 | (char *) "self",(char *) "other", NULL | |
32757 | }; | |
32758 | ||
32759 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
32760 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32761 | if (!SWIG_IsOK(res1)) { | |
32762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32763 | } | |
32764 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32765 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32766 | if (!SWIG_IsOK(res2)) { | |
32767 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'"); | |
32768 | } | |
32769 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32770 | { | |
32771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32772 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
32773 | wxPyEndAllowThreads(__tstate); | |
32774 | if (PyErr_Occurred()) SWIG_fail; | |
32775 | } | |
32776 | { | |
32777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32778 | } | |
32779 | return resultobj; | |
32780 | fail: | |
32781 | return NULL; | |
d55e5bfc RD |
32782 | } |
32783 | ||
32784 | ||
1bd55598 RD |
32785 | SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32786 | PyObject *resultobj = 0; | |
32787 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32788 | void *arg2 = (void *) 0 ; | |
32789 | void *argp1 = 0 ; | |
32790 | int res1 = 0 ; | |
32791 | int res2 ; | |
32792 | PyObject *swig_obj[2] ; | |
32793 | ||
32794 | if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail; | |
32795 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32796 | if (!SWIG_IsOK(res1)) { | |
32797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32798 | } | |
32799 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32800 | res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); | |
32801 | if (!SWIG_IsOK(res2)) { | |
32802 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'"); | |
32803 | } | |
32804 | if (arg1) (arg1)->m_pItem = arg2; | |
32805 | ||
32806 | resultobj = SWIG_Py_Void(); | |
32807 | return resultobj; | |
32808 | fail: | |
32809 | return NULL; | |
d55e5bfc RD |
32810 | } |
32811 | ||
32812 | ||
1bd55598 RD |
32813 | SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32814 | PyObject *resultobj = 0; | |
32815 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32816 | void *result = 0 ; | |
32817 | void *argp1 = 0 ; | |
32818 | int res1 = 0 ; | |
32819 | PyObject *swig_obj[1] ; | |
32820 | ||
32821 | if (!args) SWIG_fail; | |
32822 | swig_obj[0] = args; | |
32823 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32824 | if (!SWIG_IsOK(res1)) { | |
32825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32826 | } | |
32827 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32828 | result = (void *) ((arg1)->m_pItem); | |
32829 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
32830 | return resultobj; | |
32831 | fail: | |
32832 | return NULL; | |
d55e5bfc RD |
32833 | } |
32834 | ||
32835 | ||
1bd55598 RD |
32836 | SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32837 | PyObject *obj; | |
32838 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32839 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj)); | |
32840 | return SWIG_Py_Void(); | |
d55e5bfc RD |
32841 | } |
32842 | ||
1bd55598 RD |
32843 | SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32844 | return SWIG_Python_InitShadowInstance(args); | |
32845 | } | |
d55e5bfc | 32846 | |
1bd55598 RD |
32847 | SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32848 | PyObject *resultobj = 0; | |
32849 | PyObject *arg1 = (PyObject *) NULL ; | |
32850 | wxPyTreeItemData *result = 0 ; | |
32851 | PyObject * obj0 = 0 ; | |
32852 | char * kwnames[] = { | |
32853 | (char *) "obj", NULL | |
32854 | }; | |
32855 | ||
32856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail; | |
32857 | if (obj0) { | |
32858 | arg1 = obj0; | |
32859 | } | |
32860 | { | |
32861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32862 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
32863 | wxPyEndAllowThreads(__tstate); | |
32864 | if (PyErr_Occurred()) SWIG_fail; | |
32865 | } | |
32866 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 ); | |
32867 | return resultobj; | |
32868 | fail: | |
32869 | return NULL; | |
d55e5bfc RD |
32870 | } |
32871 | ||
32872 | ||
1bd55598 RD |
32873 | SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32874 | PyObject *resultobj = 0; | |
32875 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32876 | void *argp1 = 0 ; | |
32877 | int res1 = 0 ; | |
32878 | PyObject *swig_obj[1] ; | |
32879 | ||
32880 | if (!args) SWIG_fail; | |
32881 | swig_obj[0] = args; | |
32882 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
32883 | if (!SWIG_IsOK(res1)) { | |
32884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32885 | } | |
32886 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32887 | { | |
32888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32889 | delete arg1; | |
d55e5bfc | 32890 | |
1bd55598 RD |
32891 | wxPyEndAllowThreads(__tstate); |
32892 | if (PyErr_Occurred()) SWIG_fail; | |
32893 | } | |
32894 | resultobj = SWIG_Py_Void(); | |
32895 | return resultobj; | |
32896 | fail: | |
32897 | return NULL; | |
d55e5bfc RD |
32898 | } |
32899 | ||
32900 | ||
1bd55598 RD |
32901 | SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32902 | PyObject *resultobj = 0; | |
32903 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32904 | PyObject *result = 0 ; | |
32905 | void *argp1 = 0 ; | |
32906 | int res1 = 0 ; | |
32907 | PyObject *swig_obj[1] ; | |
32908 | ||
32909 | if (!args) SWIG_fail; | |
32910 | swig_obj[0] = args; | |
32911 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
32912 | if (!SWIG_IsOK(res1)) { | |
32913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32914 | } | |
32915 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32916 | { | |
32917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32918 | result = (PyObject *)(arg1)->GetData(); | |
32919 | wxPyEndAllowThreads(__tstate); | |
32920 | if (PyErr_Occurred()) SWIG_fail; | |
32921 | } | |
32922 | resultobj = result; | |
32923 | return resultobj; | |
32924 | fail: | |
32925 | return NULL; | |
32926 | } | |
32927 | ||
32928 | ||
32929 | SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32930 | PyObject *resultobj = 0; | |
32931 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32932 | PyObject *arg2 = (PyObject *) 0 ; | |
32933 | void *argp1 = 0 ; | |
32934 | int res1 = 0 ; | |
32935 | PyObject * obj0 = 0 ; | |
32936 | PyObject * obj1 = 0 ; | |
32937 | char * kwnames[] = { | |
32938 | (char *) "self",(char *) "obj", NULL | |
32939 | }; | |
32940 | ||
32941 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
32942 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
32943 | if (!SWIG_IsOK(res1)) { | |
32944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32945 | } | |
32946 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32947 | arg2 = obj1; | |
32948 | { | |
32949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32950 | (arg1)->SetData(arg2); | |
32951 | wxPyEndAllowThreads(__tstate); | |
32952 | if (PyErr_Occurred()) SWIG_fail; | |
32953 | } | |
32954 | resultobj = SWIG_Py_Void(); | |
32955 | return resultobj; | |
32956 | fail: | |
32957 | return NULL; | |
d55e5bfc RD |
32958 | } |
32959 | ||
32960 | ||
1bd55598 RD |
32961 | SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32962 | PyObject *resultobj = 0; | |
32963 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32964 | wxTreeItemId *result = 0 ; | |
32965 | void *argp1 = 0 ; | |
32966 | int res1 = 0 ; | |
32967 | PyObject *swig_obj[1] ; | |
32968 | ||
32969 | if (!args) SWIG_fail; | |
32970 | swig_obj[0] = args; | |
32971 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
32972 | if (!SWIG_IsOK(res1)) { | |
32973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32974 | } | |
32975 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32976 | { | |
32977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 32978 | { |
1bd55598 RD |
32979 | wxTreeItemId const &_result_ref = (arg1)->GetId(); |
32980 | result = (wxTreeItemId *) &_result_ref; | |
d55e5bfc | 32981 | } |
1bd55598 RD |
32982 | wxPyEndAllowThreads(__tstate); |
32983 | if (PyErr_Occurred()) SWIG_fail; | |
32984 | } | |
32985 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32986 | return resultobj; | |
32987 | fail: | |
32988 | return NULL; | |
32989 | } | |
32990 | ||
32991 | ||
32992 | SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32993 | PyObject *resultobj = 0; | |
32994 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32995 | wxTreeItemId *arg2 = 0 ; | |
32996 | void *argp1 = 0 ; | |
32997 | int res1 = 0 ; | |
32998 | void *argp2 = 0 ; | |
32999 | int res2 = 0 ; | |
33000 | PyObject * obj0 = 0 ; | |
33001 | PyObject * obj1 = 0 ; | |
33002 | char * kwnames[] = { | |
33003 | (char *) "self",(char *) "id", NULL | |
33004 | }; | |
33005 | ||
33006 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
33007 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33008 | if (!SWIG_IsOK(res1)) { | |
33009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33010 | } | |
33011 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33012 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33013 | if (!SWIG_IsOK(res2)) { | |
33014 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33015 | } | |
33016 | if (!argp2) { | |
33017 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33018 | } | |
33019 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33020 | { | |
33021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33022 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
33023 | wxPyEndAllowThreads(__tstate); | |
33024 | if (PyErr_Occurred()) SWIG_fail; | |
33025 | } | |
33026 | resultobj = SWIG_Py_Void(); | |
33027 | return resultobj; | |
33028 | fail: | |
33029 | return NULL; | |
d55e5bfc RD |
33030 | } |
33031 | ||
33032 | ||
1bd55598 RD |
33033 | SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33034 | PyObject *resultobj = 0; | |
33035 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33036 | void *argp1 = 0 ; | |
33037 | int res1 = 0 ; | |
33038 | PyObject *swig_obj[1] ; | |
33039 | ||
33040 | if (!args) SWIG_fail; | |
33041 | swig_obj[0] = args; | |
33042 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33043 | if (!SWIG_IsOK(res1)) { | |
33044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33045 | } | |
33046 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33047 | { | |
33048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33049 | wxPyTreeItemData_Destroy(arg1); | |
33050 | wxPyEndAllowThreads(__tstate); | |
33051 | if (PyErr_Occurred()) SWIG_fail; | |
33052 | } | |
33053 | resultobj = SWIG_Py_Void(); | |
33054 | return resultobj; | |
33055 | fail: | |
33056 | return NULL; | |
d55e5bfc RD |
33057 | } |
33058 | ||
33059 | ||
1bd55598 RD |
33060 | SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33061 | PyObject *obj; | |
33062 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33063 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj)); | |
33064 | return SWIG_Py_Void(); | |
d55e5bfc RD |
33065 | } |
33066 | ||
1bd55598 RD |
33067 | SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33068 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
33069 | } |
33070 | ||
b02396e8 RD |
33071 | SWIGINTERN int NullTreeItemId_set(PyObject *_val) { |
33072 | { | |
33073 | void *argp = 0; | |
33074 | int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33075 | if (!SWIG_IsOK(res)) { | |
33076 | SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'"); | |
33077 | } | |
33078 | if (!argp) { | |
33079 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'"); | |
33080 | } else { | |
33081 | wxTreeItemId * temp; | |
33082 | temp = reinterpret_cast< wxTreeItemId * >(argp); | |
33083 | wxNullTreeItemId = *temp; | |
33084 | if (SWIG_IsNewObj(res)) delete temp; | |
33085 | } | |
33086 | } | |
33087 | return 0; | |
33088 | fail: | |
33089 | return 1; | |
33090 | } | |
33091 | ||
33092 | ||
33093 | SWIGINTERN PyObject *NullTreeItemId_get(void) { | |
33094 | PyObject *pyobj = 0; | |
33095 | ||
33096 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 ); | |
33097 | return pyobj; | |
33098 | } | |
33099 | ||
33100 | ||
33101 | SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
1bd55598 RD |
33102 | PyObject *resultobj = 0; |
33103 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
33104 | int arg2 = (int) 0 ; | |
33105 | wxTreeEvent *result = 0 ; | |
33106 | int val1 ; | |
33107 | int ecode1 = 0 ; | |
33108 | int val2 ; | |
33109 | int ecode2 = 0 ; | |
1bd55598 | 33110 | |
b02396e8 RD |
33111 | if ((nobjs < 0) || (nobjs > 2)) SWIG_fail; |
33112 | if (swig_obj[0]) { | |
33113 | ecode1 = SWIG_AsVal_int(swig_obj[0], &val1); | |
1bd55598 RD |
33114 | if (!SWIG_IsOK(ecode1)) { |
33115 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
33116 | } | |
33117 | arg1 = static_cast< wxEventType >(val1); | |
33118 | } | |
b02396e8 RD |
33119 | if (swig_obj[1]) { |
33120 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
1bd55598 RD |
33121 | if (!SWIG_IsOK(ecode2)) { |
33122 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'"); | |
33123 | } | |
33124 | arg2 = static_cast< int >(val2); | |
33125 | } | |
33126 | { | |
33127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33128 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
33129 | wxPyEndAllowThreads(__tstate); | |
33130 | if (PyErr_Occurred()) SWIG_fail; | |
33131 | } | |
33132 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 ); | |
33133 | return resultobj; | |
33134 | fail: | |
33135 | return NULL; | |
d55e5bfc RD |
33136 | } |
33137 | ||
33138 | ||
b02396e8 RD |
33139 | SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
33140 | PyObject *resultobj = 0; | |
33141 | wxEventType arg1 ; | |
33142 | wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ; | |
33143 | wxTreeItemId &arg3_defvalue = wxNullTreeItemId ; | |
33144 | wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ; | |
33145 | wxTreeEvent *result = 0 ; | |
33146 | int val1 ; | |
33147 | int ecode1 = 0 ; | |
33148 | void *argp2 = 0 ; | |
33149 | int res2 = 0 ; | |
33150 | void *argp3 = 0 ; | |
33151 | int res3 = 0 ; | |
33152 | ||
33153 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
33154 | ecode1 = SWIG_AsVal_int(swig_obj[0], &val1); | |
33155 | if (!SWIG_IsOK(ecode1)) { | |
33156 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
33157 | } | |
33158 | arg1 = static_cast< wxEventType >(val1); | |
33159 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33160 | if (!SWIG_IsOK(res2)) { | |
33161 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'"); | |
33162 | } | |
33163 | arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2); | |
33164 | if (swig_obj[2]) { | |
33165 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 ); | |
33166 | if (!SWIG_IsOK(res3)) { | |
33167 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'"); | |
33168 | } | |
33169 | if (!argp3) { | |
33170 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'"); | |
33171 | } | |
33172 | arg3 = reinterpret_cast< wxTreeItemId * >(argp3); | |
33173 | } | |
33174 | { | |
33175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33176 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3); | |
33177 | wxPyEndAllowThreads(__tstate); | |
33178 | if (PyErr_Occurred()) SWIG_fail; | |
33179 | } | |
33180 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 ); | |
33181 | return resultobj; | |
33182 | fail: | |
33183 | return NULL; | |
33184 | } | |
33185 | ||
33186 | ||
33187 | SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) { | |
33188 | int argc; | |
33189 | PyObject *argv[4]; | |
33190 | ||
33191 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail; | |
33192 | --argc; | |
33193 | if ((argc >= 0) && (argc <= 2)) { | |
33194 | int _v = 0; | |
33195 | if (argc > 1) { | |
33196 | { | |
33197 | { | |
33198 | int res = SWIG_AsVal_int(argv[1], NULL); | |
33199 | _v = SWIG_CheckState(res); | |
33200 | } | |
33201 | } | |
33202 | if (!_v) goto check_1; | |
33203 | } | |
33204 | return _wrap_new_TreeEvent__SWIG_0(self, argc, argv); | |
33205 | } | |
33206 | check_1: | |
33207 | ||
33208 | if ((argc >= 2) && (argc <= 3)) { | |
33209 | return _wrap_new_TreeEvent__SWIG_1(self, argc, argv); | |
33210 | } | |
33211 | ||
33212 | fail: | |
33213 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'"); | |
33214 | return NULL; | |
33215 | } | |
33216 | ||
33217 | ||
1bd55598 RD |
33218 | SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33219 | PyObject *resultobj = 0; | |
33220 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33221 | wxTreeItemId result; | |
33222 | void *argp1 = 0 ; | |
33223 | int res1 = 0 ; | |
33224 | PyObject *swig_obj[1] ; | |
33225 | ||
33226 | if (!args) SWIG_fail; | |
33227 | swig_obj[0] = args; | |
33228 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33229 | if (!SWIG_IsOK(res1)) { | |
33230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33231 | } | |
33232 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33233 | { | |
33234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33235 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
33236 | wxPyEndAllowThreads(__tstate); | |
33237 | if (PyErr_Occurred()) SWIG_fail; | |
33238 | } | |
33239 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
33240 | return resultobj; | |
33241 | fail: | |
33242 | return NULL; | |
33243 | } | |
33244 | ||
33245 | ||
33246 | SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33247 | PyObject *resultobj = 0; | |
33248 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33249 | wxTreeItemId *arg2 = 0 ; | |
33250 | void *argp1 = 0 ; | |
33251 | int res1 = 0 ; | |
33252 | void *argp2 = 0 ; | |
33253 | int res2 = 0 ; | |
33254 | PyObject * obj0 = 0 ; | |
33255 | PyObject * obj1 = 0 ; | |
33256 | char * kwnames[] = { | |
33257 | (char *) "self",(char *) "item", NULL | |
33258 | }; | |
33259 | ||
33260 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
33261 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33262 | if (!SWIG_IsOK(res1)) { | |
33263 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33264 | } | |
33265 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33266 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33267 | if (!SWIG_IsOK(res2)) { | |
33268 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33269 | } | |
33270 | if (!argp2) { | |
33271 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33272 | } | |
33273 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33274 | { | |
33275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33276 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
33277 | wxPyEndAllowThreads(__tstate); | |
33278 | if (PyErr_Occurred()) SWIG_fail; | |
33279 | } | |
33280 | resultobj = SWIG_Py_Void(); | |
33281 | return resultobj; | |
33282 | fail: | |
33283 | return NULL; | |
d55e5bfc RD |
33284 | } |
33285 | ||
33286 | ||
1bd55598 RD |
33287 | SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33288 | PyObject *resultobj = 0; | |
33289 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33290 | wxTreeItemId result; | |
33291 | void *argp1 = 0 ; | |
33292 | int res1 = 0 ; | |
33293 | PyObject *swig_obj[1] ; | |
33294 | ||
33295 | if (!args) SWIG_fail; | |
33296 | swig_obj[0] = args; | |
33297 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33298 | if (!SWIG_IsOK(res1)) { | |
33299 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33300 | } | |
33301 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33302 | { | |
33303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33304 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
33305 | wxPyEndAllowThreads(__tstate); | |
33306 | if (PyErr_Occurred()) SWIG_fail; | |
33307 | } | |
33308 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
33309 | return resultobj; | |
33310 | fail: | |
33311 | return NULL; | |
33312 | } | |
33313 | ||
33314 | ||
33315 | SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33316 | PyObject *resultobj = 0; | |
33317 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33318 | wxTreeItemId *arg2 = 0 ; | |
33319 | void *argp1 = 0 ; | |
33320 | int res1 = 0 ; | |
33321 | void *argp2 = 0 ; | |
33322 | int res2 = 0 ; | |
33323 | PyObject * obj0 = 0 ; | |
33324 | PyObject * obj1 = 0 ; | |
33325 | char * kwnames[] = { | |
33326 | (char *) "self",(char *) "item", NULL | |
33327 | }; | |
33328 | ||
33329 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
33330 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33331 | if (!SWIG_IsOK(res1)) { | |
33332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33333 | } | |
33334 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33335 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33336 | if (!SWIG_IsOK(res2)) { | |
33337 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33338 | } | |
33339 | if (!argp2) { | |
33340 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33341 | } | |
33342 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33343 | { | |
33344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33345 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
33346 | wxPyEndAllowThreads(__tstate); | |
33347 | if (PyErr_Occurred()) SWIG_fail; | |
33348 | } | |
33349 | resultobj = SWIG_Py_Void(); | |
33350 | return resultobj; | |
33351 | fail: | |
33352 | return NULL; | |
d55e5bfc RD |
33353 | } |
33354 | ||
33355 | ||
1bd55598 RD |
33356 | SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33357 | PyObject *resultobj = 0; | |
33358 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33359 | wxPoint result; | |
33360 | void *argp1 = 0 ; | |
33361 | int res1 = 0 ; | |
33362 | PyObject *swig_obj[1] ; | |
33363 | ||
33364 | if (!args) SWIG_fail; | |
33365 | swig_obj[0] = args; | |
33366 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33367 | if (!SWIG_IsOK(res1)) { | |
33368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33369 | } | |
33370 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33371 | { | |
33372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33373 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
33374 | wxPyEndAllowThreads(__tstate); | |
33375 | if (PyErr_Occurred()) SWIG_fail; | |
33376 | } | |
33377 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
33378 | return resultobj; | |
33379 | fail: | |
33380 | return NULL; | |
33381 | } | |
33382 | ||
33383 | ||
33384 | SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33385 | PyObject *resultobj = 0; | |
33386 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33387 | wxPoint *arg2 = 0 ; | |
33388 | void *argp1 = 0 ; | |
33389 | int res1 = 0 ; | |
33390 | wxPoint temp2 ; | |
33391 | PyObject * obj0 = 0 ; | |
33392 | PyObject * obj1 = 0 ; | |
33393 | char * kwnames[] = { | |
33394 | (char *) "self",(char *) "pt", NULL | |
33395 | }; | |
33396 | ||
33397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
33398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33399 | if (!SWIG_IsOK(res1)) { | |
33400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33401 | } | |
33402 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33403 | { | |
33404 | arg2 = &temp2; | |
33405 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33406 | } | |
33407 | { | |
33408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33409 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
33410 | wxPyEndAllowThreads(__tstate); | |
33411 | if (PyErr_Occurred()) SWIG_fail; | |
33412 | } | |
33413 | resultobj = SWIG_Py_Void(); | |
33414 | return resultobj; | |
33415 | fail: | |
33416 | return NULL; | |
d55e5bfc RD |
33417 | } |
33418 | ||
33419 | ||
1bd55598 RD |
33420 | SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33421 | PyObject *resultobj = 0; | |
33422 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33423 | wxKeyEvent *result = 0 ; | |
33424 | void *argp1 = 0 ; | |
33425 | int res1 = 0 ; | |
33426 | PyObject *swig_obj[1] ; | |
33427 | ||
33428 | if (!args) SWIG_fail; | |
33429 | swig_obj[0] = args; | |
33430 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33431 | if (!SWIG_IsOK(res1)) { | |
33432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33433 | } | |
33434 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33435 | { | |
33436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 33437 | { |
1bd55598 RD |
33438 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); |
33439 | result = (wxKeyEvent *) &_result_ref; | |
d55e5bfc | 33440 | } |
1bd55598 RD |
33441 | wxPyEndAllowThreads(__tstate); |
33442 | if (PyErr_Occurred()) SWIG_fail; | |
33443 | } | |
33444 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 ); | |
33445 | return resultobj; | |
33446 | fail: | |
33447 | return NULL; | |
d55e5bfc RD |
33448 | } |
33449 | ||
33450 | ||
1bd55598 RD |
33451 | SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33452 | PyObject *resultobj = 0; | |
33453 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33454 | int result; | |
33455 | void *argp1 = 0 ; | |
33456 | int res1 = 0 ; | |
33457 | PyObject *swig_obj[1] ; | |
33458 | ||
33459 | if (!args) SWIG_fail; | |
33460 | swig_obj[0] = args; | |
33461 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33462 | if (!SWIG_IsOK(res1)) { | |
33463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33464 | } | |
33465 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33466 | { | |
33467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33468 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
33469 | wxPyEndAllowThreads(__tstate); | |
33470 | if (PyErr_Occurred()) SWIG_fail; | |
33471 | } | |
33472 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33473 | return resultobj; | |
33474 | fail: | |
33475 | return NULL; | |
33476 | } | |
33477 | ||
33478 | ||
33479 | SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33480 | PyObject *resultobj = 0; | |
33481 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33482 | wxKeyEvent *arg2 = 0 ; | |
33483 | void *argp1 = 0 ; | |
33484 | int res1 = 0 ; | |
33485 | void *argp2 = 0 ; | |
33486 | int res2 = 0 ; | |
33487 | PyObject * obj0 = 0 ; | |
33488 | PyObject * obj1 = 0 ; | |
33489 | char * kwnames[] = { | |
33490 | (char *) "self",(char *) "evt", NULL | |
33491 | }; | |
33492 | ||
33493 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
33494 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33495 | if (!SWIG_IsOK(res1)) { | |
33496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33497 | } | |
33498 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33499 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0); | |
33500 | if (!SWIG_IsOK(res2)) { | |
33501 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
33502 | } | |
33503 | if (!argp2) { | |
33504 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
33505 | } | |
33506 | arg2 = reinterpret_cast< wxKeyEvent * >(argp2); | |
33507 | { | |
33508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33509 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
33510 | wxPyEndAllowThreads(__tstate); | |
33511 | if (PyErr_Occurred()) SWIG_fail; | |
33512 | } | |
33513 | resultobj = SWIG_Py_Void(); | |
33514 | return resultobj; | |
33515 | fail: | |
33516 | return NULL; | |
d55e5bfc RD |
33517 | } |
33518 | ||
33519 | ||
1bd55598 RD |
33520 | SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33521 | PyObject *resultobj = 0; | |
33522 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33523 | wxString *result = 0 ; | |
33524 | void *argp1 = 0 ; | |
33525 | int res1 = 0 ; | |
33526 | PyObject *swig_obj[1] ; | |
33527 | ||
33528 | if (!args) SWIG_fail; | |
33529 | swig_obj[0] = args; | |
33530 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33531 | if (!SWIG_IsOK(res1)) { | |
33532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33533 | } | |
33534 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33535 | { | |
33536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 33537 | { |
1bd55598 RD |
33538 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); |
33539 | result = (wxString *) &_result_ref; | |
d55e5bfc | 33540 | } |
1bd55598 RD |
33541 | wxPyEndAllowThreads(__tstate); |
33542 | if (PyErr_Occurred()) SWIG_fail; | |
33543 | } | |
33544 | { | |
33545 | #if wxUSE_UNICODE | |
33546 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33547 | #else | |
33548 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33549 | #endif | |
33550 | } | |
33551 | return resultobj; | |
33552 | fail: | |
33553 | return NULL; | |
33554 | } | |
33555 | ||
33556 | ||
33557 | SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33558 | PyObject *resultobj = 0; | |
33559 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33560 | wxString *arg2 = 0 ; | |
33561 | void *argp1 = 0 ; | |
33562 | int res1 = 0 ; | |
33563 | bool temp2 = false ; | |
33564 | PyObject * obj0 = 0 ; | |
33565 | PyObject * obj1 = 0 ; | |
33566 | char * kwnames[] = { | |
33567 | (char *) "self",(char *) "label", NULL | |
33568 | }; | |
33569 | ||
33570 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
33571 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33572 | if (!SWIG_IsOK(res1)) { | |
33573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33574 | } | |
33575 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33576 | { | |
33577 | arg2 = wxString_in_helper(obj1); | |
33578 | if (arg2 == NULL) SWIG_fail; | |
33579 | temp2 = true; | |
33580 | } | |
33581 | { | |
33582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33583 | (arg1)->SetLabel((wxString const &)*arg2); | |
33584 | wxPyEndAllowThreads(__tstate); | |
33585 | if (PyErr_Occurred()) SWIG_fail; | |
33586 | } | |
33587 | resultobj = SWIG_Py_Void(); | |
33588 | { | |
33589 | if (temp2) | |
33590 | delete arg2; | |
33591 | } | |
33592 | return resultobj; | |
33593 | fail: | |
33594 | { | |
33595 | if (temp2) | |
33596 | delete arg2; | |
33597 | } | |
33598 | return NULL; | |
d55e5bfc RD |
33599 | } |
33600 | ||
33601 | ||
1bd55598 RD |
33602 | SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33603 | PyObject *resultobj = 0; | |
33604 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33605 | bool result; | |
33606 | void *argp1 = 0 ; | |
33607 | int res1 = 0 ; | |
33608 | PyObject *swig_obj[1] ; | |
33609 | ||
33610 | if (!args) SWIG_fail; | |
33611 | swig_obj[0] = args; | |
33612 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33613 | if (!SWIG_IsOK(res1)) { | |
33614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33615 | } | |
33616 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33617 | { | |
33618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33619 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
33620 | wxPyEndAllowThreads(__tstate); | |
33621 | if (PyErr_Occurred()) SWIG_fail; | |
33622 | } | |
33623 | { | |
33624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33625 | } | |
33626 | return resultobj; | |
33627 | fail: | |
33628 | return NULL; | |
33629 | } | |
33630 | ||
33631 | ||
33632 | SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33633 | PyObject *resultobj = 0; | |
33634 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33635 | bool arg2 ; | |
33636 | void *argp1 = 0 ; | |
33637 | int res1 = 0 ; | |
33638 | bool val2 ; | |
33639 | int ecode2 = 0 ; | |
33640 | PyObject * obj0 = 0 ; | |
33641 | PyObject * obj1 = 0 ; | |
33642 | char * kwnames[] = { | |
33643 | (char *) "self",(char *) "editCancelled", NULL | |
33644 | }; | |
33645 | ||
33646 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail; | |
33647 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33648 | if (!SWIG_IsOK(res1)) { | |
33649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33650 | } | |
33651 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33652 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
33653 | if (!SWIG_IsOK(ecode2)) { | |
33654 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'"); | |
33655 | } | |
33656 | arg2 = static_cast< bool >(val2); | |
33657 | { | |
33658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33659 | (arg1)->SetEditCanceled(arg2); | |
33660 | wxPyEndAllowThreads(__tstate); | |
33661 | if (PyErr_Occurred()) SWIG_fail; | |
33662 | } | |
33663 | resultobj = SWIG_Py_Void(); | |
33664 | return resultobj; | |
33665 | fail: | |
33666 | return NULL; | |
33667 | } | |
33668 | ||
33669 | ||
33670 | SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33671 | PyObject *resultobj = 0; | |
33672 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33673 | wxString *arg2 = 0 ; | |
33674 | void *argp1 = 0 ; | |
33675 | int res1 = 0 ; | |
33676 | bool temp2 = false ; | |
33677 | PyObject * obj0 = 0 ; | |
33678 | PyObject * obj1 = 0 ; | |
33679 | char * kwnames[] = { | |
33680 | (char *) "self",(char *) "toolTip", NULL | |
33681 | }; | |
33682 | ||
33683 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail; | |
33684 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33685 | if (!SWIG_IsOK(res1)) { | |
33686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33687 | } | |
33688 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33689 | { | |
33690 | arg2 = wxString_in_helper(obj1); | |
33691 | if (arg2 == NULL) SWIG_fail; | |
33692 | temp2 = true; | |
33693 | } | |
33694 | { | |
33695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33696 | (arg1)->SetToolTip((wxString const &)*arg2); | |
33697 | wxPyEndAllowThreads(__tstate); | |
33698 | if (PyErr_Occurred()) SWIG_fail; | |
33699 | } | |
33700 | resultobj = SWIG_Py_Void(); | |
33701 | { | |
33702 | if (temp2) | |
33703 | delete arg2; | |
33704 | } | |
33705 | return resultobj; | |
33706 | fail: | |
33707 | { | |
33708 | if (temp2) | |
33709 | delete arg2; | |
33710 | } | |
33711 | return NULL; | |
d55e5bfc RD |
33712 | } |
33713 | ||
33714 | ||
1bd55598 RD |
33715 | SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33716 | PyObject *resultobj = 0; | |
33717 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33718 | wxString result; | |
33719 | void *argp1 = 0 ; | |
33720 | int res1 = 0 ; | |
33721 | PyObject *swig_obj[1] ; | |
33722 | ||
33723 | if (!args) SWIG_fail; | |
33724 | swig_obj[0] = args; | |
33725 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33726 | if (!SWIG_IsOK(res1)) { | |
33727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33728 | } | |
33729 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33730 | { | |
33731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33732 | result = (arg1)->GetToolTip(); | |
33733 | wxPyEndAllowThreads(__tstate); | |
33734 | if (PyErr_Occurred()) SWIG_fail; | |
33735 | } | |
33736 | { | |
33737 | #if wxUSE_UNICODE | |
33738 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33739 | #else | |
33740 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33741 | #endif | |
33742 | } | |
33743 | return resultobj; | |
33744 | fail: | |
33745 | return NULL; | |
33746 | } | |
33747 | ||
33748 | ||
33749 | SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33750 | PyObject *obj; | |
33751 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33752 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj)); | |
33753 | return SWIG_Py_Void(); | |
33754 | } | |
33755 | ||
33756 | SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33757 | return SWIG_Python_InitShadowInstance(args); | |
33758 | } | |
33759 | ||
33760 | SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33761 | PyObject *resultobj = 0; | |
33762 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33763 | int arg2 = (int) -1 ; | |
33764 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
33765 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33766 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33767 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33768 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
33769 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
33770 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
33771 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
33772 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33773 | wxPyTreeCtrl *result = 0 ; | |
33774 | void *argp1 = 0 ; | |
33775 | int res1 = 0 ; | |
33776 | int val2 ; | |
33777 | int ecode2 = 0 ; | |
33778 | wxPoint temp3 ; | |
33779 | wxSize temp4 ; | |
33780 | long val5 ; | |
33781 | int ecode5 = 0 ; | |
33782 | void *argp6 = 0 ; | |
33783 | int res6 = 0 ; | |
33784 | bool temp7 = false ; | |
33785 | PyObject * obj0 = 0 ; | |
33786 | PyObject * obj1 = 0 ; | |
33787 | PyObject * obj2 = 0 ; | |
33788 | PyObject * obj3 = 0 ; | |
33789 | PyObject * obj4 = 0 ; | |
33790 | PyObject * obj5 = 0 ; | |
33791 | PyObject * obj6 = 0 ; | |
33792 | char * kwnames[] = { | |
33793 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33794 | }; | |
33795 | ||
33796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
33797 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33798 | if (!SWIG_IsOK(res1)) { | |
33799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
33800 | } | |
33801 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
33802 | if (obj1) { | |
33803 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33804 | if (!SWIG_IsOK(ecode2)) { | |
33805 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'"); | |
33806 | } | |
33807 | arg2 = static_cast< int >(val2); | |
33808 | } | |
33809 | if (obj2) { | |
d55e5bfc | 33810 | { |
1bd55598 RD |
33811 | arg3 = &temp3; |
33812 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 33813 | } |
1bd55598 RD |
33814 | } |
33815 | if (obj3) { | |
36ed4f51 | 33816 | { |
1bd55598 RD |
33817 | arg4 = &temp4; |
33818 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 33819 | } |
1bd55598 RD |
33820 | } |
33821 | if (obj4) { | |
33822 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
33823 | if (!SWIG_IsOK(ecode5)) { | |
33824 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'"); | |
33825 | } | |
33826 | arg5 = static_cast< long >(val5); | |
33827 | } | |
33828 | if (obj5) { | |
33829 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
33830 | if (!SWIG_IsOK(res6)) { | |
33831 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 33832 | } |
1bd55598 RD |
33833 | if (!argp6) { |
33834 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 33835 | } |
1bd55598 RD |
33836 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
33837 | } | |
33838 | if (obj6) { | |
d55e5bfc | 33839 | { |
1bd55598 RD |
33840 | arg7 = wxString_in_helper(obj6); |
33841 | if (arg7 == NULL) SWIG_fail; | |
33842 | temp7 = true; | |
d55e5bfc | 33843 | } |
1bd55598 RD |
33844 | } |
33845 | { | |
33846 | if (!wxPyCheckForApp()) SWIG_fail; | |
33847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33848 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
33849 | wxPyEndAllowThreads(__tstate); | |
33850 | if (PyErr_Occurred()) SWIG_fail; | |
33851 | } | |
33852 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 ); | |
33853 | { | |
33854 | if (temp7) | |
33855 | delete arg7; | |
33856 | } | |
33857 | return resultobj; | |
33858 | fail: | |
33859 | { | |
33860 | if (temp7) | |
33861 | delete arg7; | |
33862 | } | |
33863 | return NULL; | |
33864 | } | |
33865 | ||
33866 | ||
33867 | SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33868 | PyObject *resultobj = 0; | |
33869 | wxPyTreeCtrl *result = 0 ; | |
33870 | ||
33871 | if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail; | |
33872 | { | |
33873 | if (!wxPyCheckForApp()) SWIG_fail; | |
33874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33875 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
33876 | wxPyEndAllowThreads(__tstate); | |
33877 | if (PyErr_Occurred()) SWIG_fail; | |
33878 | } | |
33879 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 ); | |
33880 | return resultobj; | |
33881 | fail: | |
33882 | return NULL; | |
33883 | } | |
33884 | ||
33885 | ||
33886 | SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33887 | PyObject *resultobj = 0; | |
33888 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33889 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33890 | int arg3 = (int) -1 ; | |
33891 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
33892 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
33893 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
33894 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
33895 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
33896 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
33897 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
33898 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
33899 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
33900 | bool result; | |
33901 | void *argp1 = 0 ; | |
33902 | int res1 = 0 ; | |
33903 | void *argp2 = 0 ; | |
33904 | int res2 = 0 ; | |
33905 | int val3 ; | |
33906 | int ecode3 = 0 ; | |
33907 | wxPoint temp4 ; | |
33908 | wxSize temp5 ; | |
33909 | long val6 ; | |
33910 | int ecode6 = 0 ; | |
33911 | void *argp7 = 0 ; | |
33912 | int res7 = 0 ; | |
33913 | bool temp8 = false ; | |
33914 | PyObject * obj0 = 0 ; | |
33915 | PyObject * obj1 = 0 ; | |
33916 | PyObject * obj2 = 0 ; | |
33917 | PyObject * obj3 = 0 ; | |
33918 | PyObject * obj4 = 0 ; | |
33919 | PyObject * obj5 = 0 ; | |
33920 | PyObject * obj6 = 0 ; | |
33921 | PyObject * obj7 = 0 ; | |
33922 | char * kwnames[] = { | |
33923 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33924 | }; | |
33925 | ||
33926 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
33927 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33928 | if (!SWIG_IsOK(res1)) { | |
33929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33930 | } | |
33931 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33932 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33933 | if (!SWIG_IsOK(res2)) { | |
33934 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
33935 | } | |
33936 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
33937 | if (obj2) { | |
33938 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33939 | if (!SWIG_IsOK(ecode3)) { | |
33940 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
33941 | } | |
33942 | arg3 = static_cast< int >(val3); | |
33943 | } | |
33944 | if (obj3) { | |
d55e5bfc | 33945 | { |
1bd55598 RD |
33946 | arg4 = &temp4; |
33947 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 33948 | } |
1bd55598 RD |
33949 | } |
33950 | if (obj4) { | |
d55e5bfc | 33951 | { |
1bd55598 RD |
33952 | arg5 = &temp5; |
33953 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 33954 | } |
1bd55598 RD |
33955 | } |
33956 | if (obj5) { | |
33957 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
33958 | if (!SWIG_IsOK(ecode6)) { | |
33959 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
33960 | } | |
33961 | arg6 = static_cast< long >(val6); | |
33962 | } | |
33963 | if (obj6) { | |
33964 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
33965 | if (!SWIG_IsOK(res7)) { | |
33966 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 33967 | } |
1bd55598 RD |
33968 | if (!argp7) { |
33969 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 33970 | } |
1bd55598 RD |
33971 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
33972 | } | |
33973 | if (obj7) { | |
d55e5bfc | 33974 | { |
1bd55598 RD |
33975 | arg8 = wxString_in_helper(obj7); |
33976 | if (arg8 == NULL) SWIG_fail; | |
33977 | temp8 = true; | |
d55e5bfc | 33978 | } |
1bd55598 RD |
33979 | } |
33980 | { | |
33981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33982 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
33983 | wxPyEndAllowThreads(__tstate); | |
33984 | if (PyErr_Occurred()) SWIG_fail; | |
33985 | } | |
33986 | { | |
33987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33988 | } | |
33989 | { | |
33990 | if (temp8) | |
33991 | delete arg8; | |
33992 | } | |
33993 | return resultobj; | |
33994 | fail: | |
33995 | { | |
33996 | if (temp8) | |
33997 | delete arg8; | |
33998 | } | |
33999 | return NULL; | |
34000 | } | |
34001 | ||
34002 | ||
34003 | SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34004 | PyObject *resultobj = 0; | |
34005 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34006 | PyObject *arg2 = (PyObject *) 0 ; | |
34007 | PyObject *arg3 = (PyObject *) 0 ; | |
34008 | void *argp1 = 0 ; | |
34009 | int res1 = 0 ; | |
34010 | PyObject * obj0 = 0 ; | |
34011 | PyObject * obj1 = 0 ; | |
34012 | PyObject * obj2 = 0 ; | |
34013 | char * kwnames[] = { | |
34014 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
34015 | }; | |
34016 | ||
34017 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34018 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34019 | if (!SWIG_IsOK(res1)) { | |
34020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34021 | } | |
34022 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34023 | arg2 = obj1; | |
34024 | arg3 = obj2; | |
34025 | { | |
34026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34027 | (arg1)->_setCallbackInfo(arg2,arg3); | |
34028 | wxPyEndAllowThreads(__tstate); | |
34029 | if (PyErr_Occurred()) SWIG_fail; | |
34030 | } | |
34031 | resultobj = SWIG_Py_Void(); | |
34032 | return resultobj; | |
34033 | fail: | |
34034 | return NULL; | |
d55e5bfc RD |
34035 | } |
34036 | ||
34037 | ||
1bd55598 RD |
34038 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34039 | PyObject *resultobj = 0; | |
34040 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
e9d6f3a4 | 34041 | unsigned int result; |
1bd55598 RD |
34042 | void *argp1 = 0 ; |
34043 | int res1 = 0 ; | |
34044 | PyObject *swig_obj[1] ; | |
34045 | ||
34046 | if (!args) SWIG_fail; | |
34047 | swig_obj[0] = args; | |
34048 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34049 | if (!SWIG_IsOK(res1)) { | |
34050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34051 | } | |
34052 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34053 | { | |
34054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e9d6f3a4 | 34055 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount(); |
1bd55598 RD |
34056 | wxPyEndAllowThreads(__tstate); |
34057 | if (PyErr_Occurred()) SWIG_fail; | |
34058 | } | |
e9d6f3a4 | 34059 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
1bd55598 RD |
34060 | return resultobj; |
34061 | fail: | |
34062 | return NULL; | |
d55e5bfc RD |
34063 | } |
34064 | ||
34065 | ||
1bd55598 RD |
34066 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34067 | PyObject *resultobj = 0; | |
34068 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34069 | unsigned int result; | |
34070 | void *argp1 = 0 ; | |
34071 | int res1 = 0 ; | |
34072 | PyObject *swig_obj[1] ; | |
34073 | ||
34074 | if (!args) SWIG_fail; | |
34075 | swig_obj[0] = args; | |
34076 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34077 | if (!SWIG_IsOK(res1)) { | |
34078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34079 | } | |
34080 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34081 | { | |
34082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34083 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
34084 | wxPyEndAllowThreads(__tstate); | |
34085 | if (PyErr_Occurred()) SWIG_fail; | |
34086 | } | |
34087 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
34088 | return resultobj; | |
34089 | fail: | |
34090 | return NULL; | |
34091 | } | |
34092 | ||
34093 | ||
34094 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34095 | PyObject *resultobj = 0; | |
34096 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34097 | unsigned int arg2 ; | |
34098 | void *argp1 = 0 ; | |
34099 | int res1 = 0 ; | |
34100 | unsigned int val2 ; | |
34101 | int ecode2 = 0 ; | |
34102 | PyObject * obj0 = 0 ; | |
34103 | PyObject * obj1 = 0 ; | |
34104 | char * kwnames[] = { | |
34105 | (char *) "self",(char *) "indent", NULL | |
34106 | }; | |
34107 | ||
34108 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
34109 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34110 | if (!SWIG_IsOK(res1)) { | |
34111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34112 | } | |
34113 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34114 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
34115 | if (!SWIG_IsOK(ecode2)) { | |
34116 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'"); | |
34117 | } | |
34118 | arg2 = static_cast< unsigned int >(val2); | |
34119 | { | |
34120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34121 | (arg1)->SetIndent(arg2); | |
34122 | wxPyEndAllowThreads(__tstate); | |
34123 | if (PyErr_Occurred()) SWIG_fail; | |
34124 | } | |
34125 | resultobj = SWIG_Py_Void(); | |
34126 | return resultobj; | |
34127 | fail: | |
34128 | return NULL; | |
d55e5bfc RD |
34129 | } |
34130 | ||
34131 | ||
1bd55598 RD |
34132 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34133 | PyObject *resultobj = 0; | |
34134 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34135 | unsigned int result; | |
34136 | void *argp1 = 0 ; | |
34137 | int res1 = 0 ; | |
34138 | PyObject *swig_obj[1] ; | |
34139 | ||
34140 | if (!args) SWIG_fail; | |
34141 | swig_obj[0] = args; | |
34142 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34143 | if (!SWIG_IsOK(res1)) { | |
34144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34145 | } | |
34146 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34147 | { | |
34148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34149 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
34150 | wxPyEndAllowThreads(__tstate); | |
34151 | if (PyErr_Occurred()) SWIG_fail; | |
34152 | } | |
34153 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
34154 | return resultobj; | |
34155 | fail: | |
34156 | return NULL; | |
34157 | } | |
34158 | ||
34159 | ||
34160 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34161 | PyObject *resultobj = 0; | |
34162 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34163 | unsigned int arg2 ; | |
34164 | void *argp1 = 0 ; | |
34165 | int res1 = 0 ; | |
34166 | unsigned int val2 ; | |
34167 | int ecode2 = 0 ; | |
34168 | PyObject * obj0 = 0 ; | |
34169 | PyObject * obj1 = 0 ; | |
34170 | char * kwnames[] = { | |
34171 | (char *) "self",(char *) "spacing", NULL | |
34172 | }; | |
34173 | ||
34174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail; | |
34175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34176 | if (!SWIG_IsOK(res1)) { | |
34177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34178 | } | |
34179 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34180 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
34181 | if (!SWIG_IsOK(ecode2)) { | |
34182 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'"); | |
34183 | } | |
34184 | arg2 = static_cast< unsigned int >(val2); | |
34185 | { | |
34186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34187 | (arg1)->SetSpacing(arg2); | |
34188 | wxPyEndAllowThreads(__tstate); | |
34189 | if (PyErr_Occurred()) SWIG_fail; | |
34190 | } | |
34191 | resultobj = SWIG_Py_Void(); | |
34192 | return resultobj; | |
34193 | fail: | |
34194 | return NULL; | |
d55e5bfc RD |
34195 | } |
34196 | ||
34197 | ||
1bd55598 RD |
34198 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34199 | PyObject *resultobj = 0; | |
34200 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34201 | wxImageList *result = 0 ; | |
34202 | void *argp1 = 0 ; | |
34203 | int res1 = 0 ; | |
34204 | PyObject *swig_obj[1] ; | |
34205 | ||
34206 | if (!args) SWIG_fail; | |
34207 | swig_obj[0] = args; | |
34208 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34209 | if (!SWIG_IsOK(res1)) { | |
34210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34211 | } | |
34212 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34213 | { | |
34214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34215 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
34216 | wxPyEndAllowThreads(__tstate); | |
34217 | if (PyErr_Occurred()) SWIG_fail; | |
34218 | } | |
3ecece7e RD |
34219 | { |
34220 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
34221 | } | |
1bd55598 RD |
34222 | return resultobj; |
34223 | fail: | |
34224 | return NULL; | |
d55e5bfc RD |
34225 | } |
34226 | ||
34227 | ||
1bd55598 RD |
34228 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34229 | PyObject *resultobj = 0; | |
34230 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34231 | wxImageList *result = 0 ; | |
34232 | void *argp1 = 0 ; | |
34233 | int res1 = 0 ; | |
34234 | PyObject *swig_obj[1] ; | |
34235 | ||
34236 | if (!args) SWIG_fail; | |
34237 | swig_obj[0] = args; | |
34238 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34239 | if (!SWIG_IsOK(res1)) { | |
34240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34241 | } | |
34242 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34243 | { | |
34244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34245 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
34246 | wxPyEndAllowThreads(__tstate); | |
34247 | if (PyErr_Occurred()) SWIG_fail; | |
34248 | } | |
3ecece7e RD |
34249 | { |
34250 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
34251 | } | |
1bd55598 RD |
34252 | return resultobj; |
34253 | fail: | |
34254 | return NULL; | |
34255 | } | |
34256 | ||
34257 | ||
34258 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34259 | PyObject *resultobj = 0; | |
34260 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34261 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34262 | void *argp1 = 0 ; | |
34263 | int res1 = 0 ; | |
34264 | void *argp2 = 0 ; | |
34265 | int res2 = 0 ; | |
34266 | PyObject * obj0 = 0 ; | |
34267 | PyObject * obj1 = 0 ; | |
34268 | char * kwnames[] = { | |
34269 | (char *) "self",(char *) "imageList", NULL | |
34270 | }; | |
34271 | ||
34272 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34273 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34274 | if (!SWIG_IsOK(res1)) { | |
34275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34276 | } | |
34277 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34278 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
34279 | if (!SWIG_IsOK(res2)) { | |
34280 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34281 | } | |
34282 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
34283 | { | |
34284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34285 | (arg1)->SetImageList(arg2); | |
34286 | wxPyEndAllowThreads(__tstate); | |
34287 | if (PyErr_Occurred()) SWIG_fail; | |
34288 | } | |
34289 | resultobj = SWIG_Py_Void(); | |
34290 | return resultobj; | |
34291 | fail: | |
34292 | return NULL; | |
34293 | } | |
34294 | ||
34295 | ||
34296 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34297 | PyObject *resultobj = 0; | |
34298 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34299 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34300 | void *argp1 = 0 ; | |
34301 | int res1 = 0 ; | |
34302 | void *argp2 = 0 ; | |
34303 | int res2 = 0 ; | |
34304 | PyObject * obj0 = 0 ; | |
34305 | PyObject * obj1 = 0 ; | |
34306 | char * kwnames[] = { | |
34307 | (char *) "self",(char *) "imageList", NULL | |
34308 | }; | |
34309 | ||
34310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34312 | if (!SWIG_IsOK(res1)) { | |
34313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34314 | } | |
34315 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34316 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
34317 | if (!SWIG_IsOK(res2)) { | |
34318 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34319 | } | |
34320 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
34321 | { | |
34322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34323 | (arg1)->SetStateImageList(arg2); | |
34324 | wxPyEndAllowThreads(__tstate); | |
34325 | if (PyErr_Occurred()) SWIG_fail; | |
34326 | } | |
34327 | resultobj = SWIG_Py_Void(); | |
34328 | return resultobj; | |
34329 | fail: | |
34330 | return NULL; | |
34331 | } | |
34332 | ||
34333 | ||
34334 | SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34335 | PyObject *resultobj = 0; | |
34336 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34337 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34338 | void *argp1 = 0 ; | |
34339 | int res1 = 0 ; | |
34340 | int res2 = 0 ; | |
34341 | PyObject * obj0 = 0 ; | |
34342 | PyObject * obj1 = 0 ; | |
34343 | char * kwnames[] = { | |
34344 | (char *) "self",(char *) "imageList", NULL | |
34345 | }; | |
34346 | ||
34347 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34348 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34349 | if (!SWIG_IsOK(res1)) { | |
34350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34351 | } | |
34352 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34353 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
34354 | if (!SWIG_IsOK(res2)) { | |
34355 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34356 | } | |
34357 | { | |
34358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34359 | (arg1)->AssignImageList(arg2); | |
34360 | wxPyEndAllowThreads(__tstate); | |
34361 | if (PyErr_Occurred()) SWIG_fail; | |
34362 | } | |
34363 | resultobj = SWIG_Py_Void(); | |
34364 | return resultobj; | |
34365 | fail: | |
34366 | return NULL; | |
34367 | } | |
34368 | ||
34369 | ||
34370 | SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34371 | PyObject *resultobj = 0; | |
34372 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34373 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34374 | void *argp1 = 0 ; | |
34375 | int res1 = 0 ; | |
34376 | int res2 = 0 ; | |
34377 | PyObject * obj0 = 0 ; | |
34378 | PyObject * obj1 = 0 ; | |
34379 | char * kwnames[] = { | |
34380 | (char *) "self",(char *) "imageList", NULL | |
34381 | }; | |
34382 | ||
34383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34384 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34385 | if (!SWIG_IsOK(res1)) { | |
34386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34387 | } | |
34388 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34389 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
34390 | if (!SWIG_IsOK(res2)) { | |
34391 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34392 | } | |
34393 | { | |
34394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34395 | (arg1)->AssignStateImageList(arg2); | |
34396 | wxPyEndAllowThreads(__tstate); | |
34397 | if (PyErr_Occurred()) SWIG_fail; | |
34398 | } | |
34399 | resultobj = SWIG_Py_Void(); | |
34400 | return resultobj; | |
34401 | fail: | |
34402 | return NULL; | |
34403 | } | |
34404 | ||
34405 | ||
34406 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34407 | PyObject *resultobj = 0; | |
34408 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34409 | wxTreeItemId *arg2 = 0 ; | |
34410 | wxString result; | |
34411 | void *argp1 = 0 ; | |
34412 | int res1 = 0 ; | |
34413 | void *argp2 = 0 ; | |
34414 | int res2 = 0 ; | |
34415 | PyObject * obj0 = 0 ; | |
34416 | PyObject * obj1 = 0 ; | |
34417 | char * kwnames[] = { | |
34418 | (char *) "self",(char *) "item", NULL | |
34419 | }; | |
34420 | ||
34421 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail; | |
34422 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34423 | if (!SWIG_IsOK(res1)) { | |
34424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34425 | } | |
34426 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34427 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34428 | if (!SWIG_IsOK(res2)) { | |
34429 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34430 | } | |
34431 | if (!argp2) { | |
34432 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34433 | } | |
34434 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34435 | { | |
34436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34437 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
34438 | wxPyEndAllowThreads(__tstate); | |
34439 | if (PyErr_Occurred()) SWIG_fail; | |
34440 | } | |
34441 | { | |
34442 | #if wxUSE_UNICODE | |
34443 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34444 | #else | |
34445 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34446 | #endif | |
34447 | } | |
34448 | return resultobj; | |
34449 | fail: | |
34450 | return NULL; | |
34451 | } | |
34452 | ||
34453 | ||
34454 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34455 | PyObject *resultobj = 0; | |
34456 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34457 | wxTreeItemId *arg2 = 0 ; | |
34458 | wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; | |
34459 | int result; | |
34460 | void *argp1 = 0 ; | |
34461 | int res1 = 0 ; | |
34462 | void *argp2 = 0 ; | |
34463 | int res2 = 0 ; | |
34464 | int val3 ; | |
34465 | int ecode3 = 0 ; | |
34466 | PyObject * obj0 = 0 ; | |
34467 | PyObject * obj1 = 0 ; | |
34468 | PyObject * obj2 = 0 ; | |
34469 | char * kwnames[] = { | |
34470 | (char *) "self",(char *) "item",(char *) "which", NULL | |
34471 | }; | |
34472 | ||
34473 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34474 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34475 | if (!SWIG_IsOK(res1)) { | |
34476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34477 | } | |
34478 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34479 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34480 | if (!SWIG_IsOK(res2)) { | |
34481 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34482 | } | |
34483 | if (!argp2) { | |
34484 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34485 | } | |
34486 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34487 | if (obj2) { | |
34488 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34489 | if (!SWIG_IsOK(ecode3)) { | |
34490 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'"); | |
34491 | } | |
34492 | arg3 = static_cast< wxTreeItemIcon >(val3); | |
34493 | } | |
34494 | { | |
34495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34496 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3); | |
34497 | wxPyEndAllowThreads(__tstate); | |
34498 | if (PyErr_Occurred()) SWIG_fail; | |
34499 | } | |
34500 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34501 | return resultobj; | |
34502 | fail: | |
34503 | return NULL; | |
34504 | } | |
34505 | ||
34506 | ||
34507 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34508 | PyObject *resultobj = 0; | |
34509 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34510 | wxTreeItemId *arg2 = 0 ; | |
34511 | wxPyTreeItemData *result = 0 ; | |
34512 | void *argp1 = 0 ; | |
34513 | int res1 = 0 ; | |
34514 | void *argp2 = 0 ; | |
34515 | int res2 = 0 ; | |
34516 | PyObject * obj0 = 0 ; | |
34517 | PyObject * obj1 = 0 ; | |
34518 | char * kwnames[] = { | |
34519 | (char *) "self",(char *) "item", NULL | |
34520 | }; | |
34521 | ||
34522 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail; | |
34523 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34524 | if (!SWIG_IsOK(res1)) { | |
34525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34526 | } | |
34527 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34528 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34529 | if (!SWIG_IsOK(res2)) { | |
34530 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34531 | } | |
34532 | if (!argp2) { | |
34533 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34534 | } | |
34535 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34536 | { | |
34537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34538 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
34539 | wxPyEndAllowThreads(__tstate); | |
34540 | if (PyErr_Occurred()) SWIG_fail; | |
34541 | } | |
34542 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
34543 | return resultobj; | |
34544 | fail: | |
34545 | return NULL; | |
34546 | } | |
34547 | ||
34548 | ||
34549 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34550 | PyObject *resultobj = 0; | |
34551 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34552 | wxTreeItemId *arg2 = 0 ; | |
34553 | PyObject *result = 0 ; | |
34554 | void *argp1 = 0 ; | |
34555 | int res1 = 0 ; | |
34556 | void *argp2 = 0 ; | |
34557 | int res2 = 0 ; | |
34558 | PyObject * obj0 = 0 ; | |
34559 | PyObject * obj1 = 0 ; | |
34560 | char * kwnames[] = { | |
34561 | (char *) "self",(char *) "item", NULL | |
34562 | }; | |
34563 | ||
34564 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail; | |
34565 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34566 | if (!SWIG_IsOK(res1)) { | |
34567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34568 | } | |
34569 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34570 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34571 | if (!SWIG_IsOK(res2)) { | |
34572 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34573 | } | |
34574 | if (!argp2) { | |
34575 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34576 | } | |
34577 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34578 | { | |
34579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34580 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
34581 | wxPyEndAllowThreads(__tstate); | |
34582 | if (PyErr_Occurred()) SWIG_fail; | |
34583 | } | |
34584 | resultobj = result; | |
34585 | return resultobj; | |
34586 | fail: | |
34587 | return NULL; | |
34588 | } | |
34589 | ||
34590 | ||
34591 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34592 | PyObject *resultobj = 0; | |
34593 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34594 | wxTreeItemId *arg2 = 0 ; | |
34595 | wxColour result; | |
34596 | void *argp1 = 0 ; | |
34597 | int res1 = 0 ; | |
34598 | void *argp2 = 0 ; | |
34599 | int res2 = 0 ; | |
34600 | PyObject * obj0 = 0 ; | |
34601 | PyObject * obj1 = 0 ; | |
34602 | char * kwnames[] = { | |
34603 | (char *) "self",(char *) "item", NULL | |
34604 | }; | |
34605 | ||
34606 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
34607 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34608 | if (!SWIG_IsOK(res1)) { | |
34609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34610 | } | |
34611 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34612 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34613 | if (!SWIG_IsOK(res2)) { | |
34614 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34615 | } | |
34616 | if (!argp2) { | |
34617 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34618 | } | |
34619 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34620 | { | |
34621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34622 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
34623 | wxPyEndAllowThreads(__tstate); | |
34624 | if (PyErr_Occurred()) SWIG_fail; | |
34625 | } | |
34626 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
34627 | return resultobj; | |
34628 | fail: | |
34629 | return NULL; | |
34630 | } | |
34631 | ||
34632 | ||
34633 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34634 | PyObject *resultobj = 0; | |
34635 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34636 | wxTreeItemId *arg2 = 0 ; | |
34637 | wxColour result; | |
34638 | void *argp1 = 0 ; | |
34639 | int res1 = 0 ; | |
34640 | void *argp2 = 0 ; | |
34641 | int res2 = 0 ; | |
34642 | PyObject * obj0 = 0 ; | |
34643 | PyObject * obj1 = 0 ; | |
34644 | char * kwnames[] = { | |
34645 | (char *) "self",(char *) "item", NULL | |
34646 | }; | |
34647 | ||
34648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
34649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34650 | if (!SWIG_IsOK(res1)) { | |
34651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34652 | } | |
34653 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34654 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34655 | if (!SWIG_IsOK(res2)) { | |
34656 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34657 | } | |
34658 | if (!argp2) { | |
34659 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34660 | } | |
34661 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34662 | { | |
34663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34664 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
34665 | wxPyEndAllowThreads(__tstate); | |
34666 | if (PyErr_Occurred()) SWIG_fail; | |
34667 | } | |
34668 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
34669 | return resultobj; | |
34670 | fail: | |
34671 | return NULL; | |
34672 | } | |
34673 | ||
34674 | ||
34675 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34676 | PyObject *resultobj = 0; | |
34677 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34678 | wxTreeItemId *arg2 = 0 ; | |
34679 | wxFont result; | |
34680 | void *argp1 = 0 ; | |
34681 | int res1 = 0 ; | |
34682 | void *argp2 = 0 ; | |
34683 | int res2 = 0 ; | |
34684 | PyObject * obj0 = 0 ; | |
34685 | PyObject * obj1 = 0 ; | |
34686 | char * kwnames[] = { | |
34687 | (char *) "self",(char *) "item", NULL | |
34688 | }; | |
34689 | ||
34690 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
34691 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34692 | if (!SWIG_IsOK(res1)) { | |
34693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34694 | } | |
34695 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34696 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34697 | if (!SWIG_IsOK(res2)) { | |
34698 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34699 | } | |
34700 | if (!argp2) { | |
34701 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34702 | } | |
34703 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34704 | { | |
34705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34706 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
34707 | wxPyEndAllowThreads(__tstate); | |
34708 | if (PyErr_Occurred()) SWIG_fail; | |
34709 | } | |
34710 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
34711 | return resultobj; | |
34712 | fail: | |
34713 | return NULL; | |
34714 | } | |
34715 | ||
34716 | ||
34717 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34718 | PyObject *resultobj = 0; | |
34719 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34720 | wxTreeItemId *arg2 = 0 ; | |
34721 | wxString *arg3 = 0 ; | |
34722 | void *argp1 = 0 ; | |
34723 | int res1 = 0 ; | |
34724 | void *argp2 = 0 ; | |
34725 | int res2 = 0 ; | |
34726 | bool temp3 = false ; | |
34727 | PyObject * obj0 = 0 ; | |
34728 | PyObject * obj1 = 0 ; | |
34729 | PyObject * obj2 = 0 ; | |
34730 | char * kwnames[] = { | |
34731 | (char *) "self",(char *) "item",(char *) "text", NULL | |
34732 | }; | |
34733 | ||
34734 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34735 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34736 | if (!SWIG_IsOK(res1)) { | |
34737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34738 | } | |
34739 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34740 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34741 | if (!SWIG_IsOK(res2)) { | |
34742 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34743 | } | |
34744 | if (!argp2) { | |
34745 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34746 | } | |
34747 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34748 | { | |
34749 | arg3 = wxString_in_helper(obj2); | |
34750 | if (arg3 == NULL) SWIG_fail; | |
34751 | temp3 = true; | |
34752 | } | |
34753 | { | |
34754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34755 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
34756 | wxPyEndAllowThreads(__tstate); | |
34757 | if (PyErr_Occurred()) SWIG_fail; | |
34758 | } | |
34759 | resultobj = SWIG_Py_Void(); | |
34760 | { | |
34761 | if (temp3) | |
34762 | delete arg3; | |
34763 | } | |
34764 | return resultobj; | |
34765 | fail: | |
34766 | { | |
34767 | if (temp3) | |
34768 | delete arg3; | |
34769 | } | |
34770 | return NULL; | |
34771 | } | |
34772 | ||
34773 | ||
34774 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34775 | PyObject *resultobj = 0; | |
34776 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34777 | wxTreeItemId *arg2 = 0 ; | |
34778 | int arg3 ; | |
34779 | wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; | |
34780 | void *argp1 = 0 ; | |
34781 | int res1 = 0 ; | |
34782 | void *argp2 = 0 ; | |
34783 | int res2 = 0 ; | |
34784 | int val3 ; | |
34785 | int ecode3 = 0 ; | |
34786 | int val4 ; | |
34787 | int ecode4 = 0 ; | |
34788 | PyObject * obj0 = 0 ; | |
34789 | PyObject * obj1 = 0 ; | |
34790 | PyObject * obj2 = 0 ; | |
34791 | PyObject * obj3 = 0 ; | |
34792 | char * kwnames[] = { | |
34793 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
34794 | }; | |
34795 | ||
34796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34797 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34798 | if (!SWIG_IsOK(res1)) { | |
34799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34800 | } | |
34801 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34802 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34803 | if (!SWIG_IsOK(res2)) { | |
34804 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34805 | } | |
34806 | if (!argp2) { | |
34807 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34808 | } | |
34809 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34810 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34811 | if (!SWIG_IsOK(ecode3)) { | |
34812 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'"); | |
34813 | } | |
34814 | arg3 = static_cast< int >(val3); | |
34815 | if (obj3) { | |
34816 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34817 | if (!SWIG_IsOK(ecode4)) { | |
34818 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'"); | |
34819 | } | |
34820 | arg4 = static_cast< wxTreeItemIcon >(val4); | |
34821 | } | |
34822 | { | |
34823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34824 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4); | |
34825 | wxPyEndAllowThreads(__tstate); | |
34826 | if (PyErr_Occurred()) SWIG_fail; | |
34827 | } | |
34828 | resultobj = SWIG_Py_Void(); | |
34829 | return resultobj; | |
34830 | fail: | |
34831 | return NULL; | |
34832 | } | |
34833 | ||
34834 | ||
34835 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34836 | PyObject *resultobj = 0; | |
34837 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34838 | wxTreeItemId *arg2 = 0 ; | |
34839 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
34840 | void *argp1 = 0 ; | |
34841 | int res1 = 0 ; | |
34842 | void *argp2 = 0 ; | |
34843 | int res2 = 0 ; | |
34844 | int res3 = 0 ; | |
34845 | PyObject * obj0 = 0 ; | |
34846 | PyObject * obj1 = 0 ; | |
34847 | PyObject * obj2 = 0 ; | |
34848 | char * kwnames[] = { | |
34849 | (char *) "self",(char *) "item",(char *) "data", NULL | |
34850 | }; | |
34851 | ||
34852 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34853 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34854 | if (!SWIG_IsOK(res1)) { | |
34855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34856 | } | |
34857 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34858 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34859 | if (!SWIG_IsOK(res2)) { | |
34860 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34861 | } | |
34862 | if (!argp2) { | |
34863 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34864 | } | |
34865 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34866 | res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
34867 | if (!SWIG_IsOK(res3)) { | |
34868 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'"); | |
34869 | } | |
34870 | { | |
34871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34872 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
34873 | wxPyEndAllowThreads(__tstate); | |
34874 | if (PyErr_Occurred()) SWIG_fail; | |
34875 | } | |
34876 | resultobj = SWIG_Py_Void(); | |
34877 | return resultobj; | |
34878 | fail: | |
34879 | return NULL; | |
34880 | } | |
34881 | ||
34882 | ||
34883 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34884 | PyObject *resultobj = 0; | |
34885 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34886 | wxTreeItemId *arg2 = 0 ; | |
34887 | PyObject *arg3 = (PyObject *) 0 ; | |
34888 | void *argp1 = 0 ; | |
34889 | int res1 = 0 ; | |
34890 | void *argp2 = 0 ; | |
34891 | int res2 = 0 ; | |
34892 | PyObject * obj0 = 0 ; | |
34893 | PyObject * obj1 = 0 ; | |
34894 | PyObject * obj2 = 0 ; | |
34895 | char * kwnames[] = { | |
34896 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
34897 | }; | |
34898 | ||
34899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34901 | if (!SWIG_IsOK(res1)) { | |
34902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34903 | } | |
34904 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34905 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34906 | if (!SWIG_IsOK(res2)) { | |
34907 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34908 | } | |
34909 | if (!argp2) { | |
34910 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34911 | } | |
34912 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34913 | arg3 = obj2; | |
34914 | { | |
34915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34916 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
34917 | wxPyEndAllowThreads(__tstate); | |
34918 | if (PyErr_Occurred()) SWIG_fail; | |
34919 | } | |
34920 | resultobj = SWIG_Py_Void(); | |
34921 | return resultobj; | |
34922 | fail: | |
34923 | return NULL; | |
34924 | } | |
34925 | ||
34926 | ||
34927 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34928 | PyObject *resultobj = 0; | |
34929 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34930 | wxTreeItemId *arg2 = 0 ; | |
34931 | bool arg3 = (bool) true ; | |
34932 | void *argp1 = 0 ; | |
34933 | int res1 = 0 ; | |
34934 | void *argp2 = 0 ; | |
34935 | int res2 = 0 ; | |
34936 | bool val3 ; | |
34937 | int ecode3 = 0 ; | |
34938 | PyObject * obj0 = 0 ; | |
34939 | PyObject * obj1 = 0 ; | |
34940 | PyObject * obj2 = 0 ; | |
34941 | char * kwnames[] = { | |
34942 | (char *) "self",(char *) "item",(char *) "has", NULL | |
34943 | }; | |
34944 | ||
34945 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34946 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34947 | if (!SWIG_IsOK(res1)) { | |
34948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34949 | } | |
34950 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34951 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34952 | if (!SWIG_IsOK(res2)) { | |
34953 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34954 | } | |
34955 | if (!argp2) { | |
34956 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34957 | } | |
34958 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34959 | if (obj2) { | |
34960 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
34961 | if (!SWIG_IsOK(ecode3)) { | |
34962 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'"); | |
34963 | } | |
34964 | arg3 = static_cast< bool >(val3); | |
34965 | } | |
34966 | { | |
34967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34968 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
34969 | wxPyEndAllowThreads(__tstate); | |
34970 | if (PyErr_Occurred()) SWIG_fail; | |
34971 | } | |
34972 | resultobj = SWIG_Py_Void(); | |
34973 | return resultobj; | |
34974 | fail: | |
34975 | return NULL; | |
34976 | } | |
34977 | ||
34978 | ||
34979 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34980 | PyObject *resultobj = 0; | |
34981 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34982 | wxTreeItemId *arg2 = 0 ; | |
34983 | bool arg3 = (bool) true ; | |
34984 | void *argp1 = 0 ; | |
34985 | int res1 = 0 ; | |
34986 | void *argp2 = 0 ; | |
34987 | int res2 = 0 ; | |
34988 | bool val3 ; | |
34989 | int ecode3 = 0 ; | |
34990 | PyObject * obj0 = 0 ; | |
34991 | PyObject * obj1 = 0 ; | |
34992 | PyObject * obj2 = 0 ; | |
34993 | char * kwnames[] = { | |
34994 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
34995 | }; | |
34996 | ||
34997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34999 | if (!SWIG_IsOK(res1)) { | |
35000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35001 | } | |
35002 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35003 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35004 | if (!SWIG_IsOK(res2)) { | |
35005 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35006 | } | |
35007 | if (!argp2) { | |
35008 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35009 | } | |
35010 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35011 | if (obj2) { | |
35012 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35013 | if (!SWIG_IsOK(ecode3)) { | |
35014 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'"); | |
35015 | } | |
35016 | arg3 = static_cast< bool >(val3); | |
35017 | } | |
35018 | { | |
35019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35020 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
35021 | wxPyEndAllowThreads(__tstate); | |
35022 | if (PyErr_Occurred()) SWIG_fail; | |
35023 | } | |
35024 | resultobj = SWIG_Py_Void(); | |
35025 | return resultobj; | |
35026 | fail: | |
35027 | return NULL; | |
35028 | } | |
35029 | ||
35030 | ||
35031 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35032 | PyObject *resultobj = 0; | |
35033 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35034 | wxTreeItemId *arg2 = 0 ; | |
35035 | bool arg3 = (bool) true ; | |
35036 | void *argp1 = 0 ; | |
35037 | int res1 = 0 ; | |
35038 | void *argp2 = 0 ; | |
35039 | int res2 = 0 ; | |
35040 | bool val3 ; | |
35041 | int ecode3 = 0 ; | |
35042 | PyObject * obj0 = 0 ; | |
35043 | PyObject * obj1 = 0 ; | |
35044 | PyObject * obj2 = 0 ; | |
35045 | char * kwnames[] = { | |
35046 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
35047 | }; | |
35048 | ||
35049 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35050 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35051 | if (!SWIG_IsOK(res1)) { | |
35052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35053 | } | |
35054 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35055 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35056 | if (!SWIG_IsOK(res2)) { | |
35057 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35058 | } | |
35059 | if (!argp2) { | |
35060 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35061 | } | |
35062 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35063 | if (obj2) { | |
35064 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35065 | if (!SWIG_IsOK(ecode3)) { | |
35066 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'"); | |
35067 | } | |
35068 | arg3 = static_cast< bool >(val3); | |
35069 | } | |
35070 | { | |
35071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35072 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
35073 | wxPyEndAllowThreads(__tstate); | |
35074 | if (PyErr_Occurred()) SWIG_fail; | |
35075 | } | |
35076 | resultobj = SWIG_Py_Void(); | |
35077 | return resultobj; | |
35078 | fail: | |
35079 | return NULL; | |
35080 | } | |
35081 | ||
35082 | ||
35083 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35084 | PyObject *resultobj = 0; | |
35085 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35086 | wxTreeItemId *arg2 = 0 ; | |
35087 | wxColour *arg3 = 0 ; | |
35088 | void *argp1 = 0 ; | |
35089 | int res1 = 0 ; | |
35090 | void *argp2 = 0 ; | |
35091 | int res2 = 0 ; | |
35092 | wxColour temp3 ; | |
35093 | PyObject * obj0 = 0 ; | |
35094 | PyObject * obj1 = 0 ; | |
35095 | PyObject * obj2 = 0 ; | |
35096 | char * kwnames[] = { | |
35097 | (char *) "self",(char *) "item",(char *) "col", NULL | |
35098 | }; | |
35099 | ||
35100 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35101 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35102 | if (!SWIG_IsOK(res1)) { | |
35103 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35104 | } | |
35105 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35106 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35107 | if (!SWIG_IsOK(res2)) { | |
35108 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35109 | } | |
35110 | if (!argp2) { | |
35111 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35112 | } | |
35113 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35114 | { | |
35115 | arg3 = &temp3; | |
35116 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
35117 | } | |
35118 | { | |
35119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35120 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
35121 | wxPyEndAllowThreads(__tstate); | |
35122 | if (PyErr_Occurred()) SWIG_fail; | |
35123 | } | |
35124 | resultobj = SWIG_Py_Void(); | |
35125 | return resultobj; | |
35126 | fail: | |
35127 | return NULL; | |
35128 | } | |
35129 | ||
35130 | ||
35131 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35132 | PyObject *resultobj = 0; | |
35133 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35134 | wxTreeItemId *arg2 = 0 ; | |
35135 | wxColour *arg3 = 0 ; | |
35136 | void *argp1 = 0 ; | |
35137 | int res1 = 0 ; | |
35138 | void *argp2 = 0 ; | |
35139 | int res2 = 0 ; | |
35140 | wxColour temp3 ; | |
35141 | PyObject * obj0 = 0 ; | |
35142 | PyObject * obj1 = 0 ; | |
35143 | PyObject * obj2 = 0 ; | |
35144 | char * kwnames[] = { | |
35145 | (char *) "self",(char *) "item",(char *) "col", NULL | |
35146 | }; | |
35147 | ||
35148 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35149 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35150 | if (!SWIG_IsOK(res1)) { | |
35151 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35152 | } | |
35153 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35154 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35155 | if (!SWIG_IsOK(res2)) { | |
35156 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35157 | } | |
35158 | if (!argp2) { | |
35159 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35160 | } | |
35161 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35162 | { | |
35163 | arg3 = &temp3; | |
35164 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
35165 | } | |
35166 | { | |
35167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35168 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
35169 | wxPyEndAllowThreads(__tstate); | |
35170 | if (PyErr_Occurred()) SWIG_fail; | |
35171 | } | |
35172 | resultobj = SWIG_Py_Void(); | |
35173 | return resultobj; | |
35174 | fail: | |
35175 | return NULL; | |
35176 | } | |
35177 | ||
35178 | ||
35179 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35180 | PyObject *resultobj = 0; | |
35181 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35182 | wxTreeItemId *arg2 = 0 ; | |
35183 | wxFont *arg3 = 0 ; | |
35184 | void *argp1 = 0 ; | |
35185 | int res1 = 0 ; | |
35186 | void *argp2 = 0 ; | |
35187 | int res2 = 0 ; | |
35188 | void *argp3 = 0 ; | |
35189 | int res3 = 0 ; | |
35190 | PyObject * obj0 = 0 ; | |
35191 | PyObject * obj1 = 0 ; | |
35192 | PyObject * obj2 = 0 ; | |
35193 | char * kwnames[] = { | |
35194 | (char *) "self",(char *) "item",(char *) "font", NULL | |
35195 | }; | |
35196 | ||
35197 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35198 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35199 | if (!SWIG_IsOK(res1)) { | |
35200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35201 | } | |
35202 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35203 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35204 | if (!SWIG_IsOK(res2)) { | |
35205 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35206 | } | |
35207 | if (!argp2) { | |
35208 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35209 | } | |
35210 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35211 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
35212 | if (!SWIG_IsOK(res3)) { | |
35213 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
35214 | } | |
35215 | if (!argp3) { | |
35216 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
35217 | } | |
35218 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
35219 | { | |
35220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35221 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
35222 | wxPyEndAllowThreads(__tstate); | |
35223 | if (PyErr_Occurred()) SWIG_fail; | |
35224 | } | |
35225 | resultobj = SWIG_Py_Void(); | |
35226 | return resultobj; | |
35227 | fail: | |
35228 | return NULL; | |
35229 | } | |
35230 | ||
35231 | ||
35232 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35233 | PyObject *resultobj = 0; | |
35234 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35235 | wxTreeItemId *arg2 = 0 ; | |
35236 | bool result; | |
35237 | void *argp1 = 0 ; | |
35238 | int res1 = 0 ; | |
35239 | void *argp2 = 0 ; | |
35240 | int res2 = 0 ; | |
35241 | PyObject * obj0 = 0 ; | |
35242 | PyObject * obj1 = 0 ; | |
35243 | char * kwnames[] = { | |
35244 | (char *) "self",(char *) "item", NULL | |
35245 | }; | |
35246 | ||
35247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
35248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35249 | if (!SWIG_IsOK(res1)) { | |
35250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35251 | } | |
35252 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35253 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35254 | if (!SWIG_IsOK(res2)) { | |
35255 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35256 | } | |
35257 | if (!argp2) { | |
35258 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35259 | } | |
35260 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35261 | { | |
35262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35263 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
35264 | wxPyEndAllowThreads(__tstate); | |
35265 | if (PyErr_Occurred()) SWIG_fail; | |
35266 | } | |
35267 | { | |
35268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35269 | } | |
35270 | return resultobj; | |
35271 | fail: | |
35272 | return NULL; | |
35273 | } | |
35274 | ||
35275 | ||
35276 | SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35277 | PyObject *resultobj = 0; | |
35278 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35279 | wxTreeItemId *arg2 = 0 ; | |
35280 | bool result; | |
35281 | void *argp1 = 0 ; | |
35282 | int res1 = 0 ; | |
35283 | void *argp2 = 0 ; | |
35284 | int res2 = 0 ; | |
35285 | PyObject * obj0 = 0 ; | |
35286 | PyObject * obj1 = 0 ; | |
35287 | char * kwnames[] = { | |
35288 | (char *) "self",(char *) "item", NULL | |
35289 | }; | |
35290 | ||
35291 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
35292 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35293 | if (!SWIG_IsOK(res1)) { | |
35294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35295 | } | |
35296 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35297 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35298 | if (!SWIG_IsOK(res2)) { | |
35299 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35300 | } | |
35301 | if (!argp2) { | |
35302 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35303 | } | |
35304 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35305 | { | |
35306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35307 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
35308 | wxPyEndAllowThreads(__tstate); | |
35309 | if (PyErr_Occurred()) SWIG_fail; | |
35310 | } | |
35311 | { | |
35312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35313 | } | |
35314 | return resultobj; | |
35315 | fail: | |
35316 | return NULL; | |
35317 | } | |
35318 | ||
35319 | ||
35320 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35321 | PyObject *resultobj = 0; | |
35322 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35323 | wxTreeItemId *arg2 = 0 ; | |
35324 | bool result; | |
35325 | void *argp1 = 0 ; | |
35326 | int res1 = 0 ; | |
35327 | void *argp2 = 0 ; | |
35328 | int res2 = 0 ; | |
35329 | PyObject * obj0 = 0 ; | |
35330 | PyObject * obj1 = 0 ; | |
35331 | char * kwnames[] = { | |
35332 | (char *) "self",(char *) "item", NULL | |
35333 | }; | |
35334 | ||
35335 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail; | |
35336 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35337 | if (!SWIG_IsOK(res1)) { | |
35338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35339 | } | |
35340 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35341 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35342 | if (!SWIG_IsOK(res2)) { | |
35343 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35344 | } | |
35345 | if (!argp2) { | |
35346 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35347 | } | |
35348 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35349 | { | |
35350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35351 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
35352 | wxPyEndAllowThreads(__tstate); | |
35353 | if (PyErr_Occurred()) SWIG_fail; | |
35354 | } | |
35355 | { | |
35356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35357 | } | |
35358 | return resultobj; | |
35359 | fail: | |
35360 | return NULL; | |
35361 | } | |
35362 | ||
35363 | ||
35364 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35365 | PyObject *resultobj = 0; | |
35366 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35367 | wxTreeItemId *arg2 = 0 ; | |
35368 | bool result; | |
35369 | void *argp1 = 0 ; | |
35370 | int res1 = 0 ; | |
35371 | void *argp2 = 0 ; | |
35372 | int res2 = 0 ; | |
35373 | PyObject * obj0 = 0 ; | |
35374 | PyObject * obj1 = 0 ; | |
35375 | char * kwnames[] = { | |
35376 | (char *) "self",(char *) "item", NULL | |
35377 | }; | |
35378 | ||
35379 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
35380 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35381 | if (!SWIG_IsOK(res1)) { | |
35382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35383 | } | |
35384 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35385 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35386 | if (!SWIG_IsOK(res2)) { | |
35387 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35388 | } | |
35389 | if (!argp2) { | |
35390 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35391 | } | |
35392 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35393 | { | |
35394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35395 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
35396 | wxPyEndAllowThreads(__tstate); | |
35397 | if (PyErr_Occurred()) SWIG_fail; | |
35398 | } | |
35399 | { | |
35400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35401 | } | |
35402 | return resultobj; | |
35403 | fail: | |
35404 | return NULL; | |
35405 | } | |
35406 | ||
35407 | ||
35408 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35409 | PyObject *resultobj = 0; | |
35410 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35411 | wxTreeItemId *arg2 = 0 ; | |
35412 | bool result; | |
35413 | void *argp1 = 0 ; | |
35414 | int res1 = 0 ; | |
35415 | void *argp2 = 0 ; | |
35416 | int res2 = 0 ; | |
35417 | PyObject * obj0 = 0 ; | |
35418 | PyObject * obj1 = 0 ; | |
35419 | char * kwnames[] = { | |
35420 | (char *) "self",(char *) "item", NULL | |
35421 | }; | |
35422 | ||
35423 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail; | |
35424 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35425 | if (!SWIG_IsOK(res1)) { | |
35426 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35427 | } | |
35428 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35429 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35430 | if (!SWIG_IsOK(res2)) { | |
35431 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35432 | } | |
35433 | if (!argp2) { | |
35434 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35435 | } | |
35436 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35437 | { | |
35438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35439 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
35440 | wxPyEndAllowThreads(__tstate); | |
35441 | if (PyErr_Occurred()) SWIG_fail; | |
35442 | } | |
35443 | { | |
35444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35445 | } | |
35446 | return resultobj; | |
35447 | fail: | |
35448 | return NULL; | |
35449 | } | |
35450 | ||
35451 | ||
35452 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35453 | PyObject *resultobj = 0; | |
35454 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35455 | wxTreeItemId *arg2 = 0 ; | |
35456 | bool arg3 = (bool) true ; | |
35457 | size_t result; | |
35458 | void *argp1 = 0 ; | |
35459 | int res1 = 0 ; | |
35460 | void *argp2 = 0 ; | |
35461 | int res2 = 0 ; | |
35462 | bool val3 ; | |
35463 | int ecode3 = 0 ; | |
35464 | PyObject * obj0 = 0 ; | |
35465 | PyObject * obj1 = 0 ; | |
35466 | PyObject * obj2 = 0 ; | |
35467 | char * kwnames[] = { | |
35468 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
35469 | }; | |
35470 | ||
35471 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35472 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35473 | if (!SWIG_IsOK(res1)) { | |
35474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35475 | } | |
35476 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35477 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35478 | if (!SWIG_IsOK(res2)) { | |
35479 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35480 | } | |
35481 | if (!argp2) { | |
35482 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35483 | } | |
35484 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35485 | if (obj2) { | |
35486 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35487 | if (!SWIG_IsOK(ecode3)) { | |
35488 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'"); | |
35489 | } | |
35490 | arg3 = static_cast< bool >(val3); | |
35491 | } | |
35492 | { | |
35493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35494 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
35495 | wxPyEndAllowThreads(__tstate); | |
35496 | if (PyErr_Occurred()) SWIG_fail; | |
35497 | } | |
35498 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
35499 | return resultobj; | |
35500 | fail: | |
35501 | return NULL; | |
d55e5bfc RD |
35502 | } |
35503 | ||
35504 | ||
1bd55598 RD |
35505 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35506 | PyObject *resultobj = 0; | |
35507 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35508 | wxTreeItemId result; | |
35509 | void *argp1 = 0 ; | |
35510 | int res1 = 0 ; | |
35511 | PyObject *swig_obj[1] ; | |
35512 | ||
35513 | if (!args) SWIG_fail; | |
35514 | swig_obj[0] = args; | |
35515 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35516 | if (!SWIG_IsOK(res1)) { | |
35517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35518 | } | |
35519 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35520 | { | |
35521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35522 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
35523 | wxPyEndAllowThreads(__tstate); | |
35524 | if (PyErr_Occurred()) SWIG_fail; | |
35525 | } | |
35526 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35527 | return resultobj; | |
35528 | fail: | |
35529 | return NULL; | |
d55e5bfc RD |
35530 | } |
35531 | ||
35532 | ||
1bd55598 RD |
35533 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35534 | PyObject *resultobj = 0; | |
35535 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35536 | wxTreeItemId result; | |
35537 | void *argp1 = 0 ; | |
35538 | int res1 = 0 ; | |
35539 | PyObject *swig_obj[1] ; | |
35540 | ||
35541 | if (!args) SWIG_fail; | |
35542 | swig_obj[0] = args; | |
35543 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35544 | if (!SWIG_IsOK(res1)) { | |
35545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35546 | } | |
35547 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35548 | { | |
35549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35550 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
35551 | wxPyEndAllowThreads(__tstate); | |
35552 | if (PyErr_Occurred()) SWIG_fail; | |
35553 | } | |
35554 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35555 | return resultobj; | |
35556 | fail: | |
35557 | return NULL; | |
d55e5bfc RD |
35558 | } |
35559 | ||
35560 | ||
1bd55598 RD |
35561 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35562 | PyObject *resultobj = 0; | |
35563 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35564 | PyObject *result = 0 ; | |
35565 | void *argp1 = 0 ; | |
35566 | int res1 = 0 ; | |
35567 | PyObject *swig_obj[1] ; | |
35568 | ||
35569 | if (!args) SWIG_fail; | |
35570 | swig_obj[0] = args; | |
35571 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35572 | if (!SWIG_IsOK(res1)) { | |
35573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35574 | } | |
35575 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35576 | { | |
35577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35578 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
35579 | wxPyEndAllowThreads(__tstate); | |
35580 | if (PyErr_Occurred()) SWIG_fail; | |
35581 | } | |
35582 | resultobj = result; | |
35583 | return resultobj; | |
35584 | fail: | |
35585 | return NULL; | |
35586 | } | |
35587 | ||
35588 | ||
35589 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35590 | PyObject *resultobj = 0; | |
35591 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35592 | wxTreeItemId *arg2 = 0 ; | |
35593 | wxTreeItemId result; | |
35594 | void *argp1 = 0 ; | |
35595 | int res1 = 0 ; | |
35596 | void *argp2 = 0 ; | |
35597 | int res2 = 0 ; | |
35598 | PyObject * obj0 = 0 ; | |
35599 | PyObject * obj1 = 0 ; | |
35600 | char * kwnames[] = { | |
35601 | (char *) "self",(char *) "item", NULL | |
35602 | }; | |
35603 | ||
35604 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
35605 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35606 | if (!SWIG_IsOK(res1)) { | |
35607 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35608 | } | |
35609 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35610 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35611 | if (!SWIG_IsOK(res2)) { | |
35612 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35613 | } | |
35614 | if (!argp2) { | |
35615 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35616 | } | |
35617 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35618 | { | |
35619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35620 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
35621 | wxPyEndAllowThreads(__tstate); | |
35622 | if (PyErr_Occurred()) SWIG_fail; | |
35623 | } | |
35624 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35625 | return resultobj; | |
35626 | fail: | |
35627 | return NULL; | |
35628 | } | |
35629 | ||
35630 | ||
35631 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35632 | PyObject *resultobj = 0; | |
35633 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35634 | wxTreeItemId *arg2 = 0 ; | |
35635 | PyObject *result = 0 ; | |
35636 | void *argp1 = 0 ; | |
35637 | int res1 = 0 ; | |
35638 | void *argp2 = 0 ; | |
35639 | int res2 = 0 ; | |
35640 | PyObject * obj0 = 0 ; | |
35641 | PyObject * obj1 = 0 ; | |
35642 | char * kwnames[] = { | |
35643 | (char *) "self",(char *) "item", NULL | |
35644 | }; | |
35645 | ||
35646 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
35647 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35648 | if (!SWIG_IsOK(res1)) { | |
35649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35650 | } | |
35651 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35652 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35653 | if (!SWIG_IsOK(res2)) { | |
35654 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35655 | } | |
35656 | if (!argp2) { | |
35657 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35658 | } | |
35659 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35660 | { | |
35661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35662 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
35663 | wxPyEndAllowThreads(__tstate); | |
35664 | if (PyErr_Occurred()) SWIG_fail; | |
35665 | } | |
35666 | resultobj = result; | |
35667 | return resultobj; | |
35668 | fail: | |
35669 | return NULL; | |
35670 | } | |
35671 | ||
35672 | ||
35673 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35674 | PyObject *resultobj = 0; | |
35675 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35676 | wxTreeItemId *arg2 = 0 ; | |
35677 | void *arg3 = (void *) 0 ; | |
35678 | PyObject *result = 0 ; | |
35679 | void *argp1 = 0 ; | |
35680 | int res1 = 0 ; | |
35681 | void *argp2 = 0 ; | |
35682 | int res2 = 0 ; | |
35683 | int res3 ; | |
35684 | PyObject * obj0 = 0 ; | |
35685 | PyObject * obj1 = 0 ; | |
35686 | PyObject * obj2 = 0 ; | |
35687 | char * kwnames[] = { | |
35688 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
35689 | }; | |
35690 | ||
35691 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35692 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35693 | if (!SWIG_IsOK(res1)) { | |
35694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35695 | } | |
35696 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35697 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35698 | if (!SWIG_IsOK(res2)) { | |
35699 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35700 | } | |
35701 | if (!argp2) { | |
35702 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35703 | } | |
35704 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35705 | res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); | |
35706 | if (!SWIG_IsOK(res3)) { | |
35707 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'"); | |
35708 | } | |
35709 | { | |
35710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35711 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
35712 | wxPyEndAllowThreads(__tstate); | |
35713 | if (PyErr_Occurred()) SWIG_fail; | |
35714 | } | |
35715 | resultobj = result; | |
35716 | return resultobj; | |
35717 | fail: | |
35718 | return NULL; | |
35719 | } | |
35720 | ||
35721 | ||
35722 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35723 | PyObject *resultobj = 0; | |
35724 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35725 | wxTreeItemId *arg2 = 0 ; | |
35726 | wxTreeItemId result; | |
35727 | void *argp1 = 0 ; | |
35728 | int res1 = 0 ; | |
35729 | void *argp2 = 0 ; | |
35730 | int res2 = 0 ; | |
35731 | PyObject * obj0 = 0 ; | |
35732 | PyObject * obj1 = 0 ; | |
35733 | char * kwnames[] = { | |
35734 | (char *) "self",(char *) "item", NULL | |
35735 | }; | |
35736 | ||
35737 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
35738 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35739 | if (!SWIG_IsOK(res1)) { | |
35740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35741 | } | |
35742 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35743 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35744 | if (!SWIG_IsOK(res2)) { | |
35745 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35746 | } | |
35747 | if (!argp2) { | |
35748 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35749 | } | |
35750 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35751 | { | |
35752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35753 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
35754 | wxPyEndAllowThreads(__tstate); | |
35755 | if (PyErr_Occurred()) SWIG_fail; | |
35756 | } | |
35757 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35758 | return resultobj; | |
35759 | fail: | |
35760 | return NULL; | |
35761 | } | |
35762 | ||
35763 | ||
35764 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35765 | PyObject *resultobj = 0; | |
35766 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35767 | wxTreeItemId *arg2 = 0 ; | |
35768 | wxTreeItemId result; | |
35769 | void *argp1 = 0 ; | |
35770 | int res1 = 0 ; | |
35771 | void *argp2 = 0 ; | |
35772 | int res2 = 0 ; | |
35773 | PyObject * obj0 = 0 ; | |
35774 | PyObject * obj1 = 0 ; | |
35775 | char * kwnames[] = { | |
35776 | (char *) "self",(char *) "item", NULL | |
35777 | }; | |
35778 | ||
35779 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail; | |
35780 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35781 | if (!SWIG_IsOK(res1)) { | |
35782 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35783 | } | |
35784 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35785 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35786 | if (!SWIG_IsOK(res2)) { | |
35787 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35788 | } | |
35789 | if (!argp2) { | |
35790 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35791 | } | |
35792 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35793 | { | |
35794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35795 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
35796 | wxPyEndAllowThreads(__tstate); | |
35797 | if (PyErr_Occurred()) SWIG_fail; | |
35798 | } | |
35799 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35800 | return resultobj; | |
35801 | fail: | |
35802 | return NULL; | |
35803 | } | |
35804 | ||
35805 | ||
35806 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35807 | PyObject *resultobj = 0; | |
35808 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35809 | wxTreeItemId *arg2 = 0 ; | |
35810 | wxTreeItemId result; | |
35811 | void *argp1 = 0 ; | |
35812 | int res1 = 0 ; | |
35813 | void *argp2 = 0 ; | |
35814 | int res2 = 0 ; | |
35815 | PyObject * obj0 = 0 ; | |
35816 | PyObject * obj1 = 0 ; | |
35817 | char * kwnames[] = { | |
35818 | (char *) "self",(char *) "item", NULL | |
35819 | }; | |
35820 | ||
35821 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail; | |
35822 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35823 | if (!SWIG_IsOK(res1)) { | |
35824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35825 | } | |
35826 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35827 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35828 | if (!SWIG_IsOK(res2)) { | |
35829 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35830 | } | |
35831 | if (!argp2) { | |
35832 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35833 | } | |
35834 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35835 | { | |
35836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35837 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
35838 | wxPyEndAllowThreads(__tstate); | |
35839 | if (PyErr_Occurred()) SWIG_fail; | |
35840 | } | |
35841 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35842 | return resultobj; | |
35843 | fail: | |
35844 | return NULL; | |
d55e5bfc RD |
35845 | } |
35846 | ||
35847 | ||
1bd55598 RD |
35848 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35849 | PyObject *resultobj = 0; | |
35850 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35851 | wxTreeItemId result; | |
35852 | void *argp1 = 0 ; | |
35853 | int res1 = 0 ; | |
35854 | PyObject *swig_obj[1] ; | |
35855 | ||
35856 | if (!args) SWIG_fail; | |
35857 | swig_obj[0] = args; | |
35858 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35859 | if (!SWIG_IsOK(res1)) { | |
35860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35861 | } | |
35862 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35863 | { | |
35864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35865 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
35866 | wxPyEndAllowThreads(__tstate); | |
35867 | if (PyErr_Occurred()) SWIG_fail; | |
35868 | } | |
35869 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35870 | return resultobj; | |
35871 | fail: | |
35872 | return NULL; | |
35873 | } | |
35874 | ||
35875 | ||
35876 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35877 | PyObject *resultobj = 0; | |
35878 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35879 | wxTreeItemId *arg2 = 0 ; | |
35880 | wxTreeItemId result; | |
35881 | void *argp1 = 0 ; | |
35882 | int res1 = 0 ; | |
35883 | void *argp2 = 0 ; | |
35884 | int res2 = 0 ; | |
35885 | PyObject * obj0 = 0 ; | |
35886 | PyObject * obj1 = 0 ; | |
35887 | char * kwnames[] = { | |
35888 | (char *) "self",(char *) "item", NULL | |
35889 | }; | |
35890 | ||
35891 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
35892 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35893 | if (!SWIG_IsOK(res1)) { | |
35894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35895 | } | |
35896 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35897 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35898 | if (!SWIG_IsOK(res2)) { | |
35899 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35900 | } | |
35901 | if (!argp2) { | |
35902 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35903 | } | |
35904 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35905 | { | |
35906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35907 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
35908 | wxPyEndAllowThreads(__tstate); | |
35909 | if (PyErr_Occurred()) SWIG_fail; | |
35910 | } | |
35911 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35912 | return resultobj; | |
35913 | fail: | |
35914 | return NULL; | |
35915 | } | |
35916 | ||
35917 | ||
35918 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35919 | PyObject *resultobj = 0; | |
35920 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35921 | wxTreeItemId *arg2 = 0 ; | |
35922 | wxTreeItemId result; | |
35923 | void *argp1 = 0 ; | |
35924 | int res1 = 0 ; | |
35925 | void *argp2 = 0 ; | |
35926 | int res2 = 0 ; | |
35927 | PyObject * obj0 = 0 ; | |
35928 | PyObject * obj1 = 0 ; | |
35929 | char * kwnames[] = { | |
35930 | (char *) "self",(char *) "item", NULL | |
35931 | }; | |
35932 | ||
35933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
35934 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35935 | if (!SWIG_IsOK(res1)) { | |
35936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35937 | } | |
35938 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35939 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35940 | if (!SWIG_IsOK(res2)) { | |
35941 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35942 | } | |
35943 | if (!argp2) { | |
35944 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35945 | } | |
35946 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35947 | { | |
35948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35949 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
35950 | wxPyEndAllowThreads(__tstate); | |
35951 | if (PyErr_Occurred()) SWIG_fail; | |
35952 | } | |
35953 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35954 | return resultobj; | |
35955 | fail: | |
35956 | return NULL; | |
35957 | } | |
35958 | ||
35959 | ||
35960 | SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35961 | PyObject *resultobj = 0; | |
35962 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35963 | wxString *arg2 = 0 ; | |
35964 | int arg3 = (int) -1 ; | |
35965 | int arg4 = (int) -1 ; | |
35966 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
35967 | wxTreeItemId result; | |
35968 | void *argp1 = 0 ; | |
35969 | int res1 = 0 ; | |
35970 | bool temp2 = false ; | |
35971 | int val3 ; | |
35972 | int ecode3 = 0 ; | |
35973 | int val4 ; | |
35974 | int ecode4 = 0 ; | |
35975 | int res5 = 0 ; | |
35976 | PyObject * obj0 = 0 ; | |
35977 | PyObject * obj1 = 0 ; | |
35978 | PyObject * obj2 = 0 ; | |
35979 | PyObject * obj3 = 0 ; | |
35980 | PyObject * obj4 = 0 ; | |
35981 | char * kwnames[] = { | |
35982 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
35983 | }; | |
35984 | ||
35985 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35986 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35987 | if (!SWIG_IsOK(res1)) { | |
35988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35989 | } | |
35990 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35991 | { | |
35992 | arg2 = wxString_in_helper(obj1); | |
35993 | if (arg2 == NULL) SWIG_fail; | |
35994 | temp2 = true; | |
35995 | } | |
35996 | if (obj2) { | |
35997 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35998 | if (!SWIG_IsOK(ecode3)) { | |
35999 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'"); | |
36000 | } | |
36001 | arg3 = static_cast< int >(val3); | |
36002 | } | |
36003 | if (obj3) { | |
36004 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36005 | if (!SWIG_IsOK(ecode4)) { | |
36006 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'"); | |
36007 | } | |
36008 | arg4 = static_cast< int >(val4); | |
36009 | } | |
36010 | if (obj4) { | |
36011 | res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36012 | if (!SWIG_IsOK(res5)) { | |
36013 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'"); | |
36ed4f51 | 36014 | } |
1bd55598 RD |
36015 | } |
36016 | { | |
36017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36018 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
36019 | wxPyEndAllowThreads(__tstate); | |
36020 | if (PyErr_Occurred()) SWIG_fail; | |
36021 | } | |
36022 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36023 | { | |
36024 | if (temp2) | |
36025 | delete arg2; | |
36026 | } | |
36027 | return resultobj; | |
36028 | fail: | |
36029 | { | |
36030 | if (temp2) | |
36031 | delete arg2; | |
36032 | } | |
36033 | return NULL; | |
36034 | } | |
36035 | ||
36036 | ||
36037 | SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36038 | PyObject *resultobj = 0; | |
36039 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36040 | wxTreeItemId *arg2 = 0 ; | |
36041 | wxString *arg3 = 0 ; | |
36042 | int arg4 = (int) -1 ; | |
36043 | int arg5 = (int) -1 ; | |
36044 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
36045 | wxTreeItemId result; | |
36046 | void *argp1 = 0 ; | |
36047 | int res1 = 0 ; | |
36048 | void *argp2 = 0 ; | |
36049 | int res2 = 0 ; | |
36050 | bool temp3 = false ; | |
36051 | int val4 ; | |
36052 | int ecode4 = 0 ; | |
36053 | int val5 ; | |
36054 | int ecode5 = 0 ; | |
36055 | int res6 = 0 ; | |
36056 | PyObject * obj0 = 0 ; | |
36057 | PyObject * obj1 = 0 ; | |
36058 | PyObject * obj2 = 0 ; | |
36059 | PyObject * obj3 = 0 ; | |
36060 | PyObject * obj4 = 0 ; | |
36061 | PyObject * obj5 = 0 ; | |
36062 | char * kwnames[] = { | |
36063 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36064 | }; | |
36065 | ||
36066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
36067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36068 | if (!SWIG_IsOK(res1)) { | |
36069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36070 | } | |
36071 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36072 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36073 | if (!SWIG_IsOK(res2)) { | |
36074 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36075 | } | |
36076 | if (!argp2) { | |
36077 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36078 | } | |
36079 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36080 | { | |
36081 | arg3 = wxString_in_helper(obj2); | |
36082 | if (arg3 == NULL) SWIG_fail; | |
36083 | temp3 = true; | |
36084 | } | |
36085 | if (obj3) { | |
36086 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36087 | if (!SWIG_IsOK(ecode4)) { | |
36088 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'"); | |
36089 | } | |
36090 | arg4 = static_cast< int >(val4); | |
36091 | } | |
36092 | if (obj4) { | |
36093 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36094 | if (!SWIG_IsOK(ecode5)) { | |
36095 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'"); | |
36096 | } | |
36097 | arg5 = static_cast< int >(val5); | |
36098 | } | |
36099 | if (obj5) { | |
36100 | res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36101 | if (!SWIG_IsOK(res6)) { | |
36102 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'"); | |
d55e5bfc | 36103 | } |
1bd55598 RD |
36104 | } |
36105 | { | |
36106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36107 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
36108 | wxPyEndAllowThreads(__tstate); | |
36109 | if (PyErr_Occurred()) SWIG_fail; | |
36110 | } | |
36111 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36112 | { | |
36113 | if (temp3) | |
36114 | delete arg3; | |
36115 | } | |
36116 | return resultobj; | |
36117 | fail: | |
36118 | { | |
36119 | if (temp3) | |
36120 | delete arg3; | |
36121 | } | |
36122 | return NULL; | |
36123 | } | |
36124 | ||
36125 | ||
36126 | SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36127 | PyObject *resultobj = 0; | |
36128 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36129 | wxTreeItemId *arg2 = 0 ; | |
36130 | wxTreeItemId *arg3 = 0 ; | |
36131 | wxString *arg4 = 0 ; | |
36132 | int arg5 = (int) -1 ; | |
36133 | int arg6 = (int) -1 ; | |
36134 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
36135 | wxTreeItemId result; | |
36136 | void *argp1 = 0 ; | |
36137 | int res1 = 0 ; | |
36138 | void *argp2 = 0 ; | |
36139 | int res2 = 0 ; | |
36140 | void *argp3 = 0 ; | |
36141 | int res3 = 0 ; | |
36142 | bool temp4 = false ; | |
36143 | int val5 ; | |
36144 | int ecode5 = 0 ; | |
36145 | int val6 ; | |
36146 | int ecode6 = 0 ; | |
36147 | int res7 = 0 ; | |
36148 | PyObject * obj0 = 0 ; | |
36149 | PyObject * obj1 = 0 ; | |
36150 | PyObject * obj2 = 0 ; | |
36151 | PyObject * obj3 = 0 ; | |
36152 | PyObject * obj4 = 0 ; | |
36153 | PyObject * obj5 = 0 ; | |
36154 | PyObject * obj6 = 0 ; | |
36155 | char * kwnames[] = { | |
36156 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36157 | }; | |
36158 | ||
36159 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36160 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36161 | if (!SWIG_IsOK(res1)) { | |
36162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36163 | } | |
36164 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36165 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36166 | if (!SWIG_IsOK(res2)) { | |
36167 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36168 | } | |
36169 | if (!argp2) { | |
36170 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36171 | } | |
36172 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36173 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36174 | if (!SWIG_IsOK(res3)) { | |
36175 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'"); | |
36176 | } | |
36177 | if (!argp3) { | |
36178 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'"); | |
36179 | } | |
36180 | arg3 = reinterpret_cast< wxTreeItemId * >(argp3); | |
36181 | { | |
36182 | arg4 = wxString_in_helper(obj3); | |
36183 | if (arg4 == NULL) SWIG_fail; | |
36184 | temp4 = true; | |
36185 | } | |
36186 | if (obj4) { | |
36187 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36188 | if (!SWIG_IsOK(ecode5)) { | |
36189 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'"); | |
36190 | } | |
36191 | arg5 = static_cast< int >(val5); | |
36192 | } | |
36193 | if (obj5) { | |
36194 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
36195 | if (!SWIG_IsOK(ecode6)) { | |
36196 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'"); | |
36197 | } | |
36198 | arg6 = static_cast< int >(val6); | |
36199 | } | |
36200 | if (obj6) { | |
36201 | res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36202 | if (!SWIG_IsOK(res7)) { | |
36203 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'"); | |
d55e5bfc | 36204 | } |
1bd55598 RD |
36205 | } |
36206 | { | |
36207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36208 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
36209 | wxPyEndAllowThreads(__tstate); | |
36210 | if (PyErr_Occurred()) SWIG_fail; | |
36211 | } | |
36212 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36213 | { | |
36214 | if (temp4) | |
36215 | delete arg4; | |
36216 | } | |
36217 | return resultobj; | |
36218 | fail: | |
36219 | { | |
36220 | if (temp4) | |
36221 | delete arg4; | |
36222 | } | |
36223 | return NULL; | |
36224 | } | |
36225 | ||
36226 | ||
36227 | SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36228 | PyObject *resultobj = 0; | |
36229 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36230 | wxTreeItemId *arg2 = 0 ; | |
36231 | size_t arg3 ; | |
36232 | wxString *arg4 = 0 ; | |
36233 | int arg5 = (int) -1 ; | |
36234 | int arg6 = (int) -1 ; | |
36235 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
36236 | wxTreeItemId result; | |
36237 | void *argp1 = 0 ; | |
36238 | int res1 = 0 ; | |
36239 | void *argp2 = 0 ; | |
36240 | int res2 = 0 ; | |
36241 | size_t val3 ; | |
36242 | int ecode3 = 0 ; | |
36243 | bool temp4 = false ; | |
36244 | int val5 ; | |
36245 | int ecode5 = 0 ; | |
36246 | int val6 ; | |
36247 | int ecode6 = 0 ; | |
36248 | int res7 = 0 ; | |
36249 | PyObject * obj0 = 0 ; | |
36250 | PyObject * obj1 = 0 ; | |
36251 | PyObject * obj2 = 0 ; | |
36252 | PyObject * obj3 = 0 ; | |
36253 | PyObject * obj4 = 0 ; | |
36254 | PyObject * obj5 = 0 ; | |
36255 | PyObject * obj6 = 0 ; | |
36256 | char * kwnames[] = { | |
36257 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36258 | }; | |
36259 | ||
36260 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36261 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36262 | if (!SWIG_IsOK(res1)) { | |
36263 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36264 | } | |
36265 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36266 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36267 | if (!SWIG_IsOK(res2)) { | |
36268 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36269 | } | |
36270 | if (!argp2) { | |
36271 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36272 | } | |
36273 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36274 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
36275 | if (!SWIG_IsOK(ecode3)) { | |
36276 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'"); | |
36277 | } | |
36278 | arg3 = static_cast< size_t >(val3); | |
36279 | { | |
36280 | arg4 = wxString_in_helper(obj3); | |
36281 | if (arg4 == NULL) SWIG_fail; | |
36282 | temp4 = true; | |
36283 | } | |
36284 | if (obj4) { | |
36285 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36286 | if (!SWIG_IsOK(ecode5)) { | |
36287 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'"); | |
36288 | } | |
36289 | arg5 = static_cast< int >(val5); | |
36290 | } | |
36291 | if (obj5) { | |
36292 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
36293 | if (!SWIG_IsOK(ecode6)) { | |
36294 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'"); | |
36295 | } | |
36296 | arg6 = static_cast< int >(val6); | |
36297 | } | |
36298 | if (obj6) { | |
36299 | res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36300 | if (!SWIG_IsOK(res7)) { | |
36301 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'"); | |
d55e5bfc | 36302 | } |
1bd55598 RD |
36303 | } |
36304 | { | |
36305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36306 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
36307 | wxPyEndAllowThreads(__tstate); | |
36308 | if (PyErr_Occurred()) SWIG_fail; | |
36309 | } | |
36310 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36311 | { | |
36312 | if (temp4) | |
36313 | delete arg4; | |
36314 | } | |
36315 | return resultobj; | |
36316 | fail: | |
36317 | { | |
36318 | if (temp4) | |
36319 | delete arg4; | |
36320 | } | |
36321 | return NULL; | |
36322 | } | |
36323 | ||
36324 | ||
36325 | SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36326 | PyObject *resultobj = 0; | |
36327 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36328 | wxTreeItemId *arg2 = 0 ; | |
36329 | wxString *arg3 = 0 ; | |
36330 | int arg4 = (int) -1 ; | |
36331 | int arg5 = (int) -1 ; | |
36332 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
36333 | wxTreeItemId result; | |
36334 | void *argp1 = 0 ; | |
36335 | int res1 = 0 ; | |
36336 | void *argp2 = 0 ; | |
36337 | int res2 = 0 ; | |
36338 | bool temp3 = false ; | |
36339 | int val4 ; | |
36340 | int ecode4 = 0 ; | |
36341 | int val5 ; | |
36342 | int ecode5 = 0 ; | |
36343 | int res6 = 0 ; | |
36344 | PyObject * obj0 = 0 ; | |
36345 | PyObject * obj1 = 0 ; | |
36346 | PyObject * obj2 = 0 ; | |
36347 | PyObject * obj3 = 0 ; | |
36348 | PyObject * obj4 = 0 ; | |
36349 | PyObject * obj5 = 0 ; | |
36350 | char * kwnames[] = { | |
36351 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36352 | }; | |
36353 | ||
36354 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
36355 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36356 | if (!SWIG_IsOK(res1)) { | |
36357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36358 | } | |
36359 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36360 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36361 | if (!SWIG_IsOK(res2)) { | |
36362 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36363 | } | |
36364 | if (!argp2) { | |
36365 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36366 | } | |
36367 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36368 | { | |
36369 | arg3 = wxString_in_helper(obj2); | |
36370 | if (arg3 == NULL) SWIG_fail; | |
36371 | temp3 = true; | |
36372 | } | |
36373 | if (obj3) { | |
36374 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36375 | if (!SWIG_IsOK(ecode4)) { | |
36376 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'"); | |
36377 | } | |
36378 | arg4 = static_cast< int >(val4); | |
36379 | } | |
36380 | if (obj4) { | |
36381 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36382 | if (!SWIG_IsOK(ecode5)) { | |
36383 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'"); | |
36384 | } | |
36385 | arg5 = static_cast< int >(val5); | |
36386 | } | |
36387 | if (obj5) { | |
36388 | res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36389 | if (!SWIG_IsOK(res6)) { | |
36390 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'"); | |
d55e5bfc | 36391 | } |
1bd55598 RD |
36392 | } |
36393 | { | |
36394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36395 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
36396 | wxPyEndAllowThreads(__tstate); | |
36397 | if (PyErr_Occurred()) SWIG_fail; | |
36398 | } | |
36399 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36400 | { | |
36401 | if (temp3) | |
36402 | delete arg3; | |
36403 | } | |
36404 | return resultobj; | |
36405 | fail: | |
36406 | { | |
36407 | if (temp3) | |
36408 | delete arg3; | |
36409 | } | |
36410 | return NULL; | |
36411 | } | |
36412 | ||
36413 | ||
36414 | SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36415 | PyObject *resultobj = 0; | |
36416 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36417 | wxTreeItemId *arg2 = 0 ; | |
36418 | void *argp1 = 0 ; | |
36419 | int res1 = 0 ; | |
36420 | void *argp2 = 0 ; | |
36421 | int res2 = 0 ; | |
36422 | PyObject * obj0 = 0 ; | |
36423 | PyObject * obj1 = 0 ; | |
36424 | char * kwnames[] = { | |
36425 | (char *) "self",(char *) "item", NULL | |
36426 | }; | |
36427 | ||
36428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail; | |
36429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36430 | if (!SWIG_IsOK(res1)) { | |
36431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36432 | } | |
36433 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36434 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36435 | if (!SWIG_IsOK(res2)) { | |
36436 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36437 | } | |
36438 | if (!argp2) { | |
36439 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36440 | } | |
36441 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36442 | { | |
36443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36444 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
36445 | wxPyEndAllowThreads(__tstate); | |
36446 | if (PyErr_Occurred()) SWIG_fail; | |
36447 | } | |
36448 | resultobj = SWIG_Py_Void(); | |
36449 | return resultobj; | |
36450 | fail: | |
36451 | return NULL; | |
36452 | } | |
36453 | ||
36454 | ||
36455 | SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36456 | PyObject *resultobj = 0; | |
36457 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36458 | wxTreeItemId *arg2 = 0 ; | |
36459 | void *argp1 = 0 ; | |
36460 | int res1 = 0 ; | |
36461 | void *argp2 = 0 ; | |
36462 | int res2 = 0 ; | |
36463 | PyObject * obj0 = 0 ; | |
36464 | PyObject * obj1 = 0 ; | |
36465 | char * kwnames[] = { | |
36466 | (char *) "self",(char *) "item", NULL | |
36467 | }; | |
36468 | ||
36469 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
36470 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36471 | if (!SWIG_IsOK(res1)) { | |
36472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36473 | } | |
36474 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36475 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36476 | if (!SWIG_IsOK(res2)) { | |
36477 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36478 | } | |
36479 | if (!argp2) { | |
36480 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36481 | } | |
36482 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36483 | { | |
36484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36485 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
36486 | wxPyEndAllowThreads(__tstate); | |
36487 | if (PyErr_Occurred()) SWIG_fail; | |
36488 | } | |
36489 | resultobj = SWIG_Py_Void(); | |
36490 | return resultobj; | |
36491 | fail: | |
36492 | return NULL; | |
d55e5bfc RD |
36493 | } |
36494 | ||
36495 | ||
1bd55598 RD |
36496 | SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36497 | PyObject *resultobj = 0; | |
36498 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36499 | void *argp1 = 0 ; | |
36500 | int res1 = 0 ; | |
36501 | PyObject *swig_obj[1] ; | |
36502 | ||
36503 | if (!args) SWIG_fail; | |
36504 | swig_obj[0] = args; | |
36505 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36506 | if (!SWIG_IsOK(res1)) { | |
36507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36508 | } | |
36509 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36510 | { | |
36511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36512 | (arg1)->DeleteAllItems(); | |
36513 | wxPyEndAllowThreads(__tstate); | |
36514 | if (PyErr_Occurred()) SWIG_fail; | |
36515 | } | |
36516 | resultobj = SWIG_Py_Void(); | |
36517 | return resultobj; | |
36518 | fail: | |
36519 | return NULL; | |
36520 | } | |
36521 | ||
36522 | ||
36523 | SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36524 | PyObject *resultobj = 0; | |
36525 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36526 | wxTreeItemId *arg2 = 0 ; | |
36527 | void *argp1 = 0 ; | |
36528 | int res1 = 0 ; | |
36529 | void *argp2 = 0 ; | |
36530 | int res2 = 0 ; | |
36531 | PyObject * obj0 = 0 ; | |
36532 | PyObject * obj1 = 0 ; | |
36533 | char * kwnames[] = { | |
36534 | (char *) "self",(char *) "item", NULL | |
36535 | }; | |
36536 | ||
36537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail; | |
36538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36539 | if (!SWIG_IsOK(res1)) { | |
36540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36541 | } | |
36542 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36543 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36544 | if (!SWIG_IsOK(res2)) { | |
36545 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36546 | } | |
36547 | if (!argp2) { | |
36548 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36549 | } | |
36550 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36551 | { | |
36552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36553 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
36554 | wxPyEndAllowThreads(__tstate); | |
36555 | if (PyErr_Occurred()) SWIG_fail; | |
36556 | } | |
36557 | resultobj = SWIG_Py_Void(); | |
36558 | return resultobj; | |
36559 | fail: | |
36560 | return NULL; | |
36561 | } | |
36562 | ||
36563 | ||
3d6c9062 RD |
36564 | SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36565 | PyObject *resultobj = 0; | |
36566 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36567 | wxTreeItemId *arg2 = 0 ; | |
36568 | void *argp1 = 0 ; | |
36569 | int res1 = 0 ; | |
36570 | void *argp2 = 0 ; | |
36571 | int res2 = 0 ; | |
36572 | PyObject * obj0 = 0 ; | |
36573 | PyObject * obj1 = 0 ; | |
36574 | char * kwnames[] = { | |
36575 | (char *) "self",(char *) "item", NULL | |
36576 | }; | |
36577 | ||
36578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
36579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36580 | if (!SWIG_IsOK(res1)) { | |
36581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36582 | } | |
36583 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36584 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36585 | if (!SWIG_IsOK(res2)) { | |
36586 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36587 | } | |
36588 | if (!argp2) { | |
36589 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36590 | } | |
36591 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36592 | { | |
36593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36594 | (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2); | |
36595 | wxPyEndAllowThreads(__tstate); | |
36596 | if (PyErr_Occurred()) SWIG_fail; | |
36597 | } | |
36598 | resultobj = SWIG_Py_Void(); | |
36599 | return resultobj; | |
36600 | fail: | |
36601 | return NULL; | |
36602 | } | |
36603 | ||
36604 | ||
36605 | SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36606 | PyObject *resultobj = 0; | |
36607 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36608 | void *argp1 = 0 ; | |
36609 | int res1 = 0 ; | |
36610 | PyObject *swig_obj[1] ; | |
36611 | ||
36612 | if (!args) SWIG_fail; | |
36613 | swig_obj[0] = args; | |
36614 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36615 | if (!SWIG_IsOK(res1)) { | |
36616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36617 | } | |
36618 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36619 | { | |
36620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36621 | (arg1)->ExpandAll(); | |
36622 | wxPyEndAllowThreads(__tstate); | |
36623 | if (PyErr_Occurred()) SWIG_fail; | |
36624 | } | |
36625 | resultobj = SWIG_Py_Void(); | |
36626 | return resultobj; | |
36627 | fail: | |
36628 | return NULL; | |
36629 | } | |
36630 | ||
36631 | ||
1bd55598 RD |
36632 | SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36633 | PyObject *resultobj = 0; | |
36634 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36635 | wxTreeItemId *arg2 = 0 ; | |
36636 | void *argp1 = 0 ; | |
36637 | int res1 = 0 ; | |
36638 | void *argp2 = 0 ; | |
36639 | int res2 = 0 ; | |
36640 | PyObject * obj0 = 0 ; | |
36641 | PyObject * obj1 = 0 ; | |
36642 | char * kwnames[] = { | |
36643 | (char *) "self",(char *) "item", NULL | |
36644 | }; | |
36645 | ||
36646 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail; | |
36647 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36648 | if (!SWIG_IsOK(res1)) { | |
36649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36650 | } | |
36651 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36652 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36653 | if (!SWIG_IsOK(res2)) { | |
36654 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36655 | } | |
36656 | if (!argp2) { | |
36657 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36658 | } | |
36659 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36660 | { | |
36661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36662 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
36663 | wxPyEndAllowThreads(__tstate); | |
36664 | if (PyErr_Occurred()) SWIG_fail; | |
36665 | } | |
36666 | resultobj = SWIG_Py_Void(); | |
36667 | return resultobj; | |
36668 | fail: | |
36669 | return NULL; | |
36670 | } | |
36671 | ||
36672 | ||
36673 | SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36674 | PyObject *resultobj = 0; | |
36675 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36676 | wxTreeItemId *arg2 = 0 ; | |
36677 | void *argp1 = 0 ; | |
36678 | int res1 = 0 ; | |
36679 | void *argp2 = 0 ; | |
36680 | int res2 = 0 ; | |
36681 | PyObject * obj0 = 0 ; | |
36682 | PyObject * obj1 = 0 ; | |
36683 | char * kwnames[] = { | |
36684 | (char *) "self",(char *) "item", NULL | |
36685 | }; | |
36686 | ||
36687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail; | |
36688 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36689 | if (!SWIG_IsOK(res1)) { | |
36690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36691 | } | |
36692 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36693 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36694 | if (!SWIG_IsOK(res2)) { | |
36695 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36696 | } | |
36697 | if (!argp2) { | |
36698 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36699 | } | |
36700 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36701 | { | |
36702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36703 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
36704 | wxPyEndAllowThreads(__tstate); | |
36705 | if (PyErr_Occurred()) SWIG_fail; | |
36706 | } | |
36707 | resultobj = SWIG_Py_Void(); | |
36708 | return resultobj; | |
36709 | fail: | |
36710 | return NULL; | |
36711 | } | |
36712 | ||
36713 | ||
36714 | SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36715 | PyObject *resultobj = 0; | |
36716 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36717 | wxTreeItemId *arg2 = 0 ; | |
36718 | void *argp1 = 0 ; | |
36719 | int res1 = 0 ; | |
36720 | void *argp2 = 0 ; | |
36721 | int res2 = 0 ; | |
36722 | PyObject * obj0 = 0 ; | |
36723 | PyObject * obj1 = 0 ; | |
36724 | char * kwnames[] = { | |
36725 | (char *) "self",(char *) "item", NULL | |
36726 | }; | |
36727 | ||
36728 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
36729 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36730 | if (!SWIG_IsOK(res1)) { | |
36731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36732 | } | |
36733 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36734 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36735 | if (!SWIG_IsOK(res2)) { | |
36736 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36737 | } | |
36738 | if (!argp2) { | |
36739 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36740 | } | |
36741 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36742 | { | |
36743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36744 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
36745 | wxPyEndAllowThreads(__tstate); | |
36746 | if (PyErr_Occurred()) SWIG_fail; | |
36747 | } | |
36748 | resultobj = SWIG_Py_Void(); | |
36749 | return resultobj; | |
36750 | fail: | |
36751 | return NULL; | |
d55e5bfc RD |
36752 | } |
36753 | ||
36754 | ||
1bd55598 RD |
36755 | SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36756 | PyObject *resultobj = 0; | |
36757 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36758 | void *argp1 = 0 ; | |
36759 | int res1 = 0 ; | |
36760 | PyObject *swig_obj[1] ; | |
36761 | ||
36762 | if (!args) SWIG_fail; | |
36763 | swig_obj[0] = args; | |
36764 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36765 | if (!SWIG_IsOK(res1)) { | |
36766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36767 | } | |
36768 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36769 | { | |
36770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36771 | (arg1)->Unselect(); | |
36772 | wxPyEndAllowThreads(__tstate); | |
36773 | if (PyErr_Occurred()) SWIG_fail; | |
36774 | } | |
36775 | resultobj = SWIG_Py_Void(); | |
36776 | return resultobj; | |
36777 | fail: | |
36778 | return NULL; | |
36779 | } | |
36780 | ||
36781 | ||
36782 | SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36783 | PyObject *resultobj = 0; | |
36784 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36785 | wxTreeItemId *arg2 = 0 ; | |
36786 | void *argp1 = 0 ; | |
36787 | int res1 = 0 ; | |
36788 | void *argp2 = 0 ; | |
36789 | int res2 = 0 ; | |
36790 | PyObject * obj0 = 0 ; | |
36791 | PyObject * obj1 = 0 ; | |
36792 | char * kwnames[] = { | |
36793 | (char *) "self",(char *) "item", NULL | |
36794 | }; | |
36795 | ||
36796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
36797 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36798 | if (!SWIG_IsOK(res1)) { | |
36799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36800 | } | |
36801 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36802 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36803 | if (!SWIG_IsOK(res2)) { | |
36804 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36805 | } | |
36806 | if (!argp2) { | |
36807 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36808 | } | |
36809 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36810 | { | |
36811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36812 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
36813 | wxPyEndAllowThreads(__tstate); | |
36814 | if (PyErr_Occurred()) SWIG_fail; | |
36815 | } | |
36816 | resultobj = SWIG_Py_Void(); | |
36817 | return resultobj; | |
36818 | fail: | |
36819 | return NULL; | |
d55e5bfc RD |
36820 | } |
36821 | ||
36822 | ||
1bd55598 RD |
36823 | SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36824 | PyObject *resultobj = 0; | |
36825 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36826 | void *argp1 = 0 ; | |
36827 | int res1 = 0 ; | |
36828 | PyObject *swig_obj[1] ; | |
36829 | ||
36830 | if (!args) SWIG_fail; | |
36831 | swig_obj[0] = args; | |
36832 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36833 | if (!SWIG_IsOK(res1)) { | |
36834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36835 | } | |
36836 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36837 | { | |
36838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36839 | (arg1)->UnselectAll(); | |
36840 | wxPyEndAllowThreads(__tstate); | |
36841 | if (PyErr_Occurred()) SWIG_fail; | |
36842 | } | |
36843 | resultobj = SWIG_Py_Void(); | |
36844 | return resultobj; | |
36845 | fail: | |
36846 | return NULL; | |
36847 | } | |
36848 | ||
36849 | ||
36850 | SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36851 | PyObject *resultobj = 0; | |
36852 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36853 | wxTreeItemId *arg2 = 0 ; | |
36854 | bool arg3 = (bool) true ; | |
36855 | void *argp1 = 0 ; | |
36856 | int res1 = 0 ; | |
36857 | void *argp2 = 0 ; | |
36858 | int res2 = 0 ; | |
36859 | bool val3 ; | |
36860 | int ecode3 = 0 ; | |
36861 | PyObject * obj0 = 0 ; | |
36862 | PyObject * obj1 = 0 ; | |
36863 | PyObject * obj2 = 0 ; | |
36864 | char * kwnames[] = { | |
36865 | (char *) "self",(char *) "item",(char *) "select", NULL | |
36866 | }; | |
36867 | ||
36868 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36870 | if (!SWIG_IsOK(res1)) { | |
36871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36872 | } | |
36873 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36874 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36875 | if (!SWIG_IsOK(res2)) { | |
36876 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36877 | } | |
36878 | if (!argp2) { | |
36879 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36880 | } | |
36881 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36882 | if (obj2) { | |
36883 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
36884 | if (!SWIG_IsOK(ecode3)) { | |
36885 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'"); | |
36886 | } | |
36887 | arg3 = static_cast< bool >(val3); | |
36888 | } | |
36889 | { | |
36890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36891 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
36892 | wxPyEndAllowThreads(__tstate); | |
36893 | if (PyErr_Occurred()) SWIG_fail; | |
36894 | } | |
36895 | resultobj = SWIG_Py_Void(); | |
36896 | return resultobj; | |
36897 | fail: | |
36898 | return NULL; | |
36899 | } | |
36900 | ||
36901 | ||
36902 | SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36903 | PyObject *resultobj = 0; | |
36904 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36905 | wxTreeItemId *arg2 = 0 ; | |
36906 | void *argp1 = 0 ; | |
36907 | int res1 = 0 ; | |
36908 | void *argp2 = 0 ; | |
36909 | int res2 = 0 ; | |
36910 | PyObject * obj0 = 0 ; | |
36911 | PyObject * obj1 = 0 ; | |
36912 | char * kwnames[] = { | |
36913 | (char *) "self",(char *) "item", NULL | |
36914 | }; | |
36915 | ||
36916 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
36917 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36918 | if (!SWIG_IsOK(res1)) { | |
36919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36920 | } | |
36921 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36922 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36923 | if (!SWIG_IsOK(res2)) { | |
36924 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36925 | } | |
36926 | if (!argp2) { | |
36927 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36928 | } | |
36929 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36930 | { | |
36931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36932 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
36933 | wxPyEndAllowThreads(__tstate); | |
36934 | if (PyErr_Occurred()) SWIG_fail; | |
36935 | } | |
36936 | resultobj = SWIG_Py_Void(); | |
36937 | return resultobj; | |
36938 | fail: | |
36939 | return NULL; | |
36940 | } | |
36941 | ||
36942 | ||
36943 | SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36944 | PyObject *resultobj = 0; | |
36945 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36946 | wxTreeItemId *arg2 = 0 ; | |
36947 | void *argp1 = 0 ; | |
36948 | int res1 = 0 ; | |
36949 | void *argp2 = 0 ; | |
36950 | int res2 = 0 ; | |
36951 | PyObject * obj0 = 0 ; | |
36952 | PyObject * obj1 = 0 ; | |
36953 | char * kwnames[] = { | |
36954 | (char *) "self",(char *) "item", NULL | |
36955 | }; | |
36956 | ||
36957 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
36958 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36959 | if (!SWIG_IsOK(res1)) { | |
36960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36961 | } | |
36962 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36963 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36964 | if (!SWIG_IsOK(res2)) { | |
36965 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36966 | } | |
36967 | if (!argp2) { | |
36968 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36969 | } | |
36970 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36971 | { | |
36972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36973 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
36974 | wxPyEndAllowThreads(__tstate); | |
36975 | if (PyErr_Occurred()) SWIG_fail; | |
36976 | } | |
36977 | resultobj = SWIG_Py_Void(); | |
36978 | return resultobj; | |
36979 | fail: | |
36980 | return NULL; | |
36981 | } | |
36982 | ||
36983 | ||
36984 | SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36985 | PyObject *resultobj = 0; | |
36986 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36987 | wxTreeItemId *arg2 = 0 ; | |
36988 | void *argp1 = 0 ; | |
36989 | int res1 = 0 ; | |
36990 | void *argp2 = 0 ; | |
36991 | int res2 = 0 ; | |
36992 | PyObject * obj0 = 0 ; | |
36993 | PyObject * obj1 = 0 ; | |
36994 | char * kwnames[] = { | |
36995 | (char *) "self",(char *) "item", NULL | |
36996 | }; | |
36997 | ||
36998 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail; | |
36999 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37000 | if (!SWIG_IsOK(res1)) { | |
37001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37002 | } | |
37003 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37004 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37005 | if (!SWIG_IsOK(res2)) { | |
37006 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37007 | } | |
37008 | if (!argp2) { | |
37009 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37010 | } | |
37011 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37012 | { | |
37013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37014 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
37015 | wxPyEndAllowThreads(__tstate); | |
37016 | if (PyErr_Occurred()) SWIG_fail; | |
37017 | } | |
37018 | resultobj = SWIG_Py_Void(); | |
37019 | return resultobj; | |
37020 | fail: | |
37021 | return NULL; | |
37022 | } | |
37023 | ||
37024 | ||
37025 | SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37026 | PyObject *resultobj = 0; | |
37027 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37028 | wxTreeItemId *arg2 = 0 ; | |
37029 | void *argp1 = 0 ; | |
37030 | int res1 = 0 ; | |
37031 | void *argp2 = 0 ; | |
37032 | int res2 = 0 ; | |
37033 | PyObject * obj0 = 0 ; | |
37034 | PyObject * obj1 = 0 ; | |
37035 | char * kwnames[] = { | |
37036 | (char *) "self",(char *) "item", NULL | |
37037 | }; | |
37038 | ||
37039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
37040 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37041 | if (!SWIG_IsOK(res1)) { | |
37042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37043 | } | |
37044 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37045 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37046 | if (!SWIG_IsOK(res2)) { | |
37047 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37048 | } | |
37049 | if (!argp2) { | |
37050 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37051 | } | |
37052 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37053 | { | |
37054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37055 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
37056 | wxPyEndAllowThreads(__tstate); | |
37057 | if (PyErr_Occurred()) SWIG_fail; | |
37058 | } | |
37059 | resultobj = SWIG_Py_Void(); | |
37060 | return resultobj; | |
37061 | fail: | |
37062 | return NULL; | |
d55e5bfc RD |
37063 | } |
37064 | ||
37065 | ||
1bd55598 RD |
37066 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37067 | PyObject *resultobj = 0; | |
37068 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37069 | wxTextCtrl *result = 0 ; | |
37070 | void *argp1 = 0 ; | |
37071 | int res1 = 0 ; | |
37072 | PyObject *swig_obj[1] ; | |
37073 | ||
37074 | if (!args) SWIG_fail; | |
37075 | swig_obj[0] = args; | |
37076 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37077 | if (!SWIG_IsOK(res1)) { | |
37078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
37079 | } | |
37080 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37081 | { | |
37082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37083 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
37084 | wxPyEndAllowThreads(__tstate); | |
37085 | if (PyErr_Occurred()) SWIG_fail; | |
37086 | } | |
37087 | { | |
37088 | resultobj = wxPyMake_wxObject(result, 0); | |
37089 | } | |
37090 | return resultobj; | |
37091 | fail: | |
37092 | return NULL; | |
37093 | } | |
37094 | ||
37095 | ||
37096 | SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37097 | PyObject *resultobj = 0; | |
37098 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37099 | wxTreeItemId *arg2 = 0 ; | |
37100 | void *argp1 = 0 ; | |
37101 | int res1 = 0 ; | |
37102 | void *argp2 = 0 ; | |
37103 | int res2 = 0 ; | |
37104 | PyObject * obj0 = 0 ; | |
37105 | PyObject * obj1 = 0 ; | |
37106 | char * kwnames[] = { | |
37107 | (char *) "self",(char *) "item", NULL | |
37108 | }; | |
37109 | ||
37110 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
37111 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37112 | if (!SWIG_IsOK(res1)) { | |
37113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37114 | } | |
37115 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37116 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37117 | if (!SWIG_IsOK(res2)) { | |
37118 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37119 | } | |
37120 | if (!argp2) { | |
37121 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37122 | } | |
37123 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37124 | { | |
37125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37126 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
37127 | wxPyEndAllowThreads(__tstate); | |
37128 | if (PyErr_Occurred()) SWIG_fail; | |
37129 | } | |
37130 | resultobj = SWIG_Py_Void(); | |
37131 | return resultobj; | |
37132 | fail: | |
37133 | return NULL; | |
37134 | } | |
37135 | ||
37136 | ||
37137 | SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37138 | PyObject *resultobj = 0; | |
37139 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37140 | wxPoint *arg2 = 0 ; | |
37141 | int *arg3 = 0 ; | |
37142 | wxTreeItemId result; | |
37143 | void *argp1 = 0 ; | |
37144 | int res1 = 0 ; | |
37145 | wxPoint temp2 ; | |
37146 | int temp3 ; | |
37147 | int res3 = SWIG_TMPOBJ ; | |
37148 | PyObject * obj0 = 0 ; | |
37149 | PyObject * obj1 = 0 ; | |
37150 | char * kwnames[] = { | |
37151 | (char *) "self",(char *) "point", NULL | |
37152 | }; | |
37153 | ||
37154 | arg3 = &temp3; | |
37155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
37156 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37157 | if (!SWIG_IsOK(res1)) { | |
37158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37159 | } | |
37160 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37161 | { | |
37162 | arg2 = &temp2; | |
37163 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37164 | } | |
37165 | { | |
37166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37167 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
37168 | wxPyEndAllowThreads(__tstate); | |
37169 | if (PyErr_Occurred()) SWIG_fail; | |
37170 | } | |
37171 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
37172 | if (SWIG_IsTmpObj(res3)) { | |
37173 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
37174 | } else { | |
37175 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
37176 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
37177 | } | |
37178 | return resultobj; | |
37179 | fail: | |
37180 | return NULL; | |
37181 | } | |
37182 | ||
37183 | ||
37184 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37185 | PyObject *resultobj = 0; | |
37186 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37187 | wxTreeItemId *arg2 = 0 ; | |
37188 | bool arg3 = (bool) false ; | |
37189 | PyObject *result = 0 ; | |
37190 | void *argp1 = 0 ; | |
37191 | int res1 = 0 ; | |
37192 | void *argp2 = 0 ; | |
37193 | int res2 = 0 ; | |
37194 | bool val3 ; | |
37195 | int ecode3 = 0 ; | |
37196 | PyObject * obj0 = 0 ; | |
37197 | PyObject * obj1 = 0 ; | |
37198 | PyObject * obj2 = 0 ; | |
37199 | char * kwnames[] = { | |
37200 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
37201 | }; | |
37202 | ||
37203 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37204 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37205 | if (!SWIG_IsOK(res1)) { | |
37206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37207 | } | |
37208 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37209 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37210 | if (!SWIG_IsOK(res2)) { | |
37211 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37212 | } | |
37213 | if (!argp2) { | |
37214 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37215 | } | |
37216 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37217 | if (obj2) { | |
37218 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
37219 | if (!SWIG_IsOK(ecode3)) { | |
37220 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'"); | |
37221 | } | |
37222 | arg3 = static_cast< bool >(val3); | |
37223 | } | |
37224 | { | |
37225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37226 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
37227 | wxPyEndAllowThreads(__tstate); | |
37228 | if (PyErr_Occurred()) SWIG_fail; | |
37229 | } | |
37230 | resultobj = result; | |
37231 | return resultobj; | |
37232 | fail: | |
37233 | return NULL; | |
37234 | } | |
37235 | ||
37236 | ||
37237 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37238 | PyObject *resultobj = 0; | |
37239 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
37240 | SwigValueWrapper<wxVisualAttributes > result; | |
37241 | int val1 ; | |
37242 | int ecode1 = 0 ; | |
37243 | PyObject * obj0 = 0 ; | |
37244 | char * kwnames[] = { | |
37245 | (char *) "variant", NULL | |
37246 | }; | |
37247 | ||
37248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
37249 | if (obj0) { | |
37250 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
37251 | if (!SWIG_IsOK(ecode1)) { | |
37252 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
37253 | } | |
37254 | arg1 = static_cast< wxWindowVariant >(val1); | |
37255 | } | |
37256 | { | |
37257 | if (!wxPyCheckForApp()) SWIG_fail; | |
37258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37259 | result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1); | |
37260 | wxPyEndAllowThreads(__tstate); | |
37261 | if (PyErr_Occurred()) SWIG_fail; | |
37262 | } | |
37263 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
37264 | return resultobj; | |
37265 | fail: | |
37266 | return NULL; | |
d55e5bfc RD |
37267 | } |
37268 | ||
37269 | ||
2131d850 RD |
37270 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
37271 | PyObject *resultobj = 0; | |
37272 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37273 | bool arg2 ; | |
37274 | void *argp1 = 0 ; | |
37275 | int res1 = 0 ; | |
37276 | bool val2 ; | |
37277 | int ecode2 = 0 ; | |
37278 | PyObject * obj0 = 0 ; | |
37279 | PyObject * obj1 = 0 ; | |
37280 | char * kwnames[] = { | |
37281 | (char *) "self",(char *) "q", NULL | |
37282 | }; | |
37283 | ||
37284 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
37285 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37286 | if (!SWIG_IsOK(res1)) { | |
37287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37288 | } | |
37289 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37290 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
37291 | if (!SWIG_IsOK(ecode2)) { | |
37292 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'"); | |
37293 | } | |
37294 | arg2 = static_cast< bool >(val2); | |
37295 | { | |
37296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37297 | (arg1)->SetQuickBestSize(arg2); | |
37298 | wxPyEndAllowThreads(__tstate); | |
37299 | if (PyErr_Occurred()) SWIG_fail; | |
37300 | } | |
37301 | resultobj = SWIG_Py_Void(); | |
37302 | return resultobj; | |
37303 | fail: | |
37304 | return NULL; | |
37305 | } | |
37306 | ||
37307 | ||
37308 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37309 | PyObject *resultobj = 0; | |
37310 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37311 | bool result; | |
37312 | void *argp1 = 0 ; | |
37313 | int res1 = 0 ; | |
37314 | PyObject *swig_obj[1] ; | |
37315 | ||
37316 | if (!args) SWIG_fail; | |
37317 | swig_obj[0] = args; | |
37318 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37319 | if (!SWIG_IsOK(res1)) { | |
37320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
37321 | } | |
37322 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37323 | { | |
37324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37325 | result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize(); | |
37326 | wxPyEndAllowThreads(__tstate); | |
37327 | if (PyErr_Occurred()) SWIG_fail; | |
37328 | } | |
37329 | { | |
37330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37331 | } | |
37332 | return resultobj; | |
37333 | fail: | |
37334 | return NULL; | |
37335 | } | |
37336 | ||
37337 | ||
1bd55598 RD |
37338 | SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37339 | PyObject *obj; | |
37340 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
37341 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj)); | |
37342 | return SWIG_Py_Void(); | |
d55e5bfc RD |
37343 | } |
37344 | ||
1bd55598 RD |
37345 | SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37346 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
37347 | } |
37348 | ||
1bd55598 RD |
37349 | SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) { |
37350 | SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
37351 | return 1; | |
d55e5bfc RD |
37352 | } |
37353 | ||
37354 | ||
1bd55598 RD |
37355 | SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) { |
37356 | PyObject *pyobj = 0; | |
37357 | ||
37358 | { | |
37359 | #if wxUSE_UNICODE | |
37360 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
37361 | #else | |
37362 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
37363 | #endif | |
37364 | } | |
37365 | return pyobj; | |
37366 | } | |
37367 | ||
37368 | ||
37369 | SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37370 | PyObject *resultobj = 0; | |
37371 | wxWindow *arg1 = (wxWindow *) 0 ; | |
37372 | int arg2 = (int) (int)-1 ; | |
37373 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
37374 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
37375 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
37376 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
37377 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
37378 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
37379 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
37380 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
37381 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
37382 | int arg8 = (int) 0 ; | |
37383 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
37384 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
37385 | wxGenericDirCtrl *result = 0 ; | |
37386 | void *argp1 = 0 ; | |
37387 | int res1 = 0 ; | |
37388 | int val2 ; | |
37389 | int ecode2 = 0 ; | |
37390 | bool temp3 = false ; | |
37391 | wxPoint temp4 ; | |
37392 | wxSize temp5 ; | |
37393 | long val6 ; | |
37394 | int ecode6 = 0 ; | |
37395 | bool temp7 = false ; | |
37396 | int val8 ; | |
37397 | int ecode8 = 0 ; | |
37398 | bool temp9 = false ; | |
37399 | PyObject * obj0 = 0 ; | |
37400 | PyObject * obj1 = 0 ; | |
37401 | PyObject * obj2 = 0 ; | |
37402 | PyObject * obj3 = 0 ; | |
37403 | PyObject * obj4 = 0 ; | |
37404 | PyObject * obj5 = 0 ; | |
37405 | PyObject * obj6 = 0 ; | |
37406 | PyObject * obj7 = 0 ; | |
37407 | PyObject * obj8 = 0 ; | |
37408 | char * kwnames[] = { | |
37409 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
37410 | }; | |
37411 | ||
37412 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
37413 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
37414 | if (!SWIG_IsOK(res1)) { | |
37415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
37416 | } | |
37417 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
37418 | if (obj1) { | |
37419 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37420 | if (!SWIG_IsOK(ecode2)) { | |
37421 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'"); | |
37422 | } | |
37423 | arg2 = static_cast< int >(val2); | |
37424 | } | |
37425 | if (obj2) { | |
36ed4f51 | 37426 | { |
1bd55598 RD |
37427 | arg3 = wxString_in_helper(obj2); |
37428 | if (arg3 == NULL) SWIG_fail; | |
37429 | temp3 = true; | |
36ed4f51 | 37430 | } |
1bd55598 RD |
37431 | } |
37432 | if (obj3) { | |
d55e5bfc | 37433 | { |
1bd55598 RD |
37434 | arg4 = &temp4; |
37435 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 37436 | } |
1bd55598 RD |
37437 | } |
37438 | if (obj4) { | |
36ed4f51 | 37439 | { |
1bd55598 RD |
37440 | arg5 = &temp5; |
37441 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 37442 | } |
1bd55598 RD |
37443 | } |
37444 | if (obj5) { | |
37445 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
37446 | if (!SWIG_IsOK(ecode6)) { | |
37447 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'"); | |
37448 | } | |
37449 | arg6 = static_cast< long >(val6); | |
37450 | } | |
37451 | if (obj6) { | |
36ed4f51 | 37452 | { |
1bd55598 RD |
37453 | arg7 = wxString_in_helper(obj6); |
37454 | if (arg7 == NULL) SWIG_fail; | |
37455 | temp7 = true; | |
36ed4f51 | 37456 | } |
1bd55598 RD |
37457 | } |
37458 | if (obj7) { | |
37459 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
37460 | if (!SWIG_IsOK(ecode8)) { | |
37461 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'"); | |
37462 | } | |
37463 | arg8 = static_cast< int >(val8); | |
37464 | } | |
37465 | if (obj8) { | |
d55e5bfc | 37466 | { |
1bd55598 RD |
37467 | arg9 = wxString_in_helper(obj8); |
37468 | if (arg9 == NULL) SWIG_fail; | |
37469 | temp9 = true; | |
d55e5bfc | 37470 | } |
1bd55598 RD |
37471 | } |
37472 | { | |
37473 | if (!wxPyCheckForApp()) SWIG_fail; | |
37474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37475 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
37476 | wxPyEndAllowThreads(__tstate); | |
37477 | if (PyErr_Occurred()) SWIG_fail; | |
37478 | } | |
37479 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 ); | |
37480 | { | |
37481 | if (temp3) | |
37482 | delete arg3; | |
37483 | } | |
37484 | { | |
37485 | if (temp7) | |
37486 | delete arg7; | |
37487 | } | |
37488 | { | |
37489 | if (temp9) | |
37490 | delete arg9; | |
37491 | } | |
37492 | return resultobj; | |
37493 | fail: | |
37494 | { | |
37495 | if (temp3) | |
37496 | delete arg3; | |
37497 | } | |
37498 | { | |
37499 | if (temp7) | |
37500 | delete arg7; | |
37501 | } | |
37502 | { | |
37503 | if (temp9) | |
37504 | delete arg9; | |
37505 | } | |
37506 | return NULL; | |
d55e5bfc RD |
37507 | } |
37508 | ||
37509 | ||
1bd55598 RD |
37510 | SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37511 | PyObject *resultobj = 0; | |
37512 | wxGenericDirCtrl *result = 0 ; | |
37513 | ||
37514 | if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail; | |
37515 | { | |
37516 | if (!wxPyCheckForApp()) SWIG_fail; | |
37517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37518 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
37519 | wxPyEndAllowThreads(__tstate); | |
37520 | if (PyErr_Occurred()) SWIG_fail; | |
37521 | } | |
37522 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 ); | |
37523 | return resultobj; | |
37524 | fail: | |
37525 | return NULL; | |
37526 | } | |
37527 | ||
37528 | ||
37529 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37530 | PyObject *resultobj = 0; | |
37531 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37532 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37533 | int arg3 = (int) (int)-1 ; | |
37534 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
37535 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
37536 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
37537 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
37538 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
37539 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
37540 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
37541 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
37542 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
37543 | int arg9 = (int) 0 ; | |
37544 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
37545 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
37546 | bool result; | |
37547 | void *argp1 = 0 ; | |
37548 | int res1 = 0 ; | |
37549 | void *argp2 = 0 ; | |
37550 | int res2 = 0 ; | |
37551 | int val3 ; | |
37552 | int ecode3 = 0 ; | |
37553 | bool temp4 = false ; | |
37554 | wxPoint temp5 ; | |
37555 | wxSize temp6 ; | |
37556 | long val7 ; | |
37557 | int ecode7 = 0 ; | |
37558 | bool temp8 = false ; | |
37559 | int val9 ; | |
37560 | int ecode9 = 0 ; | |
37561 | bool temp10 = false ; | |
37562 | PyObject * obj0 = 0 ; | |
37563 | PyObject * obj1 = 0 ; | |
37564 | PyObject * obj2 = 0 ; | |
37565 | PyObject * obj3 = 0 ; | |
37566 | PyObject * obj4 = 0 ; | |
37567 | PyObject * obj5 = 0 ; | |
37568 | PyObject * obj6 = 0 ; | |
37569 | PyObject * obj7 = 0 ; | |
37570 | PyObject * obj8 = 0 ; | |
37571 | PyObject * obj9 = 0 ; | |
37572 | char * kwnames[] = { | |
37573 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
37574 | }; | |
37575 | ||
37576 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
37577 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37578 | if (!SWIG_IsOK(res1)) { | |
37579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37580 | } | |
37581 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37582 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
37583 | if (!SWIG_IsOK(res2)) { | |
37584 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
37585 | } | |
37586 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
37587 | if (obj2) { | |
37588 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37589 | if (!SWIG_IsOK(ecode3)) { | |
37590 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
37591 | } | |
37592 | arg3 = static_cast< int >(val3); | |
37593 | } | |
37594 | if (obj3) { | |
36ed4f51 | 37595 | { |
1bd55598 RD |
37596 | arg4 = wxString_in_helper(obj3); |
37597 | if (arg4 == NULL) SWIG_fail; | |
37598 | temp4 = true; | |
36ed4f51 | 37599 | } |
1bd55598 RD |
37600 | } |
37601 | if (obj4) { | |
36ed4f51 | 37602 | { |
1bd55598 RD |
37603 | arg5 = &temp5; |
37604 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 37605 | } |
1bd55598 RD |
37606 | } |
37607 | if (obj5) { | |
d55e5bfc | 37608 | { |
1bd55598 RD |
37609 | arg6 = &temp6; |
37610 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 37611 | } |
1bd55598 RD |
37612 | } |
37613 | if (obj6) { | |
37614 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
37615 | if (!SWIG_IsOK(ecode7)) { | |
37616 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
37617 | } | |
37618 | arg7 = static_cast< long >(val7); | |
37619 | } | |
37620 | if (obj7) { | |
d55e5bfc | 37621 | { |
1bd55598 RD |
37622 | arg8 = wxString_in_helper(obj7); |
37623 | if (arg8 == NULL) SWIG_fail; | |
37624 | temp8 = true; | |
d55e5bfc | 37625 | } |
1bd55598 RD |
37626 | } |
37627 | if (obj8) { | |
37628 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
37629 | if (!SWIG_IsOK(ecode9)) { | |
37630 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'"); | |
37631 | } | |
37632 | arg9 = static_cast< int >(val9); | |
37633 | } | |
37634 | if (obj9) { | |
36ed4f51 | 37635 | { |
1bd55598 RD |
37636 | arg10 = wxString_in_helper(obj9); |
37637 | if (arg10 == NULL) SWIG_fail; | |
37638 | temp10 = true; | |
36ed4f51 | 37639 | } |
1bd55598 RD |
37640 | } |
37641 | { | |
37642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37643 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
37644 | wxPyEndAllowThreads(__tstate); | |
37645 | if (PyErr_Occurred()) SWIG_fail; | |
37646 | } | |
37647 | { | |
37648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37649 | } | |
37650 | { | |
37651 | if (temp4) | |
37652 | delete arg4; | |
37653 | } | |
37654 | { | |
37655 | if (temp8) | |
37656 | delete arg8; | |
37657 | } | |
37658 | { | |
37659 | if (temp10) | |
37660 | delete arg10; | |
37661 | } | |
37662 | return resultobj; | |
37663 | fail: | |
37664 | { | |
37665 | if (temp4) | |
37666 | delete arg4; | |
37667 | } | |
37668 | { | |
37669 | if (temp8) | |
37670 | delete arg8; | |
37671 | } | |
37672 | { | |
37673 | if (temp10) | |
37674 | delete arg10; | |
37675 | } | |
37676 | return NULL; | |
37677 | } | |
37678 | ||
37679 | ||
37680 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37681 | PyObject *resultobj = 0; | |
37682 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37683 | wxString *arg2 = 0 ; | |
37684 | bool result; | |
37685 | void *argp1 = 0 ; | |
37686 | int res1 = 0 ; | |
37687 | bool temp2 = false ; | |
37688 | PyObject * obj0 = 0 ; | |
37689 | PyObject * obj1 = 0 ; | |
37690 | char * kwnames[] = { | |
37691 | (char *) "self",(char *) "path", NULL | |
37692 | }; | |
37693 | ||
37694 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
37695 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37696 | if (!SWIG_IsOK(res1)) { | |
37697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37698 | } | |
37699 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37700 | { | |
37701 | arg2 = wxString_in_helper(obj1); | |
37702 | if (arg2 == NULL) SWIG_fail; | |
37703 | temp2 = true; | |
37704 | } | |
37705 | { | |
37706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37707 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
37708 | wxPyEndAllowThreads(__tstate); | |
37709 | if (PyErr_Occurred()) SWIG_fail; | |
37710 | } | |
37711 | { | |
37712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37713 | } | |
37714 | { | |
37715 | if (temp2) | |
37716 | delete arg2; | |
37717 | } | |
37718 | return resultobj; | |
37719 | fail: | |
37720 | { | |
37721 | if (temp2) | |
37722 | delete arg2; | |
37723 | } | |
37724 | return NULL; | |
d55e5bfc RD |
37725 | } |
37726 | ||
37727 | ||
704eda0c RD |
37728 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
37729 | PyObject *resultobj = 0; | |
37730 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37731 | wxString *arg2 = 0 ; | |
37732 | bool result; | |
37733 | void *argp1 = 0 ; | |
37734 | int res1 = 0 ; | |
37735 | bool temp2 = false ; | |
37736 | PyObject * obj0 = 0 ; | |
37737 | PyObject * obj1 = 0 ; | |
37738 | char * kwnames[] = { | |
37739 | (char *) "self",(char *) "path", NULL | |
37740 | }; | |
37741 | ||
37742 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail; | |
37743 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37744 | if (!SWIG_IsOK(res1)) { | |
37745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37746 | } | |
37747 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37748 | { | |
37749 | arg2 = wxString_in_helper(obj1); | |
37750 | if (arg2 == NULL) SWIG_fail; | |
37751 | temp2 = true; | |
37752 | } | |
37753 | { | |
37754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37755 | result = (bool)(arg1)->CollapsePath((wxString const &)*arg2); | |
37756 | wxPyEndAllowThreads(__tstate); | |
37757 | if (PyErr_Occurred()) SWIG_fail; | |
37758 | } | |
37759 | { | |
37760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37761 | } | |
37762 | { | |
37763 | if (temp2) | |
37764 | delete arg2; | |
37765 | } | |
37766 | return resultobj; | |
37767 | fail: | |
37768 | { | |
37769 | if (temp2) | |
37770 | delete arg2; | |
37771 | } | |
37772 | return NULL; | |
37773 | } | |
37774 | ||
37775 | ||
1bd55598 RD |
37776 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37777 | PyObject *resultobj = 0; | |
37778 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37779 | wxString result; | |
37780 | void *argp1 = 0 ; | |
37781 | int res1 = 0 ; | |
37782 | PyObject *swig_obj[1] ; | |
37783 | ||
37784 | if (!args) SWIG_fail; | |
37785 | swig_obj[0] = args; | |
37786 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37787 | if (!SWIG_IsOK(res1)) { | |
37788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37789 | } | |
37790 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37791 | { | |
37792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37793 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
37794 | wxPyEndAllowThreads(__tstate); | |
37795 | if (PyErr_Occurred()) SWIG_fail; | |
37796 | } | |
37797 | { | |
37798 | #if wxUSE_UNICODE | |
37799 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
37800 | #else | |
37801 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
37802 | #endif | |
37803 | } | |
37804 | return resultobj; | |
37805 | fail: | |
37806 | return NULL; | |
37807 | } | |
37808 | ||
37809 | ||
37810 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37811 | PyObject *resultobj = 0; | |
37812 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37813 | wxString *arg2 = 0 ; | |
37814 | void *argp1 = 0 ; | |
37815 | int res1 = 0 ; | |
37816 | bool temp2 = false ; | |
37817 | PyObject * obj0 = 0 ; | |
37818 | PyObject * obj1 = 0 ; | |
37819 | char * kwnames[] = { | |
37820 | (char *) "self",(char *) "path", NULL | |
37821 | }; | |
37822 | ||
37823 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
37824 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37825 | if (!SWIG_IsOK(res1)) { | |
37826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37827 | } | |
37828 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37829 | { | |
37830 | arg2 = wxString_in_helper(obj1); | |
37831 | if (arg2 == NULL) SWIG_fail; | |
37832 | temp2 = true; | |
37833 | } | |
37834 | { | |
37835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37836 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
37837 | wxPyEndAllowThreads(__tstate); | |
37838 | if (PyErr_Occurred()) SWIG_fail; | |
37839 | } | |
37840 | resultobj = SWIG_Py_Void(); | |
37841 | { | |
37842 | if (temp2) | |
37843 | delete arg2; | |
37844 | } | |
37845 | return resultobj; | |
37846 | fail: | |
37847 | { | |
37848 | if (temp2) | |
37849 | delete arg2; | |
37850 | } | |
37851 | return NULL; | |
d55e5bfc RD |
37852 | } |
37853 | ||
37854 | ||
1bd55598 RD |
37855 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37856 | PyObject *resultobj = 0; | |
37857 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37858 | wxString result; | |
37859 | void *argp1 = 0 ; | |
37860 | int res1 = 0 ; | |
37861 | PyObject *swig_obj[1] ; | |
37862 | ||
37863 | if (!args) SWIG_fail; | |
37864 | swig_obj[0] = args; | |
37865 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37866 | if (!SWIG_IsOK(res1)) { | |
37867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37868 | } | |
37869 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37870 | { | |
37871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37872 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
37873 | wxPyEndAllowThreads(__tstate); | |
37874 | if (PyErr_Occurred()) SWIG_fail; | |
37875 | } | |
37876 | { | |
37877 | #if wxUSE_UNICODE | |
37878 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
37879 | #else | |
37880 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
37881 | #endif | |
37882 | } | |
37883 | return resultobj; | |
37884 | fail: | |
37885 | return NULL; | |
d55e5bfc RD |
37886 | } |
37887 | ||
37888 | ||
1bd55598 RD |
37889 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37890 | PyObject *resultobj = 0; | |
37891 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37892 | wxString result; | |
37893 | void *argp1 = 0 ; | |
37894 | int res1 = 0 ; | |
37895 | PyObject *swig_obj[1] ; | |
37896 | ||
37897 | if (!args) SWIG_fail; | |
37898 | swig_obj[0] = args; | |
37899 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37900 | if (!SWIG_IsOK(res1)) { | |
37901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37902 | } | |
37903 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37904 | { | |
37905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37906 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
37907 | wxPyEndAllowThreads(__tstate); | |
37908 | if (PyErr_Occurred()) SWIG_fail; | |
37909 | } | |
37910 | { | |
37911 | #if wxUSE_UNICODE | |
37912 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
37913 | #else | |
37914 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
37915 | #endif | |
37916 | } | |
37917 | return resultobj; | |
37918 | fail: | |
37919 | return NULL; | |
37920 | } | |
37921 | ||
37922 | ||
37923 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37924 | PyObject *resultobj = 0; | |
37925 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37926 | wxString *arg2 = 0 ; | |
37927 | void *argp1 = 0 ; | |
37928 | int res1 = 0 ; | |
37929 | bool temp2 = false ; | |
37930 | PyObject * obj0 = 0 ; | |
37931 | PyObject * obj1 = 0 ; | |
37932 | char * kwnames[] = { | |
37933 | (char *) "self",(char *) "path", NULL | |
37934 | }; | |
37935 | ||
37936 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
37937 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37938 | if (!SWIG_IsOK(res1)) { | |
37939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37940 | } | |
37941 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37942 | { | |
37943 | arg2 = wxString_in_helper(obj1); | |
37944 | if (arg2 == NULL) SWIG_fail; | |
37945 | temp2 = true; | |
37946 | } | |
37947 | { | |
37948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37949 | (arg1)->SetPath((wxString const &)*arg2); | |
37950 | wxPyEndAllowThreads(__tstate); | |
37951 | if (PyErr_Occurred()) SWIG_fail; | |
37952 | } | |
37953 | resultobj = SWIG_Py_Void(); | |
37954 | { | |
37955 | if (temp2) | |
37956 | delete arg2; | |
37957 | } | |
37958 | return resultobj; | |
37959 | fail: | |
37960 | { | |
37961 | if (temp2) | |
37962 | delete arg2; | |
37963 | } | |
37964 | return NULL; | |
37965 | } | |
37966 | ||
37967 | ||
37968 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37969 | PyObject *resultobj = 0; | |
37970 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37971 | bool arg2 ; | |
37972 | void *argp1 = 0 ; | |
37973 | int res1 = 0 ; | |
37974 | bool val2 ; | |
37975 | int ecode2 = 0 ; | |
37976 | PyObject * obj0 = 0 ; | |
37977 | PyObject * obj1 = 0 ; | |
37978 | char * kwnames[] = { | |
37979 | (char *) "self",(char *) "show", NULL | |
37980 | }; | |
37981 | ||
37982 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail; | |
37983 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37984 | if (!SWIG_IsOK(res1)) { | |
37985 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37986 | } | |
37987 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37988 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
37989 | if (!SWIG_IsOK(ecode2)) { | |
37990 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'"); | |
37991 | } | |
37992 | arg2 = static_cast< bool >(val2); | |
37993 | { | |
37994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37995 | (arg1)->ShowHidden(arg2); | |
37996 | wxPyEndAllowThreads(__tstate); | |
37997 | if (PyErr_Occurred()) SWIG_fail; | |
37998 | } | |
37999 | resultobj = SWIG_Py_Void(); | |
38000 | return resultobj; | |
38001 | fail: | |
38002 | return NULL; | |
d55e5bfc RD |
38003 | } |
38004 | ||
38005 | ||
1bd55598 RD |
38006 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38007 | PyObject *resultobj = 0; | |
38008 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38009 | bool result; | |
38010 | void *argp1 = 0 ; | |
38011 | int res1 = 0 ; | |
38012 | PyObject *swig_obj[1] ; | |
38013 | ||
38014 | if (!args) SWIG_fail; | |
38015 | swig_obj[0] = args; | |
38016 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38017 | if (!SWIG_IsOK(res1)) { | |
38018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38019 | } | |
38020 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38021 | { | |
38022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38023 | result = (bool)(arg1)->GetShowHidden(); | |
38024 | wxPyEndAllowThreads(__tstate); | |
38025 | if (PyErr_Occurred()) SWIG_fail; | |
38026 | } | |
38027 | { | |
38028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38029 | } | |
38030 | return resultobj; | |
38031 | fail: | |
38032 | return NULL; | |
d55e5bfc RD |
38033 | } |
38034 | ||
38035 | ||
1bd55598 RD |
38036 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38037 | PyObject *resultobj = 0; | |
38038 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38039 | wxString result; | |
38040 | void *argp1 = 0 ; | |
38041 | int res1 = 0 ; | |
38042 | PyObject *swig_obj[1] ; | |
38043 | ||
38044 | if (!args) SWIG_fail; | |
38045 | swig_obj[0] = args; | |
38046 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38047 | if (!SWIG_IsOK(res1)) { | |
38048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38049 | } | |
38050 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38051 | { | |
38052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38053 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
38054 | wxPyEndAllowThreads(__tstate); | |
38055 | if (PyErr_Occurred()) SWIG_fail; | |
38056 | } | |
38057 | { | |
38058 | #if wxUSE_UNICODE | |
38059 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
38060 | #else | |
38061 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
38062 | #endif | |
38063 | } | |
38064 | return resultobj; | |
38065 | fail: | |
38066 | return NULL; | |
38067 | } | |
38068 | ||
38069 | ||
38070 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38071 | PyObject *resultobj = 0; | |
38072 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38073 | wxString *arg2 = 0 ; | |
38074 | void *argp1 = 0 ; | |
38075 | int res1 = 0 ; | |
38076 | bool temp2 = false ; | |
38077 | PyObject * obj0 = 0 ; | |
38078 | PyObject * obj1 = 0 ; | |
38079 | char * kwnames[] = { | |
38080 | (char *) "self",(char *) "filter", NULL | |
38081 | }; | |
38082 | ||
38083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail; | |
38084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38085 | if (!SWIG_IsOK(res1)) { | |
38086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38087 | } | |
38088 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38089 | { | |
38090 | arg2 = wxString_in_helper(obj1); | |
38091 | if (arg2 == NULL) SWIG_fail; | |
38092 | temp2 = true; | |
38093 | } | |
38094 | { | |
38095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38096 | (arg1)->SetFilter((wxString const &)*arg2); | |
38097 | wxPyEndAllowThreads(__tstate); | |
38098 | if (PyErr_Occurred()) SWIG_fail; | |
38099 | } | |
38100 | resultobj = SWIG_Py_Void(); | |
38101 | { | |
38102 | if (temp2) | |
38103 | delete arg2; | |
38104 | } | |
38105 | return resultobj; | |
38106 | fail: | |
38107 | { | |
38108 | if (temp2) | |
38109 | delete arg2; | |
38110 | } | |
38111 | return NULL; | |
d55e5bfc RD |
38112 | } |
38113 | ||
38114 | ||
1bd55598 RD |
38115 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38116 | PyObject *resultobj = 0; | |
38117 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38118 | int result; | |
38119 | void *argp1 = 0 ; | |
38120 | int res1 = 0 ; | |
38121 | PyObject *swig_obj[1] ; | |
38122 | ||
38123 | if (!args) SWIG_fail; | |
38124 | swig_obj[0] = args; | |
38125 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38126 | if (!SWIG_IsOK(res1)) { | |
38127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38128 | } | |
38129 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38130 | { | |
38131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38132 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
38133 | wxPyEndAllowThreads(__tstate); | |
38134 | if (PyErr_Occurred()) SWIG_fail; | |
38135 | } | |
38136 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
38137 | return resultobj; | |
38138 | fail: | |
38139 | return NULL; | |
38140 | } | |
38141 | ||
38142 | ||
38143 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38144 | PyObject *resultobj = 0; | |
38145 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38146 | int arg2 ; | |
38147 | void *argp1 = 0 ; | |
38148 | int res1 = 0 ; | |
38149 | int val2 ; | |
38150 | int ecode2 = 0 ; | |
38151 | PyObject * obj0 = 0 ; | |
38152 | PyObject * obj1 = 0 ; | |
38153 | char * kwnames[] = { | |
38154 | (char *) "self",(char *) "n", NULL | |
38155 | }; | |
38156 | ||
38157 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
38158 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38159 | if (!SWIG_IsOK(res1)) { | |
38160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38161 | } | |
38162 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38163 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38164 | if (!SWIG_IsOK(ecode2)) { | |
38165 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'"); | |
38166 | } | |
38167 | arg2 = static_cast< int >(val2); | |
38168 | { | |
38169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38170 | (arg1)->SetFilterIndex(arg2); | |
38171 | wxPyEndAllowThreads(__tstate); | |
38172 | if (PyErr_Occurred()) SWIG_fail; | |
38173 | } | |
38174 | resultobj = SWIG_Py_Void(); | |
38175 | return resultobj; | |
38176 | fail: | |
38177 | return NULL; | |
d55e5bfc RD |
38178 | } |
38179 | ||
38180 | ||
1bd55598 RD |
38181 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38182 | PyObject *resultobj = 0; | |
38183 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38184 | wxTreeItemId result; | |
38185 | void *argp1 = 0 ; | |
38186 | int res1 = 0 ; | |
38187 | PyObject *swig_obj[1] ; | |
38188 | ||
38189 | if (!args) SWIG_fail; | |
38190 | swig_obj[0] = args; | |
38191 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38192 | if (!SWIG_IsOK(res1)) { | |
38193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38194 | } | |
38195 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38196 | { | |
38197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38198 | result = (arg1)->GetRootId(); | |
38199 | wxPyEndAllowThreads(__tstate); | |
38200 | if (PyErr_Occurred()) SWIG_fail; | |
38201 | } | |
38202 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
38203 | return resultobj; | |
38204 | fail: | |
38205 | return NULL; | |
d55e5bfc RD |
38206 | } |
38207 | ||
38208 | ||
1bd55598 RD |
38209 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38210 | PyObject *resultobj = 0; | |
38211 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38212 | wxPyTreeCtrl *result = 0 ; | |
38213 | void *argp1 = 0 ; | |
38214 | int res1 = 0 ; | |
38215 | PyObject *swig_obj[1] ; | |
38216 | ||
38217 | if (!args) SWIG_fail; | |
38218 | swig_obj[0] = args; | |
38219 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38220 | if (!SWIG_IsOK(res1)) { | |
38221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38222 | } | |
38223 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38224 | { | |
38225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38226 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
38227 | wxPyEndAllowThreads(__tstate); | |
38228 | if (PyErr_Occurred()) SWIG_fail; | |
38229 | } | |
38230 | { | |
38231 | resultobj = wxPyMake_wxObject(result, 0); | |
38232 | } | |
38233 | return resultobj; | |
38234 | fail: | |
38235 | return NULL; | |
d55e5bfc RD |
38236 | } |
38237 | ||
38238 | ||
1bd55598 RD |
38239 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38240 | PyObject *resultobj = 0; | |
38241 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38242 | wxDirFilterListCtrl *result = 0 ; | |
38243 | void *argp1 = 0 ; | |
38244 | int res1 = 0 ; | |
38245 | PyObject *swig_obj[1] ; | |
38246 | ||
38247 | if (!args) SWIG_fail; | |
38248 | swig_obj[0] = args; | |
38249 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38250 | if (!SWIG_IsOK(res1)) { | |
38251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38252 | } | |
38253 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38254 | { | |
38255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38256 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
38257 | wxPyEndAllowThreads(__tstate); | |
38258 | if (PyErr_Occurred()) SWIG_fail; | |
38259 | } | |
38260 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
38261 | return resultobj; | |
38262 | fail: | |
38263 | return NULL; | |
38264 | } | |
38265 | ||
38266 | ||
38267 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38268 | PyObject *resultobj = 0; | |
38269 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38270 | wxTreeItemId arg2 ; | |
38271 | wxString *arg3 = 0 ; | |
38272 | bool *arg4 = 0 ; | |
38273 | wxTreeItemId result; | |
38274 | void *argp1 = 0 ; | |
38275 | int res1 = 0 ; | |
38276 | void *argp2 ; | |
38277 | int res2 = 0 ; | |
38278 | bool temp3 = false ; | |
38279 | bool temp4 ; | |
38280 | int res4 = SWIG_TMPOBJ ; | |
38281 | PyObject * obj0 = 0 ; | |
38282 | PyObject * obj1 = 0 ; | |
38283 | PyObject * obj2 = 0 ; | |
38284 | char * kwnames[] = { | |
38285 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
38286 | }; | |
38287 | ||
38288 | arg4 = &temp4; | |
38289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38291 | if (!SWIG_IsOK(res1)) { | |
38292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38293 | } | |
38294 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38295 | { | |
38296 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
38297 | if (!SWIG_IsOK(res2)) { | |
38298 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'"); | |
38299 | } | |
38300 | if (!argp2) { | |
38301 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'"); | |
38302 | } else { | |
38303 | wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2); | |
38304 | arg2 = *temp; | |
38305 | if (SWIG_IsNewObj(res2)) delete temp; | |
d55e5bfc | 38306 | } |
1bd55598 RD |
38307 | } |
38308 | { | |
38309 | arg3 = wxString_in_helper(obj2); | |
38310 | if (arg3 == NULL) SWIG_fail; | |
38311 | temp3 = true; | |
38312 | } | |
38313 | { | |
38314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38315 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
38316 | wxPyEndAllowThreads(__tstate); | |
38317 | if (PyErr_Occurred()) SWIG_fail; | |
38318 | } | |
38319 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
38320 | if (SWIG_IsTmpObj(res4)) { | |
38321 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4))); | |
38322 | } else { | |
38323 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38324 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags)); | |
38325 | } | |
38326 | { | |
38327 | if (temp3) | |
38328 | delete arg3; | |
38329 | } | |
38330 | return resultobj; | |
38331 | fail: | |
38332 | { | |
38333 | if (temp3) | |
38334 | delete arg3; | |
38335 | } | |
38336 | return NULL; | |
d55e5bfc RD |
38337 | } |
38338 | ||
38339 | ||
1bd55598 RD |
38340 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38341 | PyObject *resultobj = 0; | |
38342 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38343 | void *argp1 = 0 ; | |
38344 | int res1 = 0 ; | |
38345 | PyObject *swig_obj[1] ; | |
38346 | ||
38347 | if (!args) SWIG_fail; | |
38348 | swig_obj[0] = args; | |
38349 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38350 | if (!SWIG_IsOK(res1)) { | |
38351 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38352 | } | |
38353 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38354 | { | |
38355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38356 | (arg1)->DoResize(); | |
38357 | wxPyEndAllowThreads(__tstate); | |
38358 | if (PyErr_Occurred()) SWIG_fail; | |
38359 | } | |
38360 | resultobj = SWIG_Py_Void(); | |
38361 | return resultobj; | |
38362 | fail: | |
38363 | return NULL; | |
38364 | } | |
38365 | ||
38366 | ||
38367 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38368 | PyObject *resultobj = 0; | |
38369 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38370 | void *argp1 = 0 ; | |
38371 | int res1 = 0 ; | |
38372 | PyObject *swig_obj[1] ; | |
38373 | ||
38374 | if (!args) SWIG_fail; | |
38375 | swig_obj[0] = args; | |
38376 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38377 | if (!SWIG_IsOK(res1)) { | |
38378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38379 | } | |
38380 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38381 | { | |
38382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38383 | (arg1)->ReCreateTree(); | |
38384 | wxPyEndAllowThreads(__tstate); | |
38385 | if (PyErr_Occurred()) SWIG_fail; | |
38386 | } | |
38387 | resultobj = SWIG_Py_Void(); | |
38388 | return resultobj; | |
38389 | fail: | |
38390 | return NULL; | |
38391 | } | |
38392 | ||
38393 | ||
38394 | SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38395 | PyObject *obj; | |
38396 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38397 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj)); | |
38398 | return SWIG_Py_Void(); | |
38399 | } | |
38400 | ||
38401 | SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38402 | return SWIG_Python_InitShadowInstance(args); | |
38403 | } | |
38404 | ||
38405 | SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38406 | PyObject *resultobj = 0; | |
38407 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38408 | int arg2 = (int) (int)-1 ; | |
38409 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
38410 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
38411 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
38412 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
38413 | long arg5 = (long) 0 ; | |
38414 | wxDirFilterListCtrl *result = 0 ; | |
38415 | void *argp1 = 0 ; | |
38416 | int res1 = 0 ; | |
38417 | int val2 ; | |
38418 | int ecode2 = 0 ; | |
38419 | wxPoint temp3 ; | |
38420 | wxSize temp4 ; | |
38421 | long val5 ; | |
38422 | int ecode5 = 0 ; | |
38423 | PyObject * obj0 = 0 ; | |
38424 | PyObject * obj1 = 0 ; | |
38425 | PyObject * obj2 = 0 ; | |
38426 | PyObject * obj3 = 0 ; | |
38427 | PyObject * obj4 = 0 ; | |
38428 | char * kwnames[] = { | |
38429 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
38430 | }; | |
38431 | ||
38432 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38433 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38434 | if (!SWIG_IsOK(res1)) { | |
38435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38436 | } | |
38437 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38438 | if (obj1) { | |
38439 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38440 | if (!SWIG_IsOK(ecode2)) { | |
38441 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'"); | |
38442 | } | |
38443 | arg2 = static_cast< int >(val2); | |
38444 | } | |
38445 | if (obj2) { | |
d55e5bfc | 38446 | { |
1bd55598 RD |
38447 | arg3 = &temp3; |
38448 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 38449 | } |
1bd55598 RD |
38450 | } |
38451 | if (obj3) { | |
d55e5bfc | 38452 | { |
1bd55598 RD |
38453 | arg4 = &temp4; |
38454 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 38455 | } |
1bd55598 RD |
38456 | } |
38457 | if (obj4) { | |
38458 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
38459 | if (!SWIG_IsOK(ecode5)) { | |
38460 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'"); | |
38461 | } | |
38462 | arg5 = static_cast< long >(val5); | |
38463 | } | |
38464 | { | |
38465 | if (!wxPyCheckForApp()) SWIG_fail; | |
38466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38467 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
38468 | wxPyEndAllowThreads(__tstate); | |
38469 | if (PyErr_Occurred()) SWIG_fail; | |
38470 | } | |
38471 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 ); | |
38472 | return resultobj; | |
38473 | fail: | |
38474 | return NULL; | |
d55e5bfc RD |
38475 | } |
38476 | ||
38477 | ||
1bd55598 RD |
38478 | SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38479 | PyObject *resultobj = 0; | |
38480 | wxDirFilterListCtrl *result = 0 ; | |
38481 | ||
38482 | if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail; | |
38483 | { | |
38484 | if (!wxPyCheckForApp()) SWIG_fail; | |
38485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38486 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
38487 | wxPyEndAllowThreads(__tstate); | |
38488 | if (PyErr_Occurred()) SWIG_fail; | |
38489 | } | |
38490 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 ); | |
38491 | return resultobj; | |
38492 | fail: | |
38493 | return NULL; | |
38494 | } | |
38495 | ||
38496 | ||
38497 | SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38498 | PyObject *resultobj = 0; | |
38499 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
38500 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
38501 | int arg3 = (int) (int)-1 ; | |
38502 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
38503 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
38504 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
38505 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
38506 | long arg6 = (long) 0 ; | |
38507 | bool result; | |
38508 | void *argp1 = 0 ; | |
38509 | int res1 = 0 ; | |
38510 | void *argp2 = 0 ; | |
38511 | int res2 = 0 ; | |
38512 | int val3 ; | |
38513 | int ecode3 = 0 ; | |
38514 | wxPoint temp4 ; | |
38515 | wxSize temp5 ; | |
38516 | long val6 ; | |
38517 | int ecode6 = 0 ; | |
38518 | PyObject * obj0 = 0 ; | |
38519 | PyObject * obj1 = 0 ; | |
38520 | PyObject * obj2 = 0 ; | |
38521 | PyObject * obj3 = 0 ; | |
38522 | PyObject * obj4 = 0 ; | |
38523 | PyObject * obj5 = 0 ; | |
38524 | char * kwnames[] = { | |
38525 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
38526 | }; | |
38527 | ||
38528 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
38529 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
38530 | if (!SWIG_IsOK(res1)) { | |
38531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'"); | |
38532 | } | |
38533 | arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1); | |
38534 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38535 | if (!SWIG_IsOK(res2)) { | |
38536 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'"); | |
38537 | } | |
38538 | arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2); | |
38539 | if (obj2) { | |
38540 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38541 | if (!SWIG_IsOK(ecode3)) { | |
38542 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
38543 | } | |
38544 | arg3 = static_cast< int >(val3); | |
38545 | } | |
38546 | if (obj3) { | |
36ed4f51 | 38547 | { |
1bd55598 RD |
38548 | arg4 = &temp4; |
38549 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 38550 | } |
1bd55598 RD |
38551 | } |
38552 | if (obj4) { | |
36ed4f51 | 38553 | { |
1bd55598 RD |
38554 | arg5 = &temp5; |
38555 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 38556 | } |
1bd55598 RD |
38557 | } |
38558 | if (obj5) { | |
38559 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
38560 | if (!SWIG_IsOK(ecode6)) { | |
38561 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
38562 | } | |
38563 | arg6 = static_cast< long >(val6); | |
38564 | } | |
38565 | { | |
38566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38567 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
38568 | wxPyEndAllowThreads(__tstate); | |
38569 | if (PyErr_Occurred()) SWIG_fail; | |
38570 | } | |
38571 | { | |
38572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38573 | } | |
38574 | return resultobj; | |
38575 | fail: | |
38576 | return NULL; | |
38577 | } | |
38578 | ||
38579 | ||
38580 | SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38581 | PyObject *resultobj = 0; | |
38582 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
38583 | wxString *arg2 = 0 ; | |
38584 | int arg3 ; | |
38585 | void *argp1 = 0 ; | |
38586 | int res1 = 0 ; | |
38587 | bool temp2 = false ; | |
38588 | int val3 ; | |
38589 | int ecode3 = 0 ; | |
38590 | PyObject * obj0 = 0 ; | |
38591 | PyObject * obj1 = 0 ; | |
38592 | PyObject * obj2 = 0 ; | |
38593 | char * kwnames[] = { | |
38594 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
38595 | }; | |
38596 | ||
38597 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38598 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
38599 | if (!SWIG_IsOK(res1)) { | |
38600 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'"); | |
38601 | } | |
38602 | arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1); | |
38603 | { | |
38604 | arg2 = wxString_in_helper(obj1); | |
38605 | if (arg2 == NULL) SWIG_fail; | |
38606 | temp2 = true; | |
38607 | } | |
38608 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38609 | if (!SWIG_IsOK(ecode3)) { | |
38610 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'"); | |
38611 | } | |
38612 | arg3 = static_cast< int >(val3); | |
38613 | { | |
38614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38615 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
38616 | wxPyEndAllowThreads(__tstate); | |
38617 | if (PyErr_Occurred()) SWIG_fail; | |
38618 | } | |
38619 | resultobj = SWIG_Py_Void(); | |
38620 | { | |
38621 | if (temp2) | |
38622 | delete arg2; | |
38623 | } | |
38624 | return resultobj; | |
38625 | fail: | |
38626 | { | |
38627 | if (temp2) | |
38628 | delete arg2; | |
38629 | } | |
38630 | return NULL; | |
38631 | } | |
38632 | ||
38633 | ||
38634 | SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38635 | PyObject *obj; | |
38636 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38637 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj)); | |
38638 | return SWIG_Py_Void(); | |
38639 | } | |
38640 | ||
38641 | SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38642 | return SWIG_Python_InitShadowInstance(args); | |
38643 | } | |
38644 | ||
38645 | SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38646 | PyObject *resultobj = 0; | |
38647 | wxWindow *arg1 = (wxWindow *) 0 ; | |
38648 | int arg2 = (int) (int)-1 ; | |
38649 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
38650 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
38651 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
38652 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
38653 | long arg5 = (long) 0 ; | |
38654 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
38655 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
38656 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
38657 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
38658 | wxPyControl *result = 0 ; | |
38659 | void *argp1 = 0 ; | |
38660 | int res1 = 0 ; | |
38661 | int val2 ; | |
38662 | int ecode2 = 0 ; | |
38663 | wxPoint temp3 ; | |
38664 | wxSize temp4 ; | |
38665 | long val5 ; | |
38666 | int ecode5 = 0 ; | |
38667 | void *argp6 = 0 ; | |
38668 | int res6 = 0 ; | |
38669 | bool temp7 = false ; | |
38670 | PyObject * obj0 = 0 ; | |
38671 | PyObject * obj1 = 0 ; | |
38672 | PyObject * obj2 = 0 ; | |
38673 | PyObject * obj3 = 0 ; | |
38674 | PyObject * obj4 = 0 ; | |
38675 | PyObject * obj5 = 0 ; | |
38676 | PyObject * obj6 = 0 ; | |
38677 | char * kwnames[] = { | |
38678 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
38679 | }; | |
38680 | ||
38681 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
38682 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
38683 | if (!SWIG_IsOK(res1)) { | |
38684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
38685 | } | |
38686 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
38687 | if (obj1) { | |
38688 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38689 | if (!SWIG_IsOK(ecode2)) { | |
38690 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'"); | |
38691 | } | |
38692 | arg2 = static_cast< int >(val2); | |
38693 | } | |
38694 | if (obj2) { | |
d55e5bfc | 38695 | { |
1bd55598 RD |
38696 | arg3 = &temp3; |
38697 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 38698 | } |
1bd55598 RD |
38699 | } |
38700 | if (obj3) { | |
d55e5bfc | 38701 | { |
1bd55598 RD |
38702 | arg4 = &temp4; |
38703 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 38704 | } |
1bd55598 RD |
38705 | } |
38706 | if (obj4) { | |
38707 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
38708 | if (!SWIG_IsOK(ecode5)) { | |
38709 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'"); | |
38710 | } | |
38711 | arg5 = static_cast< long >(val5); | |
38712 | } | |
38713 | if (obj5) { | |
38714 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
38715 | if (!SWIG_IsOK(res6)) { | |
38716 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
f20a2e1f | 38717 | } |
1bd55598 RD |
38718 | if (!argp6) { |
38719 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
f20a2e1f | 38720 | } |
1bd55598 RD |
38721 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
38722 | } | |
38723 | if (obj6) { | |
f20a2e1f | 38724 | { |
1bd55598 RD |
38725 | arg7 = wxString_in_helper(obj6); |
38726 | if (arg7 == NULL) SWIG_fail; | |
38727 | temp7 = true; | |
f20a2e1f | 38728 | } |
1bd55598 RD |
38729 | } |
38730 | { | |
38731 | if (!wxPyCheckForApp()) SWIG_fail; | |
38732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38733 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
38734 | wxPyEndAllowThreads(__tstate); | |
38735 | if (PyErr_Occurred()) SWIG_fail; | |
38736 | } | |
38737 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 ); | |
38738 | { | |
38739 | if (temp7) | |
38740 | delete arg7; | |
38741 | } | |
38742 | return resultobj; | |
38743 | fail: | |
38744 | { | |
38745 | if (temp7) | |
38746 | delete arg7; | |
38747 | } | |
38748 | return NULL; | |
d55e5bfc RD |
38749 | } |
38750 | ||
38751 | ||
1bd55598 RD |
38752 | SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38753 | PyObject *resultobj = 0; | |
38754 | wxPyControl *result = 0 ; | |
38755 | ||
38756 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail; | |
38757 | { | |
38758 | if (!wxPyCheckForApp()) SWIG_fail; | |
38759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38760 | result = (wxPyControl *)new wxPyControl(); | |
38761 | wxPyEndAllowThreads(__tstate); | |
38762 | if (PyErr_Occurred()) SWIG_fail; | |
38763 | } | |
38764 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 ); | |
38765 | return resultobj; | |
38766 | fail: | |
38767 | return NULL; | |
38768 | } | |
38769 | ||
38770 | ||
38771 | SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38772 | PyObject *resultobj = 0; | |
38773 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38774 | PyObject *arg2 = (PyObject *) 0 ; | |
38775 | PyObject *arg3 = (PyObject *) 0 ; | |
38776 | void *argp1 = 0 ; | |
38777 | int res1 = 0 ; | |
38778 | PyObject * obj0 = 0 ; | |
38779 | PyObject * obj1 = 0 ; | |
38780 | PyObject * obj2 = 0 ; | |
38781 | char * kwnames[] = { | |
38782 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
38783 | }; | |
38784 | ||
38785 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38786 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38787 | if (!SWIG_IsOK(res1)) { | |
38788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38789 | } | |
38790 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38791 | arg2 = obj1; | |
38792 | arg3 = obj2; | |
38793 | { | |
38794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38795 | (arg1)->_setCallbackInfo(arg2,arg3); | |
38796 | wxPyEndAllowThreads(__tstate); | |
38797 | if (PyErr_Occurred()) SWIG_fail; | |
38798 | } | |
38799 | resultobj = SWIG_Py_Void(); | |
38800 | return resultobj; | |
38801 | fail: | |
38802 | return NULL; | |
38803 | } | |
38804 | ||
38805 | ||
1bd55598 RD |
38806 | SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
38807 | PyObject *resultobj = 0; | |
38808 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38809 | wxDC *arg2 = (wxDC *) 0 ; | |
38810 | bool result; | |
38811 | void *argp1 = 0 ; | |
38812 | int res1 = 0 ; | |
38813 | void *argp2 = 0 ; | |
38814 | int res2 = 0 ; | |
38815 | PyObject * obj0 = 0 ; | |
38816 | PyObject * obj1 = 0 ; | |
38817 | char * kwnames[] = { | |
38818 | (char *) "self",(char *) "dc", NULL | |
38819 | }; | |
38820 | ||
38821 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38822 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38823 | if (!SWIG_IsOK(res1)) { | |
38824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38825 | } | |
38826 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38827 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
38828 | if (!SWIG_IsOK(res2)) { | |
38829 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
38830 | } | |
38831 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
38832 | { | |
38833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38834 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
38835 | wxPyEndAllowThreads(__tstate); | |
38836 | if (PyErr_Occurred()) SWIG_fail; | |
38837 | } | |
38838 | { | |
38839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38840 | } | |
38841 | return resultobj; | |
38842 | fail: | |
38843 | return NULL; | |
38844 | } | |
38845 | ||
38846 | ||
38847 | SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38848 | PyObject *resultobj = 0; | |
38849 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38850 | int arg2 ; | |
38851 | int arg3 ; | |
38852 | int arg4 ; | |
38853 | int arg5 ; | |
38854 | void *argp1 = 0 ; | |
38855 | int res1 = 0 ; | |
38856 | int val2 ; | |
38857 | int ecode2 = 0 ; | |
38858 | int val3 ; | |
38859 | int ecode3 = 0 ; | |
38860 | int val4 ; | |
38861 | int ecode4 = 0 ; | |
38862 | int val5 ; | |
38863 | int ecode5 = 0 ; | |
38864 | PyObject * obj0 = 0 ; | |
38865 | PyObject * obj1 = 0 ; | |
38866 | PyObject * obj2 = 0 ; | |
38867 | PyObject * obj3 = 0 ; | |
38868 | PyObject * obj4 = 0 ; | |
38869 | char * kwnames[] = { | |
38870 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
38871 | }; | |
38872 | ||
38873 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38874 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38875 | if (!SWIG_IsOK(res1)) { | |
38876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38877 | } | |
38878 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38879 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38880 | if (!SWIG_IsOK(ecode2)) { | |
38881 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
38882 | } | |
38883 | arg2 = static_cast< int >(val2); | |
38884 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38885 | if (!SWIG_IsOK(ecode3)) { | |
38886 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
38887 | } | |
38888 | arg3 = static_cast< int >(val3); | |
38889 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38890 | if (!SWIG_IsOK(ecode4)) { | |
38891 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
38892 | } | |
38893 | arg4 = static_cast< int >(val4); | |
38894 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38895 | if (!SWIG_IsOK(ecode5)) { | |
38896 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
38897 | } | |
38898 | arg5 = static_cast< int >(val5); | |
38899 | { | |
38900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38901 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
38902 | wxPyEndAllowThreads(__tstate); | |
38903 | if (PyErr_Occurred()) SWIG_fail; | |
38904 | } | |
38905 | resultobj = SWIG_Py_Void(); | |
38906 | return resultobj; | |
38907 | fail: | |
38908 | return NULL; | |
38909 | } | |
38910 | ||
38911 | ||
38912 | SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38913 | PyObject *resultobj = 0; | |
38914 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38915 | int arg2 ; | |
38916 | int arg3 ; | |
38917 | int arg4 ; | |
38918 | int arg5 ; | |
38919 | int arg6 = (int) wxSIZE_AUTO ; | |
38920 | void *argp1 = 0 ; | |
38921 | int res1 = 0 ; | |
38922 | int val2 ; | |
38923 | int ecode2 = 0 ; | |
38924 | int val3 ; | |
38925 | int ecode3 = 0 ; | |
38926 | int val4 ; | |
38927 | int ecode4 = 0 ; | |
38928 | int val5 ; | |
38929 | int ecode5 = 0 ; | |
38930 | int val6 ; | |
38931 | int ecode6 = 0 ; | |
38932 | PyObject * obj0 = 0 ; | |
38933 | PyObject * obj1 = 0 ; | |
38934 | PyObject * obj2 = 0 ; | |
38935 | PyObject * obj3 = 0 ; | |
38936 | PyObject * obj4 = 0 ; | |
38937 | PyObject * obj5 = 0 ; | |
38938 | char * kwnames[] = { | |
38939 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
38940 | }; | |
38941 | ||
38942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
38943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38944 | if (!SWIG_IsOK(res1)) { | |
38945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38946 | } | |
38947 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38948 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38949 | if (!SWIG_IsOK(ecode2)) { | |
38950 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
38951 | } | |
38952 | arg2 = static_cast< int >(val2); | |
38953 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38954 | if (!SWIG_IsOK(ecode3)) { | |
38955 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
38956 | } | |
38957 | arg3 = static_cast< int >(val3); | |
38958 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38959 | if (!SWIG_IsOK(ecode4)) { | |
38960 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
38961 | } | |
38962 | arg4 = static_cast< int >(val4); | |
38963 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38964 | if (!SWIG_IsOK(ecode5)) { | |
38965 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
38966 | } | |
38967 | arg5 = static_cast< int >(val5); | |
38968 | if (obj5) { | |
38969 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
38970 | if (!SWIG_IsOK(ecode6)) { | |
38971 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
38972 | } | |
38973 | arg6 = static_cast< int >(val6); | |
38974 | } | |
38975 | { | |
38976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38977 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
38978 | wxPyEndAllowThreads(__tstate); | |
38979 | if (PyErr_Occurred()) SWIG_fail; | |
38980 | } | |
38981 | resultobj = SWIG_Py_Void(); | |
38982 | return resultobj; | |
38983 | fail: | |
38984 | return NULL; | |
38985 | } | |
38986 | ||
38987 | ||
38988 | SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38989 | PyObject *resultobj = 0; | |
38990 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38991 | int arg2 ; | |
38992 | int arg3 ; | |
38993 | void *argp1 = 0 ; | |
38994 | int res1 = 0 ; | |
38995 | int val2 ; | |
38996 | int ecode2 = 0 ; | |
38997 | int val3 ; | |
38998 | int ecode3 = 0 ; | |
38999 | PyObject * obj0 = 0 ; | |
39000 | PyObject * obj1 = 0 ; | |
39001 | PyObject * obj2 = 0 ; | |
39002 | char * kwnames[] = { | |
39003 | (char *) "self",(char *) "width",(char *) "height", NULL | |
39004 | }; | |
39005 | ||
39006 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
39007 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39008 | if (!SWIG_IsOK(res1)) { | |
39009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39010 | } | |
39011 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39012 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39013 | if (!SWIG_IsOK(ecode2)) { | |
39014 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
39015 | } | |
39016 | arg2 = static_cast< int >(val2); | |
39017 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
39018 | if (!SWIG_IsOK(ecode3)) { | |
39019 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
39020 | } | |
39021 | arg3 = static_cast< int >(val3); | |
39022 | { | |
39023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39024 | (arg1)->DoSetClientSize(arg2,arg3); | |
39025 | wxPyEndAllowThreads(__tstate); | |
39026 | if (PyErr_Occurred()) SWIG_fail; | |
39027 | } | |
39028 | resultobj = SWIG_Py_Void(); | |
39029 | return resultobj; | |
39030 | fail: | |
39031 | return NULL; | |
39032 | } | |
39033 | ||
39034 | ||
39035 | SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39036 | PyObject *resultobj = 0; | |
39037 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39038 | int arg2 ; | |
39039 | int arg3 ; | |
39040 | void *argp1 = 0 ; | |
39041 | int res1 = 0 ; | |
39042 | int val2 ; | |
39043 | int ecode2 = 0 ; | |
39044 | int val3 ; | |
39045 | int ecode3 = 0 ; | |
39046 | PyObject * obj0 = 0 ; | |
39047 | PyObject * obj1 = 0 ; | |
39048 | PyObject * obj2 = 0 ; | |
39049 | char * kwnames[] = { | |
39050 | (char *) "self",(char *) "x",(char *) "y", NULL | |
39051 | }; | |
39052 | ||
39053 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
39054 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39055 | if (!SWIG_IsOK(res1)) { | |
39056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39057 | } | |
39058 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39059 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39060 | if (!SWIG_IsOK(ecode2)) { | |
39061 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
39062 | } | |
39063 | arg2 = static_cast< int >(val2); | |
39064 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
39065 | if (!SWIG_IsOK(ecode3)) { | |
39066 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
39067 | } | |
39068 | arg3 = static_cast< int >(val3); | |
39069 | { | |
39070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39071 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
39072 | wxPyEndAllowThreads(__tstate); | |
39073 | if (PyErr_Occurred()) SWIG_fail; | |
39074 | } | |
39075 | resultobj = SWIG_Py_Void(); | |
39076 | return resultobj; | |
39077 | fail: | |
39078 | return NULL; | |
39079 | } | |
39080 | ||
39081 | ||
39082 | SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39083 | PyObject *resultobj = 0; | |
39084 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39085 | int *arg2 = (int *) 0 ; | |
39086 | int *arg3 = (int *) 0 ; | |
39087 | void *argp1 = 0 ; | |
39088 | int res1 = 0 ; | |
39089 | int temp2 ; | |
39090 | int res2 = SWIG_TMPOBJ ; | |
39091 | int temp3 ; | |
39092 | int res3 = SWIG_TMPOBJ ; | |
39093 | PyObject *swig_obj[1] ; | |
39094 | ||
39095 | arg2 = &temp2; | |
39096 | arg3 = &temp3; | |
39097 | if (!args) SWIG_fail; | |
39098 | swig_obj[0] = args; | |
39099 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39100 | if (!SWIG_IsOK(res1)) { | |
39101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39102 | } | |
39103 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39104 | { | |
39105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39106 | ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3); | |
39107 | wxPyEndAllowThreads(__tstate); | |
39108 | if (PyErr_Occurred()) SWIG_fail; | |
39109 | } | |
39110 | resultobj = SWIG_Py_Void(); | |
39111 | if (SWIG_IsTmpObj(res2)) { | |
39112 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
39113 | } else { | |
39114 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39115 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
39116 | } | |
39117 | if (SWIG_IsTmpObj(res3)) { | |
39118 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
39119 | } else { | |
39120 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39121 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
39122 | } | |
39123 | return resultobj; | |
39124 | fail: | |
39125 | return NULL; | |
39126 | } | |
39127 | ||
39128 | ||
39129 | SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39130 | PyObject *resultobj = 0; | |
39131 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39132 | int *arg2 = (int *) 0 ; | |
39133 | int *arg3 = (int *) 0 ; | |
39134 | void *argp1 = 0 ; | |
39135 | int res1 = 0 ; | |
39136 | int temp2 ; | |
39137 | int res2 = SWIG_TMPOBJ ; | |
39138 | int temp3 ; | |
39139 | int res3 = SWIG_TMPOBJ ; | |
39140 | PyObject *swig_obj[1] ; | |
39141 | ||
39142 | arg2 = &temp2; | |
39143 | arg3 = &temp3; | |
39144 | if (!args) SWIG_fail; | |
39145 | swig_obj[0] = args; | |
39146 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39147 | if (!SWIG_IsOK(res1)) { | |
39148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39149 | } | |
39150 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39151 | { | |
39152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39153 | ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3); | |
39154 | wxPyEndAllowThreads(__tstate); | |
39155 | if (PyErr_Occurred()) SWIG_fail; | |
39156 | } | |
39157 | resultobj = SWIG_Py_Void(); | |
39158 | if (SWIG_IsTmpObj(res2)) { | |
39159 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
39160 | } else { | |
39161 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39162 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
39163 | } | |
39164 | if (SWIG_IsTmpObj(res3)) { | |
39165 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
39166 | } else { | |
39167 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39168 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
39169 | } | |
39170 | return resultobj; | |
39171 | fail: | |
39172 | return NULL; | |
39173 | } | |
39174 | ||
39175 | ||
39176 | SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39177 | PyObject *resultobj = 0; | |
39178 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39179 | int *arg2 = (int *) 0 ; | |
39180 | int *arg3 = (int *) 0 ; | |
39181 | void *argp1 = 0 ; | |
39182 | int res1 = 0 ; | |
39183 | int temp2 ; | |
39184 | int res2 = SWIG_TMPOBJ ; | |
39185 | int temp3 ; | |
39186 | int res3 = SWIG_TMPOBJ ; | |
39187 | PyObject *swig_obj[1] ; | |
39188 | ||
39189 | arg2 = &temp2; | |
39190 | arg3 = &temp3; | |
39191 | if (!args) SWIG_fail; | |
39192 | swig_obj[0] = args; | |
39193 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39194 | if (!SWIG_IsOK(res1)) { | |
39195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39196 | } | |
39197 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39198 | { | |
39199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39200 | ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3); | |
39201 | wxPyEndAllowThreads(__tstate); | |
39202 | if (PyErr_Occurred()) SWIG_fail; | |
39203 | } | |
39204 | resultobj = SWIG_Py_Void(); | |
39205 | if (SWIG_IsTmpObj(res2)) { | |
39206 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
39207 | } else { | |
39208 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39209 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
39210 | } | |
39211 | if (SWIG_IsTmpObj(res3)) { | |
39212 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
39213 | } else { | |
39214 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39215 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
39216 | } | |
39217 | return resultobj; | |
39218 | fail: | |
39219 | return NULL; | |
d55e5bfc RD |
39220 | } |
39221 | ||
39222 | ||
1bd55598 RD |
39223 | SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39224 | PyObject *resultobj = 0; | |
39225 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39226 | wxSize result; | |
39227 | void *argp1 = 0 ; | |
39228 | int res1 = 0 ; | |
39229 | PyObject *swig_obj[1] ; | |
39230 | ||
39231 | if (!args) SWIG_fail; | |
39232 | swig_obj[0] = args; | |
39233 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39234 | if (!SWIG_IsOK(res1)) { | |
39235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39236 | } | |
39237 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39238 | { | |
39239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39240 | result = ((wxPyControl const *)arg1)->DoGetVirtualSize(); | |
39241 | wxPyEndAllowThreads(__tstate); | |
39242 | if (PyErr_Occurred()) SWIG_fail; | |
39243 | } | |
39244 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
39245 | return resultobj; | |
39246 | fail: | |
39247 | return NULL; | |
7e08d4ef RD |
39248 | } |
39249 | ||
39250 | ||
1bd55598 RD |
39251 | SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39252 | PyObject *resultobj = 0; | |
39253 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39254 | wxSize result; | |
39255 | void *argp1 = 0 ; | |
39256 | int res1 = 0 ; | |
39257 | PyObject *swig_obj[1] ; | |
39258 | ||
39259 | if (!args) SWIG_fail; | |
39260 | swig_obj[0] = args; | |
39261 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39262 | if (!SWIG_IsOK(res1)) { | |
39263 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39264 | } | |
39265 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39266 | { | |
39267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39268 | result = ((wxPyControl const *)arg1)->DoGetBestSize(); | |
39269 | wxPyEndAllowThreads(__tstate); | |
39270 | if (PyErr_Occurred()) SWIG_fail; | |
39271 | } | |
39272 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
39273 | return resultobj; | |
39274 | fail: | |
39275 | return NULL; | |
d55e5bfc RD |
39276 | } |
39277 | ||
39278 | ||
1bd55598 RD |
39279 | SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39280 | PyObject *resultobj = 0; | |
39281 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39282 | SwigValueWrapper<wxVisualAttributes > result; | |
39283 | void *argp1 = 0 ; | |
39284 | int res1 = 0 ; | |
39285 | PyObject *swig_obj[1] ; | |
39286 | ||
39287 | if (!args) SWIG_fail; | |
39288 | swig_obj[0] = args; | |
39289 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39290 | if (!SWIG_IsOK(res1)) { | |
39291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39292 | } | |
39293 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39294 | { | |
39295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39296 | result = (arg1)->GetDefaultAttributes(); | |
39297 | wxPyEndAllowThreads(__tstate); | |
39298 | if (PyErr_Occurred()) SWIG_fail; | |
39299 | } | |
39300 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
39301 | return resultobj; | |
39302 | fail: | |
39303 | return NULL; | |
d55e5bfc RD |
39304 | } |
39305 | ||
39306 | ||
1bd55598 RD |
39307 | SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39308 | PyObject *resultobj = 0; | |
39309 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39310 | void *argp1 = 0 ; | |
39311 | int res1 = 0 ; | |
39312 | PyObject *swig_obj[1] ; | |
39313 | ||
39314 | if (!args) SWIG_fail; | |
39315 | swig_obj[0] = args; | |
39316 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39317 | if (!SWIG_IsOK(res1)) { | |
39318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39319 | } | |
39320 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39321 | { | |
39322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39323 | (arg1)->OnInternalIdle(); | |
39324 | wxPyEndAllowThreads(__tstate); | |
39325 | if (PyErr_Occurred()) SWIG_fail; | |
39326 | } | |
39327 | resultobj = SWIG_Py_Void(); | |
39328 | return resultobj; | |
39329 | fail: | |
39330 | return NULL; | |
39331 | } | |
39332 | ||
39333 | ||
39334 | SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39335 | PyObject *obj; | |
39336 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39337 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj)); | |
39338 | return SWIG_Py_Void(); | |
39339 | } | |
39340 | ||
39341 | SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39342 | return SWIG_Python_InitShadowInstance(args); | |
39343 | } | |
39344 | ||
39345 | SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39346 | PyObject *resultobj = 0; | |
39347 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
39348 | int arg2 = (int) 0 ; | |
39349 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
39350 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
704eda0c | 39351 | wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ; |
1bd55598 RD |
39352 | wxHelpEvent *result = 0 ; |
39353 | int val1 ; | |
39354 | int ecode1 = 0 ; | |
39355 | int val2 ; | |
39356 | int ecode2 = 0 ; | |
39357 | wxPoint temp3 ; | |
704eda0c RD |
39358 | int val4 ; |
39359 | int ecode4 = 0 ; | |
1bd55598 RD |
39360 | PyObject * obj0 = 0 ; |
39361 | PyObject * obj1 = 0 ; | |
39362 | PyObject * obj2 = 0 ; | |
704eda0c | 39363 | PyObject * obj3 = 0 ; |
1bd55598 | 39364 | char * kwnames[] = { |
704eda0c | 39365 | (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL |
1bd55598 RD |
39366 | }; |
39367 | ||
704eda0c | 39368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
1bd55598 RD |
39369 | if (obj0) { |
39370 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
39371 | if (!SWIG_IsOK(ecode1)) { | |
39372 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
39373 | } | |
39374 | arg1 = static_cast< wxEventType >(val1); | |
39375 | } | |
39376 | if (obj1) { | |
39377 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39378 | if (!SWIG_IsOK(ecode2)) { | |
39379 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'"); | |
39380 | } | |
39381 | arg2 = static_cast< int >(val2); | |
39382 | } | |
39383 | if (obj2) { | |
d55e5bfc | 39384 | { |
1bd55598 RD |
39385 | arg3 = &temp3; |
39386 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 39387 | } |
1bd55598 | 39388 | } |
704eda0c RD |
39389 | if (obj3) { |
39390 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
39391 | if (!SWIG_IsOK(ecode4)) { | |
39392 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'"); | |
39393 | } | |
39394 | arg4 = static_cast< wxHelpEvent::Origin >(val4); | |
39395 | } | |
1bd55598 RD |
39396 | { |
39397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 39398 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4); |
1bd55598 RD |
39399 | wxPyEndAllowThreads(__tstate); |
39400 | if (PyErr_Occurred()) SWIG_fail; | |
39401 | } | |
39402 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 ); | |
39403 | return resultobj; | |
39404 | fail: | |
39405 | return NULL; | |
d55e5bfc RD |
39406 | } |
39407 | ||
39408 | ||
1bd55598 RD |
39409 | SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39410 | PyObject *resultobj = 0; | |
39411 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39412 | wxPoint result; | |
39413 | void *argp1 = 0 ; | |
39414 | int res1 = 0 ; | |
39415 | PyObject *swig_obj[1] ; | |
39416 | ||
39417 | if (!args) SWIG_fail; | |
39418 | swig_obj[0] = args; | |
39419 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39420 | if (!SWIG_IsOK(res1)) { | |
39421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39422 | } | |
39423 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39424 | { | |
39425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39426 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
39427 | wxPyEndAllowThreads(__tstate); | |
39428 | if (PyErr_Occurred()) SWIG_fail; | |
39429 | } | |
39430 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
39431 | return resultobj; | |
39432 | fail: | |
39433 | return NULL; | |
39434 | } | |
39435 | ||
39436 | ||
39437 | SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39438 | PyObject *resultobj = 0; | |
39439 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39440 | wxPoint *arg2 = 0 ; | |
39441 | void *argp1 = 0 ; | |
39442 | int res1 = 0 ; | |
39443 | wxPoint temp2 ; | |
39444 | PyObject * obj0 = 0 ; | |
39445 | PyObject * obj1 = 0 ; | |
39446 | char * kwnames[] = { | |
39447 | (char *) "self",(char *) "pos", NULL | |
39448 | }; | |
39449 | ||
39450 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
39451 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39452 | if (!SWIG_IsOK(res1)) { | |
39453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
39454 | } | |
39455 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39456 | { | |
39457 | arg2 = &temp2; | |
39458 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39459 | } | |
39460 | { | |
39461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39462 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
39463 | wxPyEndAllowThreads(__tstate); | |
39464 | if (PyErr_Occurred()) SWIG_fail; | |
39465 | } | |
39466 | resultobj = SWIG_Py_Void(); | |
39467 | return resultobj; | |
39468 | fail: | |
39469 | return NULL; | |
d55e5bfc RD |
39470 | } |
39471 | ||
39472 | ||
1bd55598 RD |
39473 | SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39474 | PyObject *resultobj = 0; | |
39475 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39476 | wxString *result = 0 ; | |
39477 | void *argp1 = 0 ; | |
39478 | int res1 = 0 ; | |
39479 | PyObject *swig_obj[1] ; | |
39480 | ||
39481 | if (!args) SWIG_fail; | |
39482 | swig_obj[0] = args; | |
39483 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39484 | if (!SWIG_IsOK(res1)) { | |
39485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39486 | } | |
39487 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39488 | { | |
39489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 39490 | { |
1bd55598 RD |
39491 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); |
39492 | result = (wxString *) &_result_ref; | |
d55e5bfc | 39493 | } |
1bd55598 RD |
39494 | wxPyEndAllowThreads(__tstate); |
39495 | if (PyErr_Occurred()) SWIG_fail; | |
39496 | } | |
39497 | { | |
39498 | #if wxUSE_UNICODE | |
39499 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
39500 | #else | |
39501 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
39502 | #endif | |
39503 | } | |
39504 | return resultobj; | |
39505 | fail: | |
39506 | return NULL; | |
39507 | } | |
39508 | ||
39509 | ||
39510 | SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39511 | PyObject *resultobj = 0; | |
39512 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39513 | wxString *arg2 = 0 ; | |
39514 | void *argp1 = 0 ; | |
39515 | int res1 = 0 ; | |
39516 | bool temp2 = false ; | |
39517 | PyObject * obj0 = 0 ; | |
39518 | PyObject * obj1 = 0 ; | |
39519 | char * kwnames[] = { | |
39520 | (char *) "self",(char *) "link", NULL | |
39521 | }; | |
39522 | ||
39523 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail; | |
39524 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39525 | if (!SWIG_IsOK(res1)) { | |
39526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
39527 | } | |
39528 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39529 | { | |
39530 | arg2 = wxString_in_helper(obj1); | |
39531 | if (arg2 == NULL) SWIG_fail; | |
39532 | temp2 = true; | |
39533 | } | |
39534 | { | |
39535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39536 | (arg1)->SetLink((wxString const &)*arg2); | |
39537 | wxPyEndAllowThreads(__tstate); | |
39538 | if (PyErr_Occurred()) SWIG_fail; | |
39539 | } | |
39540 | resultobj = SWIG_Py_Void(); | |
39541 | { | |
39542 | if (temp2) | |
39543 | delete arg2; | |
39544 | } | |
39545 | return resultobj; | |
39546 | fail: | |
39547 | { | |
39548 | if (temp2) | |
39549 | delete arg2; | |
39550 | } | |
39551 | return NULL; | |
d55e5bfc RD |
39552 | } |
39553 | ||
39554 | ||
1bd55598 RD |
39555 | SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39556 | PyObject *resultobj = 0; | |
39557 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39558 | wxString *result = 0 ; | |
39559 | void *argp1 = 0 ; | |
39560 | int res1 = 0 ; | |
39561 | PyObject *swig_obj[1] ; | |
39562 | ||
39563 | if (!args) SWIG_fail; | |
39564 | swig_obj[0] = args; | |
39565 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39566 | if (!SWIG_IsOK(res1)) { | |
39567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39568 | } | |
39569 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39570 | { | |
39571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 39572 | { |
1bd55598 RD |
39573 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); |
39574 | result = (wxString *) &_result_ref; | |
d55e5bfc | 39575 | } |
1bd55598 RD |
39576 | wxPyEndAllowThreads(__tstate); |
39577 | if (PyErr_Occurred()) SWIG_fail; | |
39578 | } | |
39579 | { | |
39580 | #if wxUSE_UNICODE | |
39581 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
39582 | #else | |
39583 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
39584 | #endif | |
39585 | } | |
39586 | return resultobj; | |
39587 | fail: | |
39588 | return NULL; | |
39589 | } | |
39590 | ||
39591 | ||
39592 | SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39593 | PyObject *resultobj = 0; | |
39594 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39595 | wxString *arg2 = 0 ; | |
39596 | void *argp1 = 0 ; | |
39597 | int res1 = 0 ; | |
39598 | bool temp2 = false ; | |
39599 | PyObject * obj0 = 0 ; | |
39600 | PyObject * obj1 = 0 ; | |
39601 | char * kwnames[] = { | |
39602 | (char *) "self",(char *) "target", NULL | |
39603 | }; | |
39604 | ||
39605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail; | |
39606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39607 | if (!SWIG_IsOK(res1)) { | |
39608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
39609 | } | |
39610 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39611 | { | |
39612 | arg2 = wxString_in_helper(obj1); | |
39613 | if (arg2 == NULL) SWIG_fail; | |
39614 | temp2 = true; | |
39615 | } | |
39616 | { | |
39617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39618 | (arg1)->SetTarget((wxString const &)*arg2); | |
39619 | wxPyEndAllowThreads(__tstate); | |
39620 | if (PyErr_Occurred()) SWIG_fail; | |
39621 | } | |
39622 | resultobj = SWIG_Py_Void(); | |
39623 | { | |
39624 | if (temp2) | |
39625 | delete arg2; | |
39626 | } | |
39627 | return resultobj; | |
39628 | fail: | |
39629 | { | |
39630 | if (temp2) | |
39631 | delete arg2; | |
39632 | } | |
39633 | return NULL; | |
d55e5bfc RD |
39634 | } |
39635 | ||
39636 | ||
704eda0c RD |
39637 | SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39638 | PyObject *resultobj = 0; | |
39639 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39640 | wxHelpEvent::Origin result; | |
39641 | void *argp1 = 0 ; | |
39642 | int res1 = 0 ; | |
39643 | PyObject *swig_obj[1] ; | |
39644 | ||
39645 | if (!args) SWIG_fail; | |
39646 | swig_obj[0] = args; | |
39647 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39648 | if (!SWIG_IsOK(res1)) { | |
39649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39650 | } | |
39651 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39652 | { | |
39653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39654 | result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin(); | |
39655 | wxPyEndAllowThreads(__tstate); | |
39656 | if (PyErr_Occurred()) SWIG_fail; | |
39657 | } | |
39658 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
39659 | return resultobj; | |
39660 | fail: | |
39661 | return NULL; | |
39662 | } | |
39663 | ||
39664 | ||
39665 | SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39666 | PyObject *resultobj = 0; | |
39667 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39668 | wxHelpEvent::Origin arg2 ; | |
39669 | void *argp1 = 0 ; | |
39670 | int res1 = 0 ; | |
39671 | int val2 ; | |
39672 | int ecode2 = 0 ; | |
39673 | PyObject * obj0 = 0 ; | |
39674 | PyObject * obj1 = 0 ; | |
39675 | char * kwnames[] = { | |
39676 | (char *) "self",(char *) "origin", NULL | |
39677 | }; | |
39678 | ||
39679 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail; | |
39680 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39681 | if (!SWIG_IsOK(res1)) { | |
39682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
39683 | } | |
39684 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39685 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39686 | if (!SWIG_IsOK(ecode2)) { | |
39687 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'"); | |
39688 | } | |
39689 | arg2 = static_cast< wxHelpEvent::Origin >(val2); | |
39690 | { | |
39691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39692 | (arg1)->SetOrigin(arg2); | |
39693 | wxPyEndAllowThreads(__tstate); | |
39694 | if (PyErr_Occurred()) SWIG_fail; | |
39695 | } | |
39696 | resultobj = SWIG_Py_Void(); | |
39697 | return resultobj; | |
39698 | fail: | |
39699 | return NULL; | |
39700 | } | |
39701 | ||
39702 | ||
1bd55598 RD |
39703 | SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39704 | PyObject *obj; | |
39705 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39706 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj)); | |
39707 | return SWIG_Py_Void(); | |
39708 | } | |
39709 | ||
39710 | SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39711 | return SWIG_Python_InitShadowInstance(args); | |
39712 | } | |
39713 | ||
39714 | SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39715 | PyObject *resultobj = 0; | |
39716 | wxWindow *arg1 = (wxWindow *) NULL ; | |
39717 | bool arg2 = (bool) true ; | |
39718 | wxContextHelp *result = 0 ; | |
39719 | void *argp1 = 0 ; | |
39720 | int res1 = 0 ; | |
39721 | bool val2 ; | |
39722 | int ecode2 = 0 ; | |
39723 | PyObject * obj0 = 0 ; | |
39724 | PyObject * obj1 = 0 ; | |
39725 | char * kwnames[] = { | |
39726 | (char *) "window",(char *) "doNow", NULL | |
39727 | }; | |
39728 | ||
39729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
39730 | if (obj0) { | |
39731 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39732 | if (!SWIG_IsOK(res1)) { | |
39733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
d55e5bfc | 39734 | } |
1bd55598 RD |
39735 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
39736 | } | |
39737 | if (obj1) { | |
39738 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
39739 | if (!SWIG_IsOK(ecode2)) { | |
39740 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'"); | |
39741 | } | |
39742 | arg2 = static_cast< bool >(val2); | |
39743 | } | |
39744 | { | |
39745 | if (!wxPyCheckForApp()) SWIG_fail; | |
39746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39747 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
39748 | wxPyEndAllowThreads(__tstate); | |
39749 | if (PyErr_Occurred()) SWIG_fail; | |
39750 | } | |
39751 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 ); | |
39752 | return resultobj; | |
39753 | fail: | |
39754 | return NULL; | |
d55e5bfc RD |
39755 | } |
39756 | ||
39757 | ||
1bd55598 RD |
39758 | SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39759 | PyObject *resultobj = 0; | |
39760 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
39761 | void *argp1 = 0 ; | |
39762 | int res1 = 0 ; | |
39763 | PyObject *swig_obj[1] ; | |
39764 | ||
39765 | if (!args) SWIG_fail; | |
39766 | swig_obj[0] = args; | |
39767 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 ); | |
39768 | if (!SWIG_IsOK(res1)) { | |
39769 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
39770 | } | |
39771 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
39772 | { | |
39773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39774 | delete arg1; | |
d55e5bfc | 39775 | |
1bd55598 RD |
39776 | wxPyEndAllowThreads(__tstate); |
39777 | if (PyErr_Occurred()) SWIG_fail; | |
39778 | } | |
39779 | resultobj = SWIG_Py_Void(); | |
39780 | return resultobj; | |
39781 | fail: | |
39782 | return NULL; | |
39783 | } | |
39784 | ||
39785 | ||
39786 | SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39787 | PyObject *resultobj = 0; | |
39788 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
39789 | wxWindow *arg2 = (wxWindow *) NULL ; | |
39790 | bool result; | |
39791 | void *argp1 = 0 ; | |
39792 | int res1 = 0 ; | |
39793 | void *argp2 = 0 ; | |
39794 | int res2 = 0 ; | |
39795 | PyObject * obj0 = 0 ; | |
39796 | PyObject * obj1 = 0 ; | |
39797 | char * kwnames[] = { | |
39798 | (char *) "self",(char *) "window", NULL | |
39799 | }; | |
39800 | ||
39801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
39802 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 ); | |
39803 | if (!SWIG_IsOK(res1)) { | |
39804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
39805 | } | |
39806 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
39807 | if (obj1) { | |
39808 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39809 | if (!SWIG_IsOK(res2)) { | |
39810 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
d55e5bfc | 39811 | } |
1bd55598 RD |
39812 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
39813 | } | |
39814 | { | |
39815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39816 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
39817 | wxPyEndAllowThreads(__tstate); | |
39818 | if (PyErr_Occurred()) SWIG_fail; | |
39819 | } | |
39820 | { | |
39821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39822 | } | |
39823 | return resultobj; | |
39824 | fail: | |
39825 | return NULL; | |
d55e5bfc RD |
39826 | } |
39827 | ||
39828 | ||
1bd55598 RD |
39829 | SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39830 | PyObject *resultobj = 0; | |
39831 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
39832 | bool result; | |
39833 | void *argp1 = 0 ; | |
39834 | int res1 = 0 ; | |
39835 | PyObject *swig_obj[1] ; | |
39836 | ||
39837 | if (!args) SWIG_fail; | |
39838 | swig_obj[0] = args; | |
39839 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 ); | |
39840 | if (!SWIG_IsOK(res1)) { | |
39841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
39842 | } | |
39843 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
39844 | { | |
39845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39846 | result = (bool)(arg1)->EndContextHelp(); | |
39847 | wxPyEndAllowThreads(__tstate); | |
39848 | if (PyErr_Occurred()) SWIG_fail; | |
39849 | } | |
39850 | { | |
39851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39852 | } | |
39853 | return resultobj; | |
39854 | fail: | |
39855 | return NULL; | |
39856 | } | |
39857 | ||
39858 | ||
39859 | SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39860 | PyObject *obj; | |
39861 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39862 | SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj)); | |
39863 | return SWIG_Py_Void(); | |
39864 | } | |
39865 | ||
39866 | SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39867 | return SWIG_Python_InitShadowInstance(args); | |
39868 | } | |
39869 | ||
39870 | SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39871 | PyObject *resultobj = 0; | |
39872 | wxWindow *arg1 = (wxWindow *) 0 ; | |
39873 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
39874 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
39875 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
39876 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
39877 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
39878 | long arg5 = (long) wxBU_AUTODRAW ; | |
39879 | wxContextHelpButton *result = 0 ; | |
39880 | void *argp1 = 0 ; | |
39881 | int res1 = 0 ; | |
39882 | int val2 ; | |
39883 | int ecode2 = 0 ; | |
39884 | wxPoint temp3 ; | |
39885 | wxSize temp4 ; | |
39886 | long val5 ; | |
39887 | int ecode5 = 0 ; | |
39888 | PyObject * obj0 = 0 ; | |
39889 | PyObject * obj1 = 0 ; | |
39890 | PyObject * obj2 = 0 ; | |
39891 | PyObject * obj3 = 0 ; | |
39892 | PyObject * obj4 = 0 ; | |
39893 | char * kwnames[] = { | |
39894 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
39895 | }; | |
39896 | ||
39897 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
39898 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39899 | if (!SWIG_IsOK(res1)) { | |
39900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
39901 | } | |
39902 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
39903 | if (obj1) { | |
39904 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39905 | if (!SWIG_IsOK(ecode2)) { | |
39906 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'"); | |
39907 | } | |
39908 | arg2 = static_cast< int >(val2); | |
39909 | } | |
39910 | if (obj2) { | |
d55e5bfc | 39911 | { |
1bd55598 RD |
39912 | arg3 = &temp3; |
39913 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 39914 | } |
1bd55598 RD |
39915 | } |
39916 | if (obj3) { | |
d55e5bfc | 39917 | { |
1bd55598 RD |
39918 | arg4 = &temp4; |
39919 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 39920 | } |
1bd55598 RD |
39921 | } |
39922 | if (obj4) { | |
39923 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
39924 | if (!SWIG_IsOK(ecode5)) { | |
39925 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'"); | |
39926 | } | |
39927 | arg5 = static_cast< long >(val5); | |
39928 | } | |
39929 | { | |
39930 | if (!wxPyCheckForApp()) SWIG_fail; | |
39931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39932 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
39933 | wxPyEndAllowThreads(__tstate); | |
39934 | if (PyErr_Occurred()) SWIG_fail; | |
39935 | } | |
39936 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 ); | |
39937 | return resultobj; | |
39938 | fail: | |
39939 | return NULL; | |
d55e5bfc RD |
39940 | } |
39941 | ||
39942 | ||
1bd55598 RD |
39943 | SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39944 | PyObject *obj; | |
39945 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39946 | SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj)); | |
39947 | return SWIG_Py_Void(); | |
d55e5bfc RD |
39948 | } |
39949 | ||
1bd55598 RD |
39950 | SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39951 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
39952 | } |
39953 | ||
f52cbe90 RD |
39954 | SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39955 | PyObject *resultobj = 0; | |
39956 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39957 | void *argp1 = 0 ; | |
39958 | int res1 = 0 ; | |
39959 | PyObject *swig_obj[1] ; | |
39960 | ||
39961 | if (!args) SWIG_fail; | |
39962 | swig_obj[0] = args; | |
39963 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 ); | |
39964 | if (!SWIG_IsOK(res1)) { | |
39965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39966 | } | |
39967 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
39968 | { | |
39969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39970 | delete arg1; | |
39971 | ||
39972 | wxPyEndAllowThreads(__tstate); | |
39973 | if (PyErr_Occurred()) SWIG_fail; | |
39974 | } | |
39975 | resultobj = SWIG_Py_Void(); | |
39976 | return resultobj; | |
39977 | fail: | |
39978 | return NULL; | |
39979 | } | |
39980 | ||
39981 | ||
1bd55598 RD |
39982 | SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
39983 | PyObject *resultobj = 0; | |
39984 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39985 | wxHelpProvider *result = 0 ; | |
39986 | int res1 = 0 ; | |
39987 | PyObject * obj0 = 0 ; | |
39988 | char * kwnames[] = { | |
39989 | (char *) "helpProvider", NULL | |
39990 | }; | |
39991 | ||
39992 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail; | |
39993 | res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 ); | |
39994 | if (!SWIG_IsOK(res1)) { | |
39995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39996 | } | |
39997 | { | |
39998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39999 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
40000 | wxPyEndAllowThreads(__tstate); | |
40001 | if (PyErr_Occurred()) SWIG_fail; | |
40002 | } | |
40003 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 ); | |
40004 | return resultobj; | |
40005 | fail: | |
40006 | return NULL; | |
d55e5bfc RD |
40007 | } |
40008 | ||
40009 | ||
1bd55598 RD |
40010 | SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40011 | PyObject *resultobj = 0; | |
40012 | wxHelpProvider *result = 0 ; | |
40013 | ||
40014 | if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail; | |
40015 | { | |
40016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40017 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
40018 | wxPyEndAllowThreads(__tstate); | |
40019 | if (PyErr_Occurred()) SWIG_fail; | |
40020 | } | |
40021 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40022 | return resultobj; | |
40023 | fail: | |
40024 | return NULL; | |
40025 | } | |
40026 | ||
40027 | ||
40028 | SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40029 | PyObject *resultobj = 0; | |
40030 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40031 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40032 | wxString result; | |
40033 | void *argp1 = 0 ; | |
40034 | int res1 = 0 ; | |
40035 | void *argp2 = 0 ; | |
40036 | int res2 = 0 ; | |
40037 | PyObject * obj0 = 0 ; | |
40038 | PyObject * obj1 = 0 ; | |
40039 | char * kwnames[] = { | |
40040 | (char *) "self",(char *) "window", NULL | |
40041 | }; | |
40042 | ||
40043 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
40044 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40045 | if (!SWIG_IsOK(res1)) { | |
40046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40047 | } | |
40048 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40049 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40050 | if (!SWIG_IsOK(res2)) { | |
40051 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
40052 | } | |
40053 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40054 | { | |
40055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40056 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
40057 | wxPyEndAllowThreads(__tstate); | |
40058 | if (PyErr_Occurred()) SWIG_fail; | |
40059 | } | |
40060 | { | |
40061 | #if wxUSE_UNICODE | |
40062 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
40063 | #else | |
40064 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
40065 | #endif | |
40066 | } | |
40067 | return resultobj; | |
40068 | fail: | |
40069 | return NULL; | |
40070 | } | |
40071 | ||
40072 | ||
40073 | SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40074 | PyObject *resultobj = 0; | |
40075 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40076 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40077 | bool result; | |
40078 | void *argp1 = 0 ; | |
40079 | int res1 = 0 ; | |
40080 | void *argp2 = 0 ; | |
40081 | int res2 = 0 ; | |
40082 | PyObject * obj0 = 0 ; | |
40083 | PyObject * obj1 = 0 ; | |
40084 | char * kwnames[] = { | |
40085 | (char *) "self",(char *) "window", NULL | |
40086 | }; | |
40087 | ||
40088 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
40089 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40090 | if (!SWIG_IsOK(res1)) { | |
40091 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40092 | } | |
40093 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40094 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40095 | if (!SWIG_IsOK(res2)) { | |
40096 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
40097 | } | |
40098 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40099 | { | |
40100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40101 | result = (bool)(arg1)->ShowHelp(arg2); | |
40102 | wxPyEndAllowThreads(__tstate); | |
40103 | if (PyErr_Occurred()) SWIG_fail; | |
40104 | } | |
40105 | { | |
40106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40107 | } | |
40108 | return resultobj; | |
40109 | fail: | |
40110 | return NULL; | |
40111 | } | |
40112 | ||
40113 | ||
b850e7f3 RD |
40114 | SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
40115 | PyObject *resultobj = 0; | |
40116 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40117 | wxWindowBase *arg2 = (wxWindowBase *) 0 ; | |
40118 | wxPoint *arg3 = 0 ; | |
40119 | wxHelpEvent::Origin arg4 ; | |
40120 | bool result; | |
40121 | void *argp1 = 0 ; | |
40122 | int res1 = 0 ; | |
40123 | void *argp2 = 0 ; | |
40124 | int res2 = 0 ; | |
40125 | wxPoint temp3 ; | |
40126 | int val4 ; | |
40127 | int ecode4 = 0 ; | |
40128 | PyObject * obj0 = 0 ; | |
40129 | PyObject * obj1 = 0 ; | |
40130 | PyObject * obj2 = 0 ; | |
40131 | PyObject * obj3 = 0 ; | |
40132 | char * kwnames[] = { | |
40133 | (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL | |
40134 | }; | |
40135 | ||
40136 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
40137 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40138 | if (!SWIG_IsOK(res1)) { | |
40139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40140 | } | |
40141 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40142 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 ); | |
40143 | if (!SWIG_IsOK(res2)) { | |
40144 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'"); | |
40145 | } | |
40146 | arg2 = reinterpret_cast< wxWindowBase * >(argp2); | |
40147 | { | |
40148 | arg3 = &temp3; | |
40149 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
40150 | } | |
40151 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
40152 | if (!SWIG_IsOK(ecode4)) { | |
40153 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'"); | |
40154 | } | |
40155 | arg4 = static_cast< wxHelpEvent::Origin >(val4); | |
40156 | { | |
40157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40158 | result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4); | |
40159 | wxPyEndAllowThreads(__tstate); | |
40160 | if (PyErr_Occurred()) SWIG_fail; | |
40161 | } | |
40162 | { | |
40163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40164 | } | |
40165 | return resultobj; | |
40166 | fail: | |
40167 | return NULL; | |
40168 | } | |
40169 | ||
40170 | ||
1bd55598 RD |
40171 | SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
40172 | PyObject *resultobj = 0; | |
40173 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40174 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40175 | wxString *arg3 = 0 ; | |
40176 | void *argp1 = 0 ; | |
40177 | int res1 = 0 ; | |
40178 | void *argp2 = 0 ; | |
40179 | int res2 = 0 ; | |
40180 | bool temp3 = false ; | |
40181 | PyObject * obj0 = 0 ; | |
40182 | PyObject * obj1 = 0 ; | |
40183 | PyObject * obj2 = 0 ; | |
40184 | char * kwnames[] = { | |
40185 | (char *) "self",(char *) "window",(char *) "text", NULL | |
40186 | }; | |
40187 | ||
40188 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
40189 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40190 | if (!SWIG_IsOK(res1)) { | |
40191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40192 | } | |
40193 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40194 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40195 | if (!SWIG_IsOK(res2)) { | |
40196 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
40197 | } | |
40198 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40199 | { | |
40200 | arg3 = wxString_in_helper(obj2); | |
40201 | if (arg3 == NULL) SWIG_fail; | |
40202 | temp3 = true; | |
40203 | } | |
40204 | { | |
40205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40206 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
40207 | wxPyEndAllowThreads(__tstate); | |
40208 | if (PyErr_Occurred()) SWIG_fail; | |
40209 | } | |
40210 | resultobj = SWIG_Py_Void(); | |
40211 | { | |
40212 | if (temp3) | |
40213 | delete arg3; | |
40214 | } | |
40215 | return resultobj; | |
40216 | fail: | |
40217 | { | |
40218 | if (temp3) | |
40219 | delete arg3; | |
40220 | } | |
40221 | return NULL; | |
40222 | } | |
40223 | ||
40224 | ||
40225 | SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40226 | PyObject *resultobj = 0; | |
40227 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40228 | int arg2 ; | |
40229 | wxString *arg3 = 0 ; | |
40230 | void *argp1 = 0 ; | |
40231 | int res1 = 0 ; | |
40232 | int val2 ; | |
40233 | int ecode2 = 0 ; | |
40234 | bool temp3 = false ; | |
40235 | PyObject * obj0 = 0 ; | |
40236 | PyObject * obj1 = 0 ; | |
40237 | PyObject * obj2 = 0 ; | |
40238 | char * kwnames[] = { | |
40239 | (char *) "self",(char *) "id",(char *) "text", NULL | |
40240 | }; | |
40241 | ||
40242 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
40243 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40244 | if (!SWIG_IsOK(res1)) { | |
40245 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40246 | } | |
40247 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40248 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
40249 | if (!SWIG_IsOK(ecode2)) { | |
40250 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'"); | |
40251 | } | |
40252 | arg2 = static_cast< int >(val2); | |
40253 | { | |
40254 | arg3 = wxString_in_helper(obj2); | |
40255 | if (arg3 == NULL) SWIG_fail; | |
40256 | temp3 = true; | |
40257 | } | |
40258 | { | |
40259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40260 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
40261 | wxPyEndAllowThreads(__tstate); | |
40262 | if (PyErr_Occurred()) SWIG_fail; | |
40263 | } | |
40264 | resultobj = SWIG_Py_Void(); | |
40265 | { | |
40266 | if (temp3) | |
40267 | delete arg3; | |
40268 | } | |
40269 | return resultobj; | |
40270 | fail: | |
40271 | { | |
40272 | if (temp3) | |
40273 | delete arg3; | |
40274 | } | |
40275 | return NULL; | |
40276 | } | |
40277 | ||
40278 | ||
40279 | SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40280 | PyObject *resultobj = 0; | |
40281 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40282 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40283 | void *argp1 = 0 ; | |
40284 | int res1 = 0 ; | |
40285 | void *argp2 = 0 ; | |
40286 | int res2 = 0 ; | |
40287 | PyObject * obj0 = 0 ; | |
40288 | PyObject * obj1 = 0 ; | |
40289 | char * kwnames[] = { | |
40290 | (char *) "self",(char *) "window", NULL | |
40291 | }; | |
40292 | ||
40293 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
40294 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40295 | if (!SWIG_IsOK(res1)) { | |
40296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40297 | } | |
40298 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40299 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40300 | if (!SWIG_IsOK(res2)) { | |
40301 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
40302 | } | |
40303 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40304 | { | |
40305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40306 | (arg1)->RemoveHelp(arg2); | |
40307 | wxPyEndAllowThreads(__tstate); | |
40308 | if (PyErr_Occurred()) SWIG_fail; | |
40309 | } | |
40310 | resultobj = SWIG_Py_Void(); | |
40311 | return resultobj; | |
40312 | fail: | |
40313 | return NULL; | |
d55e5bfc RD |
40314 | } |
40315 | ||
40316 | ||
1bd55598 RD |
40317 | SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40318 | PyObject *resultobj = 0; | |
40319 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40320 | void *argp1 = 0 ; | |
40321 | int res1 = 0 ; | |
40322 | PyObject *swig_obj[1] ; | |
40323 | ||
40324 | if (!args) SWIG_fail; | |
40325 | swig_obj[0] = args; | |
40326 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40327 | if (!SWIG_IsOK(res1)) { | |
40328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40329 | } | |
40330 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40331 | { | |
40332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40333 | wxHelpProvider_Destroy(arg1); | |
40334 | wxPyEndAllowThreads(__tstate); | |
40335 | if (PyErr_Occurred()) SWIG_fail; | |
40336 | } | |
40337 | resultobj = SWIG_Py_Void(); | |
40338 | return resultobj; | |
40339 | fail: | |
40340 | return NULL; | |
d55e5bfc RD |
40341 | } |
40342 | ||
40343 | ||
1bd55598 RD |
40344 | SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40345 | PyObject *obj; | |
40346 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40347 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj)); | |
40348 | return SWIG_Py_Void(); | |
d55e5bfc RD |
40349 | } |
40350 | ||
1bd55598 RD |
40351 | SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40352 | PyObject *resultobj = 0; | |
40353 | wxSimpleHelpProvider *result = 0 ; | |
40354 | ||
40355 | if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail; | |
40356 | { | |
40357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40358 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
40359 | wxPyEndAllowThreads(__tstate); | |
40360 | if (PyErr_Occurred()) SWIG_fail; | |
40361 | } | |
40362 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 ); | |
40363 | return resultobj; | |
40364 | fail: | |
40365 | return NULL; | |
40366 | } | |
40367 | ||
40368 | ||
40369 | SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
40370 | PyObject *obj; | |
40371 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40372 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj)); | |
40373 | return SWIG_Py_Void(); | |
40374 | } | |
40375 | ||
40376 | SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
40377 | return SWIG_Python_InitShadowInstance(args); | |
40378 | } | |
40379 | ||
40380 | SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40381 | PyObject *resultobj = 0; | |
40382 | wxBitmap *arg1 = 0 ; | |
40383 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
40384 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
40385 | wxGenericDragImage *result = 0 ; | |
40386 | void *argp1 = 0 ; | |
40387 | int res1 = 0 ; | |
40388 | void *argp2 = 0 ; | |
40389 | int res2 = 0 ; | |
40390 | PyObject * obj0 = 0 ; | |
40391 | PyObject * obj1 = 0 ; | |
40392 | char * kwnames[] = { | |
40393 | (char *) "image",(char *) "cursor", NULL | |
40394 | }; | |
40395 | ||
40396 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
40397 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
40398 | if (!SWIG_IsOK(res1)) { | |
40399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
40400 | } | |
40401 | if (!argp1) { | |
40402 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
40403 | } | |
40404 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
40405 | if (obj1) { | |
40406 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
40407 | if (!SWIG_IsOK(res2)) { | |
40408 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
36ed4f51 | 40409 | } |
1bd55598 RD |
40410 | if (!argp2) { |
40411 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d55e5bfc | 40412 | } |
1bd55598 RD |
40413 | arg2 = reinterpret_cast< wxCursor * >(argp2); |
40414 | } | |
40415 | { | |
40416 | if (!wxPyCheckForApp()) SWIG_fail; | |
40417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40418 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
40419 | wxPyEndAllowThreads(__tstate); | |
40420 | if (PyErr_Occurred()) SWIG_fail; | |
40421 | } | |
40422 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 ); | |
40423 | return resultobj; | |
40424 | fail: | |
40425 | return NULL; | |
40426 | } | |
40427 | ||
40428 | ||
40429 | SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40430 | PyObject *resultobj = 0; | |
40431 | wxIcon *arg1 = 0 ; | |
40432 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
40433 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
40434 | wxGenericDragImage *result = 0 ; | |
40435 | void *argp1 = 0 ; | |
40436 | int res1 = 0 ; | |
40437 | void *argp2 = 0 ; | |
40438 | int res2 = 0 ; | |
40439 | PyObject * obj0 = 0 ; | |
40440 | PyObject * obj1 = 0 ; | |
40441 | char * kwnames[] = { | |
40442 | (char *) "image",(char *) "cursor", NULL | |
40443 | }; | |
40444 | ||
40445 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
40446 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
40447 | if (!SWIG_IsOK(res1)) { | |
40448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
40449 | } | |
40450 | if (!argp1) { | |
40451 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
40452 | } | |
40453 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
40454 | if (obj1) { | |
40455 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
40456 | if (!SWIG_IsOK(res2)) { | |
40457 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
36ed4f51 | 40458 | } |
1bd55598 RD |
40459 | if (!argp2) { |
40460 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d55e5bfc | 40461 | } |
1bd55598 RD |
40462 | arg2 = reinterpret_cast< wxCursor * >(argp2); |
40463 | } | |
40464 | { | |
40465 | if (!wxPyCheckForApp()) SWIG_fail; | |
40466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40467 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
40468 | wxPyEndAllowThreads(__tstate); | |
40469 | if (PyErr_Occurred()) SWIG_fail; | |
40470 | } | |
40471 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40472 | return resultobj; | |
40473 | fail: | |
40474 | return NULL; | |
40475 | } | |
40476 | ||
40477 | ||
40478 | SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40479 | PyObject *resultobj = 0; | |
40480 | wxString *arg1 = 0 ; | |
40481 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
40482 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
40483 | wxGenericDragImage *result = 0 ; | |
40484 | bool temp1 = false ; | |
40485 | void *argp2 = 0 ; | |
40486 | int res2 = 0 ; | |
40487 | PyObject * obj0 = 0 ; | |
40488 | PyObject * obj1 = 0 ; | |
40489 | char * kwnames[] = { | |
40490 | (char *) "str",(char *) "cursor", NULL | |
40491 | }; | |
40492 | ||
40493 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail; | |
40494 | { | |
40495 | arg1 = wxString_in_helper(obj0); | |
40496 | if (arg1 == NULL) SWIG_fail; | |
40497 | temp1 = true; | |
40498 | } | |
40499 | if (obj1) { | |
40500 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
40501 | if (!SWIG_IsOK(res2)) { | |
40502 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
36ed4f51 | 40503 | } |
1bd55598 RD |
40504 | if (!argp2) { |
40505 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d55e5bfc | 40506 | } |
1bd55598 RD |
40507 | arg2 = reinterpret_cast< wxCursor * >(argp2); |
40508 | } | |
40509 | { | |
40510 | if (!wxPyCheckForApp()) SWIG_fail; | |
40511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40512 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
40513 | wxPyEndAllowThreads(__tstate); | |
40514 | if (PyErr_Occurred()) SWIG_fail; | |
40515 | } | |
40516 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40517 | { | |
40518 | if (temp1) | |
40519 | delete arg1; | |
40520 | } | |
40521 | return resultobj; | |
40522 | fail: | |
40523 | { | |
40524 | if (temp1) | |
40525 | delete arg1; | |
40526 | } | |
40527 | return NULL; | |
40528 | } | |
40529 | ||
40530 | ||
40531 | SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40532 | PyObject *resultobj = 0; | |
40533 | wxPyTreeCtrl *arg1 = 0 ; | |
40534 | wxTreeItemId *arg2 = 0 ; | |
40535 | wxGenericDragImage *result = 0 ; | |
40536 | void *argp1 = 0 ; | |
40537 | int res1 = 0 ; | |
40538 | void *argp2 = 0 ; | |
40539 | int res2 = 0 ; | |
40540 | PyObject * obj0 = 0 ; | |
40541 | PyObject * obj1 = 0 ; | |
40542 | char * kwnames[] = { | |
40543 | (char *) "treeCtrl",(char *) "id", NULL | |
40544 | }; | |
40545 | ||
40546 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
40547 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0); | |
40548 | if (!SWIG_IsOK(res1)) { | |
40549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'"); | |
40550 | } | |
40551 | if (!argp1) { | |
40552 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'"); | |
40553 | } | |
40554 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
40555 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 ); | |
40556 | if (!SWIG_IsOK(res2)) { | |
40557 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'"); | |
40558 | } | |
40559 | if (!argp2) { | |
40560 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'"); | |
40561 | } | |
40562 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
40563 | { | |
40564 | if (!wxPyCheckForApp()) SWIG_fail; | |
40565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40566 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
40567 | wxPyEndAllowThreads(__tstate); | |
40568 | if (PyErr_Occurred()) SWIG_fail; | |
40569 | } | |
40570 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40571 | return resultobj; | |
40572 | fail: | |
40573 | return NULL; | |
40574 | } | |
40575 | ||
40576 | ||
40577 | SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40578 | PyObject *resultobj = 0; | |
40579 | wxPyListCtrl *arg1 = 0 ; | |
40580 | long arg2 ; | |
40581 | wxGenericDragImage *result = 0 ; | |
40582 | void *argp1 = 0 ; | |
40583 | int res1 = 0 ; | |
40584 | long val2 ; | |
40585 | int ecode2 = 0 ; | |
40586 | PyObject * obj0 = 0 ; | |
40587 | PyObject * obj1 = 0 ; | |
40588 | char * kwnames[] = { | |
40589 | (char *) "listCtrl",(char *) "id", NULL | |
40590 | }; | |
40591 | ||
40592 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
40593 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0); | |
40594 | if (!SWIG_IsOK(res1)) { | |
40595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'"); | |
40596 | } | |
40597 | if (!argp1) { | |
40598 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'"); | |
40599 | } | |
40600 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
40601 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
40602 | if (!SWIG_IsOK(ecode2)) { | |
40603 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'"); | |
40604 | } | |
40605 | arg2 = static_cast< long >(val2); | |
40606 | { | |
40607 | if (!wxPyCheckForApp()) SWIG_fail; | |
40608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40609 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
40610 | wxPyEndAllowThreads(__tstate); | |
40611 | if (PyErr_Occurred()) SWIG_fail; | |
40612 | } | |
40613 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40614 | return resultobj; | |
40615 | fail: | |
40616 | return NULL; | |
d55e5bfc RD |
40617 | } |
40618 | ||
40619 | ||
1bd55598 RD |
40620 | SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40621 | PyObject *resultobj = 0; | |
40622 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40623 | void *argp1 = 0 ; | |
40624 | int res1 = 0 ; | |
40625 | PyObject *swig_obj[1] ; | |
40626 | ||
40627 | if (!args) SWIG_fail; | |
40628 | swig_obj[0] = args; | |
40629 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 ); | |
40630 | if (!SWIG_IsOK(res1)) { | |
40631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40632 | } | |
40633 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40634 | { | |
40635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40636 | delete arg1; | |
d55e5bfc | 40637 | |
1bd55598 RD |
40638 | wxPyEndAllowThreads(__tstate); |
40639 | if (PyErr_Occurred()) SWIG_fail; | |
40640 | } | |
40641 | resultobj = SWIG_Py_Void(); | |
40642 | return resultobj; | |
40643 | fail: | |
40644 | return NULL; | |
40645 | } | |
40646 | ||
40647 | ||
40648 | SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40649 | PyObject *resultobj = 0; | |
40650 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40651 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
40652 | void *argp1 = 0 ; | |
40653 | int res1 = 0 ; | |
40654 | void *argp2 = 0 ; | |
40655 | int res2 = 0 ; | |
40656 | PyObject * obj0 = 0 ; | |
40657 | PyObject * obj1 = 0 ; | |
40658 | char * kwnames[] = { | |
40659 | (char *) "self",(char *) "bitmap", NULL | |
40660 | }; | |
40661 | ||
40662 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
40663 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40664 | if (!SWIG_IsOK(res1)) { | |
40665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40666 | } | |
40667 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40668 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
40669 | if (!SWIG_IsOK(res2)) { | |
40670 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
40671 | } | |
40672 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
40673 | { | |
40674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40675 | (arg1)->SetBackingBitmap(arg2); | |
40676 | wxPyEndAllowThreads(__tstate); | |
40677 | if (PyErr_Occurred()) SWIG_fail; | |
40678 | } | |
40679 | resultobj = SWIG_Py_Void(); | |
40680 | return resultobj; | |
40681 | fail: | |
40682 | return NULL; | |
40683 | } | |
40684 | ||
40685 | ||
40686 | SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40687 | PyObject *resultobj = 0; | |
40688 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40689 | wxPoint *arg2 = 0 ; | |
40690 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40691 | bool arg4 = (bool) false ; | |
40692 | wxRect *arg5 = (wxRect *) NULL ; | |
40693 | bool result; | |
40694 | void *argp1 = 0 ; | |
40695 | int res1 = 0 ; | |
40696 | wxPoint temp2 ; | |
40697 | void *argp3 = 0 ; | |
40698 | int res3 = 0 ; | |
40699 | bool val4 ; | |
40700 | int ecode4 = 0 ; | |
40701 | void *argp5 = 0 ; | |
40702 | int res5 = 0 ; | |
40703 | PyObject * obj0 = 0 ; | |
40704 | PyObject * obj1 = 0 ; | |
40705 | PyObject * obj2 = 0 ; | |
40706 | PyObject * obj3 = 0 ; | |
40707 | PyObject * obj4 = 0 ; | |
40708 | char * kwnames[] = { | |
40709 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
40710 | }; | |
40711 | ||
40712 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
40713 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40714 | if (!SWIG_IsOK(res1)) { | |
40715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40716 | } | |
40717 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40718 | { | |
40719 | arg2 = &temp2; | |
40720 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
40721 | } | |
40722 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40723 | if (!SWIG_IsOK(res3)) { | |
40724 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
40725 | } | |
40726 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
40727 | if (obj3) { | |
40728 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
40729 | if (!SWIG_IsOK(ecode4)) { | |
40730 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'"); | |
40731 | } | |
40732 | arg4 = static_cast< bool >(val4); | |
40733 | } | |
40734 | if (obj4) { | |
40735 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 ); | |
40736 | if (!SWIG_IsOK(res5)) { | |
40737 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'"); | |
d55e5bfc | 40738 | } |
1bd55598 RD |
40739 | arg5 = reinterpret_cast< wxRect * >(argp5); |
40740 | } | |
40741 | { | |
40742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40743 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
40744 | wxPyEndAllowThreads(__tstate); | |
40745 | if (PyErr_Occurred()) SWIG_fail; | |
40746 | } | |
40747 | { | |
40748 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40749 | } | |
40750 | return resultobj; | |
40751 | fail: | |
40752 | return NULL; | |
40753 | } | |
40754 | ||
40755 | ||
40756 | SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40757 | PyObject *resultobj = 0; | |
40758 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40759 | wxPoint *arg2 = 0 ; | |
40760 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40761 | wxWindow *arg4 = (wxWindow *) 0 ; | |
40762 | bool result; | |
40763 | void *argp1 = 0 ; | |
40764 | int res1 = 0 ; | |
40765 | wxPoint temp2 ; | |
40766 | void *argp3 = 0 ; | |
40767 | int res3 = 0 ; | |
40768 | void *argp4 = 0 ; | |
40769 | int res4 = 0 ; | |
40770 | PyObject * obj0 = 0 ; | |
40771 | PyObject * obj1 = 0 ; | |
40772 | PyObject * obj2 = 0 ; | |
40773 | PyObject * obj3 = 0 ; | |
40774 | char * kwnames[] = { | |
40775 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
40776 | }; | |
40777 | ||
40778 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
40779 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40780 | if (!SWIG_IsOK(res1)) { | |
40781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40782 | } | |
40783 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40784 | { | |
40785 | arg2 = &temp2; | |
40786 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
40787 | } | |
40788 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40789 | if (!SWIG_IsOK(res3)) { | |
40790 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
40791 | } | |
40792 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
40793 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40794 | if (!SWIG_IsOK(res4)) { | |
40795 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
40796 | } | |
40797 | arg4 = reinterpret_cast< wxWindow * >(argp4); | |
40798 | { | |
40799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40800 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
40801 | wxPyEndAllowThreads(__tstate); | |
40802 | if (PyErr_Occurred()) SWIG_fail; | |
40803 | } | |
40804 | { | |
40805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40806 | } | |
40807 | return resultobj; | |
40808 | fail: | |
40809 | return NULL; | |
d55e5bfc RD |
40810 | } |
40811 | ||
40812 | ||
1bd55598 RD |
40813 | SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40814 | PyObject *resultobj = 0; | |
40815 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40816 | bool result; | |
40817 | void *argp1 = 0 ; | |
40818 | int res1 = 0 ; | |
40819 | PyObject *swig_obj[1] ; | |
40820 | ||
40821 | if (!args) SWIG_fail; | |
40822 | swig_obj[0] = args; | |
40823 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40824 | if (!SWIG_IsOK(res1)) { | |
40825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40826 | } | |
40827 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40828 | { | |
40829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40830 | result = (bool)(arg1)->EndDrag(); | |
40831 | wxPyEndAllowThreads(__tstate); | |
40832 | if (PyErr_Occurred()) SWIG_fail; | |
40833 | } | |
40834 | { | |
40835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40836 | } | |
40837 | return resultobj; | |
40838 | fail: | |
40839 | return NULL; | |
40840 | } | |
40841 | ||
40842 | ||
40843 | SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40844 | PyObject *resultobj = 0; | |
40845 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40846 | wxPoint *arg2 = 0 ; | |
40847 | bool result; | |
40848 | void *argp1 = 0 ; | |
40849 | int res1 = 0 ; | |
40850 | wxPoint temp2 ; | |
40851 | PyObject * obj0 = 0 ; | |
40852 | PyObject * obj1 = 0 ; | |
40853 | char * kwnames[] = { | |
40854 | (char *) "self",(char *) "pt", NULL | |
40855 | }; | |
40856 | ||
40857 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail; | |
40858 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40859 | if (!SWIG_IsOK(res1)) { | |
40860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40861 | } | |
40862 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40863 | { | |
40864 | arg2 = &temp2; | |
40865 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
40866 | } | |
40867 | { | |
40868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40869 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
40870 | wxPyEndAllowThreads(__tstate); | |
40871 | if (PyErr_Occurred()) SWIG_fail; | |
40872 | } | |
40873 | { | |
40874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40875 | } | |
40876 | return resultobj; | |
40877 | fail: | |
40878 | return NULL; | |
d55e5bfc RD |
40879 | } |
40880 | ||
40881 | ||
1bd55598 RD |
40882 | SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40883 | PyObject *resultobj = 0; | |
40884 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40885 | bool result; | |
40886 | void *argp1 = 0 ; | |
40887 | int res1 = 0 ; | |
40888 | PyObject *swig_obj[1] ; | |
40889 | ||
40890 | if (!args) SWIG_fail; | |
40891 | swig_obj[0] = args; | |
40892 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40893 | if (!SWIG_IsOK(res1)) { | |
40894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40895 | } | |
40896 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40897 | { | |
40898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40899 | result = (bool)(arg1)->Show(); | |
40900 | wxPyEndAllowThreads(__tstate); | |
40901 | if (PyErr_Occurred()) SWIG_fail; | |
40902 | } | |
40903 | { | |
40904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40905 | } | |
40906 | return resultobj; | |
40907 | fail: | |
40908 | return NULL; | |
d55e5bfc RD |
40909 | } |
40910 | ||
40911 | ||
1bd55598 RD |
40912 | SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40913 | PyObject *resultobj = 0; | |
40914 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40915 | bool result; | |
40916 | void *argp1 = 0 ; | |
40917 | int res1 = 0 ; | |
40918 | PyObject *swig_obj[1] ; | |
40919 | ||
40920 | if (!args) SWIG_fail; | |
40921 | swig_obj[0] = args; | |
40922 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40923 | if (!SWIG_IsOK(res1)) { | |
40924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40925 | } | |
40926 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40927 | { | |
40928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40929 | result = (bool)(arg1)->Hide(); | |
40930 | wxPyEndAllowThreads(__tstate); | |
40931 | if (PyErr_Occurred()) SWIG_fail; | |
40932 | } | |
40933 | { | |
40934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40935 | } | |
40936 | return resultobj; | |
40937 | fail: | |
40938 | return NULL; | |
40939 | } | |
40940 | ||
40941 | ||
40942 | SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40943 | PyObject *resultobj = 0; | |
40944 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40945 | wxPoint *arg2 = 0 ; | |
40946 | wxRect result; | |
40947 | void *argp1 = 0 ; | |
40948 | int res1 = 0 ; | |
40949 | wxPoint temp2 ; | |
40950 | PyObject * obj0 = 0 ; | |
40951 | PyObject * obj1 = 0 ; | |
40952 | char * kwnames[] = { | |
40953 | (char *) "self",(char *) "pos", NULL | |
40954 | }; | |
40955 | ||
40956 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
40957 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40958 | if (!SWIG_IsOK(res1)) { | |
40959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
40960 | } | |
40961 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40962 | { | |
40963 | arg2 = &temp2; | |
40964 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
40965 | } | |
40966 | { | |
40967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40968 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
40969 | wxPyEndAllowThreads(__tstate); | |
40970 | if (PyErr_Occurred()) SWIG_fail; | |
40971 | } | |
40972 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
40973 | return resultobj; | |
40974 | fail: | |
40975 | return NULL; | |
40976 | } | |
40977 | ||
40978 | ||
40979 | SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40980 | PyObject *resultobj = 0; | |
40981 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40982 | wxDC *arg2 = 0 ; | |
40983 | wxPoint *arg3 = 0 ; | |
40984 | bool result; | |
40985 | void *argp1 = 0 ; | |
40986 | int res1 = 0 ; | |
40987 | void *argp2 = 0 ; | |
40988 | int res2 = 0 ; | |
40989 | wxPoint temp3 ; | |
40990 | PyObject * obj0 = 0 ; | |
40991 | PyObject * obj1 = 0 ; | |
40992 | PyObject * obj2 = 0 ; | |
40993 | char * kwnames[] = { | |
40994 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
40995 | }; | |
40996 | ||
40997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
40998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40999 | if (!SWIG_IsOK(res1)) { | |
41000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
41001 | } | |
41002 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41003 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
41004 | if (!SWIG_IsOK(res2)) { | |
41005 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41006 | } | |
41007 | if (!argp2) { | |
41008 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41009 | } | |
41010 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
41011 | { | |
41012 | arg3 = &temp3; | |
41013 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
41014 | } | |
41015 | { | |
41016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41017 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
41018 | wxPyEndAllowThreads(__tstate); | |
41019 | if (PyErr_Occurred()) SWIG_fail; | |
41020 | } | |
41021 | { | |
41022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41023 | } | |
41024 | return resultobj; | |
41025 | fail: | |
41026 | return NULL; | |
41027 | } | |
41028 | ||
41029 | ||
41030 | SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41031 | PyObject *resultobj = 0; | |
41032 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41033 | wxDC *arg2 = 0 ; | |
41034 | wxMemoryDC *arg3 = 0 ; | |
41035 | wxRect *arg4 = 0 ; | |
41036 | wxRect *arg5 = 0 ; | |
41037 | bool result; | |
41038 | void *argp1 = 0 ; | |
41039 | int res1 = 0 ; | |
41040 | void *argp2 = 0 ; | |
41041 | int res2 = 0 ; | |
41042 | void *argp3 = 0 ; | |
41043 | int res3 = 0 ; | |
41044 | wxRect temp4 ; | |
41045 | wxRect temp5 ; | |
41046 | PyObject * obj0 = 0 ; | |
41047 | PyObject * obj1 = 0 ; | |
41048 | PyObject * obj2 = 0 ; | |
41049 | PyObject * obj3 = 0 ; | |
41050 | PyObject * obj4 = 0 ; | |
41051 | char * kwnames[] = { | |
41052 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
41053 | }; | |
41054 | ||
41055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
41056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41057 | if (!SWIG_IsOK(res1)) { | |
41058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
41059 | } | |
41060 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41061 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
41062 | if (!SWIG_IsOK(res2)) { | |
41063 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41064 | } | |
41065 | if (!argp2) { | |
41066 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41067 | } | |
41068 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
41069 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 ); | |
41070 | if (!SWIG_IsOK(res3)) { | |
41071 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'"); | |
41072 | } | |
41073 | if (!argp3) { | |
41074 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'"); | |
41075 | } | |
41076 | arg3 = reinterpret_cast< wxMemoryDC * >(argp3); | |
41077 | { | |
41078 | arg4 = &temp4; | |
41079 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
41080 | } | |
41081 | { | |
41082 | arg5 = &temp5; | |
41083 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
41084 | } | |
41085 | { | |
41086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41087 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
41088 | wxPyEndAllowThreads(__tstate); | |
41089 | if (PyErr_Occurred()) SWIG_fail; | |
41090 | } | |
41091 | { | |
41092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41093 | } | |
41094 | return resultobj; | |
41095 | fail: | |
41096 | return NULL; | |
41097 | } | |
41098 | ||
41099 | ||
41100 | SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41101 | PyObject *resultobj = 0; | |
41102 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41103 | wxPoint *arg2 = 0 ; | |
41104 | wxPoint *arg3 = 0 ; | |
41105 | bool arg4 ; | |
41106 | bool arg5 ; | |
41107 | bool result; | |
41108 | void *argp1 = 0 ; | |
41109 | int res1 = 0 ; | |
41110 | wxPoint temp2 ; | |
41111 | wxPoint temp3 ; | |
41112 | bool val4 ; | |
41113 | int ecode4 = 0 ; | |
41114 | bool val5 ; | |
41115 | int ecode5 = 0 ; | |
41116 | PyObject * obj0 = 0 ; | |
41117 | PyObject * obj1 = 0 ; | |
41118 | PyObject * obj2 = 0 ; | |
41119 | PyObject * obj3 = 0 ; | |
41120 | PyObject * obj4 = 0 ; | |
41121 | char * kwnames[] = { | |
41122 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
41123 | }; | |
41124 | ||
41125 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
41126 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41127 | if (!SWIG_IsOK(res1)) { | |
41128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
41129 | } | |
41130 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41131 | { | |
41132 | arg2 = &temp2; | |
41133 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
41134 | } | |
41135 | { | |
41136 | arg3 = &temp3; | |
41137 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
41138 | } | |
41139 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
41140 | if (!SWIG_IsOK(ecode4)) { | |
41141 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'"); | |
41142 | } | |
41143 | arg4 = static_cast< bool >(val4); | |
41144 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
41145 | if (!SWIG_IsOK(ecode5)) { | |
41146 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'"); | |
41147 | } | |
41148 | arg5 = static_cast< bool >(val5); | |
41149 | { | |
41150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41151 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
41152 | wxPyEndAllowThreads(__tstate); | |
41153 | if (PyErr_Occurred()) SWIG_fail; | |
41154 | } | |
41155 | { | |
41156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41157 | } | |
41158 | return resultobj; | |
41159 | fail: | |
41160 | return NULL; | |
d55e5bfc RD |
41161 | } |
41162 | ||
41163 | ||
1bd55598 RD |
41164 | SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41165 | PyObject *obj; | |
41166 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
41167 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj)); | |
41168 | return SWIG_Py_Void(); | |
d55e5bfc RD |
41169 | } |
41170 | ||
1bd55598 RD |
41171 | SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41172 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
41173 | } |
41174 | ||
1bd55598 RD |
41175 | SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) { |
41176 | SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only."); | |
41177 | return 1; | |
d55e5bfc RD |
41178 | } |
41179 | ||
41180 | ||
1bd55598 RD |
41181 | SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) { |
41182 | PyObject *pyobj = 0; | |
41183 | ||
41184 | { | |
41185 | #if wxUSE_UNICODE | |
41186 | pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
41187 | #else | |
41188 | pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
41189 | #endif | |
41190 | } | |
41191 | return pyobj; | |
41192 | } | |
41193 | ||
41194 | ||
41195 | SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41196 | PyObject *resultobj = 0; | |
41197 | wxWindow *arg1 = (wxWindow *) 0 ; | |
41198 | int arg2 = (int) -1 ; | |
41199 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; | |
41200 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
41201 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
41202 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
41203 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
41204 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
41205 | long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
41206 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
41207 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
41208 | wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ; | |
41209 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
41210 | wxDatePickerCtrl *result = 0 ; | |
41211 | void *argp1 = 0 ; | |
41212 | int res1 = 0 ; | |
41213 | int val2 ; | |
41214 | int ecode2 = 0 ; | |
41215 | void *argp3 = 0 ; | |
41216 | int res3 = 0 ; | |
41217 | wxPoint temp4 ; | |
41218 | wxSize temp5 ; | |
41219 | long val6 ; | |
41220 | int ecode6 = 0 ; | |
41221 | void *argp7 = 0 ; | |
41222 | int res7 = 0 ; | |
41223 | bool temp8 = false ; | |
41224 | PyObject * obj0 = 0 ; | |
41225 | PyObject * obj1 = 0 ; | |
41226 | PyObject * obj2 = 0 ; | |
41227 | PyObject * obj3 = 0 ; | |
41228 | PyObject * obj4 = 0 ; | |
41229 | PyObject * obj5 = 0 ; | |
41230 | PyObject * obj6 = 0 ; | |
41231 | PyObject * obj7 = 0 ; | |
41232 | char * kwnames[] = { | |
41233 | (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
41234 | }; | |
41235 | ||
41236 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
41237 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41238 | if (!SWIG_IsOK(res1)) { | |
41239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
41240 | } | |
41241 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
41242 | if (obj1) { | |
41243 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
41244 | if (!SWIG_IsOK(ecode2)) { | |
41245 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
41246 | } | |
41247 | arg2 = static_cast< int >(val2); | |
41248 | } | |
41249 | if (obj2) { | |
41250 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41251 | if (!SWIG_IsOK(res3)) { | |
41252 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
d55e5bfc | 41253 | } |
1bd55598 RD |
41254 | if (!argp3) { |
41255 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
d55e5bfc | 41256 | } |
1bd55598 RD |
41257 | arg3 = reinterpret_cast< wxDateTime * >(argp3); |
41258 | } | |
41259 | if (obj3) { | |
36ed4f51 | 41260 | { |
1bd55598 RD |
41261 | arg4 = &temp4; |
41262 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 41263 | } |
1bd55598 RD |
41264 | } |
41265 | if (obj4) { | |
d55e5bfc | 41266 | { |
1bd55598 RD |
41267 | arg5 = &temp5; |
41268 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 41269 | } |
1bd55598 RD |
41270 | } |
41271 | if (obj5) { | |
41272 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
41273 | if (!SWIG_IsOK(ecode6)) { | |
41274 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'"); | |
41275 | } | |
41276 | arg6 = static_cast< long >(val6); | |
41277 | } | |
41278 | if (obj6) { | |
41279 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
41280 | if (!SWIG_IsOK(res7)) { | |
41281 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 41282 | } |
1bd55598 RD |
41283 | if (!argp7) { |
41284 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 41285 | } |
1bd55598 RD |
41286 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
41287 | } | |
41288 | if (obj7) { | |
36ed4f51 | 41289 | { |
1bd55598 RD |
41290 | arg8 = wxString_in_helper(obj7); |
41291 | if (arg8 == NULL) SWIG_fail; | |
41292 | temp8 = true; | |
36ed4f51 | 41293 | } |
1bd55598 RD |
41294 | } |
41295 | { | |
41296 | if (!wxPyCheckForApp()) SWIG_fail; | |
41297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41298 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
41299 | wxPyEndAllowThreads(__tstate); | |
41300 | if (PyErr_Occurred()) SWIG_fail; | |
41301 | } | |
41302 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 ); | |
41303 | { | |
41304 | if (temp8) | |
41305 | delete arg8; | |
41306 | } | |
41307 | return resultobj; | |
41308 | fail: | |
41309 | { | |
41310 | if (temp8) | |
41311 | delete arg8; | |
41312 | } | |
41313 | return NULL; | |
d55e5bfc RD |
41314 | } |
41315 | ||
41316 | ||
1bd55598 RD |
41317 | SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41318 | PyObject *resultobj = 0; | |
41319 | wxDatePickerCtrl *result = 0 ; | |
41320 | ||
41321 | if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail; | |
41322 | { | |
41323 | if (!wxPyCheckForApp()) SWIG_fail; | |
41324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41325 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(); | |
41326 | wxPyEndAllowThreads(__tstate); | |
41327 | if (PyErr_Occurred()) SWIG_fail; | |
41328 | } | |
41329 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 ); | |
41330 | return resultobj; | |
41331 | fail: | |
41332 | return NULL; | |
41333 | } | |
41334 | ||
41335 | ||
41336 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41337 | PyObject *resultobj = 0; | |
41338 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41339 | wxWindow *arg2 = (wxWindow *) 0 ; | |
41340 | int arg3 = (int) -1 ; | |
41341 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
41342 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
41343 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
41344 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
41345 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
41346 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
41347 | long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
41348 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
41349 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
41350 | wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ; | |
41351 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
41352 | bool result; | |
41353 | void *argp1 = 0 ; | |
41354 | int res1 = 0 ; | |
41355 | void *argp2 = 0 ; | |
41356 | int res2 = 0 ; | |
41357 | int val3 ; | |
41358 | int ecode3 = 0 ; | |
41359 | void *argp4 = 0 ; | |
41360 | int res4 = 0 ; | |
41361 | wxPoint temp5 ; | |
41362 | wxSize temp6 ; | |
41363 | long val7 ; | |
41364 | int ecode7 = 0 ; | |
41365 | void *argp8 = 0 ; | |
41366 | int res8 = 0 ; | |
41367 | bool temp9 = false ; | |
41368 | PyObject * obj0 = 0 ; | |
41369 | PyObject * obj1 = 0 ; | |
41370 | PyObject * obj2 = 0 ; | |
41371 | PyObject * obj3 = 0 ; | |
41372 | PyObject * obj4 = 0 ; | |
41373 | PyObject * obj5 = 0 ; | |
41374 | PyObject * obj6 = 0 ; | |
41375 | PyObject * obj7 = 0 ; | |
41376 | PyObject * obj8 = 0 ; | |
41377 | char * kwnames[] = { | |
41378 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
41379 | }; | |
41380 | ||
41381 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
41382 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41383 | if (!SWIG_IsOK(res1)) { | |
41384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41385 | } | |
41386 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41387 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41388 | if (!SWIG_IsOK(res2)) { | |
41389 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
41390 | } | |
41391 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
41392 | if (obj2) { | |
41393 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
41394 | if (!SWIG_IsOK(ecode3)) { | |
41395 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
41396 | } | |
41397 | arg3 = static_cast< int >(val3); | |
41398 | } | |
41399 | if (obj3) { | |
41400 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41401 | if (!SWIG_IsOK(res4)) { | |
41402 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'"); | |
36ed4f51 | 41403 | } |
1bd55598 RD |
41404 | if (!argp4) { |
41405 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'"); | |
d55e5bfc | 41406 | } |
1bd55598 RD |
41407 | arg4 = reinterpret_cast< wxDateTime * >(argp4); |
41408 | } | |
41409 | if (obj4) { | |
d55e5bfc | 41410 | { |
1bd55598 RD |
41411 | arg5 = &temp5; |
41412 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 41413 | } |
1bd55598 RD |
41414 | } |
41415 | if (obj5) { | |
d55e5bfc | 41416 | { |
1bd55598 RD |
41417 | arg6 = &temp6; |
41418 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 41419 | } |
1bd55598 RD |
41420 | } |
41421 | if (obj6) { | |
41422 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
41423 | if (!SWIG_IsOK(ecode7)) { | |
41424 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
41425 | } | |
41426 | arg7 = static_cast< long >(val7); | |
41427 | } | |
41428 | if (obj7) { | |
41429 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
41430 | if (!SWIG_IsOK(res8)) { | |
41431 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 41432 | } |
1bd55598 RD |
41433 | if (!argp8) { |
41434 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 41435 | } |
1bd55598 RD |
41436 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
41437 | } | |
41438 | if (obj8) { | |
36ed4f51 | 41439 | { |
1bd55598 RD |
41440 | arg9 = wxString_in_helper(obj8); |
41441 | if (arg9 == NULL) SWIG_fail; | |
41442 | temp9 = true; | |
36ed4f51 | 41443 | } |
1bd55598 RD |
41444 | } |
41445 | { | |
41446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41447 | result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
41448 | wxPyEndAllowThreads(__tstate); | |
41449 | if (PyErr_Occurred()) SWIG_fail; | |
41450 | } | |
41451 | { | |
41452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41453 | } | |
41454 | { | |
41455 | if (temp9) | |
41456 | delete arg9; | |
41457 | } | |
41458 | return resultobj; | |
41459 | fail: | |
41460 | { | |
41461 | if (temp9) | |
41462 | delete arg9; | |
41463 | } | |
41464 | return NULL; | |
41465 | } | |
41466 | ||
41467 | ||
41468 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41469 | PyObject *resultobj = 0; | |
41470 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41471 | wxDateTime *arg2 = 0 ; | |
41472 | void *argp1 = 0 ; | |
41473 | int res1 = 0 ; | |
41474 | void *argp2 = 0 ; | |
41475 | int res2 = 0 ; | |
41476 | PyObject * obj0 = 0 ; | |
41477 | PyObject * obj1 = 0 ; | |
41478 | char * kwnames[] = { | |
41479 | (char *) "self",(char *) "dt", NULL | |
41480 | }; | |
41481 | ||
41482 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
41483 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41484 | if (!SWIG_IsOK(res1)) { | |
41485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41486 | } | |
41487 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41488 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41489 | if (!SWIG_IsOK(res2)) { | |
41490 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41491 | } | |
41492 | if (!argp2) { | |
41493 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41494 | } | |
41495 | arg2 = reinterpret_cast< wxDateTime * >(argp2); | |
41496 | { | |
41497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41498 | (arg1)->SetValue((wxDateTime const &)*arg2); | |
41499 | wxPyEndAllowThreads(__tstate); | |
41500 | if (PyErr_Occurred()) SWIG_fail; | |
41501 | } | |
41502 | resultobj = SWIG_Py_Void(); | |
41503 | return resultobj; | |
41504 | fail: | |
41505 | return NULL; | |
d55e5bfc RD |
41506 | } |
41507 | ||
41508 | ||
1bd55598 RD |
41509 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41510 | PyObject *resultobj = 0; | |
41511 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41512 | wxDateTime result; | |
41513 | void *argp1 = 0 ; | |
41514 | int res1 = 0 ; | |
41515 | PyObject *swig_obj[1] ; | |
41516 | ||
41517 | if (!args) SWIG_fail; | |
41518 | swig_obj[0] = args; | |
41519 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41520 | if (!SWIG_IsOK(res1)) { | |
41521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'"); | |
41522 | } | |
41523 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41524 | { | |
41525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41526 | result = ((wxDatePickerCtrl const *)arg1)->GetValue(); | |
41527 | wxPyEndAllowThreads(__tstate); | |
41528 | if (PyErr_Occurred()) SWIG_fail; | |
41529 | } | |
41530 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
41531 | return resultobj; | |
41532 | fail: | |
41533 | return NULL; | |
41534 | } | |
41535 | ||
41536 | ||
41537 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41538 | PyObject *resultobj = 0; | |
41539 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41540 | wxDateTime *arg2 = 0 ; | |
41541 | wxDateTime *arg3 = 0 ; | |
41542 | void *argp1 = 0 ; | |
41543 | int res1 = 0 ; | |
41544 | void *argp2 = 0 ; | |
41545 | int res2 = 0 ; | |
41546 | void *argp3 = 0 ; | |
41547 | int res3 = 0 ; | |
41548 | PyObject * obj0 = 0 ; | |
41549 | PyObject * obj1 = 0 ; | |
41550 | PyObject * obj2 = 0 ; | |
41551 | char * kwnames[] = { | |
41552 | (char *) "self",(char *) "dt1",(char *) "dt2", NULL | |
41553 | }; | |
41554 | ||
41555 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
41556 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41557 | if (!SWIG_IsOK(res1)) { | |
41558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41559 | } | |
41560 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41561 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41562 | if (!SWIG_IsOK(res2)) { | |
41563 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41564 | } | |
41565 | if (!argp2) { | |
41566 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41567 | } | |
41568 | arg2 = reinterpret_cast< wxDateTime * >(argp2); | |
41569 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41570 | if (!SWIG_IsOK(res3)) { | |
41571 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
41572 | } | |
41573 | if (!argp3) { | |
41574 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
41575 | } | |
41576 | arg3 = reinterpret_cast< wxDateTime * >(argp3); | |
41577 | { | |
41578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41579 | (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
41580 | wxPyEndAllowThreads(__tstate); | |
41581 | if (PyErr_Occurred()) SWIG_fail; | |
41582 | } | |
41583 | resultobj = SWIG_Py_Void(); | |
41584 | return resultobj; | |
41585 | fail: | |
41586 | return NULL; | |
d55e5bfc RD |
41587 | } |
41588 | ||
41589 | ||
1bd55598 RD |
41590 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41591 | PyObject *resultobj = 0; | |
41592 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41593 | wxDateTime result; | |
41594 | void *argp1 = 0 ; | |
41595 | int res1 = 0 ; | |
41596 | PyObject *swig_obj[1] ; | |
41597 | ||
41598 | if (!args) SWIG_fail; | |
41599 | swig_obj[0] = args; | |
41600 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41601 | if (!SWIG_IsOK(res1)) { | |
41602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41603 | } | |
41604 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41605 | { | |
41606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41607 | result = wxDatePickerCtrl_GetLowerLimit(arg1); | |
41608 | wxPyEndAllowThreads(__tstate); | |
41609 | if (PyErr_Occurred()) SWIG_fail; | |
41610 | } | |
41611 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
41612 | return resultobj; | |
41613 | fail: | |
41614 | return NULL; | |
d55e5bfc RD |
41615 | } |
41616 | ||
41617 | ||
1bd55598 RD |
41618 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41619 | PyObject *resultobj = 0; | |
41620 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41621 | wxDateTime result; | |
41622 | void *argp1 = 0 ; | |
41623 | int res1 = 0 ; | |
41624 | PyObject *swig_obj[1] ; | |
41625 | ||
41626 | if (!args) SWIG_fail; | |
41627 | swig_obj[0] = args; | |
41628 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41629 | if (!SWIG_IsOK(res1)) { | |
41630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41631 | } | |
41632 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41633 | { | |
41634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41635 | result = wxDatePickerCtrl_GetUpperLimit(arg1); | |
41636 | wxPyEndAllowThreads(__tstate); | |
41637 | if (PyErr_Occurred()) SWIG_fail; | |
41638 | } | |
41639 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
41640 | return resultobj; | |
41641 | fail: | |
41642 | return NULL; | |
d55e5bfc RD |
41643 | } |
41644 | ||
41645 | ||
1bd55598 RD |
41646 | SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41647 | PyObject *obj; | |
41648 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
41649 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj)); | |
41650 | return SWIG_Py_Void(); | |
d55e5bfc RD |
41651 | } |
41652 | ||
1bd55598 RD |
41653 | SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41654 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
41655 | } |
41656 | ||
704eda0c RD |
41657 | SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) { |
41658 | SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only."); | |
41659 | return 1; | |
41660 | } | |
41661 | ||
41662 | ||
41663 | SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) { | |
41664 | PyObject *pyobj = 0; | |
41665 | ||
41666 | { | |
41667 | #if wxUSE_UNICODE | |
41668 | pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len()); | |
41669 | #else | |
41670 | pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len()); | |
41671 | #endif | |
41672 | } | |
41673 | return pyobj; | |
41674 | } | |
41675 | ||
41676 | ||
41677 | SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41678 | PyObject *resultobj = 0; | |
41679 | wxWindow *arg1 = (wxWindow *) 0 ; | |
41680 | int arg2 ; | |
41681 | wxString *arg3 = 0 ; | |
41682 | wxString *arg4 = 0 ; | |
41683 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
41684 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
41685 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
41686 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
41687 | long arg7 = (long) wxHL_DEFAULT_STYLE ; | |
41688 | wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ; | |
41689 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
41690 | wxHyperlinkCtrl *result = 0 ; | |
41691 | void *argp1 = 0 ; | |
41692 | int res1 = 0 ; | |
41693 | int val2 ; | |
41694 | int ecode2 = 0 ; | |
41695 | bool temp3 = false ; | |
41696 | bool temp4 = false ; | |
41697 | wxPoint temp5 ; | |
41698 | wxSize temp6 ; | |
41699 | long val7 ; | |
41700 | int ecode7 = 0 ; | |
41701 | bool temp8 = false ; | |
41702 | PyObject * obj0 = 0 ; | |
41703 | PyObject * obj1 = 0 ; | |
41704 | PyObject * obj2 = 0 ; | |
41705 | PyObject * obj3 = 0 ; | |
41706 | PyObject * obj4 = 0 ; | |
41707 | PyObject * obj5 = 0 ; | |
41708 | PyObject * obj6 = 0 ; | |
41709 | PyObject * obj7 = 0 ; | |
41710 | char * kwnames[] = { | |
41711 | (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
41712 | }; | |
41713 | ||
41714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
41715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41716 | if (!SWIG_IsOK(res1)) { | |
41717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
41718 | } | |
41719 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
41720 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
41721 | if (!SWIG_IsOK(ecode2)) { | |
41722 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'"); | |
41723 | } | |
41724 | arg2 = static_cast< int >(val2); | |
41725 | { | |
41726 | arg3 = wxString_in_helper(obj2); | |
41727 | if (arg3 == NULL) SWIG_fail; | |
41728 | temp3 = true; | |
41729 | } | |
41730 | { | |
41731 | arg4 = wxString_in_helper(obj3); | |
41732 | if (arg4 == NULL) SWIG_fail; | |
41733 | temp4 = true; | |
41734 | } | |
41735 | if (obj4) { | |
41736 | { | |
41737 | arg5 = &temp5; | |
41738 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
41739 | } | |
41740 | } | |
41741 | if (obj5) { | |
41742 | { | |
41743 | arg6 = &temp6; | |
41744 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
41745 | } | |
41746 | } | |
41747 | if (obj6) { | |
41748 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
41749 | if (!SWIG_IsOK(ecode7)) { | |
41750 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'"); | |
41751 | } | |
41752 | arg7 = static_cast< long >(val7); | |
41753 | } | |
41754 | if (obj7) { | |
41755 | { | |
41756 | arg8 = wxString_in_helper(obj7); | |
41757 | if (arg8 == NULL) SWIG_fail; | |
41758 | temp8 = true; | |
41759 | } | |
41760 | } | |
41761 | { | |
41762 | if (!wxPyCheckForApp()) SWIG_fail; | |
41763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41764 | result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
41765 | wxPyEndAllowThreads(__tstate); | |
41766 | if (PyErr_Occurred()) SWIG_fail; | |
41767 | } | |
41768 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 ); | |
41769 | { | |
41770 | if (temp3) | |
41771 | delete arg3; | |
41772 | } | |
41773 | { | |
41774 | if (temp4) | |
41775 | delete arg4; | |
41776 | } | |
41777 | { | |
41778 | if (temp8) | |
41779 | delete arg8; | |
41780 | } | |
41781 | return resultobj; | |
41782 | fail: | |
41783 | { | |
41784 | if (temp3) | |
41785 | delete arg3; | |
41786 | } | |
41787 | { | |
41788 | if (temp4) | |
41789 | delete arg4; | |
41790 | } | |
41791 | { | |
41792 | if (temp8) | |
41793 | delete arg8; | |
41794 | } | |
41795 | return NULL; | |
41796 | } | |
41797 | ||
41798 | ||
41799 | SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
41800 | PyObject *resultobj = 0; | |
41801 | wxHyperlinkCtrl *result = 0 ; | |
41802 | ||
41803 | if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail; | |
41804 | { | |
41805 | if (!wxPyCheckForApp()) SWIG_fail; | |
41806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41807 | result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(); | |
41808 | wxPyEndAllowThreads(__tstate); | |
41809 | if (PyErr_Occurred()) SWIG_fail; | |
41810 | } | |
41811 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 ); | |
41812 | return resultobj; | |
41813 | fail: | |
41814 | return NULL; | |
41815 | } | |
41816 | ||
41817 | ||
41818 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41819 | PyObject *resultobj = 0; | |
41820 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
41821 | wxWindow *arg2 = (wxWindow *) 0 ; | |
41822 | int arg3 ; | |
41823 | wxString *arg4 = 0 ; | |
41824 | wxString *arg5 = 0 ; | |
41825 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
41826 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
41827 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
41828 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
41829 | long arg8 = (long) wxHL_DEFAULT_STYLE ; | |
41830 | wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ; | |
41831 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
41832 | bool result; | |
41833 | void *argp1 = 0 ; | |
41834 | int res1 = 0 ; | |
41835 | void *argp2 = 0 ; | |
41836 | int res2 = 0 ; | |
41837 | int val3 ; | |
41838 | int ecode3 = 0 ; | |
41839 | bool temp4 = false ; | |
41840 | bool temp5 = false ; | |
41841 | wxPoint temp6 ; | |
41842 | wxSize temp7 ; | |
41843 | long val8 ; | |
41844 | int ecode8 = 0 ; | |
41845 | bool temp9 = false ; | |
41846 | PyObject * obj0 = 0 ; | |
41847 | PyObject * obj1 = 0 ; | |
41848 | PyObject * obj2 = 0 ; | |
41849 | PyObject * obj3 = 0 ; | |
41850 | PyObject * obj4 = 0 ; | |
41851 | PyObject * obj5 = 0 ; | |
41852 | PyObject * obj6 = 0 ; | |
41853 | PyObject * obj7 = 0 ; | |
41854 | PyObject * obj8 = 0 ; | |
41855 | char * kwnames[] = { | |
41856 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
41857 | }; | |
41858 | ||
41859 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
41860 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
41861 | if (!SWIG_IsOK(res1)) { | |
41862 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
41863 | } | |
41864 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
41865 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41866 | if (!SWIG_IsOK(res2)) { | |
41867 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
41868 | } | |
41869 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
41870 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
41871 | if (!SWIG_IsOK(ecode3)) { | |
41872 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
41873 | } | |
41874 | arg3 = static_cast< int >(val3); | |
41875 | { | |
41876 | arg4 = wxString_in_helper(obj3); | |
41877 | if (arg4 == NULL) SWIG_fail; | |
41878 | temp4 = true; | |
41879 | } | |
41880 | { | |
41881 | arg5 = wxString_in_helper(obj4); | |
41882 | if (arg5 == NULL) SWIG_fail; | |
41883 | temp5 = true; | |
41884 | } | |
41885 | if (obj5) { | |
41886 | { | |
41887 | arg6 = &temp6; | |
41888 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
41889 | } | |
41890 | } | |
41891 | if (obj6) { | |
41892 | { | |
41893 | arg7 = &temp7; | |
41894 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
41895 | } | |
41896 | } | |
41897 | if (obj7) { | |
41898 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
41899 | if (!SWIG_IsOK(ecode8)) { | |
41900 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'"); | |
41901 | } | |
41902 | arg8 = static_cast< long >(val8); | |
41903 | } | |
41904 | if (obj8) { | |
41905 | { | |
41906 | arg9 = wxString_in_helper(obj8); | |
41907 | if (arg9 == NULL) SWIG_fail; | |
41908 | temp9 = true; | |
41909 | } | |
41910 | } | |
41911 | { | |
41912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41913 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9); | |
41914 | wxPyEndAllowThreads(__tstate); | |
41915 | if (PyErr_Occurred()) SWIG_fail; | |
41916 | } | |
41917 | { | |
41918 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41919 | } | |
41920 | { | |
41921 | if (temp4) | |
41922 | delete arg4; | |
41923 | } | |
41924 | { | |
41925 | if (temp5) | |
41926 | delete arg5; | |
41927 | } | |
41928 | { | |
41929 | if (temp9) | |
41930 | delete arg9; | |
41931 | } | |
41932 | return resultobj; | |
41933 | fail: | |
41934 | { | |
41935 | if (temp4) | |
41936 | delete arg4; | |
41937 | } | |
41938 | { | |
41939 | if (temp5) | |
41940 | delete arg5; | |
41941 | } | |
41942 | { | |
41943 | if (temp9) | |
41944 | delete arg9; | |
41945 | } | |
41946 | return NULL; | |
41947 | } | |
41948 | ||
41949 | ||
41950 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
41951 | PyObject *resultobj = 0; | |
41952 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
41953 | wxColour result; | |
41954 | void *argp1 = 0 ; | |
41955 | int res1 = 0 ; | |
41956 | PyObject *swig_obj[1] ; | |
41957 | ||
41958 | if (!args) SWIG_fail; | |
41959 | swig_obj[0] = args; | |
41960 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
41961 | if (!SWIG_IsOK(res1)) { | |
41962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
41963 | } | |
41964 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
41965 | { | |
41966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41967 | result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour(); | |
41968 | wxPyEndAllowThreads(__tstate); | |
41969 | if (PyErr_Occurred()) SWIG_fail; | |
41970 | } | |
41971 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
41972 | return resultobj; | |
41973 | fail: | |
41974 | return NULL; | |
41975 | } | |
41976 | ||
41977 | ||
41978 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41979 | PyObject *resultobj = 0; | |
41980 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
41981 | wxColour *arg2 = 0 ; | |
41982 | void *argp1 = 0 ; | |
41983 | int res1 = 0 ; | |
41984 | wxColour temp2 ; | |
41985 | PyObject * obj0 = 0 ; | |
41986 | PyObject * obj1 = 0 ; | |
41987 | char * kwnames[] = { | |
41988 | (char *) "self",(char *) "colour", NULL | |
41989 | }; | |
41990 | ||
41991 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
41992 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
41993 | if (!SWIG_IsOK(res1)) { | |
41994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
41995 | } | |
41996 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
41997 | { | |
41998 | arg2 = &temp2; | |
41999 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
42000 | } | |
42001 | { | |
42002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42003 | (arg1)->SetHoverColour((wxColour const &)*arg2); | |
42004 | wxPyEndAllowThreads(__tstate); | |
42005 | if (PyErr_Occurred()) SWIG_fail; | |
42006 | } | |
42007 | resultobj = SWIG_Py_Void(); | |
42008 | return resultobj; | |
42009 | fail: | |
42010 | return NULL; | |
42011 | } | |
42012 | ||
42013 | ||
42014 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42015 | PyObject *resultobj = 0; | |
42016 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42017 | wxColour result; | |
42018 | void *argp1 = 0 ; | |
42019 | int res1 = 0 ; | |
42020 | PyObject *swig_obj[1] ; | |
42021 | ||
42022 | if (!args) SWIG_fail; | |
42023 | swig_obj[0] = args; | |
42024 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42025 | if (!SWIG_IsOK(res1)) { | |
42026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42027 | } | |
42028 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42029 | { | |
42030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42031 | result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour(); | |
42032 | wxPyEndAllowThreads(__tstate); | |
42033 | if (PyErr_Occurred()) SWIG_fail; | |
42034 | } | |
42035 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
42036 | return resultobj; | |
42037 | fail: | |
42038 | return NULL; | |
42039 | } | |
42040 | ||
42041 | ||
42042 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42043 | PyObject *resultobj = 0; | |
42044 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42045 | wxColour *arg2 = 0 ; | |
42046 | void *argp1 = 0 ; | |
42047 | int res1 = 0 ; | |
42048 | wxColour temp2 ; | |
42049 | PyObject * obj0 = 0 ; | |
42050 | PyObject * obj1 = 0 ; | |
42051 | char * kwnames[] = { | |
42052 | (char *) "self",(char *) "colour", NULL | |
42053 | }; | |
42054 | ||
42055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
42056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42057 | if (!SWIG_IsOK(res1)) { | |
42058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42059 | } | |
42060 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42061 | { | |
42062 | arg2 = &temp2; | |
42063 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
42064 | } | |
42065 | { | |
42066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42067 | (arg1)->SetNormalColour((wxColour const &)*arg2); | |
42068 | wxPyEndAllowThreads(__tstate); | |
42069 | if (PyErr_Occurred()) SWIG_fail; | |
42070 | } | |
42071 | resultobj = SWIG_Py_Void(); | |
42072 | return resultobj; | |
42073 | fail: | |
42074 | return NULL; | |
42075 | } | |
42076 | ||
42077 | ||
42078 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42079 | PyObject *resultobj = 0; | |
42080 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42081 | wxColour result; | |
42082 | void *argp1 = 0 ; | |
42083 | int res1 = 0 ; | |
42084 | PyObject *swig_obj[1] ; | |
42085 | ||
42086 | if (!args) SWIG_fail; | |
42087 | swig_obj[0] = args; | |
42088 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42089 | if (!SWIG_IsOK(res1)) { | |
42090 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42091 | } | |
42092 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42093 | { | |
42094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42095 | result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour(); | |
42096 | wxPyEndAllowThreads(__tstate); | |
42097 | if (PyErr_Occurred()) SWIG_fail; | |
42098 | } | |
42099 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
42100 | return resultobj; | |
42101 | fail: | |
42102 | return NULL; | |
42103 | } | |
42104 | ||
42105 | ||
42106 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42107 | PyObject *resultobj = 0; | |
42108 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42109 | wxColour *arg2 = 0 ; | |
42110 | void *argp1 = 0 ; | |
42111 | int res1 = 0 ; | |
42112 | wxColour temp2 ; | |
42113 | PyObject * obj0 = 0 ; | |
42114 | PyObject * obj1 = 0 ; | |
42115 | char * kwnames[] = { | |
42116 | (char *) "self",(char *) "colour", NULL | |
42117 | }; | |
42118 | ||
42119 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
42120 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42121 | if (!SWIG_IsOK(res1)) { | |
42122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42123 | } | |
42124 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42125 | { | |
42126 | arg2 = &temp2; | |
42127 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
42128 | } | |
42129 | { | |
42130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42131 | (arg1)->SetVisitedColour((wxColour const &)*arg2); | |
42132 | wxPyEndAllowThreads(__tstate); | |
42133 | if (PyErr_Occurred()) SWIG_fail; | |
42134 | } | |
42135 | resultobj = SWIG_Py_Void(); | |
42136 | return resultobj; | |
42137 | fail: | |
42138 | return NULL; | |
42139 | } | |
42140 | ||
42141 | ||
42142 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42143 | PyObject *resultobj = 0; | |
42144 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42145 | wxString result; | |
42146 | void *argp1 = 0 ; | |
42147 | int res1 = 0 ; | |
42148 | PyObject *swig_obj[1] ; | |
42149 | ||
42150 | if (!args) SWIG_fail; | |
42151 | swig_obj[0] = args; | |
42152 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42153 | if (!SWIG_IsOK(res1)) { | |
42154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42155 | } | |
42156 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42157 | { | |
42158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42159 | result = ((wxHyperlinkCtrl const *)arg1)->GetURL(); | |
42160 | wxPyEndAllowThreads(__tstate); | |
42161 | if (PyErr_Occurred()) SWIG_fail; | |
42162 | } | |
42163 | { | |
42164 | #if wxUSE_UNICODE | |
42165 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
42166 | #else | |
42167 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
42168 | #endif | |
42169 | } | |
42170 | return resultobj; | |
42171 | fail: | |
42172 | return NULL; | |
42173 | } | |
42174 | ||
42175 | ||
42176 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42177 | PyObject *resultobj = 0; | |
42178 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42179 | wxString *arg2 = 0 ; | |
42180 | void *argp1 = 0 ; | |
42181 | int res1 = 0 ; | |
42182 | bool temp2 = false ; | |
42183 | PyObject * obj0 = 0 ; | |
42184 | PyObject * obj1 = 0 ; | |
42185 | char * kwnames[] = { | |
42186 | (char *) "self",(char *) "url", NULL | |
42187 | }; | |
42188 | ||
42189 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail; | |
42190 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42191 | if (!SWIG_IsOK(res1)) { | |
42192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42193 | } | |
42194 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42195 | { | |
42196 | arg2 = wxString_in_helper(obj1); | |
42197 | if (arg2 == NULL) SWIG_fail; | |
42198 | temp2 = true; | |
42199 | } | |
42200 | { | |
42201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42202 | (arg1)->SetURL((wxString const &)*arg2); | |
42203 | wxPyEndAllowThreads(__tstate); | |
42204 | if (PyErr_Occurred()) SWIG_fail; | |
42205 | } | |
42206 | resultobj = SWIG_Py_Void(); | |
42207 | { | |
42208 | if (temp2) | |
42209 | delete arg2; | |
42210 | } | |
42211 | return resultobj; | |
42212 | fail: | |
42213 | { | |
42214 | if (temp2) | |
42215 | delete arg2; | |
42216 | } | |
42217 | return NULL; | |
42218 | } | |
42219 | ||
42220 | ||
42221 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42222 | PyObject *resultobj = 0; | |
42223 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42224 | bool arg2 = (bool) true ; | |
42225 | void *argp1 = 0 ; | |
42226 | int res1 = 0 ; | |
42227 | bool val2 ; | |
42228 | int ecode2 = 0 ; | |
42229 | PyObject * obj0 = 0 ; | |
42230 | PyObject * obj1 = 0 ; | |
42231 | char * kwnames[] = { | |
42232 | (char *) "self",(char *) "visited", NULL | |
42233 | }; | |
42234 | ||
42235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail; | |
42236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42237 | if (!SWIG_IsOK(res1)) { | |
42238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42239 | } | |
42240 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42241 | if (obj1) { | |
42242 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
42243 | if (!SWIG_IsOK(ecode2)) { | |
42244 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'"); | |
42245 | } | |
42246 | arg2 = static_cast< bool >(val2); | |
42247 | } | |
42248 | { | |
42249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42250 | (arg1)->SetVisited(arg2); | |
42251 | wxPyEndAllowThreads(__tstate); | |
42252 | if (PyErr_Occurred()) SWIG_fail; | |
42253 | } | |
42254 | resultobj = SWIG_Py_Void(); | |
42255 | return resultobj; | |
42256 | fail: | |
42257 | return NULL; | |
42258 | } | |
42259 | ||
42260 | ||
42261 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42262 | PyObject *resultobj = 0; | |
42263 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42264 | bool result; | |
42265 | void *argp1 = 0 ; | |
42266 | int res1 = 0 ; | |
42267 | PyObject *swig_obj[1] ; | |
42268 | ||
42269 | if (!args) SWIG_fail; | |
42270 | swig_obj[0] = args; | |
42271 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42272 | if (!SWIG_IsOK(res1)) { | |
42273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42274 | } | |
42275 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42276 | { | |
42277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42278 | result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited(); | |
42279 | wxPyEndAllowThreads(__tstate); | |
42280 | if (PyErr_Occurred()) SWIG_fail; | |
42281 | } | |
42282 | { | |
42283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42284 | } | |
42285 | return resultobj; | |
42286 | fail: | |
42287 | return NULL; | |
42288 | } | |
42289 | ||
42290 | ||
42291 | SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42292 | PyObject *obj; | |
42293 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
42294 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj)); | |
42295 | return SWIG_Py_Void(); | |
42296 | } | |
42297 | ||
42298 | SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42299 | return SWIG_Python_InitShadowInstance(args); | |
42300 | } | |
42301 | ||
42302 | SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42303 | PyObject *resultobj = 0; | |
42304 | wxObject *arg1 = (wxObject *) 0 ; | |
42305 | int arg2 ; | |
42306 | wxString *arg3 = 0 ; | |
42307 | wxHyperlinkEvent *result = 0 ; | |
42308 | void *argp1 = 0 ; | |
42309 | int res1 = 0 ; | |
42310 | int val2 ; | |
42311 | int ecode2 = 0 ; | |
42312 | bool temp3 = false ; | |
42313 | PyObject * obj0 = 0 ; | |
42314 | PyObject * obj1 = 0 ; | |
42315 | PyObject * obj2 = 0 ; | |
42316 | char * kwnames[] = { | |
42317 | (char *) "generator",(char *) "id",(char *) "url", NULL | |
42318 | }; | |
42319 | ||
42320 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
42321 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 ); | |
42322 | if (!SWIG_IsOK(res1)) { | |
42323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'"); | |
42324 | } | |
42325 | arg1 = reinterpret_cast< wxObject * >(argp1); | |
42326 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42327 | if (!SWIG_IsOK(ecode2)) { | |
42328 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'"); | |
42329 | } | |
42330 | arg2 = static_cast< int >(val2); | |
42331 | { | |
42332 | arg3 = wxString_in_helper(obj2); | |
42333 | if (arg3 == NULL) SWIG_fail; | |
42334 | temp3 = true; | |
42335 | } | |
42336 | { | |
42337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42338 | result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3); | |
42339 | wxPyEndAllowThreads(__tstate); | |
42340 | if (PyErr_Occurred()) SWIG_fail; | |
42341 | } | |
42342 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 ); | |
42343 | { | |
42344 | if (temp3) | |
42345 | delete arg3; | |
42346 | } | |
42347 | return resultobj; | |
42348 | fail: | |
42349 | { | |
42350 | if (temp3) | |
42351 | delete arg3; | |
42352 | } | |
42353 | return NULL; | |
42354 | } | |
42355 | ||
42356 | ||
42357 | SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42358 | PyObject *resultobj = 0; | |
42359 | wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ; | |
42360 | wxString result; | |
42361 | void *argp1 = 0 ; | |
42362 | int res1 = 0 ; | |
42363 | PyObject *swig_obj[1] ; | |
42364 | ||
42365 | if (!args) SWIG_fail; | |
42366 | swig_obj[0] = args; | |
42367 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 ); | |
42368 | if (!SWIG_IsOK(res1)) { | |
42369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'"); | |
42370 | } | |
42371 | arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1); | |
42372 | { | |
42373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42374 | result = ((wxHyperlinkEvent const *)arg1)->GetURL(); | |
42375 | wxPyEndAllowThreads(__tstate); | |
42376 | if (PyErr_Occurred()) SWIG_fail; | |
42377 | } | |
42378 | { | |
42379 | #if wxUSE_UNICODE | |
42380 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
42381 | #else | |
42382 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
42383 | #endif | |
42384 | } | |
42385 | return resultobj; | |
42386 | fail: | |
42387 | return NULL; | |
42388 | } | |
42389 | ||
42390 | ||
42391 | SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42392 | PyObject *resultobj = 0; | |
42393 | wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ; | |
42394 | wxString *arg2 = 0 ; | |
42395 | void *argp1 = 0 ; | |
42396 | int res1 = 0 ; | |
42397 | bool temp2 = false ; | |
42398 | PyObject * obj0 = 0 ; | |
42399 | PyObject * obj1 = 0 ; | |
42400 | char * kwnames[] = { | |
42401 | (char *) "self",(char *) "url", NULL | |
42402 | }; | |
42403 | ||
42404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail; | |
42405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 ); | |
42406 | if (!SWIG_IsOK(res1)) { | |
42407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'"); | |
42408 | } | |
42409 | arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1); | |
42410 | { | |
42411 | arg2 = wxString_in_helper(obj1); | |
42412 | if (arg2 == NULL) SWIG_fail; | |
42413 | temp2 = true; | |
42414 | } | |
42415 | { | |
42416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42417 | (arg1)->SetURL((wxString const &)*arg2); | |
42418 | wxPyEndAllowThreads(__tstate); | |
42419 | if (PyErr_Occurred()) SWIG_fail; | |
42420 | } | |
42421 | resultobj = SWIG_Py_Void(); | |
42422 | { | |
42423 | if (temp2) | |
42424 | delete arg2; | |
42425 | } | |
42426 | return resultobj; | |
42427 | fail: | |
42428 | { | |
42429 | if (temp2) | |
42430 | delete arg2; | |
42431 | } | |
42432 | return NULL; | |
42433 | } | |
42434 | ||
42435 | ||
42436 | SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42437 | PyObject *obj; | |
42438 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
42439 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj)); | |
42440 | return SWIG_Py_Void(); | |
42441 | } | |
42442 | ||
42443 | SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42444 | return SWIG_Python_InitShadowInstance(args); | |
42445 | } | |
42446 | ||
b850e7f3 RD |
42447 | SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
42448 | PyObject *resultobj = 0; | |
42449 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42450 | wxWindow *arg2 = (wxWindow *) 0 ; | |
42451 | int arg3 ; | |
42452 | wxString const &arg4_defvalue = wxEmptyString ; | |
42453 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
42454 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
42455 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
42456 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
42457 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
42458 | long arg7 = (long) 0 ; | |
42459 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
42460 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
42461 | wxString const &arg9_defvalue = wxButtonNameStr ; | |
42462 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
42463 | bool result; | |
42464 | void *argp1 = 0 ; | |
42465 | int res1 = 0 ; | |
42466 | void *argp2 = 0 ; | |
42467 | int res2 = 0 ; | |
42468 | int val3 ; | |
42469 | int ecode3 = 0 ; | |
42470 | bool temp4 = false ; | |
42471 | wxPoint temp5 ; | |
42472 | wxSize temp6 ; | |
42473 | long val7 ; | |
42474 | int ecode7 = 0 ; | |
42475 | void *argp8 = 0 ; | |
42476 | int res8 = 0 ; | |
42477 | bool temp9 = false ; | |
42478 | PyObject * obj0 = 0 ; | |
42479 | PyObject * obj1 = 0 ; | |
42480 | PyObject * obj2 = 0 ; | |
42481 | PyObject * obj3 = 0 ; | |
42482 | PyObject * obj4 = 0 ; | |
42483 | PyObject * obj5 = 0 ; | |
42484 | PyObject * obj6 = 0 ; | |
42485 | PyObject * obj7 = 0 ; | |
42486 | PyObject * obj8 = 0 ; | |
42487 | char * kwnames[] = { | |
42488 | (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
42489 | }; | |
42490 | ||
42491 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
42492 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42493 | if (!SWIG_IsOK(res1)) { | |
42494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42495 | } | |
42496 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42497 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
42498 | if (!SWIG_IsOK(res2)) { | |
42499 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
42500 | } | |
42501 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
42502 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
42503 | if (!SWIG_IsOK(ecode3)) { | |
42504 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'"); | |
42505 | } | |
42506 | arg3 = static_cast< int >(val3); | |
42507 | if (obj3) { | |
42508 | { | |
42509 | arg4 = wxString_in_helper(obj3); | |
42510 | if (arg4 == NULL) SWIG_fail; | |
42511 | temp4 = true; | |
42512 | } | |
42513 | } | |
42514 | if (obj4) { | |
42515 | { | |
42516 | arg5 = &temp5; | |
42517 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
42518 | } | |
42519 | } | |
42520 | if (obj5) { | |
42521 | { | |
42522 | arg6 = &temp6; | |
42523 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
42524 | } | |
42525 | } | |
42526 | if (obj6) { | |
42527 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
42528 | if (!SWIG_IsOK(ecode7)) { | |
42529 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'"); | |
42530 | } | |
42531 | arg7 = static_cast< long >(val7); | |
42532 | } | |
42533 | if (obj7) { | |
42534 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
42535 | if (!SWIG_IsOK(res8)) { | |
42536 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
42537 | } | |
42538 | if (!argp8) { | |
42539 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
42540 | } | |
42541 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
42542 | } | |
42543 | if (obj8) { | |
42544 | { | |
42545 | arg9 = wxString_in_helper(obj8); | |
42546 | if (arg9 == NULL) SWIG_fail; | |
42547 | temp9 = true; | |
42548 | } | |
42549 | } | |
42550 | { | |
42551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42552 | result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
42553 | wxPyEndAllowThreads(__tstate); | |
42554 | if (PyErr_Occurred()) SWIG_fail; | |
42555 | } | |
42556 | { | |
42557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42558 | } | |
42559 | { | |
42560 | if (temp4) | |
42561 | delete arg4; | |
42562 | } | |
42563 | { | |
42564 | if (temp9) | |
42565 | delete arg9; | |
42566 | } | |
42567 | return resultobj; | |
42568 | fail: | |
42569 | { | |
42570 | if (temp4) | |
42571 | delete arg4; | |
42572 | } | |
42573 | { | |
42574 | if (temp9) | |
42575 | delete arg9; | |
42576 | } | |
42577 | return NULL; | |
42578 | } | |
42579 | ||
42580 | ||
42581 | SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42582 | PyObject *resultobj = 0; | |
42583 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42584 | int arg2 ; | |
42585 | void *argp1 = 0 ; | |
42586 | int res1 = 0 ; | |
42587 | int val2 ; | |
42588 | int ecode2 = 0 ; | |
42589 | PyObject * obj0 = 0 ; | |
42590 | PyObject * obj1 = 0 ; | |
42591 | char * kwnames[] = { | |
42592 | (char *) "self",(char *) "newmargin", NULL | |
42593 | }; | |
42594 | ||
42595 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
42596 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42597 | if (!SWIG_IsOK(res1)) { | |
42598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42599 | } | |
42600 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42601 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42602 | if (!SWIG_IsOK(ecode2)) { | |
42603 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'"); | |
42604 | } | |
42605 | arg2 = static_cast< int >(val2); | |
42606 | { | |
42607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42608 | (arg1)->SetInternalMargin(arg2); | |
42609 | wxPyEndAllowThreads(__tstate); | |
42610 | if (PyErr_Occurred()) SWIG_fail; | |
42611 | } | |
42612 | resultobj = SWIG_Py_Void(); | |
42613 | return resultobj; | |
42614 | fail: | |
42615 | return NULL; | |
42616 | } | |
42617 | ||
42618 | ||
42619 | SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42620 | PyObject *resultobj = 0; | |
42621 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42622 | int result; | |
42623 | void *argp1 = 0 ; | |
42624 | int res1 = 0 ; | |
42625 | PyObject *swig_obj[1] ; | |
42626 | ||
42627 | if (!args) SWIG_fail; | |
42628 | swig_obj[0] = args; | |
42629 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42630 | if (!SWIG_IsOK(res1)) { | |
42631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
42632 | } | |
42633 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42634 | { | |
42635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42636 | result = (int)((wxPickerBase const *)arg1)->GetInternalMargin(); | |
42637 | wxPyEndAllowThreads(__tstate); | |
42638 | if (PyErr_Occurred()) SWIG_fail; | |
42639 | } | |
42640 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
42641 | return resultobj; | |
42642 | fail: | |
42643 | return NULL; | |
42644 | } | |
42645 | ||
42646 | ||
42647 | SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42648 | PyObject *resultobj = 0; | |
42649 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42650 | int arg2 ; | |
42651 | void *argp1 = 0 ; | |
42652 | int res1 = 0 ; | |
42653 | int val2 ; | |
42654 | int ecode2 = 0 ; | |
42655 | PyObject * obj0 = 0 ; | |
42656 | PyObject * obj1 = 0 ; | |
42657 | char * kwnames[] = { | |
42658 | (char *) "self",(char *) "prop", NULL | |
42659 | }; | |
42660 | ||
42661 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail; | |
42662 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42663 | if (!SWIG_IsOK(res1)) { | |
42664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42665 | } | |
42666 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42667 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42668 | if (!SWIG_IsOK(ecode2)) { | |
42669 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'"); | |
42670 | } | |
42671 | arg2 = static_cast< int >(val2); | |
42672 | { | |
42673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42674 | (arg1)->SetTextCtrlProportion(arg2); | |
42675 | wxPyEndAllowThreads(__tstate); | |
42676 | if (PyErr_Occurred()) SWIG_fail; | |
42677 | } | |
42678 | resultobj = SWIG_Py_Void(); | |
42679 | return resultobj; | |
42680 | fail: | |
42681 | return NULL; | |
42682 | } | |
42683 | ||
42684 | ||
42685 | SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42686 | PyObject *resultobj = 0; | |
42687 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42688 | int result; | |
42689 | void *argp1 = 0 ; | |
42690 | int res1 = 0 ; | |
42691 | PyObject *swig_obj[1] ; | |
42692 | ||
42693 | if (!args) SWIG_fail; | |
42694 | swig_obj[0] = args; | |
42695 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42696 | if (!SWIG_IsOK(res1)) { | |
42697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
42698 | } | |
42699 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42700 | { | |
42701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42702 | result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion(); | |
42703 | wxPyEndAllowThreads(__tstate); | |
42704 | if (PyErr_Occurred()) SWIG_fail; | |
42705 | } | |
42706 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
42707 | return resultobj; | |
42708 | fail: | |
42709 | return NULL; | |
42710 | } | |
42711 | ||
42712 | ||
1eeb270e RD |
42713 | SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
42714 | PyObject *resultobj = 0; | |
42715 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42716 | int arg2 ; | |
42717 | void *argp1 = 0 ; | |
42718 | int res1 = 0 ; | |
42719 | int val2 ; | |
42720 | int ecode2 = 0 ; | |
42721 | PyObject * obj0 = 0 ; | |
42722 | PyObject * obj1 = 0 ; | |
42723 | char * kwnames[] = { | |
42724 | (char *) "self",(char *) "prop", NULL | |
42725 | }; | |
42726 | ||
42727 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail; | |
42728 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42729 | if (!SWIG_IsOK(res1)) { | |
42730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42731 | } | |
42732 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42733 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42734 | if (!SWIG_IsOK(ecode2)) { | |
42735 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'"); | |
42736 | } | |
42737 | arg2 = static_cast< int >(val2); | |
42738 | { | |
42739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42740 | (arg1)->SetPickerCtrlProportion(arg2); | |
42741 | wxPyEndAllowThreads(__tstate); | |
42742 | if (PyErr_Occurred()) SWIG_fail; | |
42743 | } | |
42744 | resultobj = SWIG_Py_Void(); | |
42745 | return resultobj; | |
42746 | fail: | |
42747 | return NULL; | |
42748 | } | |
42749 | ||
42750 | ||
42751 | SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42752 | PyObject *resultobj = 0; | |
42753 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42754 | int result; | |
42755 | void *argp1 = 0 ; | |
42756 | int res1 = 0 ; | |
42757 | PyObject *swig_obj[1] ; | |
42758 | ||
42759 | if (!args) SWIG_fail; | |
42760 | swig_obj[0] = args; | |
42761 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42762 | if (!SWIG_IsOK(res1)) { | |
42763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
42764 | } | |
42765 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42766 | { | |
42767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42768 | result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion(); | |
42769 | wxPyEndAllowThreads(__tstate); | |
42770 | if (PyErr_Occurred()) SWIG_fail; | |
42771 | } | |
42772 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
42773 | return resultobj; | |
42774 | fail: | |
42775 | return NULL; | |
42776 | } | |
42777 | ||
42778 | ||
b02396e8 RD |
42779 | SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
42780 | PyObject *resultobj = 0; | |
42781 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42782 | bool result; | |
42783 | void *argp1 = 0 ; | |
42784 | int res1 = 0 ; | |
42785 | PyObject *swig_obj[1] ; | |
42786 | ||
42787 | if (!args) SWIG_fail; | |
42788 | swig_obj[0] = args; | |
42789 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42790 | if (!SWIG_IsOK(res1)) { | |
42791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
42792 | } | |
42793 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42794 | { | |
42795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42796 | result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable(); | |
42797 | wxPyEndAllowThreads(__tstate); | |
42798 | if (PyErr_Occurred()) SWIG_fail; | |
42799 | } | |
42800 | { | |
42801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42802 | } | |
42803 | return resultobj; | |
42804 | fail: | |
42805 | return NULL; | |
42806 | } | |
42807 | ||
42808 | ||
42809 | SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42810 | PyObject *resultobj = 0; | |
42811 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42812 | bool arg2 = (bool) true ; | |
42813 | void *argp1 = 0 ; | |
42814 | int res1 = 0 ; | |
42815 | bool val2 ; | |
42816 | int ecode2 = 0 ; | |
42817 | PyObject * obj0 = 0 ; | |
42818 | PyObject * obj1 = 0 ; | |
42819 | char * kwnames[] = { | |
42820 | (char *) "self",(char *) "grow", NULL | |
42821 | }; | |
42822 | ||
42823 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail; | |
42824 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42825 | if (!SWIG_IsOK(res1)) { | |
42826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42827 | } | |
42828 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42829 | if (obj1) { | |
42830 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
42831 | if (!SWIG_IsOK(ecode2)) { | |
42832 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'"); | |
42833 | } | |
42834 | arg2 = static_cast< bool >(val2); | |
42835 | } | |
42836 | { | |
42837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42838 | (arg1)->SetTextCtrlGrowable(arg2); | |
42839 | wxPyEndAllowThreads(__tstate); | |
42840 | if (PyErr_Occurred()) SWIG_fail; | |
42841 | } | |
42842 | resultobj = SWIG_Py_Void(); | |
42843 | return resultobj; | |
42844 | fail: | |
42845 | return NULL; | |
42846 | } | |
42847 | ||
42848 | ||
42849 | SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42850 | PyObject *resultobj = 0; | |
42851 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42852 | bool result; | |
42853 | void *argp1 = 0 ; | |
42854 | int res1 = 0 ; | |
42855 | PyObject *swig_obj[1] ; | |
42856 | ||
42857 | if (!args) SWIG_fail; | |
42858 | swig_obj[0] = args; | |
42859 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42860 | if (!SWIG_IsOK(res1)) { | |
42861 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
42862 | } | |
42863 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42864 | { | |
42865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42866 | result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable(); | |
42867 | wxPyEndAllowThreads(__tstate); | |
42868 | if (PyErr_Occurred()) SWIG_fail; | |
42869 | } | |
42870 | { | |
42871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42872 | } | |
42873 | return resultobj; | |
42874 | fail: | |
42875 | return NULL; | |
42876 | } | |
42877 | ||
42878 | ||
42879 | SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42880 | PyObject *resultobj = 0; | |
42881 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42882 | bool arg2 = (bool) true ; | |
42883 | void *argp1 = 0 ; | |
42884 | int res1 = 0 ; | |
42885 | bool val2 ; | |
42886 | int ecode2 = 0 ; | |
42887 | PyObject * obj0 = 0 ; | |
42888 | PyObject * obj1 = 0 ; | |
42889 | char * kwnames[] = { | |
42890 | (char *) "self",(char *) "grow", NULL | |
42891 | }; | |
42892 | ||
42893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail; | |
42894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42895 | if (!SWIG_IsOK(res1)) { | |
42896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42897 | } | |
42898 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42899 | if (obj1) { | |
42900 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
42901 | if (!SWIG_IsOK(ecode2)) { | |
42902 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'"); | |
42903 | } | |
42904 | arg2 = static_cast< bool >(val2); | |
42905 | } | |
42906 | { | |
42907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42908 | (arg1)->SetPickerCtrlGrowable(arg2); | |
42909 | wxPyEndAllowThreads(__tstate); | |
42910 | if (PyErr_Occurred()) SWIG_fail; | |
42911 | } | |
42912 | resultobj = SWIG_Py_Void(); | |
42913 | return resultobj; | |
42914 | fail: | |
42915 | return NULL; | |
42916 | } | |
42917 | ||
42918 | ||
b850e7f3 RD |
42919 | SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
42920 | PyObject *resultobj = 0; | |
42921 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42922 | bool result; | |
42923 | void *argp1 = 0 ; | |
42924 | int res1 = 0 ; | |
42925 | PyObject *swig_obj[1] ; | |
42926 | ||
42927 | if (!args) SWIG_fail; | |
42928 | swig_obj[0] = args; | |
42929 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42930 | if (!SWIG_IsOK(res1)) { | |
42931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
42932 | } | |
42933 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42934 | { | |
42935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42936 | result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl(); | |
42937 | wxPyEndAllowThreads(__tstate); | |
42938 | if (PyErr_Occurred()) SWIG_fail; | |
42939 | } | |
42940 | { | |
42941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42942 | } | |
42943 | return resultobj; | |
42944 | fail: | |
42945 | return NULL; | |
42946 | } | |
42947 | ||
42948 | ||
42949 | SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42950 | PyObject *resultobj = 0; | |
42951 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42952 | wxTextCtrl *result = 0 ; | |
42953 | void *argp1 = 0 ; | |
42954 | int res1 = 0 ; | |
42955 | PyObject *swig_obj[1] ; | |
42956 | ||
42957 | if (!args) SWIG_fail; | |
42958 | swig_obj[0] = args; | |
42959 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42960 | if (!SWIG_IsOK(res1)) { | |
42961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42962 | } | |
42963 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42964 | { | |
42965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42966 | result = (wxTextCtrl *)(arg1)->GetTextCtrl(); | |
42967 | wxPyEndAllowThreads(__tstate); | |
42968 | if (PyErr_Occurred()) SWIG_fail; | |
42969 | } | |
42970 | { | |
42971 | resultobj = wxPyMake_wxObject(result, 0); | |
42972 | } | |
42973 | return resultobj; | |
42974 | fail: | |
42975 | return NULL; | |
42976 | } | |
42977 | ||
42978 | ||
42979 | SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42980 | PyObject *resultobj = 0; | |
42981 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42982 | wxControl *result = 0 ; | |
42983 | void *argp1 = 0 ; | |
42984 | int res1 = 0 ; | |
42985 | PyObject *swig_obj[1] ; | |
42986 | ||
42987 | if (!args) SWIG_fail; | |
42988 | swig_obj[0] = args; | |
42989 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42990 | if (!SWIG_IsOK(res1)) { | |
42991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42992 | } | |
42993 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42994 | { | |
42995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42996 | result = (wxControl *)(arg1)->GetPickerCtrl(); | |
42997 | wxPyEndAllowThreads(__tstate); | |
42998 | if (PyErr_Occurred()) SWIG_fail; | |
42999 | } | |
43000 | { | |
43001 | resultobj = wxPyMake_wxObject(result, 0); | |
43002 | } | |
43003 | return resultobj; | |
43004 | fail: | |
43005 | return NULL; | |
43006 | } | |
43007 | ||
43008 | ||
43009 | SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43010 | PyObject *obj; | |
43011 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
43012 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj)); | |
43013 | return SWIG_Py_Void(); | |
43014 | } | |
43015 | ||
43016 | SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) { | |
43017 | SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only."); | |
43018 | return 1; | |
43019 | } | |
43020 | ||
43021 | ||
43022 | SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) { | |
43023 | PyObject *pyobj = 0; | |
43024 | ||
43025 | { | |
43026 | #if wxUSE_UNICODE | |
43027 | pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len()); | |
43028 | #else | |
43029 | pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len()); | |
43030 | #endif | |
43031 | } | |
43032 | return pyobj; | |
43033 | } | |
43034 | ||
43035 | ||
43036 | SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43037 | PyObject *resultobj = 0; | |
43038 | wxWindow *arg1 = (wxWindow *) 0 ; | |
43039 | int arg2 = (int) -1 ; | |
43040 | wxColour const &arg3_defvalue = *wxBLACK ; | |
43041 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
43042 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
43043 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
43044 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
43045 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
43046 | long arg6 = (long) wxCLRP_DEFAULT_STYLE ; | |
43047 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
43048 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
43049 | wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ; | |
43050 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
43051 | wxColourPickerCtrl *result = 0 ; | |
43052 | void *argp1 = 0 ; | |
43053 | int res1 = 0 ; | |
43054 | int val2 ; | |
43055 | int ecode2 = 0 ; | |
43056 | wxColour temp3 ; | |
43057 | wxPoint temp4 ; | |
43058 | wxSize temp5 ; | |
43059 | long val6 ; | |
43060 | int ecode6 = 0 ; | |
43061 | void *argp7 = 0 ; | |
43062 | int res7 = 0 ; | |
43063 | bool temp8 = false ; | |
43064 | PyObject * obj0 = 0 ; | |
43065 | PyObject * obj1 = 0 ; | |
43066 | PyObject * obj2 = 0 ; | |
43067 | PyObject * obj3 = 0 ; | |
43068 | PyObject * obj4 = 0 ; | |
43069 | PyObject * obj5 = 0 ; | |
43070 | PyObject * obj6 = 0 ; | |
43071 | PyObject * obj7 = 0 ; | |
43072 | char * kwnames[] = { | |
43073 | (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
43074 | }; | |
43075 | ||
43076 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
43077 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
43078 | if (!SWIG_IsOK(res1)) { | |
43079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
43080 | } | |
43081 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
43082 | if (obj1) { | |
43083 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
43084 | if (!SWIG_IsOK(ecode2)) { | |
43085 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
43086 | } | |
43087 | arg2 = static_cast< int >(val2); | |
43088 | } | |
43089 | if (obj2) { | |
43090 | { | |
43091 | arg3 = &temp3; | |
43092 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
43093 | } | |
43094 | } | |
43095 | if (obj3) { | |
43096 | { | |
43097 | arg4 = &temp4; | |
43098 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
43099 | } | |
43100 | } | |
43101 | if (obj4) { | |
43102 | { | |
43103 | arg5 = &temp5; | |
43104 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
43105 | } | |
43106 | } | |
43107 | if (obj5) { | |
43108 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
43109 | if (!SWIG_IsOK(ecode6)) { | |
43110 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'"); | |
43111 | } | |
43112 | arg6 = static_cast< long >(val6); | |
43113 | } | |
43114 | if (obj6) { | |
43115 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
43116 | if (!SWIG_IsOK(res7)) { | |
43117 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
43118 | } | |
43119 | if (!argp7) { | |
43120 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
43121 | } | |
43122 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
43123 | } | |
43124 | if (obj7) { | |
43125 | { | |
43126 | arg8 = wxString_in_helper(obj7); | |
43127 | if (arg8 == NULL) SWIG_fail; | |
43128 | temp8 = true; | |
43129 | } | |
43130 | } | |
43131 | { | |
43132 | if (!wxPyCheckForApp()) SWIG_fail; | |
43133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43134 | result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
43135 | wxPyEndAllowThreads(__tstate); | |
43136 | if (PyErr_Occurred()) SWIG_fail; | |
43137 | } | |
43138 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 ); | |
43139 | { | |
43140 | if (temp8) | |
43141 | delete arg8; | |
43142 | } | |
43143 | return resultobj; | |
43144 | fail: | |
43145 | { | |
43146 | if (temp8) | |
43147 | delete arg8; | |
43148 | } | |
43149 | return NULL; | |
43150 | } | |
43151 | ||
43152 | ||
43153 | SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43154 | PyObject *resultobj = 0; | |
43155 | wxColourPickerCtrl *result = 0 ; | |
43156 | ||
43157 | if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail; | |
43158 | { | |
43159 | if (!wxPyCheckForApp()) SWIG_fail; | |
43160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43161 | result = (wxColourPickerCtrl *)new wxColourPickerCtrl(); | |
43162 | wxPyEndAllowThreads(__tstate); | |
43163 | if (PyErr_Occurred()) SWIG_fail; | |
43164 | } | |
43165 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 ); | |
43166 | return resultobj; | |
43167 | fail: | |
43168 | return NULL; | |
43169 | } | |
43170 | ||
43171 | ||
43172 | SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43173 | PyObject *resultobj = 0; | |
43174 | wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ; | |
43175 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43176 | int arg3 ; | |
43177 | wxColour const &arg4_defvalue = *wxBLACK ; | |
43178 | wxColour *arg4 = (wxColour *) &arg4_defvalue ; | |
43179 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
43180 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
43181 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
43182 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
43183 | long arg7 = (long) wxCLRP_DEFAULT_STYLE ; | |
43184 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
43185 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
43186 | wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ; | |
43187 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
43188 | bool result; | |
43189 | void *argp1 = 0 ; | |
43190 | int res1 = 0 ; | |
43191 | void *argp2 = 0 ; | |
43192 | int res2 = 0 ; | |
43193 | int val3 ; | |
43194 | int ecode3 = 0 ; | |
43195 | wxColour temp4 ; | |
43196 | wxPoint temp5 ; | |
43197 | wxSize temp6 ; | |
43198 | long val7 ; | |
43199 | int ecode7 = 0 ; | |
43200 | void *argp8 = 0 ; | |
43201 | int res8 = 0 ; | |
43202 | bool temp9 = false ; | |
43203 | PyObject * obj0 = 0 ; | |
43204 | PyObject * obj1 = 0 ; | |
43205 | PyObject * obj2 = 0 ; | |
43206 | PyObject * obj3 = 0 ; | |
43207 | PyObject * obj4 = 0 ; | |
43208 | PyObject * obj5 = 0 ; | |
43209 | PyObject * obj6 = 0 ; | |
43210 | PyObject * obj7 = 0 ; | |
43211 | PyObject * obj8 = 0 ; | |
43212 | char * kwnames[] = { | |
43213 | (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
43214 | }; | |
43215 | ||
43216 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
43217 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 ); | |
43218 | if (!SWIG_IsOK(res1)) { | |
43219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'"); | |
43220 | } | |
43221 | arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1); | |
43222 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
43223 | if (!SWIG_IsOK(res2)) { | |
43224 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
43225 | } | |
43226 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
43227 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
43228 | if (!SWIG_IsOK(ecode3)) { | |
43229 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
43230 | } | |
43231 | arg3 = static_cast< int >(val3); | |
43232 | if (obj3) { | |
43233 | { | |
43234 | arg4 = &temp4; | |
43235 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
43236 | } | |
43237 | } | |
43238 | if (obj4) { | |
43239 | { | |
43240 | arg5 = &temp5; | |
43241 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
43242 | } | |
43243 | } | |
43244 | if (obj5) { | |
43245 | { | |
43246 | arg6 = &temp6; | |
43247 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
43248 | } | |
43249 | } | |
43250 | if (obj6) { | |
43251 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
43252 | if (!SWIG_IsOK(ecode7)) { | |
43253 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
43254 | } | |
43255 | arg7 = static_cast< long >(val7); | |
43256 | } | |
43257 | if (obj7) { | |
43258 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
43259 | if (!SWIG_IsOK(res8)) { | |
43260 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
43261 | } | |
43262 | if (!argp8) { | |
43263 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
43264 | } | |
43265 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
43266 | } | |
43267 | if (obj8) { | |
43268 | { | |
43269 | arg9 = wxString_in_helper(obj8); | |
43270 | if (arg9 == NULL) SWIG_fail; | |
43271 | temp9 = true; | |
43272 | } | |
43273 | } | |
43274 | { | |
43275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43276 | result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
43277 | wxPyEndAllowThreads(__tstate); | |
43278 | if (PyErr_Occurred()) SWIG_fail; | |
43279 | } | |
43280 | { | |
43281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43282 | } | |
43283 | { | |
43284 | if (temp9) | |
43285 | delete arg9; | |
43286 | } | |
43287 | return resultobj; | |
43288 | fail: | |
43289 | { | |
43290 | if (temp9) | |
43291 | delete arg9; | |
43292 | } | |
43293 | return NULL; | |
43294 | } | |
43295 | ||
43296 | ||
43297 | SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43298 | PyObject *resultobj = 0; | |
43299 | wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ; | |
43300 | wxColour result; | |
43301 | void *argp1 = 0 ; | |
43302 | int res1 = 0 ; | |
43303 | PyObject *swig_obj[1] ; | |
43304 | ||
43305 | if (!args) SWIG_fail; | |
43306 | swig_obj[0] = args; | |
43307 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 ); | |
43308 | if (!SWIG_IsOK(res1)) { | |
43309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'"); | |
43310 | } | |
43311 | arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1); | |
43312 | { | |
43313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43314 | result = ((wxColourPickerCtrl const *)arg1)->GetColour(); | |
43315 | wxPyEndAllowThreads(__tstate); | |
43316 | if (PyErr_Occurred()) SWIG_fail; | |
43317 | } | |
43318 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
43319 | return resultobj; | |
43320 | fail: | |
43321 | return NULL; | |
43322 | } | |
43323 | ||
43324 | ||
43325 | SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43326 | PyObject *resultobj = 0; | |
43327 | wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ; | |
43328 | wxColour *arg2 = 0 ; | |
43329 | void *argp1 = 0 ; | |
43330 | int res1 = 0 ; | |
43331 | wxColour temp2 ; | |
43332 | PyObject * obj0 = 0 ; | |
43333 | PyObject * obj1 = 0 ; | |
43334 | char * kwnames[] = { | |
43335 | (char *) "self",(char *) "col", NULL | |
43336 | }; | |
43337 | ||
43338 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
43339 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 ); | |
43340 | if (!SWIG_IsOK(res1)) { | |
43341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'"); | |
43342 | } | |
43343 | arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1); | |
43344 | { | |
43345 | arg2 = &temp2; | |
43346 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
43347 | } | |
43348 | { | |
43349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43350 | (arg1)->SetColour((wxColour const &)*arg2); | |
43351 | wxPyEndAllowThreads(__tstate); | |
43352 | if (PyErr_Occurred()) SWIG_fail; | |
43353 | } | |
43354 | resultobj = SWIG_Py_Void(); | |
43355 | return resultobj; | |
43356 | fail: | |
43357 | return NULL; | |
43358 | } | |
43359 | ||
43360 | ||
43361 | SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43362 | PyObject *obj; | |
43363 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
43364 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj)); | |
43365 | return SWIG_Py_Void(); | |
43366 | } | |
43367 | ||
43368 | SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43369 | return SWIG_Python_InitShadowInstance(args); | |
43370 | } | |
43371 | ||
43372 | SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43373 | PyObject *resultobj = 0; | |
43374 | wxObject *arg1 = (wxObject *) 0 ; | |
43375 | int arg2 ; | |
43376 | wxColour *arg3 = 0 ; | |
43377 | wxColourPickerEvent *result = 0 ; | |
43378 | void *argp1 = 0 ; | |
43379 | int res1 = 0 ; | |
43380 | int val2 ; | |
43381 | int ecode2 = 0 ; | |
43382 | wxColour temp3 ; | |
43383 | PyObject * obj0 = 0 ; | |
43384 | PyObject * obj1 = 0 ; | |
43385 | PyObject * obj2 = 0 ; | |
43386 | char * kwnames[] = { | |
43387 | (char *) "generator",(char *) "id",(char *) "col", NULL | |
43388 | }; | |
43389 | ||
43390 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
43391 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 ); | |
43392 | if (!SWIG_IsOK(res1)) { | |
43393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'"); | |
43394 | } | |
43395 | arg1 = reinterpret_cast< wxObject * >(argp1); | |
43396 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
43397 | if (!SWIG_IsOK(ecode2)) { | |
43398 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'"); | |
43399 | } | |
43400 | arg2 = static_cast< int >(val2); | |
43401 | { | |
43402 | arg3 = &temp3; | |
43403 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
43404 | } | |
43405 | { | |
43406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43407 | result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3); | |
43408 | wxPyEndAllowThreads(__tstate); | |
43409 | if (PyErr_Occurred()) SWIG_fail; | |
43410 | } | |
43411 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 ); | |
43412 | return resultobj; | |
43413 | fail: | |
43414 | return NULL; | |
43415 | } | |
43416 | ||
43417 | ||
43418 | SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43419 | PyObject *resultobj = 0; | |
43420 | wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ; | |
43421 | wxColour result; | |
43422 | void *argp1 = 0 ; | |
43423 | int res1 = 0 ; | |
43424 | PyObject *swig_obj[1] ; | |
43425 | ||
43426 | if (!args) SWIG_fail; | |
43427 | swig_obj[0] = args; | |
43428 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 ); | |
43429 | if (!SWIG_IsOK(res1)) { | |
43430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'"); | |
43431 | } | |
43432 | arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1); | |
43433 | { | |
43434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43435 | result = ((wxColourPickerEvent const *)arg1)->GetColour(); | |
43436 | wxPyEndAllowThreads(__tstate); | |
43437 | if (PyErr_Occurred()) SWIG_fail; | |
43438 | } | |
43439 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
43440 | return resultobj; | |
43441 | fail: | |
43442 | return NULL; | |
43443 | } | |
43444 | ||
43445 | ||
43446 | SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43447 | PyObject *resultobj = 0; | |
43448 | wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ; | |
43449 | wxColour *arg2 = 0 ; | |
43450 | void *argp1 = 0 ; | |
43451 | int res1 = 0 ; | |
43452 | wxColour temp2 ; | |
43453 | PyObject * obj0 = 0 ; | |
43454 | PyObject * obj1 = 0 ; | |
43455 | char * kwnames[] = { | |
43456 | (char *) "self",(char *) "c", NULL | |
43457 | }; | |
43458 | ||
43459 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
43460 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 ); | |
43461 | if (!SWIG_IsOK(res1)) { | |
43462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'"); | |
43463 | } | |
43464 | arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1); | |
43465 | { | |
43466 | arg2 = &temp2; | |
43467 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
43468 | } | |
43469 | { | |
43470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43471 | (arg1)->SetColour((wxColour const &)*arg2); | |
43472 | wxPyEndAllowThreads(__tstate); | |
43473 | if (PyErr_Occurred()) SWIG_fail; | |
43474 | } | |
43475 | resultobj = SWIG_Py_Void(); | |
43476 | return resultobj; | |
43477 | fail: | |
43478 | return NULL; | |
43479 | } | |
43480 | ||
43481 | ||
43482 | SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43483 | PyObject *obj; | |
43484 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
43485 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj)); | |
43486 | return SWIG_Py_Void(); | |
43487 | } | |
43488 | ||
43489 | SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43490 | return SWIG_Python_InitShadowInstance(args); | |
43491 | } | |
43492 | ||
43493 | SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) { | |
43494 | SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only."); | |
43495 | return 1; | |
43496 | } | |
43497 | ||
43498 | ||
43499 | SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) { | |
43500 | PyObject *pyobj = 0; | |
43501 | ||
43502 | { | |
43503 | #if wxUSE_UNICODE | |
43504 | pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len()); | |
43505 | #else | |
43506 | pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len()); | |
43507 | #endif | |
43508 | } | |
43509 | return pyobj; | |
43510 | } | |
43511 | ||
43512 | ||
43513 | SWIGINTERN int FileSelectorPromptStr_set(PyObject *) { | |
43514 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only."); | |
43515 | return 1; | |
43516 | } | |
43517 | ||
43518 | ||
43519 | SWIGINTERN PyObject *FileSelectorPromptStr_get(void) { | |
43520 | PyObject *pyobj = 0; | |
43521 | ||
43522 | { | |
43523 | #if wxUSE_UNICODE | |
43524 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
43525 | #else | |
43526 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
43527 | #endif | |
43528 | } | |
43529 | return pyobj; | |
43530 | } | |
43531 | ||
43532 | ||
43533 | SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) { | |
43534 | SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only."); | |
43535 | return 1; | |
43536 | } | |
43537 | ||
43538 | ||
43539 | SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) { | |
43540 | PyObject *pyobj = 0; | |
43541 | ||
43542 | { | |
43543 | #if wxUSE_UNICODE | |
43544 | pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len()); | |
43545 | #else | |
43546 | pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len()); | |
43547 | #endif | |
43548 | } | |
43549 | return pyobj; | |
43550 | } | |
43551 | ||
43552 | ||
43553 | SWIGINTERN int DirSelectorPromptStr_set(PyObject *) { | |
43554 | SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only."); | |
43555 | return 1; | |
43556 | } | |
43557 | ||
43558 | ||
43559 | SWIGINTERN PyObject *DirSelectorPromptStr_get(void) { | |
43560 | PyObject *pyobj = 0; | |
43561 | ||
43562 | { | |
43563 | #if wxUSE_UNICODE | |
43564 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
43565 | #else | |
43566 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
43567 | #endif | |
43568 | } | |
43569 | return pyobj; | |
43570 | } | |
43571 | ||
43572 | ||
43573 | SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) { | |
43574 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
43575 | return 1; | |
43576 | } | |
43577 | ||
43578 | ||
43579 | SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) { | |
43580 | PyObject *pyobj = 0; | |
43581 | ||
43582 | { | |
43583 | #if wxUSE_UNICODE | |
43584 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
43585 | #else | |
43586 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
43587 | #endif | |
43588 | } | |
43589 | return pyobj; | |
43590 | } | |
43591 | ||
43592 | ||
43593 | SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43594 | PyObject *resultobj = 0; | |
43595 | wxWindow *arg1 = (wxWindow *) 0 ; | |
43596 | int arg2 = (int) -1 ; | |
43597 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
43598 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
43599 | wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ; | |
43600 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
43601 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
43602 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
43603 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
43604 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
43605 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
43606 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
43607 | long arg8 = (long) wxFLP_DEFAULT_STYLE ; | |
43608 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
43609 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
43610 | wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ; | |
43611 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
43612 | wxFilePickerCtrl *result = 0 ; | |
43613 | void *argp1 = 0 ; | |
43614 | int res1 = 0 ; | |
43615 | int val2 ; | |
43616 | int ecode2 = 0 ; | |
43617 | bool temp3 = false ; | |
43618 | bool temp4 = false ; | |
43619 | bool temp5 = false ; | |
43620 | wxPoint temp6 ; | |
43621 | wxSize temp7 ; | |
43622 | long val8 ; | |
43623 | int ecode8 = 0 ; | |
43624 | void *argp9 = 0 ; | |
43625 | int res9 = 0 ; | |
43626 | bool temp10 = false ; | |
43627 | PyObject * obj0 = 0 ; | |
43628 | PyObject * obj1 = 0 ; | |
43629 | PyObject * obj2 = 0 ; | |
43630 | PyObject * obj3 = 0 ; | |
43631 | PyObject * obj4 = 0 ; | |
43632 | PyObject * obj5 = 0 ; | |
43633 | PyObject * obj6 = 0 ; | |
43634 | PyObject * obj7 = 0 ; | |
43635 | PyObject * obj8 = 0 ; | |
43636 | PyObject * obj9 = 0 ; | |
43637 | char * kwnames[] = { | |
43638 | (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
43639 | }; | |
43640 | ||
43641 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
43642 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
43643 | if (!SWIG_IsOK(res1)) { | |
43644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
43645 | } | |
43646 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
43647 | if (obj1) { | |
43648 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
43649 | if (!SWIG_IsOK(ecode2)) { | |
43650 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
43651 | } | |
43652 | arg2 = static_cast< int >(val2); | |
43653 | } | |
43654 | if (obj2) { | |
43655 | { | |
43656 | arg3 = wxString_in_helper(obj2); | |
43657 | if (arg3 == NULL) SWIG_fail; | |
43658 | temp3 = true; | |
43659 | } | |
43660 | } | |
43661 | if (obj3) { | |
43662 | { | |
43663 | arg4 = wxString_in_helper(obj3); | |
43664 | if (arg4 == NULL) SWIG_fail; | |
43665 | temp4 = true; | |
43666 | } | |
43667 | } | |
43668 | if (obj4) { | |
43669 | { | |
43670 | arg5 = wxString_in_helper(obj4); | |
43671 | if (arg5 == NULL) SWIG_fail; | |
43672 | temp5 = true; | |
43673 | } | |
43674 | } | |
43675 | if (obj5) { | |
43676 | { | |
43677 | arg6 = &temp6; | |
43678 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
43679 | } | |
43680 | } | |
43681 | if (obj6) { | |
43682 | { | |
43683 | arg7 = &temp7; | |
43684 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
43685 | } | |
43686 | } | |
43687 | if (obj7) { | |
43688 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
43689 | if (!SWIG_IsOK(ecode8)) { | |
43690 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'"); | |
43691 | } | |
43692 | arg8 = static_cast< long >(val8); | |
43693 | } | |
43694 | if (obj8) { | |
43695 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
43696 | if (!SWIG_IsOK(res9)) { | |
43697 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
43698 | } | |
43699 | if (!argp9) { | |
43700 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
43701 | } | |
43702 | arg9 = reinterpret_cast< wxValidator * >(argp9); | |
43703 | } | |
43704 | if (obj9) { | |
43705 | { | |
43706 | arg10 = wxString_in_helper(obj9); | |
43707 | if (arg10 == NULL) SWIG_fail; | |
43708 | temp10 = true; | |
43709 | } | |
43710 | } | |
43711 | { | |
43712 | if (!wxPyCheckForApp()) SWIG_fail; | |
43713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43714 | result = (wxFilePickerCtrl *)new wxFilePickerCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
43715 | wxPyEndAllowThreads(__tstate); | |
43716 | if (PyErr_Occurred()) SWIG_fail; | |
43717 | } | |
43718 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 ); | |
43719 | { | |
43720 | if (temp3) | |
43721 | delete arg3; | |
43722 | } | |
43723 | { | |
43724 | if (temp4) | |
43725 | delete arg4; | |
43726 | } | |
43727 | { | |
43728 | if (temp5) | |
43729 | delete arg5; | |
43730 | } | |
43731 | { | |
43732 | if (temp10) | |
43733 | delete arg10; | |
43734 | } | |
43735 | return resultobj; | |
43736 | fail: | |
43737 | { | |
43738 | if (temp3) | |
43739 | delete arg3; | |
43740 | } | |
43741 | { | |
43742 | if (temp4) | |
43743 | delete arg4; | |
43744 | } | |
43745 | { | |
43746 | if (temp5) | |
43747 | delete arg5; | |
43748 | } | |
43749 | { | |
43750 | if (temp10) | |
43751 | delete arg10; | |
43752 | } | |
43753 | return NULL; | |
43754 | } | |
43755 | ||
43756 | ||
43757 | SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43758 | PyObject *resultobj = 0; | |
43759 | wxFilePickerCtrl *result = 0 ; | |
43760 | ||
43761 | if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail; | |
43762 | { | |
43763 | if (!wxPyCheckForApp()) SWIG_fail; | |
43764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43765 | result = (wxFilePickerCtrl *)new wxFilePickerCtrl(); | |
43766 | wxPyEndAllowThreads(__tstate); | |
43767 | if (PyErr_Occurred()) SWIG_fail; | |
43768 | } | |
43769 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 ); | |
43770 | return resultobj; | |
43771 | fail: | |
43772 | return NULL; | |
43773 | } | |
43774 | ||
43775 | ||
43776 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43777 | PyObject *resultobj = 0; | |
43778 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
43779 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43780 | int arg3 = (int) -1 ; | |
43781 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
43782 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
43783 | wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ; | |
43784 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
43785 | wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
43786 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
43787 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
43788 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
43789 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
43790 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
43791 | long arg9 = (long) wxFLP_DEFAULT_STYLE ; | |
43792 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
43793 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
43794 | wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ; | |
43795 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
43796 | bool result; | |
43797 | void *argp1 = 0 ; | |
43798 | int res1 = 0 ; | |
43799 | void *argp2 = 0 ; | |
43800 | int res2 = 0 ; | |
43801 | int val3 ; | |
43802 | int ecode3 = 0 ; | |
43803 | bool temp4 = false ; | |
43804 | bool temp5 = false ; | |
43805 | bool temp6 = false ; | |
43806 | wxPoint temp7 ; | |
43807 | wxSize temp8 ; | |
43808 | long val9 ; | |
43809 | int ecode9 = 0 ; | |
43810 | void *argp10 = 0 ; | |
43811 | int res10 = 0 ; | |
43812 | bool temp11 = false ; | |
43813 | PyObject * obj0 = 0 ; | |
43814 | PyObject * obj1 = 0 ; | |
43815 | PyObject * obj2 = 0 ; | |
43816 | PyObject * obj3 = 0 ; | |
43817 | PyObject * obj4 = 0 ; | |
43818 | PyObject * obj5 = 0 ; | |
43819 | PyObject * obj6 = 0 ; | |
43820 | PyObject * obj7 = 0 ; | |
43821 | PyObject * obj8 = 0 ; | |
43822 | PyObject * obj9 = 0 ; | |
43823 | PyObject * obj10 = 0 ; | |
43824 | char * kwnames[] = { | |
43825 | (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
43826 | }; | |
43827 | ||
43828 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
43829 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
43830 | if (!SWIG_IsOK(res1)) { | |
43831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'"); | |
43832 | } | |
43833 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
43834 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
43835 | if (!SWIG_IsOK(res2)) { | |
43836 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
43837 | } | |
43838 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
43839 | if (obj2) { | |
43840 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
43841 | if (!SWIG_IsOK(ecode3)) { | |
43842 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
43843 | } | |
43844 | arg3 = static_cast< int >(val3); | |
43845 | } | |
43846 | if (obj3) { | |
43847 | { | |
43848 | arg4 = wxString_in_helper(obj3); | |
43849 | if (arg4 == NULL) SWIG_fail; | |
43850 | temp4 = true; | |
43851 | } | |
43852 | } | |
43853 | if (obj4) { | |
43854 | { | |
43855 | arg5 = wxString_in_helper(obj4); | |
43856 | if (arg5 == NULL) SWIG_fail; | |
43857 | temp5 = true; | |
43858 | } | |
43859 | } | |
43860 | if (obj5) { | |
43861 | { | |
43862 | arg6 = wxString_in_helper(obj5); | |
43863 | if (arg6 == NULL) SWIG_fail; | |
43864 | temp6 = true; | |
43865 | } | |
43866 | } | |
43867 | if (obj6) { | |
43868 | { | |
43869 | arg7 = &temp7; | |
43870 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
43871 | } | |
43872 | } | |
43873 | if (obj7) { | |
43874 | { | |
43875 | arg8 = &temp8; | |
43876 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
43877 | } | |
43878 | } | |
43879 | if (obj8) { | |
43880 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
43881 | if (!SWIG_IsOK(ecode9)) { | |
43882 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'"); | |
43883 | } | |
43884 | arg9 = static_cast< long >(val9); | |
43885 | } | |
43886 | if (obj9) { | |
43887 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
43888 | if (!SWIG_IsOK(res10)) { | |
43889 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
43890 | } | |
43891 | if (!argp10) { | |
43892 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
43893 | } | |
43894 | arg10 = reinterpret_cast< wxValidator * >(argp10); | |
43895 | } | |
43896 | if (obj10) { | |
43897 | { | |
43898 | arg11 = wxString_in_helper(obj10); | |
43899 | if (arg11 == NULL) SWIG_fail; | |
43900 | temp11 = true; | |
43901 | } | |
43902 | } | |
43903 | { | |
43904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43905 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxString const &)*arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
43906 | wxPyEndAllowThreads(__tstate); | |
43907 | if (PyErr_Occurred()) SWIG_fail; | |
43908 | } | |
43909 | { | |
43910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43911 | } | |
43912 | { | |
43913 | if (temp4) | |
43914 | delete arg4; | |
43915 | } | |
43916 | { | |
43917 | if (temp5) | |
43918 | delete arg5; | |
43919 | } | |
43920 | { | |
43921 | if (temp6) | |
43922 | delete arg6; | |
43923 | } | |
43924 | { | |
43925 | if (temp11) | |
43926 | delete arg11; | |
43927 | } | |
43928 | return resultobj; | |
43929 | fail: | |
43930 | { | |
43931 | if (temp4) | |
43932 | delete arg4; | |
43933 | } | |
43934 | { | |
43935 | if (temp5) | |
43936 | delete arg5; | |
43937 | } | |
43938 | { | |
43939 | if (temp6) | |
43940 | delete arg6; | |
43941 | } | |
43942 | { | |
43943 | if (temp11) | |
43944 | delete arg11; | |
43945 | } | |
43946 | return NULL; | |
43947 | } | |
43948 | ||
43949 | ||
43950 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43951 | PyObject *resultobj = 0; | |
43952 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
43953 | wxString result; | |
43954 | void *argp1 = 0 ; | |
43955 | int res1 = 0 ; | |
43956 | PyObject *swig_obj[1] ; | |
43957 | ||
43958 | if (!args) SWIG_fail; | |
43959 | swig_obj[0] = args; | |
43960 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
43961 | if (!SWIG_IsOK(res1)) { | |
43962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'"); | |
43963 | } | |
43964 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
43965 | { | |
43966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43967 | result = ((wxFilePickerCtrl const *)arg1)->GetPath(); | |
43968 | wxPyEndAllowThreads(__tstate); | |
43969 | if (PyErr_Occurred()) SWIG_fail; | |
43970 | } | |
43971 | { | |
43972 | #if wxUSE_UNICODE | |
43973 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
43974 | #else | |
43975 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
43976 | #endif | |
43977 | } | |
43978 | return resultobj; | |
43979 | fail: | |
43980 | return NULL; | |
43981 | } | |
43982 | ||
43983 | ||
43984 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43985 | PyObject *resultobj = 0; | |
43986 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
43987 | wxString *arg2 = 0 ; | |
43988 | void *argp1 = 0 ; | |
43989 | int res1 = 0 ; | |
43990 | bool temp2 = false ; | |
43991 | PyObject * obj0 = 0 ; | |
43992 | PyObject * obj1 = 0 ; | |
43993 | char * kwnames[] = { | |
43994 | (char *) "self",(char *) "str", NULL | |
43995 | }; | |
43996 | ||
43997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
43998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
43999 | if (!SWIG_IsOK(res1)) { | |
44000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'"); | |
44001 | } | |
44002 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44003 | { | |
44004 | arg2 = wxString_in_helper(obj1); | |
44005 | if (arg2 == NULL) SWIG_fail; | |
44006 | temp2 = true; | |
44007 | } | |
44008 | { | |
44009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44010 | (arg1)->SetPath((wxString const &)*arg2); | |
44011 | wxPyEndAllowThreads(__tstate); | |
44012 | if (PyErr_Occurred()) SWIG_fail; | |
44013 | } | |
44014 | resultobj = SWIG_Py_Void(); | |
44015 | { | |
44016 | if (temp2) | |
44017 | delete arg2; | |
44018 | } | |
44019 | return resultobj; | |
44020 | fail: | |
44021 | { | |
44022 | if (temp2) | |
44023 | delete arg2; | |
44024 | } | |
44025 | return NULL; | |
44026 | } | |
44027 | ||
44028 | ||
b02396e8 RD |
44029 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
44030 | PyObject *resultobj = 0; | |
44031 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44032 | wxString *arg2 = 0 ; | |
44033 | bool result; | |
44034 | void *argp1 = 0 ; | |
44035 | int res1 = 0 ; | |
44036 | bool temp2 = false ; | |
44037 | PyObject * obj0 = 0 ; | |
44038 | PyObject * obj1 = 0 ; | |
44039 | char * kwnames[] = { | |
44040 | (char *) "self",(char *) "path", NULL | |
44041 | }; | |
44042 | ||
44043 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44044 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44045 | if (!SWIG_IsOK(res1)) { | |
44046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'"); | |
44047 | } | |
44048 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44049 | { | |
44050 | arg2 = wxString_in_helper(obj1); | |
44051 | if (arg2 == NULL) SWIG_fail; | |
44052 | temp2 = true; | |
44053 | } | |
44054 | { | |
44055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44056 | result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2); | |
44057 | wxPyEndAllowThreads(__tstate); | |
44058 | if (PyErr_Occurred()) SWIG_fail; | |
44059 | } | |
44060 | { | |
44061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44062 | } | |
44063 | { | |
44064 | if (temp2) | |
44065 | delete arg2; | |
44066 | } | |
44067 | return resultobj; | |
44068 | fail: | |
44069 | { | |
44070 | if (temp2) | |
44071 | delete arg2; | |
44072 | } | |
44073 | return NULL; | |
44074 | } | |
44075 | ||
44076 | ||
44077 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44078 | PyObject *resultobj = 0; | |
44079 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44080 | wxString result; | |
44081 | void *argp1 = 0 ; | |
44082 | int res1 = 0 ; | |
44083 | PyObject *swig_obj[1] ; | |
44084 | ||
44085 | if (!args) SWIG_fail; | |
44086 | swig_obj[0] = args; | |
44087 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44088 | if (!SWIG_IsOK(res1)) { | |
44089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'"); | |
44090 | } | |
44091 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44092 | { | |
44093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44094 | result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue(); | |
44095 | wxPyEndAllowThreads(__tstate); | |
44096 | if (PyErr_Occurred()) SWIG_fail; | |
44097 | } | |
44098 | { | |
44099 | #if wxUSE_UNICODE | |
44100 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44101 | #else | |
44102 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44103 | #endif | |
44104 | } | |
44105 | return resultobj; | |
44106 | fail: | |
44107 | return NULL; | |
44108 | } | |
44109 | ||
44110 | ||
b850e7f3 RD |
44111 | SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
44112 | PyObject *obj; | |
44113 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
44114 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj)); | |
44115 | return SWIG_Py_Void(); | |
44116 | } | |
44117 | ||
44118 | SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44119 | return SWIG_Python_InitShadowInstance(args); | |
44120 | } | |
44121 | ||
44122 | SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44123 | PyObject *resultobj = 0; | |
44124 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44125 | int arg2 = (int) -1 ; | |
44126 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
44127 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
44128 | wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ; | |
44129 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
44130 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
44131 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
44132 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
44133 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
44134 | long arg7 = (long) wxDIRP_DEFAULT_STYLE ; | |
44135 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
44136 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
44137 | wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ; | |
44138 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
44139 | wxDirPickerCtrl *result = 0 ; | |
44140 | void *argp1 = 0 ; | |
44141 | int res1 = 0 ; | |
44142 | int val2 ; | |
44143 | int ecode2 = 0 ; | |
44144 | bool temp3 = false ; | |
44145 | bool temp4 = false ; | |
44146 | wxPoint temp5 ; | |
44147 | wxSize temp6 ; | |
44148 | long val7 ; | |
44149 | int ecode7 = 0 ; | |
44150 | void *argp8 = 0 ; | |
44151 | int res8 = 0 ; | |
44152 | bool temp9 = false ; | |
44153 | PyObject * obj0 = 0 ; | |
44154 | PyObject * obj1 = 0 ; | |
44155 | PyObject * obj2 = 0 ; | |
44156 | PyObject * obj3 = 0 ; | |
44157 | PyObject * obj4 = 0 ; | |
44158 | PyObject * obj5 = 0 ; | |
44159 | PyObject * obj6 = 0 ; | |
44160 | PyObject * obj7 = 0 ; | |
44161 | PyObject * obj8 = 0 ; | |
44162 | char * kwnames[] = { | |
44163 | (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
44164 | }; | |
44165 | ||
44166 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
44167 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
44168 | if (!SWIG_IsOK(res1)) { | |
44169 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
44170 | } | |
44171 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
44172 | if (obj1) { | |
44173 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
44174 | if (!SWIG_IsOK(ecode2)) { | |
44175 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
44176 | } | |
44177 | arg2 = static_cast< int >(val2); | |
44178 | } | |
44179 | if (obj2) { | |
44180 | { | |
44181 | arg3 = wxString_in_helper(obj2); | |
44182 | if (arg3 == NULL) SWIG_fail; | |
44183 | temp3 = true; | |
44184 | } | |
44185 | } | |
44186 | if (obj3) { | |
44187 | { | |
44188 | arg4 = wxString_in_helper(obj3); | |
44189 | if (arg4 == NULL) SWIG_fail; | |
44190 | temp4 = true; | |
44191 | } | |
44192 | } | |
44193 | if (obj4) { | |
44194 | { | |
44195 | arg5 = &temp5; | |
44196 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
44197 | } | |
44198 | } | |
44199 | if (obj5) { | |
44200 | { | |
44201 | arg6 = &temp6; | |
44202 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
44203 | } | |
44204 | } | |
44205 | if (obj6) { | |
44206 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
44207 | if (!SWIG_IsOK(ecode7)) { | |
44208 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'"); | |
44209 | } | |
44210 | arg7 = static_cast< long >(val7); | |
44211 | } | |
44212 | if (obj7) { | |
44213 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
44214 | if (!SWIG_IsOK(res8)) { | |
44215 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
44216 | } | |
44217 | if (!argp8) { | |
44218 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
44219 | } | |
44220 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
44221 | } | |
44222 | if (obj8) { | |
44223 | { | |
44224 | arg9 = wxString_in_helper(obj8); | |
44225 | if (arg9 == NULL) SWIG_fail; | |
44226 | temp9 = true; | |
44227 | } | |
44228 | } | |
44229 | { | |
44230 | if (!wxPyCheckForApp()) SWIG_fail; | |
44231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44232 | result = (wxDirPickerCtrl *)new wxDirPickerCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
44233 | wxPyEndAllowThreads(__tstate); | |
44234 | if (PyErr_Occurred()) SWIG_fail; | |
44235 | } | |
44236 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 ); | |
44237 | { | |
44238 | if (temp3) | |
44239 | delete arg3; | |
44240 | } | |
44241 | { | |
44242 | if (temp4) | |
44243 | delete arg4; | |
44244 | } | |
44245 | { | |
44246 | if (temp9) | |
44247 | delete arg9; | |
44248 | } | |
44249 | return resultobj; | |
44250 | fail: | |
44251 | { | |
44252 | if (temp3) | |
44253 | delete arg3; | |
44254 | } | |
44255 | { | |
44256 | if (temp4) | |
44257 | delete arg4; | |
44258 | } | |
44259 | { | |
44260 | if (temp9) | |
44261 | delete arg9; | |
44262 | } | |
44263 | return NULL; | |
44264 | } | |
44265 | ||
44266 | ||
44267 | SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44268 | PyObject *resultobj = 0; | |
44269 | wxDirPickerCtrl *result = 0 ; | |
44270 | ||
44271 | if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail; | |
44272 | { | |
44273 | if (!wxPyCheckForApp()) SWIG_fail; | |
44274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44275 | result = (wxDirPickerCtrl *)new wxDirPickerCtrl(); | |
44276 | wxPyEndAllowThreads(__tstate); | |
44277 | if (PyErr_Occurred()) SWIG_fail; | |
44278 | } | |
44279 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 ); | |
44280 | return resultobj; | |
44281 | fail: | |
44282 | return NULL; | |
44283 | } | |
44284 | ||
44285 | ||
44286 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44287 | PyObject *resultobj = 0; | |
44288 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44289 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44290 | int arg3 = (int) -1 ; | |
44291 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
44292 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
44293 | wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ; | |
44294 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
44295 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
44296 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
44297 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
44298 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
44299 | long arg8 = (long) wxDIRP_DEFAULT_STYLE ; | |
44300 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
44301 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
44302 | wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ; | |
44303 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
44304 | bool result; | |
44305 | void *argp1 = 0 ; | |
44306 | int res1 = 0 ; | |
44307 | void *argp2 = 0 ; | |
44308 | int res2 = 0 ; | |
44309 | int val3 ; | |
44310 | int ecode3 = 0 ; | |
44311 | bool temp4 = false ; | |
44312 | bool temp5 = false ; | |
44313 | wxPoint temp6 ; | |
44314 | wxSize temp7 ; | |
44315 | long val8 ; | |
44316 | int ecode8 = 0 ; | |
44317 | void *argp9 = 0 ; | |
44318 | int res9 = 0 ; | |
44319 | bool temp10 = false ; | |
44320 | PyObject * obj0 = 0 ; | |
44321 | PyObject * obj1 = 0 ; | |
44322 | PyObject * obj2 = 0 ; | |
44323 | PyObject * obj3 = 0 ; | |
44324 | PyObject * obj4 = 0 ; | |
44325 | PyObject * obj5 = 0 ; | |
44326 | PyObject * obj6 = 0 ; | |
44327 | PyObject * obj7 = 0 ; | |
44328 | PyObject * obj8 = 0 ; | |
44329 | PyObject * obj9 = 0 ; | |
44330 | char * kwnames[] = { | |
44331 | (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
44332 | }; | |
44333 | ||
44334 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
44335 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44336 | if (!SWIG_IsOK(res1)) { | |
44337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'"); | |
44338 | } | |
44339 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44340 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
44341 | if (!SWIG_IsOK(res2)) { | |
44342 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
44343 | } | |
44344 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
44345 | if (obj2) { | |
44346 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
44347 | if (!SWIG_IsOK(ecode3)) { | |
44348 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
44349 | } | |
44350 | arg3 = static_cast< int >(val3); | |
44351 | } | |
44352 | if (obj3) { | |
44353 | { | |
44354 | arg4 = wxString_in_helper(obj3); | |
44355 | if (arg4 == NULL) SWIG_fail; | |
44356 | temp4 = true; | |
44357 | } | |
44358 | } | |
44359 | if (obj4) { | |
44360 | { | |
44361 | arg5 = wxString_in_helper(obj4); | |
44362 | if (arg5 == NULL) SWIG_fail; | |
44363 | temp5 = true; | |
44364 | } | |
44365 | } | |
44366 | if (obj5) { | |
44367 | { | |
44368 | arg6 = &temp6; | |
44369 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
44370 | } | |
44371 | } | |
44372 | if (obj6) { | |
44373 | { | |
44374 | arg7 = &temp7; | |
44375 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
44376 | } | |
44377 | } | |
44378 | if (obj7) { | |
44379 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
44380 | if (!SWIG_IsOK(ecode8)) { | |
44381 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'"); | |
44382 | } | |
44383 | arg8 = static_cast< long >(val8); | |
44384 | } | |
44385 | if (obj8) { | |
44386 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
44387 | if (!SWIG_IsOK(res9)) { | |
44388 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
44389 | } | |
44390 | if (!argp9) { | |
44391 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
44392 | } | |
44393 | arg9 = reinterpret_cast< wxValidator * >(argp9); | |
44394 | } | |
44395 | if (obj9) { | |
44396 | { | |
44397 | arg10 = wxString_in_helper(obj9); | |
44398 | if (arg10 == NULL) SWIG_fail; | |
44399 | temp10 = true; | |
44400 | } | |
44401 | } | |
44402 | { | |
44403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44404 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
44405 | wxPyEndAllowThreads(__tstate); | |
44406 | if (PyErr_Occurred()) SWIG_fail; | |
44407 | } | |
44408 | { | |
44409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44410 | } | |
44411 | { | |
44412 | if (temp4) | |
44413 | delete arg4; | |
44414 | } | |
44415 | { | |
44416 | if (temp5) | |
44417 | delete arg5; | |
44418 | } | |
44419 | { | |
44420 | if (temp10) | |
44421 | delete arg10; | |
44422 | } | |
44423 | return resultobj; | |
44424 | fail: | |
44425 | { | |
44426 | if (temp4) | |
44427 | delete arg4; | |
44428 | } | |
44429 | { | |
44430 | if (temp5) | |
44431 | delete arg5; | |
44432 | } | |
44433 | { | |
44434 | if (temp10) | |
44435 | delete arg10; | |
44436 | } | |
44437 | return NULL; | |
44438 | } | |
44439 | ||
44440 | ||
44441 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44442 | PyObject *resultobj = 0; | |
44443 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44444 | wxString result; | |
44445 | void *argp1 = 0 ; | |
44446 | int res1 = 0 ; | |
44447 | PyObject *swig_obj[1] ; | |
44448 | ||
44449 | if (!args) SWIG_fail; | |
44450 | swig_obj[0] = args; | |
44451 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44452 | if (!SWIG_IsOK(res1)) { | |
44453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'"); | |
44454 | } | |
44455 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44456 | { | |
44457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44458 | result = ((wxDirPickerCtrl const *)arg1)->GetPath(); | |
44459 | wxPyEndAllowThreads(__tstate); | |
44460 | if (PyErr_Occurred()) SWIG_fail; | |
44461 | } | |
44462 | { | |
44463 | #if wxUSE_UNICODE | |
44464 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44465 | #else | |
44466 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44467 | #endif | |
44468 | } | |
44469 | return resultobj; | |
44470 | fail: | |
44471 | return NULL; | |
44472 | } | |
44473 | ||
44474 | ||
44475 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44476 | PyObject *resultobj = 0; | |
44477 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44478 | wxString *arg2 = 0 ; | |
44479 | void *argp1 = 0 ; | |
44480 | int res1 = 0 ; | |
44481 | bool temp2 = false ; | |
44482 | PyObject * obj0 = 0 ; | |
44483 | PyObject * obj1 = 0 ; | |
44484 | char * kwnames[] = { | |
44485 | (char *) "self",(char *) "str", NULL | |
44486 | }; | |
44487 | ||
44488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44490 | if (!SWIG_IsOK(res1)) { | |
44491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'"); | |
44492 | } | |
44493 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44494 | { | |
44495 | arg2 = wxString_in_helper(obj1); | |
44496 | if (arg2 == NULL) SWIG_fail; | |
44497 | temp2 = true; | |
44498 | } | |
44499 | { | |
44500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44501 | (arg1)->SetPath((wxString const &)*arg2); | |
44502 | wxPyEndAllowThreads(__tstate); | |
44503 | if (PyErr_Occurred()) SWIG_fail; | |
44504 | } | |
44505 | resultobj = SWIG_Py_Void(); | |
44506 | { | |
44507 | if (temp2) | |
44508 | delete arg2; | |
44509 | } | |
44510 | return resultobj; | |
44511 | fail: | |
44512 | { | |
44513 | if (temp2) | |
44514 | delete arg2; | |
44515 | } | |
44516 | return NULL; | |
44517 | } | |
44518 | ||
44519 | ||
b02396e8 RD |
44520 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
44521 | PyObject *resultobj = 0; | |
44522 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44523 | wxString *arg2 = 0 ; | |
44524 | bool result; | |
44525 | void *argp1 = 0 ; | |
44526 | int res1 = 0 ; | |
44527 | bool temp2 = false ; | |
44528 | PyObject * obj0 = 0 ; | |
44529 | PyObject * obj1 = 0 ; | |
44530 | char * kwnames[] = { | |
44531 | (char *) "self",(char *) "path", NULL | |
44532 | }; | |
44533 | ||
44534 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44535 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44536 | if (!SWIG_IsOK(res1)) { | |
44537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'"); | |
44538 | } | |
44539 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44540 | { | |
44541 | arg2 = wxString_in_helper(obj1); | |
44542 | if (arg2 == NULL) SWIG_fail; | |
44543 | temp2 = true; | |
44544 | } | |
44545 | { | |
44546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44547 | result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2); | |
44548 | wxPyEndAllowThreads(__tstate); | |
44549 | if (PyErr_Occurred()) SWIG_fail; | |
44550 | } | |
44551 | { | |
44552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44553 | } | |
44554 | { | |
44555 | if (temp2) | |
44556 | delete arg2; | |
44557 | } | |
44558 | return resultobj; | |
44559 | fail: | |
44560 | { | |
44561 | if (temp2) | |
44562 | delete arg2; | |
44563 | } | |
44564 | return NULL; | |
44565 | } | |
44566 | ||
44567 | ||
44568 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44569 | PyObject *resultobj = 0; | |
44570 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44571 | wxString result; | |
44572 | void *argp1 = 0 ; | |
44573 | int res1 = 0 ; | |
44574 | PyObject *swig_obj[1] ; | |
44575 | ||
44576 | if (!args) SWIG_fail; | |
44577 | swig_obj[0] = args; | |
44578 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44579 | if (!SWIG_IsOK(res1)) { | |
44580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'"); | |
44581 | } | |
44582 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44583 | { | |
44584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44585 | result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue(); | |
44586 | wxPyEndAllowThreads(__tstate); | |
44587 | if (PyErr_Occurred()) SWIG_fail; | |
44588 | } | |
44589 | { | |
44590 | #if wxUSE_UNICODE | |
44591 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44592 | #else | |
44593 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44594 | #endif | |
44595 | } | |
44596 | return resultobj; | |
44597 | fail: | |
44598 | return NULL; | |
44599 | } | |
44600 | ||
44601 | ||
b850e7f3 RD |
44602 | SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
44603 | PyObject *obj; | |
44604 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
44605 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj)); | |
44606 | return SWIG_Py_Void(); | |
44607 | } | |
44608 | ||
44609 | SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44610 | return SWIG_Python_InitShadowInstance(args); | |
44611 | } | |
44612 | ||
44613 | SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44614 | PyObject *resultobj = 0; | |
44615 | wxEventType arg1 ; | |
44616 | wxObject *arg2 = (wxObject *) 0 ; | |
44617 | int arg3 ; | |
44618 | wxString *arg4 = 0 ; | |
44619 | wxFileDirPickerEvent *result = 0 ; | |
44620 | int val1 ; | |
44621 | int ecode1 = 0 ; | |
44622 | void *argp2 = 0 ; | |
44623 | int res2 = 0 ; | |
44624 | int val3 ; | |
44625 | int ecode3 = 0 ; | |
44626 | bool temp4 = false ; | |
44627 | PyObject * obj0 = 0 ; | |
44628 | PyObject * obj1 = 0 ; | |
44629 | PyObject * obj2 = 0 ; | |
44630 | PyObject * obj3 = 0 ; | |
44631 | char * kwnames[] = { | |
44632 | (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL | |
44633 | }; | |
44634 | ||
44635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
44636 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
44637 | if (!SWIG_IsOK(ecode1)) { | |
44638 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
44639 | } | |
44640 | arg1 = static_cast< wxEventType >(val1); | |
44641 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 ); | |
44642 | if (!SWIG_IsOK(res2)) { | |
44643 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'"); | |
44644 | } | |
44645 | arg2 = reinterpret_cast< wxObject * >(argp2); | |
44646 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
44647 | if (!SWIG_IsOK(ecode3)) { | |
44648 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'"); | |
44649 | } | |
44650 | arg3 = static_cast< int >(val3); | |
44651 | { | |
44652 | arg4 = wxString_in_helper(obj3); | |
44653 | if (arg4 == NULL) SWIG_fail; | |
44654 | temp4 = true; | |
44655 | } | |
44656 | { | |
44657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44658 | result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4); | |
44659 | wxPyEndAllowThreads(__tstate); | |
44660 | if (PyErr_Occurred()) SWIG_fail; | |
44661 | } | |
44662 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 ); | |
44663 | { | |
44664 | if (temp4) | |
44665 | delete arg4; | |
44666 | } | |
44667 | return resultobj; | |
44668 | fail: | |
44669 | { | |
44670 | if (temp4) | |
44671 | delete arg4; | |
44672 | } | |
44673 | return NULL; | |
44674 | } | |
44675 | ||
44676 | ||
44677 | SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44678 | PyObject *resultobj = 0; | |
44679 | wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ; | |
44680 | wxString result; | |
44681 | void *argp1 = 0 ; | |
44682 | int res1 = 0 ; | |
44683 | PyObject *swig_obj[1] ; | |
44684 | ||
44685 | if (!args) SWIG_fail; | |
44686 | swig_obj[0] = args; | |
44687 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 ); | |
44688 | if (!SWIG_IsOK(res1)) { | |
44689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'"); | |
44690 | } | |
44691 | arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1); | |
44692 | { | |
44693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44694 | result = ((wxFileDirPickerEvent const *)arg1)->GetPath(); | |
44695 | wxPyEndAllowThreads(__tstate); | |
44696 | if (PyErr_Occurred()) SWIG_fail; | |
44697 | } | |
44698 | { | |
44699 | #if wxUSE_UNICODE | |
44700 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44701 | #else | |
44702 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44703 | #endif | |
44704 | } | |
44705 | return resultobj; | |
44706 | fail: | |
44707 | return NULL; | |
44708 | } | |
44709 | ||
44710 | ||
44711 | SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44712 | PyObject *resultobj = 0; | |
44713 | wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ; | |
44714 | wxString *arg2 = 0 ; | |
44715 | void *argp1 = 0 ; | |
44716 | int res1 = 0 ; | |
44717 | bool temp2 = false ; | |
44718 | PyObject * obj0 = 0 ; | |
44719 | PyObject * obj1 = 0 ; | |
44720 | char * kwnames[] = { | |
44721 | (char *) "self",(char *) "p", NULL | |
44722 | }; | |
44723 | ||
44724 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44725 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 ); | |
44726 | if (!SWIG_IsOK(res1)) { | |
44727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'"); | |
44728 | } | |
44729 | arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1); | |
44730 | { | |
44731 | arg2 = wxString_in_helper(obj1); | |
44732 | if (arg2 == NULL) SWIG_fail; | |
44733 | temp2 = true; | |
44734 | } | |
44735 | { | |
44736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44737 | (arg1)->SetPath((wxString const &)*arg2); | |
44738 | wxPyEndAllowThreads(__tstate); | |
44739 | if (PyErr_Occurred()) SWIG_fail; | |
44740 | } | |
44741 | resultobj = SWIG_Py_Void(); | |
44742 | { | |
44743 | if (temp2) | |
44744 | delete arg2; | |
44745 | } | |
44746 | return resultobj; | |
44747 | fail: | |
44748 | { | |
44749 | if (temp2) | |
44750 | delete arg2; | |
44751 | } | |
44752 | return NULL; | |
44753 | } | |
44754 | ||
44755 | ||
44756 | SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44757 | PyObject *obj; | |
44758 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
44759 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj)); | |
44760 | return SWIG_Py_Void(); | |
44761 | } | |
44762 | ||
44763 | SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44764 | return SWIG_Python_InitShadowInstance(args); | |
44765 | } | |
44766 | ||
44767 | SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) { | |
44768 | SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only."); | |
44769 | return 1; | |
44770 | } | |
44771 | ||
44772 | ||
44773 | SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) { | |
44774 | PyObject *pyobj = 0; | |
44775 | ||
44776 | { | |
44777 | #if wxUSE_UNICODE | |
44778 | pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len()); | |
44779 | #else | |
44780 | pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len()); | |
44781 | #endif | |
44782 | } | |
44783 | return pyobj; | |
44784 | } | |
44785 | ||
44786 | ||
44787 | SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44788 | PyObject *resultobj = 0; | |
44789 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44790 | int arg2 = (int) -1 ; | |
f89238b9 | 44791 | wxFont const &arg3_defvalue = wxNullFont ; |
b850e7f3 RD |
44792 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; |
44793 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
44794 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
44795 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
44796 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
44797 | long arg6 = (long) wxFNTP_DEFAULT_STYLE ; | |
44798 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
44799 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
44800 | wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ; | |
44801 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
44802 | wxFontPickerCtrl *result = 0 ; | |
44803 | void *argp1 = 0 ; | |
44804 | int res1 = 0 ; | |
44805 | int val2 ; | |
44806 | int ecode2 = 0 ; | |
44807 | void *argp3 = 0 ; | |
44808 | int res3 = 0 ; | |
44809 | wxPoint temp4 ; | |
44810 | wxSize temp5 ; | |
44811 | long val6 ; | |
44812 | int ecode6 = 0 ; | |
44813 | void *argp7 = 0 ; | |
44814 | int res7 = 0 ; | |
44815 | bool temp8 = false ; | |
44816 | PyObject * obj0 = 0 ; | |
44817 | PyObject * obj1 = 0 ; | |
44818 | PyObject * obj2 = 0 ; | |
44819 | PyObject * obj3 = 0 ; | |
44820 | PyObject * obj4 = 0 ; | |
44821 | PyObject * obj5 = 0 ; | |
44822 | PyObject * obj6 = 0 ; | |
44823 | PyObject * obj7 = 0 ; | |
44824 | char * kwnames[] = { | |
44825 | (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
44826 | }; | |
44827 | ||
44828 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
44829 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
44830 | if (!SWIG_IsOK(res1)) { | |
44831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
44832 | } | |
44833 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
44834 | if (obj1) { | |
44835 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
44836 | if (!SWIG_IsOK(ecode2)) { | |
44837 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
44838 | } | |
44839 | arg2 = static_cast< int >(val2); | |
44840 | } | |
44841 | if (obj2) { | |
44842 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
44843 | if (!SWIG_IsOK(res3)) { | |
44844 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
44845 | } | |
44846 | if (!argp3) { | |
44847 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
44848 | } | |
44849 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
44850 | } | |
44851 | if (obj3) { | |
44852 | { | |
44853 | arg4 = &temp4; | |
44854 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
44855 | } | |
44856 | } | |
44857 | if (obj4) { | |
44858 | { | |
44859 | arg5 = &temp5; | |
44860 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
44861 | } | |
44862 | } | |
44863 | if (obj5) { | |
44864 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
44865 | if (!SWIG_IsOK(ecode6)) { | |
44866 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'"); | |
44867 | } | |
44868 | arg6 = static_cast< long >(val6); | |
44869 | } | |
44870 | if (obj6) { | |
44871 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
44872 | if (!SWIG_IsOK(res7)) { | |
44873 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
44874 | } | |
44875 | if (!argp7) { | |
44876 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
44877 | } | |
44878 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
44879 | } | |
44880 | if (obj7) { | |
44881 | { | |
44882 | arg8 = wxString_in_helper(obj7); | |
44883 | if (arg8 == NULL) SWIG_fail; | |
44884 | temp8 = true; | |
44885 | } | |
44886 | } | |
44887 | { | |
44888 | if (!wxPyCheckForApp()) SWIG_fail; | |
44889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44890 | result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
44891 | wxPyEndAllowThreads(__tstate); | |
44892 | if (PyErr_Occurred()) SWIG_fail; | |
44893 | } | |
44894 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 ); | |
44895 | { | |
44896 | if (temp8) | |
44897 | delete arg8; | |
44898 | } | |
44899 | return resultobj; | |
44900 | fail: | |
44901 | { | |
44902 | if (temp8) | |
44903 | delete arg8; | |
44904 | } | |
44905 | return NULL; | |
44906 | } | |
44907 | ||
44908 | ||
44909 | SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44910 | PyObject *resultobj = 0; | |
44911 | wxFontPickerCtrl *result = 0 ; | |
44912 | ||
44913 | if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail; | |
44914 | { | |
44915 | if (!wxPyCheckForApp()) SWIG_fail; | |
44916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44917 | result = (wxFontPickerCtrl *)new wxFontPickerCtrl(); | |
44918 | wxPyEndAllowThreads(__tstate); | |
44919 | if (PyErr_Occurred()) SWIG_fail; | |
44920 | } | |
44921 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 ); | |
44922 | return resultobj; | |
44923 | fail: | |
44924 | return NULL; | |
44925 | } | |
44926 | ||
44927 | ||
44928 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44929 | PyObject *resultobj = 0; | |
44930 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
44931 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44932 | int arg3 = (int) -1 ; | |
f89238b9 | 44933 | wxFont const &arg4_defvalue = wxNullFont ; |
b850e7f3 RD |
44934 | wxFont *arg4 = (wxFont *) &arg4_defvalue ; |
44935 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
44936 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
44937 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
44938 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
44939 | long arg7 = (long) wxFNTP_DEFAULT_STYLE ; | |
44940 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
44941 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
44942 | wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ; | |
44943 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
44944 | bool result; | |
44945 | void *argp1 = 0 ; | |
44946 | int res1 = 0 ; | |
44947 | void *argp2 = 0 ; | |
44948 | int res2 = 0 ; | |
44949 | int val3 ; | |
44950 | int ecode3 = 0 ; | |
44951 | void *argp4 = 0 ; | |
44952 | int res4 = 0 ; | |
44953 | wxPoint temp5 ; | |
44954 | wxSize temp6 ; | |
44955 | long val7 ; | |
44956 | int ecode7 = 0 ; | |
44957 | void *argp8 = 0 ; | |
44958 | int res8 = 0 ; | |
44959 | bool temp9 = false ; | |
44960 | PyObject * obj0 = 0 ; | |
44961 | PyObject * obj1 = 0 ; | |
44962 | PyObject * obj2 = 0 ; | |
44963 | PyObject * obj3 = 0 ; | |
44964 | PyObject * obj4 = 0 ; | |
44965 | PyObject * obj5 = 0 ; | |
44966 | PyObject * obj6 = 0 ; | |
44967 | PyObject * obj7 = 0 ; | |
44968 | PyObject * obj8 = 0 ; | |
44969 | char * kwnames[] = { | |
44970 | (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
44971 | }; | |
44972 | ||
44973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
44974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
44975 | if (!SWIG_IsOK(res1)) { | |
44976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'"); | |
44977 | } | |
44978 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
44979 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
44980 | if (!SWIG_IsOK(res2)) { | |
44981 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
44982 | } | |
44983 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
44984 | if (obj2) { | |
44985 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
44986 | if (!SWIG_IsOK(ecode3)) { | |
44987 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
44988 | } | |
44989 | arg3 = static_cast< int >(val3); | |
44990 | } | |
44991 | if (obj3) { | |
44992 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0); | |
44993 | if (!SWIG_IsOK(res4)) { | |
44994 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'"); | |
44995 | } | |
44996 | if (!argp4) { | |
44997 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'"); | |
44998 | } | |
44999 | arg4 = reinterpret_cast< wxFont * >(argp4); | |
45000 | } | |
45001 | if (obj4) { | |
45002 | { | |
45003 | arg5 = &temp5; | |
45004 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
45005 | } | |
45006 | } | |
45007 | if (obj5) { | |
45008 | { | |
45009 | arg6 = &temp6; | |
45010 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
45011 | } | |
45012 | } | |
45013 | if (obj6) { | |
45014 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
45015 | if (!SWIG_IsOK(ecode7)) { | |
45016 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
45017 | } | |
45018 | arg7 = static_cast< long >(val7); | |
45019 | } | |
45020 | if (obj7) { | |
45021 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
45022 | if (!SWIG_IsOK(res8)) { | |
45023 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
45024 | } | |
45025 | if (!argp8) { | |
45026 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
45027 | } | |
45028 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
45029 | } | |
45030 | if (obj8) { | |
45031 | { | |
45032 | arg9 = wxString_in_helper(obj8); | |
45033 | if (arg9 == NULL) SWIG_fail; | |
45034 | temp9 = true; | |
45035 | } | |
45036 | } | |
45037 | { | |
45038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45039 | result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
45040 | wxPyEndAllowThreads(__tstate); | |
45041 | if (PyErr_Occurred()) SWIG_fail; | |
45042 | } | |
45043 | { | |
45044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
45045 | } | |
45046 | { | |
45047 | if (temp9) | |
45048 | delete arg9; | |
45049 | } | |
45050 | return resultobj; | |
45051 | fail: | |
45052 | { | |
45053 | if (temp9) | |
45054 | delete arg9; | |
45055 | } | |
45056 | return NULL; | |
45057 | } | |
45058 | ||
45059 | ||
45060 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45061 | PyObject *resultobj = 0; | |
45062 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45063 | wxFont result; | |
45064 | void *argp1 = 0 ; | |
45065 | int res1 = 0 ; | |
45066 | PyObject *swig_obj[1] ; | |
45067 | ||
45068 | if (!args) SWIG_fail; | |
45069 | swig_obj[0] = args; | |
45070 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45071 | if (!SWIG_IsOK(res1)) { | |
45072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'"); | |
45073 | } | |
45074 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45075 | { | |
45076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45077 | result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont(); | |
45078 | wxPyEndAllowThreads(__tstate); | |
45079 | if (PyErr_Occurred()) SWIG_fail; | |
45080 | } | |
45081 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
45082 | return resultobj; | |
45083 | fail: | |
45084 | return NULL; | |
45085 | } | |
45086 | ||
45087 | ||
45088 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45089 | PyObject *resultobj = 0; | |
45090 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45091 | wxFont *arg2 = 0 ; | |
45092 | void *argp1 = 0 ; | |
45093 | int res1 = 0 ; | |
45094 | void *argp2 = 0 ; | |
45095 | int res2 = 0 ; | |
45096 | PyObject * obj0 = 0 ; | |
45097 | PyObject * obj1 = 0 ; | |
45098 | char * kwnames[] = { | |
45099 | (char *) "self",(char *) "f", NULL | |
45100 | }; | |
45101 | ||
45102 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
45103 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45104 | if (!SWIG_IsOK(res1)) { | |
45105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'"); | |
45106 | } | |
45107 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45108 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
45109 | if (!SWIG_IsOK(res2)) { | |
45110 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45111 | } | |
45112 | if (!argp2) { | |
45113 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45114 | } | |
45115 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
45116 | { | |
45117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45118 | (arg1)->SetSelectedFont((wxFont const &)*arg2); | |
45119 | wxPyEndAllowThreads(__tstate); | |
45120 | if (PyErr_Occurred()) SWIG_fail; | |
45121 | } | |
45122 | resultobj = SWIG_Py_Void(); | |
45123 | return resultobj; | |
45124 | fail: | |
45125 | return NULL; | |
45126 | } | |
45127 | ||
45128 | ||
45129 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45130 | PyObject *resultobj = 0; | |
45131 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45132 | unsigned int arg2 ; | |
45133 | void *argp1 = 0 ; | |
45134 | int res1 = 0 ; | |
45135 | unsigned int val2 ; | |
45136 | int ecode2 = 0 ; | |
45137 | PyObject * obj0 = 0 ; | |
45138 | PyObject * obj1 = 0 ; | |
45139 | char * kwnames[] = { | |
45140 | (char *) "self",(char *) "max", NULL | |
45141 | }; | |
45142 | ||
45143 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
45144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45145 | if (!SWIG_IsOK(res1)) { | |
45146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'"); | |
45147 | } | |
45148 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45149 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
45150 | if (!SWIG_IsOK(ecode2)) { | |
45151 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'"); | |
45152 | } | |
45153 | arg2 = static_cast< unsigned int >(val2); | |
45154 | { | |
45155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45156 | (arg1)->SetMaxPointSize(arg2); | |
45157 | wxPyEndAllowThreads(__tstate); | |
45158 | if (PyErr_Occurred()) SWIG_fail; | |
45159 | } | |
45160 | resultobj = SWIG_Py_Void(); | |
45161 | return resultobj; | |
45162 | fail: | |
45163 | return NULL; | |
45164 | } | |
45165 | ||
45166 | ||
45167 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45168 | PyObject *resultobj = 0; | |
45169 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45170 | unsigned int result; | |
45171 | void *argp1 = 0 ; | |
45172 | int res1 = 0 ; | |
45173 | PyObject *swig_obj[1] ; | |
45174 | ||
45175 | if (!args) SWIG_fail; | |
45176 | swig_obj[0] = args; | |
45177 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45178 | if (!SWIG_IsOK(res1)) { | |
45179 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'"); | |
45180 | } | |
45181 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45182 | { | |
45183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45184 | result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize(); | |
45185 | wxPyEndAllowThreads(__tstate); | |
45186 | if (PyErr_Occurred()) SWIG_fail; | |
45187 | } | |
45188 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
45189 | return resultobj; | |
45190 | fail: | |
45191 | return NULL; | |
45192 | } | |
45193 | ||
45194 | ||
45195 | SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45196 | PyObject *obj; | |
45197 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
45198 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj)); | |
45199 | return SWIG_Py_Void(); | |
45200 | } | |
45201 | ||
45202 | SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45203 | return SWIG_Python_InitShadowInstance(args); | |
45204 | } | |
45205 | ||
45206 | SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45207 | PyObject *resultobj = 0; | |
45208 | wxObject *arg1 = (wxObject *) 0 ; | |
45209 | int arg2 ; | |
45210 | wxFont *arg3 = 0 ; | |
45211 | wxFontPickerEvent *result = 0 ; | |
45212 | void *argp1 = 0 ; | |
45213 | int res1 = 0 ; | |
45214 | int val2 ; | |
45215 | int ecode2 = 0 ; | |
45216 | void *argp3 = 0 ; | |
45217 | int res3 = 0 ; | |
45218 | PyObject * obj0 = 0 ; | |
45219 | PyObject * obj1 = 0 ; | |
45220 | PyObject * obj2 = 0 ; | |
45221 | char * kwnames[] = { | |
45222 | (char *) "generator",(char *) "id",(char *) "f", NULL | |
45223 | }; | |
45224 | ||
45225 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
45226 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 ); | |
45227 | if (!SWIG_IsOK(res1)) { | |
45228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'"); | |
45229 | } | |
45230 | arg1 = reinterpret_cast< wxObject * >(argp1); | |
45231 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
45232 | if (!SWIG_IsOK(ecode2)) { | |
45233 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'"); | |
45234 | } | |
45235 | arg2 = static_cast< int >(val2); | |
45236 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
45237 | if (!SWIG_IsOK(res3)) { | |
45238 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
45239 | } | |
45240 | if (!argp3) { | |
45241 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
45242 | } | |
45243 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
45244 | { | |
45245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45246 | result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3); | |
45247 | wxPyEndAllowThreads(__tstate); | |
45248 | if (PyErr_Occurred()) SWIG_fail; | |
45249 | } | |
45250 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 ); | |
45251 | return resultobj; | |
45252 | fail: | |
45253 | return NULL; | |
45254 | } | |
45255 | ||
45256 | ||
45257 | SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45258 | PyObject *resultobj = 0; | |
45259 | wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ; | |
45260 | wxFont result; | |
45261 | void *argp1 = 0 ; | |
45262 | int res1 = 0 ; | |
45263 | PyObject *swig_obj[1] ; | |
45264 | ||
45265 | if (!args) SWIG_fail; | |
45266 | swig_obj[0] = args; | |
45267 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 ); | |
45268 | if (!SWIG_IsOK(res1)) { | |
45269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'"); | |
45270 | } | |
45271 | arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1); | |
45272 | { | |
45273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45274 | result = ((wxFontPickerEvent const *)arg1)->GetFont(); | |
45275 | wxPyEndAllowThreads(__tstate); | |
45276 | if (PyErr_Occurred()) SWIG_fail; | |
45277 | } | |
45278 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
45279 | return resultobj; | |
45280 | fail: | |
45281 | return NULL; | |
45282 | } | |
45283 | ||
45284 | ||
45285 | SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45286 | PyObject *resultobj = 0; | |
45287 | wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ; | |
45288 | wxFont *arg2 = 0 ; | |
45289 | void *argp1 = 0 ; | |
45290 | int res1 = 0 ; | |
45291 | void *argp2 = 0 ; | |
45292 | int res2 = 0 ; | |
45293 | PyObject * obj0 = 0 ; | |
45294 | PyObject * obj1 = 0 ; | |
45295 | char * kwnames[] = { | |
45296 | (char *) "self",(char *) "c", NULL | |
45297 | }; | |
45298 | ||
45299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
45300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 ); | |
45301 | if (!SWIG_IsOK(res1)) { | |
45302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'"); | |
45303 | } | |
45304 | arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1); | |
45305 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
45306 | if (!SWIG_IsOK(res2)) { | |
45307 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45308 | } | |
45309 | if (!argp2) { | |
45310 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45311 | } | |
45312 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
45313 | { | |
45314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45315 | (arg1)->SetFont((wxFont const &)*arg2); | |
45316 | wxPyEndAllowThreads(__tstate); | |
45317 | if (PyErr_Occurred()) SWIG_fail; | |
45318 | } | |
45319 | resultobj = SWIG_Py_Void(); | |
45320 | return resultobj; | |
45321 | fail: | |
45322 | return NULL; | |
45323 | } | |
45324 | ||
45325 | ||
45326 | SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45327 | PyObject *obj; | |
45328 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
45329 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj)); | |
45330 | return SWIG_Py_Void(); | |
45331 | } | |
45332 | ||
45333 | SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45334 | return SWIG_Python_InitShadowInstance(args); | |
45335 | } | |
45336 | ||
5172800e RD |
45337 | SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) { |
45338 | SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only."); | |
45339 | return 1; | |
45340 | } | |
45341 | ||
45342 | ||
45343 | SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) { | |
45344 | PyObject *pyobj = 0; | |
45345 | ||
45346 | { | |
45347 | #if wxUSE_UNICODE | |
45348 | pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len()); | |
45349 | #else | |
45350 | pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len()); | |
45351 | #endif | |
45352 | } | |
45353 | return pyobj; | |
45354 | } | |
45355 | ||
45356 | ||
45357 | SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45358 | PyObject *resultobj = 0; | |
45359 | wxWindow *arg1 = (wxWindow *) 0 ; | |
45360 | int arg2 = (int) -1 ; | |
45361 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
45362 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
45363 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
45364 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
45365 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
45366 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
45367 | long arg6 = (long) wxCP_DEFAULT_STYLE ; | |
45368 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
45369 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
45370 | wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ; | |
45371 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
45372 | wxCollapsiblePane *result = 0 ; | |
45373 | void *argp1 = 0 ; | |
45374 | int res1 = 0 ; | |
45375 | int val2 ; | |
45376 | int ecode2 = 0 ; | |
45377 | bool temp3 = false ; | |
45378 | wxPoint temp4 ; | |
45379 | wxSize temp5 ; | |
45380 | long val6 ; | |
45381 | int ecode6 = 0 ; | |
45382 | void *argp7 = 0 ; | |
45383 | int res7 = 0 ; | |
45384 | bool temp8 = false ; | |
45385 | PyObject * obj0 = 0 ; | |
45386 | PyObject * obj1 = 0 ; | |
45387 | PyObject * obj2 = 0 ; | |
45388 | PyObject * obj3 = 0 ; | |
45389 | PyObject * obj4 = 0 ; | |
45390 | PyObject * obj5 = 0 ; | |
45391 | PyObject * obj6 = 0 ; | |
45392 | PyObject * obj7 = 0 ; | |
45393 | char * kwnames[] = { | |
45394 | (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL | |
45395 | }; | |
45396 | ||
45397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
45398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
45399 | if (!SWIG_IsOK(res1)) { | |
45400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
45401 | } | |
45402 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
45403 | if (obj1) { | |
45404 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
45405 | if (!SWIG_IsOK(ecode2)) { | |
45406 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'"); | |
45407 | } | |
45408 | arg2 = static_cast< int >(val2); | |
45409 | } | |
45410 | if (obj2) { | |
45411 | { | |
45412 | arg3 = wxString_in_helper(obj2); | |
45413 | if (arg3 == NULL) SWIG_fail; | |
45414 | temp3 = true; | |
45415 | } | |
45416 | } | |
45417 | if (obj3) { | |
45418 | { | |
45419 | arg4 = &temp4; | |
45420 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
45421 | } | |
45422 | } | |
45423 | if (obj4) { | |
45424 | { | |
45425 | arg5 = &temp5; | |
45426 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
45427 | } | |
45428 | } | |
45429 | if (obj5) { | |
45430 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
45431 | if (!SWIG_IsOK(ecode6)) { | |
45432 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'"); | |
45433 | } | |
45434 | arg6 = static_cast< long >(val6); | |
45435 | } | |
45436 | if (obj6) { | |
45437 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
45438 | if (!SWIG_IsOK(res7)) { | |
45439 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
45440 | } | |
45441 | if (!argp7) { | |
45442 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
45443 | } | |
45444 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
45445 | } | |
45446 | if (obj7) { | |
45447 | { | |
45448 | arg8 = wxString_in_helper(obj7); | |
45449 | if (arg8 == NULL) SWIG_fail; | |
45450 | temp8 = true; | |
45451 | } | |
45452 | } | |
45453 | { | |
45454 | if (!wxPyCheckForApp()) SWIG_fail; | |
45455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45456 | result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
45457 | wxPyEndAllowThreads(__tstate); | |
45458 | if (PyErr_Occurred()) SWIG_fail; | |
45459 | } | |
45460 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 ); | |
45461 | { | |
45462 | if (temp3) | |
45463 | delete arg3; | |
45464 | } | |
45465 | { | |
45466 | if (temp8) | |
45467 | delete arg8; | |
45468 | } | |
45469 | return resultobj; | |
45470 | fail: | |
45471 | { | |
45472 | if (temp3) | |
45473 | delete arg3; | |
45474 | } | |
45475 | { | |
45476 | if (temp8) | |
45477 | delete arg8; | |
45478 | } | |
45479 | return NULL; | |
45480 | } | |
45481 | ||
45482 | ||
45483 | SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45484 | PyObject *resultobj = 0; | |
45485 | wxCollapsiblePane *result = 0 ; | |
45486 | ||
45487 | if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail; | |
45488 | { | |
45489 | if (!wxPyCheckForApp()) SWIG_fail; | |
45490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45491 | result = (wxCollapsiblePane *)new wxCollapsiblePane(); | |
45492 | wxPyEndAllowThreads(__tstate); | |
45493 | if (PyErr_Occurred()) SWIG_fail; | |
45494 | } | |
45495 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 ); | |
45496 | return resultobj; | |
45497 | fail: | |
45498 | return NULL; | |
45499 | } | |
45500 | ||
45501 | ||
45502 | SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45503 | PyObject *resultobj = 0; | |
45504 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
45505 | wxWindow *arg2 = (wxWindow *) 0 ; | |
45506 | int arg3 = (int) -1 ; | |
45507 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
45508 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
45509 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
45510 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
45511 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
45512 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
45513 | long arg7 = (long) wxCP_DEFAULT_STYLE ; | |
45514 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
45515 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
45516 | wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ; | |
45517 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
45518 | bool result; | |
45519 | void *argp1 = 0 ; | |
45520 | int res1 = 0 ; | |
45521 | void *argp2 = 0 ; | |
45522 | int res2 = 0 ; | |
45523 | int val3 ; | |
45524 | int ecode3 = 0 ; | |
45525 | bool temp4 = false ; | |
45526 | wxPoint temp5 ; | |
45527 | wxSize temp6 ; | |
45528 | long val7 ; | |
45529 | int ecode7 = 0 ; | |
45530 | void *argp8 = 0 ; | |
45531 | int res8 = 0 ; | |
45532 | bool temp9 = false ; | |
45533 | PyObject * obj0 = 0 ; | |
45534 | PyObject * obj1 = 0 ; | |
45535 | PyObject * obj2 = 0 ; | |
45536 | PyObject * obj3 = 0 ; | |
45537 | PyObject * obj4 = 0 ; | |
45538 | PyObject * obj5 = 0 ; | |
45539 | PyObject * obj6 = 0 ; | |
45540 | PyObject * obj7 = 0 ; | |
45541 | PyObject * obj8 = 0 ; | |
45542 | char * kwnames[] = { | |
45543 | (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL | |
45544 | }; | |
45545 | ||
45546 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
45547 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
45548 | if (!SWIG_IsOK(res1)) { | |
45549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'"); | |
45550 | } | |
45551 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
45552 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
45553 | if (!SWIG_IsOK(res2)) { | |
45554 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
45555 | } | |
45556 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
45557 | if (obj2) { | |
45558 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
45559 | if (!SWIG_IsOK(ecode3)) { | |
45560 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'"); | |
45561 | } | |
45562 | arg3 = static_cast< int >(val3); | |
45563 | } | |
45564 | if (obj3) { | |
45565 | { | |
45566 | arg4 = wxString_in_helper(obj3); | |
45567 | if (arg4 == NULL) SWIG_fail; | |
45568 | temp4 = true; | |
45569 | } | |
45570 | } | |
45571 | if (obj4) { | |
45572 | { | |
45573 | arg5 = &temp5; | |
45574 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
45575 | } | |
45576 | } | |
45577 | if (obj5) { | |
45578 | { | |
45579 | arg6 = &temp6; | |
45580 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
45581 | } | |
45582 | } | |
45583 | if (obj6) { | |
45584 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
45585 | if (!SWIG_IsOK(ecode7)) { | |
45586 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'"); | |
45587 | } | |
45588 | arg7 = static_cast< long >(val7); | |
45589 | } | |
45590 | if (obj7) { | |
45591 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
45592 | if (!SWIG_IsOK(res8)) { | |
45593 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
45594 | } | |
45595 | if (!argp8) { | |
45596 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
45597 | } | |
45598 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
45599 | } | |
45600 | if (obj8) { | |
45601 | { | |
45602 | arg9 = wxString_in_helper(obj8); | |
45603 | if (arg9 == NULL) SWIG_fail; | |
45604 | temp9 = true; | |
45605 | } | |
45606 | } | |
45607 | { | |
45608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45609 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
45610 | wxPyEndAllowThreads(__tstate); | |
45611 | if (PyErr_Occurred()) SWIG_fail; | |
45612 | } | |
45613 | { | |
45614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
45615 | } | |
45616 | { | |
45617 | if (temp4) | |
45618 | delete arg4; | |
45619 | } | |
45620 | { | |
45621 | if (temp9) | |
45622 | delete arg9; | |
45623 | } | |
45624 | return resultobj; | |
45625 | fail: | |
45626 | { | |
45627 | if (temp4) | |
45628 | delete arg4; | |
45629 | } | |
45630 | { | |
45631 | if (temp9) | |
45632 | delete arg9; | |
45633 | } | |
45634 | return NULL; | |
45635 | } | |
45636 | ||
45637 | ||
45638 | SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45639 | PyObject *resultobj = 0; | |
45640 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
45641 | bool arg2 = (bool) true ; | |
45642 | void *argp1 = 0 ; | |
45643 | int res1 = 0 ; | |
45644 | bool val2 ; | |
45645 | int ecode2 = 0 ; | |
45646 | PyObject * obj0 = 0 ; | |
45647 | PyObject * obj1 = 0 ; | |
45648 | char * kwnames[] = { | |
45649 | (char *) "self",(char *) "collapse", NULL | |
45650 | }; | |
45651 | ||
45652 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail; | |
45653 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
45654 | if (!SWIG_IsOK(res1)) { | |
45655 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'"); | |
45656 | } | |
45657 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
45658 | if (obj1) { | |
45659 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
45660 | if (!SWIG_IsOK(ecode2)) { | |
45661 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'"); | |
45662 | } | |
45663 | arg2 = static_cast< bool >(val2); | |
45664 | } | |
45665 | { | |
45666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45667 | (arg1)->Collapse(arg2); | |
45668 | wxPyEndAllowThreads(__tstate); | |
45669 | if (PyErr_Occurred()) SWIG_fail; | |
45670 | } | |
45671 | resultobj = SWIG_Py_Void(); | |
45672 | return resultobj; | |
45673 | fail: | |
45674 | return NULL; | |
45675 | } | |
45676 | ||
45677 | ||
45678 | SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45679 | PyObject *resultobj = 0; | |
45680 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
45681 | void *argp1 = 0 ; | |
45682 | int res1 = 0 ; | |
45683 | PyObject *swig_obj[1] ; | |
45684 | ||
45685 | if (!args) SWIG_fail; | |
45686 | swig_obj[0] = args; | |
45687 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
45688 | if (!SWIG_IsOK(res1)) { | |
45689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'"); | |
45690 | } | |
45691 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
45692 | { | |
45693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45694 | (arg1)->Expand(); | |
45695 | wxPyEndAllowThreads(__tstate); | |
45696 | if (PyErr_Occurred()) SWIG_fail; | |
45697 | } | |
45698 | resultobj = SWIG_Py_Void(); | |
45699 | return resultobj; | |
45700 | fail: | |
45701 | return NULL; | |
45702 | } | |
45703 | ||
45704 | ||
45705 | SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45706 | PyObject *resultobj = 0; | |
45707 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
45708 | bool result; | |
45709 | void *argp1 = 0 ; | |
45710 | int res1 = 0 ; | |
45711 | PyObject *swig_obj[1] ; | |
45712 | ||
45713 | if (!args) SWIG_fail; | |
45714 | swig_obj[0] = args; | |
45715 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
45716 | if (!SWIG_IsOK(res1)) { | |
45717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'"); | |
45718 | } | |
45719 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
45720 | { | |
45721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45722 | result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed(); | |
45723 | wxPyEndAllowThreads(__tstate); | |
45724 | if (PyErr_Occurred()) SWIG_fail; | |
45725 | } | |
45726 | { | |
45727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
45728 | } | |
45729 | return resultobj; | |
45730 | fail: | |
45731 | return NULL; | |
45732 | } | |
45733 | ||
45734 | ||
45735 | SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45736 | PyObject *resultobj = 0; | |
45737 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
45738 | bool result; | |
45739 | void *argp1 = 0 ; | |
45740 | int res1 = 0 ; | |
45741 | PyObject *swig_obj[1] ; | |
45742 | ||
45743 | if (!args) SWIG_fail; | |
45744 | swig_obj[0] = args; | |
45745 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
45746 | if (!SWIG_IsOK(res1)) { | |
45747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'"); | |
45748 | } | |
45749 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
45750 | { | |
45751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45752 | result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded(); | |
45753 | wxPyEndAllowThreads(__tstate); | |
45754 | if (PyErr_Occurred()) SWIG_fail; | |
45755 | } | |
45756 | { | |
45757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
45758 | } | |
45759 | return resultobj; | |
45760 | fail: | |
45761 | return NULL; | |
45762 | } | |
45763 | ||
45764 | ||
45765 | SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45766 | PyObject *resultobj = 0; | |
45767 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
45768 | wxWindow *result = 0 ; | |
45769 | void *argp1 = 0 ; | |
45770 | int res1 = 0 ; | |
45771 | PyObject *swig_obj[1] ; | |
45772 | ||
45773 | if (!args) SWIG_fail; | |
45774 | swig_obj[0] = args; | |
45775 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
45776 | if (!SWIG_IsOK(res1)) { | |
45777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'"); | |
45778 | } | |
45779 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
45780 | { | |
45781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45782 | result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane(); | |
45783 | wxPyEndAllowThreads(__tstate); | |
45784 | if (PyErr_Occurred()) SWIG_fail; | |
45785 | } | |
45786 | { | |
45787 | resultobj = wxPyMake_wxObject(result, 0); | |
45788 | } | |
45789 | return resultobj; | |
45790 | fail: | |
45791 | return NULL; | |
45792 | } | |
45793 | ||
45794 | ||
45795 | SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45796 | PyObject *obj; | |
45797 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
45798 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj)); | |
45799 | return SWIG_Py_Void(); | |
45800 | } | |
45801 | ||
45802 | SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45803 | return SWIG_Python_InitShadowInstance(args); | |
45804 | } | |
45805 | ||
45806 | SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45807 | PyObject *resultobj = 0; | |
45808 | wxObject *arg1 = (wxObject *) 0 ; | |
45809 | int arg2 ; | |
45810 | bool arg3 ; | |
45811 | wxCollapsiblePaneEvent *result = 0 ; | |
45812 | void *argp1 = 0 ; | |
45813 | int res1 = 0 ; | |
45814 | int val2 ; | |
45815 | int ecode2 = 0 ; | |
45816 | bool val3 ; | |
45817 | int ecode3 = 0 ; | |
45818 | PyObject * obj0 = 0 ; | |
45819 | PyObject * obj1 = 0 ; | |
45820 | PyObject * obj2 = 0 ; | |
45821 | char * kwnames[] = { | |
45822 | (char *) "generator",(char *) "id",(char *) "collapsed", NULL | |
45823 | }; | |
45824 | ||
45825 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
45826 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 ); | |
45827 | if (!SWIG_IsOK(res1)) { | |
45828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'"); | |
45829 | } | |
45830 | arg1 = reinterpret_cast< wxObject * >(argp1); | |
45831 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
45832 | if (!SWIG_IsOK(ecode2)) { | |
45833 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'"); | |
45834 | } | |
45835 | arg2 = static_cast< int >(val2); | |
45836 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
45837 | if (!SWIG_IsOK(ecode3)) { | |
45838 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'"); | |
45839 | } | |
45840 | arg3 = static_cast< bool >(val3); | |
45841 | { | |
45842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45843 | result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3); | |
45844 | wxPyEndAllowThreads(__tstate); | |
45845 | if (PyErr_Occurred()) SWIG_fail; | |
45846 | } | |
45847 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 ); | |
45848 | return resultobj; | |
45849 | fail: | |
45850 | return NULL; | |
45851 | } | |
45852 | ||
45853 | ||
45854 | SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45855 | PyObject *resultobj = 0; | |
45856 | wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ; | |
45857 | bool result; | |
45858 | void *argp1 = 0 ; | |
45859 | int res1 = 0 ; | |
45860 | PyObject *swig_obj[1] ; | |
45861 | ||
45862 | if (!args) SWIG_fail; | |
45863 | swig_obj[0] = args; | |
45864 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 ); | |
45865 | if (!SWIG_IsOK(res1)) { | |
45866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'"); | |
45867 | } | |
45868 | arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1); | |
45869 | { | |
45870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45871 | result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed(); | |
45872 | wxPyEndAllowThreads(__tstate); | |
45873 | if (PyErr_Occurred()) SWIG_fail; | |
45874 | } | |
45875 | { | |
45876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
45877 | } | |
45878 | return resultobj; | |
45879 | fail: | |
45880 | return NULL; | |
45881 | } | |
45882 | ||
45883 | ||
45884 | SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45885 | PyObject *resultobj = 0; | |
45886 | wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ; | |
45887 | bool arg2 ; | |
45888 | void *argp1 = 0 ; | |
45889 | int res1 = 0 ; | |
45890 | bool val2 ; | |
45891 | int ecode2 = 0 ; | |
45892 | PyObject * obj0 = 0 ; | |
45893 | PyObject * obj1 = 0 ; | |
45894 | char * kwnames[] = { | |
45895 | (char *) "self",(char *) "c", NULL | |
45896 | }; | |
45897 | ||
45898 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail; | |
45899 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 ); | |
45900 | if (!SWIG_IsOK(res1)) { | |
45901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'"); | |
45902 | } | |
45903 | arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1); | |
45904 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
45905 | if (!SWIG_IsOK(ecode2)) { | |
45906 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'"); | |
45907 | } | |
45908 | arg2 = static_cast< bool >(val2); | |
45909 | { | |
45910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45911 | (arg1)->SetCollapsed(arg2); | |
45912 | wxPyEndAllowThreads(__tstate); | |
45913 | if (PyErr_Occurred()) SWIG_fail; | |
45914 | } | |
45915 | resultobj = SWIG_Py_Void(); | |
45916 | return resultobj; | |
45917 | fail: | |
45918 | return NULL; | |
45919 | } | |
45920 | ||
45921 | ||
45922 | SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45923 | PyObject *obj; | |
45924 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
45925 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj)); | |
45926 | return SWIG_Py_Void(); | |
45927 | } | |
45928 | ||
45929 | SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45930 | return SWIG_Python_InitShadowInstance(args); | |
45931 | } | |
45932 | ||
b850e7f3 RD |
45933 | static PyMethodDef SwigMethods[] = { |
45934 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45935 | { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL}, | |
45936 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45937 | { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL}, | |
45938 | { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL}, | |
45939 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45940 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL}, | |
45941 | { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL}, | |
45942 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45943 | { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL}, | |
45944 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45945 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL}, | |
45946 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL}, | |
45947 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL}, | |
45948 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL}, | |
45949 | { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL}, | |
45950 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45951 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45952 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45953 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45954 | { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45955 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45956 | { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL}, | |
45957 | { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL}, | |
45958 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL}, | |
45959 | { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL}, | |
45960 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45961 | { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL}, | |
45962 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45963 | { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL}, | |
45964 | { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL}, | |
45965 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45966 | { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL}, | |
45967 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45968 | { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL}, | |
45969 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL}, | |
45970 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45971 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL}, | |
45972 | { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL}, | |
45973 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45974 | { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL}, | |
45975 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45976 | { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL}, | |
45977 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45978 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL}, | |
45979 | { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL}, | |
45980 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45981 | { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL}, | |
45982 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45983 | { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL}, | |
45984 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45985 | { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL}, | |
45986 | { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL}, | |
45987 | { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL}, | |
45988 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45989 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL}, | |
45990 | { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL}, | |
45991 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45992 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45993 | { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL}, | |
45994 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45995 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45996 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45997 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL}, | |
45998 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45999 | { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL}, | |
46000 | { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL}, | |
46001 | { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL}, | |
46002 | { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL}, | |
46003 | { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL}, | |
46004 | { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL}, | |
46005 | { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL}, | |
46006 | { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL}, | |
46007 | { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL}, | |
46008 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46009 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL}, | |
46010 | { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL}, | |
46011 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46012 | { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL}, | |
46013 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46014 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46015 | { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL}, | |
46016 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46017 | { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL}, | |
0d2c9713 | 46018 | { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL}, |
b850e7f3 RD |
46019 | { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL}, |
46020 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46021 | { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL}, | |
46022 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46023 | { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL}, | |
46024 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46025 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL}, | |
46026 | { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL}, | |
46027 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46028 | { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL}, | |
46029 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46030 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46031 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL}, | |
46032 | { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL}, | |
46033 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46034 | { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL}, | |
46035 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46036 | { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL}, | |
46037 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL}, | |
46038 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46039 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL}, | |
46040 | { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL}, | |
46041 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46042 | { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL}, | |
46043 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46044 | { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46045 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46046 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL}, | |
46047 | { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL}, | |
46048 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46049 | { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL}, | |
46050 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46051 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL}, | |
46052 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46053 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46054 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46055 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL}, | |
46056 | { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL}, | |
46057 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46058 | { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL}, | |
46059 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46060 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46061 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46062 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46063 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46064 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46065 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46066 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46067 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46068 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46069 | { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL}, | |
46070 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46071 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46072 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46073 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46074 | { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL}, | |
46075 | { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46076 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46077 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46078 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46079 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46080 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL}, | |
46081 | { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL}, | |
46082 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46083 | { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL}, | |
46084 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46085 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46086 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46087 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL}, | |
46088 | { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL}, | |
46089 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46090 | { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL}, | |
46091 | { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL}, | |
46092 | { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46093 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46094 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46095 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46096 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46097 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46098 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46099 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46100 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46101 | { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL}, | |
46102 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL}, | |
46103 | { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL}, | |
46104 | { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL}, | |
46105 | { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL}, | |
46106 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL}, | |
46107 | { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL}, | |
46108 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46109 | { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL}, | |
46110 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL}, | |
46111 | { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL}, | |
46112 | { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL}, | |
46113 | { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL}, | |
46114 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL}, | |
46115 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL}, | |
46116 | { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL}, | |
46117 | { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL}, | |
46118 | { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL}, | |
46119 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46120 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL}, | |
46121 | { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL}, | |
46122 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46123 | { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL}, | |
46124 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46125 | { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL}, | |
46126 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
46127 | { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL}, |
46128 | { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b850e7f3 RD |
46129 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, |
46130 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46131 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46132 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL}, | |
46133 | { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL}, | |
46134 | { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL}, | |
46135 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL}, | |
46136 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL}, | |
46137 | { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL}, | |
46138 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL}, | |
46139 | { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL}, | |
46140 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46141 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46142 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46143 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46144 | { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL}, | |
46145 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL}, | |
b02396e8 | 46146 | { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL}, |
b850e7f3 RD |
46147 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, |
46148 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46149 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46150 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46151 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46152 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46153 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46154 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL}, | |
46155 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46156 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46157 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46158 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46159 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46160 | { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL}, | |
46161 | { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL}, | |
46162 | { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL}, | |
46163 | { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL}, | |
46164 | { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL}, | |
46165 | { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL}, | |
46166 | { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL}, | |
46167 | { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL}, | |
46168 | { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL}, | |
46169 | { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL}, | |
46170 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46171 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL}, | |
46172 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL}, | |
46173 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL}, | |
46174 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46175 | { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL}, | |
46176 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 46177 | { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL}, |
b850e7f3 RD |
46178 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL}, |
46179 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46180 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46181 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL}, | |
46182 | { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL}, | |
46183 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46184 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL}, | |
46185 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL}, | |
46186 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL}, | |
46187 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL}, | |
46188 | { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL}, | |
46189 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46190 | { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL}, | |
46191 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46192 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL}, | |
46193 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL}, | |
46194 | { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL}, | |
46195 | { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL}, | |
46196 | { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL}, | |
46197 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46198 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46199 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL}, | |
46200 | { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL}, | |
46201 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46202 | { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL}, | |
46203 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46204 | { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL}, | |
46205 | { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL}, | |
46206 | { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL}, | |
46207 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46208 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46209 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46210 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46211 | { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL}, | |
46212 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46213 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL}, | |
46214 | { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL}, | |
46215 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46216 | { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL}, | |
46217 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46218 | { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL}, | |
46219 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46220 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46221 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46222 | { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL}, | |
46223 | { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL}, | |
46224 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46225 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46226 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL}, | |
46227 | { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL}, | |
46228 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46229 | { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL}, | |
46230 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46231 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL}, | |
46232 | { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL}, | |
46233 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46234 | { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL}, | |
46235 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46236 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46237 | { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL}, | |
46238 | { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL}, | |
46239 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46240 | { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL}, | |
46241 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46242 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46243 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46244 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46245 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46246 | { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46247 | { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46248 | { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL}, | |
46249 | { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL}, | |
46250 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46251 | { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46252 | { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46253 | { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46254 | { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46255 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46256 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL}, | |
46257 | { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL}, | |
46258 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46259 | { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL}, | |
46260 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46261 | { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL}, | |
46262 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46263 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46264 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL}, | |
46265 | { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL}, | |
46266 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46267 | { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL}, | |
46268 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46269 | { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL}, | |
46270 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46271 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46272 | { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL}, | |
46273 | { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL}, | |
46274 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46275 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46276 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46277 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46278 | { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL}, | |
46279 | { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL}, | |
46280 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46281 | { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL}, | |
46282 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46283 | { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL}, | |
46284 | { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL}, | |
46285 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46286 | { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL}, | |
46287 | { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL}, | |
46288 | { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL}, | |
46289 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46290 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46291 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL}, | |
46292 | { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL}, | |
46293 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46294 | { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL}, | |
46295 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46296 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46297 | { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL}, | |
46298 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46299 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL}, | |
46300 | { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL}, | |
46301 | { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL}, | |
46302 | { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46303 | { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL}, | |
46304 | { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL}, | |
46305 | { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46306 | { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46307 | { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46308 | { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46309 | { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL}, | |
46310 | { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46311 | { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46312 | { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46313 | { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46314 | { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL}, | |
46315 | { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46316 | { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL}, | |
46317 | { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
e9d6f3a4 | 46318 | { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL}, |
1bd55598 RD |
46319 | { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
46320 | { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL}, | |
e9d6f3a4 | 46321 | { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL}, |
1bd55598 RD |
46322 | { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL}, |
46323 | { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46324 | { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL}, | |
46325 | { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46326 | { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46327 | { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 46328 | { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 46329 | { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
704eda0c | 46330 | { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
46331 | { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
46332 | { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL}, | |
46333 | { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46334 | { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL}, | |
46335 | { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46336 | { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL}, | |
46337 | { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46338 | { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL}, | |
46339 | { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL}, | |
46340 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46341 | { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL}, | |
46342 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46343 | { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL}, | |
46344 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46345 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
46346 | { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL}, |
46347 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
46348 | { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
46349 | { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
46350 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL}, |
46351 | { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL}, | |
46352 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46353 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL}, | |
46354 | { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL}, | |
46355 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46356 | { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL}, | |
46357 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46358 | { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL}, | |
46359 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL}, | |
46360 | { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL}, | |
46361 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46362 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL}, | |
46363 | { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL}, | |
46364 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46365 | { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL}, | |
46366 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46367 | { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL}, | |
46368 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL}, | |
46369 | { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL}, | |
46370 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46371 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL}, | |
46372 | { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL}, | |
46373 | { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46374 | { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL}, | |
46375 | { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46376 | { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46377 | { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46378 | { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46379 | { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46380 | { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46381 | { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46382 | { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL}, | |
46383 | { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL}, | |
46384 | { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL}, | |
46385 | { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46386 | { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL}, | |
46387 | { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL}, | |
46388 | { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46389 | { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL}, | |
46390 | { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46391 | { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL}, | |
46392 | { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL}, | |
46393 | { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL}, | |
46394 | { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL}, | |
46395 | { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46396 | { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL}, | |
46397 | { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL}, | |
46398 | { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL}, | |
46399 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL}, | |
46400 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL}, | |
46401 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL}, | |
46402 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL}, | |
46403 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL}, | |
46404 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL}, | |
46405 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL}, | |
46406 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL}, | |
46407 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL}, | |
46408 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL}, | |
46409 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL}, | |
46410 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL}, | |
46411 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL}, | |
46412 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL}, | |
46413 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL}, | |
46414 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL}, | |
46415 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46416 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL}, | |
46417 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46418 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46419 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46420 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46421 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46422 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46423 | { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL}, | |
46424 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46425 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL}, | |
46426 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46427 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL}, | |
46428 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46429 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46430 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46431 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46432 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46433 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46434 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46435 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL}, | |
46436 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46437 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46438 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46439 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46440 | { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL}, | |
46441 | { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL}, | |
46442 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46443 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46444 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46445 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46446 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46447 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46448 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46449 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46450 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46451 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46452 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46453 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46454 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46455 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46456 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46457 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46458 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL}, | |
46459 | { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL}, | |
46460 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL}, | |
46461 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL}, | |
46462 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46463 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46464 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL}, | |
46465 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL}, | |
46466 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46467 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL}, | |
46468 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL}, | |
46469 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46470 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46471 | { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL}, | |
46472 | { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL}, | |
46473 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL}, | |
46474 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46475 | { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL}, | |
46476 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
46477 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
46478 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL}, | |
46479 | { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL}, | |
46480 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46481 | { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL}, | |
46482 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46483 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46484 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46485 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL}, | |
46486 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL}, | |
46487 | { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL}, | |
46488 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL}, | |
46489 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL}, | |
46490 | { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL}, | |
46491 | { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46492 | { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL}, | |
46493 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL}, | |
46494 | { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL}, | |
46495 | { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL}, | |
46496 | { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL}, | |
46497 | { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL}, | |
46498 | { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL}, | |
46499 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46500 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46501 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46502 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46503 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46504 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46505 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46506 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46507 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46508 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46509 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46510 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46511 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46512 | { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL}, | |
46513 | { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL}, | |
46514 | { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL}, | |
46515 | { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL}, | |
46516 | { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL}, | |
46517 | { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL}, | |
46518 | { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL}, | |
46519 | { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL}, | |
46520 | { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL}, | |
46521 | { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL}, | |
46522 | { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL}, | |
46523 | { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL}, | |
46524 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL}, | |
46525 | { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL}, | |
46526 | { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL}, | |
46527 | { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL}, | |
46528 | { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL}, | |
46529 | { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL}, | |
46530 | { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL}, | |
46531 | { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL}, | |
46532 | { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL}, | |
46533 | { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL}, | |
46534 | { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL}, | |
46535 | { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL}, | |
46536 | { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL}, | |
46537 | { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL}, | |
46538 | { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL}, | |
46539 | { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL}, | |
46540 | { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL}, | |
46541 | { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL}, | |
46542 | { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL}, | |
46543 | { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL}, | |
46544 | { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL}, | |
46545 | { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL}, | |
46546 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL}, | |
46547 | { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL}, | |
46548 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46549 | { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL}, | |
46550 | { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL}, | |
46551 | { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL}, | |
46552 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL}, | |
46553 | { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL}, | |
46554 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL}, | |
46555 | { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL}, | |
46556 | { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL}, | |
46557 | { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL}, | |
46558 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL}, | |
46559 | { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL}, | |
46560 | { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL}, | |
46561 | { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL}, | |
46562 | { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL}, | |
46563 | { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL}, | |
46564 | { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL}, | |
46565 | { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL}, | |
46566 | { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL}, | |
46567 | { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL}, | |
46568 | { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL}, | |
46569 | { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL}, | |
46570 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL}, | |
46571 | { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL}, | |
46572 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL}, | |
46573 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46574 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL}, | |
46575 | { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL}, | |
46576 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46577 | { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL}, | |
46578 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46579 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46580 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46581 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46582 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46583 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46584 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL}, | |
46585 | { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL}, | |
46586 | { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL}, | |
46587 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46588 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46589 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46590 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46591 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46592 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46593 | { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46594 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46595 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46596 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46597 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46598 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46599 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46600 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46601 | { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL}, | |
46602 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL}, | |
46603 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL}, | |
46604 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46605 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL}, | |
46606 | { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL}, | |
46607 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46608 | { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL}, | |
46609 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46610 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46611 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46612 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46613 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46614 | { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL}, | |
46615 | { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL}, | |
46616 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46617 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46618 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46619 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46620 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL}, | |
46621 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46622 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL}, | |
46623 | { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL}, | |
46624 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46625 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46626 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46627 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46628 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46629 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c | 46630 | { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
46631 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, |
46632 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46633 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46634 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46635 | { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46636 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46637 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46638 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46639 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46640 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46641 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46642 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46643 | { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46644 | { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46645 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46646 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL}, | |
46647 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46648 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL}, | |
46649 | { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL}, | |
46650 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46651 | { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL}, | |
46652 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46653 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46654 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46655 | { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL}, | |
46656 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46657 | { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL}, | |
46658 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46659 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46660 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46661 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL}, | |
46662 | { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL}, | |
46663 | { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL}, | |
46664 | { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL}, | |
46665 | { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL}, | |
46666 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46667 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46668 | { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL}, | |
46669 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL}, | |
46670 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL}, | |
46671 | { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL}, | |
46672 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46673 | { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL}, | |
46674 | { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL}, | |
46675 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46676 | { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL}, | |
46677 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46678 | { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL}, | |
46679 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL}, | |
46680 | { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL}, | |
b02396e8 | 46681 | { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL}, |
1bd55598 RD |
46682 | { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL}, |
46683 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46684 | { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL}, | |
46685 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46686 | { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL}, | |
46687 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46688 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL}, | |
46689 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL}, | |
46690 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46691 | { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL}, | |
46692 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46693 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL}, | |
46694 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46695 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46696 | { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL}, | |
46697 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL}, | |
46698 | { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL}, | |
46699 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46700 | { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL}, | |
46701 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46702 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46703 | { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL}, | |
46704 | { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL}, | |
46705 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46706 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL}, | |
46707 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46708 | { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL}, | |
46709 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL}, | |
46710 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46711 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46712 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46713 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46714 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46715 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46716 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46717 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46718 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46719 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46720 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46721 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46722 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46723 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46724 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46725 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46726 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46727 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46728 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46729 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46730 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46731 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46732 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46733 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46734 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46735 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46736 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46737 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL}, | |
46738 | { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL}, | |
46739 | { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL}, | |
46740 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46741 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46742 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46743 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46744 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46745 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46746 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL}, | |
46747 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46748 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46749 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46750 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46751 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46752 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46753 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46754 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46755 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46756 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL}, | |
46757 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3d6c9062 RD |
46758 | { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL}, |
46759 | { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL}, | |
1bd55598 RD |
46760 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, |
46761 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46762 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46763 | { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL}, | |
46764 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46765 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL}, | |
46766 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46767 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46768 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46769 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46770 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46771 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL}, | |
46772 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46773 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46774 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46775 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2131d850 RD |
46776 | { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
46777 | { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL}, | |
1bd55598 RD |
46778 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL}, |
46779 | { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL}, | |
46780 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46781 | { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL}, | |
46782 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46783 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c | 46784 | { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
46785 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL}, |
46786 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46787 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL}, | |
46788 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL}, | |
46789 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46790 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46791 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL}, | |
46792 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL}, | |
46793 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46794 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL}, | |
46795 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46796 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL}, | |
46797 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL}, | |
46798 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL}, | |
46799 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46800 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL}, | |
46801 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL}, | |
46802 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL}, | |
46803 | { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL}, | |
46804 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46805 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL}, | |
46806 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46807 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46808 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL}, | |
46809 | { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL}, | |
46810 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46811 | { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL}, | |
46812 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
46813 | { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
46814 | { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46815 | { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46816 | { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46817 | { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46818 | { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL}, | |
46819 | { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL}, | |
46820 | { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL}, | |
46821 | { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL}, | |
46822 | { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL}, | |
46823 | { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL}, | |
46824 | { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL}, | |
46825 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL}, | |
46826 | { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL}, | |
46827 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46828 | { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL}, | |
46829 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46830 | { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL}, | |
46831 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46832 | { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL}, | |
46833 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
46834 | { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL}, |
46835 | { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
46836 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL}, |
46837 | { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL}, | |
46838 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46839 | { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL}, | |
46840 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46841 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL}, | |
46842 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL}, | |
46843 | { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL}, | |
46844 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46845 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL}, | |
46846 | { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL}, | |
f52cbe90 | 46847 | { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL}, |
1bd55598 RD |
46848 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
46849 | { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL}, | |
46850 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46851 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b850e7f3 | 46852 | { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
46853 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL}, |
46854 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46855 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46856 | { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL}, | |
46857 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL}, | |
46858 | { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL}, | |
46859 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL}, | |
46860 | { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL}, | |
46861 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46862 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46863 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46864 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46865 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46866 | { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL}, | |
46867 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46868 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46869 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46870 | { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL}, | |
46871 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46872 | { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL}, | |
46873 | { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL}, | |
46874 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46875 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46876 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46877 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46878 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL}, | |
46879 | { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL}, | |
46880 | { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46881 | { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL}, | |
46882 | { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46883 | { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46884 | { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL}, | |
46885 | { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46886 | { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL}, | |
46887 | { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL}, | |
46888 | { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL}, | |
46889 | { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL}, | |
704eda0c RD |
46890 | { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
46891 | { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL}, | |
46892 | { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46893 | { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL}, | |
46894 | { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46895 | { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL}, | |
46896 | { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46897 | { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL}, | |
46898 | { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46899 | { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL}, | |
46900 | { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46901 | { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46902 | { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL}, | |
46903 | { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL}, | |
46904 | { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL}, | |
46905 | { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46906 | { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL}, | |
46907 | { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46908 | { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL}, | |
46909 | { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL}, | |
b850e7f3 RD |
46910 | { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL}, |
46911 | { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46912 | { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL}, | |
46913 | { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46914 | { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL}, | |
1eeb270e RD |
46915 | { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL}, |
46916 | { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL}, | |
b02396e8 RD |
46917 | { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL}, |
46918 | { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46919 | { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL}, | |
46920 | { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b850e7f3 RD |
46921 | { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL}, |
46922 | { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL}, | |
46923 | { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL}, | |
46924 | { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL}, | |
46925 | { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46926 | { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL}, | |
46927 | { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46928 | { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL}, | |
46929 | { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46930 | { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL}, | |
46931 | { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL}, | |
46932 | { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46933 | { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL}, | |
46934 | { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46935 | { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL}, | |
46936 | { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL}, | |
46937 | { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46938 | { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL}, | |
46939 | { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46940 | { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL}, | |
46941 | { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b02396e8 RD |
46942 | { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL}, |
46943 | { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL}, | |
b850e7f3 RD |
46944 | { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL}, |
46945 | { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL}, | |
46946 | { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46947 | { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL}, | |
46948 | { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46949 | { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL}, | |
46950 | { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b02396e8 RD |
46951 | { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL}, |
46952 | { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL}, | |
b850e7f3 RD |
46953 | { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL}, |
46954 | { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL}, | |
46955 | { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46956 | { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL}, | |
46957 | { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46958 | { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL}, | |
46959 | { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL}, | |
46960 | { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46961 | { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL}, | |
46962 | { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46963 | { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL}, | |
46964 | { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46965 | { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46966 | { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL}, | |
46967 | { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL}, | |
46968 | { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL}, | |
46969 | { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46970 | { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL}, | |
46971 | { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46972 | { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL}, | |
46973 | { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL}, | |
5172800e RD |
46974 | { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL}, |
46975 | { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL}, | |
46976 | { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46977 | { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46978 | { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL}, | |
46979 | { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL}, | |
46980 | { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL}, | |
46981 | { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL}, | |
46982 | { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL}, | |
46983 | { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL}, | |
46984 | { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46985 | { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL}, | |
46986 | { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46987 | { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL}, | |
46988 | { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL}, | |
1bd55598 RD |
46989 | { NULL, NULL, 0, NULL } |
46990 | }; | |
46991 | ||
46992 | ||
46993 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
46994 | ||
46995 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
46996 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
46997 | } | |
46998 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
46999 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
47000 | } | |
47001 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
47002 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
47003 | } | |
47004 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
47005 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
47006 | } | |
47007 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
47008 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
47009 | } | |
47010 | static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) { | |
47011 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
47012 | } | |
47013 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
47014 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
47015 | } | |
47016 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
47017 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
47018 | } | |
b850e7f3 RD |
47019 | static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) { |
47020 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x)); | |
47021 | } | |
47022 | static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) { | |
47023 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x)); | |
47024 | } | |
47025 | static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) { | |
47026 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x)); | |
47027 | } | |
1bd55598 RD |
47028 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { |
47029 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
47030 | } | |
47031 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
47032 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
47033 | } | |
47034 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
47035 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
47036 | } | |
1bd55598 RD |
47037 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { |
47038 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
47039 | } | |
34e0a3bb RD |
47040 | static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) { |
47041 | return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
47042 | } | |
2131d850 RD |
47043 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
47044 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
47045 | } | |
1bd55598 RD |
47046 | static void *_p_wxListEventTo_p_wxEvent(void *x) { |
47047 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
47048 | } | |
47049 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
47050 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
47051 | } | |
47052 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
47053 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
47054 | } | |
47055 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { | |
47056 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
47057 | } | |
47058 | static void *_p_wxTreebookEventTo_p_wxEvent(void *x) { | |
47059 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
47060 | } | |
47061 | static void *_p_wxToolbookEventTo_p_wxEvent(void *x) { | |
47062 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
47063 | } | |
47064 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
47065 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
47066 | } | |
47067 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
47068 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
47069 | } | |
47070 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
47071 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
47072 | } | |
47073 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
47074 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
47075 | } | |
47076 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
47077 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
47078 | } | |
47079 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
47080 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
47081 | } | |
47082 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
47083 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
47084 | } | |
47085 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
47086 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
47087 | } | |
47088 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
47089 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
47090 | } | |
47091 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { | |
47092 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
47093 | } | |
5172800e RD |
47094 | static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) { |
47095 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x)); | |
47096 | } | |
1bd55598 RD |
47097 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
47098 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
47099 | } | |
47100 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
47101 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
47102 | } | |
34e0a3bb RD |
47103 | static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) { |
47104 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
47105 | } | |
1bd55598 RD |
47106 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { |
47107 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
47108 | } | |
47109 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
47110 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
47111 | } | |
47112 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
47113 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
47114 | } | |
47115 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
47116 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
47117 | } | |
47118 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
47119 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
47120 | } | |
704eda0c RD |
47121 | static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) { |
47122 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x)); | |
47123 | } | |
1bd55598 RD |
47124 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { |
47125 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
47126 | } | |
47127 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
47128 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
47129 | } | |
47130 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
47131 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
47132 | } | |
47133 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
47134 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
47135 | } | |
47136 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
47137 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
47138 | } | |
47139 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
47140 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
47141 | } | |
47142 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
47143 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
47144 | } | |
47145 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
47146 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
47147 | } | |
47148 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
47149 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
47150 | } | |
47151 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
47152 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
47153 | } | |
47154 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
47155 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
47156 | } | |
b850e7f3 RD |
47157 | static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) { |
47158 | return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
47159 | } | |
47160 | static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) { | |
47161 | return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
47162 | } | |
47163 | static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) { | |
47164 | return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
47165 | } | |
47166 | static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) { | |
47167 | return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
47168 | } | |
1bd55598 RD |
47169 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
47170 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
47171 | } | |
47172 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
47173 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
47174 | } | |
47175 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
47176 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
47177 | } | |
47178 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
47179 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
47180 | } | |
47181 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
47182 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
47183 | } | |
47184 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
47185 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
47186 | } | |
47187 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
47188 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
47189 | } | |
5172800e RD |
47190 | static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) { |
47191 | return (void *)((wxControl *) ((wxCollapsiblePane *) x)); | |
47192 | } | |
1bd55598 RD |
47193 | static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) { |
47194 | return (void *)((wxControl *) ((wxBookCtrlBase *) x)); | |
47195 | } | |
47196 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
47197 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
47198 | } | |
b850e7f3 RD |
47199 | static void *_p_wxPickerBaseTo_p_wxControl(void *x) { |
47200 | return (void *)((wxControl *) ((wxPickerBase *) x)); | |
47201 | } | |
1bd55598 RD |
47202 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { |
47203 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
47204 | } | |
47205 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
47206 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
47207 | } | |
47208 | static void *_p_wxToolbookTo_p_wxControl(void *x) { | |
47209 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x)); | |
47210 | } | |
47211 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
47212 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
47213 | } | |
47214 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
47215 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
47216 | } | |
47217 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
47218 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
47219 | } | |
47220 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
47221 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
47222 | } | |
47223 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
47224 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
47225 | } | |
47226 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
47227 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
47228 | } | |
47229 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
47230 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
47231 | } | |
47232 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
47233 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
47234 | } | |
47235 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
47236 | return (void *)((wxControl *) ((wxGauge *) x)); | |
47237 | } | |
47238 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
47239 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
47240 | } | |
47241 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { | |
47242 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x)); | |
47243 | } | |
47244 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
47245 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x)); | |
47246 | } | |
704eda0c RD |
47247 | static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) { |
47248 | return (void *)((wxControl *) ((wxHyperlinkCtrl *) x)); | |
47249 | } | |
1bd55598 RD |
47250 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { |
47251 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
47252 | } | |
47253 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
47254 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
47255 | } | |
47256 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
47257 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
47258 | } | |
47259 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
47260 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
47261 | } | |
47262 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
47263 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
47264 | } | |
47265 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
47266 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
47267 | } | |
47268 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
47269 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
47270 | } | |
47271 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
47272 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x)); | |
47273 | } | |
47274 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
47275 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
47276 | } | |
47277 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
47278 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
47279 | } | |
47280 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
47281 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
47282 | } | |
47283 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
47284 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
47285 | } | |
47286 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
47287 | return (void *)((wxControl *) ((wxSlider *) x)); | |
47288 | } | |
47289 | static void *_p_wxTreebookTo_p_wxControl(void *x) { | |
47290 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x)); | |
47291 | } | |
47292 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
47293 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
47294 | } | |
47295 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
47296 | return (void *)((wxControl *) ((wxButton *) x)); | |
47297 | } | |
47298 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
47299 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
47300 | } | |
47301 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
47302 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
47303 | } | |
47304 | static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) { | |
47305 | return (void *)((wxControl *) ((wxDatePickerCtrl *) x)); | |
47306 | } | |
b850e7f3 RD |
47307 | static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) { |
47308 | return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
47309 | } | |
47310 | static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) { | |
47311 | return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
47312 | } | |
47313 | static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) { | |
47314 | return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
47315 | } | |
47316 | static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) { | |
47317 | return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
47318 | } | |
1bd55598 RD |
47319 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { |
47320 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
47321 | } | |
47322 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
47323 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
47324 | } | |
47325 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
47326 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
47327 | } | |
47328 | static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) { | |
47329 | return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
47330 | } | |
47331 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
47332 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
47333 | } | |
47334 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
47335 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
47336 | } | |
47337 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
47338 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
47339 | } | |
47340 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
47341 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
47342 | } | |
47343 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
47344 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
47345 | } | |
47346 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { | |
47347 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
47348 | } | |
47349 | static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) { | |
47350 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
47351 | } | |
47352 | static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) { | |
47353 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
47354 | } | |
47355 | static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) { | |
47356 | return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x)); | |
47357 | } | |
47358 | static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) { | |
47359 | return (void *)((wxBookCtrlBase *) ((wxListbook *) x)); | |
47360 | } | |
47361 | static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) { | |
47362 | return (void *)((wxBookCtrlBase *) ((wxToolbook *) x)); | |
47363 | } | |
47364 | static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) { | |
47365 | return (void *)((wxBookCtrlBase *) ((wxTreebook *) x)); | |
47366 | } | |
47367 | static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) { | |
47368 | return (void *)((wxBookCtrlBase *) ((wxNotebook *) x)); | |
47369 | } | |
5172800e RD |
47370 | static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) { |
47371 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x)); | |
47372 | } | |
1bd55598 RD |
47373 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { |
47374 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
47375 | } | |
47376 | static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) { | |
47377 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
47378 | } | |
47379 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
47380 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
47381 | } | |
47382 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
47383 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
47384 | } | |
47385 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
47386 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
47387 | } | |
b850e7f3 RD |
47388 | static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) { |
47389 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x)); | |
47390 | } | |
1bd55598 RD |
47391 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { |
47392 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
47393 | } | |
47394 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
47395 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
47396 | } | |
47397 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
47398 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
47399 | } | |
47400 | static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) { | |
47401 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
47402 | } | |
47403 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
47404 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
47405 | } | |
47406 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
47407 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
47408 | } | |
47409 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
47410 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
47411 | } | |
47412 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
47413 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
47414 | } | |
47415 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
47416 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
47417 | } | |
47418 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
47419 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
47420 | } | |
47421 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
47422 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
47423 | } | |
47424 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
47425 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
47426 | } | |
47427 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
47428 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
47429 | } | |
47430 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
47431 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
47432 | } | |
47433 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
47434 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
47435 | } | |
47436 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
47437 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
47438 | } | |
47439 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
47440 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
47441 | } | |
47442 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { | |
47443 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
47444 | } | |
47445 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
47446 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
47447 | } | |
704eda0c RD |
47448 | static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) { |
47449 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x)); | |
47450 | } | |
1bd55598 RD |
47451 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { |
47452 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
47453 | } | |
47454 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
47455 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
47456 | } | |
47457 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
47458 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
47459 | } | |
47460 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
47461 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
47462 | } | |
47463 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
47464 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
47465 | } | |
47466 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
47467 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
47468 | } | |
47469 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
47470 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
47471 | } | |
47472 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
47473 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
47474 | } | |
47475 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
47476 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
47477 | } | |
47478 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
47479 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
47480 | } | |
47481 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
47482 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
47483 | } | |
47484 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
47485 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
47486 | } | |
47487 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
47488 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
47489 | } | |
47490 | static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) { | |
47491 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
47492 | } | |
47493 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
47494 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
47495 | } | |
47496 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
47497 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
47498 | } | |
47499 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
47500 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
47501 | } | |
47502 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
47503 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
47504 | } | |
47505 | static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) { | |
47506 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
47507 | } | |
b850e7f3 RD |
47508 | static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) { |
47509 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
47510 | } | |
47511 | static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) { | |
47512 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
47513 | } | |
47514 | static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) { | |
47515 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
47516 | } | |
47517 | static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) { | |
47518 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
47519 | } | |
1bd55598 RD |
47520 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { |
47521 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
47522 | } | |
47523 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
47524 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
47525 | } | |
47526 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
47527 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
47528 | } | |
47529 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
47530 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
47531 | } | |
47532 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
47533 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
47534 | } | |
47535 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
47536 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
47537 | } | |
47538 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
47539 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
47540 | } | |
47541 | static void *_p_wxToolbookTo_p_wxObject(void *x) { | |
47542 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
47543 | } | |
1bd55598 RD |
47544 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
47545 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
47546 | } | |
34e0a3bb RD |
47547 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
47548 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
47549 | } | |
1bd55598 RD |
47550 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
47551 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
47552 | } | |
47553 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
47554 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
47555 | } | |
47556 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
47557 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
47558 | } | |
47559 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
47560 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
47561 | } | |
47562 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
47563 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
47564 | } | |
47565 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
47566 | return (void *)((wxObject *) ((wxSizer *) x)); | |
47567 | } | |
47568 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
47569 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
47570 | } | |
47571 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
47572 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
47573 | } | |
47574 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
47575 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
47576 | } | |
47577 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
47578 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
47579 | } | |
47580 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
47581 | return (void *)((wxObject *) ((wxEvent *) x)); | |
47582 | } | |
47583 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
47584 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
47585 | } | |
47586 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
47587 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
47588 | } | |
47589 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
47590 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
47591 | } | |
47592 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
47593 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
47594 | } | |
b850e7f3 RD |
47595 | static void *_p_wxPickerBaseTo_p_wxObject(void *x) { |
47596 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x)); | |
47597 | } | |
1bd55598 RD |
47598 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { |
47599 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
47600 | } | |
47601 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
47602 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
47603 | } | |
2131d850 RD |
47604 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
47605 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
47606 | } | |
1bd55598 RD |
47607 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
47608 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
47609 | } | |
47610 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
47611 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
47612 | } | |
47613 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
47614 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
47615 | } | |
47616 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
47617 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
47618 | } | |
47619 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
47620 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
47621 | } | |
47622 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
47623 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
47624 | } | |
47625 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
47626 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
47627 | } | |
47628 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
47629 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
47630 | } | |
47631 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
47632 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
47633 | } | |
47634 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
47635 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
47636 | } | |
47637 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
47638 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
47639 | } | |
47640 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
47641 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
47642 | } | |
47643 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
47644 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
47645 | } | |
47646 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
47647 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
47648 | } | |
b850e7f3 RD |
47649 | static void *_p_wxColourPickerEventTo_p_wxObject(void *x) { |
47650 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x)); | |
47651 | } | |
47652 | static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) { | |
47653 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x)); | |
47654 | } | |
47655 | static void *_p_wxFontPickerEventTo_p_wxObject(void *x) { | |
47656 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x)); | |
47657 | } | |
1bd55598 RD |
47658 | static void *_p_wxChoiceTo_p_wxObject(void *x) { |
47659 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
47660 | } | |
47661 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
47662 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
47663 | } | |
47664 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
47665 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
47666 | } | |
47667 | static void *_p_wxTreebookTo_p_wxObject(void *x) { | |
47668 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
47669 | } | |
47670 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
47671 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
47672 | } | |
704eda0c RD |
47673 | static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) { |
47674 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x)); | |
47675 | } | |
1bd55598 RD |
47676 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { |
47677 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
47678 | } | |
47679 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
47680 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
47681 | } | |
47682 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
47683 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
47684 | } | |
47685 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
47686 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
47687 | } | |
47688 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { | |
47689 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
47690 | } | |
47691 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
47692 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
47693 | } | |
47694 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
47695 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
47696 | } | |
47697 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
47698 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
47699 | } | |
47700 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
47701 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
47702 | } | |
47703 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
47704 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
47705 | } | |
47706 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
47707 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
47708 | } | |
47709 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
47710 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
47711 | } | |
47712 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
47713 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
47714 | } | |
47715 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
47716 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
47717 | } | |
47718 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
47719 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
47720 | } | |
47721 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
47722 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
47723 | } | |
47724 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
47725 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
47726 | } | |
47727 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
47728 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
47729 | } | |
47730 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
47731 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
47732 | } | |
47733 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
47734 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
47735 | } | |
47736 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
47737 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
47738 | } | |
5172800e RD |
47739 | static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) { |
47740 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x)); | |
47741 | } | |
1bd55598 RD |
47742 | static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) { |
47743 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
47744 | } | |
47745 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
47746 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
47747 | } | |
47748 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
47749 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
47750 | } | |
47751 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
47752 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
47753 | } | |
47754 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
47755 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
47756 | } | |
47757 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
47758 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
47759 | } | |
47760 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
47761 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
47762 | } | |
47763 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
47764 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
47765 | } | |
47766 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
47767 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
47768 | } | |
47769 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
47770 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
47771 | } | |
47772 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
47773 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
47774 | } | |
47775 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
47776 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
47777 | } | |
47778 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
47779 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
47780 | } | |
47781 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
47782 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
47783 | } | |
580080c5 RD |
47784 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { |
47785 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
47786 | } | |
1bd55598 RD |
47787 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
47788 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
47789 | } | |
34e0a3bb RD |
47790 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
47791 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
47792 | } | |
1bd55598 RD |
47793 | static void *_p_wxListEventTo_p_wxObject(void *x) { |
47794 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
47795 | } | |
47796 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
47797 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
47798 | } | |
47799 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
47800 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
47801 | } | |
47802 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
47803 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
47804 | } | |
47805 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
47806 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
47807 | } | |
47808 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
47809 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
47810 | } | |
47811 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
47812 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
47813 | } | |
1bd55598 RD |
47814 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
47815 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
47816 | } | |
580080c5 RD |
47817 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
47818 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
47819 | } | |
1bd55598 RD |
47820 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
47821 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
47822 | } | |
47823 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
47824 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
47825 | } | |
47826 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
47827 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
47828 | } | |
47829 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
47830 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
47831 | } | |
47832 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
47833 | return (void *)((wxObject *) ((wxListItem *) x)); | |
47834 | } | |
47835 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
47836 | return (void *)((wxObject *) ((wxImage *) x)); | |
47837 | } | |
47838 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
47839 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
47840 | } | |
47841 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
47842 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
47843 | } | |
47844 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
47845 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
47846 | } | |
47847 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
47848 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
47849 | } | |
47850 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
47851 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
47852 | } | |
47853 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
47854 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
47855 | } | |
47856 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { | |
47857 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
47858 | } | |
47859 | static void *_p_wxTreebookEventTo_p_wxObject(void *x) { | |
47860 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
47861 | } | |
47862 | static void *_p_wxToolbookEventTo_p_wxObject(void *x) { | |
47863 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
47864 | } | |
47865 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
47866 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
47867 | } | |
47868 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
47869 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
47870 | } | |
47871 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
47872 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
47873 | } | |
47874 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
47875 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
47876 | } | |
47877 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
47878 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
47879 | } | |
47880 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
47881 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
47882 | } | |
47883 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
47884 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
47885 | } | |
5172800e RD |
47886 | static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) { |
47887 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x)); | |
47888 | } | |
1bd55598 RD |
47889 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
47890 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
47891 | } | |
47892 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
47893 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
47894 | } | |
47895 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
47896 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
47897 | } | |
47898 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
47899 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
47900 | } | |
47901 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
47902 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
47903 | } | |
47904 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
47905 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
47906 | } | |
47907 | static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) { | |
47908 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
47909 | } | |
47910 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
47911 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
47912 | } | |
47913 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
47914 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
47915 | } | |
47916 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
47917 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
47918 | } | |
47919 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
47920 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
47921 | } | |
47922 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
47923 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
47924 | } | |
47925 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
47926 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
47927 | } | |
47928 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
47929 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
47930 | } | |
47931 | static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) { | |
47932 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
47933 | } | |
b850e7f3 RD |
47934 | static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) { |
47935 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
47936 | } | |
47937 | static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) { | |
47938 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
47939 | } | |
47940 | static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) { | |
47941 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
47942 | } | |
47943 | static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) { | |
47944 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
47945 | } | |
1bd55598 RD |
47946 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
47947 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
47948 | } | |
704eda0c RD |
47949 | static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) { |
47950 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x)); | |
47951 | } | |
1bd55598 RD |
47952 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { |
47953 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
47954 | } | |
47955 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
47956 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
47957 | } | |
47958 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
47959 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
47960 | } | |
47961 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
47962 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
47963 | } | |
5172800e RD |
47964 | static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) { |
47965 | return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x)); | |
47966 | } | |
1bd55598 RD |
47967 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { |
47968 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
47969 | } | |
47970 | static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) { | |
47971 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x)); | |
47972 | } | |
47973 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
47974 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
47975 | } | |
b850e7f3 RD |
47976 | static void *_p_wxPickerBaseTo_p_wxWindow(void *x) { |
47977 | return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x)); | |
47978 | } | |
1bd55598 RD |
47979 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { |
47980 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
47981 | } | |
47982 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
47983 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
47984 | } | |
47985 | static void *_p_wxToolbookTo_p_wxWindow(void *x) { | |
47986 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
47987 | } | |
47988 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
47989 | return (void *)((wxWindow *) ((wxControl *) x)); | |
47990 | } | |
47991 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
47992 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
47993 | } | |
47994 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
47995 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
47996 | } | |
47997 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
47998 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
47999 | } | |
48000 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
48001 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
48002 | } | |
48003 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
48004 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
48005 | } | |
48006 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
48007 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
48008 | } | |
48009 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
48010 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
48011 | } | |
48012 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
48013 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
48014 | } | |
48015 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
48016 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
48017 | } | |
48018 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
48019 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
48020 | } | |
48021 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { | |
48022 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
48023 | } | |
48024 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
48025 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
48026 | } | |
704eda0c RD |
48027 | static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) { |
48028 | return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x)); | |
48029 | } | |
1bd55598 RD |
48030 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { |
48031 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
48032 | } | |
48033 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
48034 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
48035 | } | |
48036 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
48037 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
48038 | } | |
48039 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
48040 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
48041 | } | |
48042 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
48043 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
48044 | } | |
48045 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
48046 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
48047 | } | |
48048 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
48049 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
48050 | } | |
48051 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
48052 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
48053 | } | |
48054 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
48055 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
48056 | } | |
48057 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
48058 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
48059 | } | |
48060 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
48061 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
48062 | } | |
48063 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
48064 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
48065 | } | |
48066 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
48067 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
48068 | } | |
48069 | static void *_p_wxTreebookTo_p_wxWindow(void *x) { | |
48070 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
48071 | } | |
48072 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
48073 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
48074 | } | |
48075 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
48076 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
48077 | } | |
48078 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
48079 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
48080 | } | |
48081 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
48082 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
48083 | } | |
48084 | static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) { | |
48085 | return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x)); | |
48086 | } | |
b850e7f3 RD |
48087 | static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) { |
48088 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
48089 | } | |
48090 | static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) { | |
48091 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
48092 | } | |
48093 | static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) { | |
48094 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
48095 | } | |
48096 | static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) { | |
48097 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
48098 | } | |
1bd55598 RD |
48099 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { |
48100 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
48101 | } | |
48102 | static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
48103 | return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
48104 | } | |
48105 | static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
48106 | return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
48107 | } | |
48108 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
48109 | return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
48110 | } | |
48111 | static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
48112 | return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
48113 | } | |
48114 | static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
48115 | return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
48116 | } | |
48117 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
48118 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
48119 | } | |
704eda0c RD |
48120 | static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) { |
48121 | return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x)); | |
48122 | } | |
2131d850 RD |
48123 | static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) { |
48124 | return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
48125 | } | |
b850e7f3 RD |
48126 | static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) { |
48127 | return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x)); | |
48128 | } | |
48129 | static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) { | |
48130 | return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x)); | |
48131 | } | |
48132 | static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) { | |
48133 | return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x)); | |
48134 | } | |
1bd55598 RD |
48135 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { |
48136 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
48137 | } | |
48138 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
48139 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
48140 | } | |
48141 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
48142 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
48143 | } | |
48144 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
48145 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
48146 | } | |
48147 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
48148 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
48149 | } | |
1bd55598 RD |
48150 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { |
48151 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
48152 | } | |
2131d850 RD |
48153 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { |
48154 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
48155 | } | |
1bd55598 RD |
48156 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { |
48157 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
48158 | } | |
48159 | static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) { | |
48160 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
48161 | } | |
48162 | static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) { | |
48163 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
48164 | } | |
48165 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
48166 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
48167 | } | |
48168 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
48169 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
48170 | } | |
48171 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
48172 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
48173 | } | |
5172800e RD |
48174 | static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) { |
48175 | return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x)); | |
48176 | } | |
1bd55598 RD |
48177 | static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) { |
48178 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
48179 | } | |
48180 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
48181 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
48182 | } | |
48183 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
48184 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
48185 | } | |
48186 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
48187 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
48188 | } | |
48189 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
48190 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
48191 | } | |
48192 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
48193 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
48194 | } | |
48195 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
48196 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
48197 | } | |
48198 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
48199 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
48200 | } | |
48201 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
48202 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
48203 | } | |
48204 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
48205 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
48206 | } | |
48207 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
48208 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
48209 | } | |
48210 | static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0}; | |
48211 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; | |
48212 | 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}; | |
48213 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
48214 | static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0}; | |
48215 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
48216 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
48217 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
48218 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; | |
48219 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
48220 | static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0}; | |
48221 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
48222 | static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0}; | |
48223 | static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0}; | |
48224 | static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0}; | |
48225 | static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0}; | |
48226 | static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0}; | |
48227 | static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0}; | |
48228 | static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0}; | |
48229 | static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0}; | |
48230 | static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0}; | |
5172800e RD |
48231 | static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0}; |
48232 | static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0}; | |
1bd55598 | 48233 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; |
b850e7f3 RD |
48234 | static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0}; |
48235 | static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0}; | |
1bd55598 RD |
48236 | static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0}; |
48237 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
48238 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 48239 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
1bd55598 RD |
48240 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
48241 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
48242 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
48243 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
48244 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
48245 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
48246 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
48247 | static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0}; | |
48248 | static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0}; | |
48249 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0}; | |
48250 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0}; | |
48251 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
48252 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
48253 | static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0}; | |
48254 | static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0}; | |
48255 | static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0}; | |
b850e7f3 | 48256 | static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0}; |
1bd55598 RD |
48257 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; |
48258 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
48259 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
48260 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
48261 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
48262 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
48263 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
48264 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
34e0a3bb | 48265 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
1bd55598 RD |
48266 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; |
48267 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
48268 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
48269 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
48270 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
48271 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
34e0a3bb | 48272 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; |
1bd55598 RD |
48273 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
48274 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
48275 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
48276 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
48277 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
48278 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
48279 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
48280 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
48281 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
48282 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
48283 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
48284 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
48285 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
48286 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
48287 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
48288 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
b850e7f3 RD |
48289 | static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0}; |
48290 | static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0}; | |
1bd55598 | 48291 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; |
b850e7f3 RD |
48292 | static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0}; |
48293 | static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0}; | |
1bd55598 RD |
48294 | static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0}; |
48295 | static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0}; | |
48296 | static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0}; | |
48297 | static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0}; | |
48298 | static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0}; | |
704eda0c RD |
48299 | static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0}; |
48300 | static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0}; | |
1bd55598 RD |
48301 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
48302 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
48303 | static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0}; | |
48304 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0}; | |
48305 | static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0}; | |
48306 | static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0}; | |
48307 | static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0}; | |
48308 | static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0}; | |
48309 | static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0}; | |
48310 | static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0}; | |
48311 | static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0}; | |
48312 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
48313 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0}; | |
48314 | static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0}; | |
48315 | static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0}; | |
48316 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
48317 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
48318 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
1bd55598 | 48319 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 48320 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
1bd55598 RD |
48321 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; |
48322 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
48323 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
48324 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
48325 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
48326 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
48327 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
48328 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
48329 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
48330 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
1bd55598 RD |
48331 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
48332 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
48333 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
48334 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
5172800e | 48335 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
b850e7f3 RD |
48336 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
48337 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
48338 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
48339 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
704eda0c | 48340 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; |
2131d850 | 48341 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; |
1bd55598 RD |
48342 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; |
48343 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
580080c5 | 48344 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; |
1bd55598 | 48345 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; |
580080c5 | 48346 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
1bd55598 RD |
48347 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; |
48348 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
48349 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
b850e7f3 | 48350 | static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0}; |
1bd55598 RD |
48351 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
48352 | static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0}; | |
48353 | static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0}; | |
48354 | static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0}; | |
48355 | static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0}; | |
48356 | static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0}; | |
48357 | static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0}; | |
48358 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
48359 | static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0}; | |
48360 | static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0}; | |
48361 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
48362 | static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0}; | |
48363 | static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0}; | |
48364 | static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0}; | |
48365 | static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0}; | |
48366 | static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0}; | |
48367 | static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0}; | |
48368 | static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0}; | |
48369 | static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0}; | |
48370 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; | |
48371 | static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0}; | |
48372 | static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0}; | |
48373 | static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0}; | |
48374 | static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0}; | |
48375 | static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0}; | |
48376 | static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0}; | |
48377 | static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0}; | |
48378 | static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0}; | |
48379 | static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0}; | |
1bd55598 RD |
48380 | static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0}; |
48381 | static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0}; | |
48382 | static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0}; | |
48383 | static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0}; | |
48384 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0}; | |
48385 | static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0}; | |
48386 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
b850e7f3 | 48387 | static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0}; |
1bd55598 RD |
48388 | |
48389 | static swig_type_info *swig_type_initial[] = { | |
48390 | &_swigt__p_bool, | |
48391 | &_swigt__p_char, | |
48392 | &_swigt__p_form_ops_t, | |
48393 | &_swigt__p_int, | |
48394 | &_swigt__p_long, | |
48395 | &_swigt__p_unsigned_char, | |
48396 | &_swigt__p_unsigned_int, | |
48397 | &_swigt__p_unsigned_long, | |
48398 | &_swigt__p_void, | |
48399 | &_swigt__p_wxANIHandler, | |
48400 | &_swigt__p_wxAcceleratorTable, | |
48401 | &_swigt__p_wxActivateEvent, | |
48402 | &_swigt__p_wxArrayInt, | |
48403 | &_swigt__p_wxArrayString, | |
48404 | &_swigt__p_wxBMPHandler, | |
48405 | &_swigt__p_wxBitmap, | |
48406 | &_swigt__p_wxBitmapButton, | |
48407 | &_swigt__p_wxBookCtrlBase, | |
48408 | &_swigt__p_wxBookCtrlBaseEvent, | |
48409 | &_swigt__p_wxBoxSizer, | |
48410 | &_swigt__p_wxButton, | |
48411 | &_swigt__p_wxCURHandler, | |
48412 | &_swigt__p_wxCheckBox, | |
48413 | &_swigt__p_wxCheckListBox, | |
48414 | &_swigt__p_wxChildFocusEvent, | |
48415 | &_swigt__p_wxChoice, | |
48416 | &_swigt__p_wxChoicebook, | |
48417 | &_swigt__p_wxChoicebookEvent, | |
2131d850 | 48418 | &_swigt__p_wxClipboardTextEvent, |
1bd55598 | 48419 | &_swigt__p_wxCloseEvent, |
5172800e RD |
48420 | &_swigt__p_wxCollapsiblePane, |
48421 | &_swigt__p_wxCollapsiblePaneEvent, | |
1bd55598 | 48422 | &_swigt__p_wxColour, |
b850e7f3 RD |
48423 | &_swigt__p_wxColourPickerCtrl, |
48424 | &_swigt__p_wxColourPickerEvent, | |
1bd55598 RD |
48425 | &_swigt__p_wxComboBox, |
48426 | &_swigt__p_wxCommandEvent, | |
48427 | &_swigt__p_wxContextHelp, | |
48428 | &_swigt__p_wxContextHelpButton, | |
48429 | &_swigt__p_wxContextMenuEvent, | |
48430 | &_swigt__p_wxControl, | |
48431 | &_swigt__p_wxControlWithItems, | |
48432 | &_swigt__p_wxCursor, | |
48433 | &_swigt__p_wxDC, | |
48434 | &_swigt__p_wxDateEvent, | |
48435 | &_swigt__p_wxDatePickerCtrl, | |
48436 | &_swigt__p_wxDateTime, | |
48437 | &_swigt__p_wxDirFilterListCtrl, | |
b850e7f3 | 48438 | &_swigt__p_wxDirPickerCtrl, |
1bd55598 RD |
48439 | &_swigt__p_wxDisplayChangedEvent, |
48440 | &_swigt__p_wxDropFilesEvent, | |
48441 | &_swigt__p_wxDuplexMode, | |
48442 | &_swigt__p_wxEraseEvent, | |
48443 | &_swigt__p_wxEvent, | |
48444 | &_swigt__p_wxEvtHandler, | |
48445 | &_swigt__p_wxFSFile, | |
b850e7f3 RD |
48446 | &_swigt__p_wxFileDirPickerEvent, |
48447 | &_swigt__p_wxFilePickerCtrl, | |
1bd55598 RD |
48448 | &_swigt__p_wxFileSystem, |
48449 | &_swigt__p_wxFlexGridSizer, | |
48450 | &_swigt__p_wxFocusEvent, | |
48451 | &_swigt__p_wxFont, | |
b850e7f3 RD |
48452 | &_swigt__p_wxFontPickerCtrl, |
48453 | &_swigt__p_wxFontPickerEvent, | |
1bd55598 RD |
48454 | &_swigt__p_wxGBSizerItem, |
48455 | &_swigt__p_wxGIFHandler, | |
48456 | &_swigt__p_wxGauge, | |
48457 | &_swigt__p_wxGenericDirCtrl, | |
48458 | &_swigt__p_wxGenericDragImage, | |
48459 | &_swigt__p_wxGridBagSizer, | |
48460 | &_swigt__p_wxGridSizer, | |
48461 | &_swigt__p_wxHelpEvent, | |
48462 | &_swigt__p_wxHelpProvider, | |
704eda0c RD |
48463 | &_swigt__p_wxHyperlinkCtrl, |
48464 | &_swigt__p_wxHyperlinkEvent, | |
1bd55598 RD |
48465 | &_swigt__p_wxICOHandler, |
48466 | &_swigt__p_wxIcon, | |
48467 | &_swigt__p_wxIconizeEvent, | |
48468 | &_swigt__p_wxIdleEvent, | |
48469 | &_swigt__p_wxImage, | |
48470 | &_swigt__p_wxImageHandler, | |
48471 | &_swigt__p_wxImageList, | |
48472 | &_swigt__p_wxIndividualLayoutConstraint, | |
48473 | &_swigt__p_wxInitDialogEvent, | |
48474 | &_swigt__p_wxItemContainer, | |
48475 | &_swigt__p_wxJPEGHandler, | |
48476 | &_swigt__p_wxKeyEvent, | |
48477 | &_swigt__p_wxLayoutConstraints, | |
48478 | &_swigt__p_wxListBox, | |
48479 | &_swigt__p_wxListEvent, | |
48480 | &_swigt__p_wxListItem, | |
48481 | &_swigt__p_wxListItemAttr, | |
48482 | &_swigt__p_wxListView, | |
48483 | &_swigt__p_wxListbook, | |
48484 | &_swigt__p_wxListbookEvent, | |
48485 | &_swigt__p_wxMaximizeEvent, | |
48486 | &_swigt__p_wxMemoryDC, | |
48487 | &_swigt__p_wxMenu, | |
48488 | &_swigt__p_wxMenuBar, | |
48489 | &_swigt__p_wxMenuEvent, | |
48490 | &_swigt__p_wxMenuItem, | |
48491 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 48492 | &_swigt__p_wxMouseCaptureLostEvent, |
1bd55598 RD |
48493 | &_swigt__p_wxMouseEvent, |
48494 | &_swigt__p_wxMoveEvent, | |
48495 | &_swigt__p_wxNavigationKeyEvent, | |
48496 | &_swigt__p_wxNcPaintEvent, | |
48497 | &_swigt__p_wxNotebook, | |
48498 | &_swigt__p_wxNotebookEvent, | |
48499 | &_swigt__p_wxNotifyEvent, | |
48500 | &_swigt__p_wxObject, | |
48501 | &_swigt__p_wxPCXHandler, | |
48502 | &_swigt__p_wxPNGHandler, | |
48503 | &_swigt__p_wxPNMHandler, | |
48504 | &_swigt__p_wxPaintEvent, | |
48505 | &_swigt__p_wxPaletteChangedEvent, | |
48506 | &_swigt__p_wxPaperSize, | |
b850e7f3 | 48507 | &_swigt__p_wxPickerBase, |
1bd55598 RD |
48508 | &_swigt__p_wxPoint, |
48509 | &_swigt__p_wxPyApp, | |
48510 | &_swigt__p_wxPyCommandEvent, | |
48511 | &_swigt__p_wxPyControl, | |
48512 | &_swigt__p_wxPyEvent, | |
48513 | &_swigt__p_wxPyImageHandler, | |
48514 | &_swigt__p_wxPyListCtrl, | |
48515 | &_swigt__p_wxPySizer, | |
48516 | &_swigt__p_wxPyTreeCtrl, | |
48517 | &_swigt__p_wxPyTreeItemData, | |
48518 | &_swigt__p_wxPyValidator, | |
48519 | &_swigt__p_wxQueryNewPaletteEvent, | |
48520 | &_swigt__p_wxRadioBox, | |
48521 | &_swigt__p_wxRadioButton, | |
48522 | &_swigt__p_wxRect, | |
48523 | &_swigt__p_wxScrollBar, | |
48524 | &_swigt__p_wxScrollEvent, | |
48525 | &_swigt__p_wxScrollWinEvent, | |
48526 | &_swigt__p_wxSetCursorEvent, | |
48527 | &_swigt__p_wxShowEvent, | |
48528 | &_swigt__p_wxSimpleHelpProvider, | |
48529 | &_swigt__p_wxSize, | |
48530 | &_swigt__p_wxSizeEvent, | |
48531 | &_swigt__p_wxSizer, | |
48532 | &_swigt__p_wxSizerItem, | |
48533 | &_swigt__p_wxSlider, | |
48534 | &_swigt__p_wxSpinButton, | |
48535 | &_swigt__p_wxSpinCtrl, | |
48536 | &_swigt__p_wxSpinEvent, | |
48537 | &_swigt__p_wxStaticBitmap, | |
48538 | &_swigt__p_wxStaticBox, | |
48539 | &_swigt__p_wxStaticBoxSizer, | |
48540 | &_swigt__p_wxStaticLine, | |
48541 | &_swigt__p_wxStaticText, | |
48542 | &_swigt__p_wxStdDialogButtonSizer, | |
48543 | &_swigt__p_wxString, | |
48544 | &_swigt__p_wxSysColourChangedEvent, | |
580080c5 | 48545 | &_swigt__p_wxTGAHandler, |
1bd55598 RD |
48546 | &_swigt__p_wxTIFFHandler, |
48547 | &_swigt__p_wxTextAttr, | |
48548 | &_swigt__p_wxTextCtrl, | |
48549 | &_swigt__p_wxTextUrlEvent, | |
48550 | &_swigt__p_wxToggleButton, | |
48551 | &_swigt__p_wxToolBar, | |
48552 | &_swigt__p_wxToolBarBase, | |
48553 | &_swigt__p_wxToolBarToolBase, | |
48554 | &_swigt__p_wxToolbook, | |
48555 | &_swigt__p_wxToolbookEvent, | |
1bd55598 RD |
48556 | &_swigt__p_wxTreeEvent, |
48557 | &_swigt__p_wxTreeItemId, | |
48558 | &_swigt__p_wxTreebook, | |
48559 | &_swigt__p_wxTreebookEvent, | |
48560 | &_swigt__p_wxUpdateUIEvent, | |
48561 | &_swigt__p_wxValidator, | |
48562 | &_swigt__p_wxVisualAttributes, | |
48563 | &_swigt__p_wxWindow, | |
b850e7f3 | 48564 | &_swigt__p_wxWindowBase, |
1bd55598 RD |
48565 | &_swigt__p_wxWindowCreateEvent, |
48566 | &_swigt__p_wxWindowDestroyEvent, | |
48567 | &_swigt__p_wxXPMHandler, | |
48568 | }; | |
48569 | ||
48570 | static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; | |
48571 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
48572 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
48573 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
48574 | static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; | |
48575 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
48576 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
48577 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
48578 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; | |
48579 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
48580 | static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}}; | |
48581 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
48582 | static swig_cast_info _swigc__p_wxBitmapButton[] = { {&_swigt__p_wxBitmapButton, 0, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxBitmapButton, 0, 0},{0, 0, 0, 0}}; | |
48583 | static swig_cast_info _swigc__p_wxBookCtrlBase[] = { {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxBookCtrlBase, 0, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxBookCtrlBase, 0, 0},{0, 0, 0, 0}}; | |
48584 | static swig_cast_info _swigc__p_wxBookCtrlBaseEvent[] = { {&_swigt__p_wxBookCtrlBaseEvent, 0, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxBookCtrlBaseEvent, 0, 0},{0, 0, 0, 0}}; | |
48585 | static swig_cast_info _swigc__p_wxButton[] = { {&_swigt__p_wxButton, 0, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxButton, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxButton, 0, 0},{0, 0, 0, 0}}; | |
48586 | static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}}; | |
48587 | static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
48588 | static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}}; | |
48589 | static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}}; | |
48590 | static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5172800e RD |
48591 | static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}}; |
48592 | static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 | 48593 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 RD |
48594 | static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
48595 | static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 RD |
48596 | static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}}; |
48597 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 48598 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
48599 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
48600 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48601 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48602 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48603 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48604 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48605 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5172800e | 48606 | static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
48607 | static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}}; |
48608 | static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}}; | |
5172800e | 48609 | static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxControl, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
48610 | static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}}; |
48611 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
48612 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; | |
48613 | static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
48614 | static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}}; | |
48615 | static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
b850e7f3 | 48616 | static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
48617 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; |
48618 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48619 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48620 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48621 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48622 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48623 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 48624 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
48625 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; |
48626 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48627 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48628 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48629 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48630 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 48631 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
48632 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
48633 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48634 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48635 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48636 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48637 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48638 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48639 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48640 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48641 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48642 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5172800e | 48643 | 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_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 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_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_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_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_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
48644 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; |
48645 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
48646 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
48647 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
5172800e | 48648 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 RD |
48649 | static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}}; |
48650 | static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 | 48651 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 RD |
48652 | static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
48653 | static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 RD |
48654 | static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}}; |
48655 | static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
48656 | static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}}; | |
48657 | static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48658 | static swig_cast_info _swigc__p_wxHelpProvider[] = { {&_swigt__p_wxHelpProvider, 0, 0, 0}, {&_swigt__p_wxSimpleHelpProvider, _p_wxSimpleHelpProviderTo_p_wxHelpProvider, 0, 0},{0, 0, 0, 0}}; | |
704eda0c RD |
48659 | static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
48660 | static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 RD |
48661 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
48662 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
48663 | static swig_cast_info _swigc__p_wxItemContainer[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxItemContainer, 0, 0, 0},{0, 0, 0, 0}}; | |
48664 | static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48665 | static swig_cast_info _swigc__p_wxListBox[] = { {&_swigt__p_wxListBox, 0, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxListBox, 0, 0},{0, 0, 0, 0}}; | |
48666 | static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48667 | static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}}; | |
48668 | static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
48669 | static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}}; | |
48670 | static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}}; | |
48671 | static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48672 | static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}}; | |
48673 | static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48674 | static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}}; | |
48675 | static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48676 | static swig_cast_info _swigc__p_wxNotifyEvent[] = { {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48677 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 | 48678 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 48679 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
48680 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; |
48681 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
48682 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
48683 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
48684 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
48685 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
48686 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
48687 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
48688 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
48689 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 RD |
48690 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
48691 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
48692 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
48693 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5172800e | 48694 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 RD |
48695 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
48696 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
48697 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
48698 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
704eda0c | 48699 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 48700 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
48701 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; |
48702 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 48703 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 | 48704 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 48705 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
48706 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; |
48707 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
5172800e | 48708 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_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_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_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_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_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_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_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_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_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_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_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_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_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}}; |
1bd55598 | 48709 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 | 48710 | static swig_cast_info _swigc__p_wxPickerBase[] = { {&_swigt__p_wxPickerBase, 0, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxPickerBase, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
48711 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
48712 | static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}}; | |
48713 | static swig_cast_info _swigc__p_wxPyListCtrl[] = { {&_swigt__p_wxPyListCtrl, 0, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxPyListCtrl, 0, 0},{0, 0, 0, 0}}; | |
48714 | static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
48715 | static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}}; | |
48716 | static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}}; | |
48717 | static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}}; | |
48718 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
48719 | static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}}; | |
48720 | static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}}; | |
48721 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
48722 | static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}}; | |
48723 | static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}}; | |
48724 | static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
48725 | static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48726 | static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
48727 | static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}}; | |
48728 | static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}}; | |
48729 | static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}}; | |
48730 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
48731 | static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
48732 | static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
48733 | static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48734 | static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}}; | |
48735 | static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}}; | |
48736 | static swig_cast_info _swigc__p_wxToolBarBase[] = { {&_swigt__p_wxToolBarBase, 0, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxToolBarBase, 0, 0},{0, 0, 0, 0}}; | |
48737 | static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}}; | |
48738 | static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}}; | |
48739 | static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 RD |
48740 | static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}}; |
48741 | static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}}; | |
48742 | static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}}; | |
48743 | static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48744 | static swig_cast_info _swigc__p_wxValidator[] = { {&_swigt__p_wxValidator, 0, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxValidator, 0, 0},{0, 0, 0, 0}}; | |
48745 | static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}}; | |
5172800e | 48746 | static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 | 48747 | static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
48748 | |
48749 | static swig_cast_info *swig_cast_initial[] = { | |
48750 | _swigc__p_bool, | |
48751 | _swigc__p_char, | |
48752 | _swigc__p_form_ops_t, | |
48753 | _swigc__p_int, | |
48754 | _swigc__p_long, | |
48755 | _swigc__p_unsigned_char, | |
48756 | _swigc__p_unsigned_int, | |
48757 | _swigc__p_unsigned_long, | |
48758 | _swigc__p_void, | |
48759 | _swigc__p_wxANIHandler, | |
48760 | _swigc__p_wxAcceleratorTable, | |
48761 | _swigc__p_wxActivateEvent, | |
48762 | _swigc__p_wxArrayInt, | |
48763 | _swigc__p_wxArrayString, | |
48764 | _swigc__p_wxBMPHandler, | |
48765 | _swigc__p_wxBitmap, | |
48766 | _swigc__p_wxBitmapButton, | |
48767 | _swigc__p_wxBookCtrlBase, | |
48768 | _swigc__p_wxBookCtrlBaseEvent, | |
48769 | _swigc__p_wxBoxSizer, | |
48770 | _swigc__p_wxButton, | |
48771 | _swigc__p_wxCURHandler, | |
48772 | _swigc__p_wxCheckBox, | |
48773 | _swigc__p_wxCheckListBox, | |
48774 | _swigc__p_wxChildFocusEvent, | |
48775 | _swigc__p_wxChoice, | |
48776 | _swigc__p_wxChoicebook, | |
48777 | _swigc__p_wxChoicebookEvent, | |
2131d850 | 48778 | _swigc__p_wxClipboardTextEvent, |
1bd55598 | 48779 | _swigc__p_wxCloseEvent, |
5172800e RD |
48780 | _swigc__p_wxCollapsiblePane, |
48781 | _swigc__p_wxCollapsiblePaneEvent, | |
1bd55598 | 48782 | _swigc__p_wxColour, |
b850e7f3 RD |
48783 | _swigc__p_wxColourPickerCtrl, |
48784 | _swigc__p_wxColourPickerEvent, | |
1bd55598 RD |
48785 | _swigc__p_wxComboBox, |
48786 | _swigc__p_wxCommandEvent, | |
48787 | _swigc__p_wxContextHelp, | |
48788 | _swigc__p_wxContextHelpButton, | |
48789 | _swigc__p_wxContextMenuEvent, | |
48790 | _swigc__p_wxControl, | |
48791 | _swigc__p_wxControlWithItems, | |
48792 | _swigc__p_wxCursor, | |
48793 | _swigc__p_wxDC, | |
48794 | _swigc__p_wxDateEvent, | |
48795 | _swigc__p_wxDatePickerCtrl, | |
48796 | _swigc__p_wxDateTime, | |
48797 | _swigc__p_wxDirFilterListCtrl, | |
b850e7f3 | 48798 | _swigc__p_wxDirPickerCtrl, |
1bd55598 RD |
48799 | _swigc__p_wxDisplayChangedEvent, |
48800 | _swigc__p_wxDropFilesEvent, | |
48801 | _swigc__p_wxDuplexMode, | |
48802 | _swigc__p_wxEraseEvent, | |
48803 | _swigc__p_wxEvent, | |
48804 | _swigc__p_wxEvtHandler, | |
48805 | _swigc__p_wxFSFile, | |
b850e7f3 RD |
48806 | _swigc__p_wxFileDirPickerEvent, |
48807 | _swigc__p_wxFilePickerCtrl, | |
1bd55598 RD |
48808 | _swigc__p_wxFileSystem, |
48809 | _swigc__p_wxFlexGridSizer, | |
48810 | _swigc__p_wxFocusEvent, | |
48811 | _swigc__p_wxFont, | |
b850e7f3 RD |
48812 | _swigc__p_wxFontPickerCtrl, |
48813 | _swigc__p_wxFontPickerEvent, | |
1bd55598 RD |
48814 | _swigc__p_wxGBSizerItem, |
48815 | _swigc__p_wxGIFHandler, | |
48816 | _swigc__p_wxGauge, | |
48817 | _swigc__p_wxGenericDirCtrl, | |
48818 | _swigc__p_wxGenericDragImage, | |
48819 | _swigc__p_wxGridBagSizer, | |
48820 | _swigc__p_wxGridSizer, | |
48821 | _swigc__p_wxHelpEvent, | |
48822 | _swigc__p_wxHelpProvider, | |
704eda0c RD |
48823 | _swigc__p_wxHyperlinkCtrl, |
48824 | _swigc__p_wxHyperlinkEvent, | |
1bd55598 RD |
48825 | _swigc__p_wxICOHandler, |
48826 | _swigc__p_wxIcon, | |
48827 | _swigc__p_wxIconizeEvent, | |
48828 | _swigc__p_wxIdleEvent, | |
48829 | _swigc__p_wxImage, | |
48830 | _swigc__p_wxImageHandler, | |
48831 | _swigc__p_wxImageList, | |
48832 | _swigc__p_wxIndividualLayoutConstraint, | |
48833 | _swigc__p_wxInitDialogEvent, | |
48834 | _swigc__p_wxItemContainer, | |
48835 | _swigc__p_wxJPEGHandler, | |
48836 | _swigc__p_wxKeyEvent, | |
48837 | _swigc__p_wxLayoutConstraints, | |
48838 | _swigc__p_wxListBox, | |
48839 | _swigc__p_wxListEvent, | |
48840 | _swigc__p_wxListItem, | |
48841 | _swigc__p_wxListItemAttr, | |
48842 | _swigc__p_wxListView, | |
48843 | _swigc__p_wxListbook, | |
48844 | _swigc__p_wxListbookEvent, | |
48845 | _swigc__p_wxMaximizeEvent, | |
48846 | _swigc__p_wxMemoryDC, | |
48847 | _swigc__p_wxMenu, | |
48848 | _swigc__p_wxMenuBar, | |
48849 | _swigc__p_wxMenuEvent, | |
48850 | _swigc__p_wxMenuItem, | |
48851 | _swigc__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 48852 | _swigc__p_wxMouseCaptureLostEvent, |
1bd55598 RD |
48853 | _swigc__p_wxMouseEvent, |
48854 | _swigc__p_wxMoveEvent, | |
48855 | _swigc__p_wxNavigationKeyEvent, | |
48856 | _swigc__p_wxNcPaintEvent, | |
48857 | _swigc__p_wxNotebook, | |
48858 | _swigc__p_wxNotebookEvent, | |
48859 | _swigc__p_wxNotifyEvent, | |
48860 | _swigc__p_wxObject, | |
48861 | _swigc__p_wxPCXHandler, | |
48862 | _swigc__p_wxPNGHandler, | |
48863 | _swigc__p_wxPNMHandler, | |
48864 | _swigc__p_wxPaintEvent, | |
48865 | _swigc__p_wxPaletteChangedEvent, | |
48866 | _swigc__p_wxPaperSize, | |
b850e7f3 | 48867 | _swigc__p_wxPickerBase, |
1bd55598 RD |
48868 | _swigc__p_wxPoint, |
48869 | _swigc__p_wxPyApp, | |
48870 | _swigc__p_wxPyCommandEvent, | |
48871 | _swigc__p_wxPyControl, | |
48872 | _swigc__p_wxPyEvent, | |
48873 | _swigc__p_wxPyImageHandler, | |
48874 | _swigc__p_wxPyListCtrl, | |
48875 | _swigc__p_wxPySizer, | |
48876 | _swigc__p_wxPyTreeCtrl, | |
48877 | _swigc__p_wxPyTreeItemData, | |
48878 | _swigc__p_wxPyValidator, | |
48879 | _swigc__p_wxQueryNewPaletteEvent, | |
48880 | _swigc__p_wxRadioBox, | |
48881 | _swigc__p_wxRadioButton, | |
48882 | _swigc__p_wxRect, | |
48883 | _swigc__p_wxScrollBar, | |
48884 | _swigc__p_wxScrollEvent, | |
48885 | _swigc__p_wxScrollWinEvent, | |
48886 | _swigc__p_wxSetCursorEvent, | |
48887 | _swigc__p_wxShowEvent, | |
48888 | _swigc__p_wxSimpleHelpProvider, | |
48889 | _swigc__p_wxSize, | |
48890 | _swigc__p_wxSizeEvent, | |
48891 | _swigc__p_wxSizer, | |
48892 | _swigc__p_wxSizerItem, | |
48893 | _swigc__p_wxSlider, | |
48894 | _swigc__p_wxSpinButton, | |
48895 | _swigc__p_wxSpinCtrl, | |
48896 | _swigc__p_wxSpinEvent, | |
48897 | _swigc__p_wxStaticBitmap, | |
48898 | _swigc__p_wxStaticBox, | |
48899 | _swigc__p_wxStaticBoxSizer, | |
48900 | _swigc__p_wxStaticLine, | |
48901 | _swigc__p_wxStaticText, | |
48902 | _swigc__p_wxStdDialogButtonSizer, | |
48903 | _swigc__p_wxString, | |
48904 | _swigc__p_wxSysColourChangedEvent, | |
580080c5 | 48905 | _swigc__p_wxTGAHandler, |
1bd55598 RD |
48906 | _swigc__p_wxTIFFHandler, |
48907 | _swigc__p_wxTextAttr, | |
48908 | _swigc__p_wxTextCtrl, | |
48909 | _swigc__p_wxTextUrlEvent, | |
48910 | _swigc__p_wxToggleButton, | |
48911 | _swigc__p_wxToolBar, | |
48912 | _swigc__p_wxToolBarBase, | |
48913 | _swigc__p_wxToolBarToolBase, | |
48914 | _swigc__p_wxToolbook, | |
48915 | _swigc__p_wxToolbookEvent, | |
1bd55598 RD |
48916 | _swigc__p_wxTreeEvent, |
48917 | _swigc__p_wxTreeItemId, | |
48918 | _swigc__p_wxTreebook, | |
48919 | _swigc__p_wxTreebookEvent, | |
48920 | _swigc__p_wxUpdateUIEvent, | |
48921 | _swigc__p_wxValidator, | |
48922 | _swigc__p_wxVisualAttributes, | |
48923 | _swigc__p_wxWindow, | |
b850e7f3 | 48924 | _swigc__p_wxWindowBase, |
1bd55598 RD |
48925 | _swigc__p_wxWindowCreateEvent, |
48926 | _swigc__p_wxWindowDestroyEvent, | |
48927 | _swigc__p_wxXPMHandler, | |
48928 | }; | |
48929 | ||
48930 | ||
48931 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
48932 | ||
48933 | static swig_const_info swig_const_table[] = { | |
48934 | {0, 0, 0, 0.0, 0, 0}}; | |
48935 | ||
48936 | #ifdef __cplusplus | |
48937 | } | |
48938 | #endif | |
48939 | /* ----------------------------------------------------------------------------- | |
48940 | * Type initialization: | |
48941 | * This problem is tough by the requirement that no dynamic | |
48942 | * memory is used. Also, since swig_type_info structures store pointers to | |
48943 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
48944 | * to swig_type_info structures, we need some lookup code at initialization. | |
48945 | * The idea is that swig generates all the structures that are needed. | |
48946 | * The runtime then collects these partially filled structures. | |
48947 | * The SWIG_InitializeModule function takes these initial arrays out of | |
48948 | * swig_module, and does all the lookup, filling in the swig_module.types | |
48949 | * array with the correct data and linking the correct swig_cast_info | |
48950 | * structures together. | |
48951 | * | |
48952 | * The generated swig_type_info structures are assigned staticly to an initial | |
48953 | * array. We just loop though that array, and handle each type individually. | |
48954 | * First we lookup if this type has been already loaded, and if so, use the | |
48955 | * loaded structure instead of the generated one. Then we have to fill in the | |
48956 | * cast linked list. The cast data is initially stored in something like a | |
48957 | * two-dimensional array. Each row corresponds to a type (there are the same | |
48958 | * number of rows as there are in the swig_type_initial array). Each entry in | |
48959 | * a column is one of the swig_cast_info structures for that type. | |
48960 | * The cast_initial array is actually an array of arrays, because each row has | |
48961 | * a variable number of columns. So to actually build the cast linked list, | |
48962 | * we find the array of casts associated with the type, and loop through it | |
48963 | * adding the casts to the list. The one last trick we need to do is making | |
48964 | * sure the type pointer in the swig_cast_info struct is correct. | |
48965 | * | |
48966 | * First off, we lookup the cast->type name to see if it is already loaded. | |
48967 | * There are three cases to handle: | |
48968 | * 1) If the cast->type has already been loaded AND the type we are adding | |
48969 | * casting info to has not been loaded (it is in this module), THEN we | |
48970 | * replace the cast->type pointer with the type pointer that has already | |
48971 | * been loaded. | |
48972 | * 2) If BOTH types (the one we are adding casting info to, and the | |
48973 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
48974 | * the previous module so we just ignore it. | |
48975 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
48976 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
48977 | * be correct. | |
48978 | * ----------------------------------------------------------------------------- */ | |
48979 | ||
48980 | #ifdef __cplusplus | |
48981 | extern "C" { | |
48982 | #if 0 | |
48983 | } /* c-mode */ | |
48984 | #endif | |
48985 | #endif | |
48986 | ||
48987 | #if 0 | |
48988 | #define SWIGRUNTIME_DEBUG | |
48989 | #endif | |
48990 | ||
48991 | SWIGRUNTIME void | |
48992 | SWIG_InitializeModule(void *clientdata) { | |
48993 | size_t i; | |
48994 | swig_module_info *module_head; | |
48995 | static int init_run = 0; | |
48996 | ||
48997 | clientdata = clientdata; | |
48998 | ||
48999 | if (init_run) return; | |
49000 | init_run = 1; | |
49001 | ||
49002 | /* Initialize the swig_module */ | |
49003 | swig_module.type_initial = swig_type_initial; | |
49004 | swig_module.cast_initial = swig_cast_initial; | |
49005 | ||
49006 | /* Try and load any already created modules */ | |
49007 | module_head = SWIG_GetModule(clientdata); | |
49008 | if (module_head) { | |
49009 | swig_module.next = module_head->next; | |
49010 | module_head->next = &swig_module; | |
49011 | } else { | |
49012 | /* This is the first module loaded */ | |
49013 | swig_module.next = &swig_module; | |
49014 | SWIG_SetModule(clientdata, &swig_module); | |
49015 | } | |
49016 | ||
49017 | /* Now work on filling in swig_module.types */ | |
49018 | #ifdef SWIGRUNTIME_DEBUG | |
49019 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
49020 | #endif | |
49021 | for (i = 0; i < swig_module.size; ++i) { | |
49022 | swig_type_info *type = 0; | |
49023 | swig_type_info *ret; | |
49024 | swig_cast_info *cast; | |
d55e5bfc | 49025 | |
1bd55598 RD |
49026 | #ifdef SWIGRUNTIME_DEBUG |
49027 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
49028 | #endif | |
d55e5bfc | 49029 | |
1bd55598 RD |
49030 | /* if there is another module already loaded */ |
49031 | if (swig_module.next != &swig_module) { | |
49032 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
36ed4f51 | 49033 | } |
1bd55598 RD |
49034 | if (type) { |
49035 | /* Overwrite clientdata field */ | |
49036 | #ifdef SWIGRUNTIME_DEBUG | |
49037 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
49038 | #endif | |
49039 | if (swig_module.type_initial[i]->clientdata) { | |
49040 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
49041 | #ifdef SWIGRUNTIME_DEBUG | |
49042 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
49043 | #endif | |
49044 | } | |
49045 | } else { | |
49046 | type = swig_module.type_initial[i]; | |
36ed4f51 | 49047 | } |
d55e5bfc | 49048 | |
1bd55598 RD |
49049 | /* Insert casting types */ |
49050 | cast = swig_module.cast_initial[i]; | |
49051 | while (cast->type) { | |
49052 | /* Don't need to add information already in the list */ | |
49053 | ret = 0; | |
49054 | #ifdef SWIGRUNTIME_DEBUG | |
49055 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
49056 | #endif | |
49057 | if (swig_module.next != &swig_module) { | |
49058 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
49059 | #ifdef SWIGRUNTIME_DEBUG | |
49060 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
49061 | #endif | |
49062 | } | |
49063 | if (ret) { | |
49064 | if (type == swig_module.type_initial[i]) { | |
49065 | #ifdef SWIGRUNTIME_DEBUG | |
49066 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
49067 | #endif | |
49068 | cast->type = ret; | |
49069 | ret = 0; | |
49070 | } else { | |
49071 | /* Check for casting already in the list */ | |
49072 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
49073 | #ifdef SWIGRUNTIME_DEBUG | |
49074 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
49075 | #endif | |
49076 | if (!ocast) ret = 0; | |
49077 | } | |
49078 | } | |
49079 | ||
49080 | if (!ret) { | |
49081 | #ifdef SWIGRUNTIME_DEBUG | |
49082 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
49083 | #endif | |
49084 | if (type->cast) { | |
49085 | type->cast->prev = cast; | |
49086 | cast->next = type->cast; | |
49087 | } | |
49088 | type->cast = cast; | |
49089 | } | |
49090 | cast++; | |
36ed4f51 | 49091 | } |
1bd55598 RD |
49092 | /* Set entry in modules->types array equal to the type */ |
49093 | swig_module.types[i] = type; | |
49094 | } | |
49095 | swig_module.types[i] = 0; | |
49096 | ||
49097 | #ifdef SWIGRUNTIME_DEBUG | |
49098 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
49099 | for (i = 0; i < swig_module.size; ++i) { | |
49100 | int j = 0; | |
49101 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
49102 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
49103 | while (cast->type) { | |
49104 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
49105 | cast++; | |
49106 | ++j; | |
49107 | } | |
49108 | printf("---- Total casts: %d\n",j); | |
49109 | } | |
49110 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
49111 | #endif | |
49112 | } | |
49113 | ||
49114 | /* This function will propagate the clientdata field of type to | |
49115 | * any new swig_type_info structures that have been added into the list | |
49116 | * of equivalent types. It is like calling | |
49117 | * SWIG_TypeClientData(type, clientdata) a second time. | |
49118 | */ | |
49119 | SWIGRUNTIME void | |
49120 | SWIG_PropagateClientData(void) { | |
49121 | size_t i; | |
49122 | swig_cast_info *equiv; | |
49123 | static int init_run = 0; | |
49124 | ||
49125 | if (init_run) return; | |
49126 | init_run = 1; | |
49127 | ||
49128 | for (i = 0; i < swig_module.size; i++) { | |
49129 | if (swig_module.types[i]->clientdata) { | |
49130 | equiv = swig_module.types[i]->cast; | |
49131 | while (equiv) { | |
49132 | if (!equiv->converter) { | |
49133 | if (equiv->type && !equiv->type->clientdata) | |
49134 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
49135 | } | |
49136 | equiv = equiv->next; | |
49137 | } | |
36ed4f51 | 49138 | } |
1bd55598 RD |
49139 | } |
49140 | } | |
49141 | ||
49142 | #ifdef __cplusplus | |
49143 | #if 0 | |
49144 | { | |
49145 | /* c-mode */ | |
49146 | #endif | |
49147 | } | |
49148 | #endif | |
49149 | ||
49150 | ||
49151 | ||
49152 | #ifdef __cplusplus | |
49153 | extern "C" { | |
49154 | #endif | |
49155 | ||
49156 | /* Python-specific SWIG API */ | |
49157 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
49158 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
49159 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
49160 | ||
49161 | /* ----------------------------------------------------------------------------- | |
49162 | * global variable support code. | |
49163 | * ----------------------------------------------------------------------------- */ | |
49164 | ||
49165 | typedef struct swig_globalvar { | |
49166 | char *name; /* Name of global variable */ | |
49167 | PyObject *(*get_attr)(void); /* Return the current value */ | |
49168 | int (*set_attr)(PyObject *); /* Set the value */ | |
49169 | struct swig_globalvar *next; | |
49170 | } swig_globalvar; | |
49171 | ||
49172 | typedef struct swig_varlinkobject { | |
49173 | PyObject_HEAD | |
49174 | swig_globalvar *vars; | |
49175 | } swig_varlinkobject; | |
49176 | ||
49177 | SWIGINTERN PyObject * | |
49178 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
49179 | return PyString_FromString("<Swig global variables>"); | |
49180 | } | |
49181 | ||
49182 | SWIGINTERN PyObject * | |
49183 | swig_varlink_str(swig_varlinkobject *v) { | |
49184 | PyObject *str = PyString_FromString("("); | |
49185 | swig_globalvar *var; | |
49186 | for (var = v->vars; var; var=var->next) { | |
49187 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
49188 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
49189 | } | |
49190 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
49191 | return str; | |
49192 | } | |
49193 | ||
49194 | SWIGINTERN int | |
49195 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
49196 | PyObject *str = swig_varlink_str(v); | |
49197 | fprintf(fp,"Swig global variables "); | |
49198 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
49199 | Py_DECREF(str); | |
49200 | return 0; | |
49201 | } | |
49202 | ||
49203 | SWIGINTERN void | |
49204 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
49205 | swig_globalvar *var = v->vars; | |
49206 | while (var) { | |
49207 | swig_globalvar *n = var->next; | |
49208 | free(var->name); | |
49209 | free(var); | |
49210 | var = n; | |
36ed4f51 | 49211 | } |
1bd55598 RD |
49212 | } |
49213 | ||
49214 | SWIGINTERN PyObject * | |
49215 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
49216 | PyObject *res = NULL; | |
49217 | swig_globalvar *var = v->vars; | |
49218 | while (var) { | |
49219 | if (strcmp(var->name,n) == 0) { | |
49220 | res = (*var->get_attr)(); | |
49221 | break; | |
49222 | } | |
49223 | var = var->next; | |
36ed4f51 | 49224 | } |
1bd55598 RD |
49225 | if (res == NULL && !PyErr_Occurred()) { |
49226 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
36ed4f51 | 49227 | } |
1bd55598 RD |
49228 | return res; |
49229 | } | |
49230 | ||
49231 | SWIGINTERN int | |
49232 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
49233 | int res = 1; | |
49234 | swig_globalvar *var = v->vars; | |
49235 | while (var) { | |
49236 | if (strcmp(var->name,n) == 0) { | |
49237 | res = (*var->set_attr)(p); | |
49238 | break; | |
49239 | } | |
49240 | var = var->next; | |
36ed4f51 | 49241 | } |
1bd55598 RD |
49242 | if (res == 1 && !PyErr_Occurred()) { |
49243 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
53aa7709 | 49244 | } |
1bd55598 RD |
49245 | return res; |
49246 | } | |
49247 | ||
49248 | SWIGINTERN PyTypeObject* | |
49249 | swig_varlink_type(void) { | |
49250 | static char varlink__doc__[] = "Swig var link object"; | |
49251 | static PyTypeObject varlink_type; | |
49252 | static int type_init = 0; | |
49253 | if (!type_init) { | |
49254 | const PyTypeObject tmp | |
49255 | = { | |
49256 | PyObject_HEAD_INIT(NULL) | |
49257 | 0, /* Number of items in variable part (ob_size) */ | |
49258 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
49259 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
49260 | 0, /* Itemsize (tp_itemsize) */ | |
49261 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
49262 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
49263 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
49264 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
49265 | 0, /* tp_compare */ | |
49266 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
49267 | 0, /* tp_as_number */ | |
49268 | 0, /* tp_as_sequence */ | |
49269 | 0, /* tp_as_mapping */ | |
49270 | 0, /* tp_hash */ | |
49271 | 0, /* tp_call */ | |
49272 | (reprfunc)swig_varlink_str, /* tp_str */ | |
49273 | 0, /* tp_getattro */ | |
49274 | 0, /* tp_setattro */ | |
49275 | 0, /* tp_as_buffer */ | |
49276 | 0, /* tp_flags */ | |
49277 | varlink__doc__, /* tp_doc */ | |
49278 | 0, /* tp_traverse */ | |
49279 | 0, /* tp_clear */ | |
49280 | 0, /* tp_richcompare */ | |
49281 | 0, /* tp_weaklistoffset */ | |
49282 | #if PY_VERSION_HEX >= 0x02020000 | |
49283 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
49284 | #endif | |
49285 | #if PY_VERSION_HEX >= 0x02030000 | |
49286 | 0, /* tp_del */ | |
49287 | #endif | |
49288 | #ifdef COUNT_ALLOCS | |
49289 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
49290 | #endif | |
49291 | }; | |
49292 | varlink_type = tmp; | |
49293 | varlink_type.ob_type = &PyType_Type; | |
49294 | type_init = 1; | |
53aa7709 | 49295 | } |
1bd55598 RD |
49296 | return &varlink_type; |
49297 | } | |
49298 | ||
49299 | /* Create a variable linking object for use later */ | |
49300 | SWIGINTERN PyObject * | |
49301 | SWIG_Python_newvarlink(void) { | |
49302 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
49303 | if (result) { | |
49304 | result->vars = 0; | |
49305 | } | |
49306 | return ((PyObject*) result); | |
49307 | } | |
49308 | ||
49309 | SWIGINTERN void | |
49310 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
49311 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
49312 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
49313 | if (gv) { | |
49314 | size_t size = strlen(name)+1; | |
49315 | gv->name = (char *)malloc(size); | |
49316 | if (gv->name) { | |
49317 | strncpy(gv->name,name,size); | |
49318 | gv->get_attr = get_attr; | |
49319 | gv->set_attr = set_attr; | |
49320 | gv->next = v->vars; | |
49321 | } | |
53aa7709 | 49322 | } |
1bd55598 RD |
49323 | v->vars = gv; |
49324 | } | |
49325 | ||
49326 | SWIGINTERN PyObject * | |
49327 | SWIG_globals() { | |
49328 | static PyObject *_SWIG_globals = 0; | |
49329 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
49330 | return _SWIG_globals; | |
49331 | } | |
49332 | ||
49333 | /* ----------------------------------------------------------------------------- | |
49334 | * constants/methods manipulation | |
49335 | * ----------------------------------------------------------------------------- */ | |
49336 | ||
49337 | /* Install Constants */ | |
49338 | SWIGINTERN void | |
49339 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
49340 | PyObject *obj = 0; | |
49341 | size_t i; | |
49342 | for (i = 0; constants[i].type; ++i) { | |
49343 | switch(constants[i].type) { | |
49344 | case SWIG_PY_POINTER: | |
49345 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
49346 | break; | |
49347 | case SWIG_PY_BINARY: | |
49348 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
49349 | break; | |
49350 | default: | |
49351 | obj = 0; | |
49352 | break; | |
49353 | } | |
49354 | if (obj) { | |
49355 | PyDict_SetItemString(d, constants[i].name, obj); | |
49356 | Py_DECREF(obj); | |
49357 | } | |
53aa7709 | 49358 | } |
1bd55598 RD |
49359 | } |
49360 | ||
49361 | /* -----------------------------------------------------------------------------*/ | |
49362 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
49363 | /* -----------------------------------------------------------------------------*/ | |
49364 | ||
49365 | SWIGINTERN void | |
49366 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
49367 | swig_const_info *const_table, | |
49368 | swig_type_info **types, | |
49369 | swig_type_info **types_initial) { | |
49370 | size_t i; | |
49371 | for (i = 0; methods[i].ml_name; ++i) { | |
3d6c9062 | 49372 | const char *c = methods[i].ml_doc; |
1bd55598 RD |
49373 | if (c && (c = strstr(c, "swig_ptr: "))) { |
49374 | int j; | |
49375 | swig_const_info *ci = 0; | |
3d6c9062 | 49376 | const char *name = c + 10; |
1bd55598 RD |
49377 | for (j = 0; const_table[j].type; ++j) { |
49378 | if (strncmp(const_table[j].name, name, | |
49379 | strlen(const_table[j].name)) == 0) { | |
49380 | ci = &(const_table[j]); | |
49381 | break; | |
49382 | } | |
49383 | } | |
49384 | if (ci) { | |
49385 | size_t shift = (ci->ptype) - types; | |
49386 | swig_type_info *ty = types_initial[shift]; | |
49387 | size_t ldoc = (c - methods[i].ml_doc); | |
49388 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
49389 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
49390 | if (ndoc) { | |
49391 | char *buff = ndoc; | |
49392 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
49393 | if (ptr) { | |
49394 | strncpy(buff, methods[i].ml_doc, ldoc); | |
49395 | buff += ldoc; | |
49396 | strncpy(buff, "swig_ptr: ", 10); | |
49397 | buff += 10; | |
49398 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
49399 | methods[i].ml_doc = ndoc; | |
49400 | } | |
49401 | } | |
49402 | } | |
49403 | } | |
53aa7709 | 49404 | } |
1bd55598 RD |
49405 | } |
49406 | ||
49407 | #ifdef __cplusplus | |
49408 | } | |
49409 | #endif | |
49410 | ||
49411 | /* -----------------------------------------------------------------------------* | |
49412 | * Partial Init method | |
49413 | * -----------------------------------------------------------------------------*/ | |
49414 | ||
49415 | #ifdef __cplusplus | |
49416 | extern "C" | |
49417 | #endif | |
49418 | SWIGEXPORT void SWIG_init(void) { | |
49419 | PyObject *m, *d; | |
49420 | ||
49421 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
49422 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
49423 | ||
49424 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
49425 | d = PyModule_GetDict(m); | |
49426 | ||
49427 | SWIG_InitializeModule(0); | |
49428 | SWIG_InstallConstants(d,swig_const_table); | |
49429 | ||
49430 | ||
49431 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
49432 | SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set); | |
49433 | SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT))); | |
49434 | SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP))); | |
49435 | SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT))); | |
49436 | SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM))); | |
49437 | SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK))); | |
49438 | SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT))); | |
49439 | SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW))); | |
49440 | SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set); | |
49441 | SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE))); | |
49442 | SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE))); | |
49443 | SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER))); | |
49444 | SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED))); | |
49445 | SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED))); | |
49446 | SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED))); | |
49447 | SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set); | |
49448 | SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set); | |
49449 | SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set); | |
49450 | SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL))); | |
49451 | SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL))); | |
49452 | SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH))); | |
1bd55598 RD |
49453 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set); |
49454 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set); | |
49455 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set); | |
49456 | SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set); | |
49457 | SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set); | |
49458 | SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL))); | |
49459 | SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL))); | |
49460 | SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY))); | |
49461 | SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE))); | |
49462 | SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB))); | |
49463 | SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT))); | |
49464 | SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER))); | |
49465 | SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT))); | |
49466 | SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE))); | |
49467 | SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH))); | |
49468 | SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER))); | |
49469 | SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD))); | |
49470 | SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL))); | |
49471 | SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL))); | |
49472 | SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP))); | |
49473 | SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP))); | |
49474 | SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP))); | |
49475 | SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP))); | |
1bd55598 RD |
49476 | SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2))); |
49477 | SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE))); | |
49478 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT))); | |
49479 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT))); | |
49480 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE))); | |
49481 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER))); | |
49482 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT))); | |
49483 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED))); | |
49484 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR))); | |
49485 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR))); | |
49486 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE))); | |
49487 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE))); | |
49488 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT))); | |
49489 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC))); | |
49490 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE))); | |
49491 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT))); | |
49492 | SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT))); | |
49493 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT))); | |
49494 | SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT))); | |
49495 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS))); | |
49496 | SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN))); | |
49497 | SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE))); | |
49498 | SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT))); | |
49499 | SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW))); | |
49500 | SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND))); | |
49501 | SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord))); | |
49502 | SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord))); | |
f5263701 | 49503 | SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY))); |
1bd55598 RD |
49504 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
49505 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
49506 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
49507 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
49508 | SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set); | |
49509 | SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set); | |
49510 | SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set); | |
49511 | SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL))); | |
49512 | SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL))); | |
49513 | SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS))); | |
49514 | SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP))); | |
49515 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); | |
49516 | SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set); | |
49517 | SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set); | |
49518 | SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set); | |
49519 | SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL))); | |
49520 | SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL))); | |
49521 | SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS))); | |
49522 | SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS))); | |
49523 | SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS))); | |
49524 | SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT))); | |
49525 | SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP))); | |
49526 | SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT))); | |
49527 | SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM))); | |
49528 | SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH))); | |
49529 | SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE))); | |
49530 | SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE))); | |
49531 | SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set); | |
49532 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
49533 | SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set); | |
49534 | SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT))); | |
49535 | SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP))); | |
49536 | SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM))); | |
49537 | SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT))); | |
49538 | SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT))); | |
49539 | SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK))); | |
e9d6f3a4 | 49540 | SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR))); |
110fa173 RD |
49541 | SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE))); |
49542 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON))); | |
49543 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL))); | |
49544 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM))); | |
49545 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE))); | |
1bd55598 RD |
49546 | SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH))); |
49547 | SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP))); | |
49548 | SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT))); | |
49549 | SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT))); | |
49550 | SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM))); | |
49551 | SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE))); | |
49552 | SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME))); | |
49553 | SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE))); | |
49554 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON))); | |
49555 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL))); | |
49556 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM))); | |
b02396e8 | 49557 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE))); |
1bd55598 RD |
49558 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
49559 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
49560 | SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT))); | |
49561 | SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP))); | |
49562 | SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM))); | |
49563 | SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT))); | |
49564 | SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT))); | |
49565 | SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK))); | |
49566 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
49567 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
49568 | SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT))); | |
49569 | SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP))); | |
49570 | SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM))); | |
49571 | SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT))); | |
49572 | SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT))); | |
49573 | SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK))); | |
49574 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); | |
49575 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
49576 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED)); | |
49577 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING)); | |
49578 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED)); | |
49579 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED)); | |
49580 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED)); | |
49581 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING)); | |
49582 | SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON))); | |
49583 | SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR))); | |
49584 | SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL))); | |
49585 | SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL))); | |
49586 | SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL))); | |
8f514ab4 RD |
49587 | SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP))); |
49588 | SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT))); | |
49589 | SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM))); | |
49590 | SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT))); | |
1bd55598 RD |
49591 | SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS))); |
49592 | SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT))); | |
49593 | SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE))); | |
49594 | SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS))); | |
49595 | SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT))); | |
49596 | SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER))); | |
49597 | SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN))); | |
49598 | SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT))); | |
49599 | SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT))); | |
704eda0c | 49600 | SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS))); |
1bd55598 RD |
49601 | SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set); |
49602 | SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES))); | |
49603 | SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES))); | |
49604 | SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON))); | |
49605 | SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON))); | |
49606 | SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST))); | |
49607 | SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT))); | |
49608 | SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP))); | |
49609 | SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT))); | |
49610 | SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE))); | |
49611 | SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL))); | |
49612 | SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS))); | |
49613 | SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER))); | |
49614 | SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER))); | |
49615 | SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL))); | |
49616 | SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING))); | |
49617 | SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING))); | |
49618 | SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE))); | |
49619 | SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN))); | |
49620 | SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT))); | |
49621 | SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE))); | |
49622 | SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT))); | |
49623 | SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE))); | |
49624 | SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA))); | |
49625 | SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM))); | |
49626 | SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH))); | |
49627 | SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT))); | |
49628 | SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE))); | |
49629 | SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED))); | |
49630 | SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED))); | |
49631 | SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED))); | |
49632 | SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT))); | |
49633 | SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED))); | |
49634 | SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED))); | |
49635 | SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE))); | |
49636 | SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED))); | |
49637 | SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE))); | |
49638 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE))); | |
49639 | SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW))); | |
49640 | SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE))); | |
49641 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON))); | |
49642 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL))); | |
49643 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT))); | |
49644 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON))); | |
49645 | SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT))); | |
49646 | SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT))); | |
49647 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM))); | |
704eda0c | 49648 | SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM))); |
1bd55598 RD |
49649 | SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE))); |
49650 | SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL))); | |
49651 | SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW))); | |
49652 | SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT))); | |
49653 | SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT))); | |
49654 | SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT))); | |
49655 | SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT))); | |
49656 | SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP))); | |
49657 | SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID))); | |
49658 | SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT))); | |
49659 | SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT))); | |
49660 | SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE))); | |
49661 | SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER))); | |
49662 | SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE))); | |
49663 | SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER))); | |
49664 | SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS))); | |
49665 | SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON))); | |
49666 | SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL))); | |
49667 | SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP))); | |
49668 | SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN))); | |
49669 | SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT))); | |
49670 | SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT))); | |
49671 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
49672 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
49673 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
49674 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
49675 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
49676 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
49677 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
49678 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
49679 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
49680 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
49681 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
49682 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
49683 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
49684 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
49685 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
49686 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
49687 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
49688 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
49689 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
49690 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
49691 | ||
49692 | // Map renamed classes back to their common name for OOR | |
49693 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
49694 | ||
49695 | SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set); | |
49696 | SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS))); | |
49697 | SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS))); | |
49698 | SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES))); | |
49699 | SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT))); | |
49700 | SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE))); | |
49701 | SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE))); | |
49702 | SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED))); | |
49703 | SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT))); | |
49704 | SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS))); | |
49705 | SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT))); | |
49706 | SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES))); | |
49707 | SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT))); | |
49708 | SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE))); | |
49709 | SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS))); | |
1bd55598 RD |
49710 | SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal))); |
49711 | SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected))); | |
49712 | SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded))); | |
49713 | SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded))); | |
49714 | SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max))); | |
49715 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE))); | |
49716 | SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW))); | |
49717 | SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE))); | |
49718 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON))); | |
49719 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON))); | |
49720 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT))); | |
49721 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL))); | |
49722 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT))); | |
49723 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON))); | |
49724 | SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT))); | |
49725 | SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT))); | |
49726 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART))); | |
49727 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART))); | |
49728 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM))); | |
49729 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
49730 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
49731 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
49732 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
49733 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
49734 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
49735 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
49736 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
49737 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
49738 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
49739 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
49740 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
49741 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
49742 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
49743 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
49744 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
49745 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
49746 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
49747 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
49748 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
49749 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU)); | |
b02396e8 | 49750 | SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set); |
1bd55598 RD |
49751 | |
49752 | // Map renamed classes back to their common name for OOR | |
49753 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
49754 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
49755 | ||
49756 | SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set); | |
49757 | SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY))); | |
49758 | SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST))); | |
49759 | SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS))); | |
49760 | SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL))); | |
49761 | SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS))); | |
1bd55598 RD |
49762 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
49763 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
704eda0c RD |
49764 | SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown))); |
49765 | SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard))); | |
49766 | SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton))); | |
1bd55598 RD |
49767 | |
49768 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
49769 | ||
49770 | SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set); | |
49771 | SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT))); | |
49772 | SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN))); | |
49773 | SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN))); | |
49774 | SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY))); | |
49775 | SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE))); | |
704eda0c RD |
49776 | SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set); |
49777 | SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU))); | |
33d6fd3b RD |
49778 | SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT))); |
49779 | SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT))); | |
49780 | SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE))); | |
704eda0c RD |
49781 | SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE))); |
49782 | PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK)); | |
b850e7f3 RD |
49783 | SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL))); |
49784 | SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set); | |
49785 | SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL))); | |
49786 | SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL))); | |
49787 | SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE))); | |
49788 | PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED)); | |
49789 | SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set); | |
49790 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set); | |
49791 | SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set); | |
49792 | SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set); | |
49793 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set); | |
49794 | SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN))); | |
49795 | SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE))); | |
49796 | SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT))); | |
49797 | SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST))); | |
49798 | SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR))); | |
49799 | SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST))); | |
49800 | SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR))); | |
49801 | SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL))); | |
49802 | SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE))); | |
49803 | SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL))); | |
49804 | SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE))); | |
49805 | PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED)); | |
49806 | PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED)); | |
49807 | SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set); | |
49808 | SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL))); | |
49809 | SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL))); | |
49810 | SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL))); | |
49811 | SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE))); | |
49812 | PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED)); | |
5172800e RD |
49813 | SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set); |
49814 | SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE))); | |
49815 | SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE))); | |
49816 | PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED)); | |
d55e5bfc RD |
49817 | } |
49818 |