]>
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] | |
4976f996 RD |
2520 | #define SWIGTYPE_p_wxEventBlocker swig_types[54] |
2521 | #define SWIGTYPE_p_wxEvtHandler swig_types[55] | |
2522 | #define SWIGTYPE_p_wxFSFile swig_types[56] | |
2523 | #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[57] | |
2524 | #define SWIGTYPE_p_wxFilePickerCtrl swig_types[58] | |
2525 | #define SWIGTYPE_p_wxFileSystem swig_types[59] | |
2526 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[60] | |
2527 | #define SWIGTYPE_p_wxFocusEvent swig_types[61] | |
2528 | #define SWIGTYPE_p_wxFont swig_types[62] | |
2529 | #define SWIGTYPE_p_wxFontPickerCtrl swig_types[63] | |
2530 | #define SWIGTYPE_p_wxFontPickerEvent swig_types[64] | |
2531 | #define SWIGTYPE_p_wxGBSizerItem swig_types[65] | |
2532 | #define SWIGTYPE_p_wxGIFHandler swig_types[66] | |
2533 | #define SWIGTYPE_p_wxGauge swig_types[67] | |
2534 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[68] | |
2535 | #define SWIGTYPE_p_wxGenericDragImage swig_types[69] | |
2536 | #define SWIGTYPE_p_wxGridBagSizer swig_types[70] | |
2537 | #define SWIGTYPE_p_wxGridSizer swig_types[71] | |
2538 | #define SWIGTYPE_p_wxHelpEvent swig_types[72] | |
2539 | #define SWIGTYPE_p_wxHelpProvider swig_types[73] | |
2540 | #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[74] | |
2541 | #define SWIGTYPE_p_wxHyperlinkEvent swig_types[75] | |
2542 | #define SWIGTYPE_p_wxICOHandler swig_types[76] | |
2543 | #define SWIGTYPE_p_wxIcon swig_types[77] | |
2544 | #define SWIGTYPE_p_wxIconizeEvent swig_types[78] | |
2545 | #define SWIGTYPE_p_wxIdleEvent swig_types[79] | |
2546 | #define SWIGTYPE_p_wxImage swig_types[80] | |
2547 | #define SWIGTYPE_p_wxImageHandler swig_types[81] | |
2548 | #define SWIGTYPE_p_wxImageList swig_types[82] | |
2549 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83] | |
2550 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[84] | |
2551 | #define SWIGTYPE_p_wxItemContainer swig_types[85] | |
2552 | #define SWIGTYPE_p_wxJPEGHandler swig_types[86] | |
2553 | #define SWIGTYPE_p_wxKeyEvent swig_types[87] | |
2554 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[88] | |
2555 | #define SWIGTYPE_p_wxListBox swig_types[89] | |
2556 | #define SWIGTYPE_p_wxListEvent swig_types[90] | |
2557 | #define SWIGTYPE_p_wxListItem swig_types[91] | |
2558 | #define SWIGTYPE_p_wxListItemAttr swig_types[92] | |
2559 | #define SWIGTYPE_p_wxListView swig_types[93] | |
2560 | #define SWIGTYPE_p_wxListbook swig_types[94] | |
2561 | #define SWIGTYPE_p_wxListbookEvent swig_types[95] | |
2562 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[96] | |
2563 | #define SWIGTYPE_p_wxMemoryDC swig_types[97] | |
2564 | #define SWIGTYPE_p_wxMenu swig_types[98] | |
2565 | #define SWIGTYPE_p_wxMenuBar swig_types[99] | |
2566 | #define SWIGTYPE_p_wxMenuEvent swig_types[100] | |
2567 | #define SWIGTYPE_p_wxMenuItem swig_types[101] | |
2568 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[102] | |
2569 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[103] | |
2570 | #define SWIGTYPE_p_wxMouseEvent swig_types[104] | |
2571 | #define SWIGTYPE_p_wxMoveEvent swig_types[105] | |
2572 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[106] | |
2573 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[107] | |
2574 | #define SWIGTYPE_p_wxNotebook swig_types[108] | |
2575 | #define SWIGTYPE_p_wxNotebookEvent swig_types[109] | |
2576 | #define SWIGTYPE_p_wxNotifyEvent swig_types[110] | |
2577 | #define SWIGTYPE_p_wxObject swig_types[111] | |
2578 | #define SWIGTYPE_p_wxPCXHandler swig_types[112] | |
2579 | #define SWIGTYPE_p_wxPNGHandler swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPNMHandler swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPaintEvent swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPaperSize swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPickerBase swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPoint swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPyApp swig_types[120] | |
2587 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[121] | |
2588 | #define SWIGTYPE_p_wxPyControl swig_types[122] | |
2589 | #define SWIGTYPE_p_wxPyEvent swig_types[123] | |
2590 | #define SWIGTYPE_p_wxPyImageHandler swig_types[124] | |
2591 | #define SWIGTYPE_p_wxPyListCtrl swig_types[125] | |
2592 | #define SWIGTYPE_p_wxPySizer swig_types[126] | |
2593 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[127] | |
2594 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[128] | |
2595 | #define SWIGTYPE_p_wxPyValidator swig_types[129] | |
2596 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[130] | |
2597 | #define SWIGTYPE_p_wxRadioBox swig_types[131] | |
2598 | #define SWIGTYPE_p_wxRadioButton swig_types[132] | |
2599 | #define SWIGTYPE_p_wxRect swig_types[133] | |
2600 | #define SWIGTYPE_p_wxScrollBar swig_types[134] | |
2601 | #define SWIGTYPE_p_wxScrollEvent swig_types[135] | |
2602 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[136] | |
2603 | #define SWIGTYPE_p_wxSearchCtrl swig_types[137] | |
2604 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[138] | |
2605 | #define SWIGTYPE_p_wxShowEvent swig_types[139] | |
2606 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[140] | |
2607 | #define SWIGTYPE_p_wxSize swig_types[141] | |
2608 | #define SWIGTYPE_p_wxSizeEvent swig_types[142] | |
2609 | #define SWIGTYPE_p_wxSizer swig_types[143] | |
2610 | #define SWIGTYPE_p_wxSizerItem swig_types[144] | |
2611 | #define SWIGTYPE_p_wxSlider swig_types[145] | |
2612 | #define SWIGTYPE_p_wxSpinButton swig_types[146] | |
2613 | #define SWIGTYPE_p_wxSpinCtrl swig_types[147] | |
2614 | #define SWIGTYPE_p_wxSpinEvent swig_types[148] | |
2615 | #define SWIGTYPE_p_wxStaticBitmap swig_types[149] | |
2616 | #define SWIGTYPE_p_wxStaticBox swig_types[150] | |
2617 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[151] | |
2618 | #define SWIGTYPE_p_wxStaticLine swig_types[152] | |
2619 | #define SWIGTYPE_p_wxStaticText swig_types[153] | |
2620 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[154] | |
2621 | #define SWIGTYPE_p_wxString swig_types[155] | |
2622 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[156] | |
2623 | #define SWIGTYPE_p_wxTGAHandler swig_types[157] | |
2624 | #define SWIGTYPE_p_wxTIFFHandler swig_types[158] | |
2625 | #define SWIGTYPE_p_wxTextAttr swig_types[159] | |
2626 | #define SWIGTYPE_p_wxTextCtrl swig_types[160] | |
2627 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[161] | |
2628 | #define SWIGTYPE_p_wxToggleButton swig_types[162] | |
2629 | #define SWIGTYPE_p_wxToolBar swig_types[163] | |
2630 | #define SWIGTYPE_p_wxToolBarBase swig_types[164] | |
2631 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[165] | |
2632 | #define SWIGTYPE_p_wxToolbook swig_types[166] | |
2633 | #define SWIGTYPE_p_wxToolbookEvent swig_types[167] | |
2634 | #define SWIGTYPE_p_wxTreeEvent swig_types[168] | |
2635 | #define SWIGTYPE_p_wxTreeItemId swig_types[169] | |
2636 | #define SWIGTYPE_p_wxTreebook swig_types[170] | |
2637 | #define SWIGTYPE_p_wxTreebookEvent swig_types[171] | |
2638 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[172] | |
2639 | #define SWIGTYPE_p_wxValidator swig_types[173] | |
2640 | #define SWIGTYPE_p_wxVisualAttributes swig_types[174] | |
2641 | #define SWIGTYPE_p_wxWindow swig_types[175] | |
2642 | #define SWIGTYPE_p_wxWindowBase swig_types[176] | |
2643 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[177] | |
2644 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[178] | |
2645 | #define SWIGTYPE_p_wxXPMHandler swig_types[179] | |
2646 | static swig_type_info *swig_types[181]; | |
2647 | static swig_module_info swig_module = {swig_types, 180, 0, 0, 0, 0}; | |
32fe5131 RD |
2648 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2649 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
36ed4f51 RD |
2650 | |
2651 | /* -------- TYPES TABLE (END) -------- */ | |
2652 | ||
1bd55598 RD |
2653 | #if (PY_VERSION_HEX <= 0x02000000) |
2654 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2655 | # error "This python version requires to use swig with the '-classic' option" | |
2656 | # endif | |
2657 | #endif | |
2658 | #if (PY_VERSION_HEX <= 0x02020000) | |
2659 | # error "This python version requires to use swig with the '-nomodern' option" | |
2660 | #endif | |
2661 | #if (PY_VERSION_HEX <= 0x02020000) | |
2662 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2663 | #endif | |
2664 | #ifndef METH_O | |
2665 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2666 | #endif | |
36ed4f51 RD |
2667 | |
2668 | /*----------------------------------------------- | |
2669 | @(target):= _controls_.so | |
2670 | ------------------------------------------------*/ | |
2671 | #define SWIG_init init_controls_ | |
2672 | ||
2673 | #define SWIG_name "_controls_" | |
2674 | ||
1bd55598 RD |
2675 | #define SWIGVERSION 0x010329 |
2676 | ||
2677 | ||
2678 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) | |
2679 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
2680 | ||
2681 | ||
2682 | #include <stdexcept> | |
2683 | ||
2684 | ||
2685 | namespace swig { | |
2686 | class PyObject_ptr { | |
2687 | protected: | |
2688 | PyObject *_obj; | |
2689 | ||
2690 | public: | |
2691 | PyObject_ptr() :_obj(0) | |
2692 | { | |
2693 | } | |
2694 | ||
2695 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2696 | { | |
2697 | Py_XINCREF(_obj); | |
2698 | } | |
2699 | ||
2700 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2701 | { | |
2702 | if (initial_ref) Py_XINCREF(_obj); | |
2703 | } | |
2704 | ||
2705 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2706 | { | |
2707 | Py_XINCREF(item._obj); | |
2708 | Py_XDECREF(_obj); | |
2709 | _obj = item._obj; | |
2710 | return *this; | |
2711 | } | |
2712 | ||
2713 | ~PyObject_ptr() | |
2714 | { | |
2715 | Py_XDECREF(_obj); | |
2716 | } | |
2717 | ||
2718 | operator PyObject *() const | |
2719 | { | |
2720 | return _obj; | |
2721 | } | |
2722 | ||
2723 | PyObject *operator->() const | |
2724 | { | |
2725 | return _obj; | |
2726 | } | |
2727 | }; | |
2728 | } | |
2729 | ||
2730 | ||
2731 | namespace swig { | |
2732 | struct PyObject_var : PyObject_ptr { | |
2733 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2734 | ||
2735 | PyObject_var & operator = (PyObject* obj) | |
2736 | { | |
2737 | Py_XDECREF(_obj); | |
2738 | _obj = obj; | |
2739 | return *this; | |
2740 | } | |
2741 | }; | |
2742 | } | |
2743 | ||
2744 | ||
36ed4f51 RD |
2745 | #include "wx/wxPython/wxPython.h" |
2746 | #include "wx/wxPython/pyclasses.h" | |
2747 | ||
2748 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
2749 | static const wxString wxPyEmptyString(wxEmptyString); | |
2750 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
2751 | ||
2752 | const wxArrayString wxPyEmptyStringArray; | |
2753 | ||
2754 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
2755 | ||
1bd55598 | 2756 | #define SWIG_From_long PyInt_FromLong |
36ed4f51 RD |
2757 | |
2758 | ||
1bd55598 RD |
2759 | SWIGINTERNINLINE PyObject * |
2760 | SWIG_From_int (int value) | |
2761 | { | |
2762 | return SWIG_From_long (value); | |
2763 | } | |
36ed4f51 RD |
2764 | |
2765 | ||
1bd55598 RD |
2766 | #include <limits.h> |
2767 | #ifndef LLONG_MIN | |
2768 | # define LLONG_MIN LONG_LONG_MIN | |
2769 | #endif | |
2770 | #ifndef LLONG_MAX | |
2771 | # define LLONG_MAX LONG_LONG_MAX | |
2772 | #endif | |
2773 | #ifndef ULLONG_MAX | |
2774 | # define ULLONG_MAX ULONG_LONG_MAX | |
2775 | #endif | |
36ed4f51 RD |
2776 | |
2777 | ||
2778 | SWIGINTERN int | |
1bd55598 | 2779 | SWIG_AsVal_long (PyObject* obj, long* val) |
36ed4f51 RD |
2780 | { |
2781 | if (PyNumber_Check(obj)) { | |
2782 | if (val) *val = PyInt_AsLong(obj); | |
1bd55598 | 2783 | return SWIG_OK; |
36ed4f51 | 2784 | } |
1bd55598 | 2785 | return SWIG_TypeError; |
36ed4f51 RD |
2786 | } |
2787 | ||
2788 | ||
36ed4f51 | 2789 | SWIGINTERN int |
1bd55598 RD |
2790 | SWIG_AsVal_int (PyObject * obj, int *val) |
2791 | { | |
36ed4f51 | 2792 | long v; |
1bd55598 RD |
2793 | int res = SWIG_AsVal_long (obj, &v); |
2794 | if (SWIG_IsOK(res)) { | |
2795 | if ((v < INT_MIN || v > INT_MAX)) { | |
2796 | return SWIG_OverflowError; | |
36ed4f51 | 2797 | } else { |
1bd55598 | 2798 | if (val) *val = static_cast< int >(v); |
36ed4f51 | 2799 | } |
1bd55598 RD |
2800 | } |
2801 | return res; | |
d55e5bfc RD |
2802 | } |
2803 | ||
c370783e | 2804 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
d55e5bfc | 2805 | |
36ed4f51 | 2806 | SWIGINTERN int |
1bd55598 | 2807 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
d55e5bfc | 2808 | { |
c370783e RD |
2809 | if (obj == Py_True) { |
2810 | if (val) *val = true; | |
1bd55598 RD |
2811 | return SWIG_OK; |
2812 | } else if (obj == Py_False) { | |
c370783e | 2813 | if (val) *val = false; |
1bd55598 | 2814 | return SWIG_OK; |
36ed4f51 | 2815 | } else { |
1bd55598 RD |
2816 | long v = 0; |
2817 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2818 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2819 | return res; | |
c370783e | 2820 | } |
d55e5bfc RD |
2821 | } |
2822 | ||
2823 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); | |
2824 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
2825 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
2826 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
2827 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
2828 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
3f7f284d | 2829 | static const wxString wxPyStaticLineNameStr(wxStaticLineNameStr); |
d55e5bfc RD |
2830 | |
2831 | #include <wx/checklst.h> | |
d55e5bfc RD |
2832 | |
2833 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); | |
1bd55598 | 2834 | SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){ |
e9d6f3a4 RD |
2835 | if (clientData) |
2836 | { | |
d55e5bfc RD |
2837 | wxPyClientData* data = new wxPyClientData(clientData); |
2838 | self->Insert(item, pos, data); | |
e9d6f3a4 RD |
2839 | } |
2840 | else | |
d55e5bfc RD |
2841 | self->Insert(item, pos); |
2842 | } | |
50f151d7 RD |
2843 | |
2844 | SWIGINTERN int | |
2845 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) | |
2846 | { | |
2847 | long v = 0; | |
2848 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
2849 | return SWIG_TypeError; | |
2850 | } | |
2851 | else if (val) | |
2852 | *val = (unsigned long)v; | |
2853 | return SWIG_OK; | |
2854 | } | |
2855 | ||
2856 | ||
2857 | SWIGINTERN int | |
2858 | SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) | |
2859 | { | |
2860 | unsigned long v; | |
2861 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); | |
2862 | if (SWIG_IsOK(res)) { | |
2863 | if ((v > UINT_MAX)) { | |
2864 | return SWIG_OverflowError; | |
2865 | } else { | |
2866 | if (val) *val = static_cast< unsigned int >(v); | |
2867 | } | |
2868 | } | |
2869 | return res; | |
2870 | } | |
2871 | ||
1bd55598 | 2872 | SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){ |
e9d6f3a4 | 2873 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
7e08d4ef RD |
2874 | wxArrayInt lst; |
2875 | self->GetSelections(lst); | |
2876 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
e9d6f3a4 RD |
2877 | for (size_t i=0; i<lst.GetCount(); i++) |
2878 | { | |
7e08d4ef RD |
2879 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); |
2880 | } | |
e9d6f3a4 | 2881 | wxPyEndBlockThreads(blocked); |
7e08d4ef RD |
2882 | return tup; |
2883 | } | |
1bd55598 | 2884 | SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
d55e5bfc RD |
2885 | #ifdef __WXMSW__ |
2886 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2887 | self->GetItem(item)->SetTextColour(c); | |
2888 | #endif | |
2889 | } | |
1bd55598 | 2890 | SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ |
d55e5bfc RD |
2891 | #ifdef __WXMSW__ |
2892 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2893 | self->GetItem(item)->SetBackgroundColour(c); | |
2894 | #endif | |
2895 | } | |
1bd55598 | 2896 | SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ |
d55e5bfc RD |
2897 | #ifdef __WXMSW__ |
2898 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2899 | self->GetItem(item)->SetFont(f); | |
2900 | #endif | |
2901 | } | |
2902 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); | |
1bd55598 | 2903 | SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
d55e5bfc RD |
2904 | self->AppendText(text); |
2905 | } | |
1bd55598 | 2906 | SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ |
d55e5bfc RD |
2907 | return self->GetValue().Mid(from, to - from); |
2908 | } | |
2909 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); | |
2910 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
2911 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); | |
2912 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); | |
2913 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
2914 | ||
1c71765a RD |
2915 | SWIGINTERNINLINE PyObject* |
2916 | SWIG_From_unsigned_SS_long (unsigned long value) | |
2917 | { | |
2918 | return (value > LONG_MAX) ? | |
2919 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
2920 | } | |
2921 | ||
2922 | ||
2923 | SWIGINTERNINLINE PyObject * | |
2924 | SWIG_From_size_t (size_t value) | |
2925 | { | |
2926 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
2927 | } | |
2928 | ||
2929 | ||
50f151d7 RD |
2930 | SWIGINTERNINLINE PyObject * |
2931 | SWIG_From_unsigned_SS_int (unsigned int value) | |
2932 | { | |
2933 | return SWIG_From_unsigned_SS_long (value); | |
2934 | } | |
2935 | ||
2936 | ||
d55e5bfc RD |
2937 | #include <wx/slider.h> |
2938 | ||
2939 | ||
2940 | static const wxString wxPySliderNameStr(wxSliderNameStr); | |
2941 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); | |
2942 | ||
2943 | #if !wxUSE_TOGGLEBTN | |
2944 | // implement dummy items for platforms that don't have this class | |
2945 | ||
2946 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
2947 | ||
2948 | class wxToggleButton : public wxControl | |
2949 | { | |
2950 | public: | |
2951 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
2952 | const wxPoint&, const wxSize&, long, | |
2953 | const wxValidator&, const wxString&) | |
2954 | { wxPyRaiseNotImplemented(); } | |
2955 | ||
2956 | wxToggleButton() | |
2957 | { wxPyRaiseNotImplemented(); } | |
2958 | }; | |
2959 | #endif | |
2960 | ||
51b83b37 | 2961 | static const wxString wxPyNotebookNameStr(wxNotebookNameStr); |
d55e5bfc | 2962 | |
7e08d4ef | 2963 | SWIGINTERNINLINE int |
1bd55598 | 2964 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
7e08d4ef | 2965 | { |
7e08d4ef | 2966 | unsigned long v; |
1bd55598 RD |
2967 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); |
2968 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
2969 | return res; | |
7e08d4ef | 2970 | } |
7e08d4ef | 2971 | |
d55e5bfc | 2972 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
1bd55598 | 2973 | SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
d55e5bfc RD |
2974 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); |
2975 | if (udata) { | |
2976 | Py_INCREF(udata->m_obj); | |
2977 | return udata->m_obj; | |
2978 | } else { | |
2979 | Py_INCREF(Py_None); | |
2980 | return Py_None; | |
2981 | } | |
2982 | } | |
1bd55598 | 2983 | SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ |
d55e5bfc RD |
2984 | self->SetClientData(new wxPyUserData(clientData)); |
2985 | } | |
1bd55598 | 2986 | 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 |
2987 | wxPyUserData* udata = NULL; |
2988 | if (clientData && clientData != Py_None) | |
2989 | udata = new wxPyUserData(clientData); | |
2990 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
2991 | shortHelp, longHelp, udata); | |
2992 | } | |
1bd55598 | 2993 | 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 |
2994 | wxPyUserData* udata = NULL; |
2995 | if (clientData && clientData != Py_None) | |
2996 | udata = new wxPyUserData(clientData); | |
2997 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
2998 | shortHelp, longHelp, udata); | |
2999 | } | |
1bd55598 | 3000 | SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ |
d55e5bfc RD |
3001 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); |
3002 | if (udata) { | |
3003 | Py_INCREF(udata->m_obj); | |
3004 | return udata->m_obj; | |
3005 | } else { | |
3006 | Py_INCREF(Py_None); | |
3007 | return Py_None; | |
3008 | } | |
3009 | } | |
1bd55598 | 3010 | SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ |
d55e5bfc RD |
3011 | self->SetToolClientData(id, new wxPyUserData(clientData)); |
3012 | } | |
3013 | ||
3014 | #include <wx/listctrl.h> | |
3015 | ||
fef4c27a | 3016 | static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr); |
1bd55598 | 3017 | SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
d55e5bfc RD |
3018 | // Python aware sorting function for wxPyListCtrl |
3019 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
3020 | int retval = 0; | |
3021 | PyObject* func = (PyObject*)funcPtr; | |
5a446332 | 3022 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
3023 | |
3024 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
3025 | PyObject* result = PyEval_CallObject(func, args); | |
3026 | Py_DECREF(args); | |
3027 | if (result) { | |
3028 | retval = PyInt_AsLong(result); | |
3029 | Py_DECREF(result); | |
3030 | } | |
3031 | ||
3032 | wxPyEndBlockThreads(blocked); | |
3033 | return retval; | |
3034 | } | |
3035 | ||
3036 | // C++ Version of a Python aware class | |
3037 | class wxPyListCtrl : public wxListCtrl { | |
32fe5131 | 3038 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl) |
d55e5bfc RD |
3039 | public: |
3040 | wxPyListCtrl() : wxListCtrl() {} | |
3041 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
3042 | const wxPoint& pos, | |
3043 | const wxSize& size, | |
3044 | long style, | |
3045 | const wxValidator& validator, | |
3046 | const wxString& name) : | |
3047 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
3048 | ||
3049 | bool Create(wxWindow* parent, wxWindowID id, | |
3050 | const wxPoint& pos, | |
3051 | const wxSize& size, | |
3052 | long style, | |
3053 | const wxValidator& validator, | |
3054 | const wxString& name) { | |
3055 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
3056 | } | |
3057 | ||
3058 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
d55e5bfc RD |
3059 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); |
3060 | ||
84f85550 RD |
3061 | // use the virtual version to avoid a confusing assert in the base class |
3062 | DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage); | |
7e08d4ef | 3063 | DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage); |
84f85550 | 3064 | |
d55e5bfc RD |
3065 | PYPRIVATE; |
3066 | }; | |
3067 | ||
3068 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
3069 | ||
3070 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
d55e5bfc | 3071 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); |
84f85550 | 3072 | IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage); |
c25f90f6 | 3073 | IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage); |
7e08d4ef | 3074 | |
d55e5bfc | 3075 | |
1bd55598 | 3076 | SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ |
d55e5bfc RD |
3077 | wxListItem item; |
3078 | item.SetMask( wxLIST_MASK_STATE | | |
3079 | wxLIST_MASK_TEXT | | |
3080 | wxLIST_MASK_IMAGE | | |
3081 | wxLIST_MASK_DATA | | |
3082 | wxLIST_SET_ITEM | | |
3083 | wxLIST_MASK_WIDTH | | |
3084 | wxLIST_MASK_FORMAT | |
3085 | ); | |
3086 | if (self->GetColumn(col, item)) | |
3087 | return new wxListItem(item); | |
3088 | else | |
3089 | return NULL; | |
3090 | } | |
1bd55598 | 3091 | SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){ |
d55e5bfc RD |
3092 | wxListItem* info = new wxListItem; |
3093 | info->m_itemId = itemId; | |
3094 | info->m_col = col; | |
3095 | info->m_mask = 0xFFFF; | |
3096 | self->GetItem(*info); | |
3097 | return info; | |
3098 | } | |
1bd55598 | 3099 | SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ |
d55e5bfc RD |
3100 | wxPoint pos; |
3101 | self->GetItemPosition(item, pos); | |
3102 | return pos; | |
3103 | } | |
1bd55598 | 3104 | SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){ |
d55e5bfc RD |
3105 | wxRect rect; |
3106 | self->GetItemRect(item, rect, code); | |
3107 | return rect; | |
3108 | } | |
1bd55598 | 3109 | SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
d55e5bfc | 3110 | if (!PyCallable_Check(func)) |
b411df4a | 3111 | return false; |
d55e5bfc RD |
3112 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
3113 | } | |
1bd55598 | 3114 | SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ |
d55e5bfc | 3115 | |
6a223074 RD |
3116 | return self; |
3117 | ||
d55e5bfc RD |
3118 | |
3119 | ||
d55e5bfc RD |
3120 | } |
3121 | ||
3122 | #include <wx/treectrl.h> | |
3123 | #include "wx/wxPython/pytree.h" | |
3124 | ||
3125 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); | |
1bd55598 RD |
3126 | SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; } |
3127 | SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; } | |
3128 | SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
b02396e8 RD |
3129 | |
3130 | static wxTreeItemId wxNullTreeItemId; | |
3131 | ||
d55e5bfc RD |
3132 | // C++ version of Python aware wxTreeCtrl |
3133 | class wxPyTreeCtrl : public wxTreeCtrl { | |
32fe5131 | 3134 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl) |
d55e5bfc RD |
3135 | public: |
3136 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
3137 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
3138 | const wxPoint& pos, | |
3139 | const wxSize& size, | |
3140 | long style, | |
3141 | const wxValidator& validator, | |
3142 | const wxString& name) : | |
3143 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
3144 | ||
3145 | bool Create(wxWindow *parent, wxWindowID id, | |
3146 | const wxPoint& pos, | |
3147 | const wxSize& size, | |
3148 | long style, | |
3149 | const wxValidator& validator, | |
3150 | const wxString& name) { | |
3151 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
3152 | } | |
3153 | ||
3154 | ||
3155 | int OnCompareItems(const wxTreeItemId& item1, | |
3156 | const wxTreeItemId& item2) { | |
3157 | int rval = 0; | |
3158 | bool found; | |
5a446332 | 3159 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 3160 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
b411df4a RD |
3161 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false); |
3162 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false); | |
d55e5bfc RD |
3163 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
3164 | Py_DECREF(o1); | |
3165 | Py_DECREF(o2); | |
3166 | } | |
3167 | wxPyEndBlockThreads(blocked); | |
3168 | if (! found) | |
3169 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
3170 | return rval; | |
3171 | } | |
3172 | PYPRIVATE; | |
3173 | }; | |
3174 | ||
3175 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
3176 | ||
3177 | ||
1bd55598 | 3178 | SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d55e5bfc RD |
3179 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3180 | if (data == NULL) { | |
3181 | data = new wxPyTreeItemData(); | |
3182 | data->SetId(item); // set the id | |
3183 | self->SetItemData(item, data); | |
3184 | } | |
3185 | return data; | |
3186 | } | |
1bd55598 | 3187 | SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d55e5bfc RD |
3188 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3189 | if (data == NULL) { | |
3190 | data = new wxPyTreeItemData(); | |
3191 | data->SetId(item); // set the id | |
3192 | self->SetItemData(item, data); | |
3193 | } | |
3194 | return data->GetData(); | |
3195 | } | |
1bd55598 | 3196 | SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ |
d55e5bfc RD |
3197 | data->SetId(item); // set the id |
3198 | self->SetItemData(item, data); | |
3199 | } | |
1bd55598 | 3200 | SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ |
d55e5bfc RD |
3201 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3202 | if (data == NULL) { | |
3203 | data = new wxPyTreeItemData(obj); | |
3204 | data->SetId(item); // set the id | |
3205 | self->SetItemData(item, data); | |
3206 | } else | |
3207 | data->SetData(obj); | |
3208 | } | |
1bd55598 | 3209 | SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ |
5a446332 | 3210 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
3211 | PyObject* rval = PyList_New(0); |
3212 | wxArrayTreeItemIds array; | |
3213 | size_t num, x; | |
3214 | num = self->GetSelections(array); | |
3215 | for (x=0; x < num; x++) { | |
3216 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
b411df4a | 3217 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); |
d55e5bfc | 3218 | PyList_Append(rval, item); |
68e533f8 | 3219 | Py_DECREF(item); |
d55e5bfc RD |
3220 | } |
3221 | wxPyEndBlockThreads(blocked); | |
3222 | return rval; | |
3223 | } | |
1bd55598 | 3224 | SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d55e5bfc RD |
3225 | void* cookie = 0; |
3226 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
5a446332 | 3227 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 3228 | PyObject* tup = PyTuple_New(2); |
b411df4a | 3229 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
d55e5bfc RD |
3230 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
3231 | wxPyEndBlockThreads(blocked); | |
3232 | return tup; | |
3233 | } | |
1bd55598 | 3234 | SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
d55e5bfc | 3235 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); |
5a446332 | 3236 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 3237 | PyObject* tup = PyTuple_New(2); |
b411df4a | 3238 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
d55e5bfc RD |
3239 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
3240 | wxPyEndBlockThreads(blocked); | |
3241 | return tup; | |
3242 | } | |
1bd55598 | 3243 | SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){ |
d55e5bfc RD |
3244 | wxRect rect; |
3245 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
5a446332 | 3246 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 3247 | wxRect* r = new wxRect(rect); |
b411df4a | 3248 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true); |
d55e5bfc RD |
3249 | wxPyEndBlockThreads(blocked); |
3250 | return val; | |
3251 | } | |
3252 | else | |
3253 | RETURN_NONE(); | |
3254 | } | |
3255 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); | |
c370783e | 3256 | |
32fe5131 | 3257 | SWIGINTERNINLINE PyObject* |
1bd55598 | 3258 | SWIG_From_bool (bool value) |
c370783e | 3259 | { |
1bd55598 | 3260 | return PyBool_FromLong(value ? 1 : 0); |
c370783e RD |
3261 | } |
3262 | ||
d55e5bfc RD |
3263 | // C++ version of Python aware wxControl |
3264 | class wxPyControl : public wxControl | |
3265 | { | |
3266 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
3267 | public: | |
3268 | wxPyControl() : wxControl() {} | |
3269 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
3270 | const wxPoint& pos = wxDefaultPosition, | |
3271 | const wxSize& size = wxDefaultSize, | |
3272 | long style = 0, | |
3273 | const wxValidator& validator=wxDefaultValidator, | |
3274 | const wxString& name = wxPyControlNameStr) | |
3275 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
3276 | ||
3277 | ||
976dbff5 RD |
3278 | bool DoEraseBackground(wxDC* dc) { |
3279 | #ifdef __WXMSW__ | |
3280 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3281 | #else | |
3282 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3283 | dc->Clear(); | |
3284 | return true; | |
3285 | #endif | |
3286 | } | |
3287 | ||
d55e5bfc RD |
3288 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); |
3289 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3290 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3291 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3292 | ||
3293 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3294 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3295 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3296 | ||
3297 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3298 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3299 | ||
3300 | DEC_PYCALLBACK__(InitDialog); | |
3301 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3302 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3303 | DEC_PYCALLBACK_BOOL_(Validate); | |
3304 | ||
3305 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3306 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3307 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3308 | ||
3309 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3310 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3311 | ||
a5ee0656 | 3312 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
a5ee0656 | 3313 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 3314 | |
51b83b37 RD |
3315 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3316 | ||
8d38bd1d RD |
3317 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3318 | ||
d55e5bfc RD |
3319 | PYPRIVATE; |
3320 | }; | |
3321 | ||
3322 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
3323 | ||
3324 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
3325 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
3326 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
3327 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
3328 | ||
3329 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
3330 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
3331 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
3332 | ||
3333 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
3334 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
3335 | ||
3336 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
3337 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
3338 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
3339 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
3340 | ||
3341 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
3342 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
3343 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
3344 | ||
3345 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
3346 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
3347 | ||
a5ee0656 | 3348 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
a5ee0656 | 3349 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d55e5bfc | 3350 | |
51b83b37 | 3351 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground); |
8d38bd1d RD |
3352 | |
3353 | IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle); | |
3354 | ||
d55e5bfc RD |
3355 | |
3356 | ||
1bd55598 | 3357 | SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } |
d55e5bfc RD |
3358 | |
3359 | #include <wx/generic/dragimgg.h> | |
3360 | ||
53aa7709 | 3361 | static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr); |
1bd55598 | 3362 | SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){ |
53aa7709 RD |
3363 | wxDateTime rv; |
3364 | self->GetRange(&rv, NULL); | |
3365 | return rv; | |
3366 | } | |
1bd55598 | 3367 | SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){ |
53aa7709 RD |
3368 | wxDateTime rv; |
3369 | self->GetRange(NULL, &rv); | |
3370 | return rv; | |
3371 | } | |
704eda0c | 3372 | static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr); |
b850e7f3 RD |
3373 | static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr); |
3374 | static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr); | |
3375 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
3376 | static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr); | |
3377 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
3378 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
3379 | static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr); | |
5172800e | 3380 | static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr); |
3f7f284d | 3381 | static const wxString wxPySearchCtrlNameStr(wxSearchCtrlNameStr); |
62358578 RD |
3382 | |
3383 | #if !defined(wxUSE_SEARCHCTRL) || !wxUSE_SEARCHCTRL | |
3384 | // define a dummy class for builds that don't have wxSearchCtrl | |
3385 | ||
3386 | enum { | |
4ed51f4d RD |
3387 | wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN, |
3388 | wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN | |
62358578 RD |
3389 | }; |
3390 | ||
3391 | class wxSearchCtrl : public wxTextCtrl | |
3392 | { | |
3393 | public: | |
3394 | wxSearchCtrl() { wxPyRaiseNotImplemented(); } | |
3395 | wxSearchCtrl(wxWindow*, wxWindowID, | |
3396 | const wxString&, | |
3397 | const wxPoint&, | |
3398 | const wxSize&, | |
3399 | long style, | |
3400 | const wxValidator&, | |
3401 | const wxString& name) | |
3402 | { wxPyRaiseNotImplemented(); } | |
3403 | ||
3404 | bool Create( wxWindow*, wxWindowID, | |
3405 | const wxString&, | |
3406 | const wxPoint&, | |
3407 | const wxSize&, | |
3408 | long style, | |
3409 | const wxValidator&, | |
3410 | const wxString& name) {} | |
3411 | ||
3412 | virtual void SetMenu( wxMenu* ) {} | |
3413 | virtual wxMenu* GetMenu() { return NULL; } | |
3414 | ||
3415 | // get/set search options | |
3416 | // ---------------------- | |
3417 | virtual void ShowSearchButton( bool ) {} | |
3418 | virtual bool IsSearchButtonVisible() const { return false; } | |
3419 | ||
3420 | virtual void ShowCancelButton( bool ) {} | |
3421 | virtual bool IsCancelButtonVisible() const { return false; } | |
6646ca90 RD |
3422 | |
3423 | virtual void SetDescriptiveText(const wxString& text); | |
3424 | virtual wxString GetDescriptiveText() const; | |
62358578 RD |
3425 | }; |
3426 | #endif | |
3427 | ||
3f7f284d RD |
3428 | SWIGINTERN void wxSearchCtrl_SetSearchBitmap(wxSearchCtrl *self,wxBitmap const &){} |
3429 | SWIGINTERN void wxSearchCtrl_SetSearchMenuBitmap(wxSearchCtrl *self,wxBitmap const &){} | |
3430 | SWIGINTERN void wxSearchCtrl_SetCancelBitmap(wxSearchCtrl *self,wxBitmap const &){} | |
d55e5bfc RD |
3431 | #ifdef __cplusplus |
3432 | extern "C" { | |
3433 | #endif | |
1bd55598 RD |
3434 | SWIGINTERN int ButtonNameStr_set(PyObject *) { |
3435 | SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only."); | |
3436 | return 1; | |
d55e5bfc RD |
3437 | } |
3438 | ||
3439 | ||
1bd55598 RD |
3440 | SWIGINTERN PyObject *ButtonNameStr_get(void) { |
3441 | PyObject *pyobj = 0; | |
3442 | ||
3443 | { | |
d55e5bfc | 3444 | #if wxUSE_UNICODE |
1bd55598 | 3445 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); |
d55e5bfc | 3446 | #else |
1bd55598 | 3447 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); |
d55e5bfc | 3448 | #endif |
1bd55598 RD |
3449 | } |
3450 | return pyobj; | |
3451 | } | |
3452 | ||
3453 | ||
3454 | SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3455 | PyObject *resultobj = 0; | |
3456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3457 | int arg2 = (int) -1 ; | |
3458 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3459 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3460 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3461 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3462 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3463 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3464 | long arg6 = (long) 0 ; | |
3465 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3466 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3467 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
3468 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3469 | wxButton *result = 0 ; | |
3470 | void *argp1 = 0 ; | |
3471 | int res1 = 0 ; | |
3472 | int val2 ; | |
3473 | int ecode2 = 0 ; | |
3474 | bool temp3 = false ; | |
3475 | wxPoint temp4 ; | |
3476 | wxSize temp5 ; | |
3477 | long val6 ; | |
3478 | int ecode6 = 0 ; | |
3479 | void *argp7 = 0 ; | |
3480 | int res7 = 0 ; | |
3481 | bool temp8 = false ; | |
3482 | PyObject * obj0 = 0 ; | |
3483 | PyObject * obj1 = 0 ; | |
3484 | PyObject * obj2 = 0 ; | |
3485 | PyObject * obj3 = 0 ; | |
3486 | PyObject * obj4 = 0 ; | |
3487 | PyObject * obj5 = 0 ; | |
3488 | PyObject * obj6 = 0 ; | |
3489 | PyObject * obj7 = 0 ; | |
3490 | char * kwnames[] = { | |
3491 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3492 | }; | |
3493 | ||
3494 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
3495 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3496 | if (!SWIG_IsOK(res1)) { | |
3497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3498 | } | |
3499 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3500 | if (obj1) { | |
3501 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3502 | if (!SWIG_IsOK(ecode2)) { | |
3503 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'"); | |
3504 | } | |
3505 | arg2 = static_cast< int >(val2); | |
3506 | } | |
3507 | if (obj2) { | |
d55e5bfc | 3508 | { |
1bd55598 RD |
3509 | arg3 = wxString_in_helper(obj2); |
3510 | if (arg3 == NULL) SWIG_fail; | |
3511 | temp3 = true; | |
d55e5bfc | 3512 | } |
1bd55598 RD |
3513 | } |
3514 | if (obj3) { | |
d55e5bfc | 3515 | { |
1bd55598 RD |
3516 | arg4 = &temp4; |
3517 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 3518 | } |
1bd55598 RD |
3519 | } |
3520 | if (obj4) { | |
d55e5bfc | 3521 | { |
1bd55598 RD |
3522 | arg5 = &temp5; |
3523 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 3524 | } |
1bd55598 RD |
3525 | } |
3526 | if (obj5) { | |
3527 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3528 | if (!SWIG_IsOK(ecode6)) { | |
3529 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'"); | |
3530 | } | |
3531 | arg6 = static_cast< long >(val6); | |
3532 | } | |
3533 | if (obj6) { | |
3534 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
3535 | if (!SWIG_IsOK(res7)) { | |
3536 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 3537 | } |
1bd55598 RD |
3538 | if (!argp7) { |
3539 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 3540 | } |
1bd55598 RD |
3541 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
3542 | } | |
3543 | if (obj7) { | |
d55e5bfc | 3544 | { |
1bd55598 RD |
3545 | arg8 = wxString_in_helper(obj7); |
3546 | if (arg8 == NULL) SWIG_fail; | |
3547 | temp8 = true; | |
d55e5bfc | 3548 | } |
1bd55598 RD |
3549 | } |
3550 | { | |
3551 | if (!wxPyCheckForApp()) SWIG_fail; | |
3552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3553 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3554 | wxPyEndAllowThreads(__tstate); | |
3555 | if (PyErr_Occurred()) SWIG_fail; | |
3556 | } | |
3557 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 ); | |
3558 | { | |
3559 | if (temp3) | |
3560 | delete arg3; | |
3561 | } | |
3562 | { | |
3563 | if (temp8) | |
3564 | delete arg8; | |
3565 | } | |
3566 | return resultobj; | |
3567 | fail: | |
3568 | { | |
3569 | if (temp3) | |
3570 | delete arg3; | |
3571 | } | |
3572 | { | |
3573 | if (temp8) | |
3574 | delete arg8; | |
3575 | } | |
3576 | return NULL; | |
d55e5bfc RD |
3577 | } |
3578 | ||
3579 | ||
1bd55598 RD |
3580 | SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3581 | PyObject *resultobj = 0; | |
3582 | wxButton *result = 0 ; | |
3583 | ||
3584 | if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail; | |
3585 | { | |
3586 | if (!wxPyCheckForApp()) SWIG_fail; | |
3587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3588 | result = (wxButton *)new wxButton(); | |
3589 | wxPyEndAllowThreads(__tstate); | |
3590 | if (PyErr_Occurred()) SWIG_fail; | |
3591 | } | |
3592 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 ); | |
3593 | return resultobj; | |
3594 | fail: | |
3595 | return NULL; | |
3596 | } | |
3597 | ||
3598 | ||
3599 | SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3600 | PyObject *resultobj = 0; | |
3601 | wxButton *arg1 = (wxButton *) 0 ; | |
3602 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3603 | int arg3 = (int) -1 ; | |
3604 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3605 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3606 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3607 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3608 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3609 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3610 | long arg7 = (long) 0 ; | |
3611 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3612 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3613 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
3614 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3615 | bool result; | |
3616 | void *argp1 = 0 ; | |
3617 | int res1 = 0 ; | |
3618 | void *argp2 = 0 ; | |
3619 | int res2 = 0 ; | |
3620 | int val3 ; | |
3621 | int ecode3 = 0 ; | |
3622 | bool temp4 = false ; | |
3623 | wxPoint temp5 ; | |
3624 | wxSize temp6 ; | |
3625 | long val7 ; | |
3626 | int ecode7 = 0 ; | |
3627 | void *argp8 = 0 ; | |
3628 | int res8 = 0 ; | |
3629 | bool temp9 = false ; | |
3630 | PyObject * obj0 = 0 ; | |
3631 | PyObject * obj1 = 0 ; | |
3632 | PyObject * obj2 = 0 ; | |
3633 | PyObject * obj3 = 0 ; | |
3634 | PyObject * obj4 = 0 ; | |
3635 | PyObject * obj5 = 0 ; | |
3636 | PyObject * obj6 = 0 ; | |
3637 | PyObject * obj7 = 0 ; | |
3638 | PyObject * obj8 = 0 ; | |
3639 | char * kwnames[] = { | |
3640 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3641 | }; | |
3642 | ||
3643 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
3644 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 ); | |
3645 | if (!SWIG_IsOK(res1)) { | |
3646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'"); | |
3647 | } | |
3648 | arg1 = reinterpret_cast< wxButton * >(argp1); | |
3649 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3650 | if (!SWIG_IsOK(res2)) { | |
3651 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3652 | } | |
3653 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3654 | if (obj2) { | |
3655 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3656 | if (!SWIG_IsOK(ecode3)) { | |
3657 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'"); | |
3658 | } | |
3659 | arg3 = static_cast< int >(val3); | |
3660 | } | |
3661 | if (obj3) { | |
d55e5bfc | 3662 | { |
1bd55598 RD |
3663 | arg4 = wxString_in_helper(obj3); |
3664 | if (arg4 == NULL) SWIG_fail; | |
3665 | temp4 = true; | |
d55e5bfc | 3666 | } |
1bd55598 RD |
3667 | } |
3668 | if (obj4) { | |
d55e5bfc | 3669 | { |
1bd55598 RD |
3670 | arg5 = &temp5; |
3671 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 3672 | } |
1bd55598 RD |
3673 | } |
3674 | if (obj5) { | |
d55e5bfc | 3675 | { |
1bd55598 RD |
3676 | arg6 = &temp6; |
3677 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 3678 | } |
1bd55598 RD |
3679 | } |
3680 | if (obj6) { | |
3681 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
3682 | if (!SWIG_IsOK(ecode7)) { | |
3683 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'"); | |
3684 | } | |
3685 | arg7 = static_cast< long >(val7); | |
3686 | } | |
3687 | if (obj7) { | |
3688 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
3689 | if (!SWIG_IsOK(res8)) { | |
3690 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 3691 | } |
1bd55598 RD |
3692 | if (!argp8) { |
3693 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 3694 | } |
1bd55598 RD |
3695 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
3696 | } | |
3697 | if (obj8) { | |
d55e5bfc | 3698 | { |
1bd55598 RD |
3699 | arg9 = wxString_in_helper(obj8); |
3700 | if (arg9 == NULL) SWIG_fail; | |
3701 | temp9 = true; | |
d55e5bfc | 3702 | } |
1bd55598 RD |
3703 | } |
3704 | { | |
3705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3706 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3707 | wxPyEndAllowThreads(__tstate); | |
3708 | if (PyErr_Occurred()) SWIG_fail; | |
3709 | } | |
3710 | { | |
3711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3712 | } | |
3713 | { | |
3714 | if (temp4) | |
3715 | delete arg4; | |
3716 | } | |
3717 | { | |
3718 | if (temp9) | |
3719 | delete arg9; | |
3720 | } | |
3721 | return resultobj; | |
3722 | fail: | |
3723 | { | |
3724 | if (temp4) | |
3725 | delete arg4; | |
3726 | } | |
3727 | { | |
3728 | if (temp9) | |
3729 | delete arg9; | |
3730 | } | |
3731 | return NULL; | |
d55e5bfc RD |
3732 | } |
3733 | ||
3734 | ||
1bd55598 RD |
3735 | SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3736 | PyObject *resultobj = 0; | |
3737 | wxButton *arg1 = (wxButton *) 0 ; | |
3738 | void *argp1 = 0 ; | |
3739 | int res1 = 0 ; | |
3740 | PyObject *swig_obj[1] ; | |
3741 | ||
3742 | if (!args) SWIG_fail; | |
3743 | swig_obj[0] = args; | |
3744 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 ); | |
3745 | if (!SWIG_IsOK(res1)) { | |
3746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'"); | |
3747 | } | |
3748 | arg1 = reinterpret_cast< wxButton * >(argp1); | |
3749 | { | |
3750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3751 | (arg1)->SetDefault(); | |
3752 | wxPyEndAllowThreads(__tstate); | |
3753 | if (PyErr_Occurred()) SWIG_fail; | |
3754 | } | |
3755 | resultobj = SWIG_Py_Void(); | |
3756 | return resultobj; | |
3757 | fail: | |
3758 | return NULL; | |
d55e5bfc RD |
3759 | } |
3760 | ||
3761 | ||
1bd55598 RD |
3762 | SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3763 | PyObject *resultobj = 0; | |
3764 | wxSize result; | |
3765 | ||
3766 | if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail; | |
3767 | { | |
3768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3769 | result = wxButton::GetDefaultSize(); | |
3770 | wxPyEndAllowThreads(__tstate); | |
3771 | if (PyErr_Occurred()) SWIG_fail; | |
3772 | } | |
3773 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
3774 | return resultobj; | |
3775 | fail: | |
3776 | return NULL; | |
3777 | } | |
3778 | ||
3779 | ||
3780 | SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3781 | PyObject *resultobj = 0; | |
3782 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
3783 | SwigValueWrapper<wxVisualAttributes > result; | |
3784 | int val1 ; | |
3785 | int ecode1 = 0 ; | |
3786 | PyObject * obj0 = 0 ; | |
3787 | char * kwnames[] = { | |
3788 | (char *) "variant", NULL | |
3789 | }; | |
3790 | ||
3791 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
3792 | if (obj0) { | |
3793 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
3794 | if (!SWIG_IsOK(ecode1)) { | |
3795 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
3796 | } | |
3797 | arg1 = static_cast< wxWindowVariant >(val1); | |
3798 | } | |
3799 | { | |
3800 | if (!wxPyCheckForApp()) SWIG_fail; | |
3801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3802 | result = wxButton::GetClassDefaultAttributes(arg1); | |
3803 | wxPyEndAllowThreads(__tstate); | |
3804 | if (PyErr_Occurred()) SWIG_fail; | |
3805 | } | |
3806 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
3807 | return resultobj; | |
3808 | fail: | |
3809 | return NULL; | |
3810 | } | |
3811 | ||
3812 | ||
3813 | SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3814 | PyObject *obj; | |
3815 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3816 | SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj)); | |
3817 | return SWIG_Py_Void(); | |
3818 | } | |
3819 | ||
3820 | SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3821 | return SWIG_Python_InitShadowInstance(args); | |
3822 | } | |
3823 | ||
3824 | SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3825 | PyObject *resultobj = 0; | |
3826 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3827 | int arg2 = (int) -1 ; | |
3828 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
3829 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
3830 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3831 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3832 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3833 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3834 | long arg6 = (long) wxBU_AUTODRAW ; | |
3835 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3836 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3837 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
3838 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3839 | wxBitmapButton *result = 0 ; | |
3840 | void *argp1 = 0 ; | |
3841 | int res1 = 0 ; | |
3842 | int val2 ; | |
3843 | int ecode2 = 0 ; | |
3844 | void *argp3 = 0 ; | |
3845 | int res3 = 0 ; | |
3846 | wxPoint temp4 ; | |
3847 | wxSize temp5 ; | |
3848 | long val6 ; | |
3849 | int ecode6 = 0 ; | |
3850 | void *argp7 = 0 ; | |
3851 | int res7 = 0 ; | |
3852 | bool temp8 = false ; | |
3853 | PyObject * obj0 = 0 ; | |
3854 | PyObject * obj1 = 0 ; | |
3855 | PyObject * obj2 = 0 ; | |
3856 | PyObject * obj3 = 0 ; | |
3857 | PyObject * obj4 = 0 ; | |
3858 | PyObject * obj5 = 0 ; | |
3859 | PyObject * obj6 = 0 ; | |
3860 | PyObject * obj7 = 0 ; | |
3861 | char * kwnames[] = { | |
3862 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3863 | }; | |
3864 | ||
3865 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
3866 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3867 | if (!SWIG_IsOK(res1)) { | |
3868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3869 | } | |
3870 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3871 | if (obj1) { | |
3872 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3873 | if (!SWIG_IsOK(ecode2)) { | |
3874 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'"); | |
3875 | } | |
3876 | arg2 = static_cast< int >(val2); | |
3877 | } | |
3878 | if (obj2) { | |
3879 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
3880 | if (!SWIG_IsOK(res3)) { | |
3881 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
3882 | } | |
3883 | if (!argp3) { | |
3884 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
3885 | } | |
3886 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
3887 | } | |
3888 | if (obj3) { | |
d55e5bfc | 3889 | { |
1bd55598 RD |
3890 | arg4 = &temp4; |
3891 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 3892 | } |
1bd55598 RD |
3893 | } |
3894 | if (obj4) { | |
d55e5bfc | 3895 | { |
1bd55598 RD |
3896 | arg5 = &temp5; |
3897 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 3898 | } |
1bd55598 RD |
3899 | } |
3900 | if (obj5) { | |
3901 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3902 | if (!SWIG_IsOK(ecode6)) { | |
3903 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'"); | |
3904 | } | |
3905 | arg6 = static_cast< long >(val6); | |
3906 | } | |
3907 | if (obj6) { | |
3908 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
3909 | if (!SWIG_IsOK(res7)) { | |
3910 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
f20a2e1f | 3911 | } |
1bd55598 RD |
3912 | if (!argp7) { |
3913 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
f20a2e1f | 3914 | } |
1bd55598 RD |
3915 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
3916 | } | |
3917 | if (obj7) { | |
f20a2e1f | 3918 | { |
1bd55598 RD |
3919 | arg8 = wxString_in_helper(obj7); |
3920 | if (arg8 == NULL) SWIG_fail; | |
3921 | temp8 = true; | |
f20a2e1f | 3922 | } |
1bd55598 RD |
3923 | } |
3924 | { | |
3925 | if (!wxPyCheckForApp()) SWIG_fail; | |
3926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3927 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3928 | wxPyEndAllowThreads(__tstate); | |
3929 | if (PyErr_Occurred()) SWIG_fail; | |
3930 | } | |
3931 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 ); | |
3932 | { | |
3933 | if (temp8) | |
3934 | delete arg8; | |
3935 | } | |
3936 | return resultobj; | |
3937 | fail: | |
3938 | { | |
3939 | if (temp8) | |
3940 | delete arg8; | |
3941 | } | |
3942 | return NULL; | |
f20a2e1f RD |
3943 | } |
3944 | ||
3945 | ||
1bd55598 RD |
3946 | SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3947 | PyObject *resultobj = 0; | |
3948 | wxBitmapButton *result = 0 ; | |
3949 | ||
3950 | if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail; | |
3951 | { | |
3952 | if (!wxPyCheckForApp()) SWIG_fail; | |
3953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3954 | result = (wxBitmapButton *)new wxBitmapButton(); | |
3955 | wxPyEndAllowThreads(__tstate); | |
3956 | if (PyErr_Occurred()) SWIG_fail; | |
3957 | } | |
3958 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 ); | |
3959 | return resultobj; | |
3960 | fail: | |
3961 | return NULL; | |
3962 | } | |
3963 | ||
3964 | ||
3965 | SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3966 | PyObject *resultobj = 0; | |
3967 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3968 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3969 | int arg3 = (int) -1 ; | |
3970 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
3971 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
3972 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3973 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3974 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3975 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3976 | long arg7 = (long) wxBU_AUTODRAW ; | |
3977 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3978 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3979 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
3980 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3981 | bool result; | |
3982 | void *argp1 = 0 ; | |
3983 | int res1 = 0 ; | |
3984 | void *argp2 = 0 ; | |
3985 | int res2 = 0 ; | |
3986 | int val3 ; | |
3987 | int ecode3 = 0 ; | |
3988 | void *argp4 = 0 ; | |
3989 | int res4 = 0 ; | |
3990 | wxPoint temp5 ; | |
3991 | wxSize temp6 ; | |
3992 | long val7 ; | |
3993 | int ecode7 = 0 ; | |
3994 | void *argp8 = 0 ; | |
3995 | int res8 = 0 ; | |
3996 | bool temp9 = false ; | |
3997 | PyObject * obj0 = 0 ; | |
3998 | PyObject * obj1 = 0 ; | |
3999 | PyObject * obj2 = 0 ; | |
4000 | PyObject * obj3 = 0 ; | |
4001 | PyObject * obj4 = 0 ; | |
4002 | PyObject * obj5 = 0 ; | |
4003 | PyObject * obj6 = 0 ; | |
4004 | PyObject * obj7 = 0 ; | |
4005 | PyObject * obj8 = 0 ; | |
4006 | char * kwnames[] = { | |
4007 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4008 | }; | |
4009 | ||
4010 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
4011 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4012 | if (!SWIG_IsOK(res1)) { | |
4013 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4014 | } | |
4015 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4016 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4017 | if (!SWIG_IsOK(res2)) { | |
4018 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4019 | } | |
4020 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4021 | if (obj2) { | |
4022 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4023 | if (!SWIG_IsOK(ecode3)) { | |
4024 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
4025 | } | |
4026 | arg3 = static_cast< int >(val3); | |
4027 | } | |
4028 | if (obj3) { | |
4029 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4030 | if (!SWIG_IsOK(res4)) { | |
4031 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 4032 | } |
1bd55598 RD |
4033 | if (!argp4) { |
4034 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 4035 | } |
1bd55598 RD |
4036 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
4037 | } | |
4038 | if (obj4) { | |
d55e5bfc | 4039 | { |
1bd55598 RD |
4040 | arg5 = &temp5; |
4041 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 4042 | } |
1bd55598 RD |
4043 | } |
4044 | if (obj5) { | |
d55e5bfc | 4045 | { |
1bd55598 RD |
4046 | arg6 = &temp6; |
4047 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4048 | } | |
4049 | } | |
4050 | if (obj6) { | |
4051 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
4052 | if (!SWIG_IsOK(ecode7)) { | |
4053 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
4054 | } | |
4055 | arg7 = static_cast< long >(val7); | |
4056 | } | |
4057 | if (obj7) { | |
4058 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
4059 | if (!SWIG_IsOK(res8)) { | |
4060 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
4061 | } | |
4062 | if (!argp8) { | |
4063 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 4064 | } |
1bd55598 RD |
4065 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
4066 | } | |
4067 | if (obj8) { | |
d55e5bfc | 4068 | { |
1bd55598 RD |
4069 | arg9 = wxString_in_helper(obj8); |
4070 | if (arg9 == NULL) SWIG_fail; | |
4071 | temp9 = true; | |
d55e5bfc | 4072 | } |
1bd55598 RD |
4073 | } |
4074 | { | |
4075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4076 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4077 | wxPyEndAllowThreads(__tstate); | |
4078 | if (PyErr_Occurred()) SWIG_fail; | |
4079 | } | |
4080 | { | |
4081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4082 | } | |
4083 | { | |
4084 | if (temp9) | |
4085 | delete arg9; | |
4086 | } | |
4087 | return resultobj; | |
4088 | fail: | |
4089 | { | |
4090 | if (temp9) | |
4091 | delete arg9; | |
4092 | } | |
4093 | return NULL; | |
d55e5bfc RD |
4094 | } |
4095 | ||
4096 | ||
1bd55598 RD |
4097 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4098 | PyObject *resultobj = 0; | |
4099 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4100 | wxBitmap result; | |
4101 | void *argp1 = 0 ; | |
4102 | int res1 = 0 ; | |
4103 | PyObject *swig_obj[1] ; | |
4104 | ||
4105 | if (!args) SWIG_fail; | |
4106 | swig_obj[0] = args; | |
4107 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4108 | if (!SWIG_IsOK(res1)) { | |
4109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4110 | } | |
4111 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4112 | { | |
4113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4114 | result = (arg1)->GetBitmapLabel(); | |
4115 | wxPyEndAllowThreads(__tstate); | |
4116 | if (PyErr_Occurred()) SWIG_fail; | |
4117 | } | |
4118 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4119 | return resultobj; | |
4120 | fail: | |
4121 | return NULL; | |
d55e5bfc RD |
4122 | } |
4123 | ||
4124 | ||
1bd55598 RD |
4125 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4126 | PyObject *resultobj = 0; | |
4127 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4128 | wxBitmap result; | |
4129 | void *argp1 = 0 ; | |
4130 | int res1 = 0 ; | |
4131 | PyObject *swig_obj[1] ; | |
4132 | ||
4133 | if (!args) SWIG_fail; | |
4134 | swig_obj[0] = args; | |
4135 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4136 | if (!SWIG_IsOK(res1)) { | |
4137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4138 | } | |
4139 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4140 | { | |
4141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4142 | result = (arg1)->GetBitmapDisabled(); | |
4143 | wxPyEndAllowThreads(__tstate); | |
4144 | if (PyErr_Occurred()) SWIG_fail; | |
4145 | } | |
4146 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4147 | return resultobj; | |
4148 | fail: | |
4149 | return NULL; | |
d55e5bfc RD |
4150 | } |
4151 | ||
4152 | ||
1bd55598 RD |
4153 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4154 | PyObject *resultobj = 0; | |
4155 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4156 | wxBitmap result; | |
4157 | void *argp1 = 0 ; | |
4158 | int res1 = 0 ; | |
4159 | PyObject *swig_obj[1] ; | |
4160 | ||
4161 | if (!args) SWIG_fail; | |
4162 | swig_obj[0] = args; | |
4163 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4164 | if (!SWIG_IsOK(res1)) { | |
4165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4166 | } | |
4167 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4168 | { | |
4169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4170 | result = (arg1)->GetBitmapFocus(); | |
4171 | wxPyEndAllowThreads(__tstate); | |
4172 | if (PyErr_Occurred()) SWIG_fail; | |
4173 | } | |
4174 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4175 | return resultobj; | |
4176 | fail: | |
4177 | return NULL; | |
d55e5bfc RD |
4178 | } |
4179 | ||
4180 | ||
1bd55598 RD |
4181 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4182 | PyObject *resultobj = 0; | |
4183 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4184 | wxBitmap result; | |
4185 | void *argp1 = 0 ; | |
4186 | int res1 = 0 ; | |
4187 | PyObject *swig_obj[1] ; | |
4188 | ||
4189 | if (!args) SWIG_fail; | |
4190 | swig_obj[0] = args; | |
4191 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4192 | if (!SWIG_IsOK(res1)) { | |
4193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4194 | } | |
4195 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4196 | { | |
4197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4198 | result = (arg1)->GetBitmapSelected(); | |
4199 | wxPyEndAllowThreads(__tstate); | |
4200 | if (PyErr_Occurred()) SWIG_fail; | |
4201 | } | |
4202 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4203 | return resultobj; | |
4204 | fail: | |
4205 | return NULL; | |
d55e5bfc RD |
4206 | } |
4207 | ||
4208 | ||
1bd55598 RD |
4209 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4210 | PyObject *resultobj = 0; | |
4211 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4212 | wxBitmap result; | |
4213 | void *argp1 = 0 ; | |
4214 | int res1 = 0 ; | |
4215 | PyObject *swig_obj[1] ; | |
4216 | ||
4217 | if (!args) SWIG_fail; | |
4218 | swig_obj[0] = args; | |
4219 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4220 | if (!SWIG_IsOK(res1)) { | |
4221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4222 | } | |
4223 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4224 | { | |
4225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4226 | result = (arg1)->GetBitmapHover(); | |
4227 | wxPyEndAllowThreads(__tstate); | |
4228 | if (PyErr_Occurred()) SWIG_fail; | |
4229 | } | |
4230 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4231 | return resultobj; | |
4232 | fail: | |
4233 | return NULL; | |
4234 | } | |
4235 | ||
4236 | ||
4237 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4238 | PyObject *resultobj = 0; | |
4239 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4240 | wxBitmap *arg2 = 0 ; | |
4241 | void *argp1 = 0 ; | |
4242 | int res1 = 0 ; | |
4243 | void *argp2 = 0 ; | |
4244 | int res2 = 0 ; | |
4245 | PyObject * obj0 = 0 ; | |
4246 | PyObject * obj1 = 0 ; | |
4247 | char * kwnames[] = { | |
4248 | (char *) "self",(char *) "bitmap", NULL | |
4249 | }; | |
4250 | ||
4251 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
4252 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4253 | if (!SWIG_IsOK(res1)) { | |
4254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4255 | } | |
4256 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4257 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4258 | if (!SWIG_IsOK(res2)) { | |
4259 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4260 | } | |
4261 | if (!argp2) { | |
4262 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4263 | } | |
4264 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4265 | { | |
4266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4267 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
4268 | wxPyEndAllowThreads(__tstate); | |
4269 | if (PyErr_Occurred()) SWIG_fail; | |
4270 | } | |
4271 | resultobj = SWIG_Py_Void(); | |
4272 | return resultobj; | |
4273 | fail: | |
4274 | return NULL; | |
4275 | } | |
4276 | ||
4277 | ||
4278 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4279 | PyObject *resultobj = 0; | |
4280 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4281 | wxBitmap *arg2 = 0 ; | |
4282 | void *argp1 = 0 ; | |
4283 | int res1 = 0 ; | |
4284 | void *argp2 = 0 ; | |
4285 | int res2 = 0 ; | |
4286 | PyObject * obj0 = 0 ; | |
4287 | PyObject * obj1 = 0 ; | |
4288 | char * kwnames[] = { | |
4289 | (char *) "self",(char *) "bitmap", NULL | |
4290 | }; | |
4291 | ||
4292 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail; | |
4293 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4294 | if (!SWIG_IsOK(res1)) { | |
4295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4296 | } | |
4297 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4298 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4299 | if (!SWIG_IsOK(res2)) { | |
4300 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4301 | } | |
4302 | if (!argp2) { | |
4303 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4304 | } | |
4305 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4306 | { | |
4307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4308 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
4309 | wxPyEndAllowThreads(__tstate); | |
4310 | if (PyErr_Occurred()) SWIG_fail; | |
4311 | } | |
4312 | resultobj = SWIG_Py_Void(); | |
4313 | return resultobj; | |
4314 | fail: | |
4315 | return NULL; | |
4316 | } | |
4317 | ||
4318 | ||
4319 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4320 | PyObject *resultobj = 0; | |
4321 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4322 | wxBitmap *arg2 = 0 ; | |
4323 | void *argp1 = 0 ; | |
4324 | int res1 = 0 ; | |
4325 | void *argp2 = 0 ; | |
4326 | int res2 = 0 ; | |
4327 | PyObject * obj0 = 0 ; | |
4328 | PyObject * obj1 = 0 ; | |
4329 | char * kwnames[] = { | |
4330 | (char *) "self",(char *) "bitmap", NULL | |
4331 | }; | |
4332 | ||
4333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
4334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4335 | if (!SWIG_IsOK(res1)) { | |
4336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4337 | } | |
4338 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4339 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4340 | if (!SWIG_IsOK(res2)) { | |
4341 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4342 | } | |
4343 | if (!argp2) { | |
4344 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4345 | } | |
4346 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4347 | { | |
4348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4349 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
4350 | wxPyEndAllowThreads(__tstate); | |
4351 | if (PyErr_Occurred()) SWIG_fail; | |
4352 | } | |
4353 | resultobj = SWIG_Py_Void(); | |
4354 | return resultobj; | |
4355 | fail: | |
4356 | return NULL; | |
4357 | } | |
4358 | ||
4359 | ||
4360 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4361 | PyObject *resultobj = 0; | |
4362 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4363 | wxBitmap *arg2 = 0 ; | |
4364 | void *argp1 = 0 ; | |
4365 | int res1 = 0 ; | |
4366 | void *argp2 = 0 ; | |
4367 | int res2 = 0 ; | |
4368 | PyObject * obj0 = 0 ; | |
4369 | PyObject * obj1 = 0 ; | |
4370 | char * kwnames[] = { | |
4371 | (char *) "self",(char *) "bitmap", NULL | |
4372 | }; | |
4373 | ||
4374 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
4375 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4376 | if (!SWIG_IsOK(res1)) { | |
4377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4378 | } | |
4379 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4380 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4381 | if (!SWIG_IsOK(res2)) { | |
4382 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4383 | } | |
4384 | if (!argp2) { | |
4385 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4386 | } | |
4387 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4388 | { | |
4389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4390 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
4391 | wxPyEndAllowThreads(__tstate); | |
4392 | if (PyErr_Occurred()) SWIG_fail; | |
4393 | } | |
4394 | resultobj = SWIG_Py_Void(); | |
4395 | return resultobj; | |
4396 | fail: | |
4397 | return NULL; | |
4398 | } | |
4399 | ||
4400 | ||
4401 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4402 | PyObject *resultobj = 0; | |
4403 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4404 | wxBitmap *arg2 = 0 ; | |
4405 | void *argp1 = 0 ; | |
4406 | int res1 = 0 ; | |
4407 | void *argp2 = 0 ; | |
4408 | int res2 = 0 ; | |
4409 | PyObject * obj0 = 0 ; | |
4410 | PyObject * obj1 = 0 ; | |
4411 | char * kwnames[] = { | |
4412 | (char *) "self",(char *) "hover", NULL | |
4413 | }; | |
4414 | ||
4415 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail; | |
4416 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4417 | if (!SWIG_IsOK(res1)) { | |
4418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4419 | } | |
4420 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4421 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4422 | if (!SWIG_IsOK(res2)) { | |
4423 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4424 | } | |
4425 | if (!argp2) { | |
4426 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4427 | } | |
4428 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4429 | { | |
4430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4431 | (arg1)->SetBitmapHover((wxBitmap const &)*arg2); | |
4432 | wxPyEndAllowThreads(__tstate); | |
4433 | if (PyErr_Occurred()) SWIG_fail; | |
4434 | } | |
4435 | resultobj = SWIG_Py_Void(); | |
4436 | return resultobj; | |
4437 | fail: | |
4438 | return NULL; | |
4439 | } | |
4440 | ||
4441 | ||
4442 | SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4443 | PyObject *resultobj = 0; | |
4444 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4445 | int arg2 ; | |
4446 | int arg3 ; | |
4447 | void *argp1 = 0 ; | |
4448 | int res1 = 0 ; | |
4449 | int val2 ; | |
4450 | int ecode2 = 0 ; | |
4451 | int val3 ; | |
4452 | int ecode3 = 0 ; | |
4453 | PyObject * obj0 = 0 ; | |
4454 | PyObject * obj1 = 0 ; | |
4455 | PyObject * obj2 = 0 ; | |
4456 | char * kwnames[] = { | |
4457 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4458 | }; | |
4459 | ||
4460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4462 | if (!SWIG_IsOK(res1)) { | |
4463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4464 | } | |
4465 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4466 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4467 | if (!SWIG_IsOK(ecode2)) { | |
4468 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'"); | |
4469 | } | |
4470 | arg2 = static_cast< int >(val2); | |
4471 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4472 | if (!SWIG_IsOK(ecode3)) { | |
4473 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'"); | |
4474 | } | |
4475 | arg3 = static_cast< int >(val3); | |
4476 | { | |
4477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4478 | (arg1)->SetMargins(arg2,arg3); | |
4479 | wxPyEndAllowThreads(__tstate); | |
4480 | if (PyErr_Occurred()) SWIG_fail; | |
4481 | } | |
4482 | resultobj = SWIG_Py_Void(); | |
4483 | return resultobj; | |
4484 | fail: | |
4485 | return NULL; | |
d55e5bfc RD |
4486 | } |
4487 | ||
4488 | ||
1bd55598 RD |
4489 | SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4490 | PyObject *resultobj = 0; | |
4491 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4492 | int result; | |
4493 | void *argp1 = 0 ; | |
4494 | int res1 = 0 ; | |
4495 | PyObject *swig_obj[1] ; | |
4496 | ||
4497 | if (!args) SWIG_fail; | |
4498 | swig_obj[0] = args; | |
4499 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4500 | if (!SWIG_IsOK(res1)) { | |
4501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'"); | |
4502 | } | |
4503 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4504 | { | |
4505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4506 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
4507 | wxPyEndAllowThreads(__tstate); | |
4508 | if (PyErr_Occurred()) SWIG_fail; | |
4509 | } | |
4510 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4511 | return resultobj; | |
4512 | fail: | |
4513 | return NULL; | |
d55e5bfc RD |
4514 | } |
4515 | ||
4516 | ||
1bd55598 RD |
4517 | SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4518 | PyObject *resultobj = 0; | |
4519 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4520 | int result; | |
4521 | void *argp1 = 0 ; | |
4522 | int res1 = 0 ; | |
4523 | PyObject *swig_obj[1] ; | |
4524 | ||
4525 | if (!args) SWIG_fail; | |
4526 | swig_obj[0] = args; | |
4527 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4528 | if (!SWIG_IsOK(res1)) { | |
4529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'"); | |
4530 | } | |
4531 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4532 | { | |
4533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4534 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
4535 | wxPyEndAllowThreads(__tstate); | |
4536 | if (PyErr_Occurred()) SWIG_fail; | |
4537 | } | |
4538 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4539 | return resultobj; | |
4540 | fail: | |
4541 | return NULL; | |
b1fcee84 RD |
4542 | } |
4543 | ||
4544 | ||
1bd55598 RD |
4545 | SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4546 | PyObject *obj; | |
4547 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4548 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj)); | |
4549 | return SWIG_Py_Void(); | |
d55e5bfc RD |
4550 | } |
4551 | ||
1bd55598 RD |
4552 | SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4553 | return SWIG_Python_InitShadowInstance(args); | |
4554 | } | |
d55e5bfc | 4555 | |
1bd55598 RD |
4556 | SWIGINTERN int CheckBoxNameStr_set(PyObject *) { |
4557 | SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only."); | |
4558 | return 1; | |
d55e5bfc RD |
4559 | } |
4560 | ||
4561 | ||
1bd55598 RD |
4562 | SWIGINTERN PyObject *CheckBoxNameStr_get(void) { |
4563 | PyObject *pyobj = 0; | |
4564 | ||
4565 | { | |
4566 | #if wxUSE_UNICODE | |
4567 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
4568 | #else | |
4569 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
4570 | #endif | |
4571 | } | |
4572 | return pyobj; | |
4573 | } | |
4574 | ||
4575 | ||
4576 | SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4577 | PyObject *resultobj = 0; | |
4578 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4579 | int arg2 = (int) -1 ; | |
4580 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4581 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4582 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4583 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4584 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4585 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4586 | long arg6 = (long) 0 ; | |
4587 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
4588 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
4589 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
4590 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4591 | wxCheckBox *result = 0 ; | |
4592 | void *argp1 = 0 ; | |
4593 | int res1 = 0 ; | |
4594 | int val2 ; | |
4595 | int ecode2 = 0 ; | |
4596 | bool temp3 = false ; | |
4597 | wxPoint temp4 ; | |
4598 | wxSize temp5 ; | |
4599 | long val6 ; | |
4600 | int ecode6 = 0 ; | |
4601 | void *argp7 = 0 ; | |
4602 | int res7 = 0 ; | |
4603 | bool temp8 = false ; | |
4604 | PyObject * obj0 = 0 ; | |
4605 | PyObject * obj1 = 0 ; | |
4606 | PyObject * obj2 = 0 ; | |
4607 | PyObject * obj3 = 0 ; | |
4608 | PyObject * obj4 = 0 ; | |
4609 | PyObject * obj5 = 0 ; | |
4610 | PyObject * obj6 = 0 ; | |
4611 | PyObject * obj7 = 0 ; | |
4612 | char * kwnames[] = { | |
4613 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4614 | }; | |
4615 | ||
4616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
4617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4618 | if (!SWIG_IsOK(res1)) { | |
4619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
4620 | } | |
4621 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
4622 | if (obj1) { | |
4623 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4624 | if (!SWIG_IsOK(ecode2)) { | |
4625 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'"); | |
4626 | } | |
4627 | arg2 = static_cast< int >(val2); | |
4628 | } | |
4629 | if (obj2) { | |
d55e5bfc | 4630 | { |
1bd55598 RD |
4631 | arg3 = wxString_in_helper(obj2); |
4632 | if (arg3 == NULL) SWIG_fail; | |
4633 | temp3 = true; | |
d55e5bfc | 4634 | } |
1bd55598 RD |
4635 | } |
4636 | if (obj3) { | |
4637 | { | |
4638 | arg4 = &temp4; | |
4639 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 4640 | } |
1bd55598 RD |
4641 | } |
4642 | if (obj4) { | |
d55e5bfc | 4643 | { |
1bd55598 RD |
4644 | arg5 = &temp5; |
4645 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 4646 | } |
1bd55598 RD |
4647 | } |
4648 | if (obj5) { | |
4649 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
4650 | if (!SWIG_IsOK(ecode6)) { | |
4651 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'"); | |
4652 | } | |
4653 | arg6 = static_cast< long >(val6); | |
4654 | } | |
4655 | if (obj6) { | |
4656 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
4657 | if (!SWIG_IsOK(res7)) { | |
4658 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
b1fcee84 | 4659 | } |
1bd55598 RD |
4660 | if (!argp7) { |
4661 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
4662 | } | |
4663 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
4664 | } | |
4665 | if (obj7) { | |
b1fcee84 | 4666 | { |
1bd55598 RD |
4667 | arg8 = wxString_in_helper(obj7); |
4668 | if (arg8 == NULL) SWIG_fail; | |
4669 | temp8 = true; | |
b1fcee84 | 4670 | } |
1bd55598 RD |
4671 | } |
4672 | { | |
4673 | if (!wxPyCheckForApp()) SWIG_fail; | |
4674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4675 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
4676 | wxPyEndAllowThreads(__tstate); | |
4677 | if (PyErr_Occurred()) SWIG_fail; | |
4678 | } | |
4679 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 ); | |
4680 | { | |
4681 | if (temp3) | |
4682 | delete arg3; | |
4683 | } | |
4684 | { | |
4685 | if (temp8) | |
4686 | delete arg8; | |
4687 | } | |
4688 | return resultobj; | |
4689 | fail: | |
4690 | { | |
4691 | if (temp3) | |
4692 | delete arg3; | |
4693 | } | |
4694 | { | |
4695 | if (temp8) | |
4696 | delete arg8; | |
4697 | } | |
4698 | return NULL; | |
b1fcee84 RD |
4699 | } |
4700 | ||
4701 | ||
1bd55598 RD |
4702 | SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4703 | PyObject *resultobj = 0; | |
4704 | wxCheckBox *result = 0 ; | |
4705 | ||
4706 | if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail; | |
4707 | { | |
4708 | if (!wxPyCheckForApp()) SWIG_fail; | |
4709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4710 | result = (wxCheckBox *)new wxCheckBox(); | |
4711 | wxPyEndAllowThreads(__tstate); | |
4712 | if (PyErr_Occurred()) SWIG_fail; | |
4713 | } | |
4714 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 ); | |
4715 | return resultobj; | |
4716 | fail: | |
4717 | return NULL; | |
4718 | } | |
4719 | ||
4720 | ||
4721 | SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4722 | PyObject *resultobj = 0; | |
4723 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4724 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4725 | int arg3 = (int) -1 ; | |
4726 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4727 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4728 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4729 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4730 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4731 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4732 | long arg7 = (long) 0 ; | |
4733 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4734 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4735 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
4736 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4737 | bool result; | |
4738 | void *argp1 = 0 ; | |
4739 | int res1 = 0 ; | |
4740 | void *argp2 = 0 ; | |
4741 | int res2 = 0 ; | |
4742 | int val3 ; | |
4743 | int ecode3 = 0 ; | |
4744 | bool temp4 = false ; | |
4745 | wxPoint temp5 ; | |
4746 | wxSize temp6 ; | |
4747 | long val7 ; | |
4748 | int ecode7 = 0 ; | |
4749 | void *argp8 = 0 ; | |
4750 | int res8 = 0 ; | |
4751 | bool temp9 = false ; | |
4752 | PyObject * obj0 = 0 ; | |
4753 | PyObject * obj1 = 0 ; | |
4754 | PyObject * obj2 = 0 ; | |
4755 | PyObject * obj3 = 0 ; | |
4756 | PyObject * obj4 = 0 ; | |
4757 | PyObject * obj5 = 0 ; | |
4758 | PyObject * obj6 = 0 ; | |
4759 | PyObject * obj7 = 0 ; | |
4760 | PyObject * obj8 = 0 ; | |
4761 | char * kwnames[] = { | |
4762 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4763 | }; | |
4764 | ||
4765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
4766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4767 | if (!SWIG_IsOK(res1)) { | |
4768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4769 | } | |
4770 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4771 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4772 | if (!SWIG_IsOK(res2)) { | |
4773 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4774 | } | |
4775 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4776 | if (obj2) { | |
4777 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4778 | if (!SWIG_IsOK(ecode3)) { | |
4779 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
4780 | } | |
4781 | arg3 = static_cast< int >(val3); | |
4782 | } | |
4783 | if (obj3) { | |
36ed4f51 | 4784 | { |
1bd55598 RD |
4785 | arg4 = wxString_in_helper(obj3); |
4786 | if (arg4 == NULL) SWIG_fail; | |
4787 | temp4 = true; | |
36ed4f51 | 4788 | } |
1bd55598 RD |
4789 | } |
4790 | if (obj4) { | |
36ed4f51 | 4791 | { |
1bd55598 RD |
4792 | arg5 = &temp5; |
4793 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 4794 | } |
1bd55598 RD |
4795 | } |
4796 | if (obj5) { | |
d55e5bfc | 4797 | { |
1bd55598 RD |
4798 | arg6 = &temp6; |
4799 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 4800 | } |
1bd55598 RD |
4801 | } |
4802 | if (obj6) { | |
4803 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
4804 | if (!SWIG_IsOK(ecode7)) { | |
4805 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
4806 | } | |
4807 | arg7 = static_cast< long >(val7); | |
4808 | } | |
4809 | if (obj7) { | |
4810 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
4811 | if (!SWIG_IsOK(res8)) { | |
4812 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 4813 | } |
1bd55598 RD |
4814 | if (!argp8) { |
4815 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
4816 | } | |
4817 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
4818 | } | |
4819 | if (obj8) { | |
36ed4f51 | 4820 | { |
1bd55598 RD |
4821 | arg9 = wxString_in_helper(obj8); |
4822 | if (arg9 == NULL) SWIG_fail; | |
4823 | temp9 = true; | |
36ed4f51 | 4824 | } |
1bd55598 RD |
4825 | } |
4826 | { | |
4827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4828 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4829 | wxPyEndAllowThreads(__tstate); | |
4830 | if (PyErr_Occurred()) SWIG_fail; | |
4831 | } | |
4832 | { | |
4833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4834 | } | |
4835 | { | |
4836 | if (temp4) | |
4837 | delete arg4; | |
4838 | } | |
4839 | { | |
4840 | if (temp9) | |
4841 | delete arg9; | |
4842 | } | |
4843 | return resultobj; | |
4844 | fail: | |
4845 | { | |
4846 | if (temp4) | |
4847 | delete arg4; | |
4848 | } | |
4849 | { | |
4850 | if (temp9) | |
4851 | delete arg9; | |
4852 | } | |
4853 | return NULL; | |
d55e5bfc RD |
4854 | } |
4855 | ||
4856 | ||
1bd55598 RD |
4857 | SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4858 | PyObject *resultobj = 0; | |
4859 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4860 | bool result; | |
4861 | void *argp1 = 0 ; | |
4862 | int res1 = 0 ; | |
4863 | PyObject *swig_obj[1] ; | |
4864 | ||
4865 | if (!args) SWIG_fail; | |
4866 | swig_obj[0] = args; | |
4867 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4868 | if (!SWIG_IsOK(res1)) { | |
4869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4870 | } | |
4871 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4872 | { | |
4873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4874 | result = (bool)(arg1)->GetValue(); | |
4875 | wxPyEndAllowThreads(__tstate); | |
4876 | if (PyErr_Occurred()) SWIG_fail; | |
4877 | } | |
4878 | { | |
4879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4880 | } | |
4881 | return resultobj; | |
4882 | fail: | |
4883 | return NULL; | |
d55e5bfc RD |
4884 | } |
4885 | ||
4886 | ||
1bd55598 RD |
4887 | SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4888 | PyObject *resultobj = 0; | |
4889 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4890 | bool result; | |
4891 | void *argp1 = 0 ; | |
4892 | int res1 = 0 ; | |
4893 | PyObject *swig_obj[1] ; | |
4894 | ||
4895 | if (!args) SWIG_fail; | |
4896 | swig_obj[0] = args; | |
4897 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4898 | if (!SWIG_IsOK(res1)) { | |
4899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4900 | } | |
4901 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4902 | { | |
4903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4904 | result = (bool)(arg1)->IsChecked(); | |
4905 | wxPyEndAllowThreads(__tstate); | |
4906 | if (PyErr_Occurred()) SWIG_fail; | |
4907 | } | |
4908 | { | |
4909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4910 | } | |
4911 | return resultobj; | |
4912 | fail: | |
4913 | return NULL; | |
4914 | } | |
4915 | ||
4916 | ||
4917 | SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4918 | PyObject *resultobj = 0; | |
4919 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4920 | bool arg2 ; | |
4921 | void *argp1 = 0 ; | |
4922 | int res1 = 0 ; | |
4923 | bool val2 ; | |
4924 | int ecode2 = 0 ; | |
4925 | PyObject * obj0 = 0 ; | |
4926 | PyObject * obj1 = 0 ; | |
4927 | char * kwnames[] = { | |
4928 | (char *) "self",(char *) "state", NULL | |
4929 | }; | |
4930 | ||
4931 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
4932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4933 | if (!SWIG_IsOK(res1)) { | |
4934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4935 | } | |
4936 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4937 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4938 | if (!SWIG_IsOK(ecode2)) { | |
4939 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
4940 | } | |
4941 | arg2 = static_cast< bool >(val2); | |
4942 | { | |
4943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4944 | (arg1)->SetValue(arg2); | |
4945 | wxPyEndAllowThreads(__tstate); | |
4946 | if (PyErr_Occurred()) SWIG_fail; | |
4947 | } | |
4948 | resultobj = SWIG_Py_Void(); | |
4949 | return resultobj; | |
4950 | fail: | |
4951 | return NULL; | |
d55e5bfc | 4952 | } |
1bd55598 RD |
4953 | |
4954 | ||
4955 | SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4956 | PyObject *resultobj = 0; | |
4957 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4958 | wxCheckBoxState result; | |
4959 | void *argp1 = 0 ; | |
4960 | int res1 = 0 ; | |
4961 | PyObject *swig_obj[1] ; | |
4962 | ||
4963 | if (!args) SWIG_fail; | |
4964 | swig_obj[0] = args; | |
4965 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4966 | if (!SWIG_IsOK(res1)) { | |
4967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
4968 | } | |
4969 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4970 | { | |
4971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4972 | result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue(); | |
4973 | wxPyEndAllowThreads(__tstate); | |
4974 | if (PyErr_Occurred()) SWIG_fail; | |
4975 | } | |
4976 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4977 | return resultobj; | |
4978 | fail: | |
4979 | return NULL; | |
4980 | } | |
4981 | ||
4982 | ||
4983 | SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4984 | PyObject *resultobj = 0; | |
4985 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4986 | wxCheckBoxState arg2 ; | |
4987 | void *argp1 = 0 ; | |
4988 | int res1 = 0 ; | |
4989 | int val2 ; | |
4990 | int ecode2 = 0 ; | |
4991 | PyObject * obj0 = 0 ; | |
4992 | PyObject * obj1 = 0 ; | |
4993 | char * kwnames[] = { | |
4994 | (char *) "self",(char *) "state", NULL | |
4995 | }; | |
4996 | ||
4997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
4998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4999 | if (!SWIG_IsOK(res1)) { | |
5000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
5001 | } | |
5002 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
5003 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5004 | if (!SWIG_IsOK(ecode2)) { | |
5005 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'"); | |
5006 | } | |
5007 | arg2 = static_cast< wxCheckBoxState >(val2); | |
5008 | { | |
5009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5010 | (arg1)->Set3StateValue(arg2); | |
5011 | wxPyEndAllowThreads(__tstate); | |
5012 | if (PyErr_Occurred()) SWIG_fail; | |
5013 | } | |
5014 | resultobj = SWIG_Py_Void(); | |
5015 | return resultobj; | |
5016 | fail: | |
5017 | return NULL; | |
d55e5bfc RD |
5018 | } |
5019 | ||
5020 | ||
1bd55598 RD |
5021 | SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5022 | PyObject *resultobj = 0; | |
5023 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
5024 | bool result; | |
5025 | void *argp1 = 0 ; | |
5026 | int res1 = 0 ; | |
5027 | PyObject *swig_obj[1] ; | |
5028 | ||
5029 | if (!args) SWIG_fail; | |
5030 | swig_obj[0] = args; | |
5031 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
5032 | if (!SWIG_IsOK(res1)) { | |
5033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
5034 | } | |
5035 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
5036 | { | |
5037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5038 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
5039 | wxPyEndAllowThreads(__tstate); | |
5040 | if (PyErr_Occurred()) SWIG_fail; | |
5041 | } | |
5042 | { | |
5043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5044 | } | |
5045 | return resultobj; | |
5046 | fail: | |
5047 | return NULL; | |
d55e5bfc RD |
5048 | } |
5049 | ||
5050 | ||
1bd55598 RD |
5051 | SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5052 | PyObject *resultobj = 0; | |
5053 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
5054 | bool result; | |
5055 | void *argp1 = 0 ; | |
5056 | int res1 = 0 ; | |
5057 | PyObject *swig_obj[1] ; | |
5058 | ||
5059 | if (!args) SWIG_fail; | |
5060 | swig_obj[0] = args; | |
5061 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
5062 | if (!SWIG_IsOK(res1)) { | |
5063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
5064 | } | |
5065 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
5066 | { | |
5067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5068 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
5069 | wxPyEndAllowThreads(__tstate); | |
5070 | if (PyErr_Occurred()) SWIG_fail; | |
5071 | } | |
5072 | { | |
5073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5074 | } | |
5075 | return resultobj; | |
5076 | fail: | |
5077 | return NULL; | |
d55e5bfc RD |
5078 | } |
5079 | ||
5080 | ||
1bd55598 RD |
5081 | SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5082 | PyObject *resultobj = 0; | |
5083 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5084 | SwigValueWrapper<wxVisualAttributes > result; | |
5085 | int val1 ; | |
5086 | int ecode1 = 0 ; | |
5087 | PyObject * obj0 = 0 ; | |
5088 | char * kwnames[] = { | |
5089 | (char *) "variant", NULL | |
5090 | }; | |
5091 | ||
5092 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5093 | if (obj0) { | |
5094 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5095 | if (!SWIG_IsOK(ecode1)) { | |
5096 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5097 | } | |
5098 | arg1 = static_cast< wxWindowVariant >(val1); | |
5099 | } | |
5100 | { | |
5101 | if (!wxPyCheckForApp()) SWIG_fail; | |
5102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5103 | result = wxCheckBox::GetClassDefaultAttributes(arg1); | |
5104 | wxPyEndAllowThreads(__tstate); | |
5105 | if (PyErr_Occurred()) SWIG_fail; | |
5106 | } | |
5107 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5108 | return resultobj; | |
5109 | fail: | |
5110 | return NULL; | |
d55e5bfc RD |
5111 | } |
5112 | ||
5113 | ||
1bd55598 RD |
5114 | SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5115 | PyObject *obj; | |
5116 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5117 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj)); | |
5118 | return SWIG_Py_Void(); | |
d55e5bfc RD |
5119 | } |
5120 | ||
1bd55598 RD |
5121 | SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5122 | return SWIG_Python_InitShadowInstance(args); | |
5123 | } | |
d55e5bfc | 5124 | |
1bd55598 RD |
5125 | SWIGINTERN int ChoiceNameStr_set(PyObject *) { |
5126 | SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only."); | |
5127 | return 1; | |
d55e5bfc RD |
5128 | } |
5129 | ||
5130 | ||
1bd55598 RD |
5131 | SWIGINTERN PyObject *ChoiceNameStr_get(void) { |
5132 | PyObject *pyobj = 0; | |
5133 | ||
5134 | { | |
5135 | #if wxUSE_UNICODE | |
5136 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
5137 | #else | |
5138 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
5139 | #endif | |
5140 | } | |
5141 | return pyobj; | |
5142 | } | |
5143 | ||
5144 | ||
5145 | SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5146 | PyObject *resultobj = 0; | |
5147 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5148 | int arg2 = (int) -1 ; | |
5149 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5150 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5151 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5152 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5153 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
5154 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5155 | long arg6 = (long) 0 ; | |
5156 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5157 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5158 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
5159 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5160 | wxChoice *result = 0 ; | |
5161 | void *argp1 = 0 ; | |
5162 | int res1 = 0 ; | |
5163 | int val2 ; | |
5164 | int ecode2 = 0 ; | |
5165 | wxPoint temp3 ; | |
5166 | wxSize temp4 ; | |
5167 | bool temp5 = false ; | |
5168 | long val6 ; | |
5169 | int ecode6 = 0 ; | |
5170 | void *argp7 = 0 ; | |
5171 | int res7 = 0 ; | |
5172 | bool temp8 = false ; | |
5173 | PyObject * obj0 = 0 ; | |
5174 | PyObject * obj1 = 0 ; | |
5175 | PyObject * obj2 = 0 ; | |
5176 | PyObject * obj3 = 0 ; | |
5177 | PyObject * obj4 = 0 ; | |
5178 | PyObject * obj5 = 0 ; | |
5179 | PyObject * obj6 = 0 ; | |
5180 | PyObject * obj7 = 0 ; | |
5181 | char * kwnames[] = { | |
5182 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5183 | }; | |
5184 | ||
5185 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
5186 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5187 | if (!SWIG_IsOK(res1)) { | |
5188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5189 | } | |
5190 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5191 | if (obj1) { | |
5192 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5193 | if (!SWIG_IsOK(ecode2)) { | |
5194 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'"); | |
5195 | } | |
5196 | arg2 = static_cast< int >(val2); | |
5197 | } | |
5198 | if (obj2) { | |
36ed4f51 | 5199 | { |
1bd55598 RD |
5200 | arg3 = &temp3; |
5201 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 5202 | } |
1bd55598 RD |
5203 | } |
5204 | if (obj3) { | |
d55e5bfc | 5205 | { |
1bd55598 RD |
5206 | arg4 = &temp4; |
5207 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 5208 | } |
1bd55598 RD |
5209 | } |
5210 | if (obj4) { | |
d55e5bfc | 5211 | { |
1bd55598 RD |
5212 | if (! PySequence_Check(obj4)) { |
5213 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5214 | SWIG_fail; | |
5215 | } | |
5216 | arg5 = new wxArrayString; | |
5217 | temp5 = true; | |
5218 | int i, len=PySequence_Length(obj4); | |
5219 | for (i=0; i<len; i++) { | |
5220 | PyObject* item = PySequence_GetItem(obj4, i); | |
5221 | wxString* s = wxString_in_helper(item); | |
5222 | if (PyErr_Occurred()) SWIG_fail; | |
5223 | arg5->Add(*s); | |
5224 | delete s; | |
5225 | Py_DECREF(item); | |
5226 | } | |
d55e5bfc | 5227 | } |
1bd55598 RD |
5228 | } |
5229 | if (obj5) { | |
5230 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
5231 | if (!SWIG_IsOK(ecode6)) { | |
5232 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'"); | |
5233 | } | |
5234 | arg6 = static_cast< long >(val6); | |
5235 | } | |
5236 | if (obj6) { | |
5237 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
5238 | if (!SWIG_IsOK(res7)) { | |
5239 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 5240 | } |
1bd55598 RD |
5241 | if (!argp7) { |
5242 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
5243 | } | |
5244 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
5245 | } | |
5246 | if (obj7) { | |
d55e5bfc | 5247 | { |
1bd55598 RD |
5248 | arg8 = wxString_in_helper(obj7); |
5249 | if (arg8 == NULL) SWIG_fail; | |
5250 | temp8 = true; | |
d55e5bfc | 5251 | } |
1bd55598 RD |
5252 | } |
5253 | { | |
5254 | if (!wxPyCheckForApp()) SWIG_fail; | |
5255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5256 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5257 | wxPyEndAllowThreads(__tstate); | |
5258 | if (PyErr_Occurred()) SWIG_fail; | |
5259 | } | |
5260 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 ); | |
5261 | { | |
5262 | if (temp5) delete arg5; | |
5263 | } | |
5264 | { | |
5265 | if (temp8) | |
5266 | delete arg8; | |
5267 | } | |
5268 | return resultobj; | |
5269 | fail: | |
5270 | { | |
5271 | if (temp5) delete arg5; | |
5272 | } | |
5273 | { | |
5274 | if (temp8) | |
5275 | delete arg8; | |
5276 | } | |
5277 | return NULL; | |
d55e5bfc RD |
5278 | } |
5279 | ||
5280 | ||
1bd55598 RD |
5281 | SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5282 | PyObject *resultobj = 0; | |
5283 | wxChoice *result = 0 ; | |
5284 | ||
5285 | if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail; | |
5286 | { | |
5287 | if (!wxPyCheckForApp()) SWIG_fail; | |
5288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5289 | result = (wxChoice *)new wxChoice(); | |
5290 | wxPyEndAllowThreads(__tstate); | |
5291 | if (PyErr_Occurred()) SWIG_fail; | |
5292 | } | |
5293 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 ); | |
5294 | return resultobj; | |
5295 | fail: | |
5296 | return NULL; | |
5297 | } | |
5298 | ||
5299 | ||
5300 | SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5301 | PyObject *resultobj = 0; | |
5302 | wxChoice *arg1 = (wxChoice *) 0 ; | |
5303 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5304 | int arg3 = (int) -1 ; | |
5305 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5306 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5307 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5308 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5309 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5310 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5311 | long arg7 = (long) 0 ; | |
5312 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5313 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5314 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
5315 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5316 | bool result; | |
5317 | void *argp1 = 0 ; | |
5318 | int res1 = 0 ; | |
5319 | void *argp2 = 0 ; | |
5320 | int res2 = 0 ; | |
5321 | int val3 ; | |
5322 | int ecode3 = 0 ; | |
5323 | wxPoint temp4 ; | |
5324 | wxSize temp5 ; | |
5325 | bool temp6 = false ; | |
5326 | long val7 ; | |
5327 | int ecode7 = 0 ; | |
5328 | void *argp8 = 0 ; | |
5329 | int res8 = 0 ; | |
5330 | bool temp9 = false ; | |
5331 | PyObject * obj0 = 0 ; | |
5332 | PyObject * obj1 = 0 ; | |
5333 | PyObject * obj2 = 0 ; | |
5334 | PyObject * obj3 = 0 ; | |
5335 | PyObject * obj4 = 0 ; | |
5336 | PyObject * obj5 = 0 ; | |
5337 | PyObject * obj6 = 0 ; | |
5338 | PyObject * obj7 = 0 ; | |
5339 | PyObject * obj8 = 0 ; | |
5340 | char * kwnames[] = { | |
5341 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5342 | }; | |
5343 | ||
5344 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
5345 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 ); | |
5346 | if (!SWIG_IsOK(res1)) { | |
5347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'"); | |
5348 | } | |
5349 | arg1 = reinterpret_cast< wxChoice * >(argp1); | |
5350 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5351 | if (!SWIG_IsOK(res2)) { | |
5352 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5353 | } | |
5354 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5355 | if (obj2) { | |
5356 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5357 | if (!SWIG_IsOK(ecode3)) { | |
5358 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'"); | |
5359 | } | |
5360 | arg3 = static_cast< int >(val3); | |
5361 | } | |
5362 | if (obj3) { | |
d55e5bfc | 5363 | { |
1bd55598 RD |
5364 | arg4 = &temp4; |
5365 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 5366 | } |
1bd55598 RD |
5367 | } |
5368 | if (obj4) { | |
d55e5bfc | 5369 | { |
1bd55598 RD |
5370 | arg5 = &temp5; |
5371 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 5372 | } |
1bd55598 RD |
5373 | } |
5374 | if (obj5) { | |
d55e5bfc | 5375 | { |
1bd55598 RD |
5376 | if (! PySequence_Check(obj5)) { |
5377 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5378 | SWIG_fail; | |
5379 | } | |
5380 | arg6 = new wxArrayString; | |
5381 | temp6 = true; | |
5382 | int i, len=PySequence_Length(obj5); | |
5383 | for (i=0; i<len; i++) { | |
5384 | PyObject* item = PySequence_GetItem(obj5, i); | |
5385 | wxString* s = wxString_in_helper(item); | |
5386 | if (PyErr_Occurred()) SWIG_fail; | |
5387 | arg6->Add(*s); | |
5388 | delete s; | |
5389 | Py_DECREF(item); | |
5390 | } | |
5391 | } | |
5392 | } | |
5393 | if (obj6) { | |
5394 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
5395 | if (!SWIG_IsOK(ecode7)) { | |
5396 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'"); | |
5397 | } | |
5398 | arg7 = static_cast< long >(val7); | |
5399 | } | |
5400 | if (obj7) { | |
5401 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
5402 | if (!SWIG_IsOK(res8)) { | |
5403 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 5404 | } |
1bd55598 RD |
5405 | if (!argp8) { |
5406 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5407 | } | |
5408 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
5409 | } | |
5410 | if (obj8) { | |
d55e5bfc | 5411 | { |
1bd55598 RD |
5412 | arg9 = wxString_in_helper(obj8); |
5413 | if (arg9 == NULL) SWIG_fail; | |
5414 | temp9 = true; | |
d55e5bfc | 5415 | } |
1bd55598 RD |
5416 | } |
5417 | { | |
5418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5419 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5420 | wxPyEndAllowThreads(__tstate); | |
5421 | if (PyErr_Occurred()) SWIG_fail; | |
5422 | } | |
5423 | { | |
5424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5425 | } | |
5426 | { | |
5427 | if (temp6) delete arg6; | |
5428 | } | |
5429 | { | |
5430 | if (temp9) | |
5431 | delete arg9; | |
5432 | } | |
5433 | return resultobj; | |
5434 | fail: | |
5435 | { | |
5436 | if (temp6) delete arg6; | |
5437 | } | |
5438 | { | |
5439 | if (temp9) | |
5440 | delete arg9; | |
5441 | } | |
5442 | return NULL; | |
d55e5bfc RD |
5443 | } |
5444 | ||
5445 | ||
1bd55598 RD |
5446 | SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5447 | PyObject *resultobj = 0; | |
5448 | wxChoice *arg1 = (wxChoice *) 0 ; | |
5449 | int result; | |
5450 | void *argp1 = 0 ; | |
5451 | int res1 = 0 ; | |
5452 | PyObject *swig_obj[1] ; | |
5453 | ||
5454 | if (!args) SWIG_fail; | |
5455 | swig_obj[0] = args; | |
5456 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 ); | |
5457 | if (!SWIG_IsOK(res1)) { | |
5458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'"); | |
5459 | } | |
5460 | arg1 = reinterpret_cast< wxChoice * >(argp1); | |
5461 | { | |
5462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5463 | result = (int)((wxChoice const *)arg1)->GetCurrentSelection(); | |
5464 | wxPyEndAllowThreads(__tstate); | |
5465 | if (PyErr_Occurred()) SWIG_fail; | |
5466 | } | |
5467 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5468 | return resultobj; | |
5469 | fail: | |
5470 | return NULL; | |
5471 | } | |
5472 | ||
5473 | ||
5474 | SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5475 | PyObject *resultobj = 0; | |
5476 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5477 | SwigValueWrapper<wxVisualAttributes > result; | |
5478 | int val1 ; | |
5479 | int ecode1 = 0 ; | |
5480 | PyObject * obj0 = 0 ; | |
5481 | char * kwnames[] = { | |
5482 | (char *) "variant", NULL | |
5483 | }; | |
5484 | ||
5485 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5486 | if (obj0) { | |
5487 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5488 | if (!SWIG_IsOK(ecode1)) { | |
5489 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5490 | } | |
5491 | arg1 = static_cast< wxWindowVariant >(val1); | |
5492 | } | |
5493 | { | |
5494 | if (!wxPyCheckForApp()) SWIG_fail; | |
5495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5496 | result = wxChoice::GetClassDefaultAttributes(arg1); | |
5497 | wxPyEndAllowThreads(__tstate); | |
5498 | if (PyErr_Occurred()) SWIG_fail; | |
5499 | } | |
5500 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5501 | return resultobj; | |
5502 | fail: | |
5503 | return NULL; | |
f20a2e1f RD |
5504 | } |
5505 | ||
5506 | ||
1bd55598 RD |
5507 | SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5508 | PyObject *obj; | |
5509 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5510 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj)); | |
5511 | return SWIG_Py_Void(); | |
d55e5bfc | 5512 | } |
1bd55598 RD |
5513 | |
5514 | SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5515 | return SWIG_Python_InitShadowInstance(args); | |
5516 | } | |
5517 | ||
5518 | SWIGINTERN int ComboBoxNameStr_set(PyObject *) { | |
5519 | SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only."); | |
5520 | return 1; | |
d55e5bfc RD |
5521 | } |
5522 | ||
5523 | ||
1bd55598 RD |
5524 | SWIGINTERN PyObject *ComboBoxNameStr_get(void) { |
5525 | PyObject *pyobj = 0; | |
5526 | ||
5527 | { | |
d55e5bfc | 5528 | #if wxUSE_UNICODE |
1bd55598 | 5529 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); |
d55e5bfc | 5530 | #else |
1bd55598 | 5531 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); |
d55e5bfc | 5532 | #endif |
1bd55598 RD |
5533 | } |
5534 | return pyobj; | |
5535 | } | |
5536 | ||
5537 | ||
5538 | SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5539 | PyObject *resultobj = 0; | |
5540 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5541 | int arg2 = (int) -1 ; | |
5542 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5543 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5544 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5545 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5546 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5547 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5548 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5549 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5550 | long arg7 = (long) 0 ; | |
5551 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5552 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5553 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
5554 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5555 | wxComboBox *result = 0 ; | |
5556 | void *argp1 = 0 ; | |
5557 | int res1 = 0 ; | |
5558 | int val2 ; | |
5559 | int ecode2 = 0 ; | |
5560 | bool temp3 = false ; | |
5561 | wxPoint temp4 ; | |
5562 | wxSize temp5 ; | |
5563 | bool temp6 = false ; | |
5564 | long val7 ; | |
5565 | int ecode7 = 0 ; | |
5566 | void *argp8 = 0 ; | |
5567 | int res8 = 0 ; | |
5568 | bool temp9 = false ; | |
5569 | PyObject * obj0 = 0 ; | |
5570 | PyObject * obj1 = 0 ; | |
5571 | PyObject * obj2 = 0 ; | |
5572 | PyObject * obj3 = 0 ; | |
5573 | PyObject * obj4 = 0 ; | |
5574 | PyObject * obj5 = 0 ; | |
5575 | PyObject * obj6 = 0 ; | |
5576 | PyObject * obj7 = 0 ; | |
5577 | PyObject * obj8 = 0 ; | |
5578 | char * kwnames[] = { | |
5579 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5580 | }; | |
5581 | ||
5582 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
5583 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5584 | if (!SWIG_IsOK(res1)) { | |
5585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5586 | } | |
5587 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5588 | if (obj1) { | |
5589 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5590 | if (!SWIG_IsOK(ecode2)) { | |
5591 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'"); | |
5592 | } | |
5593 | arg2 = static_cast< int >(val2); | |
5594 | } | |
5595 | if (obj2) { | |
d55e5bfc | 5596 | { |
1bd55598 RD |
5597 | arg3 = wxString_in_helper(obj2); |
5598 | if (arg3 == NULL) SWIG_fail; | |
5599 | temp3 = true; | |
d55e5bfc | 5600 | } |
1bd55598 RD |
5601 | } |
5602 | if (obj3) { | |
d55e5bfc | 5603 | { |
1bd55598 RD |
5604 | arg4 = &temp4; |
5605 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 5606 | } |
1bd55598 RD |
5607 | } |
5608 | if (obj4) { | |
d55e5bfc | 5609 | { |
1bd55598 RD |
5610 | arg5 = &temp5; |
5611 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 5612 | } |
1bd55598 RD |
5613 | } |
5614 | if (obj5) { | |
d55e5bfc | 5615 | { |
1bd55598 RD |
5616 | if (! PySequence_Check(obj5)) { |
5617 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5618 | SWIG_fail; | |
5619 | } | |
5620 | arg6 = new wxArrayString; | |
5621 | temp6 = true; | |
5622 | int i, len=PySequence_Length(obj5); | |
5623 | for (i=0; i<len; i++) { | |
5624 | PyObject* item = PySequence_GetItem(obj5, i); | |
5625 | wxString* s = wxString_in_helper(item); | |
5626 | if (PyErr_Occurred()) SWIG_fail; | |
5627 | arg6->Add(*s); | |
5628 | delete s; | |
5629 | Py_DECREF(item); | |
5630 | } | |
d55e5bfc | 5631 | } |
1bd55598 RD |
5632 | } |
5633 | if (obj6) { | |
5634 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
5635 | if (!SWIG_IsOK(ecode7)) { | |
5636 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'"); | |
5637 | } | |
5638 | arg7 = static_cast< long >(val7); | |
5639 | } | |
5640 | if (obj7) { | |
5641 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
5642 | if (!SWIG_IsOK(res8)) { | |
5643 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5644 | } | |
5645 | if (!argp8) { | |
5646 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5647 | } | |
5648 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
5649 | } | |
5650 | if (obj8) { | |
d55e5bfc | 5651 | { |
1bd55598 RD |
5652 | arg9 = wxString_in_helper(obj8); |
5653 | if (arg9 == NULL) SWIG_fail; | |
5654 | temp9 = true; | |
d55e5bfc | 5655 | } |
1bd55598 RD |
5656 | } |
5657 | { | |
5658 | if (!wxPyCheckForApp()) SWIG_fail; | |
5659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5660 | 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); | |
5661 | wxPyEndAllowThreads(__tstate); | |
5662 | if (PyErr_Occurred()) SWIG_fail; | |
5663 | } | |
5664 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 ); | |
5665 | { | |
5666 | if (temp3) | |
5667 | delete arg3; | |
5668 | } | |
5669 | { | |
5670 | if (temp6) delete arg6; | |
5671 | } | |
5672 | { | |
5673 | if (temp9) | |
5674 | delete arg9; | |
5675 | } | |
5676 | return resultobj; | |
5677 | fail: | |
5678 | { | |
5679 | if (temp3) | |
5680 | delete arg3; | |
5681 | } | |
5682 | { | |
5683 | if (temp6) delete arg6; | |
5684 | } | |
5685 | { | |
5686 | if (temp9) | |
5687 | delete arg9; | |
5688 | } | |
5689 | return NULL; | |
d55e5bfc RD |
5690 | } |
5691 | ||
5692 | ||
1bd55598 RD |
5693 | SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5694 | PyObject *resultobj = 0; | |
5695 | wxComboBox *result = 0 ; | |
5696 | ||
5697 | if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail; | |
5698 | { | |
5699 | if (!wxPyCheckForApp()) SWIG_fail; | |
5700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5701 | result = (wxComboBox *)new wxComboBox(); | |
5702 | wxPyEndAllowThreads(__tstate); | |
5703 | if (PyErr_Occurred()) SWIG_fail; | |
5704 | } | |
5705 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 ); | |
5706 | return resultobj; | |
5707 | fail: | |
5708 | return NULL; | |
5709 | } | |
5710 | ||
5711 | ||
5712 | SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5713 | PyObject *resultobj = 0; | |
5714 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5715 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5716 | int arg3 = (int) -1 ; | |
5717 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5718 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
5719 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
5720 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5721 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5722 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5723 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
5724 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
5725 | long arg8 = (long) 0 ; | |
5726 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
5727 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
5728 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
5729 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
5730 | bool result; | |
5731 | void *argp1 = 0 ; | |
5732 | int res1 = 0 ; | |
5733 | void *argp2 = 0 ; | |
5734 | int res2 = 0 ; | |
5735 | int val3 ; | |
5736 | int ecode3 = 0 ; | |
5737 | bool temp4 = false ; | |
5738 | wxPoint temp5 ; | |
5739 | wxSize temp6 ; | |
5740 | bool temp7 = false ; | |
5741 | long val8 ; | |
5742 | int ecode8 = 0 ; | |
5743 | void *argp9 = 0 ; | |
5744 | int res9 = 0 ; | |
5745 | bool temp10 = false ; | |
5746 | PyObject * obj0 = 0 ; | |
5747 | PyObject * obj1 = 0 ; | |
5748 | PyObject * obj2 = 0 ; | |
5749 | PyObject * obj3 = 0 ; | |
5750 | PyObject * obj4 = 0 ; | |
5751 | PyObject * obj5 = 0 ; | |
5752 | PyObject * obj6 = 0 ; | |
5753 | PyObject * obj7 = 0 ; | |
5754 | PyObject * obj8 = 0 ; | |
5755 | PyObject * obj9 = 0 ; | |
5756 | char * kwnames[] = { | |
5757 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5758 | }; | |
5759 | ||
5760 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
5761 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5762 | if (!SWIG_IsOK(res1)) { | |
5763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5764 | } | |
5765 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5766 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5767 | if (!SWIG_IsOK(res2)) { | |
5768 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5769 | } | |
5770 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5771 | if (obj2) { | |
5772 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5773 | if (!SWIG_IsOK(ecode3)) { | |
5774 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
5775 | } | |
5776 | arg3 = static_cast< int >(val3); | |
5777 | } | |
5778 | if (obj3) { | |
d55e5bfc | 5779 | { |
1bd55598 RD |
5780 | arg4 = wxString_in_helper(obj3); |
5781 | if (arg4 == NULL) SWIG_fail; | |
5782 | temp4 = true; | |
d55e5bfc | 5783 | } |
1bd55598 RD |
5784 | } |
5785 | if (obj4) { | |
d55e5bfc | 5786 | { |
1bd55598 RD |
5787 | arg5 = &temp5; |
5788 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 5789 | } |
1bd55598 RD |
5790 | } |
5791 | if (obj5) { | |
d55e5bfc | 5792 | { |
1bd55598 RD |
5793 | arg6 = &temp6; |
5794 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 5795 | } |
1bd55598 RD |
5796 | } |
5797 | if (obj6) { | |
d55e5bfc | 5798 | { |
1bd55598 RD |
5799 | if (! PySequence_Check(obj6)) { |
5800 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5801 | SWIG_fail; | |
5802 | } | |
5803 | arg7 = new wxArrayString; | |
5804 | temp7 = true; | |
5805 | int i, len=PySequence_Length(obj6); | |
5806 | for (i=0; i<len; i++) { | |
5807 | PyObject* item = PySequence_GetItem(obj6, i); | |
5808 | wxString* s = wxString_in_helper(item); | |
5809 | if (PyErr_Occurred()) SWIG_fail; | |
5810 | arg7->Add(*s); | |
5811 | delete s; | |
5812 | Py_DECREF(item); | |
5813 | } | |
d55e5bfc | 5814 | } |
1bd55598 RD |
5815 | } |
5816 | if (obj7) { | |
5817 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
5818 | if (!SWIG_IsOK(ecode8)) { | |
5819 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'"); | |
5820 | } | |
5821 | arg8 = static_cast< long >(val8); | |
5822 | } | |
5823 | if (obj8) { | |
5824 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
5825 | if (!SWIG_IsOK(res9)) { | |
5826 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 5827 | } |
1bd55598 RD |
5828 | if (!argp9) { |
5829 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 5830 | } |
1bd55598 RD |
5831 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
5832 | } | |
5833 | if (obj9) { | |
d55e5bfc | 5834 | { |
1bd55598 RD |
5835 | arg10 = wxString_in_helper(obj9); |
5836 | if (arg10 == NULL) SWIG_fail; | |
5837 | temp10 = true; | |
d55e5bfc | 5838 | } |
1bd55598 RD |
5839 | } |
5840 | { | |
5841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5842 | 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); | |
5843 | wxPyEndAllowThreads(__tstate); | |
5844 | if (PyErr_Occurred()) SWIG_fail; | |
5845 | } | |
5846 | { | |
5847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5848 | } | |
5849 | { | |
5850 | if (temp4) | |
5851 | delete arg4; | |
5852 | } | |
5853 | { | |
5854 | if (temp7) delete arg7; | |
5855 | } | |
5856 | { | |
5857 | if (temp10) | |
5858 | delete arg10; | |
5859 | } | |
5860 | return resultobj; | |
5861 | fail: | |
5862 | { | |
5863 | if (temp4) | |
5864 | delete arg4; | |
5865 | } | |
5866 | { | |
5867 | if (temp7) delete arg7; | |
5868 | } | |
5869 | { | |
5870 | if (temp10) | |
5871 | delete arg10; | |
5872 | } | |
5873 | return NULL; | |
d55e5bfc RD |
5874 | } |
5875 | ||
5876 | ||
1bd55598 RD |
5877 | SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5878 | PyObject *resultobj = 0; | |
5879 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5880 | wxString result; | |
5881 | void *argp1 = 0 ; | |
5882 | int res1 = 0 ; | |
5883 | PyObject *swig_obj[1] ; | |
5884 | ||
5885 | if (!args) SWIG_fail; | |
5886 | swig_obj[0] = args; | |
5887 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5888 | if (!SWIG_IsOK(res1)) { | |
5889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
5890 | } | |
5891 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5892 | { | |
5893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5894 | result = ((wxComboBox const *)arg1)->GetValue(); | |
5895 | wxPyEndAllowThreads(__tstate); | |
5896 | if (PyErr_Occurred()) SWIG_fail; | |
5897 | } | |
5898 | { | |
d55e5bfc | 5899 | #if wxUSE_UNICODE |
1bd55598 | 5900 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 5901 | #else |
1bd55598 | 5902 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 5903 | #endif |
1bd55598 RD |
5904 | } |
5905 | return resultobj; | |
5906 | fail: | |
5907 | return NULL; | |
5908 | } | |
5909 | ||
5910 | ||
5911 | SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5912 | PyObject *resultobj = 0; | |
5913 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5914 | wxString *arg2 = 0 ; | |
5915 | void *argp1 = 0 ; | |
5916 | int res1 = 0 ; | |
5917 | bool temp2 = false ; | |
5918 | PyObject * obj0 = 0 ; | |
5919 | PyObject * obj1 = 0 ; | |
5920 | char * kwnames[] = { | |
5921 | (char *) "self",(char *) "value", NULL | |
5922 | }; | |
5923 | ||
5924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
5925 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5926 | if (!SWIG_IsOK(res1)) { | |
5927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5928 | } | |
5929 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5930 | { | |
5931 | arg2 = wxString_in_helper(obj1); | |
5932 | if (arg2 == NULL) SWIG_fail; | |
5933 | temp2 = true; | |
5934 | } | |
5935 | { | |
5936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5937 | (arg1)->SetValue((wxString const &)*arg2); | |
5938 | wxPyEndAllowThreads(__tstate); | |
5939 | if (PyErr_Occurred()) SWIG_fail; | |
5940 | } | |
5941 | resultobj = SWIG_Py_Void(); | |
5942 | { | |
5943 | if (temp2) | |
5944 | delete arg2; | |
5945 | } | |
5946 | return resultobj; | |
5947 | fail: | |
5948 | { | |
5949 | if (temp2) | |
5950 | delete arg2; | |
5951 | } | |
5952 | return NULL; | |
d55e5bfc RD |
5953 | } |
5954 | ||
5955 | ||
1bd55598 RD |
5956 | SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5957 | PyObject *resultobj = 0; | |
5958 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5959 | void *argp1 = 0 ; | |
5960 | int res1 = 0 ; | |
5961 | PyObject *swig_obj[1] ; | |
5962 | ||
5963 | if (!args) SWIG_fail; | |
5964 | swig_obj[0] = args; | |
5965 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5966 | if (!SWIG_IsOK(res1)) { | |
5967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5968 | } | |
5969 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5970 | { | |
5971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5972 | (arg1)->Copy(); | |
5973 | wxPyEndAllowThreads(__tstate); | |
5974 | if (PyErr_Occurred()) SWIG_fail; | |
5975 | } | |
5976 | resultobj = SWIG_Py_Void(); | |
5977 | return resultobj; | |
5978 | fail: | |
5979 | return NULL; | |
d55e5bfc RD |
5980 | } |
5981 | ||
5982 | ||
1bd55598 RD |
5983 | SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5984 | PyObject *resultobj = 0; | |
5985 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5986 | void *argp1 = 0 ; | |
5987 | int res1 = 0 ; | |
5988 | PyObject *swig_obj[1] ; | |
5989 | ||
5990 | if (!args) SWIG_fail; | |
5991 | swig_obj[0] = args; | |
5992 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5993 | if (!SWIG_IsOK(res1)) { | |
5994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5995 | } | |
5996 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5997 | { | |
5998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5999 | (arg1)->Cut(); | |
6000 | wxPyEndAllowThreads(__tstate); | |
6001 | if (PyErr_Occurred()) SWIG_fail; | |
6002 | } | |
6003 | resultobj = SWIG_Py_Void(); | |
6004 | return resultobj; | |
6005 | fail: | |
6006 | return NULL; | |
d55e5bfc RD |
6007 | } |
6008 | ||
6009 | ||
1bd55598 RD |
6010 | SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6011 | PyObject *resultobj = 0; | |
6012 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6013 | void *argp1 = 0 ; | |
6014 | int res1 = 0 ; | |
6015 | PyObject *swig_obj[1] ; | |
6016 | ||
6017 | if (!args) SWIG_fail; | |
6018 | swig_obj[0] = args; | |
6019 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6020 | if (!SWIG_IsOK(res1)) { | |
6021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6022 | } | |
6023 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6024 | { | |
6025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6026 | (arg1)->Paste(); | |
6027 | wxPyEndAllowThreads(__tstate); | |
6028 | if (PyErr_Occurred()) SWIG_fail; | |
6029 | } | |
6030 | resultobj = SWIG_Py_Void(); | |
6031 | return resultobj; | |
6032 | fail: | |
6033 | return NULL; | |
6034 | } | |
6035 | ||
6036 | ||
6037 | SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6038 | PyObject *resultobj = 0; | |
6039 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6040 | long arg2 ; | |
6041 | void *argp1 = 0 ; | |
6042 | int res1 = 0 ; | |
6043 | long val2 ; | |
6044 | int ecode2 = 0 ; | |
6045 | PyObject * obj0 = 0 ; | |
6046 | PyObject * obj1 = 0 ; | |
6047 | char * kwnames[] = { | |
6048 | (char *) "self",(char *) "pos", NULL | |
6049 | }; | |
6050 | ||
6051 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
6052 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6053 | if (!SWIG_IsOK(res1)) { | |
6054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6055 | } | |
6056 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6057 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6058 | if (!SWIG_IsOK(ecode2)) { | |
6059 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
6060 | } | |
6061 | arg2 = static_cast< long >(val2); | |
6062 | { | |
6063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6064 | (arg1)->SetInsertionPoint(arg2); | |
6065 | wxPyEndAllowThreads(__tstate); | |
6066 | if (PyErr_Occurred()) SWIG_fail; | |
6067 | } | |
6068 | resultobj = SWIG_Py_Void(); | |
6069 | return resultobj; | |
6070 | fail: | |
6071 | return NULL; | |
d55e5bfc RD |
6072 | } |
6073 | ||
6074 | ||
1bd55598 RD |
6075 | SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6076 | PyObject *resultobj = 0; | |
6077 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6078 | long result; | |
6079 | void *argp1 = 0 ; | |
6080 | int res1 = 0 ; | |
6081 | PyObject *swig_obj[1] ; | |
6082 | ||
6083 | if (!args) SWIG_fail; | |
6084 | swig_obj[0] = args; | |
6085 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6086 | if (!SWIG_IsOK(res1)) { | |
6087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6088 | } | |
6089 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6090 | { | |
6091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6092 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
6093 | wxPyEndAllowThreads(__tstate); | |
6094 | if (PyErr_Occurred()) SWIG_fail; | |
6095 | } | |
6096 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6097 | return resultobj; | |
6098 | fail: | |
6099 | return NULL; | |
d55e5bfc RD |
6100 | } |
6101 | ||
6102 | ||
1bd55598 RD |
6103 | SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6104 | PyObject *resultobj = 0; | |
6105 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6106 | long result; | |
6107 | void *argp1 = 0 ; | |
6108 | int res1 = 0 ; | |
6109 | PyObject *swig_obj[1] ; | |
6110 | ||
6111 | if (!args) SWIG_fail; | |
6112 | swig_obj[0] = args; | |
6113 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6114 | if (!SWIG_IsOK(res1)) { | |
6115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6116 | } | |
6117 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6118 | { | |
6119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6120 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
6121 | wxPyEndAllowThreads(__tstate); | |
6122 | if (PyErr_Occurred()) SWIG_fail; | |
6123 | } | |
6124 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6125 | return resultobj; | |
6126 | fail: | |
6127 | return NULL; | |
6128 | } | |
6129 | ||
6130 | ||
6131 | SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6132 | PyObject *resultobj = 0; | |
6133 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6134 | long arg2 ; | |
6135 | long arg3 ; | |
6136 | wxString *arg4 = 0 ; | |
6137 | void *argp1 = 0 ; | |
6138 | int res1 = 0 ; | |
6139 | long val2 ; | |
6140 | int ecode2 = 0 ; | |
6141 | long val3 ; | |
6142 | int ecode3 = 0 ; | |
6143 | bool temp4 = false ; | |
6144 | PyObject * obj0 = 0 ; | |
6145 | PyObject * obj1 = 0 ; | |
6146 | PyObject * obj2 = 0 ; | |
6147 | PyObject * obj3 = 0 ; | |
6148 | char * kwnames[] = { | |
2131d850 | 6149 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL |
1bd55598 RD |
6150 | }; |
6151 | ||
6152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6153 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6154 | if (!SWIG_IsOK(res1)) { | |
6155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6156 | } | |
6157 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6158 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6159 | if (!SWIG_IsOK(ecode2)) { | |
6160 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'"); | |
6161 | } | |
6162 | arg2 = static_cast< long >(val2); | |
6163 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6164 | if (!SWIG_IsOK(ecode3)) { | |
6165 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'"); | |
6166 | } | |
6167 | arg3 = static_cast< long >(val3); | |
6168 | { | |
6169 | arg4 = wxString_in_helper(obj3); | |
6170 | if (arg4 == NULL) SWIG_fail; | |
6171 | temp4 = true; | |
6172 | } | |
6173 | { | |
6174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6175 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
6176 | wxPyEndAllowThreads(__tstate); | |
6177 | if (PyErr_Occurred()) SWIG_fail; | |
6178 | } | |
6179 | resultobj = SWIG_Py_Void(); | |
6180 | { | |
6181 | if (temp4) | |
6182 | delete arg4; | |
6183 | } | |
6184 | return resultobj; | |
6185 | fail: | |
6186 | { | |
6187 | if (temp4) | |
6188 | delete arg4; | |
6189 | } | |
6190 | return NULL; | |
6191 | } | |
6192 | ||
6193 | ||
6194 | SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6195 | PyObject *resultobj = 0; | |
6196 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6197 | long arg2 ; | |
6198 | long arg3 ; | |
6199 | void *argp1 = 0 ; | |
6200 | int res1 = 0 ; | |
6201 | long val2 ; | |
6202 | int ecode2 = 0 ; | |
6203 | long val3 ; | |
6204 | int ecode3 = 0 ; | |
6205 | PyObject * obj0 = 0 ; | |
6206 | PyObject * obj1 = 0 ; | |
6207 | PyObject * obj2 = 0 ; | |
6208 | char * kwnames[] = { | |
2131d850 | 6209 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
6210 | }; |
6211 | ||
6212 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6213 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6214 | if (!SWIG_IsOK(res1)) { | |
6215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6216 | } | |
6217 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6218 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6219 | if (!SWIG_IsOK(ecode2)) { | |
6220 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'"); | |
6221 | } | |
6222 | arg2 = static_cast< long >(val2); | |
6223 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6224 | if (!SWIG_IsOK(ecode3)) { | |
6225 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'"); | |
6226 | } | |
6227 | arg3 = static_cast< long >(val3); | |
6228 | { | |
6229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6230 | (arg1)->SetSelection(arg2,arg3); | |
6231 | wxPyEndAllowThreads(__tstate); | |
6232 | if (PyErr_Occurred()) SWIG_fail; | |
6233 | } | |
6234 | resultobj = SWIG_Py_Void(); | |
6235 | return resultobj; | |
6236 | fail: | |
6237 | return NULL; | |
d55e5bfc RD |
6238 | } |
6239 | ||
6240 | ||
1bd55598 RD |
6241 | SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6242 | PyObject *resultobj = 0; | |
6243 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6244 | int result; | |
6245 | void *argp1 = 0 ; | |
6246 | int res1 = 0 ; | |
6247 | PyObject *swig_obj[1] ; | |
6248 | ||
6249 | if (!args) SWIG_fail; | |
6250 | swig_obj[0] = args; | |
6251 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6252 | if (!SWIG_IsOK(res1)) { | |
6253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6254 | } | |
6255 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6256 | { | |
6257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6258 | result = (int)((wxComboBox const *)arg1)->GetCurrentSelection(); | |
6259 | wxPyEndAllowThreads(__tstate); | |
6260 | if (PyErr_Occurred()) SWIG_fail; | |
6261 | } | |
6262 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6263 | return resultobj; | |
6264 | fail: | |
6265 | return NULL; | |
6266 | } | |
6267 | ||
6268 | ||
6269 | SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6270 | PyObject *resultobj = 0; | |
6271 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6272 | wxString *arg2 = 0 ; | |
6273 | bool result; | |
6274 | void *argp1 = 0 ; | |
6275 | int res1 = 0 ; | |
6276 | bool temp2 = false ; | |
6277 | PyObject * obj0 = 0 ; | |
6278 | PyObject * obj1 = 0 ; | |
6279 | char * kwnames[] = { | |
6280 | (char *) "self",(char *) "string", NULL | |
6281 | }; | |
6282 | ||
6283 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
6284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6285 | if (!SWIG_IsOK(res1)) { | |
6286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6287 | } | |
6288 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6289 | { | |
6290 | arg2 = wxString_in_helper(obj1); | |
6291 | if (arg2 == NULL) SWIG_fail; | |
6292 | temp2 = true; | |
6293 | } | |
6294 | { | |
6295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6296 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
6297 | wxPyEndAllowThreads(__tstate); | |
6298 | if (PyErr_Occurred()) SWIG_fail; | |
6299 | } | |
6300 | { | |
6301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6302 | } | |
6303 | { | |
6304 | if (temp2) | |
6305 | delete arg2; | |
6306 | } | |
6307 | return resultobj; | |
6308 | fail: | |
6309 | { | |
6310 | if (temp2) | |
6311 | delete arg2; | |
6312 | } | |
6313 | return NULL; | |
6314 | } | |
6315 | ||
6316 | ||
6317 | SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6318 | PyObject *resultobj = 0; | |
6319 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6320 | bool arg2 ; | |
6321 | void *argp1 = 0 ; | |
6322 | int res1 = 0 ; | |
6323 | bool val2 ; | |
6324 | int ecode2 = 0 ; | |
6325 | PyObject * obj0 = 0 ; | |
6326 | PyObject * obj1 = 0 ; | |
6327 | char * kwnames[] = { | |
6328 | (char *) "self",(char *) "editable", NULL | |
6329 | }; | |
6330 | ||
6331 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail; | |
6332 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6333 | if (!SWIG_IsOK(res1)) { | |
6334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6335 | } | |
6336 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6337 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
6338 | if (!SWIG_IsOK(ecode2)) { | |
6339 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'"); | |
6340 | } | |
6341 | arg2 = static_cast< bool >(val2); | |
6342 | { | |
6343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6344 | (arg1)->SetEditable(arg2); | |
6345 | wxPyEndAllowThreads(__tstate); | |
6346 | if (PyErr_Occurred()) SWIG_fail; | |
6347 | } | |
6348 | resultobj = SWIG_Py_Void(); | |
6349 | return resultobj; | |
6350 | fail: | |
6351 | return NULL; | |
d55e5bfc RD |
6352 | } |
6353 | ||
6354 | ||
1bd55598 RD |
6355 | SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6356 | PyObject *resultobj = 0; | |
6357 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6358 | void *argp1 = 0 ; | |
6359 | int res1 = 0 ; | |
6360 | PyObject *swig_obj[1] ; | |
6361 | ||
6362 | if (!args) SWIG_fail; | |
6363 | swig_obj[0] = args; | |
6364 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6365 | if (!SWIG_IsOK(res1)) { | |
6366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6367 | } | |
6368 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6369 | { | |
6370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6371 | (arg1)->SetInsertionPointEnd(); | |
6372 | wxPyEndAllowThreads(__tstate); | |
6373 | if (PyErr_Occurred()) SWIG_fail; | |
6374 | } | |
6375 | resultobj = SWIG_Py_Void(); | |
6376 | return resultobj; | |
6377 | fail: | |
6378 | return NULL; | |
6379 | } | |
6380 | ||
6381 | ||
6382 | SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6383 | PyObject *resultobj = 0; | |
6384 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6385 | long arg2 ; | |
6386 | long arg3 ; | |
6387 | void *argp1 = 0 ; | |
6388 | int res1 = 0 ; | |
6389 | long val2 ; | |
6390 | int ecode2 = 0 ; | |
6391 | long val3 ; | |
6392 | int ecode3 = 0 ; | |
6393 | PyObject * obj0 = 0 ; | |
6394 | PyObject * obj1 = 0 ; | |
6395 | PyObject * obj2 = 0 ; | |
6396 | char * kwnames[] = { | |
2131d850 | 6397 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
6398 | }; |
6399 | ||
6400 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6401 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6402 | if (!SWIG_IsOK(res1)) { | |
6403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6404 | } | |
6405 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6406 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6407 | if (!SWIG_IsOK(ecode2)) { | |
6408 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'"); | |
6409 | } | |
6410 | arg2 = static_cast< long >(val2); | |
6411 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6412 | if (!SWIG_IsOK(ecode3)) { | |
6413 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'"); | |
6414 | } | |
6415 | arg3 = static_cast< long >(val3); | |
6416 | { | |
6417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6418 | (arg1)->Remove(arg2,arg3); | |
6419 | wxPyEndAllowThreads(__tstate); | |
6420 | if (PyErr_Occurred()) SWIG_fail; | |
6421 | } | |
6422 | resultobj = SWIG_Py_Void(); | |
6423 | return resultobj; | |
6424 | fail: | |
6425 | return NULL; | |
d55e5bfc RD |
6426 | } |
6427 | ||
6428 | ||
1bd55598 RD |
6429 | SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6430 | PyObject *resultobj = 0; | |
6431 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6432 | bool result; | |
6433 | void *argp1 = 0 ; | |
6434 | int res1 = 0 ; | |
6435 | PyObject *swig_obj[1] ; | |
6436 | ||
6437 | if (!args) SWIG_fail; | |
6438 | swig_obj[0] = args; | |
6439 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6440 | if (!SWIG_IsOK(res1)) { | |
6441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6442 | } | |
6443 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6444 | { | |
6445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6446 | result = (bool)((wxComboBox const *)arg1)->IsEditable(); | |
6447 | wxPyEndAllowThreads(__tstate); | |
6448 | if (PyErr_Occurred()) SWIG_fail; | |
6449 | } | |
6450 | { | |
6451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6452 | } | |
6453 | return resultobj; | |
6454 | fail: | |
6455 | return NULL; | |
d55e5bfc RD |
6456 | } |
6457 | ||
6458 | ||
1bd55598 RD |
6459 | SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6460 | PyObject *resultobj = 0; | |
6461 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6462 | void *argp1 = 0 ; | |
6463 | int res1 = 0 ; | |
6464 | PyObject *swig_obj[1] ; | |
6465 | ||
6466 | if (!args) SWIG_fail; | |
6467 | swig_obj[0] = args; | |
6468 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6469 | if (!SWIG_IsOK(res1)) { | |
6470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6471 | } | |
6472 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6473 | { | |
6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6475 | (arg1)->Undo(); | |
6476 | wxPyEndAllowThreads(__tstate); | |
6477 | if (PyErr_Occurred()) SWIG_fail; | |
6478 | } | |
6479 | resultobj = SWIG_Py_Void(); | |
6480 | return resultobj; | |
6481 | fail: | |
6482 | return NULL; | |
d55e5bfc RD |
6483 | } |
6484 | ||
6485 | ||
1bd55598 RD |
6486 | SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6487 | PyObject *resultobj = 0; | |
6488 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6489 | void *argp1 = 0 ; | |
6490 | int res1 = 0 ; | |
6491 | PyObject *swig_obj[1] ; | |
6492 | ||
6493 | if (!args) SWIG_fail; | |
6494 | swig_obj[0] = args; | |
6495 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6496 | if (!SWIG_IsOK(res1)) { | |
6497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6498 | } | |
6499 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6500 | { | |
6501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6502 | (arg1)->Redo(); | |
6503 | wxPyEndAllowThreads(__tstate); | |
6504 | if (PyErr_Occurred()) SWIG_fail; | |
6505 | } | |
6506 | resultobj = SWIG_Py_Void(); | |
6507 | return resultobj; | |
6508 | fail: | |
6509 | return NULL; | |
d55e5bfc RD |
6510 | } |
6511 | ||
6512 | ||
1bd55598 RD |
6513 | SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6514 | PyObject *resultobj = 0; | |
6515 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6516 | void *argp1 = 0 ; | |
6517 | int res1 = 0 ; | |
6518 | PyObject *swig_obj[1] ; | |
6519 | ||
6520 | if (!args) SWIG_fail; | |
6521 | swig_obj[0] = args; | |
6522 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6523 | if (!SWIG_IsOK(res1)) { | |
6524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6525 | } | |
6526 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6527 | { | |
6528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6529 | (arg1)->SelectAll(); | |
6530 | wxPyEndAllowThreads(__tstate); | |
6531 | if (PyErr_Occurred()) SWIG_fail; | |
6532 | } | |
6533 | resultobj = SWIG_Py_Void(); | |
6534 | return resultobj; | |
6535 | fail: | |
6536 | return NULL; | |
943e8dfd RD |
6537 | } |
6538 | ||
6539 | ||
1bd55598 RD |
6540 | SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6541 | PyObject *resultobj = 0; | |
6542 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6543 | bool result; | |
6544 | void *argp1 = 0 ; | |
6545 | int res1 = 0 ; | |
6546 | PyObject *swig_obj[1] ; | |
6547 | ||
6548 | if (!args) SWIG_fail; | |
6549 | swig_obj[0] = args; | |
6550 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6551 | if (!SWIG_IsOK(res1)) { | |
6552 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6553 | } | |
6554 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6555 | { | |
6556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6557 | result = (bool)((wxComboBox const *)arg1)->CanCopy(); | |
6558 | wxPyEndAllowThreads(__tstate); | |
6559 | if (PyErr_Occurred()) SWIG_fail; | |
6560 | } | |
6561 | { | |
6562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6563 | } | |
6564 | return resultobj; | |
6565 | fail: | |
6566 | return NULL; | |
121b9a67 RD |
6567 | } |
6568 | ||
6569 | ||
1bd55598 RD |
6570 | SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6571 | PyObject *resultobj = 0; | |
6572 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6573 | bool result; | |
6574 | void *argp1 = 0 ; | |
6575 | int res1 = 0 ; | |
6576 | PyObject *swig_obj[1] ; | |
6577 | ||
6578 | if (!args) SWIG_fail; | |
6579 | swig_obj[0] = args; | |
6580 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6581 | if (!SWIG_IsOK(res1)) { | |
6582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6583 | } | |
6584 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6585 | { | |
6586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6587 | result = (bool)((wxComboBox const *)arg1)->CanCut(); | |
6588 | wxPyEndAllowThreads(__tstate); | |
6589 | if (PyErr_Occurred()) SWIG_fail; | |
6590 | } | |
6591 | { | |
6592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6593 | } | |
6594 | return resultobj; | |
6595 | fail: | |
6596 | return NULL; | |
121b9a67 RD |
6597 | } |
6598 | ||
6599 | ||
1bd55598 RD |
6600 | SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6601 | PyObject *resultobj = 0; | |
6602 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6603 | bool result; | |
6604 | void *argp1 = 0 ; | |
6605 | int res1 = 0 ; | |
6606 | PyObject *swig_obj[1] ; | |
6607 | ||
6608 | if (!args) SWIG_fail; | |
6609 | swig_obj[0] = args; | |
6610 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6611 | if (!SWIG_IsOK(res1)) { | |
6612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6613 | } | |
6614 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6615 | { | |
6616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6617 | result = (bool)((wxComboBox const *)arg1)->CanPaste(); | |
6618 | wxPyEndAllowThreads(__tstate); | |
6619 | if (PyErr_Occurred()) SWIG_fail; | |
6620 | } | |
6621 | { | |
6622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6623 | } | |
6624 | return resultobj; | |
6625 | fail: | |
6626 | return NULL; | |
d55e5bfc RD |
6627 | } |
6628 | ||
6629 | ||
1bd55598 RD |
6630 | SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6631 | PyObject *resultobj = 0; | |
6632 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6633 | bool result; | |
6634 | void *argp1 = 0 ; | |
6635 | int res1 = 0 ; | |
6636 | PyObject *swig_obj[1] ; | |
6637 | ||
6638 | if (!args) SWIG_fail; | |
6639 | swig_obj[0] = args; | |
6640 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6641 | if (!SWIG_IsOK(res1)) { | |
6642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6643 | } | |
6644 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6645 | { | |
6646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6647 | result = (bool)((wxComboBox const *)arg1)->CanUndo(); | |
6648 | wxPyEndAllowThreads(__tstate); | |
6649 | if (PyErr_Occurred()) SWIG_fail; | |
6650 | } | |
6651 | { | |
6652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6653 | } | |
6654 | return resultobj; | |
6655 | fail: | |
6656 | return NULL; | |
d55e5bfc RD |
6657 | } |
6658 | ||
6659 | ||
1bd55598 RD |
6660 | SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6661 | PyObject *resultobj = 0; | |
6662 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6663 | bool result; | |
6664 | void *argp1 = 0 ; | |
6665 | int res1 = 0 ; | |
6666 | PyObject *swig_obj[1] ; | |
6667 | ||
6668 | if (!args) SWIG_fail; | |
6669 | swig_obj[0] = args; | |
6670 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6671 | if (!SWIG_IsOK(res1)) { | |
6672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6673 | } | |
6674 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6675 | { | |
6676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6677 | result = (bool)((wxComboBox const *)arg1)->CanRedo(); | |
6678 | wxPyEndAllowThreads(__tstate); | |
6679 | if (PyErr_Occurred()) SWIG_fail; | |
6680 | } | |
6681 | { | |
6682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6683 | } | |
6684 | return resultobj; | |
6685 | fail: | |
6686 | return NULL; | |
d55e5bfc RD |
6687 | } |
6688 | ||
6689 | ||
1bd55598 RD |
6690 | SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6691 | PyObject *resultobj = 0; | |
6692 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
6693 | SwigValueWrapper<wxVisualAttributes > result; | |
6694 | int val1 ; | |
6695 | int ecode1 = 0 ; | |
6696 | PyObject * obj0 = 0 ; | |
6697 | char * kwnames[] = { | |
6698 | (char *) "variant", NULL | |
6699 | }; | |
6700 | ||
6701 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
6702 | if (obj0) { | |
6703 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6704 | if (!SWIG_IsOK(ecode1)) { | |
6705 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
6706 | } | |
6707 | arg1 = static_cast< wxWindowVariant >(val1); | |
6708 | } | |
6709 | { | |
6710 | if (!wxPyCheckForApp()) SWIG_fail; | |
6711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6712 | result = wxComboBox::GetClassDefaultAttributes(arg1); | |
6713 | wxPyEndAllowThreads(__tstate); | |
6714 | if (PyErr_Occurred()) SWIG_fail; | |
6715 | } | |
6716 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
6717 | return resultobj; | |
6718 | fail: | |
6719 | return NULL; | |
5cbf236d RD |
6720 | } |
6721 | ||
6722 | ||
1bd55598 RD |
6723 | SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6724 | PyObject *obj; | |
6725 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6726 | SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj)); | |
6727 | return SWIG_Py_Void(); | |
5cbf236d RD |
6728 | } |
6729 | ||
1bd55598 RD |
6730 | SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6731 | return SWIG_Python_InitShadowInstance(args); | |
5cbf236d RD |
6732 | } |
6733 | ||
1bd55598 RD |
6734 | SWIGINTERN int GaugeNameStr_set(PyObject *) { |
6735 | SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only."); | |
6736 | return 1; | |
5cbf236d RD |
6737 | } |
6738 | ||
6739 | ||
1bd55598 RD |
6740 | SWIGINTERN PyObject *GaugeNameStr_get(void) { |
6741 | PyObject *pyobj = 0; | |
6742 | ||
6743 | { | |
6744 | #if wxUSE_UNICODE | |
6745 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
6746 | #else | |
6747 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
6748 | #endif | |
6749 | } | |
6750 | return pyobj; | |
6751 | } | |
6752 | ||
6753 | ||
6754 | SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6755 | PyObject *resultobj = 0; | |
6756 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6757 | int arg2 = (int) -1 ; | |
6758 | int arg3 = (int) 100 ; | |
6759 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6760 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6761 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6762 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6763 | long arg6 = (long) wxGA_HORIZONTAL ; | |
6764 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6765 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6766 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
6767 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6768 | wxGauge *result = 0 ; | |
6769 | void *argp1 = 0 ; | |
6770 | int res1 = 0 ; | |
6771 | int val2 ; | |
6772 | int ecode2 = 0 ; | |
6773 | int val3 ; | |
6774 | int ecode3 = 0 ; | |
6775 | wxPoint temp4 ; | |
6776 | wxSize temp5 ; | |
6777 | long val6 ; | |
6778 | int ecode6 = 0 ; | |
6779 | void *argp7 = 0 ; | |
6780 | int res7 = 0 ; | |
6781 | bool temp8 = false ; | |
6782 | PyObject * obj0 = 0 ; | |
6783 | PyObject * obj1 = 0 ; | |
6784 | PyObject * obj2 = 0 ; | |
6785 | PyObject * obj3 = 0 ; | |
6786 | PyObject * obj4 = 0 ; | |
6787 | PyObject * obj5 = 0 ; | |
6788 | PyObject * obj6 = 0 ; | |
6789 | PyObject * obj7 = 0 ; | |
6790 | char * kwnames[] = { | |
6791 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6792 | }; | |
6793 | ||
6794 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
6795 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6796 | if (!SWIG_IsOK(res1)) { | |
6797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
6798 | } | |
6799 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
6800 | if (obj1) { | |
6801 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6802 | if (!SWIG_IsOK(ecode2)) { | |
6803 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'"); | |
6804 | } | |
6805 | arg2 = static_cast< int >(val2); | |
6806 | } | |
6807 | if (obj2) { | |
6808 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6809 | if (!SWIG_IsOK(ecode3)) { | |
6810 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'"); | |
6811 | } | |
6812 | arg3 = static_cast< int >(val3); | |
6813 | } | |
6814 | if (obj3) { | |
5cbf236d | 6815 | { |
1bd55598 RD |
6816 | arg4 = &temp4; |
6817 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5cbf236d | 6818 | } |
1bd55598 RD |
6819 | } |
6820 | if (obj4) { | |
5cbf236d | 6821 | { |
1bd55598 RD |
6822 | arg5 = &temp5; |
6823 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5cbf236d | 6824 | } |
1bd55598 RD |
6825 | } |
6826 | if (obj5) { | |
6827 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
6828 | if (!SWIG_IsOK(ecode6)) { | |
6829 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'"); | |
6830 | } | |
6831 | arg6 = static_cast< long >(val6); | |
6832 | } | |
6833 | if (obj6) { | |
6834 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
6835 | if (!SWIG_IsOK(res7)) { | |
6836 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
6837 | } | |
6838 | if (!argp7) { | |
6839 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
5cbf236d | 6840 | } |
1bd55598 RD |
6841 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
6842 | } | |
6843 | if (obj7) { | |
5cbf236d | 6844 | { |
1bd55598 RD |
6845 | arg8 = wxString_in_helper(obj7); |
6846 | if (arg8 == NULL) SWIG_fail; | |
6847 | temp8 = true; | |
5cbf236d | 6848 | } |
1bd55598 RD |
6849 | } |
6850 | { | |
6851 | if (!wxPyCheckForApp()) SWIG_fail; | |
6852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6853 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6854 | wxPyEndAllowThreads(__tstate); | |
6855 | if (PyErr_Occurred()) SWIG_fail; | |
6856 | } | |
6857 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 ); | |
6858 | { | |
6859 | if (temp8) | |
6860 | delete arg8; | |
6861 | } | |
6862 | return resultobj; | |
6863 | fail: | |
6864 | { | |
6865 | if (temp8) | |
6866 | delete arg8; | |
6867 | } | |
6868 | return NULL; | |
5cbf236d RD |
6869 | } |
6870 | ||
6871 | ||
1bd55598 RD |
6872 | SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6873 | PyObject *resultobj = 0; | |
6874 | wxGauge *result = 0 ; | |
6875 | ||
6876 | if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail; | |
6877 | { | |
6878 | if (!wxPyCheckForApp()) SWIG_fail; | |
6879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6880 | result = (wxGauge *)new wxGauge(); | |
6881 | wxPyEndAllowThreads(__tstate); | |
6882 | if (PyErr_Occurred()) SWIG_fail; | |
6883 | } | |
6884 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 ); | |
6885 | return resultobj; | |
6886 | fail: | |
6887 | return NULL; | |
6888 | } | |
6889 | ||
6890 | ||
6891 | SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6892 | PyObject *resultobj = 0; | |
6893 | wxGauge *arg1 = (wxGauge *) 0 ; | |
6894 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6895 | int arg3 = (int) -1 ; | |
6896 | int arg4 = (int) 100 ; | |
6897 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6898 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6899 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6900 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6901 | long arg7 = (long) wxGA_HORIZONTAL ; | |
6902 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6903 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6904 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
6905 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6906 | bool result; | |
6907 | void *argp1 = 0 ; | |
6908 | int res1 = 0 ; | |
6909 | void *argp2 = 0 ; | |
6910 | int res2 = 0 ; | |
6911 | int val3 ; | |
6912 | int ecode3 = 0 ; | |
6913 | int val4 ; | |
6914 | int ecode4 = 0 ; | |
6915 | wxPoint temp5 ; | |
6916 | wxSize temp6 ; | |
6917 | long val7 ; | |
6918 | int ecode7 = 0 ; | |
6919 | void *argp8 = 0 ; | |
6920 | int res8 = 0 ; | |
6921 | bool temp9 = false ; | |
6922 | PyObject * obj0 = 0 ; | |
6923 | PyObject * obj1 = 0 ; | |
6924 | PyObject * obj2 = 0 ; | |
6925 | PyObject * obj3 = 0 ; | |
6926 | PyObject * obj4 = 0 ; | |
6927 | PyObject * obj5 = 0 ; | |
6928 | PyObject * obj6 = 0 ; | |
6929 | PyObject * obj7 = 0 ; | |
6930 | PyObject * obj8 = 0 ; | |
6931 | char * kwnames[] = { | |
6932 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6933 | }; | |
6934 | ||
6935 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
6936 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
6937 | if (!SWIG_IsOK(res1)) { | |
6938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
6939 | } | |
6940 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
6941 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6942 | if (!SWIG_IsOK(res2)) { | |
6943 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6944 | } | |
6945 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6946 | if (obj2) { | |
6947 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6948 | if (!SWIG_IsOK(ecode3)) { | |
6949 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'"); | |
6950 | } | |
6951 | arg3 = static_cast< int >(val3); | |
6952 | } | |
6953 | if (obj3) { | |
6954 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6955 | if (!SWIG_IsOK(ecode4)) { | |
6956 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'"); | |
6957 | } | |
6958 | arg4 = static_cast< int >(val4); | |
6959 | } | |
6960 | if (obj4) { | |
5cbf236d | 6961 | { |
1bd55598 RD |
6962 | arg5 = &temp5; |
6963 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5cbf236d | 6964 | } |
1bd55598 RD |
6965 | } |
6966 | if (obj5) { | |
5cbf236d | 6967 | { |
1bd55598 RD |
6968 | arg6 = &temp6; |
6969 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5cbf236d | 6970 | } |
1bd55598 RD |
6971 | } |
6972 | if (obj6) { | |
6973 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
6974 | if (!SWIG_IsOK(ecode7)) { | |
6975 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'"); | |
6976 | } | |
6977 | arg7 = static_cast< long >(val7); | |
6978 | } | |
6979 | if (obj7) { | |
6980 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
6981 | if (!SWIG_IsOK(res8)) { | |
6982 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5cbf236d | 6983 | } |
1bd55598 RD |
6984 | if (!argp8) { |
6985 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
6986 | } | |
6987 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
6988 | } | |
6989 | if (obj8) { | |
5cbf236d | 6990 | { |
1bd55598 RD |
6991 | arg9 = wxString_in_helper(obj8); |
6992 | if (arg9 == NULL) SWIG_fail; | |
6993 | temp9 = true; | |
5cbf236d | 6994 | } |
1bd55598 RD |
6995 | } |
6996 | { | |
6997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6998 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
6999 | wxPyEndAllowThreads(__tstate); | |
7000 | if (PyErr_Occurred()) SWIG_fail; | |
7001 | } | |
7002 | { | |
7003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7004 | } | |
7005 | { | |
7006 | if (temp9) | |
7007 | delete arg9; | |
7008 | } | |
7009 | return resultobj; | |
7010 | fail: | |
7011 | { | |
7012 | if (temp9) | |
7013 | delete arg9; | |
7014 | } | |
7015 | return NULL; | |
7016 | } | |
7017 | ||
7018 | ||
7019 | SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7020 | PyObject *resultobj = 0; | |
7021 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7022 | int arg2 ; | |
7023 | void *argp1 = 0 ; | |
7024 | int res1 = 0 ; | |
7025 | int val2 ; | |
7026 | int ecode2 = 0 ; | |
7027 | PyObject * obj0 = 0 ; | |
7028 | PyObject * obj1 = 0 ; | |
7029 | char * kwnames[] = { | |
7030 | (char *) "self",(char *) "range", NULL | |
7031 | }; | |
7032 | ||
7033 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
7034 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7035 | if (!SWIG_IsOK(res1)) { | |
7036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7037 | } | |
7038 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7039 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7040 | if (!SWIG_IsOK(ecode2)) { | |
7041 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
7042 | } | |
7043 | arg2 = static_cast< int >(val2); | |
7044 | { | |
7045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7046 | (arg1)->SetRange(arg2); | |
7047 | wxPyEndAllowThreads(__tstate); | |
7048 | if (PyErr_Occurred()) SWIG_fail; | |
7049 | } | |
7050 | resultobj = SWIG_Py_Void(); | |
7051 | return resultobj; | |
7052 | fail: | |
7053 | return NULL; | |
5cbf236d RD |
7054 | } |
7055 | ||
7056 | ||
1bd55598 RD |
7057 | SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7058 | PyObject *resultobj = 0; | |
7059 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7060 | int result; | |
7061 | void *argp1 = 0 ; | |
7062 | int res1 = 0 ; | |
7063 | PyObject *swig_obj[1] ; | |
7064 | ||
7065 | if (!args) SWIG_fail; | |
7066 | swig_obj[0] = args; | |
7067 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7068 | if (!SWIG_IsOK(res1)) { | |
7069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7070 | } | |
7071 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7072 | { | |
7073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7074 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
7075 | wxPyEndAllowThreads(__tstate); | |
7076 | if (PyErr_Occurred()) SWIG_fail; | |
7077 | } | |
7078 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7079 | return resultobj; | |
7080 | fail: | |
7081 | return NULL; | |
7082 | } | |
7083 | ||
7084 | ||
7085 | SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7086 | PyObject *resultobj = 0; | |
7087 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7088 | int arg2 ; | |
7089 | void *argp1 = 0 ; | |
7090 | int res1 = 0 ; | |
7091 | int val2 ; | |
7092 | int ecode2 = 0 ; | |
7093 | PyObject * obj0 = 0 ; | |
7094 | PyObject * obj1 = 0 ; | |
7095 | char * kwnames[] = { | |
7096 | (char *) "self",(char *) "pos", NULL | |
7097 | }; | |
7098 | ||
7099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
7100 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7101 | if (!SWIG_IsOK(res1)) { | |
7102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7103 | } | |
7104 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7105 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7106 | if (!SWIG_IsOK(ecode2)) { | |
7107 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
7108 | } | |
7109 | arg2 = static_cast< int >(val2); | |
7110 | { | |
7111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7112 | (arg1)->SetValue(arg2); | |
7113 | wxPyEndAllowThreads(__tstate); | |
7114 | if (PyErr_Occurred()) SWIG_fail; | |
7115 | } | |
7116 | resultobj = SWIG_Py_Void(); | |
7117 | return resultobj; | |
7118 | fail: | |
7119 | return NULL; | |
5cbf236d RD |
7120 | } |
7121 | ||
7122 | ||
1bd55598 RD |
7123 | SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7124 | PyObject *resultobj = 0; | |
7125 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7126 | int result; | |
7127 | void *argp1 = 0 ; | |
7128 | int res1 = 0 ; | |
7129 | PyObject *swig_obj[1] ; | |
7130 | ||
7131 | if (!args) SWIG_fail; | |
7132 | swig_obj[0] = args; | |
7133 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7134 | if (!SWIG_IsOK(res1)) { | |
7135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7136 | } | |
7137 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7138 | { | |
7139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7140 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
7141 | wxPyEndAllowThreads(__tstate); | |
7142 | if (PyErr_Occurred()) SWIG_fail; | |
7143 | } | |
7144 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7145 | return resultobj; | |
7146 | fail: | |
7147 | return NULL; | |
f20a2e1f RD |
7148 | } |
7149 | ||
7150 | ||
0d2c9713 RD |
7151 | SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7152 | PyObject *resultobj = 0; | |
7153 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7154 | void *argp1 = 0 ; | |
7155 | int res1 = 0 ; | |
7156 | PyObject *swig_obj[1] ; | |
7157 | ||
7158 | if (!args) SWIG_fail; | |
7159 | swig_obj[0] = args; | |
7160 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7161 | if (!SWIG_IsOK(res1)) { | |
7162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7163 | } | |
7164 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7165 | { | |
7166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7167 | (arg1)->Pulse(); | |
7168 | wxPyEndAllowThreads(__tstate); | |
7169 | if (PyErr_Occurred()) SWIG_fail; | |
7170 | } | |
7171 | resultobj = SWIG_Py_Void(); | |
7172 | return resultobj; | |
7173 | fail: | |
7174 | return NULL; | |
7175 | } | |
7176 | ||
7177 | ||
1bd55598 RD |
7178 | SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7179 | PyObject *resultobj = 0; | |
7180 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7181 | bool result; | |
7182 | void *argp1 = 0 ; | |
7183 | int res1 = 0 ; | |
7184 | PyObject *swig_obj[1] ; | |
7185 | ||
7186 | if (!args) SWIG_fail; | |
7187 | swig_obj[0] = args; | |
7188 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7189 | if (!SWIG_IsOK(res1)) { | |
7190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7191 | } | |
7192 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7193 | { | |
7194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7195 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
7196 | wxPyEndAllowThreads(__tstate); | |
7197 | if (PyErr_Occurred()) SWIG_fail; | |
7198 | } | |
7199 | { | |
7200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7201 | } | |
7202 | return resultobj; | |
7203 | fail: | |
7204 | return NULL; | |
7205 | } | |
7206 | ||
7207 | ||
7208 | SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7209 | PyObject *resultobj = 0; | |
7210 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7211 | int arg2 ; | |
7212 | void *argp1 = 0 ; | |
7213 | int res1 = 0 ; | |
7214 | int val2 ; | |
7215 | int ecode2 = 0 ; | |
7216 | PyObject * obj0 = 0 ; | |
7217 | PyObject * obj1 = 0 ; | |
7218 | char * kwnames[] = { | |
7219 | (char *) "self",(char *) "w", NULL | |
7220 | }; | |
7221 | ||
7222 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
7223 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7224 | if (!SWIG_IsOK(res1)) { | |
7225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7226 | } | |
7227 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7228 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7229 | if (!SWIG_IsOK(ecode2)) { | |
7230 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'"); | |
7231 | } | |
7232 | arg2 = static_cast< int >(val2); | |
7233 | { | |
7234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7235 | (arg1)->SetShadowWidth(arg2); | |
7236 | wxPyEndAllowThreads(__tstate); | |
7237 | if (PyErr_Occurred()) SWIG_fail; | |
7238 | } | |
7239 | resultobj = SWIG_Py_Void(); | |
7240 | return resultobj; | |
7241 | fail: | |
7242 | return NULL; | |
d55e5bfc RD |
7243 | } |
7244 | ||
7245 | ||
1bd55598 RD |
7246 | SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7247 | PyObject *resultobj = 0; | |
7248 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7249 | int result; | |
7250 | void *argp1 = 0 ; | |
7251 | int res1 = 0 ; | |
7252 | PyObject *swig_obj[1] ; | |
7253 | ||
7254 | if (!args) SWIG_fail; | |
7255 | swig_obj[0] = args; | |
7256 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7257 | if (!SWIG_IsOK(res1)) { | |
7258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7259 | } | |
7260 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7261 | { | |
7262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7263 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
7264 | wxPyEndAllowThreads(__tstate); | |
7265 | if (PyErr_Occurred()) SWIG_fail; | |
7266 | } | |
7267 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7268 | return resultobj; | |
7269 | fail: | |
7270 | return NULL; | |
7271 | } | |
7272 | ||
7273 | ||
7274 | SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7275 | PyObject *resultobj = 0; | |
7276 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7277 | int arg2 ; | |
7278 | void *argp1 = 0 ; | |
7279 | int res1 = 0 ; | |
7280 | int val2 ; | |
7281 | int ecode2 = 0 ; | |
7282 | PyObject * obj0 = 0 ; | |
7283 | PyObject * obj1 = 0 ; | |
7284 | char * kwnames[] = { | |
7285 | (char *) "self",(char *) "w", NULL | |
7286 | }; | |
7287 | ||
7288 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail; | |
7289 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7290 | if (!SWIG_IsOK(res1)) { | |
7291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7292 | } | |
7293 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7294 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7295 | if (!SWIG_IsOK(ecode2)) { | |
7296 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'"); | |
7297 | } | |
7298 | arg2 = static_cast< int >(val2); | |
7299 | { | |
7300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7301 | (arg1)->SetBezelFace(arg2); | |
7302 | wxPyEndAllowThreads(__tstate); | |
7303 | if (PyErr_Occurred()) SWIG_fail; | |
7304 | } | |
7305 | resultobj = SWIG_Py_Void(); | |
7306 | return resultobj; | |
7307 | fail: | |
7308 | return NULL; | |
d55e5bfc RD |
7309 | } |
7310 | ||
7311 | ||
1bd55598 RD |
7312 | SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7313 | PyObject *resultobj = 0; | |
7314 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7315 | int result; | |
7316 | void *argp1 = 0 ; | |
7317 | int res1 = 0 ; | |
7318 | PyObject *swig_obj[1] ; | |
7319 | ||
7320 | if (!args) SWIG_fail; | |
7321 | swig_obj[0] = args; | |
7322 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7323 | if (!SWIG_IsOK(res1)) { | |
7324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7325 | } | |
7326 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7327 | { | |
7328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7329 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
7330 | wxPyEndAllowThreads(__tstate); | |
7331 | if (PyErr_Occurred()) SWIG_fail; | |
7332 | } | |
7333 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7334 | return resultobj; | |
7335 | fail: | |
7336 | return NULL; | |
7337 | } | |
7338 | ||
7339 | ||
7340 | SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7341 | PyObject *resultobj = 0; | |
7342 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7343 | SwigValueWrapper<wxVisualAttributes > result; | |
7344 | int val1 ; | |
7345 | int ecode1 = 0 ; | |
7346 | PyObject * obj0 = 0 ; | |
7347 | char * kwnames[] = { | |
7348 | (char *) "variant", NULL | |
7349 | }; | |
7350 | ||
7351 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7352 | if (obj0) { | |
7353 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7354 | if (!SWIG_IsOK(ecode1)) { | |
7355 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7356 | } | |
7357 | arg1 = static_cast< wxWindowVariant >(val1); | |
7358 | } | |
7359 | { | |
7360 | if (!wxPyCheckForApp()) SWIG_fail; | |
7361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7362 | result = wxGauge::GetClassDefaultAttributes(arg1); | |
7363 | wxPyEndAllowThreads(__tstate); | |
7364 | if (PyErr_Occurred()) SWIG_fail; | |
7365 | } | |
7366 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7367 | return resultobj; | |
7368 | fail: | |
7369 | return NULL; | |
d55e5bfc RD |
7370 | } |
7371 | ||
7372 | ||
1bd55598 RD |
7373 | SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7374 | PyObject *obj; | |
7375 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7376 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj)); | |
7377 | return SWIG_Py_Void(); | |
d55e5bfc RD |
7378 | } |
7379 | ||
1bd55598 RD |
7380 | SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7381 | return SWIG_Python_InitShadowInstance(args); | |
7382 | } | |
d55e5bfc | 7383 | |
1bd55598 RD |
7384 | SWIGINTERN int StaticBitmapNameStr_set(PyObject *) { |
7385 | SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only."); | |
7386 | return 1; | |
d55e5bfc RD |
7387 | } |
7388 | ||
7389 | ||
1bd55598 RD |
7390 | SWIGINTERN PyObject *StaticBitmapNameStr_get(void) { |
7391 | PyObject *pyobj = 0; | |
7392 | ||
7393 | { | |
7394 | #if wxUSE_UNICODE | |
7395 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
7396 | #else | |
7397 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
7398 | #endif | |
7399 | } | |
7400 | return pyobj; | |
d55e5bfc RD |
7401 | } |
7402 | ||
7403 | ||
1bd55598 RD |
7404 | SWIGINTERN int StaticBoxNameStr_set(PyObject *) { |
7405 | SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only."); | |
7406 | return 1; | |
d55e5bfc RD |
7407 | } |
7408 | ||
7409 | ||
1bd55598 RD |
7410 | SWIGINTERN PyObject *StaticBoxNameStr_get(void) { |
7411 | PyObject *pyobj = 0; | |
7412 | ||
7413 | { | |
7414 | #if wxUSE_UNICODE | |
7415 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
7416 | #else | |
7417 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
7418 | #endif | |
7419 | } | |
7420 | return pyobj; | |
d55e5bfc RD |
7421 | } |
7422 | ||
7423 | ||
1bd55598 RD |
7424 | SWIGINTERN int StaticTextNameStr_set(PyObject *) { |
7425 | SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only."); | |
7426 | return 1; | |
d55e5bfc RD |
7427 | } |
7428 | ||
7429 | ||
1bd55598 RD |
7430 | SWIGINTERN PyObject *StaticTextNameStr_get(void) { |
7431 | PyObject *pyobj = 0; | |
7432 | ||
7433 | { | |
7434 | #if wxUSE_UNICODE | |
7435 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
7436 | #else | |
7437 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
7438 | #endif | |
7439 | } | |
7440 | return pyobj; | |
7441 | } | |
7442 | ||
7443 | ||
3f7f284d RD |
7444 | SWIGINTERN int StaticLineNameStr_set(PyObject *) { |
7445 | SWIG_Error(SWIG_AttributeError,"Variable StaticLineNameStr is read-only."); | |
7446 | return 1; | |
7447 | } | |
7448 | ||
7449 | ||
7450 | SWIGINTERN PyObject *StaticLineNameStr_get(void) { | |
7451 | PyObject *pyobj = 0; | |
7452 | ||
7453 | { | |
7454 | #if wxUSE_UNICODE | |
7455 | pyobj = PyUnicode_FromWideChar((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len()); | |
7456 | #else | |
7457 | pyobj = PyString_FromStringAndSize((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len()); | |
7458 | #endif | |
7459 | } | |
7460 | return pyobj; | |
7461 | } | |
7462 | ||
7463 | ||
1bd55598 RD |
7464 | SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7465 | PyObject *resultobj = 0; | |
7466 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7467 | int arg2 = (int) -1 ; | |
7468 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7469 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7470 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7471 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7472 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7473 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7474 | long arg6 = (long) 0 ; | |
7475 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
7476 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7477 | wxStaticBox *result = 0 ; | |
7478 | void *argp1 = 0 ; | |
7479 | int res1 = 0 ; | |
7480 | int val2 ; | |
7481 | int ecode2 = 0 ; | |
7482 | bool temp3 = false ; | |
7483 | wxPoint temp4 ; | |
7484 | wxSize temp5 ; | |
7485 | long val6 ; | |
7486 | int ecode6 = 0 ; | |
7487 | bool temp7 = false ; | |
7488 | PyObject * obj0 = 0 ; | |
7489 | PyObject * obj1 = 0 ; | |
7490 | PyObject * obj2 = 0 ; | |
7491 | PyObject * obj3 = 0 ; | |
7492 | PyObject * obj4 = 0 ; | |
7493 | PyObject * obj5 = 0 ; | |
7494 | PyObject * obj6 = 0 ; | |
7495 | char * kwnames[] = { | |
7496 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7497 | }; | |
7498 | ||
7499 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7500 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7501 | if (!SWIG_IsOK(res1)) { | |
7502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7503 | } | |
7504 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7505 | if (obj1) { | |
7506 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7507 | if (!SWIG_IsOK(ecode2)) { | |
7508 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'"); | |
7509 | } | |
7510 | arg2 = static_cast< int >(val2); | |
7511 | } | |
7512 | if (obj2) { | |
36ed4f51 | 7513 | { |
1bd55598 RD |
7514 | arg3 = wxString_in_helper(obj2); |
7515 | if (arg3 == NULL) SWIG_fail; | |
7516 | temp3 = true; | |
36ed4f51 | 7517 | } |
1bd55598 RD |
7518 | } |
7519 | if (obj3) { | |
d55e5bfc | 7520 | { |
1bd55598 RD |
7521 | arg4 = &temp4; |
7522 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 7523 | } |
1bd55598 RD |
7524 | } |
7525 | if (obj4) { | |
d55e5bfc | 7526 | { |
1bd55598 RD |
7527 | arg5 = &temp5; |
7528 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 7529 | } |
1bd55598 RD |
7530 | } |
7531 | if (obj5) { | |
7532 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7533 | if (!SWIG_IsOK(ecode6)) { | |
7534 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'"); | |
7535 | } | |
7536 | arg6 = static_cast< long >(val6); | |
7537 | } | |
7538 | if (obj6) { | |
36ed4f51 | 7539 | { |
1bd55598 RD |
7540 | arg7 = wxString_in_helper(obj6); |
7541 | if (arg7 == NULL) SWIG_fail; | |
7542 | temp7 = true; | |
36ed4f51 | 7543 | } |
1bd55598 RD |
7544 | } |
7545 | { | |
7546 | if (!wxPyCheckForApp()) SWIG_fail; | |
7547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7548 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7549 | wxPyEndAllowThreads(__tstate); | |
7550 | if (PyErr_Occurred()) SWIG_fail; | |
7551 | } | |
7552 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 ); | |
7553 | { | |
7554 | if (temp3) | |
7555 | delete arg3; | |
7556 | } | |
7557 | { | |
7558 | if (temp7) | |
7559 | delete arg7; | |
7560 | } | |
7561 | return resultobj; | |
7562 | fail: | |
7563 | { | |
7564 | if (temp3) | |
7565 | delete arg3; | |
7566 | } | |
7567 | { | |
7568 | if (temp7) | |
7569 | delete arg7; | |
7570 | } | |
7571 | return NULL; | |
7572 | } | |
d55e5bfc | 7573 | |
1bd55598 RD |
7574 | |
7575 | SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7576 | PyObject *resultobj = 0; | |
7577 | wxStaticBox *result = 0 ; | |
7578 | ||
7579 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail; | |
7580 | { | |
7581 | if (!wxPyCheckForApp()) SWIG_fail; | |
7582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7583 | result = (wxStaticBox *)new wxStaticBox(); | |
7584 | wxPyEndAllowThreads(__tstate); | |
7585 | if (PyErr_Occurred()) SWIG_fail; | |
7586 | } | |
7587 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 ); | |
7588 | return resultobj; | |
7589 | fail: | |
7590 | return NULL; | |
7591 | } | |
7592 | ||
7593 | ||
7594 | SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7595 | PyObject *resultobj = 0; | |
7596 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
7597 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7598 | int arg3 = (int) -1 ; | |
7599 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7600 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7601 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7602 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7603 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7604 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7605 | long arg7 = (long) 0 ; | |
7606 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
7607 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7608 | bool result; | |
7609 | void *argp1 = 0 ; | |
7610 | int res1 = 0 ; | |
7611 | void *argp2 = 0 ; | |
7612 | int res2 = 0 ; | |
7613 | int val3 ; | |
7614 | int ecode3 = 0 ; | |
7615 | bool temp4 = false ; | |
7616 | wxPoint temp5 ; | |
7617 | wxSize temp6 ; | |
7618 | long val7 ; | |
7619 | int ecode7 = 0 ; | |
7620 | bool temp8 = false ; | |
7621 | PyObject * obj0 = 0 ; | |
7622 | PyObject * obj1 = 0 ; | |
7623 | PyObject * obj2 = 0 ; | |
7624 | PyObject * obj3 = 0 ; | |
7625 | PyObject * obj4 = 0 ; | |
7626 | PyObject * obj5 = 0 ; | |
7627 | PyObject * obj6 = 0 ; | |
7628 | PyObject * obj7 = 0 ; | |
7629 | char * kwnames[] = { | |
7630 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7631 | }; | |
7632 | ||
7633 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
7634 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 ); | |
7635 | if (!SWIG_IsOK(res1)) { | |
7636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'"); | |
7637 | } | |
7638 | arg1 = reinterpret_cast< wxStaticBox * >(argp1); | |
7639 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7640 | if (!SWIG_IsOK(res2)) { | |
7641 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7642 | } | |
7643 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7644 | if (obj2) { | |
7645 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7646 | if (!SWIG_IsOK(ecode3)) { | |
7647 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
7648 | } | |
7649 | arg3 = static_cast< int >(val3); | |
7650 | } | |
7651 | if (obj3) { | |
36ed4f51 | 7652 | { |
1bd55598 RD |
7653 | arg4 = wxString_in_helper(obj3); |
7654 | if (arg4 == NULL) SWIG_fail; | |
7655 | temp4 = true; | |
36ed4f51 | 7656 | } |
1bd55598 RD |
7657 | } |
7658 | if (obj4) { | |
d55e5bfc | 7659 | { |
1bd55598 RD |
7660 | arg5 = &temp5; |
7661 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 7662 | } |
1bd55598 RD |
7663 | } |
7664 | if (obj5) { | |
d55e5bfc | 7665 | { |
1bd55598 RD |
7666 | arg6 = &temp6; |
7667 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 7668 | } |
1bd55598 RD |
7669 | } |
7670 | if (obj6) { | |
7671 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
7672 | if (!SWIG_IsOK(ecode7)) { | |
7673 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
7674 | } | |
7675 | arg7 = static_cast< long >(val7); | |
7676 | } | |
7677 | if (obj7) { | |
36ed4f51 | 7678 | { |
1bd55598 RD |
7679 | arg8 = wxString_in_helper(obj7); |
7680 | if (arg8 == NULL) SWIG_fail; | |
7681 | temp8 = true; | |
36ed4f51 | 7682 | } |
1bd55598 RD |
7683 | } |
7684 | { | |
7685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7686 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7687 | wxPyEndAllowThreads(__tstate); | |
7688 | if (PyErr_Occurred()) SWIG_fail; | |
7689 | } | |
7690 | { | |
7691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7692 | } | |
7693 | { | |
7694 | if (temp4) | |
7695 | delete arg4; | |
7696 | } | |
7697 | { | |
7698 | if (temp8) | |
7699 | delete arg8; | |
7700 | } | |
7701 | return resultobj; | |
7702 | fail: | |
7703 | { | |
7704 | if (temp4) | |
7705 | delete arg4; | |
7706 | } | |
7707 | { | |
7708 | if (temp8) | |
7709 | delete arg8; | |
7710 | } | |
7711 | return NULL; | |
d55e5bfc RD |
7712 | } |
7713 | ||
7714 | ||
1bd55598 RD |
7715 | SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7716 | PyObject *resultobj = 0; | |
7717 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7718 | SwigValueWrapper<wxVisualAttributes > result; | |
7719 | int val1 ; | |
7720 | int ecode1 = 0 ; | |
7721 | PyObject * obj0 = 0 ; | |
7722 | char * kwnames[] = { | |
7723 | (char *) "variant", NULL | |
7724 | }; | |
7725 | ||
7726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7727 | if (obj0) { | |
7728 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7729 | if (!SWIG_IsOK(ecode1)) { | |
7730 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7731 | } | |
7732 | arg1 = static_cast< wxWindowVariant >(val1); | |
7733 | } | |
7734 | { | |
7735 | if (!wxPyCheckForApp()) SWIG_fail; | |
7736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7737 | result = wxStaticBox::GetClassDefaultAttributes(arg1); | |
7738 | wxPyEndAllowThreads(__tstate); | |
7739 | if (PyErr_Occurred()) SWIG_fail; | |
7740 | } | |
7741 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7742 | return resultobj; | |
7743 | fail: | |
7744 | return NULL; | |
7745 | } | |
7746 | ||
7747 | ||
7748 | SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7749 | PyObject *obj; | |
7750 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7751 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj)); | |
7752 | return SWIG_Py_Void(); | |
7753 | } | |
7754 | ||
7755 | SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7756 | return SWIG_Python_InitShadowInstance(args); | |
7757 | } | |
7758 | ||
7759 | SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7760 | PyObject *resultobj = 0; | |
7761 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7762 | int arg2 = (int) -1 ; | |
7763 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
7764 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7765 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7766 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7767 | long arg5 = (long) wxLI_HORIZONTAL ; | |
3f7f284d | 7768 | wxString const &arg6_defvalue = wxPyStaticLineNameStr ; |
1bd55598 RD |
7769 | wxString *arg6 = (wxString *) &arg6_defvalue ; |
7770 | wxStaticLine *result = 0 ; | |
7771 | void *argp1 = 0 ; | |
7772 | int res1 = 0 ; | |
7773 | int val2 ; | |
7774 | int ecode2 = 0 ; | |
7775 | wxPoint temp3 ; | |
7776 | wxSize temp4 ; | |
7777 | long val5 ; | |
7778 | int ecode5 = 0 ; | |
7779 | bool temp6 = false ; | |
7780 | PyObject * obj0 = 0 ; | |
7781 | PyObject * obj1 = 0 ; | |
7782 | PyObject * obj2 = 0 ; | |
7783 | PyObject * obj3 = 0 ; | |
7784 | PyObject * obj4 = 0 ; | |
7785 | PyObject * obj5 = 0 ; | |
7786 | char * kwnames[] = { | |
7787 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7788 | }; | |
7789 | ||
7790 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
7791 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7792 | if (!SWIG_IsOK(res1)) { | |
7793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7794 | } | |
7795 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7796 | if (obj1) { | |
7797 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7798 | if (!SWIG_IsOK(ecode2)) { | |
7799 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'"); | |
7800 | } | |
7801 | arg2 = static_cast< int >(val2); | |
7802 | } | |
7803 | if (obj2) { | |
7804 | { | |
7805 | arg3 = &temp3; | |
7806 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
f20a2e1f | 7807 | } |
1bd55598 RD |
7808 | } |
7809 | if (obj3) { | |
f20a2e1f | 7810 | { |
1bd55598 RD |
7811 | arg4 = &temp4; |
7812 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
f20a2e1f | 7813 | } |
1bd55598 RD |
7814 | } |
7815 | if (obj4) { | |
7816 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
7817 | if (!SWIG_IsOK(ecode5)) { | |
7818 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'"); | |
7819 | } | |
7820 | arg5 = static_cast< long >(val5); | |
7821 | } | |
7822 | if (obj5) { | |
f20a2e1f | 7823 | { |
1bd55598 RD |
7824 | arg6 = wxString_in_helper(obj5); |
7825 | if (arg6 == NULL) SWIG_fail; | |
7826 | temp6 = true; | |
f20a2e1f | 7827 | } |
1bd55598 RD |
7828 | } |
7829 | { | |
7830 | if (!wxPyCheckForApp()) SWIG_fail; | |
7831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7832 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
7833 | wxPyEndAllowThreads(__tstate); | |
7834 | if (PyErr_Occurred()) SWIG_fail; | |
7835 | } | |
7836 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 ); | |
7837 | { | |
7838 | if (temp6) | |
7839 | delete arg6; | |
7840 | } | |
7841 | return resultobj; | |
7842 | fail: | |
7843 | { | |
7844 | if (temp6) | |
7845 | delete arg6; | |
7846 | } | |
7847 | return NULL; | |
d55e5bfc RD |
7848 | } |
7849 | ||
7850 | ||
1bd55598 RD |
7851 | SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7852 | PyObject *resultobj = 0; | |
7853 | wxStaticLine *result = 0 ; | |
7854 | ||
7855 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail; | |
7856 | { | |
7857 | if (!wxPyCheckForApp()) SWIG_fail; | |
7858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7859 | result = (wxStaticLine *)new wxStaticLine(); | |
7860 | wxPyEndAllowThreads(__tstate); | |
7861 | if (PyErr_Occurred()) SWIG_fail; | |
7862 | } | |
7863 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 ); | |
7864 | return resultobj; | |
7865 | fail: | |
7866 | return NULL; | |
7867 | } | |
7868 | ||
7869 | ||
7870 | SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7871 | PyObject *resultobj = 0; | |
7872 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
7873 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7874 | int arg3 = (int) -1 ; | |
7875 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7876 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7877 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7878 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7879 | long arg6 = (long) wxLI_HORIZONTAL ; | |
3f7f284d | 7880 | wxString const &arg7_defvalue = wxPyStaticLineNameStr ; |
1bd55598 RD |
7881 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
7882 | bool result; | |
7883 | void *argp1 = 0 ; | |
7884 | int res1 = 0 ; | |
7885 | void *argp2 = 0 ; | |
7886 | int res2 = 0 ; | |
7887 | int val3 ; | |
7888 | int ecode3 = 0 ; | |
7889 | wxPoint temp4 ; | |
7890 | wxSize temp5 ; | |
7891 | long val6 ; | |
7892 | int ecode6 = 0 ; | |
7893 | bool temp7 = false ; | |
7894 | PyObject * obj0 = 0 ; | |
7895 | PyObject * obj1 = 0 ; | |
7896 | PyObject * obj2 = 0 ; | |
7897 | PyObject * obj3 = 0 ; | |
7898 | PyObject * obj4 = 0 ; | |
7899 | PyObject * obj5 = 0 ; | |
7900 | PyObject * obj6 = 0 ; | |
7901 | char * kwnames[] = { | |
7902 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7903 | }; | |
7904 | ||
7905 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7906 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 ); | |
7907 | if (!SWIG_IsOK(res1)) { | |
7908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'"); | |
7909 | } | |
7910 | arg1 = reinterpret_cast< wxStaticLine * >(argp1); | |
7911 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7912 | if (!SWIG_IsOK(res2)) { | |
7913 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7914 | } | |
7915 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7916 | if (obj2) { | |
7917 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7918 | if (!SWIG_IsOK(ecode3)) { | |
7919 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'"); | |
7920 | } | |
7921 | arg3 = static_cast< int >(val3); | |
7922 | } | |
7923 | if (obj3) { | |
d55e5bfc | 7924 | { |
1bd55598 RD |
7925 | arg4 = &temp4; |
7926 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 7927 | } |
1bd55598 RD |
7928 | } |
7929 | if (obj4) { | |
d55e5bfc | 7930 | { |
1bd55598 RD |
7931 | arg5 = &temp5; |
7932 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7933 | } | |
7934 | } | |
7935 | if (obj5) { | |
7936 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7937 | if (!SWIG_IsOK(ecode6)) { | |
7938 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'"); | |
7939 | } | |
7940 | arg6 = static_cast< long >(val6); | |
7941 | } | |
7942 | if (obj6) { | |
7943 | { | |
7944 | arg7 = wxString_in_helper(obj6); | |
7945 | if (arg7 == NULL) SWIG_fail; | |
7946 | temp7 = true; | |
d55e5bfc | 7947 | } |
1bd55598 RD |
7948 | } |
7949 | { | |
7950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7951 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7952 | wxPyEndAllowThreads(__tstate); | |
7953 | if (PyErr_Occurred()) SWIG_fail; | |
7954 | } | |
7955 | { | |
7956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7957 | } | |
7958 | { | |
7959 | if (temp7) | |
7960 | delete arg7; | |
7961 | } | |
7962 | return resultobj; | |
7963 | fail: | |
7964 | { | |
7965 | if (temp7) | |
7966 | delete arg7; | |
7967 | } | |
7968 | return NULL; | |
d55e5bfc RD |
7969 | } |
7970 | ||
7971 | ||
1bd55598 RD |
7972 | SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7973 | PyObject *resultobj = 0; | |
7974 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
7975 | bool result; | |
7976 | void *argp1 = 0 ; | |
7977 | int res1 = 0 ; | |
7978 | PyObject *swig_obj[1] ; | |
7979 | ||
7980 | if (!args) SWIG_fail; | |
7981 | swig_obj[0] = args; | |
7982 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 ); | |
7983 | if (!SWIG_IsOK(res1)) { | |
7984 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'"); | |
7985 | } | |
7986 | arg1 = reinterpret_cast< wxStaticLine * >(argp1); | |
7987 | { | |
7988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7989 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
7990 | wxPyEndAllowThreads(__tstate); | |
7991 | if (PyErr_Occurred()) SWIG_fail; | |
7992 | } | |
7993 | { | |
7994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7995 | } | |
7996 | return resultobj; | |
7997 | fail: | |
7998 | return NULL; | |
d55e5bfc RD |
7999 | } |
8000 | ||
8001 | ||
1bd55598 RD |
8002 | SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8003 | PyObject *resultobj = 0; | |
8004 | int result; | |
8005 | ||
8006 | if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail; | |
8007 | { | |
8008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8009 | result = (int)wxStaticLine::GetDefaultSize(); | |
8010 | wxPyEndAllowThreads(__tstate); | |
8011 | if (PyErr_Occurred()) SWIG_fail; | |
8012 | } | |
8013 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8014 | return resultobj; | |
8015 | fail: | |
8016 | return NULL; | |
8017 | } | |
8018 | ||
8019 | ||
8020 | SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8021 | PyObject *resultobj = 0; | |
8022 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8023 | SwigValueWrapper<wxVisualAttributes > result; | |
8024 | int val1 ; | |
8025 | int ecode1 = 0 ; | |
8026 | PyObject * obj0 = 0 ; | |
8027 | char * kwnames[] = { | |
8028 | (char *) "variant", NULL | |
8029 | }; | |
8030 | ||
8031 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8032 | if (obj0) { | |
8033 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8034 | if (!SWIG_IsOK(ecode1)) { | |
8035 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8036 | } | |
8037 | arg1 = static_cast< wxWindowVariant >(val1); | |
8038 | } | |
8039 | { | |
8040 | if (!wxPyCheckForApp()) SWIG_fail; | |
8041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8042 | result = wxStaticLine::GetClassDefaultAttributes(arg1); | |
8043 | wxPyEndAllowThreads(__tstate); | |
8044 | if (PyErr_Occurred()) SWIG_fail; | |
8045 | } | |
8046 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8047 | return resultobj; | |
8048 | fail: | |
8049 | return NULL; | |
8050 | } | |
8051 | ||
8052 | ||
8053 | SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8054 | PyObject *obj; | |
8055 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8056 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj)); | |
8057 | return SWIG_Py_Void(); | |
8058 | } | |
8059 | ||
8060 | SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8061 | return SWIG_Python_InitShadowInstance(args); | |
8062 | } | |
8063 | ||
8064 | SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8065 | PyObject *resultobj = 0; | |
8066 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8067 | int arg2 = (int) -1 ; | |
8068 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8069 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8070 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8071 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8072 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8073 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8074 | long arg6 = (long) 0 ; | |
8075 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
8076 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8077 | wxStaticText *result = 0 ; | |
8078 | void *argp1 = 0 ; | |
8079 | int res1 = 0 ; | |
8080 | int val2 ; | |
8081 | int ecode2 = 0 ; | |
8082 | bool temp3 = false ; | |
8083 | wxPoint temp4 ; | |
8084 | wxSize temp5 ; | |
8085 | long val6 ; | |
8086 | int ecode6 = 0 ; | |
8087 | bool temp7 = false ; | |
8088 | PyObject * obj0 = 0 ; | |
8089 | PyObject * obj1 = 0 ; | |
8090 | PyObject * obj2 = 0 ; | |
8091 | PyObject * obj3 = 0 ; | |
8092 | PyObject * obj4 = 0 ; | |
8093 | PyObject * obj5 = 0 ; | |
8094 | PyObject * obj6 = 0 ; | |
8095 | char * kwnames[] = { | |
8096 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8097 | }; | |
8098 | ||
8099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8100 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8101 | if (!SWIG_IsOK(res1)) { | |
8102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8103 | } | |
8104 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8105 | if (obj1) { | |
8106 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8107 | if (!SWIG_IsOK(ecode2)) { | |
8108 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'"); | |
8109 | } | |
8110 | arg2 = static_cast< int >(val2); | |
8111 | } | |
8112 | if (obj2) { | |
d55e5bfc | 8113 | { |
1bd55598 RD |
8114 | arg3 = wxString_in_helper(obj2); |
8115 | if (arg3 == NULL) SWIG_fail; | |
8116 | temp3 = true; | |
d55e5bfc | 8117 | } |
1bd55598 RD |
8118 | } |
8119 | if (obj3) { | |
d55e5bfc | 8120 | { |
1bd55598 RD |
8121 | arg4 = &temp4; |
8122 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 8123 | } |
1bd55598 RD |
8124 | } |
8125 | if (obj4) { | |
d55e5bfc | 8126 | { |
1bd55598 RD |
8127 | arg5 = &temp5; |
8128 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8129 | } |
1bd55598 RD |
8130 | } |
8131 | if (obj5) { | |
8132 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8133 | if (!SWIG_IsOK(ecode6)) { | |
8134 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'"); | |
8135 | } | |
8136 | arg6 = static_cast< long >(val6); | |
8137 | } | |
8138 | if (obj6) { | |
d55e5bfc | 8139 | { |
1bd55598 RD |
8140 | arg7 = wxString_in_helper(obj6); |
8141 | if (arg7 == NULL) SWIG_fail; | |
8142 | temp7 = true; | |
d55e5bfc | 8143 | } |
1bd55598 RD |
8144 | } |
8145 | { | |
8146 | if (!wxPyCheckForApp()) SWIG_fail; | |
8147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8148 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8149 | wxPyEndAllowThreads(__tstate); | |
8150 | if (PyErr_Occurred()) SWIG_fail; | |
8151 | } | |
8152 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 ); | |
8153 | { | |
8154 | if (temp3) | |
8155 | delete arg3; | |
8156 | } | |
8157 | { | |
8158 | if (temp7) | |
8159 | delete arg7; | |
8160 | } | |
8161 | return resultobj; | |
8162 | fail: | |
8163 | { | |
8164 | if (temp3) | |
8165 | delete arg3; | |
8166 | } | |
8167 | { | |
8168 | if (temp7) | |
8169 | delete arg7; | |
8170 | } | |
8171 | return NULL; | |
d55e5bfc RD |
8172 | } |
8173 | ||
8174 | ||
1bd55598 RD |
8175 | SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8176 | PyObject *resultobj = 0; | |
8177 | wxStaticText *result = 0 ; | |
8178 | ||
8179 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail; | |
8180 | { | |
8181 | if (!wxPyCheckForApp()) SWIG_fail; | |
8182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8183 | result = (wxStaticText *)new wxStaticText(); | |
8184 | wxPyEndAllowThreads(__tstate); | |
8185 | if (PyErr_Occurred()) SWIG_fail; | |
8186 | } | |
8187 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 ); | |
8188 | return resultobj; | |
8189 | fail: | |
8190 | return NULL; | |
8191 | } | |
8192 | ||
8193 | ||
8194 | SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8195 | PyObject *resultobj = 0; | |
8196 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
8197 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8198 | int arg3 = (int) -1 ; | |
8199 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8200 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8201 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8202 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8203 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8204 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8205 | long arg7 = (long) 0 ; | |
8206 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
8207 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8208 | bool result; | |
8209 | void *argp1 = 0 ; | |
8210 | int res1 = 0 ; | |
8211 | void *argp2 = 0 ; | |
8212 | int res2 = 0 ; | |
8213 | int val3 ; | |
8214 | int ecode3 = 0 ; | |
8215 | bool temp4 = false ; | |
8216 | wxPoint temp5 ; | |
8217 | wxSize temp6 ; | |
8218 | long val7 ; | |
8219 | int ecode7 = 0 ; | |
8220 | bool temp8 = false ; | |
8221 | PyObject * obj0 = 0 ; | |
8222 | PyObject * obj1 = 0 ; | |
8223 | PyObject * obj2 = 0 ; | |
8224 | PyObject * obj3 = 0 ; | |
8225 | PyObject * obj4 = 0 ; | |
8226 | PyObject * obj5 = 0 ; | |
8227 | PyObject * obj6 = 0 ; | |
8228 | PyObject * obj7 = 0 ; | |
8229 | char * kwnames[] = { | |
8230 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8231 | }; | |
8232 | ||
8233 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8234 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 ); | |
8235 | if (!SWIG_IsOK(res1)) { | |
8236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'"); | |
8237 | } | |
8238 | arg1 = reinterpret_cast< wxStaticText * >(argp1); | |
8239 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8240 | if (!SWIG_IsOK(res2)) { | |
8241 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8242 | } | |
8243 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8244 | if (obj2) { | |
8245 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8246 | if (!SWIG_IsOK(ecode3)) { | |
8247 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'"); | |
8248 | } | |
8249 | arg3 = static_cast< int >(val3); | |
8250 | } | |
8251 | if (obj3) { | |
d55e5bfc | 8252 | { |
1bd55598 RD |
8253 | arg4 = wxString_in_helper(obj3); |
8254 | if (arg4 == NULL) SWIG_fail; | |
8255 | temp4 = true; | |
d55e5bfc | 8256 | } |
1bd55598 RD |
8257 | } |
8258 | if (obj4) { | |
d55e5bfc | 8259 | { |
1bd55598 RD |
8260 | arg5 = &temp5; |
8261 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8262 | } |
1bd55598 RD |
8263 | } |
8264 | if (obj5) { | |
d55e5bfc | 8265 | { |
1bd55598 RD |
8266 | arg6 = &temp6; |
8267 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 8268 | } |
1bd55598 RD |
8269 | } |
8270 | if (obj6) { | |
8271 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8272 | if (!SWIG_IsOK(ecode7)) { | |
8273 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'"); | |
8274 | } | |
8275 | arg7 = static_cast< long >(val7); | |
8276 | } | |
8277 | if (obj7) { | |
d55e5bfc | 8278 | { |
1bd55598 RD |
8279 | arg8 = wxString_in_helper(obj7); |
8280 | if (arg8 == NULL) SWIG_fail; | |
8281 | temp8 = true; | |
d55e5bfc | 8282 | } |
1bd55598 RD |
8283 | } |
8284 | { | |
8285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8286 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8287 | wxPyEndAllowThreads(__tstate); | |
8288 | if (PyErr_Occurred()) SWIG_fail; | |
8289 | } | |
8290 | { | |
8291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8292 | } | |
8293 | { | |
8294 | if (temp4) | |
8295 | delete arg4; | |
8296 | } | |
8297 | { | |
8298 | if (temp8) | |
8299 | delete arg8; | |
8300 | } | |
8301 | return resultobj; | |
8302 | fail: | |
8303 | { | |
8304 | if (temp4) | |
8305 | delete arg4; | |
8306 | } | |
8307 | { | |
8308 | if (temp8) | |
8309 | delete arg8; | |
8310 | } | |
8311 | return NULL; | |
8312 | } | |
8313 | ||
8314 | ||
8315 | SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8316 | PyObject *resultobj = 0; | |
8317 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
8318 | int arg2 ; | |
8319 | void *argp1 = 0 ; | |
8320 | int res1 = 0 ; | |
8321 | int val2 ; | |
8322 | int ecode2 = 0 ; | |
8323 | PyObject * obj0 = 0 ; | |
8324 | PyObject * obj1 = 0 ; | |
8325 | char * kwnames[] = { | |
8326 | (char *) "self",(char *) "width", NULL | |
8327 | }; | |
8328 | ||
8329 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8330 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 ); | |
8331 | if (!SWIG_IsOK(res1)) { | |
8332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'"); | |
8333 | } | |
8334 | arg1 = reinterpret_cast< wxStaticText * >(argp1); | |
8335 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8336 | if (!SWIG_IsOK(ecode2)) { | |
8337 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'"); | |
8338 | } | |
8339 | arg2 = static_cast< int >(val2); | |
8340 | { | |
8341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8342 | (arg1)->Wrap(arg2); | |
8343 | wxPyEndAllowThreads(__tstate); | |
8344 | if (PyErr_Occurred()) SWIG_fail; | |
8345 | } | |
8346 | resultobj = SWIG_Py_Void(); | |
8347 | return resultobj; | |
8348 | fail: | |
8349 | return NULL; | |
8350 | } | |
8351 | ||
8352 | ||
8353 | SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8354 | PyObject *resultobj = 0; | |
8355 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8356 | SwigValueWrapper<wxVisualAttributes > result; | |
8357 | int val1 ; | |
8358 | int ecode1 = 0 ; | |
8359 | PyObject * obj0 = 0 ; | |
8360 | char * kwnames[] = { | |
8361 | (char *) "variant", NULL | |
8362 | }; | |
8363 | ||
8364 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8365 | if (obj0) { | |
8366 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8367 | if (!SWIG_IsOK(ecode1)) { | |
8368 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8369 | } | |
8370 | arg1 = static_cast< wxWindowVariant >(val1); | |
8371 | } | |
8372 | { | |
8373 | if (!wxPyCheckForApp()) SWIG_fail; | |
8374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8375 | result = wxStaticText::GetClassDefaultAttributes(arg1); | |
8376 | wxPyEndAllowThreads(__tstate); | |
8377 | if (PyErr_Occurred()) SWIG_fail; | |
8378 | } | |
8379 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8380 | return resultobj; | |
8381 | fail: | |
8382 | return NULL; | |
8383 | } | |
8384 | ||
8385 | ||
8386 | SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8387 | PyObject *obj; | |
8388 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8389 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj)); | |
8390 | return SWIG_Py_Void(); | |
8391 | } | |
8392 | ||
8393 | SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8394 | return SWIG_Python_InitShadowInstance(args); | |
8395 | } | |
8396 | ||
8397 | SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8398 | PyObject *resultobj = 0; | |
8399 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8400 | int arg2 = (int) -1 ; | |
8401 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
8402 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
8403 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8404 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8405 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8406 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8407 | long arg6 = (long) 0 ; | |
8408 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
8409 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8410 | wxStaticBitmap *result = 0 ; | |
8411 | void *argp1 = 0 ; | |
8412 | int res1 = 0 ; | |
8413 | int val2 ; | |
8414 | int ecode2 = 0 ; | |
8415 | void *argp3 = 0 ; | |
8416 | int res3 = 0 ; | |
8417 | wxPoint temp4 ; | |
8418 | wxSize temp5 ; | |
8419 | long val6 ; | |
8420 | int ecode6 = 0 ; | |
8421 | bool temp7 = false ; | |
8422 | PyObject * obj0 = 0 ; | |
8423 | PyObject * obj1 = 0 ; | |
8424 | PyObject * obj2 = 0 ; | |
8425 | PyObject * obj3 = 0 ; | |
8426 | PyObject * obj4 = 0 ; | |
8427 | PyObject * obj5 = 0 ; | |
8428 | PyObject * obj6 = 0 ; | |
8429 | char * kwnames[] = { | |
8430 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8431 | }; | |
8432 | ||
8433 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8434 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8435 | if (!SWIG_IsOK(res1)) { | |
8436 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8437 | } | |
8438 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8439 | if (obj1) { | |
8440 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8441 | if (!SWIG_IsOK(ecode2)) { | |
8442 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'"); | |
8443 | } | |
8444 | arg2 = static_cast< int >(val2); | |
8445 | } | |
8446 | if (obj2) { | |
8447 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8448 | if (!SWIG_IsOK(res3)) { | |
8449 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 8450 | } |
1bd55598 RD |
8451 | if (!argp3) { |
8452 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 8453 | } |
1bd55598 RD |
8454 | arg3 = reinterpret_cast< wxBitmap * >(argp3); |
8455 | } | |
8456 | if (obj3) { | |
d55e5bfc | 8457 | { |
1bd55598 RD |
8458 | arg4 = &temp4; |
8459 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
f20a2e1f | 8460 | } |
1bd55598 RD |
8461 | } |
8462 | if (obj4) { | |
f20a2e1f | 8463 | { |
1bd55598 RD |
8464 | arg5 = &temp5; |
8465 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
f20a2e1f | 8466 | } |
1bd55598 RD |
8467 | } |
8468 | if (obj5) { | |
8469 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8470 | if (!SWIG_IsOK(ecode6)) { | |
8471 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'"); | |
8472 | } | |
8473 | arg6 = static_cast< long >(val6); | |
8474 | } | |
8475 | if (obj6) { | |
f20a2e1f | 8476 | { |
1bd55598 RD |
8477 | arg7 = wxString_in_helper(obj6); |
8478 | if (arg7 == NULL) SWIG_fail; | |
8479 | temp7 = true; | |
f20a2e1f | 8480 | } |
1bd55598 RD |
8481 | } |
8482 | { | |
8483 | if (!wxPyCheckForApp()) SWIG_fail; | |
8484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8485 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8486 | wxPyEndAllowThreads(__tstate); | |
8487 | if (PyErr_Occurred()) SWIG_fail; | |
8488 | } | |
8489 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 ); | |
8490 | { | |
8491 | if (temp7) | |
8492 | delete arg7; | |
8493 | } | |
8494 | return resultobj; | |
8495 | fail: | |
8496 | { | |
8497 | if (temp7) | |
8498 | delete arg7; | |
8499 | } | |
8500 | return NULL; | |
f20a2e1f RD |
8501 | } |
8502 | ||
8503 | ||
1bd55598 RD |
8504 | SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8505 | PyObject *resultobj = 0; | |
8506 | wxStaticBitmap *result = 0 ; | |
8507 | ||
8508 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail; | |
8509 | { | |
8510 | if (!wxPyCheckForApp()) SWIG_fail; | |
8511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8512 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
8513 | wxPyEndAllowThreads(__tstate); | |
8514 | if (PyErr_Occurred()) SWIG_fail; | |
8515 | } | |
8516 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 ); | |
8517 | return resultobj; | |
8518 | fail: | |
8519 | return NULL; | |
8520 | } | |
8521 | ||
8522 | ||
8523 | SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8524 | PyObject *resultobj = 0; | |
8525 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8526 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8527 | int arg3 = (int) -1 ; | |
8528 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
8529 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
8530 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8531 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8532 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8533 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8534 | long arg7 = (long) 0 ; | |
8535 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
8536 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8537 | bool result; | |
8538 | void *argp1 = 0 ; | |
8539 | int res1 = 0 ; | |
8540 | void *argp2 = 0 ; | |
8541 | int res2 = 0 ; | |
8542 | int val3 ; | |
8543 | int ecode3 = 0 ; | |
8544 | void *argp4 = 0 ; | |
8545 | int res4 = 0 ; | |
8546 | wxPoint temp5 ; | |
8547 | wxSize temp6 ; | |
8548 | long val7 ; | |
8549 | int ecode7 = 0 ; | |
8550 | bool temp8 = false ; | |
8551 | PyObject * obj0 = 0 ; | |
8552 | PyObject * obj1 = 0 ; | |
8553 | PyObject * obj2 = 0 ; | |
8554 | PyObject * obj3 = 0 ; | |
8555 | PyObject * obj4 = 0 ; | |
8556 | PyObject * obj5 = 0 ; | |
8557 | PyObject * obj6 = 0 ; | |
8558 | PyObject * obj7 = 0 ; | |
8559 | char * kwnames[] = { | |
8560 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8561 | }; | |
8562 | ||
8563 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8564 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8565 | if (!SWIG_IsOK(res1)) { | |
8566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8567 | } | |
8568 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8569 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8570 | if (!SWIG_IsOK(res2)) { | |
8571 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8572 | } | |
8573 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8574 | if (obj2) { | |
8575 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8576 | if (!SWIG_IsOK(ecode3)) { | |
8577 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'"); | |
8578 | } | |
8579 | arg3 = static_cast< int >(val3); | |
8580 | } | |
8581 | if (obj3) { | |
8582 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8583 | if (!SWIG_IsOK(res4)) { | |
8584 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 8585 | } |
1bd55598 RD |
8586 | if (!argp4) { |
8587 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 8588 | } |
1bd55598 RD |
8589 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
8590 | } | |
8591 | if (obj4) { | |
d55e5bfc | 8592 | { |
1bd55598 RD |
8593 | arg5 = &temp5; |
8594 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8595 | } |
1bd55598 RD |
8596 | } |
8597 | if (obj5) { | |
d55e5bfc | 8598 | { |
1bd55598 RD |
8599 | arg6 = &temp6; |
8600 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 8601 | } |
1bd55598 RD |
8602 | } |
8603 | if (obj6) { | |
8604 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8605 | if (!SWIG_IsOK(ecode7)) { | |
8606 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'"); | |
8607 | } | |
8608 | arg7 = static_cast< long >(val7); | |
8609 | } | |
8610 | if (obj7) { | |
d55e5bfc | 8611 | { |
1bd55598 RD |
8612 | arg8 = wxString_in_helper(obj7); |
8613 | if (arg8 == NULL) SWIG_fail; | |
8614 | temp8 = true; | |
d55e5bfc | 8615 | } |
1bd55598 RD |
8616 | } |
8617 | { | |
8618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8619 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8620 | wxPyEndAllowThreads(__tstate); | |
8621 | if (PyErr_Occurred()) SWIG_fail; | |
8622 | } | |
8623 | { | |
8624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8625 | } | |
8626 | { | |
8627 | if (temp8) | |
8628 | delete arg8; | |
8629 | } | |
8630 | return resultobj; | |
8631 | fail: | |
8632 | { | |
8633 | if (temp8) | |
8634 | delete arg8; | |
8635 | } | |
8636 | return NULL; | |
d55e5bfc RD |
8637 | } |
8638 | ||
8639 | ||
1bd55598 RD |
8640 | SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8641 | PyObject *resultobj = 0; | |
8642 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8643 | wxBitmap result; | |
8644 | void *argp1 = 0 ; | |
8645 | int res1 = 0 ; | |
8646 | PyObject *swig_obj[1] ; | |
8647 | ||
8648 | if (!args) SWIG_fail; | |
8649 | swig_obj[0] = args; | |
8650 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8651 | if (!SWIG_IsOK(res1)) { | |
8652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8653 | } | |
8654 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8655 | { | |
8656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8657 | result = (arg1)->GetBitmap(); | |
8658 | wxPyEndAllowThreads(__tstate); | |
8659 | if (PyErr_Occurred()) SWIG_fail; | |
8660 | } | |
8661 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
8662 | return resultobj; | |
8663 | fail: | |
8664 | return NULL; | |
8665 | } | |
8666 | ||
8667 | ||
8668 | SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8669 | PyObject *resultobj = 0; | |
8670 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8671 | wxBitmap *arg2 = 0 ; | |
8672 | void *argp1 = 0 ; | |
8673 | int res1 = 0 ; | |
8674 | void *argp2 = 0 ; | |
8675 | int res2 = 0 ; | |
8676 | PyObject * obj0 = 0 ; | |
8677 | PyObject * obj1 = 0 ; | |
8678 | char * kwnames[] = { | |
8679 | (char *) "self",(char *) "bitmap", NULL | |
8680 | }; | |
8681 | ||
8682 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8683 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8684 | if (!SWIG_IsOK(res1)) { | |
8685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8686 | } | |
8687 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8688 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8689 | if (!SWIG_IsOK(res2)) { | |
8690 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8691 | } | |
8692 | if (!argp2) { | |
8693 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8694 | } | |
8695 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8696 | { | |
8697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8698 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
8699 | wxPyEndAllowThreads(__tstate); | |
8700 | if (PyErr_Occurred()) SWIG_fail; | |
8701 | } | |
8702 | resultobj = SWIG_Py_Void(); | |
8703 | return resultobj; | |
8704 | fail: | |
8705 | return NULL; | |
8706 | } | |
8707 | ||
8708 | ||
8709 | SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8710 | PyObject *resultobj = 0; | |
8711 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8712 | wxIcon *arg2 = 0 ; | |
8713 | void *argp1 = 0 ; | |
8714 | int res1 = 0 ; | |
8715 | void *argp2 = 0 ; | |
8716 | int res2 = 0 ; | |
8717 | PyObject * obj0 = 0 ; | |
8718 | PyObject * obj1 = 0 ; | |
8719 | char * kwnames[] = { | |
8720 | (char *) "self",(char *) "icon", NULL | |
8721 | }; | |
8722 | ||
8723 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
8724 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8725 | if (!SWIG_IsOK(res1)) { | |
8726 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8727 | } | |
8728 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8729 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
8730 | if (!SWIG_IsOK(res2)) { | |
8731 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
8732 | } | |
8733 | if (!argp2) { | |
8734 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
8735 | } | |
8736 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
8737 | { | |
8738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8739 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
8740 | wxPyEndAllowThreads(__tstate); | |
8741 | if (PyErr_Occurred()) SWIG_fail; | |
8742 | } | |
8743 | resultobj = SWIG_Py_Void(); | |
8744 | return resultobj; | |
8745 | fail: | |
8746 | return NULL; | |
8747 | } | |
8748 | ||
8749 | ||
8750 | SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8751 | PyObject *resultobj = 0; | |
8752 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8753 | SwigValueWrapper<wxVisualAttributes > result; | |
8754 | int val1 ; | |
8755 | int ecode1 = 0 ; | |
8756 | PyObject * obj0 = 0 ; | |
8757 | char * kwnames[] = { | |
8758 | (char *) "variant", NULL | |
8759 | }; | |
8760 | ||
8761 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8762 | if (obj0) { | |
8763 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8764 | if (!SWIG_IsOK(ecode1)) { | |
8765 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8766 | } | |
8767 | arg1 = static_cast< wxWindowVariant >(val1); | |
8768 | } | |
8769 | { | |
8770 | if (!wxPyCheckForApp()) SWIG_fail; | |
8771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8772 | result = wxStaticBitmap::GetClassDefaultAttributes(arg1); | |
8773 | wxPyEndAllowThreads(__tstate); | |
8774 | if (PyErr_Occurred()) SWIG_fail; | |
8775 | } | |
8776 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8777 | return resultobj; | |
8778 | fail: | |
8779 | return NULL; | |
d55e5bfc RD |
8780 | } |
8781 | ||
8782 | ||
1bd55598 RD |
8783 | SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8784 | PyObject *obj; | |
8785 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8786 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj)); | |
8787 | return SWIG_Py_Void(); | |
d55e5bfc RD |
8788 | } |
8789 | ||
1bd55598 RD |
8790 | SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8791 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
8792 | } |
8793 | ||
1bd55598 RD |
8794 | SWIGINTERN int ListBoxNameStr_set(PyObject *) { |
8795 | SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only."); | |
8796 | return 1; | |
f20a2e1f RD |
8797 | } |
8798 | ||
8799 | ||
1bd55598 RD |
8800 | SWIGINTERN PyObject *ListBoxNameStr_get(void) { |
8801 | PyObject *pyobj = 0; | |
8802 | ||
8803 | { | |
8804 | #if wxUSE_UNICODE | |
8805 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
8806 | #else | |
8807 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
8808 | #endif | |
8809 | } | |
8810 | return pyobj; | |
8811 | } | |
8812 | ||
8813 | ||
8814 | SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8815 | PyObject *resultobj = 0; | |
8816 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8817 | int arg2 = (int) -1 ; | |
8818 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8819 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8820 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8821 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8822 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
8823 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
8824 | long arg6 = (long) 0 ; | |
8825 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8826 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8827 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
8828 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8829 | wxListBox *result = 0 ; | |
8830 | void *argp1 = 0 ; | |
8831 | int res1 = 0 ; | |
8832 | int val2 ; | |
8833 | int ecode2 = 0 ; | |
8834 | wxPoint temp3 ; | |
8835 | wxSize temp4 ; | |
8836 | bool temp5 = false ; | |
8837 | long val6 ; | |
8838 | int ecode6 = 0 ; | |
8839 | void *argp7 = 0 ; | |
8840 | int res7 = 0 ; | |
8841 | bool temp8 = false ; | |
8842 | PyObject * obj0 = 0 ; | |
8843 | PyObject * obj1 = 0 ; | |
8844 | PyObject * obj2 = 0 ; | |
8845 | PyObject * obj3 = 0 ; | |
8846 | PyObject * obj4 = 0 ; | |
8847 | PyObject * obj5 = 0 ; | |
8848 | PyObject * obj6 = 0 ; | |
8849 | PyObject * obj7 = 0 ; | |
8850 | char * kwnames[] = { | |
8851 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8852 | }; | |
8853 | ||
8854 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8856 | if (!SWIG_IsOK(res1)) { | |
8857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8858 | } | |
8859 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8860 | if (obj1) { | |
8861 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8862 | if (!SWIG_IsOK(ecode2)) { | |
8863 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'"); | |
8864 | } | |
8865 | arg2 = static_cast< int >(val2); | |
8866 | } | |
8867 | if (obj2) { | |
d55e5bfc | 8868 | { |
1bd55598 RD |
8869 | arg3 = &temp3; |
8870 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 8871 | } |
1bd55598 RD |
8872 | } |
8873 | if (obj3) { | |
d55e5bfc | 8874 | { |
1bd55598 RD |
8875 | arg4 = &temp4; |
8876 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 8877 | } |
1bd55598 RD |
8878 | } |
8879 | if (obj4) { | |
d55e5bfc | 8880 | { |
1bd55598 RD |
8881 | if (! PySequence_Check(obj4)) { |
8882 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8883 | SWIG_fail; | |
8884 | } | |
8885 | arg5 = new wxArrayString; | |
8886 | temp5 = true; | |
8887 | int i, len=PySequence_Length(obj4); | |
8888 | for (i=0; i<len; i++) { | |
8889 | PyObject* item = PySequence_GetItem(obj4, i); | |
8890 | wxString* s = wxString_in_helper(item); | |
8891 | if (PyErr_Occurred()) SWIG_fail; | |
8892 | arg5->Add(*s); | |
8893 | delete s; | |
8894 | Py_DECREF(item); | |
8895 | } | |
d55e5bfc | 8896 | } |
1bd55598 RD |
8897 | } |
8898 | if (obj5) { | |
8899 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8900 | if (!SWIG_IsOK(ecode6)) { | |
8901 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'"); | |
8902 | } | |
8903 | arg6 = static_cast< long >(val6); | |
8904 | } | |
8905 | if (obj6) { | |
8906 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
8907 | if (!SWIG_IsOK(res7)) { | |
8908 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 8909 | } |
1bd55598 RD |
8910 | if (!argp7) { |
8911 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 8912 | } |
1bd55598 RD |
8913 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
8914 | } | |
8915 | if (obj7) { | |
d55e5bfc | 8916 | { |
1bd55598 RD |
8917 | arg8 = wxString_in_helper(obj7); |
8918 | if (arg8 == NULL) SWIG_fail; | |
8919 | temp8 = true; | |
d55e5bfc | 8920 | } |
1bd55598 RD |
8921 | } |
8922 | { | |
8923 | if (!wxPyCheckForApp()) SWIG_fail; | |
8924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8925 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8926 | wxPyEndAllowThreads(__tstate); | |
8927 | if (PyErr_Occurred()) SWIG_fail; | |
8928 | } | |
8929 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 ); | |
8930 | { | |
8931 | if (temp5) delete arg5; | |
8932 | } | |
8933 | { | |
8934 | if (temp8) | |
8935 | delete arg8; | |
8936 | } | |
8937 | return resultobj; | |
8938 | fail: | |
8939 | { | |
8940 | if (temp5) delete arg5; | |
8941 | } | |
8942 | { | |
8943 | if (temp8) | |
8944 | delete arg8; | |
8945 | } | |
8946 | return NULL; | |
d55e5bfc RD |
8947 | } |
8948 | ||
8949 | ||
1bd55598 RD |
8950 | SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8951 | PyObject *resultobj = 0; | |
8952 | wxListBox *result = 0 ; | |
8953 | ||
8954 | if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail; | |
8955 | { | |
8956 | if (!wxPyCheckForApp()) SWIG_fail; | |
8957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8958 | result = (wxListBox *)new wxListBox(); | |
8959 | wxPyEndAllowThreads(__tstate); | |
8960 | if (PyErr_Occurred()) SWIG_fail; | |
8961 | } | |
8962 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 ); | |
8963 | return resultobj; | |
8964 | fail: | |
8965 | return NULL; | |
8966 | } | |
8967 | ||
8968 | ||
8969 | SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8970 | PyObject *resultobj = 0; | |
8971 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8972 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8973 | int arg3 = (int) -1 ; | |
8974 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8975 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8976 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8977 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8978 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
8979 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
8980 | long arg7 = (long) 0 ; | |
8981 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8982 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8983 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
8984 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8985 | bool result; | |
8986 | void *argp1 = 0 ; | |
8987 | int res1 = 0 ; | |
8988 | void *argp2 = 0 ; | |
8989 | int res2 = 0 ; | |
8990 | int val3 ; | |
8991 | int ecode3 = 0 ; | |
8992 | wxPoint temp4 ; | |
8993 | wxSize temp5 ; | |
8994 | bool temp6 = false ; | |
8995 | long val7 ; | |
8996 | int ecode7 = 0 ; | |
8997 | void *argp8 = 0 ; | |
8998 | int res8 = 0 ; | |
8999 | bool temp9 = false ; | |
9000 | PyObject * obj0 = 0 ; | |
9001 | PyObject * obj1 = 0 ; | |
9002 | PyObject * obj2 = 0 ; | |
9003 | PyObject * obj3 = 0 ; | |
9004 | PyObject * obj4 = 0 ; | |
9005 | PyObject * obj5 = 0 ; | |
9006 | PyObject * obj6 = 0 ; | |
9007 | PyObject * obj7 = 0 ; | |
9008 | PyObject * obj8 = 0 ; | |
9009 | char * kwnames[] = { | |
9010 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9011 | }; | |
9012 | ||
9013 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
9014 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9015 | if (!SWIG_IsOK(res1)) { | |
9016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9017 | } | |
9018 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9019 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9020 | if (!SWIG_IsOK(res2)) { | |
9021 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9022 | } | |
9023 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9024 | if (obj2) { | |
9025 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9026 | if (!SWIG_IsOK(ecode3)) { | |
9027 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
9028 | } | |
9029 | arg3 = static_cast< int >(val3); | |
9030 | } | |
9031 | if (obj3) { | |
d55e5bfc | 9032 | { |
1bd55598 RD |
9033 | arg4 = &temp4; |
9034 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 9035 | } |
1bd55598 RD |
9036 | } |
9037 | if (obj4) { | |
d55e5bfc | 9038 | { |
1bd55598 RD |
9039 | arg5 = &temp5; |
9040 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 9041 | } |
1bd55598 RD |
9042 | } |
9043 | if (obj5) { | |
943e8dfd | 9044 | { |
1bd55598 RD |
9045 | if (! PySequence_Check(obj5)) { |
9046 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9047 | SWIG_fail; | |
9048 | } | |
9049 | arg6 = new wxArrayString; | |
9050 | temp6 = true; | |
9051 | int i, len=PySequence_Length(obj5); | |
9052 | for (i=0; i<len; i++) { | |
9053 | PyObject* item = PySequence_GetItem(obj5, i); | |
9054 | wxString* s = wxString_in_helper(item); | |
9055 | if (PyErr_Occurred()) SWIG_fail; | |
9056 | arg6->Add(*s); | |
9057 | delete s; | |
9058 | Py_DECREF(item); | |
9059 | } | |
943e8dfd | 9060 | } |
1bd55598 RD |
9061 | } |
9062 | if (obj6) { | |
9063 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
9064 | if (!SWIG_IsOK(ecode7)) { | |
9065 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
9066 | } | |
9067 | arg7 = static_cast< long >(val7); | |
9068 | } | |
9069 | if (obj7) { | |
9070 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
9071 | if (!SWIG_IsOK(res8)) { | |
9072 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
943e8dfd | 9073 | } |
1bd55598 RD |
9074 | if (!argp8) { |
9075 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
f20a2e1f | 9076 | } |
1bd55598 RD |
9077 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
9078 | } | |
9079 | if (obj8) { | |
f20a2e1f | 9080 | { |
1bd55598 RD |
9081 | arg9 = wxString_in_helper(obj8); |
9082 | if (arg9 == NULL) SWIG_fail; | |
9083 | temp9 = true; | |
f20a2e1f | 9084 | } |
1bd55598 RD |
9085 | } |
9086 | { | |
9087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9088 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
9089 | wxPyEndAllowThreads(__tstate); | |
9090 | if (PyErr_Occurred()) SWIG_fail; | |
9091 | } | |
9092 | { | |
9093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9094 | } | |
9095 | { | |
9096 | if (temp6) delete arg6; | |
9097 | } | |
9098 | { | |
9099 | if (temp9) | |
9100 | delete arg9; | |
9101 | } | |
9102 | return resultobj; | |
9103 | fail: | |
9104 | { | |
9105 | if (temp6) delete arg6; | |
9106 | } | |
9107 | { | |
9108 | if (temp9) | |
9109 | delete arg9; | |
9110 | } | |
9111 | return NULL; | |
9112 | } | |
9113 | ||
9114 | ||
9115 | SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9116 | PyObject *resultobj = 0; | |
9117 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9118 | wxString *arg2 = 0 ; | |
9119 | int arg3 ; | |
9120 | PyObject *arg4 = (PyObject *) NULL ; | |
9121 | void *argp1 = 0 ; | |
9122 | int res1 = 0 ; | |
9123 | bool temp2 = false ; | |
9124 | int val3 ; | |
9125 | int ecode3 = 0 ; | |
9126 | PyObject * obj0 = 0 ; | |
9127 | PyObject * obj1 = 0 ; | |
9128 | PyObject * obj2 = 0 ; | |
9129 | PyObject * obj3 = 0 ; | |
9130 | char * kwnames[] = { | |
9131 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
9132 | }; | |
9133 | ||
9134 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9135 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9136 | if (!SWIG_IsOK(res1)) { | |
9137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9138 | } | |
9139 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9140 | { | |
9141 | arg2 = wxString_in_helper(obj1); | |
9142 | if (arg2 == NULL) SWIG_fail; | |
9143 | temp2 = true; | |
9144 | } | |
9145 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9146 | if (!SWIG_IsOK(ecode3)) { | |
9147 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'"); | |
9148 | } | |
9149 | arg3 = static_cast< int >(val3); | |
9150 | if (obj3) { | |
9151 | arg4 = obj3; | |
9152 | } | |
9153 | { | |
9154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9155 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
9156 | wxPyEndAllowThreads(__tstate); | |
9157 | if (PyErr_Occurred()) SWIG_fail; | |
9158 | } | |
9159 | resultobj = SWIG_Py_Void(); | |
9160 | { | |
9161 | if (temp2) | |
9162 | delete arg2; | |
9163 | } | |
9164 | return resultobj; | |
9165 | fail: | |
9166 | { | |
9167 | if (temp2) | |
9168 | delete arg2; | |
9169 | } | |
9170 | return NULL; | |
9171 | } | |
9172 | ||
9173 | ||
9174 | SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9175 | PyObject *resultobj = 0; | |
9176 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9177 | wxArrayString *arg2 = 0 ; | |
50f151d7 | 9178 | unsigned int arg3 ; |
1bd55598 RD |
9179 | void *argp1 = 0 ; |
9180 | int res1 = 0 ; | |
9181 | bool temp2 = false ; | |
50f151d7 | 9182 | unsigned int val3 ; |
1bd55598 RD |
9183 | int ecode3 = 0 ; |
9184 | PyObject * obj0 = 0 ; | |
9185 | PyObject * obj1 = 0 ; | |
9186 | PyObject * obj2 = 0 ; | |
9187 | char * kwnames[] = { | |
9188 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
9189 | }; | |
9190 | ||
9191 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9192 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9193 | if (!SWIG_IsOK(res1)) { | |
9194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9195 | } | |
9196 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9197 | { | |
9198 | if (! PySequence_Check(obj1)) { | |
9199 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9200 | SWIG_fail; | |
9201 | } | |
9202 | arg2 = new wxArrayString; | |
9203 | temp2 = true; | |
9204 | int i, len=PySequence_Length(obj1); | |
9205 | for (i=0; i<len; i++) { | |
9206 | PyObject* item = PySequence_GetItem(obj1, i); | |
9207 | wxString* s = wxString_in_helper(item); | |
9208 | if (PyErr_Occurred()) SWIG_fail; | |
9209 | arg2->Add(*s); | |
9210 | delete s; | |
9211 | Py_DECREF(item); | |
f20a2e1f | 9212 | } |
1bd55598 | 9213 | } |
50f151d7 | 9214 | ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); |
1bd55598 | 9215 | if (!SWIG_IsOK(ecode3)) { |
50f151d7 | 9216 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'"); |
1bd55598 | 9217 | } |
50f151d7 | 9218 | arg3 = static_cast< unsigned int >(val3); |
1bd55598 RD |
9219 | { |
9220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9221 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
9222 | wxPyEndAllowThreads(__tstate); | |
9223 | if (PyErr_Occurred()) SWIG_fail; | |
9224 | } | |
9225 | resultobj = SWIG_Py_Void(); | |
9226 | { | |
9227 | if (temp2) delete arg2; | |
9228 | } | |
9229 | return resultobj; | |
9230 | fail: | |
9231 | { | |
9232 | if (temp2) delete arg2; | |
9233 | } | |
9234 | return NULL; | |
f20a2e1f RD |
9235 | } |
9236 | ||
9237 | ||
1bd55598 RD |
9238 | SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9239 | PyObject *resultobj = 0; | |
9240 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9241 | wxArrayString *arg2 = 0 ; | |
9242 | void *argp1 = 0 ; | |
9243 | int res1 = 0 ; | |
9244 | bool temp2 = false ; | |
9245 | PyObject * obj0 = 0 ; | |
9246 | PyObject * obj1 = 0 ; | |
9247 | char * kwnames[] = { | |
9248 | (char *) "self",(char *) "items", NULL | |
9249 | }; | |
9250 | ||
9251 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail; | |
9252 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9253 | if (!SWIG_IsOK(res1)) { | |
9254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9255 | } | |
9256 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9257 | { | |
9258 | if (! PySequence_Check(obj1)) { | |
9259 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9260 | SWIG_fail; | |
9261 | } | |
9262 | arg2 = new wxArrayString; | |
9263 | temp2 = true; | |
9264 | int i, len=PySequence_Length(obj1); | |
9265 | for (i=0; i<len; i++) { | |
9266 | PyObject* item = PySequence_GetItem(obj1, i); | |
9267 | wxString* s = wxString_in_helper(item); | |
9268 | if (PyErr_Occurred()) SWIG_fail; | |
9269 | arg2->Add(*s); | |
9270 | delete s; | |
9271 | Py_DECREF(item); | |
bfddbb17 | 9272 | } |
1bd55598 RD |
9273 | } |
9274 | { | |
9275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9276 | (arg1)->Set((wxArrayString const &)*arg2); | |
9277 | wxPyEndAllowThreads(__tstate); | |
9278 | if (PyErr_Occurred()) SWIG_fail; | |
9279 | } | |
9280 | resultobj = SWIG_Py_Void(); | |
9281 | { | |
9282 | if (temp2) delete arg2; | |
9283 | } | |
9284 | return resultobj; | |
9285 | fail: | |
9286 | { | |
9287 | if (temp2) delete arg2; | |
9288 | } | |
9289 | return NULL; | |
9290 | } | |
9291 | ||
9292 | ||
9293 | SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9294 | PyObject *resultobj = 0; | |
9295 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9296 | int arg2 ; | |
9297 | bool result; | |
9298 | void *argp1 = 0 ; | |
9299 | int res1 = 0 ; | |
9300 | int val2 ; | |
9301 | int ecode2 = 0 ; | |
9302 | PyObject * obj0 = 0 ; | |
9303 | PyObject * obj1 = 0 ; | |
9304 | char * kwnames[] = { | |
9305 | (char *) "self",(char *) "n", NULL | |
9306 | }; | |
9307 | ||
9308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
9309 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9310 | if (!SWIG_IsOK(res1)) { | |
9311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9312 | } | |
9313 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9314 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9315 | if (!SWIG_IsOK(ecode2)) { | |
9316 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'"); | |
9317 | } | |
9318 | arg2 = static_cast< int >(val2); | |
9319 | { | |
9320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9321 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
9322 | wxPyEndAllowThreads(__tstate); | |
9323 | if (PyErr_Occurred()) SWIG_fail; | |
9324 | } | |
9325 | { | |
9326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9327 | } | |
9328 | return resultobj; | |
9329 | fail: | |
9330 | return NULL; | |
9331 | } | |
9332 | ||
9333 | ||
9334 | SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9335 | PyObject *resultobj = 0; | |
9336 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9337 | int arg2 ; | |
9338 | bool arg3 = (bool) true ; | |
9339 | void *argp1 = 0 ; | |
9340 | int res1 = 0 ; | |
9341 | int val2 ; | |
9342 | int ecode2 = 0 ; | |
9343 | bool val3 ; | |
9344 | int ecode3 = 0 ; | |
9345 | PyObject * obj0 = 0 ; | |
9346 | PyObject * obj1 = 0 ; | |
9347 | PyObject * obj2 = 0 ; | |
9348 | char * kwnames[] = { | |
9349 | (char *) "self",(char *) "n",(char *) "select", NULL | |
9350 | }; | |
9351 | ||
9352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9354 | if (!SWIG_IsOK(res1)) { | |
9355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9356 | } | |
9357 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9358 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9359 | if (!SWIG_IsOK(ecode2)) { | |
9360 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
9361 | } | |
9362 | arg2 = static_cast< int >(val2); | |
9363 | if (obj2) { | |
9364 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
9365 | if (!SWIG_IsOK(ecode3)) { | |
9366 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'"); | |
9367 | } | |
9368 | arg3 = static_cast< bool >(val3); | |
9369 | } | |
9370 | { | |
9371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9372 | (arg1)->SetSelection(arg2,arg3); | |
9373 | wxPyEndAllowThreads(__tstate); | |
9374 | if (PyErr_Occurred()) SWIG_fail; | |
9375 | } | |
9376 | resultobj = SWIG_Py_Void(); | |
9377 | return resultobj; | |
9378 | fail: | |
9379 | return NULL; | |
9380 | } | |
9381 | ||
9382 | ||
9383 | SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9384 | PyObject *resultobj = 0; | |
9385 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9386 | int arg2 ; | |
9387 | void *argp1 = 0 ; | |
9388 | int res1 = 0 ; | |
9389 | int val2 ; | |
9390 | int ecode2 = 0 ; | |
9391 | PyObject * obj0 = 0 ; | |
9392 | PyObject * obj1 = 0 ; | |
9393 | char * kwnames[] = { | |
9394 | (char *) "self",(char *) "n", NULL | |
9395 | }; | |
9396 | ||
9397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail; | |
9398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9399 | if (!SWIG_IsOK(res1)) { | |
9400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9401 | } | |
9402 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9403 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9404 | if (!SWIG_IsOK(ecode2)) { | |
9405 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'"); | |
9406 | } | |
9407 | arg2 = static_cast< int >(val2); | |
9408 | { | |
9409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9410 | (arg1)->Select(arg2); | |
9411 | wxPyEndAllowThreads(__tstate); | |
9412 | if (PyErr_Occurred()) SWIG_fail; | |
9413 | } | |
9414 | resultobj = SWIG_Py_Void(); | |
9415 | return resultobj; | |
9416 | fail: | |
9417 | return NULL; | |
9418 | } | |
9419 | ||
9420 | ||
9421 | SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9422 | PyObject *resultobj = 0; | |
9423 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9424 | int arg2 ; | |
9425 | void *argp1 = 0 ; | |
9426 | int res1 = 0 ; | |
9427 | int val2 ; | |
9428 | int ecode2 = 0 ; | |
9429 | PyObject * obj0 = 0 ; | |
9430 | PyObject * obj1 = 0 ; | |
9431 | char * kwnames[] = { | |
9432 | (char *) "self",(char *) "n", NULL | |
9433 | }; | |
9434 | ||
9435 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9436 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9437 | if (!SWIG_IsOK(res1)) { | |
9438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9439 | } | |
9440 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9441 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9442 | if (!SWIG_IsOK(ecode2)) { | |
9443 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'"); | |
9444 | } | |
9445 | arg2 = static_cast< int >(val2); | |
9446 | { | |
9447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9448 | (arg1)->Deselect(arg2); | |
9449 | wxPyEndAllowThreads(__tstate); | |
9450 | if (PyErr_Occurred()) SWIG_fail; | |
9451 | } | |
9452 | resultobj = SWIG_Py_Void(); | |
9453 | return resultobj; | |
9454 | fail: | |
9455 | return NULL; | |
9456 | } | |
9457 | ||
9458 | ||
9459 | SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9460 | PyObject *resultobj = 0; | |
9461 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9462 | int arg2 = (int) -1 ; | |
9463 | void *argp1 = 0 ; | |
9464 | int res1 = 0 ; | |
9465 | int val2 ; | |
9466 | int ecode2 = 0 ; | |
9467 | PyObject * obj0 = 0 ; | |
9468 | PyObject * obj1 = 0 ; | |
9469 | char * kwnames[] = { | |
9470 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
9471 | }; | |
9472 | ||
9473 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail; | |
9474 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9475 | if (!SWIG_IsOK(res1)) { | |
9476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9477 | } | |
9478 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9479 | if (obj1) { | |
9480 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9481 | if (!SWIG_IsOK(ecode2)) { | |
9482 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'"); | |
9483 | } | |
9484 | arg2 = static_cast< int >(val2); | |
9485 | } | |
9486 | { | |
9487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9488 | (arg1)->DeselectAll(arg2); | |
9489 | wxPyEndAllowThreads(__tstate); | |
9490 | if (PyErr_Occurred()) SWIG_fail; | |
9491 | } | |
9492 | resultobj = SWIG_Py_Void(); | |
9493 | return resultobj; | |
9494 | fail: | |
9495 | return NULL; | |
9496 | } | |
9497 | ||
9498 | ||
9499 | SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9500 | PyObject *resultobj = 0; | |
9501 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9502 | wxString *arg2 = 0 ; | |
9503 | bool arg3 = (bool) true ; | |
9504 | bool result; | |
9505 | void *argp1 = 0 ; | |
9506 | int res1 = 0 ; | |
9507 | bool temp2 = false ; | |
9508 | bool val3 ; | |
9509 | int ecode3 = 0 ; | |
9510 | PyObject * obj0 = 0 ; | |
9511 | PyObject * obj1 = 0 ; | |
9512 | PyObject * obj2 = 0 ; | |
9513 | char * kwnames[] = { | |
9514 | (char *) "self",(char *) "s",(char *) "select", NULL | |
9515 | }; | |
9516 | ||
9517 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9518 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9519 | if (!SWIG_IsOK(res1)) { | |
9520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9521 | } | |
9522 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9523 | { | |
9524 | arg2 = wxString_in_helper(obj1); | |
9525 | if (arg2 == NULL) SWIG_fail; | |
9526 | temp2 = true; | |
9527 | } | |
9528 | if (obj2) { | |
9529 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
9530 | if (!SWIG_IsOK(ecode3)) { | |
9531 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'"); | |
9532 | } | |
9533 | arg3 = static_cast< bool >(val3); | |
9534 | } | |
9535 | { | |
9536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9537 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
9538 | wxPyEndAllowThreads(__tstate); | |
9539 | if (PyErr_Occurred()) SWIG_fail; | |
9540 | } | |
9541 | { | |
9542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9543 | } | |
9544 | { | |
9545 | if (temp2) | |
9546 | delete arg2; | |
9547 | } | |
9548 | return resultobj; | |
9549 | fail: | |
9550 | { | |
9551 | if (temp2) | |
9552 | delete arg2; | |
9553 | } | |
9554 | return NULL; | |
d55e5bfc RD |
9555 | } |
9556 | ||
9557 | ||
1bd55598 RD |
9558 | SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9559 | PyObject *resultobj = 0; | |
9560 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9561 | PyObject *result = 0 ; | |
9562 | void *argp1 = 0 ; | |
9563 | int res1 = 0 ; | |
9564 | PyObject *swig_obj[1] ; | |
9565 | ||
9566 | if (!args) SWIG_fail; | |
9567 | swig_obj[0] = args; | |
9568 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9569 | if (!SWIG_IsOK(res1)) { | |
9570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9571 | } | |
9572 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9573 | { | |
9574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9575 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
9576 | wxPyEndAllowThreads(__tstate); | |
9577 | if (PyErr_Occurred()) SWIG_fail; | |
9578 | } | |
9579 | resultobj = result; | |
9580 | return resultobj; | |
9581 | fail: | |
9582 | return NULL; | |
9583 | } | |
9584 | ||
9585 | ||
9586 | SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9587 | PyObject *resultobj = 0; | |
9588 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9589 | int arg2 ; | |
9590 | void *argp1 = 0 ; | |
9591 | int res1 = 0 ; | |
9592 | int val2 ; | |
9593 | int ecode2 = 0 ; | |
9594 | PyObject * obj0 = 0 ; | |
9595 | PyObject * obj1 = 0 ; | |
9596 | char * kwnames[] = { | |
9597 | (char *) "self",(char *) "n", NULL | |
9598 | }; | |
9599 | ||
9600 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
9601 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9602 | if (!SWIG_IsOK(res1)) { | |
9603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9604 | } | |
9605 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9606 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9607 | if (!SWIG_IsOK(ecode2)) { | |
9608 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'"); | |
9609 | } | |
9610 | arg2 = static_cast< int >(val2); | |
9611 | { | |
9612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9613 | (arg1)->SetFirstItem(arg2); | |
9614 | wxPyEndAllowThreads(__tstate); | |
9615 | if (PyErr_Occurred()) SWIG_fail; | |
9616 | } | |
9617 | resultobj = SWIG_Py_Void(); | |
9618 | return resultobj; | |
9619 | fail: | |
9620 | return NULL; | |
9621 | } | |
9622 | ||
9623 | ||
9624 | SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9625 | PyObject *resultobj = 0; | |
9626 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9627 | wxString *arg2 = 0 ; | |
9628 | void *argp1 = 0 ; | |
9629 | int res1 = 0 ; | |
9630 | bool temp2 = false ; | |
9631 | PyObject * obj0 = 0 ; | |
9632 | PyObject * obj1 = 0 ; | |
9633 | char * kwnames[] = { | |
9634 | (char *) "self",(char *) "s", NULL | |
9635 | }; | |
9636 | ||
9637 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail; | |
9638 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9639 | if (!SWIG_IsOK(res1)) { | |
9640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9641 | } | |
9642 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9643 | { | |
9644 | arg2 = wxString_in_helper(obj1); | |
9645 | if (arg2 == NULL) SWIG_fail; | |
9646 | temp2 = true; | |
9647 | } | |
9648 | { | |
9649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9650 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
9651 | wxPyEndAllowThreads(__tstate); | |
9652 | if (PyErr_Occurred()) SWIG_fail; | |
9653 | } | |
9654 | resultobj = SWIG_Py_Void(); | |
9655 | { | |
9656 | if (temp2) | |
9657 | delete arg2; | |
9658 | } | |
9659 | return resultobj; | |
9660 | fail: | |
9661 | { | |
9662 | if (temp2) | |
9663 | delete arg2; | |
9664 | } | |
9665 | return NULL; | |
9666 | } | |
9667 | ||
9668 | ||
9669 | SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9670 | PyObject *resultobj = 0; | |
9671 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9672 | int arg2 ; | |
9673 | void *argp1 = 0 ; | |
9674 | int res1 = 0 ; | |
9675 | int val2 ; | |
9676 | int ecode2 = 0 ; | |
9677 | PyObject * obj0 = 0 ; | |
9678 | PyObject * obj1 = 0 ; | |
9679 | char * kwnames[] = { | |
9680 | (char *) "self",(char *) "n", NULL | |
9681 | }; | |
9682 | ||
9683 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
9684 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9685 | if (!SWIG_IsOK(res1)) { | |
9686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9687 | } | |
9688 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9689 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9690 | if (!SWIG_IsOK(ecode2)) { | |
9691 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'"); | |
9692 | } | |
9693 | arg2 = static_cast< int >(val2); | |
9694 | { | |
9695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9696 | (arg1)->EnsureVisible(arg2); | |
9697 | wxPyEndAllowThreads(__tstate); | |
9698 | if (PyErr_Occurred()) SWIG_fail; | |
9699 | } | |
9700 | resultobj = SWIG_Py_Void(); | |
9701 | return resultobj; | |
9702 | fail: | |
9703 | return NULL; | |
9704 | } | |
9705 | ||
9706 | ||
9707 | SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9708 | PyObject *resultobj = 0; | |
9709 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9710 | wxString *arg2 = 0 ; | |
9711 | void *argp1 = 0 ; | |
9712 | int res1 = 0 ; | |
9713 | bool temp2 = false ; | |
9714 | PyObject * obj0 = 0 ; | |
9715 | PyObject * obj1 = 0 ; | |
9716 | char * kwnames[] = { | |
9717 | (char *) "self",(char *) "s", NULL | |
9718 | }; | |
9719 | ||
9720 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
9721 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9722 | if (!SWIG_IsOK(res1)) { | |
9723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9724 | } | |
9725 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9726 | { | |
9727 | arg2 = wxString_in_helper(obj1); | |
9728 | if (arg2 == NULL) SWIG_fail; | |
9729 | temp2 = true; | |
9730 | } | |
9731 | { | |
9732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9733 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
9734 | wxPyEndAllowThreads(__tstate); | |
9735 | if (PyErr_Occurred()) SWIG_fail; | |
9736 | } | |
9737 | resultobj = SWIG_Py_Void(); | |
9738 | { | |
9739 | if (temp2) | |
9740 | delete arg2; | |
9741 | } | |
9742 | return resultobj; | |
9743 | fail: | |
9744 | { | |
9745 | if (temp2) | |
9746 | delete arg2; | |
9747 | } | |
9748 | return NULL; | |
d55e5bfc RD |
9749 | } |
9750 | ||
9751 | ||
1bd55598 RD |
9752 | SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9753 | PyObject *resultobj = 0; | |
9754 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9755 | bool result; | |
9756 | void *argp1 = 0 ; | |
9757 | int res1 = 0 ; | |
9758 | PyObject *swig_obj[1] ; | |
9759 | ||
9760 | if (!args) SWIG_fail; | |
9761 | swig_obj[0] = args; | |
9762 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9763 | if (!SWIG_IsOK(res1)) { | |
9764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9765 | } | |
9766 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9767 | { | |
9768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9769 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
9770 | wxPyEndAllowThreads(__tstate); | |
9771 | if (PyErr_Occurred()) SWIG_fail; | |
9772 | } | |
9773 | { | |
9774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9775 | } | |
9776 | return resultobj; | |
9777 | fail: | |
9778 | return NULL; | |
9779 | } | |
9780 | ||
9781 | ||
9782 | SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9783 | PyObject *resultobj = 0; | |
9784 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9785 | wxPoint *arg2 = 0 ; | |
9786 | int result; | |
9787 | void *argp1 = 0 ; | |
9788 | int res1 = 0 ; | |
9789 | wxPoint temp2 ; | |
9790 | PyObject * obj0 = 0 ; | |
9791 | PyObject * obj1 = 0 ; | |
9792 | char * kwnames[] = { | |
9793 | (char *) "self",(char *) "pt", NULL | |
9794 | }; | |
9795 | ||
9796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
9797 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9798 | if (!SWIG_IsOK(res1)) { | |
9799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9800 | } | |
9801 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9802 | { | |
9803 | arg2 = &temp2; | |
9804 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9805 | } | |
9806 | { | |
9807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9808 | result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9809 | wxPyEndAllowThreads(__tstate); | |
9810 | if (PyErr_Occurred()) SWIG_fail; | |
9811 | } | |
9812 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9813 | return resultobj; | |
9814 | fail: | |
9815 | return NULL; | |
9816 | } | |
9817 | ||
9818 | ||
9819 | SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9820 | PyObject *resultobj = 0; | |
9821 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9822 | int arg2 ; | |
9823 | wxColour *arg3 = 0 ; | |
9824 | void *argp1 = 0 ; | |
9825 | int res1 = 0 ; | |
9826 | int val2 ; | |
9827 | int ecode2 = 0 ; | |
9828 | wxColour temp3 ; | |
9829 | PyObject * obj0 = 0 ; | |
9830 | PyObject * obj1 = 0 ; | |
9831 | PyObject * obj2 = 0 ; | |
9832 | char * kwnames[] = { | |
9833 | (char *) "self",(char *) "item",(char *) "c", NULL | |
9834 | }; | |
9835 | ||
9836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9837 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9838 | if (!SWIG_IsOK(res1)) { | |
9839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9840 | } | |
9841 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9842 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9843 | if (!SWIG_IsOK(ecode2)) { | |
9844 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'"); | |
9845 | } | |
9846 | arg2 = static_cast< int >(val2); | |
9847 | { | |
9848 | arg3 = &temp3; | |
9849 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9850 | } | |
9851 | { | |
9852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9853 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
9854 | wxPyEndAllowThreads(__tstate); | |
9855 | if (PyErr_Occurred()) SWIG_fail; | |
9856 | } | |
9857 | resultobj = SWIG_Py_Void(); | |
9858 | return resultobj; | |
9859 | fail: | |
9860 | return NULL; | |
9861 | } | |
9862 | ||
9863 | ||
9864 | SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9865 | PyObject *resultobj = 0; | |
9866 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9867 | int arg2 ; | |
9868 | wxColour *arg3 = 0 ; | |
9869 | void *argp1 = 0 ; | |
9870 | int res1 = 0 ; | |
9871 | int val2 ; | |
9872 | int ecode2 = 0 ; | |
9873 | wxColour temp3 ; | |
9874 | PyObject * obj0 = 0 ; | |
9875 | PyObject * obj1 = 0 ; | |
9876 | PyObject * obj2 = 0 ; | |
9877 | char * kwnames[] = { | |
9878 | (char *) "self",(char *) "item",(char *) "c", NULL | |
9879 | }; | |
9880 | ||
9881 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9882 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9883 | if (!SWIG_IsOK(res1)) { | |
9884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9885 | } | |
9886 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9887 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9888 | if (!SWIG_IsOK(ecode2)) { | |
9889 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'"); | |
9890 | } | |
9891 | arg2 = static_cast< int >(val2); | |
9892 | { | |
9893 | arg3 = &temp3; | |
9894 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9895 | } | |
9896 | { | |
9897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9898 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
9899 | wxPyEndAllowThreads(__tstate); | |
9900 | if (PyErr_Occurred()) SWIG_fail; | |
9901 | } | |
9902 | resultobj = SWIG_Py_Void(); | |
9903 | return resultobj; | |
9904 | fail: | |
9905 | return NULL; | |
9906 | } | |
9907 | ||
9908 | ||
9909 | SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9910 | PyObject *resultobj = 0; | |
9911 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9912 | int arg2 ; | |
9913 | wxFont *arg3 = 0 ; | |
9914 | void *argp1 = 0 ; | |
9915 | int res1 = 0 ; | |
9916 | int val2 ; | |
9917 | int ecode2 = 0 ; | |
9918 | void *argp3 = 0 ; | |
9919 | int res3 = 0 ; | |
9920 | PyObject * obj0 = 0 ; | |
9921 | PyObject * obj1 = 0 ; | |
9922 | PyObject * obj2 = 0 ; | |
9923 | char * kwnames[] = { | |
9924 | (char *) "self",(char *) "item",(char *) "f", NULL | |
9925 | }; | |
9926 | ||
9927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9929 | if (!SWIG_IsOK(res1)) { | |
9930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9931 | } | |
9932 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9933 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9934 | if (!SWIG_IsOK(ecode2)) { | |
9935 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'"); | |
9936 | } | |
9937 | arg2 = static_cast< int >(val2); | |
9938 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
9939 | if (!SWIG_IsOK(res3)) { | |
9940 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
9941 | } | |
9942 | if (!argp3) { | |
9943 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
9944 | } | |
9945 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
9946 | { | |
9947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9948 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
9949 | wxPyEndAllowThreads(__tstate); | |
9950 | if (PyErr_Occurred()) SWIG_fail; | |
9951 | } | |
9952 | resultobj = SWIG_Py_Void(); | |
9953 | return resultobj; | |
9954 | fail: | |
9955 | return NULL; | |
9956 | } | |
9957 | ||
9958 | ||
9959 | SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9960 | PyObject *resultobj = 0; | |
9961 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
9962 | SwigValueWrapper<wxVisualAttributes > result; | |
9963 | int val1 ; | |
9964 | int ecode1 = 0 ; | |
9965 | PyObject * obj0 = 0 ; | |
9966 | char * kwnames[] = { | |
9967 | (char *) "variant", NULL | |
9968 | }; | |
9969 | ||
9970 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
9971 | if (obj0) { | |
9972 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
9973 | if (!SWIG_IsOK(ecode1)) { | |
9974 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
9975 | } | |
9976 | arg1 = static_cast< wxWindowVariant >(val1); | |
9977 | } | |
9978 | { | |
9979 | if (!wxPyCheckForApp()) SWIG_fail; | |
9980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9981 | result = wxListBox::GetClassDefaultAttributes(arg1); | |
9982 | wxPyEndAllowThreads(__tstate); | |
9983 | if (PyErr_Occurred()) SWIG_fail; | |
9984 | } | |
9985 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
9986 | return resultobj; | |
9987 | fail: | |
9988 | return NULL; | |
9989 | } | |
9990 | ||
9991 | ||
9992 | SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9993 | PyObject *obj; | |
9994 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9995 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj)); | |
9996 | return SWIG_Py_Void(); | |
9997 | } | |
9998 | ||
9999 | SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10000 | return SWIG_Python_InitShadowInstance(args); | |
10001 | } | |
10002 | ||
10003 | SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10004 | PyObject *resultobj = 0; | |
10005 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10006 | int arg2 = (int) -1 ; | |
10007 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10008 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10009 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10010 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10011 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
10012 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
10013 | long arg6 = (long) 0 ; | |
10014 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10015 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10016 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
10017 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10018 | wxCheckListBox *result = 0 ; | |
10019 | void *argp1 = 0 ; | |
10020 | int res1 = 0 ; | |
10021 | int val2 ; | |
10022 | int ecode2 = 0 ; | |
10023 | wxPoint temp3 ; | |
10024 | wxSize temp4 ; | |
10025 | bool temp5 = false ; | |
10026 | long val6 ; | |
10027 | int ecode6 = 0 ; | |
10028 | void *argp7 = 0 ; | |
10029 | int res7 = 0 ; | |
10030 | bool temp8 = false ; | |
10031 | PyObject * obj0 = 0 ; | |
10032 | PyObject * obj1 = 0 ; | |
10033 | PyObject * obj2 = 0 ; | |
10034 | PyObject * obj3 = 0 ; | |
10035 | PyObject * obj4 = 0 ; | |
10036 | PyObject * obj5 = 0 ; | |
10037 | PyObject * obj6 = 0 ; | |
10038 | PyObject * obj7 = 0 ; | |
10039 | char * kwnames[] = { | |
10040 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10041 | }; | |
10042 | ||
10043 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
10044 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10045 | if (!SWIG_IsOK(res1)) { | |
10046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
10047 | } | |
10048 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
10049 | if (obj1) { | |
10050 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10051 | if (!SWIG_IsOK(ecode2)) { | |
10052 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'"); | |
10053 | } | |
10054 | arg2 = static_cast< int >(val2); | |
10055 | } | |
10056 | if (obj2) { | |
10057 | { | |
10058 | arg3 = &temp3; | |
10059 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
bfddbb17 | 10060 | } |
1bd55598 RD |
10061 | } |
10062 | if (obj3) { | |
10063 | { | |
10064 | arg4 = &temp4; | |
10065 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 10066 | } |
1bd55598 RD |
10067 | } |
10068 | if (obj4) { | |
10069 | { | |
10070 | if (! PySequence_Check(obj4)) { | |
10071 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10072 | SWIG_fail; | |
10073 | } | |
10074 | arg5 = new wxArrayString; | |
10075 | temp5 = true; | |
10076 | int i, len=PySequence_Length(obj4); | |
10077 | for (i=0; i<len; i++) { | |
10078 | PyObject* item = PySequence_GetItem(obj4, i); | |
10079 | wxString* s = wxString_in_helper(item); | |
10080 | if (PyErr_Occurred()) SWIG_fail; | |
10081 | arg5->Add(*s); | |
10082 | delete s; | |
10083 | Py_DECREF(item); | |
10084 | } | |
d55e5bfc | 10085 | } |
1bd55598 RD |
10086 | } |
10087 | if (obj5) { | |
10088 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
10089 | if (!SWIG_IsOK(ecode6)) { | |
10090 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'"); | |
10091 | } | |
10092 | arg6 = static_cast< long >(val6); | |
10093 | } | |
10094 | if (obj6) { | |
10095 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
10096 | if (!SWIG_IsOK(res7)) { | |
10097 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 10098 | } |
1bd55598 RD |
10099 | if (!argp7) { |
10100 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 10101 | } |
1bd55598 RD |
10102 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
10103 | } | |
10104 | if (obj7) { | |
10105 | { | |
10106 | arg8 = wxString_in_helper(obj7); | |
10107 | if (arg8 == NULL) SWIG_fail; | |
10108 | temp8 = true; | |
d55e5bfc | 10109 | } |
1bd55598 RD |
10110 | } |
10111 | { | |
10112 | if (!wxPyCheckForApp()) SWIG_fail; | |
10113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10114 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10115 | wxPyEndAllowThreads(__tstate); | |
10116 | if (PyErr_Occurred()) SWIG_fail; | |
10117 | } | |
10118 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 ); | |
10119 | { | |
10120 | if (temp5) delete arg5; | |
10121 | } | |
10122 | { | |
10123 | if (temp8) | |
10124 | delete arg8; | |
10125 | } | |
10126 | return resultobj; | |
10127 | fail: | |
10128 | { | |
10129 | if (temp5) delete arg5; | |
10130 | } | |
10131 | { | |
10132 | if (temp8) | |
10133 | delete arg8; | |
10134 | } | |
10135 | return NULL; | |
10136 | } | |
10137 | ||
10138 | ||
10139 | SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10140 | PyObject *resultobj = 0; | |
10141 | wxCheckListBox *result = 0 ; | |
10142 | ||
10143 | if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail; | |
10144 | { | |
10145 | if (!wxPyCheckForApp()) SWIG_fail; | |
10146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10147 | result = (wxCheckListBox *)new wxCheckListBox(); | |
10148 | wxPyEndAllowThreads(__tstate); | |
10149 | if (PyErr_Occurred()) SWIG_fail; | |
10150 | } | |
10151 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 ); | |
10152 | return resultobj; | |
10153 | fail: | |
10154 | return NULL; | |
10155 | } | |
10156 | ||
10157 | ||
10158 | SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10159 | PyObject *resultobj = 0; | |
10160 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
10161 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10162 | int arg3 = (int) -1 ; | |
10163 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10164 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10165 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10166 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10167 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
10168 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
10169 | long arg7 = (long) 0 ; | |
10170 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
10171 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
10172 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
10173 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
10174 | bool result; | |
10175 | void *argp1 = 0 ; | |
10176 | int res1 = 0 ; | |
10177 | void *argp2 = 0 ; | |
10178 | int res2 = 0 ; | |
10179 | int val3 ; | |
10180 | int ecode3 = 0 ; | |
10181 | wxPoint temp4 ; | |
10182 | wxSize temp5 ; | |
10183 | bool temp6 = false ; | |
10184 | long val7 ; | |
10185 | int ecode7 = 0 ; | |
10186 | void *argp8 = 0 ; | |
10187 | int res8 = 0 ; | |
10188 | bool temp9 = false ; | |
10189 | PyObject * obj0 = 0 ; | |
10190 | PyObject * obj1 = 0 ; | |
10191 | PyObject * obj2 = 0 ; | |
10192 | PyObject * obj3 = 0 ; | |
10193 | PyObject * obj4 = 0 ; | |
10194 | PyObject * obj5 = 0 ; | |
10195 | PyObject * obj6 = 0 ; | |
10196 | PyObject * obj7 = 0 ; | |
10197 | PyObject * obj8 = 0 ; | |
10198 | char * kwnames[] = { | |
10199 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10200 | }; | |
10201 | ||
10202 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
10203 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10204 | if (!SWIG_IsOK(res1)) { | |
10205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10206 | } | |
10207 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
10208 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10209 | if (!SWIG_IsOK(res2)) { | |
10210 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
10211 | } | |
10212 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
10213 | if (obj2) { | |
10214 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10215 | if (!SWIG_IsOK(ecode3)) { | |
10216 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
10217 | } | |
10218 | arg3 = static_cast< int >(val3); | |
10219 | } | |
10220 | if (obj3) { | |
d55e5bfc | 10221 | { |
1bd55598 RD |
10222 | arg4 = &temp4; |
10223 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 10224 | } |
1bd55598 RD |
10225 | } |
10226 | if (obj4) { | |
d55e5bfc | 10227 | { |
1bd55598 RD |
10228 | arg5 = &temp5; |
10229 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 10230 | } |
1bd55598 RD |
10231 | } |
10232 | if (obj5) { | |
d55e5bfc | 10233 | { |
1bd55598 RD |
10234 | if (! PySequence_Check(obj5)) { |
10235 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10236 | SWIG_fail; | |
10237 | } | |
10238 | arg6 = new wxArrayString; | |
10239 | temp6 = true; | |
10240 | int i, len=PySequence_Length(obj5); | |
10241 | for (i=0; i<len; i++) { | |
10242 | PyObject* item = PySequence_GetItem(obj5, i); | |
10243 | wxString* s = wxString_in_helper(item); | |
10244 | if (PyErr_Occurred()) SWIG_fail; | |
10245 | arg6->Add(*s); | |
10246 | delete s; | |
10247 | Py_DECREF(item); | |
10248 | } | |
10249 | } | |
10250 | } | |
10251 | if (obj6) { | |
10252 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
10253 | if (!SWIG_IsOK(ecode7)) { | |
10254 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
10255 | } | |
10256 | arg7 = static_cast< long >(val7); | |
10257 | } | |
10258 | if (obj7) { | |
10259 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
10260 | if (!SWIG_IsOK(res8)) { | |
10261 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
10262 | } | |
10263 | if (!argp8) { | |
10264 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 10265 | } |
1bd55598 RD |
10266 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
10267 | } | |
10268 | if (obj8) { | |
d55e5bfc | 10269 | { |
1bd55598 RD |
10270 | arg9 = wxString_in_helper(obj8); |
10271 | if (arg9 == NULL) SWIG_fail; | |
10272 | temp9 = true; | |
d55e5bfc | 10273 | } |
1bd55598 RD |
10274 | } |
10275 | { | |
10276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10277 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
10278 | wxPyEndAllowThreads(__tstate); | |
10279 | if (PyErr_Occurred()) SWIG_fail; | |
10280 | } | |
10281 | { | |
10282 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10283 | } | |
10284 | { | |
10285 | if (temp6) delete arg6; | |
10286 | } | |
10287 | { | |
10288 | if (temp9) | |
10289 | delete arg9; | |
10290 | } | |
10291 | return resultobj; | |
10292 | fail: | |
10293 | { | |
10294 | if (temp6) delete arg6; | |
10295 | } | |
10296 | { | |
10297 | if (temp9) | |
10298 | delete arg9; | |
10299 | } | |
10300 | return NULL; | |
10301 | } | |
10302 | ||
10303 | ||
10304 | SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10305 | PyObject *resultobj = 0; | |
10306 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
50f151d7 | 10307 | unsigned int arg2 ; |
1bd55598 RD |
10308 | bool result; |
10309 | void *argp1 = 0 ; | |
10310 | int res1 = 0 ; | |
50f151d7 | 10311 | unsigned int val2 ; |
1bd55598 RD |
10312 | int ecode2 = 0 ; |
10313 | PyObject * obj0 = 0 ; | |
10314 | PyObject * obj1 = 0 ; | |
10315 | char * kwnames[] = { | |
10316 | (char *) "self",(char *) "index", NULL | |
10317 | }; | |
10318 | ||
10319 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail; | |
10320 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10321 | if (!SWIG_IsOK(res1)) { | |
10322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10323 | } | |
10324 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
50f151d7 | 10325 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
1bd55598 | 10326 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 10327 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'"); |
1bd55598 | 10328 | } |
50f151d7 | 10329 | arg2 = static_cast< unsigned int >(val2); |
1bd55598 RD |
10330 | { |
10331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10332 | result = (bool)(arg1)->IsChecked(arg2); | |
10333 | wxPyEndAllowThreads(__tstate); | |
10334 | if (PyErr_Occurred()) SWIG_fail; | |
10335 | } | |
10336 | { | |
10337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10338 | } | |
10339 | return resultobj; | |
10340 | fail: | |
10341 | return NULL; | |
10342 | } | |
10343 | ||
10344 | ||
10345 | SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10346 | PyObject *resultobj = 0; | |
10347 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
50f151d7 | 10348 | unsigned int arg2 ; |
1bd55598 RD |
10349 | int arg3 = (int) true ; |
10350 | void *argp1 = 0 ; | |
10351 | int res1 = 0 ; | |
50f151d7 | 10352 | unsigned int val2 ; |
1bd55598 RD |
10353 | int ecode2 = 0 ; |
10354 | int val3 ; | |
10355 | int ecode3 = 0 ; | |
10356 | PyObject * obj0 = 0 ; | |
10357 | PyObject * obj1 = 0 ; | |
10358 | PyObject * obj2 = 0 ; | |
10359 | char * kwnames[] = { | |
10360 | (char *) "self",(char *) "index",(char *) "check", NULL | |
10361 | }; | |
10362 | ||
10363 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10364 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10365 | if (!SWIG_IsOK(res1)) { | |
10366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10367 | } | |
10368 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
50f151d7 | 10369 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
1bd55598 | 10370 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 10371 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'"); |
1bd55598 | 10372 | } |
50f151d7 | 10373 | arg2 = static_cast< unsigned int >(val2); |
1bd55598 RD |
10374 | if (obj2) { |
10375 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10376 | if (!SWIG_IsOK(ecode3)) { | |
10377 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'"); | |
10378 | } | |
10379 | arg3 = static_cast< int >(val3); | |
10380 | } | |
10381 | { | |
10382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10383 | (arg1)->Check(arg2,arg3); | |
10384 | wxPyEndAllowThreads(__tstate); | |
10385 | if (PyErr_Occurred()) SWIG_fail; | |
10386 | } | |
10387 | resultobj = SWIG_Py_Void(); | |
10388 | return resultobj; | |
10389 | fail: | |
10390 | return NULL; | |
d55e5bfc RD |
10391 | } |
10392 | ||
10393 | ||
1bd55598 RD |
10394 | SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10395 | PyObject *obj; | |
10396 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10397 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj)); | |
10398 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10399 | } |
10400 | ||
1bd55598 RD |
10401 | SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10402 | return SWIG_Python_InitShadowInstance(args); | |
10403 | } | |
d55e5bfc | 10404 | |
1bd55598 RD |
10405 | SWIGINTERN int TextCtrlNameStr_set(PyObject *) { |
10406 | SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only."); | |
10407 | return 1; | |
d55e5bfc RD |
10408 | } |
10409 | ||
10410 | ||
1bd55598 RD |
10411 | SWIGINTERN PyObject *TextCtrlNameStr_get(void) { |
10412 | PyObject *pyobj = 0; | |
10413 | ||
10414 | { | |
d55e5bfc | 10415 | #if wxUSE_UNICODE |
1bd55598 | 10416 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); |
d55e5bfc | 10417 | #else |
1bd55598 | 10418 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); |
d55e5bfc | 10419 | #endif |
1bd55598 RD |
10420 | } |
10421 | return pyobj; | |
10422 | } | |
10423 | ||
10424 | ||
10425 | SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10426 | PyObject *resultobj = 0; | |
10427 | wxColour const &arg1_defvalue = wxNullColour ; | |
10428 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
10429 | wxColour const &arg2_defvalue = wxNullColour ; | |
10430 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
10431 | wxFont const &arg3_defvalue = wxNullFont ; | |
10432 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
10433 | wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; | |
10434 | wxTextAttr *result = 0 ; | |
10435 | wxColour temp1 ; | |
10436 | wxColour temp2 ; | |
10437 | void *argp3 = 0 ; | |
10438 | int res3 = 0 ; | |
10439 | int val4 ; | |
10440 | int ecode4 = 0 ; | |
10441 | PyObject * obj0 = 0 ; | |
10442 | PyObject * obj1 = 0 ; | |
10443 | PyObject * obj2 = 0 ; | |
10444 | PyObject * obj3 = 0 ; | |
10445 | char * kwnames[] = { | |
10446 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
10447 | }; | |
10448 | ||
10449 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10450 | if (obj0) { | |
d55e5bfc | 10451 | { |
1bd55598 RD |
10452 | arg1 = &temp1; |
10453 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
d55e5bfc | 10454 | } |
1bd55598 RD |
10455 | } |
10456 | if (obj1) { | |
d55e5bfc | 10457 | { |
1bd55598 RD |
10458 | arg2 = &temp2; |
10459 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 10460 | } |
1bd55598 RD |
10461 | } |
10462 | if (obj2) { | |
10463 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
10464 | if (!SWIG_IsOK(res3)) { | |
10465 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d55e5bfc | 10466 | } |
1bd55598 RD |
10467 | if (!argp3) { |
10468 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d55e5bfc | 10469 | } |
1bd55598 RD |
10470 | arg3 = reinterpret_cast< wxFont * >(argp3); |
10471 | } | |
10472 | if (obj3) { | |
10473 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10474 | if (!SWIG_IsOK(ecode4)) { | |
10475 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'"); | |
10476 | } | |
10477 | arg4 = static_cast< wxTextAttrAlignment >(val4); | |
10478 | } | |
10479 | { | |
10480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10481 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4); | |
10482 | wxPyEndAllowThreads(__tstate); | |
10483 | if (PyErr_Occurred()) SWIG_fail; | |
10484 | } | |
10485 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 ); | |
10486 | return resultobj; | |
10487 | fail: | |
10488 | return NULL; | |
d55e5bfc RD |
10489 | } |
10490 | ||
10491 | ||
1bd55598 RD |
10492 | SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10493 | PyObject *resultobj = 0; | |
10494 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10495 | void *argp1 = 0 ; | |
10496 | int res1 = 0 ; | |
10497 | PyObject *swig_obj[1] ; | |
10498 | ||
10499 | if (!args) SWIG_fail; | |
10500 | swig_obj[0] = args; | |
10501 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 ); | |
10502 | if (!SWIG_IsOK(res1)) { | |
10503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10504 | } | |
10505 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10506 | { | |
10507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10508 | delete arg1; | |
d55e5bfc | 10509 | |
1bd55598 RD |
10510 | wxPyEndAllowThreads(__tstate); |
10511 | if (PyErr_Occurred()) SWIG_fail; | |
10512 | } | |
10513 | resultobj = SWIG_Py_Void(); | |
10514 | return resultobj; | |
10515 | fail: | |
10516 | return NULL; | |
d55e5bfc RD |
10517 | } |
10518 | ||
10519 | ||
1bd55598 RD |
10520 | SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10521 | PyObject *resultobj = 0; | |
10522 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10523 | void *argp1 = 0 ; | |
10524 | int res1 = 0 ; | |
10525 | PyObject *swig_obj[1] ; | |
10526 | ||
10527 | if (!args) SWIG_fail; | |
10528 | swig_obj[0] = args; | |
10529 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10530 | if (!SWIG_IsOK(res1)) { | |
10531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10532 | } | |
10533 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10534 | { | |
10535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10536 | (arg1)->Init(); | |
10537 | wxPyEndAllowThreads(__tstate); | |
10538 | if (PyErr_Occurred()) SWIG_fail; | |
10539 | } | |
10540 | resultobj = SWIG_Py_Void(); | |
10541 | return resultobj; | |
10542 | fail: | |
10543 | return NULL; | |
10544 | } | |
10545 | ||
10546 | ||
2131d850 RD |
10547 | SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10548 | PyObject *resultobj = 0; | |
10549 | wxTextAttr *arg1 = 0 ; | |
10550 | wxTextAttr *arg2 = 0 ; | |
10551 | wxTextAttr result; | |
10552 | void *argp1 = 0 ; | |
10553 | int res1 = 0 ; | |
10554 | void *argp2 = 0 ; | |
10555 | int res2 = 0 ; | |
10556 | PyObject * obj0 = 0 ; | |
10557 | PyObject * obj1 = 0 ; | |
10558 | char * kwnames[] = { | |
10559 | (char *) "base",(char *) "overlay", NULL | |
10560 | }; | |
10561 | ||
10562 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail; | |
10563 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
10564 | if (!SWIG_IsOK(res1)) { | |
10565 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
10566 | } | |
10567 | if (!argp1) { | |
10568 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
10569 | } | |
10570 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10571 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
10572 | if (!SWIG_IsOK(res2)) { | |
10573 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
10574 | } | |
10575 | if (!argp2) { | |
10576 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
10577 | } | |
10578 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
10579 | { | |
10580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10581 | result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2); | |
10582 | wxPyEndAllowThreads(__tstate); | |
10583 | if (PyErr_Occurred()) SWIG_fail; | |
10584 | } | |
10585 | resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 ); | |
10586 | return resultobj; | |
10587 | fail: | |
10588 | return NULL; | |
10589 | } | |
10590 | ||
10591 | ||
1bd55598 RD |
10592 | SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10593 | PyObject *resultobj = 0; | |
10594 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10595 | wxColour *arg2 = 0 ; | |
10596 | void *argp1 = 0 ; | |
10597 | int res1 = 0 ; | |
10598 | wxColour temp2 ; | |
10599 | PyObject * obj0 = 0 ; | |
10600 | PyObject * obj1 = 0 ; | |
10601 | char * kwnames[] = { | |
10602 | (char *) "self",(char *) "colText", NULL | |
10603 | }; | |
10604 | ||
10605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
10606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10607 | if (!SWIG_IsOK(res1)) { | |
10608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10609 | } | |
10610 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10611 | { | |
10612 | arg2 = &temp2; | |
10613 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10614 | } | |
10615 | { | |
10616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10617 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
10618 | wxPyEndAllowThreads(__tstate); | |
10619 | if (PyErr_Occurred()) SWIG_fail; | |
10620 | } | |
10621 | resultobj = SWIG_Py_Void(); | |
10622 | return resultobj; | |
10623 | fail: | |
10624 | return NULL; | |
10625 | } | |
10626 | ||
10627 | ||
10628 | SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10629 | PyObject *resultobj = 0; | |
10630 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10631 | wxColour *arg2 = 0 ; | |
10632 | void *argp1 = 0 ; | |
10633 | int res1 = 0 ; | |
10634 | wxColour temp2 ; | |
10635 | PyObject * obj0 = 0 ; | |
10636 | PyObject * obj1 = 0 ; | |
10637 | char * kwnames[] = { | |
10638 | (char *) "self",(char *) "colBack", NULL | |
10639 | }; | |
10640 | ||
10641 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
10642 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10643 | if (!SWIG_IsOK(res1)) { | |
10644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10645 | } | |
10646 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10647 | { | |
10648 | arg2 = &temp2; | |
10649 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10650 | } | |
10651 | { | |
10652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10653 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
10654 | wxPyEndAllowThreads(__tstate); | |
10655 | if (PyErr_Occurred()) SWIG_fail; | |
10656 | } | |
10657 | resultobj = SWIG_Py_Void(); | |
10658 | return resultobj; | |
10659 | fail: | |
10660 | return NULL; | |
10661 | } | |
10662 | ||
10663 | ||
10664 | SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10665 | PyObject *resultobj = 0; | |
10666 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10667 | wxFont *arg2 = 0 ; | |
10668 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
10669 | void *argp1 = 0 ; | |
10670 | int res1 = 0 ; | |
10671 | void *argp2 = 0 ; | |
10672 | int res2 = 0 ; | |
10673 | long val3 ; | |
10674 | int ecode3 = 0 ; | |
10675 | PyObject * obj0 = 0 ; | |
10676 | PyObject * obj1 = 0 ; | |
10677 | PyObject * obj2 = 0 ; | |
10678 | char * kwnames[] = { | |
10679 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
10680 | }; | |
10681 | ||
10682 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10683 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10684 | if (!SWIG_IsOK(res1)) { | |
10685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10686 | } | |
10687 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10688 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
10689 | if (!SWIG_IsOK(res2)) { | |
10690 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10691 | } | |
10692 | if (!argp2) { | |
10693 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10694 | } | |
10695 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
10696 | if (obj2) { | |
10697 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
10698 | if (!SWIG_IsOK(ecode3)) { | |
10699 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'"); | |
10700 | } | |
10701 | arg3 = static_cast< long >(val3); | |
10702 | } | |
10703 | { | |
10704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10705 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
10706 | wxPyEndAllowThreads(__tstate); | |
10707 | if (PyErr_Occurred()) SWIG_fail; | |
10708 | } | |
10709 | resultobj = SWIG_Py_Void(); | |
10710 | return resultobj; | |
10711 | fail: | |
10712 | return NULL; | |
10713 | } | |
10714 | ||
10715 | ||
10716 | SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10717 | PyObject *resultobj = 0; | |
10718 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10719 | wxTextAttrAlignment arg2 ; | |
10720 | void *argp1 = 0 ; | |
10721 | int res1 = 0 ; | |
10722 | int val2 ; | |
10723 | int ecode2 = 0 ; | |
10724 | PyObject * obj0 = 0 ; | |
10725 | PyObject * obj1 = 0 ; | |
10726 | char * kwnames[] = { | |
10727 | (char *) "self",(char *) "alignment", NULL | |
10728 | }; | |
10729 | ||
10730 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
10731 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10732 | if (!SWIG_IsOK(res1)) { | |
10733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10734 | } | |
10735 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10736 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10737 | if (!SWIG_IsOK(ecode2)) { | |
10738 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
10739 | } | |
10740 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
10741 | { | |
10742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10743 | (arg1)->SetAlignment(arg2); | |
10744 | wxPyEndAllowThreads(__tstate); | |
10745 | if (PyErr_Occurred()) SWIG_fail; | |
10746 | } | |
10747 | resultobj = SWIG_Py_Void(); | |
10748 | return resultobj; | |
10749 | fail: | |
10750 | return NULL; | |
10751 | } | |
10752 | ||
10753 | ||
10754 | SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10755 | PyObject *resultobj = 0; | |
10756 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10757 | wxArrayInt *arg2 = 0 ; | |
10758 | void *argp1 = 0 ; | |
10759 | int res1 = 0 ; | |
10760 | bool temp2 = false ; | |
10761 | PyObject * obj0 = 0 ; | |
10762 | PyObject * obj1 = 0 ; | |
10763 | char * kwnames[] = { | |
10764 | (char *) "self",(char *) "tabs", NULL | |
10765 | }; | |
10766 | ||
10767 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail; | |
10768 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10769 | if (!SWIG_IsOK(res1)) { | |
10770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10771 | } | |
10772 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10773 | { | |
10774 | if (! PySequence_Check(obj1)) { | |
10775 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
10776 | SWIG_fail; | |
10777 | } | |
10778 | arg2 = new wxArrayInt; | |
10779 | temp2 = true; | |
10780 | int i, len=PySequence_Length(obj1); | |
10781 | for (i=0; i<len; i++) { | |
10782 | PyObject* item = PySequence_GetItem(obj1, i); | |
10783 | PyObject* number = PyNumber_Int(item); | |
ec8a7755 RD |
10784 | if (!number) { |
10785 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
10786 | SWIG_fail; | |
10787 | } | |
1bd55598 RD |
10788 | arg2->Add(PyInt_AS_LONG(number)); |
10789 | Py_DECREF(item); | |
10790 | Py_DECREF(number); | |
d55e5bfc | 10791 | } |
1bd55598 RD |
10792 | } |
10793 | { | |
10794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10795 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
10796 | wxPyEndAllowThreads(__tstate); | |
10797 | if (PyErr_Occurred()) SWIG_fail; | |
10798 | } | |
10799 | resultobj = SWIG_Py_Void(); | |
10800 | { | |
10801 | if (temp2) delete arg2; | |
10802 | } | |
10803 | return resultobj; | |
10804 | fail: | |
10805 | { | |
10806 | if (temp2) delete arg2; | |
10807 | } | |
10808 | return NULL; | |
10809 | } | |
10810 | ||
10811 | ||
10812 | SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10813 | PyObject *resultobj = 0; | |
10814 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10815 | int arg2 ; | |
10816 | int arg3 = (int) 0 ; | |
10817 | void *argp1 = 0 ; | |
10818 | int res1 = 0 ; | |
10819 | int val2 ; | |
10820 | int ecode2 = 0 ; | |
10821 | int val3 ; | |
10822 | int ecode3 = 0 ; | |
10823 | PyObject * obj0 = 0 ; | |
10824 | PyObject * obj1 = 0 ; | |
10825 | PyObject * obj2 = 0 ; | |
10826 | char * kwnames[] = { | |
10827 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL | |
10828 | }; | |
10829 | ||
10830 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10831 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10832 | if (!SWIG_IsOK(res1)) { | |
10833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10834 | } | |
10835 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10836 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10837 | if (!SWIG_IsOK(ecode2)) { | |
10838 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'"); | |
10839 | } | |
10840 | arg2 = static_cast< int >(val2); | |
10841 | if (obj2) { | |
10842 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10843 | if (!SWIG_IsOK(ecode3)) { | |
10844 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'"); | |
10845 | } | |
10846 | arg3 = static_cast< int >(val3); | |
10847 | } | |
10848 | { | |
10849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10850 | (arg1)->SetLeftIndent(arg2,arg3); | |
10851 | wxPyEndAllowThreads(__tstate); | |
10852 | if (PyErr_Occurred()) SWIG_fail; | |
10853 | } | |
10854 | resultobj = SWIG_Py_Void(); | |
10855 | return resultobj; | |
10856 | fail: | |
10857 | return NULL; | |
10858 | } | |
10859 | ||
10860 | ||
10861 | SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10862 | PyObject *resultobj = 0; | |
10863 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10864 | int arg2 ; | |
10865 | void *argp1 = 0 ; | |
10866 | int res1 = 0 ; | |
10867 | int val2 ; | |
10868 | int ecode2 = 0 ; | |
10869 | PyObject * obj0 = 0 ; | |
10870 | PyObject * obj1 = 0 ; | |
10871 | char * kwnames[] = { | |
10872 | (char *) "self",(char *) "indent", NULL | |
10873 | }; | |
10874 | ||
10875 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10876 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10877 | if (!SWIG_IsOK(res1)) { | |
10878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10879 | } | |
10880 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10881 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10882 | if (!SWIG_IsOK(ecode2)) { | |
10883 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'"); | |
10884 | } | |
10885 | arg2 = static_cast< int >(val2); | |
10886 | { | |
10887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10888 | (arg1)->SetRightIndent(arg2); | |
10889 | wxPyEndAllowThreads(__tstate); | |
10890 | if (PyErr_Occurred()) SWIG_fail; | |
10891 | } | |
10892 | resultobj = SWIG_Py_Void(); | |
10893 | return resultobj; | |
10894 | fail: | |
10895 | return NULL; | |
10896 | } | |
10897 | ||
10898 | ||
10899 | SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10900 | PyObject *resultobj = 0; | |
10901 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10902 | long arg2 ; | |
10903 | void *argp1 = 0 ; | |
10904 | int res1 = 0 ; | |
10905 | long val2 ; | |
10906 | int ecode2 = 0 ; | |
10907 | PyObject * obj0 = 0 ; | |
10908 | PyObject * obj1 = 0 ; | |
10909 | char * kwnames[] = { | |
10910 | (char *) "self",(char *) "flags", NULL | |
10911 | }; | |
10912 | ||
10913 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
10914 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10915 | if (!SWIG_IsOK(res1)) { | |
10916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10917 | } | |
10918 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10919 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10920 | if (!SWIG_IsOK(ecode2)) { | |
10921 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'"); | |
10922 | } | |
10923 | arg2 = static_cast< long >(val2); | |
10924 | { | |
10925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10926 | (arg1)->SetFlags(arg2); | |
10927 | wxPyEndAllowThreads(__tstate); | |
10928 | if (PyErr_Occurred()) SWIG_fail; | |
10929 | } | |
10930 | resultobj = SWIG_Py_Void(); | |
10931 | return resultobj; | |
10932 | fail: | |
10933 | return NULL; | |
d55e5bfc RD |
10934 | } |
10935 | ||
10936 | ||
1bd55598 RD |
10937 | SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10938 | PyObject *resultobj = 0; | |
10939 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10940 | bool result; | |
10941 | void *argp1 = 0 ; | |
10942 | int res1 = 0 ; | |
10943 | PyObject *swig_obj[1] ; | |
10944 | ||
10945 | if (!args) SWIG_fail; | |
10946 | swig_obj[0] = args; | |
10947 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10948 | if (!SWIG_IsOK(res1)) { | |
10949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10950 | } | |
10951 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10952 | { | |
10953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10954 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
10955 | wxPyEndAllowThreads(__tstate); | |
10956 | if (PyErr_Occurred()) SWIG_fail; | |
10957 | } | |
10958 | { | |
10959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10960 | } | |
10961 | return resultobj; | |
10962 | fail: | |
10963 | return NULL; | |
d55e5bfc RD |
10964 | } |
10965 | ||
10966 | ||
1bd55598 RD |
10967 | SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10968 | PyObject *resultobj = 0; | |
10969 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10970 | bool result; | |
10971 | void *argp1 = 0 ; | |
10972 | int res1 = 0 ; | |
10973 | PyObject *swig_obj[1] ; | |
10974 | ||
10975 | if (!args) SWIG_fail; | |
10976 | swig_obj[0] = args; | |
10977 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10978 | if (!SWIG_IsOK(res1)) { | |
10979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10980 | } | |
10981 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10982 | { | |
10983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10984 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
10985 | wxPyEndAllowThreads(__tstate); | |
10986 | if (PyErr_Occurred()) SWIG_fail; | |
10987 | } | |
10988 | { | |
10989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10990 | } | |
10991 | return resultobj; | |
10992 | fail: | |
10993 | return NULL; | |
d55e5bfc RD |
10994 | } |
10995 | ||
10996 | ||
1bd55598 RD |
10997 | SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10998 | PyObject *resultobj = 0; | |
10999 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11000 | bool result; | |
11001 | void *argp1 = 0 ; | |
11002 | int res1 = 0 ; | |
11003 | PyObject *swig_obj[1] ; | |
11004 | ||
11005 | if (!args) SWIG_fail; | |
11006 | swig_obj[0] = args; | |
11007 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11008 | if (!SWIG_IsOK(res1)) { | |
11009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11010 | } | |
11011 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11012 | { | |
11013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11014 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
11015 | wxPyEndAllowThreads(__tstate); | |
11016 | if (PyErr_Occurred()) SWIG_fail; | |
11017 | } | |
11018 | { | |
11019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11020 | } | |
11021 | return resultobj; | |
11022 | fail: | |
11023 | return NULL; | |
d55e5bfc RD |
11024 | } |
11025 | ||
11026 | ||
1bd55598 RD |
11027 | SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11028 | PyObject *resultobj = 0; | |
11029 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11030 | bool result; | |
11031 | void *argp1 = 0 ; | |
11032 | int res1 = 0 ; | |
11033 | PyObject *swig_obj[1] ; | |
11034 | ||
11035 | if (!args) SWIG_fail; | |
11036 | swig_obj[0] = args; | |
11037 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11038 | if (!SWIG_IsOK(res1)) { | |
11039 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11040 | } | |
11041 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11042 | { | |
11043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11044 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
11045 | wxPyEndAllowThreads(__tstate); | |
11046 | if (PyErr_Occurred()) SWIG_fail; | |
11047 | } | |
11048 | { | |
11049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11050 | } | |
11051 | return resultobj; | |
11052 | fail: | |
11053 | return NULL; | |
d55e5bfc RD |
11054 | } |
11055 | ||
11056 | ||
1bd55598 RD |
11057 | SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11058 | PyObject *resultobj = 0; | |
11059 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11060 | bool result; | |
11061 | void *argp1 = 0 ; | |
11062 | int res1 = 0 ; | |
11063 | PyObject *swig_obj[1] ; | |
11064 | ||
11065 | if (!args) SWIG_fail; | |
11066 | swig_obj[0] = args; | |
11067 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11068 | if (!SWIG_IsOK(res1)) { | |
11069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11070 | } | |
11071 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11072 | { | |
11073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11074 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
11075 | wxPyEndAllowThreads(__tstate); | |
11076 | if (PyErr_Occurred()) SWIG_fail; | |
11077 | } | |
11078 | { | |
11079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11080 | } | |
11081 | return resultobj; | |
11082 | fail: | |
11083 | return NULL; | |
d55e5bfc RD |
11084 | } |
11085 | ||
11086 | ||
1bd55598 RD |
11087 | SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11088 | PyObject *resultobj = 0; | |
11089 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11090 | bool result; | |
11091 | void *argp1 = 0 ; | |
11092 | int res1 = 0 ; | |
11093 | PyObject *swig_obj[1] ; | |
11094 | ||
11095 | if (!args) SWIG_fail; | |
11096 | swig_obj[0] = args; | |
11097 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11098 | if (!SWIG_IsOK(res1)) { | |
11099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11100 | } | |
11101 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11102 | { | |
11103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11104 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
11105 | wxPyEndAllowThreads(__tstate); | |
11106 | if (PyErr_Occurred()) SWIG_fail; | |
11107 | } | |
11108 | { | |
11109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11110 | } | |
11111 | return resultobj; | |
11112 | fail: | |
11113 | return NULL; | |
d55e5bfc RD |
11114 | } |
11115 | ||
11116 | ||
1bd55598 RD |
11117 | SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11118 | PyObject *resultobj = 0; | |
11119 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11120 | bool result; | |
11121 | void *argp1 = 0 ; | |
11122 | int res1 = 0 ; | |
11123 | PyObject *swig_obj[1] ; | |
11124 | ||
11125 | if (!args) SWIG_fail; | |
11126 | swig_obj[0] = args; | |
11127 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11128 | if (!SWIG_IsOK(res1)) { | |
11129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11130 | } | |
11131 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11132 | { | |
11133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11134 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
11135 | wxPyEndAllowThreads(__tstate); | |
11136 | if (PyErr_Occurred()) SWIG_fail; | |
11137 | } | |
11138 | { | |
11139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11140 | } | |
11141 | return resultobj; | |
11142 | fail: | |
11143 | return NULL; | |
11144 | } | |
11145 | ||
11146 | ||
11147 | SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11148 | PyObject *resultobj = 0; | |
11149 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11150 | long arg2 ; | |
11151 | bool result; | |
11152 | void *argp1 = 0 ; | |
11153 | int res1 = 0 ; | |
11154 | long val2 ; | |
11155 | int ecode2 = 0 ; | |
11156 | PyObject * obj0 = 0 ; | |
11157 | PyObject * obj1 = 0 ; | |
11158 | char * kwnames[] = { | |
11159 | (char *) "self",(char *) "flag", NULL | |
11160 | }; | |
11161 | ||
11162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail; | |
11163 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11164 | if (!SWIG_IsOK(res1)) { | |
11165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11166 | } | |
11167 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11168 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
11169 | if (!SWIG_IsOK(ecode2)) { | |
11170 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'"); | |
11171 | } | |
11172 | arg2 = static_cast< long >(val2); | |
11173 | { | |
11174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11175 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
11176 | wxPyEndAllowThreads(__tstate); | |
11177 | if (PyErr_Occurred()) SWIG_fail; | |
11178 | } | |
11179 | { | |
11180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11181 | } | |
11182 | return resultobj; | |
11183 | fail: | |
11184 | return NULL; | |
d55e5bfc RD |
11185 | } |
11186 | ||
11187 | ||
1bd55598 RD |
11188 | SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11189 | PyObject *resultobj = 0; | |
11190 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11191 | wxColour *result = 0 ; | |
11192 | void *argp1 = 0 ; | |
11193 | int res1 = 0 ; | |
11194 | PyObject *swig_obj[1] ; | |
11195 | ||
11196 | if (!args) SWIG_fail; | |
11197 | swig_obj[0] = args; | |
11198 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11199 | if (!SWIG_IsOK(res1)) { | |
11200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11201 | } | |
11202 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11203 | { | |
11204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 11205 | { |
1bd55598 RD |
11206 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); |
11207 | result = (wxColour *) &_result_ref; | |
d55e5bfc | 11208 | } |
1bd55598 RD |
11209 | wxPyEndAllowThreads(__tstate); |
11210 | if (PyErr_Occurred()) SWIG_fail; | |
11211 | } | |
11212 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
11213 | return resultobj; | |
11214 | fail: | |
11215 | return NULL; | |
d55e5bfc RD |
11216 | } |
11217 | ||
11218 | ||
1bd55598 RD |
11219 | SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11220 | PyObject *resultobj = 0; | |
11221 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11222 | wxColour *result = 0 ; | |
11223 | void *argp1 = 0 ; | |
11224 | int res1 = 0 ; | |
11225 | PyObject *swig_obj[1] ; | |
11226 | ||
11227 | if (!args) SWIG_fail; | |
11228 | swig_obj[0] = args; | |
11229 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11230 | if (!SWIG_IsOK(res1)) { | |
11231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11232 | } | |
11233 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11234 | { | |
11235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 11236 | { |
1bd55598 RD |
11237 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); |
11238 | result = (wxColour *) &_result_ref; | |
d55e5bfc | 11239 | } |
1bd55598 RD |
11240 | wxPyEndAllowThreads(__tstate); |
11241 | if (PyErr_Occurred()) SWIG_fail; | |
11242 | } | |
11243 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
11244 | return resultobj; | |
11245 | fail: | |
11246 | return NULL; | |
d55e5bfc RD |
11247 | } |
11248 | ||
11249 | ||
1bd55598 RD |
11250 | SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11251 | PyObject *resultobj = 0; | |
11252 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11253 | wxFont *result = 0 ; | |
11254 | void *argp1 = 0 ; | |
11255 | int res1 = 0 ; | |
11256 | PyObject *swig_obj[1] ; | |
11257 | ||
11258 | if (!args) SWIG_fail; | |
11259 | swig_obj[0] = args; | |
11260 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11261 | if (!SWIG_IsOK(res1)) { | |
11262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11263 | } | |
11264 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11265 | { | |
11266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 11267 | { |
1bd55598 RD |
11268 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); |
11269 | result = (wxFont *) &_result_ref; | |
d55e5bfc | 11270 | } |
1bd55598 RD |
11271 | wxPyEndAllowThreads(__tstate); |
11272 | if (PyErr_Occurred()) SWIG_fail; | |
11273 | } | |
11274 | { | |
11275 | wxFont* resultptr = new wxFont(*result); | |
11276 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
11277 | } | |
11278 | return resultobj; | |
11279 | fail: | |
11280 | return NULL; | |
d55e5bfc RD |
11281 | } |
11282 | ||
11283 | ||
1bd55598 RD |
11284 | SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11285 | PyObject *resultobj = 0; | |
11286 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11287 | wxTextAttrAlignment result; | |
11288 | void *argp1 = 0 ; | |
11289 | int res1 = 0 ; | |
11290 | PyObject *swig_obj[1] ; | |
11291 | ||
11292 | if (!args) SWIG_fail; | |
11293 | swig_obj[0] = args; | |
11294 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11295 | if (!SWIG_IsOK(res1)) { | |
11296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11297 | } | |
11298 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11299 | { | |
11300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11301 | result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment(); | |
11302 | wxPyEndAllowThreads(__tstate); | |
11303 | if (PyErr_Occurred()) SWIG_fail; | |
11304 | } | |
11305 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11306 | return resultobj; | |
11307 | fail: | |
11308 | return NULL; | |
d55e5bfc RD |
11309 | } |
11310 | ||
11311 | ||
1bd55598 RD |
11312 | SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11313 | PyObject *resultobj = 0; | |
11314 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11315 | wxArrayInt *result = 0 ; | |
11316 | void *argp1 = 0 ; | |
11317 | int res1 = 0 ; | |
11318 | PyObject *swig_obj[1] ; | |
11319 | ||
11320 | if (!args) SWIG_fail; | |
11321 | swig_obj[0] = args; | |
11322 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11323 | if (!SWIG_IsOK(res1)) { | |
11324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11325 | } | |
11326 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11327 | { | |
11328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11329 | { |
1bd55598 RD |
11330 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); |
11331 | result = (wxArrayInt *) &_result_ref; | |
36ed4f51 | 11332 | } |
1bd55598 RD |
11333 | wxPyEndAllowThreads(__tstate); |
11334 | if (PyErr_Occurred()) SWIG_fail; | |
11335 | } | |
11336 | { | |
b39fe951 | 11337 | resultobj = wxArrayInt2PyList_helper(*result); |
1bd55598 RD |
11338 | } |
11339 | return resultobj; | |
11340 | fail: | |
11341 | return NULL; | |
d55e5bfc RD |
11342 | } |
11343 | ||
11344 | ||
1bd55598 RD |
11345 | SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11346 | PyObject *resultobj = 0; | |
11347 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11348 | long result; | |
11349 | void *argp1 = 0 ; | |
11350 | int res1 = 0 ; | |
11351 | PyObject *swig_obj[1] ; | |
11352 | ||
11353 | if (!args) SWIG_fail; | |
11354 | swig_obj[0] = args; | |
11355 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11356 | if (!SWIG_IsOK(res1)) { | |
11357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11358 | } | |
11359 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11360 | { | |
11361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11362 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
11363 | wxPyEndAllowThreads(__tstate); | |
11364 | if (PyErr_Occurred()) SWIG_fail; | |
11365 | } | |
11366 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11367 | return resultobj; | |
11368 | fail: | |
11369 | return NULL; | |
d55e5bfc RD |
11370 | } |
11371 | ||
11372 | ||
1bd55598 RD |
11373 | SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11374 | PyObject *resultobj = 0; | |
11375 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11376 | long result; | |
11377 | void *argp1 = 0 ; | |
11378 | int res1 = 0 ; | |
11379 | PyObject *swig_obj[1] ; | |
11380 | ||
11381 | if (!args) SWIG_fail; | |
11382 | swig_obj[0] = args; | |
11383 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11384 | if (!SWIG_IsOK(res1)) { | |
11385 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11386 | } | |
11387 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11388 | { | |
11389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11390 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
11391 | wxPyEndAllowThreads(__tstate); | |
11392 | if (PyErr_Occurred()) SWIG_fail; | |
11393 | } | |
11394 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11395 | return resultobj; | |
11396 | fail: | |
11397 | return NULL; | |
d55e5bfc RD |
11398 | } |
11399 | ||
11400 | ||
1bd55598 RD |
11401 | SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11402 | PyObject *resultobj = 0; | |
11403 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11404 | long result; | |
11405 | void *argp1 = 0 ; | |
11406 | int res1 = 0 ; | |
11407 | PyObject *swig_obj[1] ; | |
11408 | ||
11409 | if (!args) SWIG_fail; | |
11410 | swig_obj[0] = args; | |
11411 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11412 | if (!SWIG_IsOK(res1)) { | |
11413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11414 | } | |
11415 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11416 | { | |
11417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11418 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
11419 | wxPyEndAllowThreads(__tstate); | |
11420 | if (PyErr_Occurred()) SWIG_fail; | |
11421 | } | |
11422 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11423 | return resultobj; | |
11424 | fail: | |
11425 | return NULL; | |
d55e5bfc RD |
11426 | } |
11427 | ||
11428 | ||
1bd55598 RD |
11429 | SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11430 | PyObject *resultobj = 0; | |
11431 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11432 | long result; | |
11433 | void *argp1 = 0 ; | |
11434 | int res1 = 0 ; | |
11435 | PyObject *swig_obj[1] ; | |
11436 | ||
11437 | if (!args) SWIG_fail; | |
11438 | swig_obj[0] = args; | |
11439 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11440 | if (!SWIG_IsOK(res1)) { | |
11441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11442 | } | |
11443 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11444 | { | |
11445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11446 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
11447 | wxPyEndAllowThreads(__tstate); | |
11448 | if (PyErr_Occurred()) SWIG_fail; | |
11449 | } | |
11450 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11451 | return resultobj; | |
11452 | fail: | |
11453 | return NULL; | |
d55e5bfc RD |
11454 | } |
11455 | ||
11456 | ||
1bd55598 RD |
11457 | SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11458 | PyObject *resultobj = 0; | |
11459 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11460 | bool result; | |
11461 | void *argp1 = 0 ; | |
11462 | int res1 = 0 ; | |
11463 | PyObject *swig_obj[1] ; | |
11464 | ||
11465 | if (!args) SWIG_fail; | |
11466 | swig_obj[0] = args; | |
11467 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11468 | if (!SWIG_IsOK(res1)) { | |
11469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11470 | } | |
11471 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11472 | { | |
11473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11474 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
11475 | wxPyEndAllowThreads(__tstate); | |
11476 | if (PyErr_Occurred()) SWIG_fail; | |
11477 | } | |
11478 | { | |
11479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11480 | } | |
11481 | return resultobj; | |
11482 | fail: | |
11483 | return NULL; | |
11484 | } | |
11485 | ||
11486 | ||
11487 | SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11488 | PyObject *resultobj = 0; | |
11489 | wxTextAttr *arg1 = 0 ; | |
11490 | wxTextAttr *arg2 = 0 ; | |
11491 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
11492 | wxTextAttr result; | |
11493 | void *argp1 = 0 ; | |
11494 | int res1 = 0 ; | |
11495 | void *argp2 = 0 ; | |
11496 | int res2 = 0 ; | |
11497 | void *argp3 = 0 ; | |
11498 | int res3 = 0 ; | |
11499 | PyObject * obj0 = 0 ; | |
11500 | PyObject * obj1 = 0 ; | |
11501 | PyObject * obj2 = 0 ; | |
11502 | char * kwnames[] = { | |
11503 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
11504 | }; | |
11505 | ||
11506 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11507 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
11508 | if (!SWIG_IsOK(res1)) { | |
11509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
11510 | } | |
11511 | if (!argp1) { | |
11512 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
11513 | } | |
11514 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11515 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
11516 | if (!SWIG_IsOK(res2)) { | |
11517 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
11518 | } | |
11519 | if (!argp2) { | |
11520 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
11521 | } | |
11522 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
11523 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11524 | if (!SWIG_IsOK(res3)) { | |
11525 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'"); | |
11526 | } | |
11527 | arg3 = reinterpret_cast< wxTextCtrl * >(argp3); | |
11528 | { | |
11529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11530 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
11531 | wxPyEndAllowThreads(__tstate); | |
11532 | if (PyErr_Occurred()) SWIG_fail; | |
11533 | } | |
11534 | resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 ); | |
11535 | return resultobj; | |
11536 | fail: | |
11537 | return NULL; | |
11538 | } | |
11539 | ||
11540 | ||
11541 | SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11542 | PyObject *obj; | |
11543 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11544 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj)); | |
11545 | return SWIG_Py_Void(); | |
11546 | } | |
11547 | ||
11548 | SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11549 | return SWIG_Python_InitShadowInstance(args); | |
11550 | } | |
11551 | ||
11552 | SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11553 | PyObject *resultobj = 0; | |
11554 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11555 | int arg2 = (int) -1 ; | |
11556 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11557 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11558 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11559 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11560 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11561 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11562 | long arg6 = (long) 0 ; | |
11563 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11564 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11565 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
11566 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11567 | wxTextCtrl *result = 0 ; | |
11568 | void *argp1 = 0 ; | |
11569 | int res1 = 0 ; | |
11570 | int val2 ; | |
11571 | int ecode2 = 0 ; | |
11572 | bool temp3 = false ; | |
11573 | wxPoint temp4 ; | |
11574 | wxSize temp5 ; | |
11575 | long val6 ; | |
11576 | int ecode6 = 0 ; | |
11577 | void *argp7 = 0 ; | |
11578 | int res7 = 0 ; | |
11579 | bool temp8 = false ; | |
11580 | PyObject * obj0 = 0 ; | |
11581 | PyObject * obj1 = 0 ; | |
11582 | PyObject * obj2 = 0 ; | |
11583 | PyObject * obj3 = 0 ; | |
11584 | PyObject * obj4 = 0 ; | |
11585 | PyObject * obj5 = 0 ; | |
11586 | PyObject * obj6 = 0 ; | |
11587 | PyObject * obj7 = 0 ; | |
11588 | char * kwnames[] = { | |
11589 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11590 | }; | |
11591 | ||
11592 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
11593 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
11594 | if (!SWIG_IsOK(res1)) { | |
11595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
11596 | } | |
11597 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
11598 | if (obj1) { | |
11599 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11600 | if (!SWIG_IsOK(ecode2)) { | |
11601 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'"); | |
11602 | } | |
11603 | arg2 = static_cast< int >(val2); | |
11604 | } | |
11605 | if (obj2) { | |
36ed4f51 | 11606 | { |
1bd55598 RD |
11607 | arg3 = wxString_in_helper(obj2); |
11608 | if (arg3 == NULL) SWIG_fail; | |
11609 | temp3 = true; | |
36ed4f51 | 11610 | } |
1bd55598 RD |
11611 | } |
11612 | if (obj3) { | |
36ed4f51 | 11613 | { |
1bd55598 RD |
11614 | arg4 = &temp4; |
11615 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 11616 | } |
1bd55598 RD |
11617 | } |
11618 | if (obj4) { | |
d55e5bfc | 11619 | { |
1bd55598 RD |
11620 | arg5 = &temp5; |
11621 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 11622 | } |
1bd55598 RD |
11623 | } |
11624 | if (obj5) { | |
11625 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
11626 | if (!SWIG_IsOK(ecode6)) { | |
11627 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'"); | |
11628 | } | |
11629 | arg6 = static_cast< long >(val6); | |
11630 | } | |
11631 | if (obj6) { | |
11632 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
11633 | if (!SWIG_IsOK(res7)) { | |
11634 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 11635 | } |
1bd55598 RD |
11636 | if (!argp7) { |
11637 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 11638 | } |
1bd55598 RD |
11639 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
11640 | } | |
11641 | if (obj7) { | |
d55e5bfc | 11642 | { |
1bd55598 RD |
11643 | arg8 = wxString_in_helper(obj7); |
11644 | if (arg8 == NULL) SWIG_fail; | |
11645 | temp8 = true; | |
d55e5bfc | 11646 | } |
1bd55598 RD |
11647 | } |
11648 | { | |
11649 | if (!wxPyCheckForApp()) SWIG_fail; | |
11650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11651 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11652 | wxPyEndAllowThreads(__tstate); | |
11653 | if (PyErr_Occurred()) SWIG_fail; | |
11654 | } | |
11655 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 ); | |
11656 | { | |
11657 | if (temp3) | |
11658 | delete arg3; | |
11659 | } | |
11660 | { | |
11661 | if (temp8) | |
11662 | delete arg8; | |
11663 | } | |
11664 | return resultobj; | |
11665 | fail: | |
11666 | { | |
11667 | if (temp3) | |
11668 | delete arg3; | |
11669 | } | |
11670 | { | |
11671 | if (temp8) | |
11672 | delete arg8; | |
11673 | } | |
11674 | return NULL; | |
d55e5bfc RD |
11675 | } |
11676 | ||
11677 | ||
1bd55598 RD |
11678 | SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11679 | PyObject *resultobj = 0; | |
11680 | wxTextCtrl *result = 0 ; | |
11681 | ||
11682 | if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail; | |
11683 | { | |
11684 | if (!wxPyCheckForApp()) SWIG_fail; | |
11685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11686 | result = (wxTextCtrl *)new wxTextCtrl(); | |
11687 | wxPyEndAllowThreads(__tstate); | |
11688 | if (PyErr_Occurred()) SWIG_fail; | |
11689 | } | |
11690 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 ); | |
11691 | return resultobj; | |
11692 | fail: | |
11693 | return NULL; | |
11694 | } | |
11695 | ||
11696 | ||
11697 | SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11698 | PyObject *resultobj = 0; | |
11699 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11700 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11701 | int arg3 = (int) -1 ; | |
11702 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11703 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11704 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11705 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11706 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11707 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11708 | long arg7 = (long) 0 ; | |
11709 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11710 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11711 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
11712 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11713 | bool result; | |
11714 | void *argp1 = 0 ; | |
11715 | int res1 = 0 ; | |
11716 | void *argp2 = 0 ; | |
11717 | int res2 = 0 ; | |
11718 | int val3 ; | |
11719 | int ecode3 = 0 ; | |
11720 | bool temp4 = false ; | |
11721 | wxPoint temp5 ; | |
11722 | wxSize temp6 ; | |
11723 | long val7 ; | |
11724 | int ecode7 = 0 ; | |
11725 | void *argp8 = 0 ; | |
11726 | int res8 = 0 ; | |
11727 | bool temp9 = false ; | |
11728 | PyObject * obj0 = 0 ; | |
11729 | PyObject * obj1 = 0 ; | |
11730 | PyObject * obj2 = 0 ; | |
11731 | PyObject * obj3 = 0 ; | |
11732 | PyObject * obj4 = 0 ; | |
11733 | PyObject * obj5 = 0 ; | |
11734 | PyObject * obj6 = 0 ; | |
11735 | PyObject * obj7 = 0 ; | |
11736 | PyObject * obj8 = 0 ; | |
11737 | char * kwnames[] = { | |
11738 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11739 | }; | |
11740 | ||
11741 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
11742 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11743 | if (!SWIG_IsOK(res1)) { | |
11744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
11745 | } | |
11746 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11747 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
11748 | if (!SWIG_IsOK(res2)) { | |
11749 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
11750 | } | |
11751 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
11752 | if (obj2) { | |
11753 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11754 | if (!SWIG_IsOK(ecode3)) { | |
11755 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
11756 | } | |
11757 | arg3 = static_cast< int >(val3); | |
11758 | } | |
11759 | if (obj3) { | |
d55e5bfc | 11760 | { |
1bd55598 RD |
11761 | arg4 = wxString_in_helper(obj3); |
11762 | if (arg4 == NULL) SWIG_fail; | |
11763 | temp4 = true; | |
d55e5bfc | 11764 | } |
1bd55598 RD |
11765 | } |
11766 | if (obj4) { | |
d55e5bfc | 11767 | { |
1bd55598 RD |
11768 | arg5 = &temp5; |
11769 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 11770 | } |
1bd55598 RD |
11771 | } |
11772 | if (obj5) { | |
d55e5bfc | 11773 | { |
1bd55598 RD |
11774 | arg6 = &temp6; |
11775 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 11776 | } |
1bd55598 RD |
11777 | } |
11778 | if (obj6) { | |
11779 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
11780 | if (!SWIG_IsOK(ecode7)) { | |
11781 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
11782 | } | |
11783 | arg7 = static_cast< long >(val7); | |
11784 | } | |
11785 | if (obj7) { | |
11786 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
11787 | if (!SWIG_IsOK(res8)) { | |
11788 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 11789 | } |
1bd55598 RD |
11790 | if (!argp8) { |
11791 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
11792 | } | |
11793 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
11794 | } | |
11795 | if (obj8) { | |
d55e5bfc | 11796 | { |
1bd55598 RD |
11797 | arg9 = wxString_in_helper(obj8); |
11798 | if (arg9 == NULL) SWIG_fail; | |
11799 | temp9 = true; | |
d55e5bfc | 11800 | } |
1bd55598 RD |
11801 | } |
11802 | { | |
11803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11804 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11805 | wxPyEndAllowThreads(__tstate); | |
11806 | if (PyErr_Occurred()) SWIG_fail; | |
11807 | } | |
11808 | { | |
11809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11810 | } | |
11811 | { | |
11812 | if (temp4) | |
11813 | delete arg4; | |
11814 | } | |
11815 | { | |
11816 | if (temp9) | |
11817 | delete arg9; | |
11818 | } | |
11819 | return resultobj; | |
11820 | fail: | |
11821 | { | |
11822 | if (temp4) | |
11823 | delete arg4; | |
11824 | } | |
11825 | { | |
11826 | if (temp9) | |
11827 | delete arg9; | |
11828 | } | |
11829 | return NULL; | |
d55e5bfc RD |
11830 | } |
11831 | ||
11832 | ||
1bd55598 RD |
11833 | SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11834 | PyObject *resultobj = 0; | |
11835 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11836 | wxString result; | |
11837 | void *argp1 = 0 ; | |
11838 | int res1 = 0 ; | |
11839 | PyObject *swig_obj[1] ; | |
11840 | ||
11841 | if (!args) SWIG_fail; | |
11842 | swig_obj[0] = args; | |
11843 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11844 | if (!SWIG_IsOK(res1)) { | |
11845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11846 | } | |
11847 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11848 | { | |
11849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11850 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
11851 | wxPyEndAllowThreads(__tstate); | |
11852 | if (PyErr_Occurred()) SWIG_fail; | |
11853 | } | |
11854 | { | |
11855 | #if wxUSE_UNICODE | |
11856 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11857 | #else | |
11858 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11859 | #endif | |
11860 | } | |
11861 | return resultobj; | |
11862 | fail: | |
11863 | return NULL; | |
11864 | } | |
11865 | ||
11866 | ||
11867 | SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11868 | PyObject *resultobj = 0; | |
11869 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11870 | wxString *arg2 = 0 ; | |
11871 | void *argp1 = 0 ; | |
11872 | int res1 = 0 ; | |
11873 | bool temp2 = false ; | |
11874 | PyObject * obj0 = 0 ; | |
11875 | PyObject * obj1 = 0 ; | |
11876 | char * kwnames[] = { | |
11877 | (char *) "self",(char *) "value", NULL | |
11878 | }; | |
11879 | ||
11880 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
11881 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11882 | if (!SWIG_IsOK(res1)) { | |
11883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
11884 | } | |
11885 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11886 | { | |
11887 | arg2 = wxString_in_helper(obj1); | |
11888 | if (arg2 == NULL) SWIG_fail; | |
11889 | temp2 = true; | |
11890 | } | |
11891 | { | |
11892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11893 | (arg1)->SetValue((wxString const &)*arg2); | |
11894 | wxPyEndAllowThreads(__tstate); | |
11895 | if (PyErr_Occurred()) SWIG_fail; | |
11896 | } | |
11897 | resultobj = SWIG_Py_Void(); | |
11898 | { | |
11899 | if (temp2) | |
11900 | delete arg2; | |
11901 | } | |
11902 | return resultobj; | |
11903 | fail: | |
11904 | { | |
11905 | if (temp2) | |
11906 | delete arg2; | |
11907 | } | |
11908 | return NULL; | |
11909 | } | |
11910 | ||
11911 | ||
b39fe951 RD |
11912 | SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11913 | PyObject *resultobj = 0; | |
11914 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11915 | bool result; | |
11916 | void *argp1 = 0 ; | |
11917 | int res1 = 0 ; | |
11918 | PyObject *swig_obj[1] ; | |
11919 | ||
11920 | if (!args) SWIG_fail; | |
11921 | swig_obj[0] = args; | |
11922 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11923 | if (!SWIG_IsOK(res1)) { | |
11924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11925 | } | |
11926 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11927 | { | |
11928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11929 | result = (bool)((wxTextCtrl const *)arg1)->IsEmpty(); | |
11930 | wxPyEndAllowThreads(__tstate); | |
11931 | if (PyErr_Occurred()) SWIG_fail; | |
11932 | } | |
11933 | { | |
11934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11935 | } | |
11936 | return resultobj; | |
11937 | fail: | |
11938 | return NULL; | |
11939 | } | |
11940 | ||
11941 | ||
11942 | SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11943 | PyObject *resultobj = 0; | |
11944 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11945 | wxString *arg2 = 0 ; | |
11946 | void *argp1 = 0 ; | |
11947 | int res1 = 0 ; | |
11948 | bool temp2 = false ; | |
11949 | PyObject * obj0 = 0 ; | |
11950 | PyObject * obj1 = 0 ; | |
11951 | char * kwnames[] = { | |
11952 | (char *) "self",(char *) "value", NULL | |
11953 | }; | |
11954 | ||
11955 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
11956 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11957 | if (!SWIG_IsOK(res1)) { | |
11958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
11959 | } | |
11960 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11961 | { | |
11962 | arg2 = wxString_in_helper(obj1); | |
11963 | if (arg2 == NULL) SWIG_fail; | |
11964 | temp2 = true; | |
11965 | } | |
11966 | { | |
11967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11968 | (arg1)->ChangeValue((wxString const &)*arg2); | |
11969 | wxPyEndAllowThreads(__tstate); | |
11970 | if (PyErr_Occurred()) SWIG_fail; | |
11971 | } | |
11972 | resultobj = SWIG_Py_Void(); | |
11973 | { | |
11974 | if (temp2) | |
11975 | delete arg2; | |
11976 | } | |
11977 | return resultobj; | |
11978 | fail: | |
11979 | { | |
11980 | if (temp2) | |
11981 | delete arg2; | |
11982 | } | |
11983 | return NULL; | |
11984 | } | |
11985 | ||
11986 | ||
1bd55598 RD |
11987 | SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11988 | PyObject *resultobj = 0; | |
11989 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11990 | long arg2 ; | |
11991 | long arg3 ; | |
11992 | wxString result; | |
11993 | void *argp1 = 0 ; | |
11994 | int res1 = 0 ; | |
11995 | long val2 ; | |
11996 | int ecode2 = 0 ; | |
11997 | long val3 ; | |
11998 | int ecode3 = 0 ; | |
11999 | PyObject * obj0 = 0 ; | |
12000 | PyObject * obj1 = 0 ; | |
12001 | PyObject * obj2 = 0 ; | |
12002 | char * kwnames[] = { | |
2131d850 | 12003 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
12004 | }; |
12005 | ||
12006 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12007 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12008 | if (!SWIG_IsOK(res1)) { | |
12009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12010 | } | |
12011 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12012 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12013 | if (!SWIG_IsOK(ecode2)) { | |
12014 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'"); | |
12015 | } | |
12016 | arg2 = static_cast< long >(val2); | |
12017 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12018 | if (!SWIG_IsOK(ecode3)) { | |
12019 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'"); | |
12020 | } | |
12021 | arg3 = static_cast< long >(val3); | |
12022 | { | |
12023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12024 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
12025 | wxPyEndAllowThreads(__tstate); | |
12026 | if (PyErr_Occurred()) SWIG_fail; | |
12027 | } | |
12028 | { | |
12029 | #if wxUSE_UNICODE | |
12030 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12031 | #else | |
12032 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12033 | #endif | |
12034 | } | |
12035 | return resultobj; | |
12036 | fail: | |
12037 | return NULL; | |
12038 | } | |
12039 | ||
12040 | ||
12041 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12042 | PyObject *resultobj = 0; | |
12043 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12044 | long arg2 ; | |
12045 | int result; | |
12046 | void *argp1 = 0 ; | |
12047 | int res1 = 0 ; | |
12048 | long val2 ; | |
12049 | int ecode2 = 0 ; | |
12050 | PyObject * obj0 = 0 ; | |
12051 | PyObject * obj1 = 0 ; | |
12052 | char * kwnames[] = { | |
12053 | (char *) "self",(char *) "lineNo", NULL | |
12054 | }; | |
12055 | ||
12056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
12057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12058 | if (!SWIG_IsOK(res1)) { | |
12059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12060 | } | |
12061 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12062 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12063 | if (!SWIG_IsOK(ecode2)) { | |
12064 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'"); | |
12065 | } | |
12066 | arg2 = static_cast< long >(val2); | |
12067 | { | |
12068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12069 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
12070 | wxPyEndAllowThreads(__tstate); | |
12071 | if (PyErr_Occurred()) SWIG_fail; | |
12072 | } | |
12073 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12074 | return resultobj; | |
12075 | fail: | |
12076 | return NULL; | |
12077 | } | |
12078 | ||
12079 | ||
12080 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12081 | PyObject *resultobj = 0; | |
12082 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12083 | long arg2 ; | |
12084 | wxString result; | |
12085 | void *argp1 = 0 ; | |
12086 | int res1 = 0 ; | |
12087 | long val2 ; | |
12088 | int ecode2 = 0 ; | |
12089 | PyObject * obj0 = 0 ; | |
12090 | PyObject * obj1 = 0 ; | |
12091 | char * kwnames[] = { | |
12092 | (char *) "self",(char *) "lineNo", NULL | |
12093 | }; | |
12094 | ||
12095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12096 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12097 | if (!SWIG_IsOK(res1)) { | |
12098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12099 | } | |
12100 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12101 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12102 | if (!SWIG_IsOK(ecode2)) { | |
12103 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'"); | |
12104 | } | |
12105 | arg2 = static_cast< long >(val2); | |
12106 | { | |
12107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12108 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
12109 | wxPyEndAllowThreads(__tstate); | |
12110 | if (PyErr_Occurred()) SWIG_fail; | |
12111 | } | |
12112 | { | |
12113 | #if wxUSE_UNICODE | |
12114 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12115 | #else | |
12116 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12117 | #endif | |
12118 | } | |
12119 | return resultobj; | |
12120 | fail: | |
12121 | return NULL; | |
d55e5bfc RD |
12122 | } |
12123 | ||
12124 | ||
1bd55598 RD |
12125 | SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12126 | PyObject *resultobj = 0; | |
12127 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12128 | int result; | |
12129 | void *argp1 = 0 ; | |
12130 | int res1 = 0 ; | |
12131 | PyObject *swig_obj[1] ; | |
12132 | ||
12133 | if (!args) SWIG_fail; | |
12134 | swig_obj[0] = args; | |
12135 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12136 | if (!SWIG_IsOK(res1)) { | |
12137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12138 | } | |
12139 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12140 | { | |
12141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12142 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
12143 | wxPyEndAllowThreads(__tstate); | |
12144 | if (PyErr_Occurred()) SWIG_fail; | |
12145 | } | |
12146 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12147 | return resultobj; | |
12148 | fail: | |
12149 | return NULL; | |
d55e5bfc RD |
12150 | } |
12151 | ||
12152 | ||
1bd55598 RD |
12153 | SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12154 | PyObject *resultobj = 0; | |
12155 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12156 | bool result; | |
12157 | void *argp1 = 0 ; | |
12158 | int res1 = 0 ; | |
12159 | PyObject *swig_obj[1] ; | |
12160 | ||
12161 | if (!args) SWIG_fail; | |
12162 | swig_obj[0] = args; | |
12163 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12164 | if (!SWIG_IsOK(res1)) { | |
12165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12166 | } | |
12167 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12168 | { | |
12169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12170 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
12171 | wxPyEndAllowThreads(__tstate); | |
12172 | if (PyErr_Occurred()) SWIG_fail; | |
12173 | } | |
12174 | { | |
12175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12176 | } | |
12177 | return resultobj; | |
12178 | fail: | |
12179 | return NULL; | |
d55e5bfc RD |
12180 | } |
12181 | ||
12182 | ||
1bd55598 RD |
12183 | SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12184 | PyObject *resultobj = 0; | |
12185 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12186 | bool result; | |
12187 | void *argp1 = 0 ; | |
12188 | int res1 = 0 ; | |
12189 | PyObject *swig_obj[1] ; | |
12190 | ||
12191 | if (!args) SWIG_fail; | |
12192 | swig_obj[0] = args; | |
12193 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12194 | if (!SWIG_IsOK(res1)) { | |
12195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12196 | } | |
12197 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12198 | { | |
12199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12200 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
12201 | wxPyEndAllowThreads(__tstate); | |
12202 | if (PyErr_Occurred()) SWIG_fail; | |
12203 | } | |
12204 | { | |
12205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12206 | } | |
12207 | return resultobj; | |
12208 | fail: | |
12209 | return NULL; | |
d55e5bfc RD |
12210 | } |
12211 | ||
12212 | ||
1bd55598 RD |
12213 | SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12214 | PyObject *resultobj = 0; | |
12215 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12216 | bool result; | |
12217 | void *argp1 = 0 ; | |
12218 | int res1 = 0 ; | |
12219 | PyObject *swig_obj[1] ; | |
12220 | ||
12221 | if (!args) SWIG_fail; | |
12222 | swig_obj[0] = args; | |
12223 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12224 | if (!SWIG_IsOK(res1)) { | |
12225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12226 | } | |
12227 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12228 | { | |
12229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12230 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
12231 | wxPyEndAllowThreads(__tstate); | |
12232 | if (PyErr_Occurred()) SWIG_fail; | |
12233 | } | |
12234 | { | |
12235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12236 | } | |
12237 | return resultobj; | |
12238 | fail: | |
12239 | return NULL; | |
d55e5bfc RD |
12240 | } |
12241 | ||
12242 | ||
1bd55598 RD |
12243 | SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12244 | PyObject *resultobj = 0; | |
12245 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12246 | bool result; | |
12247 | void *argp1 = 0 ; | |
12248 | int res1 = 0 ; | |
12249 | PyObject *swig_obj[1] ; | |
12250 | ||
12251 | if (!args) SWIG_fail; | |
12252 | swig_obj[0] = args; | |
12253 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12254 | if (!SWIG_IsOK(res1)) { | |
12255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12256 | } | |
12257 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12258 | { | |
12259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12260 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
12261 | wxPyEndAllowThreads(__tstate); | |
12262 | if (PyErr_Occurred()) SWIG_fail; | |
12263 | } | |
12264 | { | |
12265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12266 | } | |
12267 | return resultobj; | |
12268 | fail: | |
12269 | return NULL; | |
12270 | } | |
12271 | ||
12272 | ||
12273 | SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12274 | PyObject *resultobj = 0; | |
12275 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12276 | long *arg2 = (long *) 0 ; | |
12277 | long *arg3 = (long *) 0 ; | |
12278 | void *argp1 = 0 ; | |
12279 | int res1 = 0 ; | |
12280 | long temp2 ; | |
12281 | int res2 = SWIG_TMPOBJ ; | |
12282 | long temp3 ; | |
12283 | int res3 = SWIG_TMPOBJ ; | |
12284 | PyObject *swig_obj[1] ; | |
12285 | ||
12286 | arg2 = &temp2; | |
12287 | arg3 = &temp3; | |
12288 | if (!args) SWIG_fail; | |
12289 | swig_obj[0] = args; | |
12290 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12291 | if (!SWIG_IsOK(res1)) { | |
12292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12293 | } | |
12294 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12295 | { | |
12296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12297 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
12298 | wxPyEndAllowThreads(__tstate); | |
12299 | if (PyErr_Occurred()) SWIG_fail; | |
12300 | } | |
12301 | resultobj = SWIG_Py_Void(); | |
12302 | if (SWIG_IsTmpObj(res2)) { | |
12303 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2))); | |
12304 | } else { | |
12305 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12306 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags)); | |
12307 | } | |
12308 | if (SWIG_IsTmpObj(res3)) { | |
12309 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
12310 | } else { | |
12311 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12312 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
12313 | } | |
12314 | return resultobj; | |
12315 | fail: | |
12316 | return NULL; | |
d55e5bfc RD |
12317 | } |
12318 | ||
12319 | ||
1bd55598 RD |
12320 | SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12321 | PyObject *resultobj = 0; | |
12322 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12323 | wxString result; | |
12324 | void *argp1 = 0 ; | |
12325 | int res1 = 0 ; | |
12326 | PyObject *swig_obj[1] ; | |
12327 | ||
12328 | if (!args) SWIG_fail; | |
12329 | swig_obj[0] = args; | |
12330 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12331 | if (!SWIG_IsOK(res1)) { | |
12332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12333 | } | |
12334 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12335 | { | |
12336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12337 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
12338 | wxPyEndAllowThreads(__tstate); | |
12339 | if (PyErr_Occurred()) SWIG_fail; | |
12340 | } | |
12341 | { | |
d55e5bfc | 12342 | #if wxUSE_UNICODE |
1bd55598 | 12343 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 12344 | #else |
1bd55598 | 12345 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 12346 | #endif |
1bd55598 RD |
12347 | } |
12348 | return resultobj; | |
12349 | fail: | |
12350 | return NULL; | |
d55e5bfc RD |
12351 | } |
12352 | ||
12353 | ||
1bd55598 RD |
12354 | SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12355 | PyObject *resultobj = 0; | |
12356 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12357 | void *argp1 = 0 ; | |
12358 | int res1 = 0 ; | |
12359 | PyObject *swig_obj[1] ; | |
12360 | ||
12361 | if (!args) SWIG_fail; | |
12362 | swig_obj[0] = args; | |
12363 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12364 | if (!SWIG_IsOK(res1)) { | |
12365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12366 | } | |
12367 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12368 | { | |
12369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12370 | (arg1)->Clear(); | |
12371 | wxPyEndAllowThreads(__tstate); | |
12372 | if (PyErr_Occurred()) SWIG_fail; | |
12373 | } | |
12374 | resultobj = SWIG_Py_Void(); | |
12375 | return resultobj; | |
12376 | fail: | |
12377 | return NULL; | |
12378 | } | |
12379 | ||
12380 | ||
12381 | SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12382 | PyObject *resultobj = 0; | |
12383 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12384 | long arg2 ; | |
12385 | long arg3 ; | |
12386 | wxString *arg4 = 0 ; | |
12387 | void *argp1 = 0 ; | |
12388 | int res1 = 0 ; | |
12389 | long val2 ; | |
12390 | int ecode2 = 0 ; | |
12391 | long val3 ; | |
12392 | int ecode3 = 0 ; | |
12393 | bool temp4 = false ; | |
12394 | PyObject * obj0 = 0 ; | |
12395 | PyObject * obj1 = 0 ; | |
12396 | PyObject * obj2 = 0 ; | |
12397 | PyObject * obj3 = 0 ; | |
12398 | char * kwnames[] = { | |
2131d850 | 12399 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL |
1bd55598 RD |
12400 | }; |
12401 | ||
12402 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12403 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12404 | if (!SWIG_IsOK(res1)) { | |
12405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12406 | } | |
12407 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12408 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12409 | if (!SWIG_IsOK(ecode2)) { | |
12410 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'"); | |
12411 | } | |
12412 | arg2 = static_cast< long >(val2); | |
12413 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12414 | if (!SWIG_IsOK(ecode3)) { | |
12415 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'"); | |
12416 | } | |
12417 | arg3 = static_cast< long >(val3); | |
12418 | { | |
12419 | arg4 = wxString_in_helper(obj3); | |
12420 | if (arg4 == NULL) SWIG_fail; | |
12421 | temp4 = true; | |
12422 | } | |
12423 | { | |
12424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12425 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
12426 | wxPyEndAllowThreads(__tstate); | |
12427 | if (PyErr_Occurred()) SWIG_fail; | |
12428 | } | |
12429 | resultobj = SWIG_Py_Void(); | |
12430 | { | |
12431 | if (temp4) | |
12432 | delete arg4; | |
12433 | } | |
12434 | return resultobj; | |
12435 | fail: | |
12436 | { | |
12437 | if (temp4) | |
12438 | delete arg4; | |
12439 | } | |
12440 | return NULL; | |
12441 | } | |
12442 | ||
12443 | ||
12444 | SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12445 | PyObject *resultobj = 0; | |
12446 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12447 | long arg2 ; | |
12448 | long arg3 ; | |
12449 | void *argp1 = 0 ; | |
12450 | int res1 = 0 ; | |
12451 | long val2 ; | |
12452 | int ecode2 = 0 ; | |
12453 | long val3 ; | |
12454 | int ecode3 = 0 ; | |
12455 | PyObject * obj0 = 0 ; | |
12456 | PyObject * obj1 = 0 ; | |
12457 | PyObject * obj2 = 0 ; | |
12458 | char * kwnames[] = { | |
2131d850 | 12459 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
12460 | }; |
12461 | ||
12462 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12463 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12464 | if (!SWIG_IsOK(res1)) { | |
12465 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12466 | } | |
12467 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12468 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12469 | if (!SWIG_IsOK(ecode2)) { | |
12470 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'"); | |
12471 | } | |
12472 | arg2 = static_cast< long >(val2); | |
12473 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12474 | if (!SWIG_IsOK(ecode3)) { | |
12475 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'"); | |
12476 | } | |
12477 | arg3 = static_cast< long >(val3); | |
12478 | { | |
12479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12480 | (arg1)->Remove(arg2,arg3); | |
12481 | wxPyEndAllowThreads(__tstate); | |
12482 | if (PyErr_Occurred()) SWIG_fail; | |
12483 | } | |
12484 | resultobj = SWIG_Py_Void(); | |
12485 | return resultobj; | |
12486 | fail: | |
12487 | return NULL; | |
12488 | } | |
12489 | ||
12490 | ||
12491 | SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12492 | PyObject *resultobj = 0; | |
12493 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12494 | wxString *arg2 = 0 ; | |
f5263701 | 12495 | int arg3 = (int) wxTEXT_TYPE_ANY ; |
1bd55598 RD |
12496 | bool result; |
12497 | void *argp1 = 0 ; | |
12498 | int res1 = 0 ; | |
12499 | bool temp2 = false ; | |
f5263701 RD |
12500 | int val3 ; |
12501 | int ecode3 = 0 ; | |
1bd55598 RD |
12502 | PyObject * obj0 = 0 ; |
12503 | PyObject * obj1 = 0 ; | |
f5263701 | 12504 | PyObject * obj2 = 0 ; |
1bd55598 | 12505 | char * kwnames[] = { |
f5263701 | 12506 | (char *) "self",(char *) "file",(char *) "fileType", NULL |
1bd55598 RD |
12507 | }; |
12508 | ||
f5263701 | 12509 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
1bd55598 RD |
12510 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); |
12511 | if (!SWIG_IsOK(res1)) { | |
12512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12513 | } | |
12514 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12515 | { | |
12516 | arg2 = wxString_in_helper(obj1); | |
12517 | if (arg2 == NULL) SWIG_fail; | |
12518 | temp2 = true; | |
12519 | } | |
f5263701 RD |
12520 | if (obj2) { |
12521 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12522 | if (!SWIG_IsOK(ecode3)) { | |
12523 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'"); | |
12524 | } | |
12525 | arg3 = static_cast< int >(val3); | |
12526 | } | |
1bd55598 RD |
12527 | { |
12528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f5263701 | 12529 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
1bd55598 RD |
12530 | wxPyEndAllowThreads(__tstate); |
12531 | if (PyErr_Occurred()) SWIG_fail; | |
12532 | } | |
12533 | { | |
12534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12535 | } | |
12536 | { | |
12537 | if (temp2) | |
12538 | delete arg2; | |
12539 | } | |
12540 | return resultobj; | |
12541 | fail: | |
12542 | { | |
12543 | if (temp2) | |
12544 | delete arg2; | |
12545 | } | |
12546 | return NULL; | |
12547 | } | |
12548 | ||
12549 | ||
12550 | SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12551 | PyObject *resultobj = 0; | |
12552 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12553 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12554 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
f5263701 | 12555 | int arg3 = (int) wxTEXT_TYPE_ANY ; |
1bd55598 RD |
12556 | bool result; |
12557 | void *argp1 = 0 ; | |
12558 | int res1 = 0 ; | |
12559 | bool temp2 = false ; | |
f5263701 RD |
12560 | int val3 ; |
12561 | int ecode3 = 0 ; | |
1bd55598 RD |
12562 | PyObject * obj0 = 0 ; |
12563 | PyObject * obj1 = 0 ; | |
f5263701 | 12564 | PyObject * obj2 = 0 ; |
1bd55598 | 12565 | char * kwnames[] = { |
f5263701 | 12566 | (char *) "self",(char *) "file",(char *) "fileType", NULL |
1bd55598 RD |
12567 | }; |
12568 | ||
f5263701 | 12569 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
1bd55598 RD |
12570 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); |
12571 | if (!SWIG_IsOK(res1)) { | |
12572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12573 | } | |
12574 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12575 | if (obj1) { | |
d55e5bfc | 12576 | { |
1bd55598 RD |
12577 | arg2 = wxString_in_helper(obj1); |
12578 | if (arg2 == NULL) SWIG_fail; | |
12579 | temp2 = true; | |
d55e5bfc | 12580 | } |
1bd55598 | 12581 | } |
f5263701 RD |
12582 | if (obj2) { |
12583 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12584 | if (!SWIG_IsOK(ecode3)) { | |
12585 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'"); | |
12586 | } | |
12587 | arg3 = static_cast< int >(val3); | |
12588 | } | |
1bd55598 RD |
12589 | { |
12590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f5263701 | 12591 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); |
1bd55598 RD |
12592 | wxPyEndAllowThreads(__tstate); |
12593 | if (PyErr_Occurred()) SWIG_fail; | |
12594 | } | |
12595 | { | |
12596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12597 | } | |
12598 | { | |
12599 | if (temp2) | |
12600 | delete arg2; | |
12601 | } | |
12602 | return resultobj; | |
12603 | fail: | |
12604 | { | |
12605 | if (temp2) | |
12606 | delete arg2; | |
12607 | } | |
12608 | return NULL; | |
d55e5bfc RD |
12609 | } |
12610 | ||
12611 | ||
1bd55598 RD |
12612 | SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12613 | PyObject *resultobj = 0; | |
12614 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12615 | void *argp1 = 0 ; | |
12616 | int res1 = 0 ; | |
12617 | PyObject *swig_obj[1] ; | |
12618 | ||
12619 | if (!args) SWIG_fail; | |
12620 | swig_obj[0] = args; | |
12621 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12622 | if (!SWIG_IsOK(res1)) { | |
12623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12624 | } | |
12625 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12626 | { | |
12627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12628 | (arg1)->MarkDirty(); | |
12629 | wxPyEndAllowThreads(__tstate); | |
12630 | if (PyErr_Occurred()) SWIG_fail; | |
12631 | } | |
12632 | resultobj = SWIG_Py_Void(); | |
12633 | return resultobj; | |
12634 | fail: | |
12635 | return NULL; | |
d55e5bfc RD |
12636 | } |
12637 | ||
12638 | ||
1bd55598 RD |
12639 | SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12640 | PyObject *resultobj = 0; | |
12641 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12642 | void *argp1 = 0 ; | |
12643 | int res1 = 0 ; | |
12644 | PyObject *swig_obj[1] ; | |
12645 | ||
12646 | if (!args) SWIG_fail; | |
12647 | swig_obj[0] = args; | |
12648 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12649 | if (!SWIG_IsOK(res1)) { | |
12650 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12651 | } | |
12652 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12653 | { | |
12654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12655 | (arg1)->DiscardEdits(); | |
12656 | wxPyEndAllowThreads(__tstate); | |
12657 | if (PyErr_Occurred()) SWIG_fail; | |
12658 | } | |
12659 | resultobj = SWIG_Py_Void(); | |
12660 | return resultobj; | |
12661 | fail: | |
12662 | return NULL; | |
12663 | } | |
12664 | ||
12665 | ||
b02396e8 RD |
12666 | SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12667 | PyObject *resultobj = 0; | |
12668 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12669 | bool arg2 ; | |
12670 | void *argp1 = 0 ; | |
12671 | int res1 = 0 ; | |
12672 | bool val2 ; | |
12673 | int ecode2 = 0 ; | |
12674 | PyObject * obj0 = 0 ; | |
12675 | PyObject * obj1 = 0 ; | |
12676 | char * kwnames[] = { | |
12677 | (char *) "self",(char *) "modified", NULL | |
12678 | }; | |
12679 | ||
12680 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail; | |
12681 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12682 | if (!SWIG_IsOK(res1)) { | |
12683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12684 | } | |
12685 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12686 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
12687 | if (!SWIG_IsOK(ecode2)) { | |
12688 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'"); | |
12689 | } | |
12690 | arg2 = static_cast< bool >(val2); | |
12691 | { | |
12692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12693 | (arg1)->SetModified(arg2); | |
12694 | wxPyEndAllowThreads(__tstate); | |
12695 | if (PyErr_Occurred()) SWIG_fail; | |
12696 | } | |
12697 | resultobj = SWIG_Py_Void(); | |
12698 | return resultobj; | |
12699 | fail: | |
12700 | return NULL; | |
12701 | } | |
12702 | ||
12703 | ||
1bd55598 RD |
12704 | SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12705 | PyObject *resultobj = 0; | |
12706 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12707 | unsigned long arg2 ; | |
12708 | void *argp1 = 0 ; | |
12709 | int res1 = 0 ; | |
12710 | unsigned long val2 ; | |
12711 | int ecode2 = 0 ; | |
12712 | PyObject * obj0 = 0 ; | |
12713 | PyObject * obj1 = 0 ; | |
12714 | char * kwnames[] = { | |
12715 | (char *) "self",(char *) "len", NULL | |
12716 | }; | |
12717 | ||
12718 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
12719 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12720 | if (!SWIG_IsOK(res1)) { | |
12721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12722 | } | |
12723 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12724 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
12725 | if (!SWIG_IsOK(ecode2)) { | |
12726 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'"); | |
12727 | } | |
12728 | arg2 = static_cast< unsigned long >(val2); | |
12729 | { | |
12730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12731 | (arg1)->SetMaxLength(arg2); | |
12732 | wxPyEndAllowThreads(__tstate); | |
12733 | if (PyErr_Occurred()) SWIG_fail; | |
12734 | } | |
12735 | resultobj = SWIG_Py_Void(); | |
12736 | return resultobj; | |
12737 | fail: | |
12738 | return NULL; | |
12739 | } | |
12740 | ||
12741 | ||
12742 | SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12743 | PyObject *resultobj = 0; | |
12744 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12745 | wxString *arg2 = 0 ; | |
12746 | void *argp1 = 0 ; | |
12747 | int res1 = 0 ; | |
12748 | bool temp2 = false ; | |
12749 | PyObject * obj0 = 0 ; | |
12750 | PyObject * obj1 = 0 ; | |
12751 | char * kwnames[] = { | |
12752 | (char *) "self",(char *) "text", NULL | |
12753 | }; | |
12754 | ||
12755 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12756 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12757 | if (!SWIG_IsOK(res1)) { | |
12758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12759 | } | |
12760 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12761 | { | |
12762 | arg2 = wxString_in_helper(obj1); | |
12763 | if (arg2 == NULL) SWIG_fail; | |
12764 | temp2 = true; | |
12765 | } | |
12766 | { | |
12767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12768 | (arg1)->WriteText((wxString const &)*arg2); | |
12769 | wxPyEndAllowThreads(__tstate); | |
12770 | if (PyErr_Occurred()) SWIG_fail; | |
12771 | } | |
12772 | resultobj = SWIG_Py_Void(); | |
12773 | { | |
12774 | if (temp2) | |
12775 | delete arg2; | |
12776 | } | |
12777 | return resultobj; | |
12778 | fail: | |
12779 | { | |
12780 | if (temp2) | |
12781 | delete arg2; | |
12782 | } | |
12783 | return NULL; | |
d55e5bfc RD |
12784 | } |
12785 | ||
12786 | ||
1bd55598 RD |
12787 | SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12788 | PyObject *resultobj = 0; | |
12789 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12790 | wxString *arg2 = 0 ; | |
12791 | void *argp1 = 0 ; | |
12792 | int res1 = 0 ; | |
12793 | bool temp2 = false ; | |
12794 | PyObject * obj0 = 0 ; | |
12795 | PyObject * obj1 = 0 ; | |
12796 | char * kwnames[] = { | |
12797 | (char *) "self",(char *) "text", NULL | |
12798 | }; | |
12799 | ||
12800 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12801 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12802 | if (!SWIG_IsOK(res1)) { | |
12803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12804 | } | |
12805 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12806 | { | |
12807 | arg2 = wxString_in_helper(obj1); | |
12808 | if (arg2 == NULL) SWIG_fail; | |
12809 | temp2 = true; | |
12810 | } | |
12811 | { | |
12812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12813 | (arg1)->AppendText((wxString const &)*arg2); | |
12814 | wxPyEndAllowThreads(__tstate); | |
12815 | if (PyErr_Occurred()) SWIG_fail; | |
12816 | } | |
12817 | resultobj = SWIG_Py_Void(); | |
12818 | { | |
12819 | if (temp2) | |
12820 | delete arg2; | |
12821 | } | |
12822 | return resultobj; | |
12823 | fail: | |
12824 | { | |
12825 | if (temp2) | |
12826 | delete arg2; | |
12827 | } | |
12828 | return NULL; | |
12829 | } | |
12830 | ||
12831 | ||
12832 | SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12833 | PyObject *resultobj = 0; | |
12834 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12835 | wxKeyEvent *arg2 = 0 ; | |
12836 | bool result; | |
12837 | void *argp1 = 0 ; | |
12838 | int res1 = 0 ; | |
12839 | void *argp2 = 0 ; | |
12840 | int res2 = 0 ; | |
12841 | PyObject * obj0 = 0 ; | |
12842 | PyObject * obj1 = 0 ; | |
12843 | char * kwnames[] = { | |
12844 | (char *) "self",(char *) "event", NULL | |
12845 | }; | |
12846 | ||
12847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail; | |
12848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12849 | if (!SWIG_IsOK(res1)) { | |
12850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12851 | } | |
12852 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12853 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0); | |
12854 | if (!SWIG_IsOK(res2)) { | |
12855 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
12856 | } | |
12857 | if (!argp2) { | |
12858 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
12859 | } | |
12860 | arg2 = reinterpret_cast< wxKeyEvent * >(argp2); | |
12861 | { | |
12862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12863 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
12864 | wxPyEndAllowThreads(__tstate); | |
12865 | if (PyErr_Occurred()) SWIG_fail; | |
12866 | } | |
12867 | { | |
12868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12869 | } | |
12870 | return resultobj; | |
12871 | fail: | |
12872 | return NULL; | |
12873 | } | |
12874 | ||
12875 | ||
12876 | SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12877 | PyObject *resultobj = 0; | |
12878 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12879 | long arg2 ; | |
12880 | long arg3 ; | |
12881 | wxTextAttr *arg4 = 0 ; | |
12882 | bool result; | |
12883 | void *argp1 = 0 ; | |
12884 | int res1 = 0 ; | |
12885 | long val2 ; | |
12886 | int ecode2 = 0 ; | |
12887 | long val3 ; | |
12888 | int ecode3 = 0 ; | |
12889 | void *argp4 = 0 ; | |
12890 | int res4 = 0 ; | |
12891 | PyObject * obj0 = 0 ; | |
12892 | PyObject * obj1 = 0 ; | |
12893 | PyObject * obj2 = 0 ; | |
12894 | PyObject * obj3 = 0 ; | |
12895 | char * kwnames[] = { | |
12896 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
12897 | }; | |
12898 | ||
12899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12901 | if (!SWIG_IsOK(res1)) { | |
12902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12903 | } | |
12904 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12905 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12906 | if (!SWIG_IsOK(ecode2)) { | |
12907 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'"); | |
12908 | } | |
12909 | arg2 = static_cast< long >(val2); | |
12910 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12911 | if (!SWIG_IsOK(ecode3)) { | |
12912 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'"); | |
12913 | } | |
12914 | arg3 = static_cast< long >(val3); | |
12915 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
12916 | if (!SWIG_IsOK(res4)) { | |
12917 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'"); | |
12918 | } | |
12919 | if (!argp4) { | |
12920 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'"); | |
12921 | } | |
12922 | arg4 = reinterpret_cast< wxTextAttr * >(argp4); | |
12923 | { | |
12924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12925 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
12926 | wxPyEndAllowThreads(__tstate); | |
12927 | if (PyErr_Occurred()) SWIG_fail; | |
12928 | } | |
12929 | { | |
12930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12931 | } | |
12932 | return resultobj; | |
12933 | fail: | |
12934 | return NULL; | |
12935 | } | |
12936 | ||
12937 | ||
12938 | SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12939 | PyObject *resultobj = 0; | |
12940 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12941 | long arg2 ; | |
12942 | wxTextAttr *arg3 = 0 ; | |
12943 | bool result; | |
12944 | void *argp1 = 0 ; | |
12945 | int res1 = 0 ; | |
12946 | long val2 ; | |
12947 | int ecode2 = 0 ; | |
12948 | void *argp3 = 0 ; | |
12949 | int res3 = 0 ; | |
12950 | PyObject * obj0 = 0 ; | |
12951 | PyObject * obj1 = 0 ; | |
12952 | PyObject * obj2 = 0 ; | |
12953 | char * kwnames[] = { | |
12954 | (char *) "self",(char *) "position",(char *) "style", NULL | |
12955 | }; | |
12956 | ||
12957 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12958 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12959 | if (!SWIG_IsOK(res1)) { | |
12960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12961 | } | |
12962 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12963 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12964 | if (!SWIG_IsOK(ecode2)) { | |
12965 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'"); | |
12966 | } | |
12967 | arg2 = static_cast< long >(val2); | |
12968 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 ); | |
12969 | if (!SWIG_IsOK(res3)) { | |
12970 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'"); | |
12971 | } | |
12972 | if (!argp3) { | |
12973 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'"); | |
12974 | } | |
12975 | arg3 = reinterpret_cast< wxTextAttr * >(argp3); | |
12976 | { | |
12977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12978 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
12979 | wxPyEndAllowThreads(__tstate); | |
12980 | if (PyErr_Occurred()) SWIG_fail; | |
12981 | } | |
12982 | { | |
12983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12984 | } | |
12985 | return resultobj; | |
12986 | fail: | |
12987 | return NULL; | |
12988 | } | |
12989 | ||
12990 | ||
12991 | SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12992 | PyObject *resultobj = 0; | |
12993 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12994 | wxTextAttr *arg2 = 0 ; | |
12995 | bool result; | |
12996 | void *argp1 = 0 ; | |
12997 | int res1 = 0 ; | |
12998 | void *argp2 = 0 ; | |
12999 | int res2 = 0 ; | |
13000 | PyObject * obj0 = 0 ; | |
13001 | PyObject * obj1 = 0 ; | |
13002 | char * kwnames[] = { | |
13003 | (char *) "self",(char *) "style", NULL | |
13004 | }; | |
13005 | ||
13006 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
13007 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13008 | if (!SWIG_IsOK(res1)) { | |
13009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13010 | } | |
13011 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13012 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
13013 | if (!SWIG_IsOK(res2)) { | |
13014 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
13015 | } | |
13016 | if (!argp2) { | |
13017 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
13018 | } | |
13019 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
13020 | { | |
13021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13022 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
13023 | wxPyEndAllowThreads(__tstate); | |
13024 | if (PyErr_Occurred()) SWIG_fail; | |
13025 | } | |
13026 | { | |
13027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13028 | } | |
13029 | return resultobj; | |
13030 | fail: | |
13031 | return NULL; | |
d55e5bfc RD |
13032 | } |
13033 | ||
13034 | ||
1bd55598 RD |
13035 | SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13036 | PyObject *resultobj = 0; | |
13037 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13038 | wxTextAttr *result = 0 ; | |
13039 | void *argp1 = 0 ; | |
13040 | int res1 = 0 ; | |
13041 | PyObject *swig_obj[1] ; | |
13042 | ||
13043 | if (!args) SWIG_fail; | |
13044 | swig_obj[0] = args; | |
13045 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13046 | if (!SWIG_IsOK(res1)) { | |
13047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13048 | } | |
13049 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13050 | { | |
13051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 13052 | { |
1bd55598 RD |
13053 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); |
13054 | result = (wxTextAttr *) &_result_ref; | |
d55e5bfc | 13055 | } |
1bd55598 RD |
13056 | wxPyEndAllowThreads(__tstate); |
13057 | if (PyErr_Occurred()) SWIG_fail; | |
13058 | } | |
13059 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
13060 | return resultobj; | |
13061 | fail: | |
13062 | return NULL; | |
13063 | } | |
13064 | ||
13065 | ||
13066 | SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13067 | PyObject *resultobj = 0; | |
13068 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13069 | long arg2 ; | |
13070 | long arg3 ; | |
13071 | long result; | |
13072 | void *argp1 = 0 ; | |
13073 | int res1 = 0 ; | |
13074 | long val2 ; | |
13075 | int ecode2 = 0 ; | |
13076 | long val3 ; | |
13077 | int ecode3 = 0 ; | |
13078 | PyObject * obj0 = 0 ; | |
13079 | PyObject * obj1 = 0 ; | |
13080 | PyObject * obj2 = 0 ; | |
13081 | char * kwnames[] = { | |
13082 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13083 | }; | |
13084 | ||
13085 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13086 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13087 | if (!SWIG_IsOK(res1)) { | |
13088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13089 | } | |
13090 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13091 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13092 | if (!SWIG_IsOK(ecode2)) { | |
13093 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'"); | |
13094 | } | |
13095 | arg2 = static_cast< long >(val2); | |
13096 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13097 | if (!SWIG_IsOK(ecode3)) { | |
13098 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'"); | |
13099 | } | |
13100 | arg3 = static_cast< long >(val3); | |
13101 | { | |
13102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13103 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
13104 | wxPyEndAllowThreads(__tstate); | |
13105 | if (PyErr_Occurred()) SWIG_fail; | |
13106 | } | |
13107 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13108 | return resultobj; | |
13109 | fail: | |
13110 | return NULL; | |
13111 | } | |
13112 | ||
13113 | ||
13114 | SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13115 | PyObject *resultobj = 0; | |
13116 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13117 | long arg2 ; | |
13118 | long *arg3 = (long *) 0 ; | |
13119 | long *arg4 = (long *) 0 ; | |
13120 | void *argp1 = 0 ; | |
13121 | int res1 = 0 ; | |
13122 | long val2 ; | |
13123 | int ecode2 = 0 ; | |
13124 | long temp3 ; | |
13125 | int res3 = SWIG_TMPOBJ ; | |
13126 | long temp4 ; | |
13127 | int res4 = SWIG_TMPOBJ ; | |
13128 | PyObject * obj0 = 0 ; | |
13129 | PyObject * obj1 = 0 ; | |
13130 | char * kwnames[] = { | |
13131 | (char *) "self",(char *) "pos", NULL | |
13132 | }; | |
13133 | ||
13134 | arg3 = &temp3; | |
13135 | arg4 = &temp4; | |
13136 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail; | |
13137 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13138 | if (!SWIG_IsOK(res1)) { | |
13139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13140 | } | |
13141 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13142 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13143 | if (!SWIG_IsOK(ecode2)) { | |
13144 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'"); | |
13145 | } | |
13146 | arg2 = static_cast< long >(val2); | |
13147 | { | |
13148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13149 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
13150 | wxPyEndAllowThreads(__tstate); | |
13151 | if (PyErr_Occurred()) SWIG_fail; | |
13152 | } | |
13153 | resultobj = SWIG_Py_Void(); | |
13154 | if (SWIG_IsTmpObj(res3)) { | |
13155 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
13156 | } else { | |
13157 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13158 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
13159 | } | |
13160 | if (SWIG_IsTmpObj(res4)) { | |
13161 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
13162 | } else { | |
13163 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13164 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
13165 | } | |
13166 | return resultobj; | |
13167 | fail: | |
13168 | return NULL; | |
13169 | } | |
13170 | ||
13171 | ||
13172 | SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13173 | PyObject *resultobj = 0; | |
13174 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13175 | long arg2 ; | |
13176 | void *argp1 = 0 ; | |
13177 | int res1 = 0 ; | |
13178 | long val2 ; | |
13179 | int ecode2 = 0 ; | |
13180 | PyObject * obj0 = 0 ; | |
13181 | PyObject * obj1 = 0 ; | |
13182 | char * kwnames[] = { | |
13183 | (char *) "self",(char *) "pos", NULL | |
13184 | }; | |
13185 | ||
13186 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
13187 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13188 | if (!SWIG_IsOK(res1)) { | |
13189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13190 | } | |
13191 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13192 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13193 | if (!SWIG_IsOK(ecode2)) { | |
13194 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'"); | |
13195 | } | |
13196 | arg2 = static_cast< long >(val2); | |
13197 | { | |
13198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13199 | (arg1)->ShowPosition(arg2); | |
13200 | wxPyEndAllowThreads(__tstate); | |
13201 | if (PyErr_Occurred()) SWIG_fail; | |
13202 | } | |
13203 | resultobj = SWIG_Py_Void(); | |
13204 | return resultobj; | |
13205 | fail: | |
13206 | return NULL; | |
13207 | } | |
13208 | ||
13209 | ||
13210 | SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13211 | PyObject *resultobj = 0; | |
13212 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13213 | wxPoint *arg2 = 0 ; | |
13214 | long *arg3 = (long *) 0 ; | |
13215 | long *arg4 = (long *) 0 ; | |
13216 | wxTextCtrlHitTestResult result; | |
13217 | void *argp1 = 0 ; | |
13218 | int res1 = 0 ; | |
13219 | wxPoint temp2 ; | |
13220 | long temp3 ; | |
13221 | int res3 = SWIG_TMPOBJ ; | |
13222 | long temp4 ; | |
13223 | int res4 = SWIG_TMPOBJ ; | |
13224 | PyObject * obj0 = 0 ; | |
13225 | PyObject * obj1 = 0 ; | |
13226 | char * kwnames[] = { | |
13227 | (char *) "self",(char *) "pt", NULL | |
13228 | }; | |
13229 | ||
13230 | arg3 = &temp3; | |
13231 | arg4 = &temp4; | |
13232 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
13233 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13234 | if (!SWIG_IsOK(res1)) { | |
13235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13236 | } | |
13237 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13238 | { | |
13239 | arg2 = &temp2; | |
13240 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13241 | } | |
13242 | { | |
13243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13244 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
13245 | wxPyEndAllowThreads(__tstate); | |
13246 | if (PyErr_Occurred()) SWIG_fail; | |
13247 | } | |
13248 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13249 | if (SWIG_IsTmpObj(res3)) { | |
13250 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
13251 | } else { | |
13252 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13253 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
13254 | } | |
13255 | if (SWIG_IsTmpObj(res4)) { | |
13256 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
13257 | } else { | |
13258 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13259 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
13260 | } | |
13261 | return resultobj; | |
13262 | fail: | |
13263 | return NULL; | |
13264 | } | |
13265 | ||
13266 | ||
13267 | SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13268 | PyObject *resultobj = 0; | |
13269 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13270 | wxPoint *arg2 = 0 ; | |
13271 | long *arg3 = (long *) 0 ; | |
13272 | wxTextCtrlHitTestResult result; | |
13273 | void *argp1 = 0 ; | |
13274 | int res1 = 0 ; | |
13275 | wxPoint temp2 ; | |
13276 | long temp3 ; | |
13277 | int res3 = SWIG_TMPOBJ ; | |
13278 | PyObject * obj0 = 0 ; | |
13279 | PyObject * obj1 = 0 ; | |
13280 | char * kwnames[] = { | |
13281 | (char *) "self",(char *) "pt", NULL | |
13282 | }; | |
13283 | ||
13284 | arg3 = &temp3; | |
13285 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
13286 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13287 | if (!SWIG_IsOK(res1)) { | |
13288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13289 | } | |
13290 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13291 | { | |
13292 | arg2 = &temp2; | |
13293 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13294 | } | |
13295 | { | |
13296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13297 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
13298 | wxPyEndAllowThreads(__tstate); | |
13299 | if (PyErr_Occurred()) SWIG_fail; | |
13300 | } | |
13301 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13302 | if (SWIG_IsTmpObj(res3)) { | |
13303 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
13304 | } else { | |
13305 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13306 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
13307 | } | |
13308 | return resultobj; | |
13309 | fail: | |
13310 | return NULL; | |
d55e5bfc RD |
13311 | } |
13312 | ||
13313 | ||
1bd55598 RD |
13314 | SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13315 | PyObject *resultobj = 0; | |
13316 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13317 | void *argp1 = 0 ; | |
13318 | int res1 = 0 ; | |
13319 | PyObject *swig_obj[1] ; | |
13320 | ||
13321 | if (!args) SWIG_fail; | |
13322 | swig_obj[0] = args; | |
13323 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13324 | if (!SWIG_IsOK(res1)) { | |
13325 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13326 | } | |
13327 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13328 | { | |
13329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13330 | (arg1)->Copy(); | |
13331 | wxPyEndAllowThreads(__tstate); | |
13332 | if (PyErr_Occurred()) SWIG_fail; | |
13333 | } | |
13334 | resultobj = SWIG_Py_Void(); | |
13335 | return resultobj; | |
13336 | fail: | |
13337 | return NULL; | |
d55e5bfc RD |
13338 | } |
13339 | ||
13340 | ||
1bd55598 RD |
13341 | SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13342 | PyObject *resultobj = 0; | |
13343 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13344 | void *argp1 = 0 ; | |
13345 | int res1 = 0 ; | |
13346 | PyObject *swig_obj[1] ; | |
13347 | ||
13348 | if (!args) SWIG_fail; | |
13349 | swig_obj[0] = args; | |
13350 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13351 | if (!SWIG_IsOK(res1)) { | |
13352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13353 | } | |
13354 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13355 | { | |
13356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13357 | (arg1)->Cut(); | |
13358 | wxPyEndAllowThreads(__tstate); | |
13359 | if (PyErr_Occurred()) SWIG_fail; | |
13360 | } | |
13361 | resultobj = SWIG_Py_Void(); | |
13362 | return resultobj; | |
13363 | fail: | |
13364 | return NULL; | |
d55e5bfc RD |
13365 | } |
13366 | ||
13367 | ||
1bd55598 RD |
13368 | SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13369 | PyObject *resultobj = 0; | |
13370 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13371 | void *argp1 = 0 ; | |
13372 | int res1 = 0 ; | |
13373 | PyObject *swig_obj[1] ; | |
13374 | ||
13375 | if (!args) SWIG_fail; | |
13376 | swig_obj[0] = args; | |
13377 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13378 | if (!SWIG_IsOK(res1)) { | |
13379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13380 | } | |
13381 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13382 | { | |
13383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13384 | (arg1)->Paste(); | |
13385 | wxPyEndAllowThreads(__tstate); | |
13386 | if (PyErr_Occurred()) SWIG_fail; | |
13387 | } | |
13388 | resultobj = SWIG_Py_Void(); | |
13389 | return resultobj; | |
13390 | fail: | |
13391 | return NULL; | |
d55e5bfc RD |
13392 | } |
13393 | ||
13394 | ||
1bd55598 RD |
13395 | SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13396 | PyObject *resultobj = 0; | |
13397 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13398 | bool result; | |
13399 | void *argp1 = 0 ; | |
13400 | int res1 = 0 ; | |
13401 | PyObject *swig_obj[1] ; | |
13402 | ||
13403 | if (!args) SWIG_fail; | |
13404 | swig_obj[0] = args; | |
13405 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13406 | if (!SWIG_IsOK(res1)) { | |
13407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13408 | } | |
13409 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13410 | { | |
13411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13412 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
13413 | wxPyEndAllowThreads(__tstate); | |
13414 | if (PyErr_Occurred()) SWIG_fail; | |
13415 | } | |
13416 | { | |
13417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13418 | } | |
13419 | return resultobj; | |
13420 | fail: | |
13421 | return NULL; | |
d55e5bfc RD |
13422 | } |
13423 | ||
13424 | ||
1bd55598 RD |
13425 | SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13426 | PyObject *resultobj = 0; | |
13427 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13428 | bool result; | |
13429 | void *argp1 = 0 ; | |
13430 | int res1 = 0 ; | |
13431 | PyObject *swig_obj[1] ; | |
13432 | ||
13433 | if (!args) SWIG_fail; | |
13434 | swig_obj[0] = args; | |
13435 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13436 | if (!SWIG_IsOK(res1)) { | |
13437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13438 | } | |
13439 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13440 | { | |
13441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13442 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
13443 | wxPyEndAllowThreads(__tstate); | |
13444 | if (PyErr_Occurred()) SWIG_fail; | |
13445 | } | |
13446 | { | |
13447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13448 | } | |
13449 | return resultobj; | |
13450 | fail: | |
13451 | return NULL; | |
d55e5bfc RD |
13452 | } |
13453 | ||
13454 | ||
1bd55598 RD |
13455 | SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13456 | PyObject *resultobj = 0; | |
13457 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13458 | bool result; | |
13459 | void *argp1 = 0 ; | |
13460 | int res1 = 0 ; | |
13461 | PyObject *swig_obj[1] ; | |
13462 | ||
13463 | if (!args) SWIG_fail; | |
13464 | swig_obj[0] = args; | |
13465 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13466 | if (!SWIG_IsOK(res1)) { | |
13467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13468 | } | |
13469 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13470 | { | |
13471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13472 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
13473 | wxPyEndAllowThreads(__tstate); | |
13474 | if (PyErr_Occurred()) SWIG_fail; | |
13475 | } | |
13476 | { | |
13477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13478 | } | |
13479 | return resultobj; | |
13480 | fail: | |
13481 | return NULL; | |
d55e5bfc RD |
13482 | } |
13483 | ||
13484 | ||
1bd55598 RD |
13485 | SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13486 | PyObject *resultobj = 0; | |
13487 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13488 | void *argp1 = 0 ; | |
13489 | int res1 = 0 ; | |
13490 | PyObject *swig_obj[1] ; | |
13491 | ||
13492 | if (!args) SWIG_fail; | |
13493 | swig_obj[0] = args; | |
13494 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13495 | if (!SWIG_IsOK(res1)) { | |
13496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13497 | } | |
13498 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13499 | { | |
13500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13501 | (arg1)->Undo(); | |
13502 | wxPyEndAllowThreads(__tstate); | |
13503 | if (PyErr_Occurred()) SWIG_fail; | |
13504 | } | |
13505 | resultobj = SWIG_Py_Void(); | |
13506 | return resultobj; | |
13507 | fail: | |
13508 | return NULL; | |
d55e5bfc RD |
13509 | } |
13510 | ||
13511 | ||
1bd55598 RD |
13512 | SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13513 | PyObject *resultobj = 0; | |
13514 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13515 | void *argp1 = 0 ; | |
13516 | int res1 = 0 ; | |
13517 | PyObject *swig_obj[1] ; | |
13518 | ||
13519 | if (!args) SWIG_fail; | |
13520 | swig_obj[0] = args; | |
13521 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13522 | if (!SWIG_IsOK(res1)) { | |
13523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13524 | } | |
13525 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13526 | { | |
13527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13528 | (arg1)->Redo(); | |
13529 | wxPyEndAllowThreads(__tstate); | |
13530 | if (PyErr_Occurred()) SWIG_fail; | |
13531 | } | |
13532 | resultobj = SWIG_Py_Void(); | |
13533 | return resultobj; | |
13534 | fail: | |
13535 | return NULL; | |
d55e5bfc RD |
13536 | } |
13537 | ||
13538 | ||
1bd55598 RD |
13539 | SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13540 | PyObject *resultobj = 0; | |
13541 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13542 | bool result; | |
13543 | void *argp1 = 0 ; | |
13544 | int res1 = 0 ; | |
13545 | PyObject *swig_obj[1] ; | |
13546 | ||
13547 | if (!args) SWIG_fail; | |
13548 | swig_obj[0] = args; | |
13549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13550 | if (!SWIG_IsOK(res1)) { | |
13551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13552 | } | |
13553 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13554 | { | |
13555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13556 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
13557 | wxPyEndAllowThreads(__tstate); | |
13558 | if (PyErr_Occurred()) SWIG_fail; | |
13559 | } | |
13560 | { | |
13561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13562 | } | |
13563 | return resultobj; | |
13564 | fail: | |
13565 | return NULL; | |
d55e5bfc RD |
13566 | } |
13567 | ||
13568 | ||
1bd55598 RD |
13569 | SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13570 | PyObject *resultobj = 0; | |
13571 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13572 | bool result; | |
13573 | void *argp1 = 0 ; | |
13574 | int res1 = 0 ; | |
13575 | PyObject *swig_obj[1] ; | |
13576 | ||
13577 | if (!args) SWIG_fail; | |
13578 | swig_obj[0] = args; | |
13579 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13580 | if (!SWIG_IsOK(res1)) { | |
13581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13582 | } | |
13583 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13584 | { | |
13585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13586 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
13587 | wxPyEndAllowThreads(__tstate); | |
13588 | if (PyErr_Occurred()) SWIG_fail; | |
13589 | } | |
13590 | { | |
13591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13592 | } | |
13593 | return resultobj; | |
13594 | fail: | |
13595 | return NULL; | |
13596 | } | |
13597 | ||
13598 | ||
13599 | SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13600 | PyObject *resultobj = 0; | |
13601 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13602 | long arg2 ; | |
13603 | void *argp1 = 0 ; | |
13604 | int res1 = 0 ; | |
13605 | long val2 ; | |
13606 | int ecode2 = 0 ; | |
13607 | PyObject * obj0 = 0 ; | |
13608 | PyObject * obj1 = 0 ; | |
13609 | char * kwnames[] = { | |
13610 | (char *) "self",(char *) "pos", NULL | |
13611 | }; | |
13612 | ||
13613 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
13614 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13615 | if (!SWIG_IsOK(res1)) { | |
13616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13617 | } | |
13618 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13619 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13620 | if (!SWIG_IsOK(ecode2)) { | |
13621 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
13622 | } | |
13623 | arg2 = static_cast< long >(val2); | |
13624 | { | |
13625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13626 | (arg1)->SetInsertionPoint(arg2); | |
13627 | wxPyEndAllowThreads(__tstate); | |
13628 | if (PyErr_Occurred()) SWIG_fail; | |
13629 | } | |
13630 | resultobj = SWIG_Py_Void(); | |
13631 | return resultobj; | |
13632 | fail: | |
13633 | return NULL; | |
d55e5bfc RD |
13634 | } |
13635 | ||
13636 | ||
1bd55598 RD |
13637 | SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13638 | PyObject *resultobj = 0; | |
13639 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13640 | void *argp1 = 0 ; | |
13641 | int res1 = 0 ; | |
13642 | PyObject *swig_obj[1] ; | |
13643 | ||
13644 | if (!args) SWIG_fail; | |
13645 | swig_obj[0] = args; | |
13646 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13647 | if (!SWIG_IsOK(res1)) { | |
13648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13649 | } | |
13650 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13651 | { | |
13652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13653 | (arg1)->SetInsertionPointEnd(); | |
13654 | wxPyEndAllowThreads(__tstate); | |
13655 | if (PyErr_Occurred()) SWIG_fail; | |
13656 | } | |
13657 | resultobj = SWIG_Py_Void(); | |
13658 | return resultobj; | |
13659 | fail: | |
13660 | return NULL; | |
d55e5bfc RD |
13661 | } |
13662 | ||
13663 | ||
1bd55598 RD |
13664 | SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13665 | PyObject *resultobj = 0; | |
13666 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13667 | long result; | |
13668 | void *argp1 = 0 ; | |
13669 | int res1 = 0 ; | |
13670 | PyObject *swig_obj[1] ; | |
13671 | ||
13672 | if (!args) SWIG_fail; | |
13673 | swig_obj[0] = args; | |
13674 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13675 | if (!SWIG_IsOK(res1)) { | |
13676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13677 | } | |
13678 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13679 | { | |
13680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13681 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
13682 | wxPyEndAllowThreads(__tstate); | |
13683 | if (PyErr_Occurred()) SWIG_fail; | |
13684 | } | |
13685 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13686 | return resultobj; | |
13687 | fail: | |
13688 | return NULL; | |
d55e5bfc RD |
13689 | } |
13690 | ||
13691 | ||
1bd55598 RD |
13692 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13693 | PyObject *resultobj = 0; | |
13694 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13695 | long result; | |
13696 | void *argp1 = 0 ; | |
13697 | int res1 = 0 ; | |
13698 | PyObject *swig_obj[1] ; | |
13699 | ||
13700 | if (!args) SWIG_fail; | |
13701 | swig_obj[0] = args; | |
13702 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13703 | if (!SWIG_IsOK(res1)) { | |
13704 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13705 | } | |
13706 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13707 | { | |
13708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13709 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
13710 | wxPyEndAllowThreads(__tstate); | |
13711 | if (PyErr_Occurred()) SWIG_fail; | |
13712 | } | |
13713 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13714 | return resultobj; | |
13715 | fail: | |
13716 | return NULL; | |
13717 | } | |
13718 | ||
13719 | ||
13720 | SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13721 | PyObject *resultobj = 0; | |
13722 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13723 | long arg2 ; | |
13724 | long arg3 ; | |
13725 | void *argp1 = 0 ; | |
13726 | int res1 = 0 ; | |
13727 | long val2 ; | |
13728 | int ecode2 = 0 ; | |
13729 | long val3 ; | |
13730 | int ecode3 = 0 ; | |
13731 | PyObject * obj0 = 0 ; | |
13732 | PyObject * obj1 = 0 ; | |
13733 | PyObject * obj2 = 0 ; | |
13734 | char * kwnames[] = { | |
2131d850 | 13735 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
13736 | }; |
13737 | ||
13738 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13739 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13740 | if (!SWIG_IsOK(res1)) { | |
13741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13742 | } | |
13743 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13744 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13745 | if (!SWIG_IsOK(ecode2)) { | |
13746 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
13747 | } | |
13748 | arg2 = static_cast< long >(val2); | |
13749 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13750 | if (!SWIG_IsOK(ecode3)) { | |
13751 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
13752 | } | |
13753 | arg3 = static_cast< long >(val3); | |
13754 | { | |
13755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13756 | (arg1)->SetSelection(arg2,arg3); | |
13757 | wxPyEndAllowThreads(__tstate); | |
13758 | if (PyErr_Occurred()) SWIG_fail; | |
13759 | } | |
13760 | resultobj = SWIG_Py_Void(); | |
13761 | return resultobj; | |
13762 | fail: | |
13763 | return NULL; | |
d55e5bfc RD |
13764 | } |
13765 | ||
13766 | ||
1bd55598 RD |
13767 | SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13768 | PyObject *resultobj = 0; | |
13769 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13770 | void *argp1 = 0 ; | |
13771 | int res1 = 0 ; | |
13772 | PyObject *swig_obj[1] ; | |
13773 | ||
13774 | if (!args) SWIG_fail; | |
13775 | swig_obj[0] = args; | |
13776 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13777 | if (!SWIG_IsOK(res1)) { | |
13778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13779 | } | |
13780 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13781 | { | |
13782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13783 | (arg1)->SelectAll(); | |
13784 | wxPyEndAllowThreads(__tstate); | |
13785 | if (PyErr_Occurred()) SWIG_fail; | |
13786 | } | |
13787 | resultobj = SWIG_Py_Void(); | |
13788 | return resultobj; | |
13789 | fail: | |
13790 | return NULL; | |
13791 | } | |
13792 | ||
13793 | ||
13794 | SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13795 | PyObject *resultobj = 0; | |
13796 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13797 | bool arg2 ; | |
13798 | void *argp1 = 0 ; | |
13799 | int res1 = 0 ; | |
13800 | bool val2 ; | |
13801 | int ecode2 = 0 ; | |
13802 | PyObject * obj0 = 0 ; | |
13803 | PyObject * obj1 = 0 ; | |
13804 | char * kwnames[] = { | |
13805 | (char *) "self",(char *) "editable", NULL | |
13806 | }; | |
13807 | ||
13808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail; | |
13809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13810 | if (!SWIG_IsOK(res1)) { | |
13811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13812 | } | |
13813 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13814 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
13815 | if (!SWIG_IsOK(ecode2)) { | |
13816 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'"); | |
13817 | } | |
13818 | arg2 = static_cast< bool >(val2); | |
13819 | { | |
13820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13821 | (arg1)->SetEditable(arg2); | |
13822 | wxPyEndAllowThreads(__tstate); | |
13823 | if (PyErr_Occurred()) SWIG_fail; | |
13824 | } | |
13825 | resultobj = SWIG_Py_Void(); | |
13826 | return resultobj; | |
13827 | fail: | |
13828 | return NULL; | |
13829 | } | |
13830 | ||
13831 | ||
d7645bfd VZ |
13832 | SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13833 | PyObject *resultobj = 0; | |
13834 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13835 | bool arg2 ; | |
13836 | void *argp1 = 0 ; | |
13837 | int res1 = 0 ; | |
13838 | bool val2 ; | |
13839 | int ecode2 = 0 ; | |
13840 | PyObject * obj0 = 0 ; | |
13841 | PyObject * obj1 = 0 ; | |
13842 | char * kwnames[] = { | |
13843 | (char *) "self",(char *) "check", NULL | |
13844 | }; | |
13845 | ||
13846 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail; | |
13847 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13848 | if (!SWIG_IsOK(res1)) { | |
13849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13850 | } | |
13851 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13852 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
13853 | if (!SWIG_IsOK(ecode2)) { | |
13854 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'"); | |
13855 | } | |
13856 | arg2 = static_cast< bool >(val2); | |
13857 | { | |
13858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13859 | (arg1)->MacCheckSpelling(arg2); | |
13860 | wxPyEndAllowThreads(__tstate); | |
13861 | if (PyErr_Occurred()) SWIG_fail; | |
13862 | } | |
13863 | resultobj = SWIG_Py_Void(); | |
13864 | return resultobj; | |
13865 | fail: | |
13866 | return NULL; | |
13867 | } | |
13868 | ||
13869 | ||
b39fe951 RD |
13870 | SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13871 | PyObject *resultobj = 0; | |
13872 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13873 | void *argp1 = 0 ; | |
13874 | int res1 = 0 ; | |
13875 | PyObject *swig_obj[1] ; | |
13876 | ||
13877 | if (!args) SWIG_fail; | |
13878 | swig_obj[0] = args; | |
13879 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13880 | if (!SWIG_IsOK(res1)) { | |
13881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13882 | } | |
13883 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13884 | { | |
13885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13886 | (arg1)->SendTextUpdatedEvent(); | |
13887 | wxPyEndAllowThreads(__tstate); | |
13888 | if (PyErr_Occurred()) SWIG_fail; | |
13889 | } | |
13890 | resultobj = SWIG_Py_Void(); | |
13891 | return resultobj; | |
13892 | fail: | |
13893 | return NULL; | |
13894 | } | |
13895 | ||
13896 | ||
1bd55598 RD |
13897 | SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13898 | PyObject *resultobj = 0; | |
13899 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13900 | wxString *arg2 = 0 ; | |
13901 | void *argp1 = 0 ; | |
13902 | int res1 = 0 ; | |
13903 | bool temp2 = false ; | |
13904 | PyObject * obj0 = 0 ; | |
13905 | PyObject * obj1 = 0 ; | |
13906 | char * kwnames[] = { | |
13907 | (char *) "self",(char *) "text", NULL | |
13908 | }; | |
13909 | ||
13910 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail; | |
13911 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13912 | if (!SWIG_IsOK(res1)) { | |
13913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13914 | } | |
13915 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13916 | { | |
13917 | arg2 = wxString_in_helper(obj1); | |
13918 | if (arg2 == NULL) SWIG_fail; | |
13919 | temp2 = true; | |
13920 | } | |
13921 | { | |
13922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13923 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
13924 | wxPyEndAllowThreads(__tstate); | |
13925 | if (PyErr_Occurred()) SWIG_fail; | |
13926 | } | |
13927 | resultobj = SWIG_Py_Void(); | |
13928 | { | |
13929 | if (temp2) | |
13930 | delete arg2; | |
13931 | } | |
13932 | return resultobj; | |
13933 | fail: | |
13934 | { | |
13935 | if (temp2) | |
13936 | delete arg2; | |
13937 | } | |
13938 | return NULL; | |
13939 | } | |
13940 | ||
13941 | ||
13942 | SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13943 | PyObject *resultobj = 0; | |
13944 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13945 | long arg2 ; | |
13946 | long arg3 ; | |
13947 | wxString result; | |
13948 | void *argp1 = 0 ; | |
13949 | int res1 = 0 ; | |
13950 | long val2 ; | |
13951 | int ecode2 = 0 ; | |
13952 | long val3 ; | |
13953 | int ecode3 = 0 ; | |
13954 | PyObject * obj0 = 0 ; | |
13955 | PyObject * obj1 = 0 ; | |
13956 | PyObject * obj2 = 0 ; | |
13957 | char * kwnames[] = { | |
2131d850 | 13958 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
13959 | }; |
13960 | ||
13961 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13962 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13963 | if (!SWIG_IsOK(res1)) { | |
13964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13965 | } | |
13966 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13967 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13968 | if (!SWIG_IsOK(ecode2)) { | |
13969 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'"); | |
13970 | } | |
13971 | arg2 = static_cast< long >(val2); | |
13972 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13973 | if (!SWIG_IsOK(ecode3)) { | |
13974 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'"); | |
13975 | } | |
13976 | arg3 = static_cast< long >(val3); | |
13977 | { | |
13978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13979 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
13980 | wxPyEndAllowThreads(__tstate); | |
13981 | if (PyErr_Occurred()) SWIG_fail; | |
13982 | } | |
13983 | { | |
13984 | #if wxUSE_UNICODE | |
13985 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13986 | #else | |
13987 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13988 | #endif | |
13989 | } | |
13990 | return resultobj; | |
13991 | fail: | |
13992 | return NULL; | |
d55e5bfc RD |
13993 | } |
13994 | ||
13995 | ||
1bd55598 RD |
13996 | SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13997 | PyObject *resultobj = 0; | |
13998 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
13999 | SwigValueWrapper<wxVisualAttributes > result; | |
14000 | int val1 ; | |
14001 | int ecode1 = 0 ; | |
14002 | PyObject * obj0 = 0 ; | |
14003 | char * kwnames[] = { | |
14004 | (char *) "variant", NULL | |
14005 | }; | |
14006 | ||
14007 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
14008 | if (obj0) { | |
14009 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14010 | if (!SWIG_IsOK(ecode1)) { | |
14011 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
14012 | } | |
14013 | arg1 = static_cast< wxWindowVariant >(val1); | |
14014 | } | |
14015 | { | |
14016 | if (!wxPyCheckForApp()) SWIG_fail; | |
14017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14018 | result = wxTextCtrl::GetClassDefaultAttributes(arg1); | |
14019 | wxPyEndAllowThreads(__tstate); | |
14020 | if (PyErr_Occurred()) SWIG_fail; | |
14021 | } | |
14022 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
14023 | return resultobj; | |
14024 | fail: | |
14025 | return NULL; | |
14026 | } | |
14027 | ||
14028 | ||
14029 | SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14030 | PyObject *obj; | |
14031 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14032 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj)); | |
14033 | return SWIG_Py_Void(); | |
14034 | } | |
14035 | ||
14036 | SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14037 | return SWIG_Python_InitShadowInstance(args); | |
14038 | } | |
14039 | ||
14040 | SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14041 | PyObject *resultobj = 0; | |
14042 | int arg1 ; | |
14043 | wxMouseEvent *arg2 = 0 ; | |
14044 | long arg3 ; | |
14045 | long arg4 ; | |
14046 | wxTextUrlEvent *result = 0 ; | |
14047 | int val1 ; | |
14048 | int ecode1 = 0 ; | |
14049 | void *argp2 = 0 ; | |
14050 | int res2 = 0 ; | |
14051 | long val3 ; | |
14052 | int ecode3 = 0 ; | |
14053 | long val4 ; | |
14054 | int ecode4 = 0 ; | |
14055 | PyObject * obj0 = 0 ; | |
14056 | PyObject * obj1 = 0 ; | |
14057 | PyObject * obj2 = 0 ; | |
14058 | PyObject * obj3 = 0 ; | |
14059 | char * kwnames[] = { | |
14060 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
14061 | }; | |
14062 | ||
14063 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
14064 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14065 | if (!SWIG_IsOK(ecode1)) { | |
14066 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'"); | |
14067 | } | |
14068 | arg1 = static_cast< int >(val1); | |
14069 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0); | |
14070 | if (!SWIG_IsOK(res2)) { | |
14071 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'"); | |
14072 | } | |
14073 | if (!argp2) { | |
14074 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'"); | |
14075 | } | |
14076 | arg2 = reinterpret_cast< wxMouseEvent * >(argp2); | |
14077 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
14078 | if (!SWIG_IsOK(ecode3)) { | |
14079 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'"); | |
14080 | } | |
14081 | arg3 = static_cast< long >(val3); | |
14082 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
14083 | if (!SWIG_IsOK(ecode4)) { | |
14084 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'"); | |
14085 | } | |
14086 | arg4 = static_cast< long >(val4); | |
14087 | { | |
14088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14089 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
14090 | wxPyEndAllowThreads(__tstate); | |
14091 | if (PyErr_Occurred()) SWIG_fail; | |
14092 | } | |
14093 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 ); | |
14094 | return resultobj; | |
14095 | fail: | |
14096 | return NULL; | |
d55e5bfc RD |
14097 | } |
14098 | ||
14099 | ||
1bd55598 RD |
14100 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14101 | PyObject *resultobj = 0; | |
14102 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
14103 | wxMouseEvent *result = 0 ; | |
14104 | void *argp1 = 0 ; | |
14105 | int res1 = 0 ; | |
14106 | PyObject *swig_obj[1] ; | |
14107 | ||
14108 | if (!args) SWIG_fail; | |
14109 | swig_obj[0] = args; | |
14110 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
14111 | if (!SWIG_IsOK(res1)) { | |
14112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'"); | |
14113 | } | |
14114 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
14115 | { | |
14116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 14117 | { |
1bd55598 RD |
14118 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); |
14119 | result = (wxMouseEvent *) &_result_ref; | |
d55e5bfc | 14120 | } |
1bd55598 RD |
14121 | wxPyEndAllowThreads(__tstate); |
14122 | if (PyErr_Occurred()) SWIG_fail; | |
14123 | } | |
14124 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 ); | |
14125 | return resultobj; | |
14126 | fail: | |
14127 | return NULL; | |
d55e5bfc RD |
14128 | } |
14129 | ||
14130 | ||
1bd55598 RD |
14131 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14132 | PyObject *resultobj = 0; | |
14133 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
14134 | long result; | |
14135 | void *argp1 = 0 ; | |
14136 | int res1 = 0 ; | |
14137 | PyObject *swig_obj[1] ; | |
14138 | ||
14139 | if (!args) SWIG_fail; | |
14140 | swig_obj[0] = args; | |
14141 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
14142 | if (!SWIG_IsOK(res1)) { | |
14143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'"); | |
14144 | } | |
14145 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
14146 | { | |
14147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14148 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
14149 | wxPyEndAllowThreads(__tstate); | |
14150 | if (PyErr_Occurred()) SWIG_fail; | |
14151 | } | |
14152 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
14153 | return resultobj; | |
14154 | fail: | |
14155 | return NULL; | |
d55e5bfc RD |
14156 | } |
14157 | ||
14158 | ||
1bd55598 RD |
14159 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14160 | PyObject *resultobj = 0; | |
14161 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
14162 | long result; | |
14163 | void *argp1 = 0 ; | |
14164 | int res1 = 0 ; | |
14165 | PyObject *swig_obj[1] ; | |
14166 | ||
14167 | if (!args) SWIG_fail; | |
14168 | swig_obj[0] = args; | |
14169 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
14170 | if (!SWIG_IsOK(res1)) { | |
14171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'"); | |
14172 | } | |
14173 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
14174 | { | |
14175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14176 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
14177 | wxPyEndAllowThreads(__tstate); | |
14178 | if (PyErr_Occurred()) SWIG_fail; | |
14179 | } | |
14180 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
14181 | return resultobj; | |
14182 | fail: | |
14183 | return NULL; | |
d55e5bfc RD |
14184 | } |
14185 | ||
14186 | ||
1bd55598 RD |
14187 | SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14188 | PyObject *obj; | |
14189 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14190 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj)); | |
14191 | return SWIG_Py_Void(); | |
68e533f8 RD |
14192 | } |
14193 | ||
1bd55598 RD |
14194 | SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14195 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
14196 | } |
14197 | ||
1bd55598 RD |
14198 | SWIGINTERN int ScrollBarNameStr_set(PyObject *) { |
14199 | SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only."); | |
14200 | return 1; | |
d55e5bfc RD |
14201 | } |
14202 | ||
14203 | ||
1bd55598 RD |
14204 | SWIGINTERN PyObject *ScrollBarNameStr_get(void) { |
14205 | PyObject *pyobj = 0; | |
14206 | ||
14207 | { | |
14208 | #if wxUSE_UNICODE | |
14209 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
14210 | #else | |
14211 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
14212 | #endif | |
14213 | } | |
14214 | return pyobj; | |
14215 | } | |
14216 | ||
14217 | ||
14218 | SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14219 | PyObject *resultobj = 0; | |
14220 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14221 | int arg2 = (int) -1 ; | |
14222 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14223 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14224 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14225 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14226 | long arg5 = (long) wxSB_HORIZONTAL ; | |
14227 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
14228 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
14229 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
14230 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14231 | wxScrollBar *result = 0 ; | |
14232 | void *argp1 = 0 ; | |
14233 | int res1 = 0 ; | |
14234 | int val2 ; | |
14235 | int ecode2 = 0 ; | |
14236 | wxPoint temp3 ; | |
14237 | wxSize temp4 ; | |
14238 | long val5 ; | |
14239 | int ecode5 = 0 ; | |
14240 | void *argp6 = 0 ; | |
14241 | int res6 = 0 ; | |
14242 | bool temp7 = false ; | |
14243 | PyObject * obj0 = 0 ; | |
14244 | PyObject * obj1 = 0 ; | |
14245 | PyObject * obj2 = 0 ; | |
14246 | PyObject * obj3 = 0 ; | |
14247 | PyObject * obj4 = 0 ; | |
14248 | PyObject * obj5 = 0 ; | |
14249 | PyObject * obj6 = 0 ; | |
14250 | char * kwnames[] = { | |
14251 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14252 | }; | |
14253 | ||
14254 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14255 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14256 | if (!SWIG_IsOK(res1)) { | |
14257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14258 | } | |
14259 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14260 | if (obj1) { | |
14261 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14262 | if (!SWIG_IsOK(ecode2)) { | |
14263 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'"); | |
14264 | } | |
14265 | arg2 = static_cast< int >(val2); | |
14266 | } | |
14267 | if (obj2) { | |
d55e5bfc | 14268 | { |
1bd55598 RD |
14269 | arg3 = &temp3; |
14270 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 14271 | } |
1bd55598 RD |
14272 | } |
14273 | if (obj3) { | |
36ed4f51 | 14274 | { |
1bd55598 RD |
14275 | arg4 = &temp4; |
14276 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14277 | } |
1bd55598 RD |
14278 | } |
14279 | if (obj4) { | |
14280 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14281 | if (!SWIG_IsOK(ecode5)) { | |
14282 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'"); | |
14283 | } | |
14284 | arg5 = static_cast< long >(val5); | |
14285 | } | |
14286 | if (obj5) { | |
14287 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
14288 | if (!SWIG_IsOK(res6)) { | |
14289 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 14290 | } |
1bd55598 RD |
14291 | if (!argp6) { |
14292 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 14293 | } |
1bd55598 RD |
14294 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
14295 | } | |
14296 | if (obj6) { | |
d55e5bfc | 14297 | { |
1bd55598 RD |
14298 | arg7 = wxString_in_helper(obj6); |
14299 | if (arg7 == NULL) SWIG_fail; | |
14300 | temp7 = true; | |
d55e5bfc | 14301 | } |
1bd55598 RD |
14302 | } |
14303 | { | |
14304 | if (!wxPyCheckForApp()) SWIG_fail; | |
14305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14306 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
14307 | wxPyEndAllowThreads(__tstate); | |
14308 | if (PyErr_Occurred()) SWIG_fail; | |
14309 | } | |
14310 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 ); | |
14311 | { | |
14312 | if (temp7) | |
14313 | delete arg7; | |
14314 | } | |
14315 | return resultobj; | |
14316 | fail: | |
14317 | { | |
14318 | if (temp7) | |
14319 | delete arg7; | |
14320 | } | |
14321 | return NULL; | |
d55e5bfc RD |
14322 | } |
14323 | ||
14324 | ||
1bd55598 RD |
14325 | SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14326 | PyObject *resultobj = 0; | |
14327 | wxScrollBar *result = 0 ; | |
14328 | ||
14329 | if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail; | |
14330 | { | |
14331 | if (!wxPyCheckForApp()) SWIG_fail; | |
14332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14333 | result = (wxScrollBar *)new wxScrollBar(); | |
14334 | wxPyEndAllowThreads(__tstate); | |
14335 | if (PyErr_Occurred()) SWIG_fail; | |
14336 | } | |
14337 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 ); | |
14338 | return resultobj; | |
14339 | fail: | |
14340 | return NULL; | |
14341 | } | |
14342 | ||
14343 | ||
14344 | SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14345 | PyObject *resultobj = 0; | |
14346 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14347 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14348 | int arg3 = (int) -1 ; | |
14349 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14350 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14351 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14352 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14353 | long arg6 = (long) wxSB_HORIZONTAL ; | |
14354 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
14355 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
14356 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
14357 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14358 | bool result; | |
14359 | void *argp1 = 0 ; | |
14360 | int res1 = 0 ; | |
14361 | void *argp2 = 0 ; | |
14362 | int res2 = 0 ; | |
14363 | int val3 ; | |
14364 | int ecode3 = 0 ; | |
14365 | wxPoint temp4 ; | |
14366 | wxSize temp5 ; | |
14367 | long val6 ; | |
14368 | int ecode6 = 0 ; | |
14369 | void *argp7 = 0 ; | |
14370 | int res7 = 0 ; | |
14371 | bool temp8 = false ; | |
14372 | PyObject * obj0 = 0 ; | |
14373 | PyObject * obj1 = 0 ; | |
14374 | PyObject * obj2 = 0 ; | |
14375 | PyObject * obj3 = 0 ; | |
14376 | PyObject * obj4 = 0 ; | |
14377 | PyObject * obj5 = 0 ; | |
14378 | PyObject * obj6 = 0 ; | |
14379 | PyObject * obj7 = 0 ; | |
14380 | char * kwnames[] = { | |
14381 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14382 | }; | |
14383 | ||
14384 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
14385 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14386 | if (!SWIG_IsOK(res1)) { | |
14387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'"); | |
14388 | } | |
14389 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14390 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14391 | if (!SWIG_IsOK(res2)) { | |
14392 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14393 | } | |
14394 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14395 | if (obj2) { | |
14396 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14397 | if (!SWIG_IsOK(ecode3)) { | |
14398 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
14399 | } | |
14400 | arg3 = static_cast< int >(val3); | |
14401 | } | |
14402 | if (obj3) { | |
d55e5bfc | 14403 | { |
1bd55598 RD |
14404 | arg4 = &temp4; |
14405 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14406 | } |
1bd55598 RD |
14407 | } |
14408 | if (obj4) { | |
d55e5bfc | 14409 | { |
1bd55598 RD |
14410 | arg5 = &temp5; |
14411 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 14412 | } |
1bd55598 RD |
14413 | } |
14414 | if (obj5) { | |
14415 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14416 | if (!SWIG_IsOK(ecode6)) { | |
14417 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'"); | |
14418 | } | |
14419 | arg6 = static_cast< long >(val6); | |
14420 | } | |
14421 | if (obj6) { | |
14422 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
14423 | if (!SWIG_IsOK(res7)) { | |
14424 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 14425 | } |
1bd55598 RD |
14426 | if (!argp7) { |
14427 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 14428 | } |
1bd55598 RD |
14429 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
14430 | } | |
14431 | if (obj7) { | |
d55e5bfc | 14432 | { |
1bd55598 RD |
14433 | arg8 = wxString_in_helper(obj7); |
14434 | if (arg8 == NULL) SWIG_fail; | |
14435 | temp8 = true; | |
d55e5bfc | 14436 | } |
1bd55598 RD |
14437 | } |
14438 | { | |
14439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14440 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
14441 | wxPyEndAllowThreads(__tstate); | |
14442 | if (PyErr_Occurred()) SWIG_fail; | |
14443 | } | |
14444 | { | |
14445 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14446 | } | |
14447 | { | |
14448 | if (temp8) | |
14449 | delete arg8; | |
14450 | } | |
14451 | return resultobj; | |
14452 | fail: | |
14453 | { | |
14454 | if (temp8) | |
14455 | delete arg8; | |
14456 | } | |
14457 | return NULL; | |
d55e5bfc RD |
14458 | } |
14459 | ||
14460 | ||
1bd55598 RD |
14461 | SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14462 | PyObject *resultobj = 0; | |
14463 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14464 | int result; | |
14465 | void *argp1 = 0 ; | |
14466 | int res1 = 0 ; | |
14467 | PyObject *swig_obj[1] ; | |
14468 | ||
14469 | if (!args) SWIG_fail; | |
14470 | swig_obj[0] = args; | |
14471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14472 | if (!SWIG_IsOK(res1)) { | |
14473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14474 | } | |
14475 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14476 | { | |
14477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14478 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
14479 | wxPyEndAllowThreads(__tstate); | |
14480 | if (PyErr_Occurred()) SWIG_fail; | |
14481 | } | |
14482 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14483 | return resultobj; | |
14484 | fail: | |
14485 | return NULL; | |
d55e5bfc RD |
14486 | } |
14487 | ||
14488 | ||
1bd55598 RD |
14489 | SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14490 | PyObject *resultobj = 0; | |
14491 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14492 | int result; | |
14493 | void *argp1 = 0 ; | |
14494 | int res1 = 0 ; | |
14495 | PyObject *swig_obj[1] ; | |
14496 | ||
14497 | if (!args) SWIG_fail; | |
14498 | swig_obj[0] = args; | |
14499 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14500 | if (!SWIG_IsOK(res1)) { | |
14501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14502 | } | |
14503 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14504 | { | |
14505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14506 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
14507 | wxPyEndAllowThreads(__tstate); | |
14508 | if (PyErr_Occurred()) SWIG_fail; | |
14509 | } | |
14510 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14511 | return resultobj; | |
14512 | fail: | |
14513 | return NULL; | |
d55e5bfc RD |
14514 | } |
14515 | ||
14516 | ||
1bd55598 RD |
14517 | SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14518 | PyObject *resultobj = 0; | |
14519 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14520 | int result; | |
14521 | void *argp1 = 0 ; | |
14522 | int res1 = 0 ; | |
14523 | PyObject *swig_obj[1] ; | |
14524 | ||
14525 | if (!args) SWIG_fail; | |
14526 | swig_obj[0] = args; | |
14527 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14528 | if (!SWIG_IsOK(res1)) { | |
14529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14530 | } | |
14531 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14532 | { | |
14533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14534 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
14535 | wxPyEndAllowThreads(__tstate); | |
14536 | if (PyErr_Occurred()) SWIG_fail; | |
14537 | } | |
14538 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14539 | return resultobj; | |
14540 | fail: | |
14541 | return NULL; | |
d55e5bfc RD |
14542 | } |
14543 | ||
14544 | ||
1bd55598 RD |
14545 | SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14546 | PyObject *resultobj = 0; | |
14547 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14548 | int result; | |
14549 | void *argp1 = 0 ; | |
14550 | int res1 = 0 ; | |
14551 | PyObject *swig_obj[1] ; | |
14552 | ||
14553 | if (!args) SWIG_fail; | |
14554 | swig_obj[0] = args; | |
14555 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14556 | if (!SWIG_IsOK(res1)) { | |
14557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14558 | } | |
14559 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14560 | { | |
14561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14562 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
14563 | wxPyEndAllowThreads(__tstate); | |
14564 | if (PyErr_Occurred()) SWIG_fail; | |
14565 | } | |
14566 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14567 | return resultobj; | |
14568 | fail: | |
14569 | return NULL; | |
d55e5bfc RD |
14570 | } |
14571 | ||
14572 | ||
1bd55598 RD |
14573 | SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14574 | PyObject *resultobj = 0; | |
14575 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14576 | bool result; | |
14577 | void *argp1 = 0 ; | |
14578 | int res1 = 0 ; | |
14579 | PyObject *swig_obj[1] ; | |
14580 | ||
14581 | if (!args) SWIG_fail; | |
14582 | swig_obj[0] = args; | |
14583 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14584 | if (!SWIG_IsOK(res1)) { | |
14585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14586 | } | |
14587 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14588 | { | |
14589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14590 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
14591 | wxPyEndAllowThreads(__tstate); | |
14592 | if (PyErr_Occurred()) SWIG_fail; | |
14593 | } | |
14594 | { | |
14595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14596 | } | |
14597 | return resultobj; | |
14598 | fail: | |
14599 | return NULL; | |
14600 | } | |
14601 | ||
14602 | ||
14603 | SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14604 | PyObject *resultobj = 0; | |
14605 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14606 | int arg2 ; | |
14607 | void *argp1 = 0 ; | |
14608 | int res1 = 0 ; | |
14609 | int val2 ; | |
14610 | int ecode2 = 0 ; | |
14611 | PyObject * obj0 = 0 ; | |
14612 | PyObject * obj1 = 0 ; | |
14613 | char * kwnames[] = { | |
14614 | (char *) "self",(char *) "viewStart", NULL | |
14615 | }; | |
14616 | ||
14617 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
14618 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14619 | if (!SWIG_IsOK(res1)) { | |
14620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'"); | |
14621 | } | |
14622 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14623 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14624 | if (!SWIG_IsOK(ecode2)) { | |
14625 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'"); | |
14626 | } | |
14627 | arg2 = static_cast< int >(val2); | |
14628 | { | |
14629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14630 | (arg1)->SetThumbPosition(arg2); | |
14631 | wxPyEndAllowThreads(__tstate); | |
14632 | if (PyErr_Occurred()) SWIG_fail; | |
14633 | } | |
14634 | resultobj = SWIG_Py_Void(); | |
14635 | return resultobj; | |
14636 | fail: | |
14637 | return NULL; | |
14638 | } | |
14639 | ||
14640 | ||
14641 | SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14642 | PyObject *resultobj = 0; | |
14643 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
14644 | SwigValueWrapper<wxVisualAttributes > result; | |
14645 | int val1 ; | |
14646 | int ecode1 = 0 ; | |
14647 | PyObject * obj0 = 0 ; | |
14648 | char * kwnames[] = { | |
14649 | (char *) "variant", NULL | |
14650 | }; | |
14651 | ||
14652 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
14653 | if (obj0) { | |
14654 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14655 | if (!SWIG_IsOK(ecode1)) { | |
14656 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
14657 | } | |
14658 | arg1 = static_cast< wxWindowVariant >(val1); | |
14659 | } | |
14660 | { | |
14661 | if (!wxPyCheckForApp()) SWIG_fail; | |
14662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14663 | result = wxScrollBar::GetClassDefaultAttributes(arg1); | |
14664 | wxPyEndAllowThreads(__tstate); | |
14665 | if (PyErr_Occurred()) SWIG_fail; | |
14666 | } | |
14667 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
14668 | return resultobj; | |
14669 | fail: | |
14670 | return NULL; | |
d55e5bfc RD |
14671 | } |
14672 | ||
14673 | ||
1bd55598 RD |
14674 | SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14675 | PyObject *obj; | |
14676 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14677 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj)); | |
14678 | return SWIG_Py_Void(); | |
d55e5bfc RD |
14679 | } |
14680 | ||
1bd55598 RD |
14681 | SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14682 | return SWIG_Python_InitShadowInstance(args); | |
14683 | } | |
d55e5bfc | 14684 | |
1bd55598 RD |
14685 | SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) { |
14686 | SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
14687 | return 1; | |
14688 | } | |
14689 | ||
14690 | ||
14691 | SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) { | |
14692 | PyObject *pyobj = 0; | |
14693 | ||
14694 | { | |
d55e5bfc | 14695 | #if wxUSE_UNICODE |
1bd55598 | 14696 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); |
d55e5bfc | 14697 | #else |
1bd55598 | 14698 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); |
d55e5bfc | 14699 | #endif |
1bd55598 RD |
14700 | } |
14701 | return pyobj; | |
d55e5bfc RD |
14702 | } |
14703 | ||
14704 | ||
1bd55598 RD |
14705 | SWIGINTERN int SpinCtrlNameStr_set(PyObject *) { |
14706 | SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only."); | |
14707 | return 1; | |
d55e5bfc RD |
14708 | } |
14709 | ||
14710 | ||
1bd55598 RD |
14711 | SWIGINTERN PyObject *SpinCtrlNameStr_get(void) { |
14712 | PyObject *pyobj = 0; | |
14713 | ||
14714 | { | |
14715 | #if wxUSE_UNICODE | |
14716 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
14717 | #else | |
14718 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
14719 | #endif | |
14720 | } | |
14721 | return pyobj; | |
14722 | } | |
14723 | ||
14724 | ||
14725 | SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14726 | PyObject *resultobj = 0; | |
14727 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14728 | int arg2 = (int) -1 ; | |
14729 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14730 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14731 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14732 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14733 | long arg5 = (long) wxSP_HORIZONTAL ; | |
14734 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
14735 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14736 | wxSpinButton *result = 0 ; | |
14737 | void *argp1 = 0 ; | |
14738 | int res1 = 0 ; | |
14739 | int val2 ; | |
14740 | int ecode2 = 0 ; | |
14741 | wxPoint temp3 ; | |
14742 | wxSize temp4 ; | |
14743 | long val5 ; | |
14744 | int ecode5 = 0 ; | |
14745 | bool temp6 = false ; | |
14746 | PyObject * obj0 = 0 ; | |
14747 | PyObject * obj1 = 0 ; | |
14748 | PyObject * obj2 = 0 ; | |
14749 | PyObject * obj3 = 0 ; | |
14750 | PyObject * obj4 = 0 ; | |
14751 | PyObject * obj5 = 0 ; | |
14752 | char * kwnames[] = { | |
14753 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14754 | }; | |
14755 | ||
14756 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
14757 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14758 | if (!SWIG_IsOK(res1)) { | |
14759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14760 | } | |
14761 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14762 | if (obj1) { | |
14763 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14764 | if (!SWIG_IsOK(ecode2)) { | |
14765 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'"); | |
14766 | } | |
14767 | arg2 = static_cast< int >(val2); | |
14768 | } | |
14769 | if (obj2) { | |
d55e5bfc | 14770 | { |
1bd55598 RD |
14771 | arg3 = &temp3; |
14772 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 14773 | } |
1bd55598 RD |
14774 | } |
14775 | if (obj3) { | |
d55e5bfc | 14776 | { |
1bd55598 RD |
14777 | arg4 = &temp4; |
14778 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14779 | } |
1bd55598 RD |
14780 | } |
14781 | if (obj4) { | |
14782 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14783 | if (!SWIG_IsOK(ecode5)) { | |
14784 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'"); | |
14785 | } | |
14786 | arg5 = static_cast< long >(val5); | |
14787 | } | |
14788 | if (obj5) { | |
d55e5bfc | 14789 | { |
1bd55598 RD |
14790 | arg6 = wxString_in_helper(obj5); |
14791 | if (arg6 == NULL) SWIG_fail; | |
14792 | temp6 = true; | |
d55e5bfc | 14793 | } |
1bd55598 RD |
14794 | } |
14795 | { | |
14796 | if (!wxPyCheckForApp()) SWIG_fail; | |
14797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14798 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14799 | wxPyEndAllowThreads(__tstate); | |
14800 | if (PyErr_Occurred()) SWIG_fail; | |
14801 | } | |
14802 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 ); | |
14803 | { | |
14804 | if (temp6) | |
14805 | delete arg6; | |
14806 | } | |
14807 | return resultobj; | |
14808 | fail: | |
14809 | { | |
14810 | if (temp6) | |
14811 | delete arg6; | |
14812 | } | |
14813 | return NULL; | |
d55e5bfc RD |
14814 | } |
14815 | ||
14816 | ||
1bd55598 RD |
14817 | SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14818 | PyObject *resultobj = 0; | |
14819 | wxSpinButton *result = 0 ; | |
14820 | ||
14821 | if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail; | |
14822 | { | |
14823 | if (!wxPyCheckForApp()) SWIG_fail; | |
14824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14825 | result = (wxSpinButton *)new wxSpinButton(); | |
14826 | wxPyEndAllowThreads(__tstate); | |
14827 | if (PyErr_Occurred()) SWIG_fail; | |
14828 | } | |
14829 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 ); | |
14830 | return resultobj; | |
14831 | fail: | |
14832 | return NULL; | |
14833 | } | |
14834 | ||
14835 | ||
14836 | SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14837 | PyObject *resultobj = 0; | |
14838 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14839 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14840 | int arg3 = (int) -1 ; | |
14841 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14842 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14843 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14844 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14845 | long arg6 = (long) wxSP_HORIZONTAL ; | |
14846 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
14847 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14848 | bool result; | |
14849 | void *argp1 = 0 ; | |
14850 | int res1 = 0 ; | |
14851 | void *argp2 = 0 ; | |
14852 | int res2 = 0 ; | |
14853 | int val3 ; | |
14854 | int ecode3 = 0 ; | |
14855 | wxPoint temp4 ; | |
14856 | wxSize temp5 ; | |
14857 | long val6 ; | |
14858 | int ecode6 = 0 ; | |
14859 | bool temp7 = false ; | |
14860 | PyObject * obj0 = 0 ; | |
14861 | PyObject * obj1 = 0 ; | |
14862 | PyObject * obj2 = 0 ; | |
14863 | PyObject * obj3 = 0 ; | |
14864 | PyObject * obj4 = 0 ; | |
14865 | PyObject * obj5 = 0 ; | |
14866 | PyObject * obj6 = 0 ; | |
14867 | char * kwnames[] = { | |
14868 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14869 | }; | |
14870 | ||
14871 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14872 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14873 | if (!SWIG_IsOK(res1)) { | |
14874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
14875 | } | |
14876 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14877 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14878 | if (!SWIG_IsOK(res2)) { | |
14879 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14880 | } | |
14881 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14882 | if (obj2) { | |
14883 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14884 | if (!SWIG_IsOK(ecode3)) { | |
14885 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
14886 | } | |
14887 | arg3 = static_cast< int >(val3); | |
14888 | } | |
14889 | if (obj3) { | |
d55e5bfc | 14890 | { |
1bd55598 RD |
14891 | arg4 = &temp4; |
14892 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14893 | } |
1bd55598 RD |
14894 | } |
14895 | if (obj4) { | |
d55e5bfc | 14896 | { |
1bd55598 RD |
14897 | arg5 = &temp5; |
14898 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 14899 | } |
1bd55598 RD |
14900 | } |
14901 | if (obj5) { | |
14902 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14903 | if (!SWIG_IsOK(ecode6)) { | |
14904 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'"); | |
14905 | } | |
14906 | arg6 = static_cast< long >(val6); | |
14907 | } | |
14908 | if (obj6) { | |
14909 | { | |
14910 | arg7 = wxString_in_helper(obj6); | |
14911 | if (arg7 == NULL) SWIG_fail; | |
14912 | temp7 = true; | |
14913 | } | |
14914 | } | |
14915 | { | |
14916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14917 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14918 | wxPyEndAllowThreads(__tstate); | |
14919 | if (PyErr_Occurred()) SWIG_fail; | |
14920 | } | |
14921 | { | |
14922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14923 | } | |
14924 | { | |
14925 | if (temp7) | |
14926 | delete arg7; | |
14927 | } | |
14928 | return resultobj; | |
14929 | fail: | |
14930 | { | |
14931 | if (temp7) | |
14932 | delete arg7; | |
14933 | } | |
14934 | return NULL; | |
d55e5bfc RD |
14935 | } |
14936 | ||
14937 | ||
1bd55598 RD |
14938 | SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14939 | PyObject *resultobj = 0; | |
14940 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14941 | int result; | |
14942 | void *argp1 = 0 ; | |
14943 | int res1 = 0 ; | |
14944 | PyObject *swig_obj[1] ; | |
14945 | ||
14946 | if (!args) SWIG_fail; | |
14947 | swig_obj[0] = args; | |
14948 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14949 | if (!SWIG_IsOK(res1)) { | |
14950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
14951 | } | |
14952 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14953 | { | |
14954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14955 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
14956 | wxPyEndAllowThreads(__tstate); | |
14957 | if (PyErr_Occurred()) SWIG_fail; | |
14958 | } | |
14959 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14960 | return resultobj; | |
14961 | fail: | |
14962 | return NULL; | |
d55e5bfc RD |
14963 | } |
14964 | ||
14965 | ||
1bd55598 RD |
14966 | SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14967 | PyObject *resultobj = 0; | |
14968 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14969 | int result; | |
14970 | void *argp1 = 0 ; | |
14971 | int res1 = 0 ; | |
14972 | PyObject *swig_obj[1] ; | |
14973 | ||
14974 | if (!args) SWIG_fail; | |
14975 | swig_obj[0] = args; | |
14976 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14977 | if (!SWIG_IsOK(res1)) { | |
14978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
14979 | } | |
14980 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14981 | { | |
14982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14983 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
14984 | wxPyEndAllowThreads(__tstate); | |
14985 | if (PyErr_Occurred()) SWIG_fail; | |
14986 | } | |
14987 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14988 | return resultobj; | |
14989 | fail: | |
14990 | return NULL; | |
d55e5bfc RD |
14991 | } |
14992 | ||
14993 | ||
1bd55598 RD |
14994 | SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14995 | PyObject *resultobj = 0; | |
14996 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14997 | int result; | |
14998 | void *argp1 = 0 ; | |
14999 | int res1 = 0 ; | |
15000 | PyObject *swig_obj[1] ; | |
15001 | ||
15002 | if (!args) SWIG_fail; | |
15003 | swig_obj[0] = args; | |
15004 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15005 | if (!SWIG_IsOK(res1)) { | |
15006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
15007 | } | |
15008 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15009 | { | |
15010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15011 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
15012 | wxPyEndAllowThreads(__tstate); | |
15013 | if (PyErr_Occurred()) SWIG_fail; | |
15014 | } | |
15015 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15016 | return resultobj; | |
15017 | fail: | |
15018 | return NULL; | |
15019 | } | |
15020 | ||
15021 | ||
15022 | SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15023 | PyObject *resultobj = 0; | |
15024 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15025 | int arg2 ; | |
15026 | void *argp1 = 0 ; | |
15027 | int res1 = 0 ; | |
15028 | int val2 ; | |
15029 | int ecode2 = 0 ; | |
15030 | PyObject * obj0 = 0 ; | |
15031 | PyObject * obj1 = 0 ; | |
15032 | char * kwnames[] = { | |
15033 | (char *) "self",(char *) "val", NULL | |
15034 | }; | |
15035 | ||
15036 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
15037 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15038 | if (!SWIG_IsOK(res1)) { | |
15039 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
15040 | } | |
15041 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15042 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15043 | if (!SWIG_IsOK(ecode2)) { | |
15044 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
15045 | } | |
15046 | arg2 = static_cast< int >(val2); | |
15047 | { | |
15048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15049 | (arg1)->SetValue(arg2); | |
15050 | wxPyEndAllowThreads(__tstate); | |
15051 | if (PyErr_Occurred()) SWIG_fail; | |
15052 | } | |
15053 | resultobj = SWIG_Py_Void(); | |
15054 | return resultobj; | |
15055 | fail: | |
15056 | return NULL; | |
15057 | } | |
15058 | ||
15059 | ||
15060 | SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15061 | PyObject *resultobj = 0; | |
15062 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15063 | int arg2 ; | |
15064 | void *argp1 = 0 ; | |
15065 | int res1 = 0 ; | |
15066 | int val2 ; | |
15067 | int ecode2 = 0 ; | |
15068 | PyObject * obj0 = 0 ; | |
15069 | PyObject * obj1 = 0 ; | |
15070 | char * kwnames[] = { | |
15071 | (char *) "self",(char *) "minVal", NULL | |
15072 | }; | |
15073 | ||
15074 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail; | |
15075 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15076 | if (!SWIG_IsOK(res1)) { | |
15077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
15078 | } | |
15079 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15080 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15081 | if (!SWIG_IsOK(ecode2)) { | |
15082 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'"); | |
15083 | } | |
15084 | arg2 = static_cast< int >(val2); | |
15085 | { | |
15086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15087 | (arg1)->SetMin(arg2); | |
15088 | wxPyEndAllowThreads(__tstate); | |
15089 | if (PyErr_Occurred()) SWIG_fail; | |
15090 | } | |
15091 | resultobj = SWIG_Py_Void(); | |
15092 | return resultobj; | |
15093 | fail: | |
15094 | return NULL; | |
15095 | } | |
15096 | ||
15097 | ||
15098 | SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15099 | PyObject *resultobj = 0; | |
15100 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15101 | int arg2 ; | |
15102 | void *argp1 = 0 ; | |
15103 | int res1 = 0 ; | |
15104 | int val2 ; | |
15105 | int ecode2 = 0 ; | |
15106 | PyObject * obj0 = 0 ; | |
15107 | PyObject * obj1 = 0 ; | |
15108 | char * kwnames[] = { | |
15109 | (char *) "self",(char *) "maxVal", NULL | |
15110 | }; | |
15111 | ||
15112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail; | |
15113 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15114 | if (!SWIG_IsOK(res1)) { | |
15115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
15116 | } | |
15117 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15118 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15119 | if (!SWIG_IsOK(ecode2)) { | |
15120 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'"); | |
15121 | } | |
15122 | arg2 = static_cast< int >(val2); | |
15123 | { | |
15124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15125 | (arg1)->SetMax(arg2); | |
15126 | wxPyEndAllowThreads(__tstate); | |
15127 | if (PyErr_Occurred()) SWIG_fail; | |
15128 | } | |
15129 | resultobj = SWIG_Py_Void(); | |
15130 | return resultobj; | |
15131 | fail: | |
15132 | return NULL; | |
15133 | } | |
15134 | ||
15135 | ||
15136 | SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15137 | PyObject *resultobj = 0; | |
15138 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15139 | int arg2 ; | |
15140 | int arg3 ; | |
15141 | void *argp1 = 0 ; | |
15142 | int res1 = 0 ; | |
15143 | int val2 ; | |
15144 | int ecode2 = 0 ; | |
15145 | int val3 ; | |
15146 | int ecode3 = 0 ; | |
15147 | PyObject * obj0 = 0 ; | |
15148 | PyObject * obj1 = 0 ; | |
15149 | PyObject * obj2 = 0 ; | |
15150 | char * kwnames[] = { | |
15151 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
15152 | }; | |
15153 | ||
15154 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15155 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15156 | if (!SWIG_IsOK(res1)) { | |
15157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
15158 | } | |
15159 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15160 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15161 | if (!SWIG_IsOK(ecode2)) { | |
15162 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
15163 | } | |
15164 | arg2 = static_cast< int >(val2); | |
15165 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15166 | if (!SWIG_IsOK(ecode3)) { | |
15167 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
15168 | } | |
15169 | arg3 = static_cast< int >(val3); | |
15170 | { | |
15171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15172 | (arg1)->SetRange(arg2,arg3); | |
15173 | wxPyEndAllowThreads(__tstate); | |
15174 | if (PyErr_Occurred()) SWIG_fail; | |
15175 | } | |
15176 | resultobj = SWIG_Py_Void(); | |
15177 | return resultobj; | |
15178 | fail: | |
15179 | return NULL; | |
d55e5bfc RD |
15180 | } |
15181 | ||
15182 | ||
1bd55598 RD |
15183 | SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15184 | PyObject *resultobj = 0; | |
15185 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15186 | bool result; | |
15187 | void *argp1 = 0 ; | |
15188 | int res1 = 0 ; | |
15189 | PyObject *swig_obj[1] ; | |
15190 | ||
15191 | if (!args) SWIG_fail; | |
15192 | swig_obj[0] = args; | |
15193 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15194 | if (!SWIG_IsOK(res1)) { | |
15195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
15196 | } | |
15197 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15198 | { | |
15199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15200 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
15201 | wxPyEndAllowThreads(__tstate); | |
15202 | if (PyErr_Occurred()) SWIG_fail; | |
15203 | } | |
15204 | { | |
15205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15206 | } | |
15207 | return resultobj; | |
15208 | fail: | |
15209 | return NULL; | |
d55e5bfc RD |
15210 | } |
15211 | ||
15212 | ||
1bd55598 RD |
15213 | SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15214 | PyObject *resultobj = 0; | |
15215 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
15216 | SwigValueWrapper<wxVisualAttributes > result; | |
15217 | int val1 ; | |
15218 | int ecode1 = 0 ; | |
15219 | PyObject * obj0 = 0 ; | |
15220 | char * kwnames[] = { | |
15221 | (char *) "variant", NULL | |
15222 | }; | |
15223 | ||
15224 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
15225 | if (obj0) { | |
15226 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15227 | if (!SWIG_IsOK(ecode1)) { | |
15228 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
15229 | } | |
15230 | arg1 = static_cast< wxWindowVariant >(val1); | |
15231 | } | |
15232 | { | |
15233 | if (!wxPyCheckForApp()) SWIG_fail; | |
15234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15235 | result = wxSpinButton::GetClassDefaultAttributes(arg1); | |
15236 | wxPyEndAllowThreads(__tstate); | |
15237 | if (PyErr_Occurred()) SWIG_fail; | |
15238 | } | |
15239 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
15240 | return resultobj; | |
15241 | fail: | |
15242 | return NULL; | |
15243 | } | |
15244 | ||
15245 | ||
15246 | SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15247 | PyObject *obj; | |
15248 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15249 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj)); | |
15250 | return SWIG_Py_Void(); | |
15251 | } | |
15252 | ||
15253 | SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15254 | return SWIG_Python_InitShadowInstance(args); | |
15255 | } | |
15256 | ||
15257 | SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15258 | PyObject *resultobj = 0; | |
15259 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15260 | int arg2 = (int) -1 ; | |
15261 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15262 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15263 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15264 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15265 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15266 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15267 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
15268 | int arg7 = (int) 0 ; | |
15269 | int arg8 = (int) 100 ; | |
15270 | int arg9 = (int) 0 ; | |
15271 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
15272 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
15273 | wxSpinCtrl *result = 0 ; | |
15274 | void *argp1 = 0 ; | |
15275 | int res1 = 0 ; | |
15276 | int val2 ; | |
15277 | int ecode2 = 0 ; | |
15278 | bool temp3 = false ; | |
15279 | wxPoint temp4 ; | |
15280 | wxSize temp5 ; | |
15281 | long val6 ; | |
15282 | int ecode6 = 0 ; | |
15283 | int val7 ; | |
15284 | int ecode7 = 0 ; | |
15285 | int val8 ; | |
15286 | int ecode8 = 0 ; | |
15287 | int val9 ; | |
15288 | int ecode9 = 0 ; | |
15289 | bool temp10 = false ; | |
15290 | PyObject * obj0 = 0 ; | |
15291 | PyObject * obj1 = 0 ; | |
15292 | PyObject * obj2 = 0 ; | |
15293 | PyObject * obj3 = 0 ; | |
15294 | PyObject * obj4 = 0 ; | |
15295 | PyObject * obj5 = 0 ; | |
15296 | PyObject * obj6 = 0 ; | |
15297 | PyObject * obj7 = 0 ; | |
15298 | PyObject * obj8 = 0 ; | |
15299 | PyObject * obj9 = 0 ; | |
15300 | char * kwnames[] = { | |
15301 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
15302 | }; | |
15303 | ||
15304 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
15305 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15306 | if (!SWIG_IsOK(res1)) { | |
15307 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
15308 | } | |
15309 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
15310 | if (obj1) { | |
15311 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15312 | if (!SWIG_IsOK(ecode2)) { | |
15313 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'"); | |
15314 | } | |
15315 | arg2 = static_cast< int >(val2); | |
15316 | } | |
15317 | if (obj2) { | |
d55e5bfc | 15318 | { |
1bd55598 RD |
15319 | arg3 = wxString_in_helper(obj2); |
15320 | if (arg3 == NULL) SWIG_fail; | |
15321 | temp3 = true; | |
d55e5bfc | 15322 | } |
1bd55598 RD |
15323 | } |
15324 | if (obj3) { | |
d55e5bfc | 15325 | { |
1bd55598 RD |
15326 | arg4 = &temp4; |
15327 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 15328 | } |
1bd55598 RD |
15329 | } |
15330 | if (obj4) { | |
d55e5bfc | 15331 | { |
1bd55598 RD |
15332 | arg5 = &temp5; |
15333 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 15334 | } |
1bd55598 RD |
15335 | } |
15336 | if (obj5) { | |
15337 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
15338 | if (!SWIG_IsOK(ecode6)) { | |
15339 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'"); | |
15340 | } | |
15341 | arg6 = static_cast< long >(val6); | |
15342 | } | |
15343 | if (obj6) { | |
15344 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
15345 | if (!SWIG_IsOK(ecode7)) { | |
15346 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'"); | |
15347 | } | |
15348 | arg7 = static_cast< int >(val7); | |
15349 | } | |
15350 | if (obj7) { | |
15351 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
15352 | if (!SWIG_IsOK(ecode8)) { | |
15353 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'"); | |
15354 | } | |
15355 | arg8 = static_cast< int >(val8); | |
15356 | } | |
15357 | if (obj8) { | |
15358 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
15359 | if (!SWIG_IsOK(ecode9)) { | |
15360 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'"); | |
15361 | } | |
15362 | arg9 = static_cast< int >(val9); | |
15363 | } | |
15364 | if (obj9) { | |
d55e5bfc | 15365 | { |
1bd55598 RD |
15366 | arg10 = wxString_in_helper(obj9); |
15367 | if (arg10 == NULL) SWIG_fail; | |
15368 | temp10 = true; | |
d55e5bfc | 15369 | } |
1bd55598 RD |
15370 | } |
15371 | { | |
15372 | if (!wxPyCheckForApp()) SWIG_fail; | |
15373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15374 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
15375 | wxPyEndAllowThreads(__tstate); | |
15376 | if (PyErr_Occurred()) SWIG_fail; | |
15377 | } | |
15378 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 ); | |
15379 | { | |
15380 | if (temp3) | |
15381 | delete arg3; | |
15382 | } | |
15383 | { | |
15384 | if (temp10) | |
15385 | delete arg10; | |
15386 | } | |
15387 | return resultobj; | |
15388 | fail: | |
15389 | { | |
15390 | if (temp3) | |
15391 | delete arg3; | |
15392 | } | |
15393 | { | |
15394 | if (temp10) | |
15395 | delete arg10; | |
15396 | } | |
15397 | return NULL; | |
d55e5bfc RD |
15398 | } |
15399 | ||
15400 | ||
1bd55598 RD |
15401 | SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15402 | PyObject *resultobj = 0; | |
15403 | wxSpinCtrl *result = 0 ; | |
15404 | ||
15405 | if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail; | |
15406 | { | |
15407 | if (!wxPyCheckForApp()) SWIG_fail; | |
15408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15409 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
15410 | wxPyEndAllowThreads(__tstate); | |
15411 | if (PyErr_Occurred()) SWIG_fail; | |
15412 | } | |
15413 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 ); | |
15414 | return resultobj; | |
15415 | fail: | |
15416 | return NULL; | |
15417 | } | |
15418 | ||
15419 | ||
15420 | SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15421 | PyObject *resultobj = 0; | |
15422 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15423 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15424 | int arg3 = (int) -1 ; | |
15425 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15426 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15427 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
15428 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15429 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15430 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15431 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
15432 | int arg8 = (int) 0 ; | |
15433 | int arg9 = (int) 100 ; | |
15434 | int arg10 = (int) 0 ; | |
15435 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
15436 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
15437 | bool result; | |
15438 | void *argp1 = 0 ; | |
15439 | int res1 = 0 ; | |
15440 | void *argp2 = 0 ; | |
15441 | int res2 = 0 ; | |
15442 | int val3 ; | |
15443 | int ecode3 = 0 ; | |
15444 | bool temp4 = false ; | |
15445 | wxPoint temp5 ; | |
15446 | wxSize temp6 ; | |
15447 | long val7 ; | |
15448 | int ecode7 = 0 ; | |
15449 | int val8 ; | |
15450 | int ecode8 = 0 ; | |
15451 | int val9 ; | |
15452 | int ecode9 = 0 ; | |
15453 | int val10 ; | |
15454 | int ecode10 = 0 ; | |
15455 | bool temp11 = false ; | |
15456 | PyObject * obj0 = 0 ; | |
15457 | PyObject * obj1 = 0 ; | |
15458 | PyObject * obj2 = 0 ; | |
15459 | PyObject * obj3 = 0 ; | |
15460 | PyObject * obj4 = 0 ; | |
15461 | PyObject * obj5 = 0 ; | |
15462 | PyObject * obj6 = 0 ; | |
15463 | PyObject * obj7 = 0 ; | |
15464 | PyObject * obj8 = 0 ; | |
15465 | PyObject * obj9 = 0 ; | |
15466 | PyObject * obj10 = 0 ; | |
15467 | char * kwnames[] = { | |
15468 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
15469 | }; | |
15470 | ||
15471 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
15472 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15473 | if (!SWIG_IsOK(res1)) { | |
15474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15475 | } | |
15476 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15477 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15478 | if (!SWIG_IsOK(res2)) { | |
15479 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
15480 | } | |
15481 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
15482 | if (obj2) { | |
15483 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15484 | if (!SWIG_IsOK(ecode3)) { | |
15485 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
15486 | } | |
15487 | arg3 = static_cast< int >(val3); | |
15488 | } | |
15489 | if (obj3) { | |
36ed4f51 | 15490 | { |
1bd55598 RD |
15491 | arg4 = wxString_in_helper(obj3); |
15492 | if (arg4 == NULL) SWIG_fail; | |
15493 | temp4 = true; | |
36ed4f51 | 15494 | } |
1bd55598 RD |
15495 | } |
15496 | if (obj4) { | |
36ed4f51 | 15497 | { |
1bd55598 RD |
15498 | arg5 = &temp5; |
15499 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 15500 | } |
1bd55598 RD |
15501 | } |
15502 | if (obj5) { | |
d55e5bfc | 15503 | { |
1bd55598 RD |
15504 | arg6 = &temp6; |
15505 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 15506 | } |
1bd55598 RD |
15507 | } |
15508 | if (obj6) { | |
15509 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
15510 | if (!SWIG_IsOK(ecode7)) { | |
15511 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
15512 | } | |
15513 | arg7 = static_cast< long >(val7); | |
15514 | } | |
15515 | if (obj7) { | |
15516 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
15517 | if (!SWIG_IsOK(ecode8)) { | |
15518 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'"); | |
15519 | } | |
15520 | arg8 = static_cast< int >(val8); | |
15521 | } | |
15522 | if (obj8) { | |
15523 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
15524 | if (!SWIG_IsOK(ecode9)) { | |
15525 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'"); | |
15526 | } | |
15527 | arg9 = static_cast< int >(val9); | |
15528 | } | |
15529 | if (obj9) { | |
15530 | ecode10 = SWIG_AsVal_int(obj9, &val10); | |
15531 | if (!SWIG_IsOK(ecode10)) { | |
15532 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'"); | |
15533 | } | |
15534 | arg10 = static_cast< int >(val10); | |
15535 | } | |
15536 | if (obj10) { | |
15537 | { | |
15538 | arg11 = wxString_in_helper(obj10); | |
15539 | if (arg11 == NULL) SWIG_fail; | |
15540 | temp11 = true; | |
15541 | } | |
15542 | } | |
15543 | { | |
15544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15545 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
15546 | wxPyEndAllowThreads(__tstate); | |
15547 | if (PyErr_Occurred()) SWIG_fail; | |
15548 | } | |
15549 | { | |
15550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15551 | } | |
15552 | { | |
15553 | if (temp4) | |
15554 | delete arg4; | |
15555 | } | |
15556 | { | |
15557 | if (temp11) | |
15558 | delete arg11; | |
15559 | } | |
15560 | return resultobj; | |
15561 | fail: | |
15562 | { | |
15563 | if (temp4) | |
15564 | delete arg4; | |
15565 | } | |
15566 | { | |
15567 | if (temp11) | |
15568 | delete arg11; | |
15569 | } | |
15570 | return NULL; | |
d55e5bfc RD |
15571 | } |
15572 | ||
15573 | ||
1bd55598 RD |
15574 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15575 | PyObject *resultobj = 0; | |
15576 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15577 | int result; | |
15578 | void *argp1 = 0 ; | |
15579 | int res1 = 0 ; | |
15580 | PyObject *swig_obj[1] ; | |
15581 | ||
15582 | if (!args) SWIG_fail; | |
15583 | swig_obj[0] = args; | |
15584 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15585 | if (!SWIG_IsOK(res1)) { | |
15586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15587 | } | |
15588 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15589 | { | |
15590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15591 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
15592 | wxPyEndAllowThreads(__tstate); | |
15593 | if (PyErr_Occurred()) SWIG_fail; | |
15594 | } | |
15595 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15596 | return resultobj; | |
15597 | fail: | |
15598 | return NULL; | |
15599 | } | |
15600 | ||
15601 | ||
15602 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15603 | PyObject *resultobj = 0; | |
15604 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15605 | int arg2 ; | |
15606 | void *argp1 = 0 ; | |
15607 | int res1 = 0 ; | |
15608 | int val2 ; | |
15609 | int ecode2 = 0 ; | |
15610 | PyObject * obj0 = 0 ; | |
15611 | PyObject * obj1 = 0 ; | |
15612 | char * kwnames[] = { | |
15613 | (char *) "self",(char *) "value", NULL | |
15614 | }; | |
15615 | ||
15616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
15617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15618 | if (!SWIG_IsOK(res1)) { | |
15619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15620 | } | |
15621 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15622 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15623 | if (!SWIG_IsOK(ecode2)) { | |
15624 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
15625 | } | |
15626 | arg2 = static_cast< int >(val2); | |
15627 | { | |
15628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15629 | (arg1)->SetValue(arg2); | |
15630 | wxPyEndAllowThreads(__tstate); | |
15631 | if (PyErr_Occurred()) SWIG_fail; | |
15632 | } | |
15633 | resultobj = SWIG_Py_Void(); | |
15634 | return resultobj; | |
15635 | fail: | |
15636 | return NULL; | |
15637 | } | |
15638 | ||
15639 | ||
15640 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15641 | PyObject *resultobj = 0; | |
15642 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15643 | wxString *arg2 = 0 ; | |
15644 | void *argp1 = 0 ; | |
15645 | int res1 = 0 ; | |
15646 | bool temp2 = false ; | |
15647 | PyObject * obj0 = 0 ; | |
15648 | PyObject * obj1 = 0 ; | |
15649 | char * kwnames[] = { | |
15650 | (char *) "self",(char *) "text", NULL | |
15651 | }; | |
15652 | ||
15653 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail; | |
15654 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15655 | if (!SWIG_IsOK(res1)) { | |
15656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15657 | } | |
15658 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15659 | { | |
15660 | arg2 = wxString_in_helper(obj1); | |
15661 | if (arg2 == NULL) SWIG_fail; | |
15662 | temp2 = true; | |
15663 | } | |
15664 | { | |
15665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15666 | (arg1)->SetValue((wxString const &)*arg2); | |
15667 | wxPyEndAllowThreads(__tstate); | |
15668 | if (PyErr_Occurred()) SWIG_fail; | |
15669 | } | |
15670 | resultobj = SWIG_Py_Void(); | |
15671 | { | |
15672 | if (temp2) | |
15673 | delete arg2; | |
15674 | } | |
15675 | return resultobj; | |
15676 | fail: | |
15677 | { | |
15678 | if (temp2) | |
15679 | delete arg2; | |
15680 | } | |
15681 | return NULL; | |
15682 | } | |
15683 | ||
15684 | ||
15685 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15686 | PyObject *resultobj = 0; | |
15687 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15688 | int arg2 ; | |
15689 | int arg3 ; | |
15690 | void *argp1 = 0 ; | |
15691 | int res1 = 0 ; | |
15692 | int val2 ; | |
15693 | int ecode2 = 0 ; | |
15694 | int val3 ; | |
15695 | int ecode3 = 0 ; | |
15696 | PyObject * obj0 = 0 ; | |
15697 | PyObject * obj1 = 0 ; | |
15698 | PyObject * obj2 = 0 ; | |
15699 | char * kwnames[] = { | |
15700 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
15701 | }; | |
15702 | ||
15703 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15704 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15705 | if (!SWIG_IsOK(res1)) { | |
15706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15707 | } | |
15708 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15709 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15710 | if (!SWIG_IsOK(ecode2)) { | |
15711 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
15712 | } | |
15713 | arg2 = static_cast< int >(val2); | |
15714 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15715 | if (!SWIG_IsOK(ecode3)) { | |
15716 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
15717 | } | |
15718 | arg3 = static_cast< int >(val3); | |
15719 | { | |
15720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15721 | (arg1)->SetRange(arg2,arg3); | |
15722 | wxPyEndAllowThreads(__tstate); | |
15723 | if (PyErr_Occurred()) SWIG_fail; | |
15724 | } | |
15725 | resultobj = SWIG_Py_Void(); | |
15726 | return resultobj; | |
15727 | fail: | |
15728 | return NULL; | |
d55e5bfc RD |
15729 | } |
15730 | ||
15731 | ||
1bd55598 RD |
15732 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15733 | PyObject *resultobj = 0; | |
15734 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15735 | int result; | |
15736 | void *argp1 = 0 ; | |
15737 | int res1 = 0 ; | |
15738 | PyObject *swig_obj[1] ; | |
15739 | ||
15740 | if (!args) SWIG_fail; | |
15741 | swig_obj[0] = args; | |
15742 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15743 | if (!SWIG_IsOK(res1)) { | |
15744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15745 | } | |
15746 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15747 | { | |
15748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15749 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
15750 | wxPyEndAllowThreads(__tstate); | |
15751 | if (PyErr_Occurred()) SWIG_fail; | |
15752 | } | |
15753 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15754 | return resultobj; | |
15755 | fail: | |
15756 | return NULL; | |
d55e5bfc RD |
15757 | } |
15758 | ||
15759 | ||
1bd55598 RD |
15760 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15761 | PyObject *resultobj = 0; | |
15762 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15763 | int result; | |
15764 | void *argp1 = 0 ; | |
15765 | int res1 = 0 ; | |
15766 | PyObject *swig_obj[1] ; | |
15767 | ||
15768 | if (!args) SWIG_fail; | |
15769 | swig_obj[0] = args; | |
15770 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15771 | if (!SWIG_IsOK(res1)) { | |
15772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15773 | } | |
15774 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15775 | { | |
15776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15777 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
15778 | wxPyEndAllowThreads(__tstate); | |
15779 | if (PyErr_Occurred()) SWIG_fail; | |
15780 | } | |
15781 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15782 | return resultobj; | |
15783 | fail: | |
15784 | return NULL; | |
15785 | } | |
15786 | ||
15787 | ||
15788 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15789 | PyObject *resultobj = 0; | |
15790 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15791 | long arg2 ; | |
15792 | long arg3 ; | |
15793 | void *argp1 = 0 ; | |
15794 | int res1 = 0 ; | |
15795 | long val2 ; | |
15796 | int ecode2 = 0 ; | |
15797 | long val3 ; | |
15798 | int ecode3 = 0 ; | |
15799 | PyObject * obj0 = 0 ; | |
15800 | PyObject * obj1 = 0 ; | |
15801 | PyObject * obj2 = 0 ; | |
15802 | char * kwnames[] = { | |
2131d850 | 15803 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
15804 | }; |
15805 | ||
15806 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15807 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15808 | if (!SWIG_IsOK(res1)) { | |
15809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15810 | } | |
15811 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15812 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
15813 | if (!SWIG_IsOK(ecode2)) { | |
15814 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
15815 | } | |
15816 | arg2 = static_cast< long >(val2); | |
15817 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
15818 | if (!SWIG_IsOK(ecode3)) { | |
15819 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
15820 | } | |
15821 | arg3 = static_cast< long >(val3); | |
15822 | { | |
15823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15824 | (arg1)->SetSelection(arg2,arg3); | |
15825 | wxPyEndAllowThreads(__tstate); | |
15826 | if (PyErr_Occurred()) SWIG_fail; | |
15827 | } | |
15828 | resultobj = SWIG_Py_Void(); | |
15829 | return resultobj; | |
15830 | fail: | |
15831 | return NULL; | |
15832 | } | |
15833 | ||
15834 | ||
15835 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15836 | PyObject *resultobj = 0; | |
15837 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
15838 | SwigValueWrapper<wxVisualAttributes > result; | |
15839 | int val1 ; | |
15840 | int ecode1 = 0 ; | |
15841 | PyObject * obj0 = 0 ; | |
15842 | char * kwnames[] = { | |
15843 | (char *) "variant", NULL | |
15844 | }; | |
15845 | ||
15846 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
15847 | if (obj0) { | |
15848 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15849 | if (!SWIG_IsOK(ecode1)) { | |
15850 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
15851 | } | |
15852 | arg1 = static_cast< wxWindowVariant >(val1); | |
15853 | } | |
15854 | { | |
15855 | if (!wxPyCheckForApp()) SWIG_fail; | |
15856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15857 | result = wxSpinCtrl::GetClassDefaultAttributes(arg1); | |
15858 | wxPyEndAllowThreads(__tstate); | |
15859 | if (PyErr_Occurred()) SWIG_fail; | |
15860 | } | |
15861 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
15862 | return resultobj; | |
15863 | fail: | |
15864 | return NULL; | |
d55e5bfc RD |
15865 | } |
15866 | ||
15867 | ||
1bd55598 RD |
15868 | SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15869 | PyObject *obj; | |
15870 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15871 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj)); | |
15872 | return SWIG_Py_Void(); | |
d55e5bfc RD |
15873 | } |
15874 | ||
1bd55598 RD |
15875 | SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15876 | return SWIG_Python_InitShadowInstance(args); | |
15877 | } | |
d55e5bfc | 15878 | |
1bd55598 RD |
15879 | SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15880 | PyObject *resultobj = 0; | |
15881 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15882 | int arg2 = (int) 0 ; | |
15883 | wxSpinEvent *result = 0 ; | |
15884 | int val1 ; | |
15885 | int ecode1 = 0 ; | |
15886 | int val2 ; | |
15887 | int ecode2 = 0 ; | |
15888 | PyObject * obj0 = 0 ; | |
15889 | PyObject * obj1 = 0 ; | |
15890 | char * kwnames[] = { | |
15891 | (char *) "commandType",(char *) "winid", NULL | |
15892 | }; | |
15893 | ||
15894 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
15895 | if (obj0) { | |
15896 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15897 | if (!SWIG_IsOK(ecode1)) { | |
15898 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
15899 | } | |
15900 | arg1 = static_cast< wxEventType >(val1); | |
15901 | } | |
15902 | if (obj1) { | |
15903 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15904 | if (!SWIG_IsOK(ecode2)) { | |
15905 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'"); | |
15906 | } | |
15907 | arg2 = static_cast< int >(val2); | |
15908 | } | |
15909 | { | |
15910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15911 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
15912 | wxPyEndAllowThreads(__tstate); | |
15913 | if (PyErr_Occurred()) SWIG_fail; | |
15914 | } | |
15915 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 ); | |
15916 | return resultobj; | |
15917 | fail: | |
15918 | return NULL; | |
d55e5bfc RD |
15919 | } |
15920 | ||
15921 | ||
1bd55598 RD |
15922 | SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15923 | PyObject *resultobj = 0; | |
15924 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
15925 | int result; | |
15926 | void *argp1 = 0 ; | |
15927 | int res1 = 0 ; | |
15928 | PyObject *swig_obj[1] ; | |
15929 | ||
15930 | if (!args) SWIG_fail; | |
15931 | swig_obj[0] = args; | |
15932 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 ); | |
15933 | if (!SWIG_IsOK(res1)) { | |
15934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'"); | |
15935 | } | |
15936 | arg1 = reinterpret_cast< wxSpinEvent * >(argp1); | |
15937 | { | |
15938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15939 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
15940 | wxPyEndAllowThreads(__tstate); | |
15941 | if (PyErr_Occurred()) SWIG_fail; | |
15942 | } | |
15943 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15944 | return resultobj; | |
15945 | fail: | |
15946 | return NULL; | |
15947 | } | |
15948 | ||
15949 | ||
15950 | SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15951 | PyObject *resultobj = 0; | |
15952 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
15953 | int arg2 ; | |
15954 | void *argp1 = 0 ; | |
15955 | int res1 = 0 ; | |
15956 | int val2 ; | |
15957 | int ecode2 = 0 ; | |
15958 | PyObject * obj0 = 0 ; | |
15959 | PyObject * obj1 = 0 ; | |
15960 | char * kwnames[] = { | |
15961 | (char *) "self",(char *) "pos", NULL | |
15962 | }; | |
15963 | ||
15964 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
15965 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 ); | |
15966 | if (!SWIG_IsOK(res1)) { | |
15967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'"); | |
15968 | } | |
15969 | arg1 = reinterpret_cast< wxSpinEvent * >(argp1); | |
15970 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15971 | if (!SWIG_IsOK(ecode2)) { | |
15972 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'"); | |
15973 | } | |
15974 | arg2 = static_cast< int >(val2); | |
15975 | { | |
15976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15977 | (arg1)->SetPosition(arg2); | |
15978 | wxPyEndAllowThreads(__tstate); | |
15979 | if (PyErr_Occurred()) SWIG_fail; | |
15980 | } | |
15981 | resultobj = SWIG_Py_Void(); | |
15982 | return resultobj; | |
15983 | fail: | |
15984 | return NULL; | |
d55e5bfc RD |
15985 | } |
15986 | ||
15987 | ||
1bd55598 RD |
15988 | SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15989 | PyObject *obj; | |
15990 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15991 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj)); | |
15992 | return SWIG_Py_Void(); | |
d55e5bfc RD |
15993 | } |
15994 | ||
1bd55598 RD |
15995 | SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15996 | return SWIG_Python_InitShadowInstance(args); | |
15997 | } | |
d55e5bfc | 15998 | |
1bd55598 RD |
15999 | SWIGINTERN int RadioBoxNameStr_set(PyObject *) { |
16000 | SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only."); | |
16001 | return 1; | |
d55e5bfc RD |
16002 | } |
16003 | ||
16004 | ||
1bd55598 RD |
16005 | SWIGINTERN PyObject *RadioBoxNameStr_get(void) { |
16006 | PyObject *pyobj = 0; | |
16007 | ||
16008 | { | |
16009 | #if wxUSE_UNICODE | |
16010 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
16011 | #else | |
16012 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
16013 | #endif | |
16014 | } | |
16015 | return pyobj; | |
d55e5bfc RD |
16016 | } |
16017 | ||
16018 | ||
1bd55598 RD |
16019 | SWIGINTERN int RadioButtonNameStr_set(PyObject *) { |
16020 | SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only."); | |
16021 | return 1; | |
16022 | } | |
16023 | ||
16024 | ||
16025 | SWIGINTERN PyObject *RadioButtonNameStr_get(void) { | |
16026 | PyObject *pyobj = 0; | |
16027 | ||
16028 | { | |
16029 | #if wxUSE_UNICODE | |
16030 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
16031 | #else | |
16032 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
16033 | #endif | |
16034 | } | |
16035 | return pyobj; | |
16036 | } | |
16037 | ||
16038 | ||
16039 | SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16040 | PyObject *resultobj = 0; | |
16041 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16042 | int arg2 = (int) -1 ; | |
16043 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16044 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16045 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
16046 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
16047 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
16048 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
16049 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
16050 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
16051 | int arg7 = (int) 0 ; | |
16052 | long arg8 = (long) wxRA_HORIZONTAL ; | |
16053 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
16054 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
16055 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
16056 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
16057 | wxRadioBox *result = 0 ; | |
16058 | void *argp1 = 0 ; | |
16059 | int res1 = 0 ; | |
16060 | int val2 ; | |
16061 | int ecode2 = 0 ; | |
16062 | bool temp3 = false ; | |
16063 | wxPoint temp4 ; | |
16064 | wxSize temp5 ; | |
16065 | bool temp6 = false ; | |
16066 | int val7 ; | |
16067 | int ecode7 = 0 ; | |
16068 | long val8 ; | |
16069 | int ecode8 = 0 ; | |
16070 | void *argp9 = 0 ; | |
16071 | int res9 = 0 ; | |
16072 | bool temp10 = false ; | |
16073 | PyObject * obj0 = 0 ; | |
16074 | PyObject * obj1 = 0 ; | |
16075 | PyObject * obj2 = 0 ; | |
16076 | PyObject * obj3 = 0 ; | |
16077 | PyObject * obj4 = 0 ; | |
16078 | PyObject * obj5 = 0 ; | |
16079 | PyObject * obj6 = 0 ; | |
16080 | PyObject * obj7 = 0 ; | |
16081 | PyObject * obj8 = 0 ; | |
16082 | PyObject * obj9 = 0 ; | |
16083 | char * kwnames[] = { | |
16084 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
16085 | }; | |
16086 | ||
16087 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
16088 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16089 | if (!SWIG_IsOK(res1)) { | |
16090 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16091 | } | |
16092 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16093 | if (obj1) { | |
16094 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16095 | if (!SWIG_IsOK(ecode2)) { | |
16096 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'"); | |
16097 | } | |
16098 | arg2 = static_cast< int >(val2); | |
16099 | } | |
16100 | if (obj2) { | |
36ed4f51 | 16101 | { |
1bd55598 RD |
16102 | arg3 = wxString_in_helper(obj2); |
16103 | if (arg3 == NULL) SWIG_fail; | |
16104 | temp3 = true; | |
36ed4f51 | 16105 | } |
1bd55598 RD |
16106 | } |
16107 | if (obj3) { | |
36ed4f51 | 16108 | { |
1bd55598 RD |
16109 | arg4 = &temp4; |
16110 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 16111 | } |
1bd55598 RD |
16112 | } |
16113 | if (obj4) { | |
d55e5bfc | 16114 | { |
1bd55598 RD |
16115 | arg5 = &temp5; |
16116 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 16117 | } |
1bd55598 RD |
16118 | } |
16119 | if (obj5) { | |
d55e5bfc | 16120 | { |
1bd55598 RD |
16121 | if (! PySequence_Check(obj5)) { |
16122 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
16123 | SWIG_fail; | |
16124 | } | |
16125 | arg6 = new wxArrayString; | |
16126 | temp6 = true; | |
16127 | int i, len=PySequence_Length(obj5); | |
16128 | for (i=0; i<len; i++) { | |
16129 | PyObject* item = PySequence_GetItem(obj5, i); | |
16130 | wxString* s = wxString_in_helper(item); | |
16131 | if (PyErr_Occurred()) SWIG_fail; | |
16132 | arg6->Add(*s); | |
16133 | delete s; | |
16134 | Py_DECREF(item); | |
16135 | } | |
d55e5bfc | 16136 | } |
1bd55598 RD |
16137 | } |
16138 | if (obj6) { | |
16139 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
16140 | if (!SWIG_IsOK(ecode7)) { | |
16141 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'"); | |
16142 | } | |
16143 | arg7 = static_cast< int >(val7); | |
16144 | } | |
16145 | if (obj7) { | |
16146 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
16147 | if (!SWIG_IsOK(ecode8)) { | |
16148 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'"); | |
16149 | } | |
16150 | arg8 = static_cast< long >(val8); | |
16151 | } | |
16152 | if (obj8) { | |
16153 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
16154 | if (!SWIG_IsOK(res9)) { | |
16155 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 16156 | } |
1bd55598 RD |
16157 | if (!argp9) { |
16158 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 16159 | } |
1bd55598 RD |
16160 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
16161 | } | |
16162 | if (obj9) { | |
d55e5bfc | 16163 | { |
1bd55598 RD |
16164 | arg10 = wxString_in_helper(obj9); |
16165 | if (arg10 == NULL) SWIG_fail; | |
16166 | temp10 = true; | |
d55e5bfc | 16167 | } |
1bd55598 RD |
16168 | } |
16169 | { | |
16170 | if (!wxPyCheckForApp()) SWIG_fail; | |
16171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16172 | 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); | |
16173 | wxPyEndAllowThreads(__tstate); | |
16174 | if (PyErr_Occurred()) SWIG_fail; | |
16175 | } | |
16176 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 ); | |
16177 | { | |
16178 | if (temp3) | |
16179 | delete arg3; | |
16180 | } | |
16181 | { | |
16182 | if (temp6) delete arg6; | |
16183 | } | |
16184 | { | |
16185 | if (temp10) | |
16186 | delete arg10; | |
16187 | } | |
16188 | return resultobj; | |
16189 | fail: | |
16190 | { | |
16191 | if (temp3) | |
16192 | delete arg3; | |
16193 | } | |
16194 | { | |
16195 | if (temp6) delete arg6; | |
16196 | } | |
16197 | { | |
16198 | if (temp10) | |
16199 | delete arg10; | |
16200 | } | |
16201 | return NULL; | |
d55e5bfc RD |
16202 | } |
16203 | ||
16204 | ||
1bd55598 RD |
16205 | SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16206 | PyObject *resultobj = 0; | |
16207 | wxRadioBox *result = 0 ; | |
16208 | ||
16209 | if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail; | |
16210 | { | |
16211 | if (!wxPyCheckForApp()) SWIG_fail; | |
16212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16213 | result = (wxRadioBox *)new wxRadioBox(); | |
16214 | wxPyEndAllowThreads(__tstate); | |
16215 | if (PyErr_Occurred()) SWIG_fail; | |
16216 | } | |
16217 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 ); | |
16218 | return resultobj; | |
16219 | fail: | |
16220 | return NULL; | |
16221 | } | |
16222 | ||
16223 | ||
16224 | SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16225 | PyObject *resultobj = 0; | |
16226 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16227 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16228 | int arg3 = (int) -1 ; | |
16229 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16230 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16231 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
16232 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
16233 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
16234 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
16235 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
16236 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
16237 | int arg8 = (int) 0 ; | |
16238 | long arg9 = (long) wxRA_HORIZONTAL ; | |
16239 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
16240 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
16241 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
16242 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
16243 | bool result; | |
16244 | void *argp1 = 0 ; | |
16245 | int res1 = 0 ; | |
16246 | void *argp2 = 0 ; | |
16247 | int res2 = 0 ; | |
16248 | int val3 ; | |
16249 | int ecode3 = 0 ; | |
16250 | bool temp4 = false ; | |
16251 | wxPoint temp5 ; | |
16252 | wxSize temp6 ; | |
16253 | bool temp7 = false ; | |
16254 | int val8 ; | |
16255 | int ecode8 = 0 ; | |
16256 | long val9 ; | |
16257 | int ecode9 = 0 ; | |
16258 | void *argp10 = 0 ; | |
16259 | int res10 = 0 ; | |
16260 | bool temp11 = false ; | |
16261 | PyObject * obj0 = 0 ; | |
16262 | PyObject * obj1 = 0 ; | |
16263 | PyObject * obj2 = 0 ; | |
16264 | PyObject * obj3 = 0 ; | |
16265 | PyObject * obj4 = 0 ; | |
16266 | PyObject * obj5 = 0 ; | |
16267 | PyObject * obj6 = 0 ; | |
16268 | PyObject * obj7 = 0 ; | |
16269 | PyObject * obj8 = 0 ; | |
16270 | PyObject * obj9 = 0 ; | |
16271 | PyObject * obj10 = 0 ; | |
16272 | char * kwnames[] = { | |
16273 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
16274 | }; | |
16275 | ||
16276 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
16277 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16278 | if (!SWIG_IsOK(res1)) { | |
16279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16280 | } | |
16281 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16282 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16283 | if (!SWIG_IsOK(res2)) { | |
16284 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
16285 | } | |
16286 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
16287 | if (obj2) { | |
16288 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16289 | if (!SWIG_IsOK(ecode3)) { | |
16290 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
16291 | } | |
16292 | arg3 = static_cast< int >(val3); | |
16293 | } | |
16294 | if (obj3) { | |
36ed4f51 | 16295 | { |
1bd55598 RD |
16296 | arg4 = wxString_in_helper(obj3); |
16297 | if (arg4 == NULL) SWIG_fail; | |
16298 | temp4 = true; | |
36ed4f51 | 16299 | } |
1bd55598 RD |
16300 | } |
16301 | if (obj4) { | |
36ed4f51 | 16302 | { |
1bd55598 RD |
16303 | arg5 = &temp5; |
16304 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 16305 | } |
1bd55598 RD |
16306 | } |
16307 | if (obj5) { | |
d55e5bfc | 16308 | { |
1bd55598 RD |
16309 | arg6 = &temp6; |
16310 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 16311 | } |
1bd55598 RD |
16312 | } |
16313 | if (obj6) { | |
36ed4f51 | 16314 | { |
1bd55598 RD |
16315 | if (! PySequence_Check(obj6)) { |
16316 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
16317 | SWIG_fail; | |
16318 | } | |
16319 | arg7 = new wxArrayString; | |
16320 | temp7 = true; | |
16321 | int i, len=PySequence_Length(obj6); | |
16322 | for (i=0; i<len; i++) { | |
16323 | PyObject* item = PySequence_GetItem(obj6, i); | |
16324 | wxString* s = wxString_in_helper(item); | |
16325 | if (PyErr_Occurred()) SWIG_fail; | |
16326 | arg7->Add(*s); | |
16327 | delete s; | |
16328 | Py_DECREF(item); | |
16329 | } | |
36ed4f51 | 16330 | } |
1bd55598 RD |
16331 | } |
16332 | if (obj7) { | |
16333 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
16334 | if (!SWIG_IsOK(ecode8)) { | |
16335 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'"); | |
16336 | } | |
16337 | arg8 = static_cast< int >(val8); | |
16338 | } | |
16339 | if (obj8) { | |
16340 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
16341 | if (!SWIG_IsOK(ecode9)) { | |
16342 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'"); | |
16343 | } | |
16344 | arg9 = static_cast< long >(val9); | |
16345 | } | |
16346 | if (obj9) { | |
16347 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
16348 | if (!SWIG_IsOK(res10)) { | |
16349 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 16350 | } |
1bd55598 RD |
16351 | if (!argp10) { |
16352 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 16353 | } |
1bd55598 RD |
16354 | arg10 = reinterpret_cast< wxValidator * >(argp10); |
16355 | } | |
16356 | if (obj10) { | |
d55e5bfc | 16357 | { |
1bd55598 RD |
16358 | arg11 = wxString_in_helper(obj10); |
16359 | if (arg11 == NULL) SWIG_fail; | |
16360 | temp11 = true; | |
d55e5bfc | 16361 | } |
1bd55598 RD |
16362 | } |
16363 | { | |
16364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16365 | 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); | |
16366 | wxPyEndAllowThreads(__tstate); | |
16367 | if (PyErr_Occurred()) SWIG_fail; | |
16368 | } | |
16369 | { | |
16370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16371 | } | |
16372 | { | |
16373 | if (temp4) | |
16374 | delete arg4; | |
16375 | } | |
16376 | { | |
16377 | if (temp7) delete arg7; | |
16378 | } | |
16379 | { | |
16380 | if (temp11) | |
16381 | delete arg11; | |
16382 | } | |
16383 | return resultobj; | |
16384 | fail: | |
16385 | { | |
16386 | if (temp4) | |
16387 | delete arg4; | |
16388 | } | |
16389 | { | |
16390 | if (temp7) delete arg7; | |
16391 | } | |
16392 | { | |
16393 | if (temp11) | |
16394 | delete arg11; | |
16395 | } | |
16396 | return NULL; | |
16397 | } | |
16398 | ||
16399 | ||
16400 | SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16401 | PyObject *resultobj = 0; | |
16402 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16403 | int arg2 ; | |
16404 | void *argp1 = 0 ; | |
16405 | int res1 = 0 ; | |
16406 | int val2 ; | |
16407 | int ecode2 = 0 ; | |
16408 | PyObject * obj0 = 0 ; | |
16409 | PyObject * obj1 = 0 ; | |
16410 | char * kwnames[] = { | |
16411 | (char *) "self",(char *) "n", NULL | |
16412 | }; | |
16413 | ||
16414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
16415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16416 | if (!SWIG_IsOK(res1)) { | |
16417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16418 | } | |
16419 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16420 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16421 | if (!SWIG_IsOK(ecode2)) { | |
16422 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
16423 | } | |
16424 | arg2 = static_cast< int >(val2); | |
16425 | { | |
16426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16427 | (arg1)->SetSelection(arg2); | |
16428 | wxPyEndAllowThreads(__tstate); | |
16429 | if (PyErr_Occurred()) SWIG_fail; | |
16430 | } | |
16431 | resultobj = SWIG_Py_Void(); | |
16432 | return resultobj; | |
16433 | fail: | |
16434 | return NULL; | |
d55e5bfc RD |
16435 | } |
16436 | ||
16437 | ||
1bd55598 RD |
16438 | SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16439 | PyObject *resultobj = 0; | |
16440 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16441 | int result; | |
16442 | void *argp1 = 0 ; | |
16443 | int res1 = 0 ; | |
16444 | PyObject *swig_obj[1] ; | |
16445 | ||
16446 | if (!args) SWIG_fail; | |
16447 | swig_obj[0] = args; | |
16448 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16449 | if (!SWIG_IsOK(res1)) { | |
16450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16451 | } | |
16452 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16453 | { | |
16454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16455 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
16456 | wxPyEndAllowThreads(__tstate); | |
16457 | if (PyErr_Occurred()) SWIG_fail; | |
16458 | } | |
16459 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16460 | return resultobj; | |
16461 | fail: | |
16462 | return NULL; | |
d55e5bfc RD |
16463 | } |
16464 | ||
16465 | ||
1bd55598 RD |
16466 | SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16467 | PyObject *resultobj = 0; | |
16468 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16469 | wxString result; | |
16470 | void *argp1 = 0 ; | |
16471 | int res1 = 0 ; | |
16472 | PyObject *swig_obj[1] ; | |
16473 | ||
16474 | if (!args) SWIG_fail; | |
16475 | swig_obj[0] = args; | |
16476 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16477 | if (!SWIG_IsOK(res1)) { | |
16478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16479 | } | |
16480 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16481 | { | |
16482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16483 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
16484 | wxPyEndAllowThreads(__tstate); | |
16485 | if (PyErr_Occurred()) SWIG_fail; | |
16486 | } | |
16487 | { | |
16488 | #if wxUSE_UNICODE | |
16489 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16490 | #else | |
16491 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16492 | #endif | |
16493 | } | |
16494 | return resultobj; | |
16495 | fail: | |
16496 | return NULL; | |
16497 | } | |
16498 | ||
16499 | ||
16500 | SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16501 | PyObject *resultobj = 0; | |
16502 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16503 | wxString *arg2 = 0 ; | |
16504 | bool result; | |
16505 | void *argp1 = 0 ; | |
16506 | int res1 = 0 ; | |
16507 | bool temp2 = false ; | |
16508 | PyObject * obj0 = 0 ; | |
16509 | PyObject * obj1 = 0 ; | |
16510 | char * kwnames[] = { | |
16511 | (char *) "self",(char *) "s", NULL | |
16512 | }; | |
16513 | ||
16514 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
16515 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16516 | if (!SWIG_IsOK(res1)) { | |
16517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16518 | } | |
16519 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16520 | { | |
16521 | arg2 = wxString_in_helper(obj1); | |
16522 | if (arg2 == NULL) SWIG_fail; | |
16523 | temp2 = true; | |
16524 | } | |
16525 | { | |
16526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16527 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
16528 | wxPyEndAllowThreads(__tstate); | |
16529 | if (PyErr_Occurred()) SWIG_fail; | |
16530 | } | |
16531 | { | |
16532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16533 | } | |
16534 | { | |
16535 | if (temp2) | |
16536 | delete arg2; | |
16537 | } | |
16538 | return resultobj; | |
16539 | fail: | |
16540 | { | |
16541 | if (temp2) | |
16542 | delete arg2; | |
16543 | } | |
16544 | return NULL; | |
4896ac9e RD |
16545 | } |
16546 | ||
16547 | ||
1bd55598 RD |
16548 | SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16549 | PyObject *resultobj = 0; | |
16550 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
1c71765a | 16551 | size_t result; |
1bd55598 RD |
16552 | void *argp1 = 0 ; |
16553 | int res1 = 0 ; | |
16554 | PyObject *swig_obj[1] ; | |
16555 | ||
16556 | if (!args) SWIG_fail; | |
16557 | swig_obj[0] = args; | |
16558 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16559 | if (!SWIG_IsOK(res1)) { | |
16560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16561 | } | |
16562 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16563 | { | |
16564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1c71765a | 16565 | result = (size_t)((wxRadioBox const *)arg1)->GetCount(); |
1bd55598 RD |
16566 | wxPyEndAllowThreads(__tstate); |
16567 | if (PyErr_Occurred()) SWIG_fail; | |
16568 | } | |
1c71765a | 16569 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); |
1bd55598 RD |
16570 | return resultobj; |
16571 | fail: | |
16572 | return NULL; | |
16573 | } | |
16574 | ||
16575 | ||
16576 | SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16577 | PyObject *resultobj = 0; | |
16578 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16579 | wxString *arg2 = 0 ; | |
16580 | int result; | |
16581 | void *argp1 = 0 ; | |
16582 | int res1 = 0 ; | |
16583 | bool temp2 = false ; | |
16584 | PyObject * obj0 = 0 ; | |
16585 | PyObject * obj1 = 0 ; | |
16586 | char * kwnames[] = { | |
16587 | (char *) "self",(char *) "s", NULL | |
16588 | }; | |
16589 | ||
16590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
16591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16592 | if (!SWIG_IsOK(res1)) { | |
16593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16594 | } | |
16595 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16596 | { | |
16597 | arg2 = wxString_in_helper(obj1); | |
16598 | if (arg2 == NULL) SWIG_fail; | |
16599 | temp2 = true; | |
16600 | } | |
16601 | { | |
16602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16603 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
16604 | wxPyEndAllowThreads(__tstate); | |
16605 | if (PyErr_Occurred()) SWIG_fail; | |
16606 | } | |
16607 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16608 | { | |
16609 | if (temp2) | |
16610 | delete arg2; | |
16611 | } | |
16612 | return resultobj; | |
16613 | fail: | |
16614 | { | |
16615 | if (temp2) | |
16616 | delete arg2; | |
16617 | } | |
16618 | return NULL; | |
16619 | } | |
16620 | ||
16621 | ||
16622 | SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16623 | PyObject *resultobj = 0; | |
16624 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16625 | int arg2 ; | |
16626 | wxString result; | |
16627 | void *argp1 = 0 ; | |
16628 | int res1 = 0 ; | |
16629 | int val2 ; | |
16630 | int ecode2 = 0 ; | |
16631 | PyObject * obj0 = 0 ; | |
16632 | PyObject * obj1 = 0 ; | |
16633 | char * kwnames[] = { | |
16634 | (char *) "self",(char *) "n", NULL | |
16635 | }; | |
16636 | ||
16637 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail; | |
16638 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16639 | if (!SWIG_IsOK(res1)) { | |
16640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16641 | } | |
16642 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16643 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16644 | if (!SWIG_IsOK(ecode2)) { | |
16645 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'"); | |
16646 | } | |
16647 | arg2 = static_cast< int >(val2); | |
16648 | { | |
16649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16650 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
16651 | wxPyEndAllowThreads(__tstate); | |
16652 | if (PyErr_Occurred()) SWIG_fail; | |
16653 | } | |
16654 | { | |
16655 | #if wxUSE_UNICODE | |
16656 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16657 | #else | |
16658 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16659 | #endif | |
16660 | } | |
16661 | return resultobj; | |
16662 | fail: | |
16663 | return NULL; | |
16664 | } | |
16665 | ||
16666 | ||
16667 | SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16668 | PyObject *resultobj = 0; | |
16669 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16670 | int arg2 ; | |
16671 | wxString *arg3 = 0 ; | |
16672 | void *argp1 = 0 ; | |
16673 | int res1 = 0 ; | |
16674 | int val2 ; | |
16675 | int ecode2 = 0 ; | |
16676 | bool temp3 = false ; | |
16677 | PyObject * obj0 = 0 ; | |
16678 | PyObject * obj1 = 0 ; | |
16679 | PyObject * obj2 = 0 ; | |
16680 | char * kwnames[] = { | |
16681 | (char *) "self",(char *) "n",(char *) "label", NULL | |
16682 | }; | |
16683 | ||
16684 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16685 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16686 | if (!SWIG_IsOK(res1)) { | |
16687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16688 | } | |
16689 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16690 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16691 | if (!SWIG_IsOK(ecode2)) { | |
16692 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'"); | |
16693 | } | |
16694 | arg2 = static_cast< int >(val2); | |
16695 | { | |
16696 | arg3 = wxString_in_helper(obj2); | |
16697 | if (arg3 == NULL) SWIG_fail; | |
16698 | temp3 = true; | |
16699 | } | |
16700 | { | |
16701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16702 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
16703 | wxPyEndAllowThreads(__tstate); | |
16704 | if (PyErr_Occurred()) SWIG_fail; | |
16705 | } | |
16706 | resultobj = SWIG_Py_Void(); | |
16707 | { | |
16708 | if (temp3) | |
16709 | delete arg3; | |
16710 | } | |
16711 | return resultobj; | |
16712 | fail: | |
16713 | { | |
16714 | if (temp3) | |
16715 | delete arg3; | |
16716 | } | |
16717 | return NULL; | |
16718 | } | |
16719 | ||
16720 | ||
16721 | SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16722 | PyObject *resultobj = 0; | |
16723 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16724 | unsigned int arg2 ; |
1bd55598 RD |
16725 | bool arg3 = (bool) true ; |
16726 | void *argp1 = 0 ; | |
16727 | int res1 = 0 ; | |
50f151d7 | 16728 | unsigned int val2 ; |
1bd55598 RD |
16729 | int ecode2 = 0 ; |
16730 | bool val3 ; | |
16731 | int ecode3 = 0 ; | |
16732 | PyObject * obj0 = 0 ; | |
16733 | PyObject * obj1 = 0 ; | |
16734 | PyObject * obj2 = 0 ; | |
16735 | char * kwnames[] = { | |
16736 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
16737 | }; | |
16738 | ||
16739 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16740 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16741 | if (!SWIG_IsOK(res1)) { | |
16742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16743 | } | |
16744 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
50f151d7 | 16745 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
1bd55598 | 16746 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 16747 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'"); |
1bd55598 | 16748 | } |
50f151d7 | 16749 | arg2 = static_cast< unsigned int >(val2); |
1bd55598 RD |
16750 | if (obj2) { |
16751 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
16752 | if (!SWIG_IsOK(ecode3)) { | |
16753 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'"); | |
16754 | } | |
16755 | arg3 = static_cast< bool >(val3); | |
16756 | } | |
16757 | { | |
16758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16759 | (arg1)->Enable(arg2,arg3); | |
16760 | wxPyEndAllowThreads(__tstate); | |
16761 | if (PyErr_Occurred()) SWIG_fail; | |
16762 | } | |
16763 | resultobj = SWIG_Py_Void(); | |
16764 | return resultobj; | |
16765 | fail: | |
16766 | return NULL; | |
16767 | } | |
16768 | ||
16769 | ||
16770 | SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16771 | PyObject *resultobj = 0; | |
16772 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16773 | unsigned int arg2 ; |
1bd55598 RD |
16774 | bool arg3 = (bool) true ; |
16775 | void *argp1 = 0 ; | |
16776 | int res1 = 0 ; | |
50f151d7 | 16777 | unsigned int val2 ; |
1bd55598 RD |
16778 | int ecode2 = 0 ; |
16779 | bool val3 ; | |
16780 | int ecode3 = 0 ; | |
16781 | PyObject * obj0 = 0 ; | |
16782 | PyObject * obj1 = 0 ; | |
16783 | PyObject * obj2 = 0 ; | |
16784 | char * kwnames[] = { | |
16785 | (char *) "self",(char *) "n",(char *) "show", NULL | |
16786 | }; | |
16787 | ||
16788 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16789 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16790 | if (!SWIG_IsOK(res1)) { | |
16791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16792 | } | |
16793 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
50f151d7 | 16794 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
1bd55598 | 16795 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 16796 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'"); |
1bd55598 | 16797 | } |
50f151d7 | 16798 | arg2 = static_cast< unsigned int >(val2); |
1bd55598 RD |
16799 | if (obj2) { |
16800 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
16801 | if (!SWIG_IsOK(ecode3)) { | |
16802 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'"); | |
16803 | } | |
16804 | arg3 = static_cast< bool >(val3); | |
16805 | } | |
16806 | { | |
16807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16808 | (arg1)->Show(arg2,arg3); | |
16809 | wxPyEndAllowThreads(__tstate); | |
16810 | if (PyErr_Occurred()) SWIG_fail; | |
16811 | } | |
16812 | resultobj = SWIG_Py_Void(); | |
16813 | return resultobj; | |
16814 | fail: | |
16815 | return NULL; | |
d55e5bfc RD |
16816 | } |
16817 | ||
16818 | ||
50f151d7 RD |
16819 | SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16820 | PyObject *resultobj = 0; | |
16821 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16822 | unsigned int arg2 ; | |
16823 | bool result; | |
16824 | void *argp1 = 0 ; | |
16825 | int res1 = 0 ; | |
16826 | unsigned int val2 ; | |
16827 | int ecode2 = 0 ; | |
16828 | PyObject * obj0 = 0 ; | |
16829 | PyObject * obj1 = 0 ; | |
16830 | char * kwnames[] = { | |
16831 | (char *) "self",(char *) "n", NULL | |
16832 | }; | |
16833 | ||
16834 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
16835 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16836 | if (!SWIG_IsOK(res1)) { | |
16837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16838 | } | |
16839 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16840 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
16841 | if (!SWIG_IsOK(ecode2)) { | |
16842 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'"); | |
16843 | } | |
16844 | arg2 = static_cast< unsigned int >(val2); | |
16845 | { | |
16846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16847 | result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2); | |
16848 | wxPyEndAllowThreads(__tstate); | |
16849 | if (PyErr_Occurred()) SWIG_fail; | |
16850 | } | |
16851 | { | |
16852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16853 | } | |
16854 | return resultobj; | |
16855 | fail: | |
16856 | return NULL; | |
16857 | } | |
16858 | ||
16859 | ||
16860 | SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16861 | PyObject *resultobj = 0; | |
16862 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16863 | unsigned int arg2 ; | |
16864 | bool result; | |
16865 | void *argp1 = 0 ; | |
16866 | int res1 = 0 ; | |
16867 | unsigned int val2 ; | |
16868 | int ecode2 = 0 ; | |
16869 | PyObject * obj0 = 0 ; | |
16870 | PyObject * obj1 = 0 ; | |
16871 | char * kwnames[] = { | |
16872 | (char *) "self",(char *) "n", NULL | |
16873 | }; | |
16874 | ||
16875 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail; | |
16876 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16877 | if (!SWIG_IsOK(res1)) { | |
16878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16879 | } | |
16880 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16881 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
16882 | if (!SWIG_IsOK(ecode2)) { | |
16883 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'"); | |
16884 | } | |
16885 | arg2 = static_cast< unsigned int >(val2); | |
16886 | { | |
16887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16888 | result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2); | |
16889 | wxPyEndAllowThreads(__tstate); | |
16890 | if (PyErr_Occurred()) SWIG_fail; | |
16891 | } | |
16892 | { | |
16893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16894 | } | |
16895 | return resultobj; | |
16896 | fail: | |
16897 | return NULL; | |
16898 | } | |
16899 | ||
16900 | ||
1bd55598 RD |
16901 | SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16902 | PyObject *resultobj = 0; | |
16903 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16904 | unsigned int result; |
1bd55598 RD |
16905 | void *argp1 = 0 ; |
16906 | int res1 = 0 ; | |
16907 | PyObject *swig_obj[1] ; | |
16908 | ||
16909 | if (!args) SWIG_fail; | |
16910 | swig_obj[0] = args; | |
16911 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16912 | if (!SWIG_IsOK(res1)) { | |
16913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16914 | } | |
16915 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16916 | { | |
16917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50f151d7 | 16918 | result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount(); |
1bd55598 RD |
16919 | wxPyEndAllowThreads(__tstate); |
16920 | if (PyErr_Occurred()) SWIG_fail; | |
16921 | } | |
50f151d7 | 16922 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
1bd55598 RD |
16923 | return resultobj; |
16924 | fail: | |
16925 | return NULL; | |
d55e5bfc RD |
16926 | } |
16927 | ||
16928 | ||
1bd55598 RD |
16929 | SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16930 | PyObject *resultobj = 0; | |
16931 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16932 | unsigned int result; |
1bd55598 RD |
16933 | void *argp1 = 0 ; |
16934 | int res1 = 0 ; | |
16935 | PyObject *swig_obj[1] ; | |
16936 | ||
16937 | if (!args) SWIG_fail; | |
16938 | swig_obj[0] = args; | |
16939 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16940 | if (!SWIG_IsOK(res1)) { | |
16941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16942 | } | |
16943 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16944 | { | |
16945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50f151d7 | 16946 | result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount(); |
1bd55598 RD |
16947 | wxPyEndAllowThreads(__tstate); |
16948 | if (PyErr_Occurred()) SWIG_fail; | |
16949 | } | |
50f151d7 | 16950 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
1bd55598 RD |
16951 | return resultobj; |
16952 | fail: | |
16953 | return NULL; | |
16954 | } | |
16955 | ||
16956 | ||
16957 | SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16958 | PyObject *resultobj = 0; | |
16959 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16960 | int arg2 ; | |
16961 | wxDirection arg3 ; | |
16962 | long arg4 ; | |
16963 | int result; | |
16964 | void *argp1 = 0 ; | |
16965 | int res1 = 0 ; | |
16966 | int val2 ; | |
16967 | int ecode2 = 0 ; | |
16968 | int val3 ; | |
16969 | int ecode3 = 0 ; | |
16970 | long val4 ; | |
16971 | int ecode4 = 0 ; | |
16972 | PyObject * obj0 = 0 ; | |
16973 | PyObject * obj1 = 0 ; | |
16974 | PyObject * obj2 = 0 ; | |
16975 | PyObject * obj3 = 0 ; | |
16976 | char * kwnames[] = { | |
16977 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
16978 | }; | |
16979 | ||
16980 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16981 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16982 | if (!SWIG_IsOK(res1)) { | |
16983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16984 | } | |
16985 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16986 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16987 | if (!SWIG_IsOK(ecode2)) { | |
16988 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'"); | |
16989 | } | |
16990 | arg2 = static_cast< int >(val2); | |
16991 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16992 | if (!SWIG_IsOK(ecode3)) { | |
16993 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'"); | |
16994 | } | |
16995 | arg3 = static_cast< wxDirection >(val3); | |
16996 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
16997 | if (!SWIG_IsOK(ecode4)) { | |
16998 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'"); | |
16999 | } | |
17000 | arg4 = static_cast< long >(val4); | |
17001 | { | |
17002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17003 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
17004 | wxPyEndAllowThreads(__tstate); | |
17005 | if (PyErr_Occurred()) SWIG_fail; | |
17006 | } | |
17007 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17008 | return resultobj; | |
17009 | fail: | |
17010 | return NULL; | |
17011 | } | |
17012 | ||
17013 | ||
2131d850 RD |
17014 | SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17015 | PyObject *resultobj = 0; | |
17016 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17017 | unsigned int arg2 ; | |
17018 | wxString *arg3 = 0 ; | |
17019 | void *argp1 = 0 ; | |
17020 | int res1 = 0 ; | |
17021 | unsigned int val2 ; | |
17022 | int ecode2 = 0 ; | |
17023 | bool temp3 = false ; | |
17024 | PyObject * obj0 = 0 ; | |
17025 | PyObject * obj1 = 0 ; | |
17026 | PyObject * obj2 = 0 ; | |
17027 | char * kwnames[] = { | |
17028 | (char *) "self",(char *) "item",(char *) "text", NULL | |
17029 | }; | |
17030 | ||
17031 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17032 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17033 | if (!SWIG_IsOK(res1)) { | |
17034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
17035 | } | |
17036 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17037 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
17038 | if (!SWIG_IsOK(ecode2)) { | |
17039 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'"); | |
17040 | } | |
17041 | arg2 = static_cast< unsigned int >(val2); | |
17042 | { | |
17043 | arg3 = wxString_in_helper(obj2); | |
17044 | if (arg3 == NULL) SWIG_fail; | |
17045 | temp3 = true; | |
17046 | } | |
17047 | { | |
17048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17049 | (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3); | |
17050 | wxPyEndAllowThreads(__tstate); | |
17051 | if (PyErr_Occurred()) SWIG_fail; | |
17052 | } | |
17053 | resultobj = SWIG_Py_Void(); | |
17054 | { | |
17055 | if (temp3) | |
17056 | delete arg3; | |
17057 | } | |
17058 | return resultobj; | |
17059 | fail: | |
17060 | { | |
17061 | if (temp3) | |
17062 | delete arg3; | |
17063 | } | |
17064 | return NULL; | |
17065 | } | |
17066 | ||
17067 | ||
17068 | SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17069 | PyObject *resultobj = 0; | |
17070 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17071 | unsigned int arg2 ; | |
17072 | wxToolTip *result = 0 ; | |
17073 | void *argp1 = 0 ; | |
17074 | int res1 = 0 ; | |
17075 | unsigned int val2 ; | |
17076 | int ecode2 = 0 ; | |
17077 | PyObject * obj0 = 0 ; | |
17078 | PyObject * obj1 = 0 ; | |
17079 | char * kwnames[] = { | |
17080 | (char *) "self",(char *) "item", NULL | |
17081 | }; | |
17082 | ||
17083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail; | |
17084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17085 | if (!SWIG_IsOK(res1)) { | |
17086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
17087 | } | |
17088 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17089 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
17090 | if (!SWIG_IsOK(ecode2)) { | |
17091 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'"); | |
17092 | } | |
17093 | arg2 = static_cast< unsigned int >(val2); | |
17094 | { | |
17095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17096 | result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2); | |
17097 | wxPyEndAllowThreads(__tstate); | |
17098 | if (PyErr_Occurred()) SWIG_fail; | |
17099 | } | |
17100 | { | |
17101 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
17102 | } | |
17103 | return resultobj; | |
17104 | fail: | |
17105 | return NULL; | |
17106 | } | |
17107 | ||
17108 | ||
b850e7f3 RD |
17109 | SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17110 | PyObject *resultobj = 0; | |
17111 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17112 | unsigned int arg2 ; | |
17113 | wxString *arg3 = 0 ; | |
17114 | void *argp1 = 0 ; | |
17115 | int res1 = 0 ; | |
17116 | unsigned int val2 ; | |
17117 | int ecode2 = 0 ; | |
17118 | bool temp3 = false ; | |
17119 | PyObject * obj0 = 0 ; | |
17120 | PyObject * obj1 = 0 ; | |
17121 | PyObject * obj2 = 0 ; | |
17122 | char * kwnames[] = { | |
17123 | (char *) "self",(char *) "n",(char *) "helpText", NULL | |
17124 | }; | |
17125 | ||
17126 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17127 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17128 | if (!SWIG_IsOK(res1)) { | |
17129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
17130 | } | |
17131 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17132 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
17133 | if (!SWIG_IsOK(ecode2)) { | |
17134 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'"); | |
17135 | } | |
17136 | arg2 = static_cast< unsigned int >(val2); | |
17137 | { | |
17138 | arg3 = wxString_in_helper(obj2); | |
17139 | if (arg3 == NULL) SWIG_fail; | |
17140 | temp3 = true; | |
17141 | } | |
17142 | { | |
17143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17144 | (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3); | |
17145 | wxPyEndAllowThreads(__tstate); | |
17146 | if (PyErr_Occurred()) SWIG_fail; | |
17147 | } | |
17148 | resultobj = SWIG_Py_Void(); | |
17149 | { | |
17150 | if (temp3) | |
17151 | delete arg3; | |
17152 | } | |
17153 | return resultobj; | |
17154 | fail: | |
17155 | { | |
17156 | if (temp3) | |
17157 | delete arg3; | |
17158 | } | |
17159 | return NULL; | |
17160 | } | |
17161 | ||
17162 | ||
17163 | SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17164 | PyObject *resultobj = 0; | |
17165 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17166 | unsigned int arg2 ; | |
17167 | wxString result; | |
17168 | void *argp1 = 0 ; | |
17169 | int res1 = 0 ; | |
17170 | unsigned int val2 ; | |
17171 | int ecode2 = 0 ; | |
17172 | PyObject * obj0 = 0 ; | |
17173 | PyObject * obj1 = 0 ; | |
17174 | char * kwnames[] = { | |
17175 | (char *) "self",(char *) "n", NULL | |
17176 | }; | |
17177 | ||
17178 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail; | |
17179 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17180 | if (!SWIG_IsOK(res1)) { | |
17181 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
17182 | } | |
17183 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17184 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
17185 | if (!SWIG_IsOK(ecode2)) { | |
17186 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'"); | |
17187 | } | |
17188 | arg2 = static_cast< unsigned int >(val2); | |
17189 | { | |
17190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17191 | result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2); | |
17192 | wxPyEndAllowThreads(__tstate); | |
17193 | if (PyErr_Occurred()) SWIG_fail; | |
17194 | } | |
17195 | { | |
17196 | #if wxUSE_UNICODE | |
17197 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17198 | #else | |
17199 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17200 | #endif | |
17201 | } | |
17202 | return resultobj; | |
17203 | fail: | |
17204 | return NULL; | |
17205 | } | |
17206 | ||
17207 | ||
1bd55598 RD |
17208 | SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17209 | PyObject *resultobj = 0; | |
17210 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
17211 | SwigValueWrapper<wxVisualAttributes > result; | |
17212 | int val1 ; | |
17213 | int ecode1 = 0 ; | |
17214 | PyObject * obj0 = 0 ; | |
17215 | char * kwnames[] = { | |
17216 | (char *) "variant", NULL | |
17217 | }; | |
17218 | ||
17219 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
17220 | if (obj0) { | |
17221 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17222 | if (!SWIG_IsOK(ecode1)) { | |
17223 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
17224 | } | |
17225 | arg1 = static_cast< wxWindowVariant >(val1); | |
17226 | } | |
17227 | { | |
17228 | if (!wxPyCheckForApp()) SWIG_fail; | |
17229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17230 | result = wxRadioBox::GetClassDefaultAttributes(arg1); | |
17231 | wxPyEndAllowThreads(__tstate); | |
17232 | if (PyErr_Occurred()) SWIG_fail; | |
17233 | } | |
17234 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
17235 | return resultobj; | |
17236 | fail: | |
17237 | return NULL; | |
17238 | } | |
17239 | ||
17240 | ||
17241 | SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17242 | PyObject *obj; | |
17243 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17244 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj)); | |
17245 | return SWIG_Py_Void(); | |
17246 | } | |
17247 | ||
17248 | SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17249 | return SWIG_Python_InitShadowInstance(args); | |
17250 | } | |
17251 | ||
17252 | SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17253 | PyObject *resultobj = 0; | |
17254 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17255 | int arg2 = (int) -1 ; | |
17256 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17257 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17258 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
17259 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17260 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17261 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17262 | long arg6 = (long) 0 ; | |
17263 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
17264 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
17265 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
17266 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17267 | wxRadioButton *result = 0 ; | |
17268 | void *argp1 = 0 ; | |
17269 | int res1 = 0 ; | |
17270 | int val2 ; | |
17271 | int ecode2 = 0 ; | |
17272 | bool temp3 = false ; | |
17273 | wxPoint temp4 ; | |
17274 | wxSize temp5 ; | |
17275 | long val6 ; | |
17276 | int ecode6 = 0 ; | |
17277 | void *argp7 = 0 ; | |
17278 | int res7 = 0 ; | |
17279 | bool temp8 = false ; | |
17280 | PyObject * obj0 = 0 ; | |
17281 | PyObject * obj1 = 0 ; | |
17282 | PyObject * obj2 = 0 ; | |
17283 | PyObject * obj3 = 0 ; | |
17284 | PyObject * obj4 = 0 ; | |
17285 | PyObject * obj5 = 0 ; | |
17286 | PyObject * obj6 = 0 ; | |
17287 | PyObject * obj7 = 0 ; | |
17288 | char * kwnames[] = { | |
17289 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17290 | }; | |
17291 | ||
17292 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
17293 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17294 | if (!SWIG_IsOK(res1)) { | |
17295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17296 | } | |
17297 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17298 | if (obj1) { | |
17299 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17300 | if (!SWIG_IsOK(ecode2)) { | |
17301 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'"); | |
17302 | } | |
17303 | arg2 = static_cast< int >(val2); | |
17304 | } | |
17305 | if (obj2) { | |
d55e5bfc | 17306 | { |
1bd55598 RD |
17307 | arg3 = wxString_in_helper(obj2); |
17308 | if (arg3 == NULL) SWIG_fail; | |
17309 | temp3 = true; | |
d55e5bfc | 17310 | } |
1bd55598 RD |
17311 | } |
17312 | if (obj3) { | |
d55e5bfc | 17313 | { |
1bd55598 RD |
17314 | arg4 = &temp4; |
17315 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 17316 | } |
1bd55598 RD |
17317 | } |
17318 | if (obj4) { | |
d55e5bfc | 17319 | { |
1bd55598 RD |
17320 | arg5 = &temp5; |
17321 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 17322 | } |
1bd55598 RD |
17323 | } |
17324 | if (obj5) { | |
17325 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
17326 | if (!SWIG_IsOK(ecode6)) { | |
17327 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'"); | |
17328 | } | |
17329 | arg6 = static_cast< long >(val6); | |
17330 | } | |
17331 | if (obj6) { | |
17332 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
17333 | if (!SWIG_IsOK(res7)) { | |
17334 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 17335 | } |
1bd55598 RD |
17336 | if (!argp7) { |
17337 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
17338 | } | |
17339 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
17340 | } | |
17341 | if (obj7) { | |
d55e5bfc | 17342 | { |
1bd55598 RD |
17343 | arg8 = wxString_in_helper(obj7); |
17344 | if (arg8 == NULL) SWIG_fail; | |
17345 | temp8 = true; | |
d55e5bfc | 17346 | } |
1bd55598 RD |
17347 | } |
17348 | { | |
17349 | if (!wxPyCheckForApp()) SWIG_fail; | |
17350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17351 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
17352 | wxPyEndAllowThreads(__tstate); | |
17353 | if (PyErr_Occurred()) SWIG_fail; | |
17354 | } | |
17355 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 ); | |
17356 | { | |
17357 | if (temp3) | |
17358 | delete arg3; | |
17359 | } | |
17360 | { | |
17361 | if (temp8) | |
17362 | delete arg8; | |
17363 | } | |
17364 | return resultobj; | |
17365 | fail: | |
17366 | { | |
17367 | if (temp3) | |
17368 | delete arg3; | |
17369 | } | |
17370 | { | |
17371 | if (temp8) | |
17372 | delete arg8; | |
17373 | } | |
17374 | return NULL; | |
d55e5bfc RD |
17375 | } |
17376 | ||
17377 | ||
1bd55598 RD |
17378 | SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17379 | PyObject *resultobj = 0; | |
17380 | wxRadioButton *result = 0 ; | |
17381 | ||
17382 | if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail; | |
17383 | { | |
17384 | if (!wxPyCheckForApp()) SWIG_fail; | |
17385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17386 | result = (wxRadioButton *)new wxRadioButton(); | |
17387 | wxPyEndAllowThreads(__tstate); | |
17388 | if (PyErr_Occurred()) SWIG_fail; | |
17389 | } | |
17390 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 ); | |
17391 | return resultobj; | |
17392 | fail: | |
17393 | return NULL; | |
17394 | } | |
17395 | ||
17396 | ||
17397 | SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17398 | PyObject *resultobj = 0; | |
17399 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17400 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17401 | int arg3 = (int) -1 ; | |
17402 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
17403 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
17404 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
17405 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
17406 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
17407 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
17408 | long arg7 = (long) 0 ; | |
17409 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
17410 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
17411 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
17412 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
17413 | bool result; | |
17414 | void *argp1 = 0 ; | |
17415 | int res1 = 0 ; | |
17416 | void *argp2 = 0 ; | |
17417 | int res2 = 0 ; | |
17418 | int val3 ; | |
17419 | int ecode3 = 0 ; | |
17420 | bool temp4 = false ; | |
17421 | wxPoint temp5 ; | |
17422 | wxSize temp6 ; | |
17423 | long val7 ; | |
17424 | int ecode7 = 0 ; | |
17425 | void *argp8 = 0 ; | |
17426 | int res8 = 0 ; | |
17427 | bool temp9 = false ; | |
17428 | PyObject * obj0 = 0 ; | |
17429 | PyObject * obj1 = 0 ; | |
17430 | PyObject * obj2 = 0 ; | |
17431 | PyObject * obj3 = 0 ; | |
17432 | PyObject * obj4 = 0 ; | |
17433 | PyObject * obj5 = 0 ; | |
17434 | PyObject * obj6 = 0 ; | |
17435 | PyObject * obj7 = 0 ; | |
17436 | PyObject * obj8 = 0 ; | |
17437 | char * kwnames[] = { | |
17438 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17439 | }; | |
17440 | ||
17441 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
17442 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17443 | if (!SWIG_IsOK(res1)) { | |
17444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17445 | } | |
17446 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17447 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17448 | if (!SWIG_IsOK(res2)) { | |
17449 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
17450 | } | |
17451 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
17452 | if (obj2) { | |
17453 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17454 | if (!SWIG_IsOK(ecode3)) { | |
17455 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
17456 | } | |
17457 | arg3 = static_cast< int >(val3); | |
17458 | } | |
17459 | if (obj3) { | |
d55e5bfc | 17460 | { |
1bd55598 RD |
17461 | arg4 = wxString_in_helper(obj3); |
17462 | if (arg4 == NULL) SWIG_fail; | |
17463 | temp4 = true; | |
d55e5bfc | 17464 | } |
1bd55598 RD |
17465 | } |
17466 | if (obj4) { | |
d55e5bfc | 17467 | { |
1bd55598 RD |
17468 | arg5 = &temp5; |
17469 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 17470 | } |
1bd55598 RD |
17471 | } |
17472 | if (obj5) { | |
d55e5bfc | 17473 | { |
1bd55598 RD |
17474 | arg6 = &temp6; |
17475 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 17476 | } |
1bd55598 RD |
17477 | } |
17478 | if (obj6) { | |
17479 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
17480 | if (!SWIG_IsOK(ecode7)) { | |
17481 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
17482 | } | |
17483 | arg7 = static_cast< long >(val7); | |
17484 | } | |
17485 | if (obj7) { | |
17486 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
17487 | if (!SWIG_IsOK(res8)) { | |
17488 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 17489 | } |
1bd55598 RD |
17490 | if (!argp8) { |
17491 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 17492 | } |
1bd55598 RD |
17493 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
17494 | } | |
17495 | if (obj8) { | |
d55e5bfc | 17496 | { |
1bd55598 RD |
17497 | arg9 = wxString_in_helper(obj8); |
17498 | if (arg9 == NULL) SWIG_fail; | |
17499 | temp9 = true; | |
d55e5bfc | 17500 | } |
1bd55598 RD |
17501 | } |
17502 | { | |
17503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17504 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
17505 | wxPyEndAllowThreads(__tstate); | |
17506 | if (PyErr_Occurred()) SWIG_fail; | |
17507 | } | |
17508 | { | |
17509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17510 | } | |
17511 | { | |
17512 | if (temp4) | |
17513 | delete arg4; | |
17514 | } | |
17515 | { | |
17516 | if (temp9) | |
17517 | delete arg9; | |
17518 | } | |
17519 | return resultobj; | |
17520 | fail: | |
17521 | { | |
17522 | if (temp4) | |
17523 | delete arg4; | |
17524 | } | |
17525 | { | |
17526 | if (temp9) | |
17527 | delete arg9; | |
17528 | } | |
17529 | return NULL; | |
d55e5bfc RD |
17530 | } |
17531 | ||
17532 | ||
1bd55598 RD |
17533 | SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17534 | PyObject *resultobj = 0; | |
17535 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17536 | bool result; | |
17537 | void *argp1 = 0 ; | |
17538 | int res1 = 0 ; | |
17539 | PyObject *swig_obj[1] ; | |
17540 | ||
17541 | if (!args) SWIG_fail; | |
17542 | swig_obj[0] = args; | |
17543 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17544 | if (!SWIG_IsOK(res1)) { | |
17545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17546 | } | |
17547 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17548 | { | |
17549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17550 | result = (bool)(arg1)->GetValue(); | |
17551 | wxPyEndAllowThreads(__tstate); | |
17552 | if (PyErr_Occurred()) SWIG_fail; | |
17553 | } | |
17554 | { | |
17555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17556 | } | |
17557 | return resultobj; | |
17558 | fail: | |
17559 | return NULL; | |
17560 | } | |
17561 | ||
17562 | ||
17563 | SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17564 | PyObject *resultobj = 0; | |
17565 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17566 | bool arg2 ; | |
17567 | void *argp1 = 0 ; | |
17568 | int res1 = 0 ; | |
17569 | bool val2 ; | |
17570 | int ecode2 = 0 ; | |
17571 | PyObject * obj0 = 0 ; | |
17572 | PyObject * obj1 = 0 ; | |
17573 | char * kwnames[] = { | |
17574 | (char *) "self",(char *) "value", NULL | |
17575 | }; | |
17576 | ||
17577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
17578 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17579 | if (!SWIG_IsOK(res1)) { | |
17580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17581 | } | |
17582 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17583 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
17584 | if (!SWIG_IsOK(ecode2)) { | |
17585 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
17586 | } | |
17587 | arg2 = static_cast< bool >(val2); | |
17588 | { | |
17589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17590 | (arg1)->SetValue(arg2); | |
17591 | wxPyEndAllowThreads(__tstate); | |
17592 | if (PyErr_Occurred()) SWIG_fail; | |
17593 | } | |
17594 | resultobj = SWIG_Py_Void(); | |
17595 | return resultobj; | |
17596 | fail: | |
17597 | return NULL; | |
17598 | } | |
17599 | ||
17600 | ||
17601 | SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17602 | PyObject *resultobj = 0; | |
17603 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
17604 | SwigValueWrapper<wxVisualAttributes > result; | |
17605 | int val1 ; | |
17606 | int ecode1 = 0 ; | |
17607 | PyObject * obj0 = 0 ; | |
17608 | char * kwnames[] = { | |
17609 | (char *) "variant", NULL | |
17610 | }; | |
17611 | ||
17612 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
17613 | if (obj0) { | |
17614 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17615 | if (!SWIG_IsOK(ecode1)) { | |
17616 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
17617 | } | |
17618 | arg1 = static_cast< wxWindowVariant >(val1); | |
17619 | } | |
17620 | { | |
17621 | if (!wxPyCheckForApp()) SWIG_fail; | |
17622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17623 | result = wxRadioButton::GetClassDefaultAttributes(arg1); | |
17624 | wxPyEndAllowThreads(__tstate); | |
17625 | if (PyErr_Occurred()) SWIG_fail; | |
17626 | } | |
17627 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
17628 | return resultobj; | |
17629 | fail: | |
17630 | return NULL; | |
d55e5bfc RD |
17631 | } |
17632 | ||
17633 | ||
1bd55598 RD |
17634 | SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17635 | PyObject *obj; | |
17636 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17637 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj)); | |
17638 | return SWIG_Py_Void(); | |
d55e5bfc RD |
17639 | } |
17640 | ||
1bd55598 RD |
17641 | SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17642 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
17643 | } |
17644 | ||
1bd55598 RD |
17645 | SWIGINTERN int SliderNameStr_set(PyObject *) { |
17646 | SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only."); | |
17647 | return 1; | |
d55e5bfc RD |
17648 | } |
17649 | ||
17650 | ||
1bd55598 RD |
17651 | SWIGINTERN PyObject *SliderNameStr_get(void) { |
17652 | PyObject *pyobj = 0; | |
17653 | ||
17654 | { | |
17655 | #if wxUSE_UNICODE | |
17656 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
17657 | #else | |
17658 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
17659 | #endif | |
17660 | } | |
17661 | return pyobj; | |
17662 | } | |
17663 | ||
17664 | ||
17665 | SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17666 | PyObject *resultobj = 0; | |
17667 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17668 | int arg2 = (int) -1 ; | |
17669 | int arg3 = (int) 0 ; | |
17670 | int arg4 = (int) 0 ; | |
17671 | int arg5 = (int) 100 ; | |
17672 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
17673 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
17674 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
17675 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
17676 | long arg8 = (long) wxSL_HORIZONTAL ; | |
17677 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
17678 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
17679 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
17680 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
17681 | wxSlider *result = 0 ; | |
17682 | void *argp1 = 0 ; | |
17683 | int res1 = 0 ; | |
17684 | int val2 ; | |
17685 | int ecode2 = 0 ; | |
17686 | int val3 ; | |
17687 | int ecode3 = 0 ; | |
17688 | int val4 ; | |
17689 | int ecode4 = 0 ; | |
17690 | int val5 ; | |
17691 | int ecode5 = 0 ; | |
17692 | wxPoint temp6 ; | |
17693 | wxSize temp7 ; | |
17694 | long val8 ; | |
17695 | int ecode8 = 0 ; | |
17696 | void *argp9 = 0 ; | |
17697 | int res9 = 0 ; | |
17698 | bool temp10 = false ; | |
17699 | PyObject * obj0 = 0 ; | |
17700 | PyObject * obj1 = 0 ; | |
17701 | PyObject * obj2 = 0 ; | |
17702 | PyObject * obj3 = 0 ; | |
17703 | PyObject * obj4 = 0 ; | |
17704 | PyObject * obj5 = 0 ; | |
17705 | PyObject * obj6 = 0 ; | |
17706 | PyObject * obj7 = 0 ; | |
17707 | PyObject * obj8 = 0 ; | |
17708 | PyObject * obj9 = 0 ; | |
17709 | char * kwnames[] = { | |
17710 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17711 | }; | |
17712 | ||
17713 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
17714 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17715 | if (!SWIG_IsOK(res1)) { | |
17716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17717 | } | |
17718 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17719 | if (obj1) { | |
17720 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17721 | if (!SWIG_IsOK(ecode2)) { | |
17722 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'"); | |
17723 | } | |
17724 | arg2 = static_cast< int >(val2); | |
17725 | } | |
17726 | if (obj2) { | |
17727 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17728 | if (!SWIG_IsOK(ecode3)) { | |
17729 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'"); | |
17730 | } | |
17731 | arg3 = static_cast< int >(val3); | |
17732 | } | |
17733 | if (obj3) { | |
17734 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17735 | if (!SWIG_IsOK(ecode4)) { | |
17736 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'"); | |
17737 | } | |
17738 | arg4 = static_cast< int >(val4); | |
17739 | } | |
17740 | if (obj4) { | |
17741 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17742 | if (!SWIG_IsOK(ecode5)) { | |
17743 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'"); | |
17744 | } | |
17745 | arg5 = static_cast< int >(val5); | |
17746 | } | |
17747 | if (obj5) { | |
36ed4f51 | 17748 | { |
1bd55598 RD |
17749 | arg6 = &temp6; |
17750 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
36ed4f51 | 17751 | } |
1bd55598 RD |
17752 | } |
17753 | if (obj6) { | |
36ed4f51 | 17754 | { |
1bd55598 RD |
17755 | arg7 = &temp7; |
17756 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
36ed4f51 | 17757 | } |
1bd55598 RD |
17758 | } |
17759 | if (obj7) { | |
17760 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
17761 | if (!SWIG_IsOK(ecode8)) { | |
17762 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'"); | |
17763 | } | |
17764 | arg8 = static_cast< long >(val8); | |
17765 | } | |
17766 | if (obj8) { | |
17767 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
17768 | if (!SWIG_IsOK(res9)) { | |
17769 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 17770 | } |
1bd55598 RD |
17771 | if (!argp9) { |
17772 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 17773 | } |
1bd55598 RD |
17774 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
17775 | } | |
17776 | if (obj9) { | |
d55e5bfc | 17777 | { |
1bd55598 RD |
17778 | arg10 = wxString_in_helper(obj9); |
17779 | if (arg10 == NULL) SWIG_fail; | |
17780 | temp10 = true; | |
d55e5bfc | 17781 | } |
1bd55598 RD |
17782 | } |
17783 | { | |
17784 | if (!wxPyCheckForApp()) SWIG_fail; | |
17785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17786 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
17787 | wxPyEndAllowThreads(__tstate); | |
17788 | if (PyErr_Occurred()) SWIG_fail; | |
17789 | } | |
17790 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 ); | |
17791 | { | |
17792 | if (temp10) | |
17793 | delete arg10; | |
17794 | } | |
17795 | return resultobj; | |
17796 | fail: | |
17797 | { | |
17798 | if (temp10) | |
17799 | delete arg10; | |
17800 | } | |
17801 | return NULL; | |
d55e5bfc RD |
17802 | } |
17803 | ||
17804 | ||
1bd55598 RD |
17805 | SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17806 | PyObject *resultobj = 0; | |
17807 | wxSlider *result = 0 ; | |
17808 | ||
17809 | if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail; | |
17810 | { | |
17811 | if (!wxPyCheckForApp()) SWIG_fail; | |
17812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17813 | result = (wxSlider *)new wxSlider(); | |
17814 | wxPyEndAllowThreads(__tstate); | |
17815 | if (PyErr_Occurred()) SWIG_fail; | |
17816 | } | |
17817 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 ); | |
17818 | return resultobj; | |
17819 | fail: | |
17820 | return NULL; | |
17821 | } | |
17822 | ||
17823 | ||
17824 | SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17825 | PyObject *resultobj = 0; | |
17826 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17827 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17828 | int arg3 = (int) -1 ; | |
17829 | int arg4 = (int) 0 ; | |
17830 | int arg5 = (int) 0 ; | |
17831 | int arg6 = (int) 100 ; | |
17832 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17833 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17834 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
17835 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
17836 | long arg9 = (long) wxSL_HORIZONTAL ; | |
17837 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
17838 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
17839 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
17840 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
17841 | bool result; | |
17842 | void *argp1 = 0 ; | |
17843 | int res1 = 0 ; | |
17844 | void *argp2 = 0 ; | |
17845 | int res2 = 0 ; | |
17846 | int val3 ; | |
17847 | int ecode3 = 0 ; | |
17848 | int val4 ; | |
17849 | int ecode4 = 0 ; | |
17850 | int val5 ; | |
17851 | int ecode5 = 0 ; | |
17852 | int val6 ; | |
17853 | int ecode6 = 0 ; | |
17854 | wxPoint temp7 ; | |
17855 | wxSize temp8 ; | |
17856 | long val9 ; | |
17857 | int ecode9 = 0 ; | |
17858 | void *argp10 = 0 ; | |
17859 | int res10 = 0 ; | |
17860 | bool temp11 = false ; | |
17861 | PyObject * obj0 = 0 ; | |
17862 | PyObject * obj1 = 0 ; | |
17863 | PyObject * obj2 = 0 ; | |
17864 | PyObject * obj3 = 0 ; | |
17865 | PyObject * obj4 = 0 ; | |
17866 | PyObject * obj5 = 0 ; | |
17867 | PyObject * obj6 = 0 ; | |
17868 | PyObject * obj7 = 0 ; | |
17869 | PyObject * obj8 = 0 ; | |
17870 | PyObject * obj9 = 0 ; | |
17871 | PyObject * obj10 = 0 ; | |
17872 | char * kwnames[] = { | |
17873 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17874 | }; | |
17875 | ||
17876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
17877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17878 | if (!SWIG_IsOK(res1)) { | |
17879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17880 | } | |
17881 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17882 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17883 | if (!SWIG_IsOK(res2)) { | |
17884 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
17885 | } | |
17886 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
17887 | if (obj2) { | |
17888 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17889 | if (!SWIG_IsOK(ecode3)) { | |
17890 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'"); | |
17891 | } | |
17892 | arg3 = static_cast< int >(val3); | |
17893 | } | |
17894 | if (obj3) { | |
17895 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17896 | if (!SWIG_IsOK(ecode4)) { | |
17897 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'"); | |
17898 | } | |
17899 | arg4 = static_cast< int >(val4); | |
17900 | } | |
17901 | if (obj4) { | |
17902 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17903 | if (!SWIG_IsOK(ecode5)) { | |
17904 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'"); | |
17905 | } | |
17906 | arg5 = static_cast< int >(val5); | |
17907 | } | |
17908 | if (obj5) { | |
17909 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
17910 | if (!SWIG_IsOK(ecode6)) { | |
17911 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'"); | |
17912 | } | |
17913 | arg6 = static_cast< int >(val6); | |
17914 | } | |
17915 | if (obj6) { | |
d55e5bfc | 17916 | { |
1bd55598 RD |
17917 | arg7 = &temp7; |
17918 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
d55e5bfc | 17919 | } |
1bd55598 RD |
17920 | } |
17921 | if (obj7) { | |
d55e5bfc | 17922 | { |
1bd55598 RD |
17923 | arg8 = &temp8; |
17924 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
d55e5bfc | 17925 | } |
1bd55598 RD |
17926 | } |
17927 | if (obj8) { | |
17928 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
17929 | if (!SWIG_IsOK(ecode9)) { | |
17930 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'"); | |
17931 | } | |
17932 | arg9 = static_cast< long >(val9); | |
17933 | } | |
17934 | if (obj9) { | |
17935 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
17936 | if (!SWIG_IsOK(res10)) { | |
17937 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 17938 | } |
1bd55598 RD |
17939 | if (!argp10) { |
17940 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 17941 | } |
1bd55598 RD |
17942 | arg10 = reinterpret_cast< wxValidator * >(argp10); |
17943 | } | |
17944 | if (obj10) { | |
d55e5bfc | 17945 | { |
1bd55598 RD |
17946 | arg11 = wxString_in_helper(obj10); |
17947 | if (arg11 == NULL) SWIG_fail; | |
17948 | temp11 = true; | |
d55e5bfc | 17949 | } |
1bd55598 RD |
17950 | } |
17951 | { | |
17952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17953 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
17954 | wxPyEndAllowThreads(__tstate); | |
17955 | if (PyErr_Occurred()) SWIG_fail; | |
17956 | } | |
17957 | { | |
17958 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17959 | } | |
17960 | { | |
17961 | if (temp11) | |
17962 | delete arg11; | |
17963 | } | |
17964 | return resultobj; | |
17965 | fail: | |
17966 | { | |
17967 | if (temp11) | |
17968 | delete arg11; | |
17969 | } | |
17970 | return NULL; | |
d55e5bfc RD |
17971 | } |
17972 | ||
17973 | ||
1bd55598 RD |
17974 | SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17975 | PyObject *resultobj = 0; | |
17976 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17977 | int result; | |
17978 | void *argp1 = 0 ; | |
17979 | int res1 = 0 ; | |
17980 | PyObject *swig_obj[1] ; | |
17981 | ||
17982 | if (!args) SWIG_fail; | |
17983 | swig_obj[0] = args; | |
17984 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17985 | if (!SWIG_IsOK(res1)) { | |
17986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17987 | } | |
17988 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17989 | { | |
17990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17991 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
17992 | wxPyEndAllowThreads(__tstate); | |
17993 | if (PyErr_Occurred()) SWIG_fail; | |
17994 | } | |
17995 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17996 | return resultobj; | |
17997 | fail: | |
17998 | return NULL; | |
17999 | } | |
18000 | ||
18001 | ||
18002 | SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18003 | PyObject *resultobj = 0; | |
18004 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18005 | int arg2 ; | |
18006 | void *argp1 = 0 ; | |
18007 | int res1 = 0 ; | |
18008 | int val2 ; | |
18009 | int ecode2 = 0 ; | |
18010 | PyObject * obj0 = 0 ; | |
18011 | PyObject * obj1 = 0 ; | |
18012 | char * kwnames[] = { | |
18013 | (char *) "self",(char *) "value", NULL | |
18014 | }; | |
18015 | ||
18016 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
18017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18018 | if (!SWIG_IsOK(res1)) { | |
18019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18020 | } | |
18021 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18022 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18023 | if (!SWIG_IsOK(ecode2)) { | |
18024 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
18025 | } | |
18026 | arg2 = static_cast< int >(val2); | |
18027 | { | |
18028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18029 | (arg1)->SetValue(arg2); | |
18030 | wxPyEndAllowThreads(__tstate); | |
18031 | if (PyErr_Occurred()) SWIG_fail; | |
18032 | } | |
18033 | resultobj = SWIG_Py_Void(); | |
18034 | return resultobj; | |
18035 | fail: | |
18036 | return NULL; | |
18037 | } | |
18038 | ||
18039 | ||
18040 | SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18041 | PyObject *resultobj = 0; | |
18042 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18043 | int arg2 ; | |
18044 | int arg3 ; | |
18045 | void *argp1 = 0 ; | |
18046 | int res1 = 0 ; | |
18047 | int val2 ; | |
18048 | int ecode2 = 0 ; | |
18049 | int val3 ; | |
18050 | int ecode3 = 0 ; | |
18051 | PyObject * obj0 = 0 ; | |
18052 | PyObject * obj1 = 0 ; | |
18053 | PyObject * obj2 = 0 ; | |
18054 | char * kwnames[] = { | |
18055 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
18056 | }; | |
18057 | ||
18058 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18059 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18060 | if (!SWIG_IsOK(res1)) { | |
18061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18062 | } | |
18063 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18064 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18065 | if (!SWIG_IsOK(ecode2)) { | |
18066 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
18067 | } | |
18068 | arg2 = static_cast< int >(val2); | |
18069 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18070 | if (!SWIG_IsOK(ecode3)) { | |
18071 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
18072 | } | |
18073 | arg3 = static_cast< int >(val3); | |
18074 | { | |
18075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18076 | (arg1)->SetRange(arg2,arg3); | |
18077 | wxPyEndAllowThreads(__tstate); | |
18078 | if (PyErr_Occurred()) SWIG_fail; | |
18079 | } | |
18080 | resultobj = SWIG_Py_Void(); | |
18081 | return resultobj; | |
18082 | fail: | |
18083 | return NULL; | |
d55e5bfc RD |
18084 | } |
18085 | ||
18086 | ||
1bd55598 RD |
18087 | SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18088 | PyObject *resultobj = 0; | |
18089 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18090 | int result; | |
18091 | void *argp1 = 0 ; | |
18092 | int res1 = 0 ; | |
18093 | PyObject *swig_obj[1] ; | |
18094 | ||
18095 | if (!args) SWIG_fail; | |
18096 | swig_obj[0] = args; | |
18097 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18098 | if (!SWIG_IsOK(res1)) { | |
18099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18100 | } | |
18101 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18102 | { | |
18103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18104 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
18105 | wxPyEndAllowThreads(__tstate); | |
18106 | if (PyErr_Occurred()) SWIG_fail; | |
18107 | } | |
18108 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18109 | return resultobj; | |
18110 | fail: | |
18111 | return NULL; | |
f20a2e1f RD |
18112 | } |
18113 | ||
18114 | ||
1bd55598 RD |
18115 | SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18116 | PyObject *resultobj = 0; | |
18117 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18118 | int result; | |
18119 | void *argp1 = 0 ; | |
18120 | int res1 = 0 ; | |
18121 | PyObject *swig_obj[1] ; | |
18122 | ||
18123 | if (!args) SWIG_fail; | |
18124 | swig_obj[0] = args; | |
18125 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18126 | if (!SWIG_IsOK(res1)) { | |
18127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18128 | } | |
18129 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18130 | { | |
18131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18132 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
18133 | wxPyEndAllowThreads(__tstate); | |
18134 | if (PyErr_Occurred()) SWIG_fail; | |
18135 | } | |
18136 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18137 | return resultobj; | |
18138 | fail: | |
18139 | return NULL; | |
18140 | } | |
18141 | ||
18142 | ||
18143 | SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18144 | PyObject *resultobj = 0; | |
18145 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18146 | int arg2 ; | |
18147 | void *argp1 = 0 ; | |
18148 | int res1 = 0 ; | |
18149 | int val2 ; | |
18150 | int ecode2 = 0 ; | |
18151 | PyObject * obj0 = 0 ; | |
18152 | PyObject * obj1 = 0 ; | |
18153 | char * kwnames[] = { | |
18154 | (char *) "self",(char *) "minValue", NULL | |
18155 | }; | |
18156 | ||
18157 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail; | |
18158 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18159 | if (!SWIG_IsOK(res1)) { | |
18160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18161 | } | |
18162 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18163 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18164 | if (!SWIG_IsOK(ecode2)) { | |
18165 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'"); | |
18166 | } | |
18167 | arg2 = static_cast< int >(val2); | |
18168 | { | |
18169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18170 | (arg1)->SetMin(arg2); | |
18171 | wxPyEndAllowThreads(__tstate); | |
18172 | if (PyErr_Occurred()) SWIG_fail; | |
18173 | } | |
18174 | resultobj = SWIG_Py_Void(); | |
18175 | return resultobj; | |
18176 | fail: | |
18177 | return NULL; | |
18178 | } | |
18179 | ||
18180 | ||
18181 | SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18182 | PyObject *resultobj = 0; | |
18183 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18184 | int arg2 ; | |
18185 | void *argp1 = 0 ; | |
18186 | int res1 = 0 ; | |
18187 | int val2 ; | |
18188 | int ecode2 = 0 ; | |
18189 | PyObject * obj0 = 0 ; | |
18190 | PyObject * obj1 = 0 ; | |
18191 | char * kwnames[] = { | |
18192 | (char *) "self",(char *) "maxValue", NULL | |
18193 | }; | |
18194 | ||
18195 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail; | |
18196 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18197 | if (!SWIG_IsOK(res1)) { | |
18198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18199 | } | |
18200 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18201 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18202 | if (!SWIG_IsOK(ecode2)) { | |
18203 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'"); | |
18204 | } | |
18205 | arg2 = static_cast< int >(val2); | |
18206 | { | |
18207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18208 | (arg1)->SetMax(arg2); | |
18209 | wxPyEndAllowThreads(__tstate); | |
18210 | if (PyErr_Occurred()) SWIG_fail; | |
18211 | } | |
18212 | resultobj = SWIG_Py_Void(); | |
18213 | return resultobj; | |
18214 | fail: | |
18215 | return NULL; | |
18216 | } | |
18217 | ||
18218 | ||
18219 | SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18220 | PyObject *resultobj = 0; | |
18221 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18222 | int arg2 ; | |
18223 | void *argp1 = 0 ; | |
18224 | int res1 = 0 ; | |
18225 | int val2 ; | |
18226 | int ecode2 = 0 ; | |
18227 | PyObject * obj0 = 0 ; | |
18228 | PyObject * obj1 = 0 ; | |
18229 | char * kwnames[] = { | |
18230 | (char *) "self",(char *) "lineSize", NULL | |
18231 | }; | |
18232 | ||
18233 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
18234 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18235 | if (!SWIG_IsOK(res1)) { | |
18236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18237 | } | |
18238 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18239 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18240 | if (!SWIG_IsOK(ecode2)) { | |
18241 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'"); | |
18242 | } | |
18243 | arg2 = static_cast< int >(val2); | |
18244 | { | |
18245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18246 | (arg1)->SetLineSize(arg2); | |
18247 | wxPyEndAllowThreads(__tstate); | |
18248 | if (PyErr_Occurred()) SWIG_fail; | |
18249 | } | |
18250 | resultobj = SWIG_Py_Void(); | |
18251 | return resultobj; | |
18252 | fail: | |
18253 | return NULL; | |
18254 | } | |
18255 | ||
18256 | ||
18257 | SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18258 | PyObject *resultobj = 0; | |
18259 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18260 | int arg2 ; | |
18261 | void *argp1 = 0 ; | |
18262 | int res1 = 0 ; | |
18263 | int val2 ; | |
18264 | int ecode2 = 0 ; | |
18265 | PyObject * obj0 = 0 ; | |
18266 | PyObject * obj1 = 0 ; | |
18267 | char * kwnames[] = { | |
18268 | (char *) "self",(char *) "pageSize", NULL | |
18269 | }; | |
18270 | ||
18271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
18272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18273 | if (!SWIG_IsOK(res1)) { | |
18274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18275 | } | |
18276 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18277 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18278 | if (!SWIG_IsOK(ecode2)) { | |
18279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'"); | |
18280 | } | |
18281 | arg2 = static_cast< int >(val2); | |
18282 | { | |
18283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18284 | (arg1)->SetPageSize(arg2); | |
18285 | wxPyEndAllowThreads(__tstate); | |
18286 | if (PyErr_Occurred()) SWIG_fail; | |
18287 | } | |
18288 | resultobj = SWIG_Py_Void(); | |
18289 | return resultobj; | |
18290 | fail: | |
18291 | return NULL; | |
d55e5bfc RD |
18292 | } |
18293 | ||
18294 | ||
1bd55598 RD |
18295 | SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18296 | PyObject *resultobj = 0; | |
18297 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18298 | int result; | |
18299 | void *argp1 = 0 ; | |
18300 | int res1 = 0 ; | |
18301 | PyObject *swig_obj[1] ; | |
18302 | ||
18303 | if (!args) SWIG_fail; | |
18304 | swig_obj[0] = args; | |
18305 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18306 | if (!SWIG_IsOK(res1)) { | |
18307 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18308 | } | |
18309 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18310 | { | |
18311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18312 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
18313 | wxPyEndAllowThreads(__tstate); | |
18314 | if (PyErr_Occurred()) SWIG_fail; | |
18315 | } | |
18316 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18317 | return resultobj; | |
18318 | fail: | |
18319 | return NULL; | |
d55e5bfc RD |
18320 | } |
18321 | ||
18322 | ||
1bd55598 RD |
18323 | SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18324 | PyObject *resultobj = 0; | |
18325 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18326 | int result; | |
18327 | void *argp1 = 0 ; | |
18328 | int res1 = 0 ; | |
18329 | PyObject *swig_obj[1] ; | |
18330 | ||
18331 | if (!args) SWIG_fail; | |
18332 | swig_obj[0] = args; | |
18333 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18334 | if (!SWIG_IsOK(res1)) { | |
18335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18336 | } | |
18337 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18338 | { | |
18339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18340 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
18341 | wxPyEndAllowThreads(__tstate); | |
18342 | if (PyErr_Occurred()) SWIG_fail; | |
18343 | } | |
18344 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18345 | return resultobj; | |
18346 | fail: | |
18347 | return NULL; | |
18348 | } | |
18349 | ||
18350 | ||
18351 | SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18352 | PyObject *resultobj = 0; | |
18353 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18354 | int arg2 ; | |
18355 | void *argp1 = 0 ; | |
18356 | int res1 = 0 ; | |
18357 | int val2 ; | |
18358 | int ecode2 = 0 ; | |
18359 | PyObject * obj0 = 0 ; | |
18360 | PyObject * obj1 = 0 ; | |
18361 | char * kwnames[] = { | |
18362 | (char *) "self",(char *) "lenPixels", NULL | |
18363 | }; | |
18364 | ||
18365 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
18366 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18367 | if (!SWIG_IsOK(res1)) { | |
18368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18369 | } | |
18370 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18371 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18372 | if (!SWIG_IsOK(ecode2)) { | |
18373 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'"); | |
18374 | } | |
18375 | arg2 = static_cast< int >(val2); | |
18376 | { | |
18377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18378 | (arg1)->SetThumbLength(arg2); | |
18379 | wxPyEndAllowThreads(__tstate); | |
18380 | if (PyErr_Occurred()) SWIG_fail; | |
18381 | } | |
18382 | resultobj = SWIG_Py_Void(); | |
18383 | return resultobj; | |
18384 | fail: | |
18385 | return NULL; | |
d55e5bfc RD |
18386 | } |
18387 | ||
18388 | ||
1bd55598 RD |
18389 | SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18390 | PyObject *resultobj = 0; | |
18391 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18392 | int result; | |
18393 | void *argp1 = 0 ; | |
18394 | int res1 = 0 ; | |
18395 | PyObject *swig_obj[1] ; | |
18396 | ||
18397 | if (!args) SWIG_fail; | |
18398 | swig_obj[0] = args; | |
18399 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18400 | if (!SWIG_IsOK(res1)) { | |
18401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18402 | } | |
18403 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18404 | { | |
18405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18406 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
18407 | wxPyEndAllowThreads(__tstate); | |
18408 | if (PyErr_Occurred()) SWIG_fail; | |
18409 | } | |
18410 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18411 | return resultobj; | |
18412 | fail: | |
18413 | return NULL; | |
18414 | } | |
18415 | ||
18416 | ||
18417 | SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18418 | PyObject *resultobj = 0; | |
18419 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18420 | int arg2 ; | |
18421 | int arg3 = (int) 1 ; | |
18422 | void *argp1 = 0 ; | |
18423 | int res1 = 0 ; | |
18424 | int val2 ; | |
18425 | int ecode2 = 0 ; | |
18426 | int val3 ; | |
18427 | int ecode3 = 0 ; | |
18428 | PyObject * obj0 = 0 ; | |
18429 | PyObject * obj1 = 0 ; | |
18430 | PyObject * obj2 = 0 ; | |
18431 | char * kwnames[] = { | |
18432 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
18433 | }; | |
18434 | ||
18435 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18436 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18437 | if (!SWIG_IsOK(res1)) { | |
18438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18439 | } | |
18440 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18441 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18442 | if (!SWIG_IsOK(ecode2)) { | |
18443 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'"); | |
18444 | } | |
18445 | arg2 = static_cast< int >(val2); | |
18446 | if (obj2) { | |
18447 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18448 | if (!SWIG_IsOK(ecode3)) { | |
18449 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'"); | |
18450 | } | |
18451 | arg3 = static_cast< int >(val3); | |
18452 | } | |
18453 | { | |
18454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18455 | (arg1)->SetTickFreq(arg2,arg3); | |
18456 | wxPyEndAllowThreads(__tstate); | |
18457 | if (PyErr_Occurred()) SWIG_fail; | |
18458 | } | |
18459 | resultobj = SWIG_Py_Void(); | |
18460 | return resultobj; | |
18461 | fail: | |
18462 | return NULL; | |
d55e5bfc RD |
18463 | } |
18464 | ||
18465 | ||
1bd55598 RD |
18466 | SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18467 | PyObject *resultobj = 0; | |
18468 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18469 | int result; | |
18470 | void *argp1 = 0 ; | |
18471 | int res1 = 0 ; | |
18472 | PyObject *swig_obj[1] ; | |
18473 | ||
18474 | if (!args) SWIG_fail; | |
18475 | swig_obj[0] = args; | |
18476 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18477 | if (!SWIG_IsOK(res1)) { | |
18478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18479 | } | |
18480 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18481 | { | |
18482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18483 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
18484 | wxPyEndAllowThreads(__tstate); | |
18485 | if (PyErr_Occurred()) SWIG_fail; | |
18486 | } | |
18487 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18488 | return resultobj; | |
18489 | fail: | |
18490 | return NULL; | |
d55e5bfc RD |
18491 | } |
18492 | ||
18493 | ||
1bd55598 RD |
18494 | SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18495 | PyObject *resultobj = 0; | |
18496 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18497 | void *argp1 = 0 ; | |
18498 | int res1 = 0 ; | |
18499 | PyObject *swig_obj[1] ; | |
18500 | ||
18501 | if (!args) SWIG_fail; | |
18502 | swig_obj[0] = args; | |
18503 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18504 | if (!SWIG_IsOK(res1)) { | |
18505 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18506 | } | |
18507 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18508 | { | |
18509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18510 | (arg1)->ClearTicks(); | |
18511 | wxPyEndAllowThreads(__tstate); | |
18512 | if (PyErr_Occurred()) SWIG_fail; | |
18513 | } | |
18514 | resultobj = SWIG_Py_Void(); | |
18515 | return resultobj; | |
18516 | fail: | |
18517 | return NULL; | |
18518 | } | |
18519 | ||
18520 | ||
18521 | SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18522 | PyObject *resultobj = 0; | |
18523 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18524 | int arg2 ; | |
18525 | void *argp1 = 0 ; | |
18526 | int res1 = 0 ; | |
18527 | int val2 ; | |
18528 | int ecode2 = 0 ; | |
18529 | PyObject * obj0 = 0 ; | |
18530 | PyObject * obj1 = 0 ; | |
18531 | char * kwnames[] = { | |
18532 | (char *) "self",(char *) "tickPos", NULL | |
18533 | }; | |
18534 | ||
18535 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail; | |
18536 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18537 | if (!SWIG_IsOK(res1)) { | |
18538 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18539 | } | |
18540 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18541 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18542 | if (!SWIG_IsOK(ecode2)) { | |
18543 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'"); | |
18544 | } | |
18545 | arg2 = static_cast< int >(val2); | |
18546 | { | |
18547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18548 | (arg1)->SetTick(arg2); | |
18549 | wxPyEndAllowThreads(__tstate); | |
18550 | if (PyErr_Occurred()) SWIG_fail; | |
18551 | } | |
18552 | resultobj = SWIG_Py_Void(); | |
18553 | return resultobj; | |
18554 | fail: | |
18555 | return NULL; | |
d55e5bfc RD |
18556 | } |
18557 | ||
18558 | ||
1bd55598 RD |
18559 | SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18560 | PyObject *resultobj = 0; | |
18561 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18562 | void *argp1 = 0 ; | |
18563 | int res1 = 0 ; | |
18564 | PyObject *swig_obj[1] ; | |
18565 | ||
18566 | if (!args) SWIG_fail; | |
18567 | swig_obj[0] = args; | |
18568 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18569 | if (!SWIG_IsOK(res1)) { | |
18570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18571 | } | |
18572 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18573 | { | |
18574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18575 | (arg1)->ClearSel(); | |
18576 | wxPyEndAllowThreads(__tstate); | |
18577 | if (PyErr_Occurred()) SWIG_fail; | |
18578 | } | |
18579 | resultobj = SWIG_Py_Void(); | |
18580 | return resultobj; | |
18581 | fail: | |
18582 | return NULL; | |
d55e5bfc RD |
18583 | } |
18584 | ||
18585 | ||
1bd55598 RD |
18586 | SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18587 | PyObject *resultobj = 0; | |
18588 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18589 | int result; | |
18590 | void *argp1 = 0 ; | |
18591 | int res1 = 0 ; | |
18592 | PyObject *swig_obj[1] ; | |
18593 | ||
18594 | if (!args) SWIG_fail; | |
18595 | swig_obj[0] = args; | |
18596 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18597 | if (!SWIG_IsOK(res1)) { | |
18598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18599 | } | |
18600 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18601 | { | |
18602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18603 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
18604 | wxPyEndAllowThreads(__tstate); | |
18605 | if (PyErr_Occurred()) SWIG_fail; | |
18606 | } | |
18607 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18608 | return resultobj; | |
18609 | fail: | |
18610 | return NULL; | |
d55e5bfc RD |
18611 | } |
18612 | ||
18613 | ||
1bd55598 RD |
18614 | SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18615 | PyObject *resultobj = 0; | |
18616 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18617 | int result; | |
18618 | void *argp1 = 0 ; | |
18619 | int res1 = 0 ; | |
18620 | PyObject *swig_obj[1] ; | |
18621 | ||
18622 | if (!args) SWIG_fail; | |
18623 | swig_obj[0] = args; | |
18624 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18625 | if (!SWIG_IsOK(res1)) { | |
18626 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18627 | } | |
18628 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18629 | { | |
18630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18631 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
18632 | wxPyEndAllowThreads(__tstate); | |
18633 | if (PyErr_Occurred()) SWIG_fail; | |
18634 | } | |
18635 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18636 | return resultobj; | |
18637 | fail: | |
18638 | return NULL; | |
18639 | } | |
18640 | ||
18641 | ||
18642 | SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18643 | PyObject *resultobj = 0; | |
18644 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18645 | int arg2 ; | |
18646 | int arg3 ; | |
18647 | void *argp1 = 0 ; | |
18648 | int res1 = 0 ; | |
18649 | int val2 ; | |
18650 | int ecode2 = 0 ; | |
18651 | int val3 ; | |
18652 | int ecode3 = 0 ; | |
18653 | PyObject * obj0 = 0 ; | |
18654 | PyObject * obj1 = 0 ; | |
18655 | PyObject * obj2 = 0 ; | |
18656 | char * kwnames[] = { | |
18657 | (char *) "self",(char *) "min",(char *) "max", NULL | |
18658 | }; | |
18659 | ||
18660 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18661 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18662 | if (!SWIG_IsOK(res1)) { | |
18663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18664 | } | |
18665 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18666 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18667 | if (!SWIG_IsOK(ecode2)) { | |
18668 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
18669 | } | |
18670 | arg2 = static_cast< int >(val2); | |
18671 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18672 | if (!SWIG_IsOK(ecode3)) { | |
18673 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'"); | |
18674 | } | |
18675 | arg3 = static_cast< int >(val3); | |
18676 | { | |
18677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18678 | (arg1)->SetSelection(arg2,arg3); | |
18679 | wxPyEndAllowThreads(__tstate); | |
18680 | if (PyErr_Occurred()) SWIG_fail; | |
18681 | } | |
18682 | resultobj = SWIG_Py_Void(); | |
18683 | return resultobj; | |
18684 | fail: | |
18685 | return NULL; | |
18686 | } | |
18687 | ||
18688 | ||
18689 | SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18690 | PyObject *resultobj = 0; | |
18691 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
18692 | SwigValueWrapper<wxVisualAttributes > result; | |
18693 | int val1 ; | |
18694 | int ecode1 = 0 ; | |
18695 | PyObject * obj0 = 0 ; | |
18696 | char * kwnames[] = { | |
18697 | (char *) "variant", NULL | |
18698 | }; | |
18699 | ||
18700 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
18701 | if (obj0) { | |
18702 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18703 | if (!SWIG_IsOK(ecode1)) { | |
18704 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
18705 | } | |
18706 | arg1 = static_cast< wxWindowVariant >(val1); | |
18707 | } | |
18708 | { | |
18709 | if (!wxPyCheckForApp()) SWIG_fail; | |
18710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18711 | result = wxSlider::GetClassDefaultAttributes(arg1); | |
18712 | wxPyEndAllowThreads(__tstate); | |
18713 | if (PyErr_Occurred()) SWIG_fail; | |
18714 | } | |
18715 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
18716 | return resultobj; | |
18717 | fail: | |
18718 | return NULL; | |
d55e5bfc RD |
18719 | } |
18720 | ||
18721 | ||
1bd55598 RD |
18722 | SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18723 | PyObject *obj; | |
18724 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18725 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj)); | |
18726 | return SWIG_Py_Void(); | |
d55e5bfc RD |
18727 | } |
18728 | ||
1bd55598 RD |
18729 | SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18730 | return SWIG_Python_InitShadowInstance(args); | |
18731 | } | |
d55e5bfc | 18732 | |
1bd55598 RD |
18733 | SWIGINTERN int ToggleButtonNameStr_set(PyObject *) { |
18734 | SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only."); | |
18735 | return 1; | |
d55e5bfc RD |
18736 | } |
18737 | ||
18738 | ||
1bd55598 RD |
18739 | SWIGINTERN PyObject *ToggleButtonNameStr_get(void) { |
18740 | PyObject *pyobj = 0; | |
18741 | ||
18742 | { | |
18743 | #if wxUSE_UNICODE | |
18744 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
18745 | #else | |
18746 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
18747 | #endif | |
18748 | } | |
18749 | return pyobj; | |
18750 | } | |
18751 | ||
18752 | ||
18753 | SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18754 | PyObject *resultobj = 0; | |
18755 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18756 | int arg2 = (int) -1 ; | |
18757 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
18758 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18759 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
18760 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18761 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18762 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18763 | long arg6 = (long) 0 ; | |
18764 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
18765 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
18766 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
18767 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
18768 | wxToggleButton *result = 0 ; | |
18769 | void *argp1 = 0 ; | |
18770 | int res1 = 0 ; | |
18771 | int val2 ; | |
18772 | int ecode2 = 0 ; | |
18773 | bool temp3 = false ; | |
18774 | wxPoint temp4 ; | |
18775 | wxSize temp5 ; | |
18776 | long val6 ; | |
18777 | int ecode6 = 0 ; | |
18778 | void *argp7 = 0 ; | |
18779 | int res7 = 0 ; | |
18780 | bool temp8 = false ; | |
18781 | PyObject * obj0 = 0 ; | |
18782 | PyObject * obj1 = 0 ; | |
18783 | PyObject * obj2 = 0 ; | |
18784 | PyObject * obj3 = 0 ; | |
18785 | PyObject * obj4 = 0 ; | |
18786 | PyObject * obj5 = 0 ; | |
18787 | PyObject * obj6 = 0 ; | |
18788 | PyObject * obj7 = 0 ; | |
18789 | char * kwnames[] = { | |
18790 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
18791 | }; | |
18792 | ||
18793 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
18794 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18795 | if (!SWIG_IsOK(res1)) { | |
18796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18797 | } | |
18798 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18799 | if (obj1) { | |
18800 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18801 | if (!SWIG_IsOK(ecode2)) { | |
18802 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'"); | |
18803 | } | |
18804 | arg2 = static_cast< int >(val2); | |
18805 | } | |
18806 | if (obj2) { | |
d55e5bfc | 18807 | { |
1bd55598 RD |
18808 | arg3 = wxString_in_helper(obj2); |
18809 | if (arg3 == NULL) SWIG_fail; | |
18810 | temp3 = true; | |
d55e5bfc | 18811 | } |
1bd55598 RD |
18812 | } |
18813 | if (obj3) { | |
36ed4f51 | 18814 | { |
1bd55598 RD |
18815 | arg4 = &temp4; |
18816 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 18817 | } |
1bd55598 RD |
18818 | } |
18819 | if (obj4) { | |
d55e5bfc | 18820 | { |
1bd55598 RD |
18821 | arg5 = &temp5; |
18822 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 18823 | } |
1bd55598 RD |
18824 | } |
18825 | if (obj5) { | |
18826 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
18827 | if (!SWIG_IsOK(ecode6)) { | |
18828 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'"); | |
18829 | } | |
18830 | arg6 = static_cast< long >(val6); | |
18831 | } | |
18832 | if (obj6) { | |
18833 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
18834 | if (!SWIG_IsOK(res7)) { | |
18835 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 18836 | } |
1bd55598 RD |
18837 | if (!argp7) { |
18838 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 18839 | } |
1bd55598 RD |
18840 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
18841 | } | |
18842 | if (obj7) { | |
d55e5bfc | 18843 | { |
1bd55598 RD |
18844 | arg8 = wxString_in_helper(obj7); |
18845 | if (arg8 == NULL) SWIG_fail; | |
18846 | temp8 = true; | |
d55e5bfc | 18847 | } |
1bd55598 RD |
18848 | } |
18849 | { | |
18850 | if (!wxPyCheckForApp()) SWIG_fail; | |
18851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18852 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
18853 | wxPyEndAllowThreads(__tstate); | |
18854 | if (PyErr_Occurred()) SWIG_fail; | |
18855 | } | |
18856 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 ); | |
18857 | { | |
18858 | if (temp3) | |
18859 | delete arg3; | |
18860 | } | |
18861 | { | |
18862 | if (temp8) | |
18863 | delete arg8; | |
18864 | } | |
18865 | return resultobj; | |
18866 | fail: | |
18867 | { | |
18868 | if (temp3) | |
18869 | delete arg3; | |
18870 | } | |
18871 | { | |
18872 | if (temp8) | |
18873 | delete arg8; | |
18874 | } | |
18875 | return NULL; | |
d55e5bfc RD |
18876 | } |
18877 | ||
18878 | ||
1bd55598 RD |
18879 | SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18880 | PyObject *resultobj = 0; | |
18881 | wxToggleButton *result = 0 ; | |
18882 | ||
18883 | if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail; | |
18884 | { | |
18885 | if (!wxPyCheckForApp()) SWIG_fail; | |
18886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18887 | result = (wxToggleButton *)new wxToggleButton(); | |
18888 | wxPyEndAllowThreads(__tstate); | |
18889 | if (PyErr_Occurred()) SWIG_fail; | |
18890 | } | |
18891 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 ); | |
18892 | return resultobj; | |
18893 | fail: | |
18894 | return NULL; | |
18895 | } | |
18896 | ||
18897 | ||
18898 | SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18899 | PyObject *resultobj = 0; | |
18900 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
18901 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18902 | int arg3 = (int) -1 ; | |
18903 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18904 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18905 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
18906 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
18907 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
18908 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
18909 | long arg7 = (long) 0 ; | |
18910 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
18911 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
18912 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
18913 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
18914 | bool result; | |
18915 | void *argp1 = 0 ; | |
18916 | int res1 = 0 ; | |
18917 | void *argp2 = 0 ; | |
18918 | int res2 = 0 ; | |
18919 | int val3 ; | |
18920 | int ecode3 = 0 ; | |
18921 | bool temp4 = false ; | |
18922 | wxPoint temp5 ; | |
18923 | wxSize temp6 ; | |
18924 | long val7 ; | |
18925 | int ecode7 = 0 ; | |
18926 | void *argp8 = 0 ; | |
18927 | int res8 = 0 ; | |
18928 | bool temp9 = false ; | |
18929 | PyObject * obj0 = 0 ; | |
18930 | PyObject * obj1 = 0 ; | |
18931 | PyObject * obj2 = 0 ; | |
18932 | PyObject * obj3 = 0 ; | |
18933 | PyObject * obj4 = 0 ; | |
18934 | PyObject * obj5 = 0 ; | |
18935 | PyObject * obj6 = 0 ; | |
18936 | PyObject * obj7 = 0 ; | |
18937 | PyObject * obj8 = 0 ; | |
18938 | char * kwnames[] = { | |
18939 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
18940 | }; | |
18941 | ||
18942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
18943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
18944 | if (!SWIG_IsOK(res1)) { | |
18945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'"); | |
18946 | } | |
18947 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
18948 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18949 | if (!SWIG_IsOK(res2)) { | |
18950 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
18951 | } | |
18952 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
18953 | if (obj2) { | |
18954 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18955 | if (!SWIG_IsOK(ecode3)) { | |
18956 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
18957 | } | |
18958 | arg3 = static_cast< int >(val3); | |
18959 | } | |
18960 | if (obj3) { | |
36ed4f51 | 18961 | { |
1bd55598 RD |
18962 | arg4 = wxString_in_helper(obj3); |
18963 | if (arg4 == NULL) SWIG_fail; | |
18964 | temp4 = true; | |
36ed4f51 | 18965 | } |
1bd55598 RD |
18966 | } |
18967 | if (obj4) { | |
36ed4f51 | 18968 | { |
1bd55598 RD |
18969 | arg5 = &temp5; |
18970 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 18971 | } |
1bd55598 RD |
18972 | } |
18973 | if (obj5) { | |
36ed4f51 | 18974 | { |
1bd55598 RD |
18975 | arg6 = &temp6; |
18976 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
36ed4f51 | 18977 | } |
1bd55598 RD |
18978 | } |
18979 | if (obj6) { | |
18980 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
18981 | if (!SWIG_IsOK(ecode7)) { | |
18982 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
18983 | } | |
18984 | arg7 = static_cast< long >(val7); | |
18985 | } | |
18986 | if (obj7) { | |
18987 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
18988 | if (!SWIG_IsOK(res8)) { | |
18989 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 18990 | } |
1bd55598 RD |
18991 | if (!argp8) { |
18992 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 18993 | } |
1bd55598 RD |
18994 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
18995 | } | |
18996 | if (obj8) { | |
d55e5bfc | 18997 | { |
1bd55598 RD |
18998 | arg9 = wxString_in_helper(obj8); |
18999 | if (arg9 == NULL) SWIG_fail; | |
19000 | temp9 = true; | |
d55e5bfc | 19001 | } |
1bd55598 RD |
19002 | } |
19003 | { | |
19004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19005 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
19006 | wxPyEndAllowThreads(__tstate); | |
19007 | if (PyErr_Occurred()) SWIG_fail; | |
19008 | } | |
19009 | { | |
19010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19011 | } | |
19012 | { | |
19013 | if (temp4) | |
19014 | delete arg4; | |
19015 | } | |
19016 | { | |
19017 | if (temp9) | |
19018 | delete arg9; | |
19019 | } | |
19020 | return resultobj; | |
19021 | fail: | |
19022 | { | |
19023 | if (temp4) | |
19024 | delete arg4; | |
19025 | } | |
19026 | { | |
19027 | if (temp9) | |
19028 | delete arg9; | |
19029 | } | |
19030 | return NULL; | |
19031 | } | |
19032 | ||
19033 | ||
19034 | SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19035 | PyObject *resultobj = 0; | |
19036 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
19037 | bool arg2 ; | |
19038 | void *argp1 = 0 ; | |
19039 | int res1 = 0 ; | |
19040 | bool val2 ; | |
19041 | int ecode2 = 0 ; | |
19042 | PyObject * obj0 = 0 ; | |
19043 | PyObject * obj1 = 0 ; | |
19044 | char * kwnames[] = { | |
19045 | (char *) "self",(char *) "value", NULL | |
19046 | }; | |
19047 | ||
19048 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
19049 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
19050 | if (!SWIG_IsOK(res1)) { | |
19051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'"); | |
19052 | } | |
19053 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
19054 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19055 | if (!SWIG_IsOK(ecode2)) { | |
19056 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
19057 | } | |
19058 | arg2 = static_cast< bool >(val2); | |
19059 | { | |
19060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19061 | (arg1)->SetValue(arg2); | |
19062 | wxPyEndAllowThreads(__tstate); | |
19063 | if (PyErr_Occurred()) SWIG_fail; | |
19064 | } | |
19065 | resultobj = SWIG_Py_Void(); | |
19066 | return resultobj; | |
19067 | fail: | |
19068 | return NULL; | |
d55e5bfc RD |
19069 | } |
19070 | ||
19071 | ||
1bd55598 RD |
19072 | SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19073 | PyObject *resultobj = 0; | |
19074 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
19075 | bool result; | |
19076 | void *argp1 = 0 ; | |
19077 | int res1 = 0 ; | |
19078 | PyObject *swig_obj[1] ; | |
19079 | ||
19080 | if (!args) SWIG_fail; | |
19081 | swig_obj[0] = args; | |
19082 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
19083 | if (!SWIG_IsOK(res1)) { | |
19084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'"); | |
19085 | } | |
19086 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
19087 | { | |
19088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19089 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
19090 | wxPyEndAllowThreads(__tstate); | |
19091 | if (PyErr_Occurred()) SWIG_fail; | |
19092 | } | |
19093 | { | |
19094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19095 | } | |
19096 | return resultobj; | |
19097 | fail: | |
19098 | return NULL; | |
f20a2e1f RD |
19099 | } |
19100 | ||
19101 | ||
1bd55598 RD |
19102 | SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19103 | PyObject *resultobj = 0; | |
19104 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
19105 | SwigValueWrapper<wxVisualAttributes > result; | |
19106 | int val1 ; | |
19107 | int ecode1 = 0 ; | |
19108 | PyObject * obj0 = 0 ; | |
19109 | char * kwnames[] = { | |
19110 | (char *) "variant", NULL | |
19111 | }; | |
19112 | ||
19113 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
19114 | if (obj0) { | |
19115 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19116 | if (!SWIG_IsOK(ecode1)) { | |
19117 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
19118 | } | |
19119 | arg1 = static_cast< wxWindowVariant >(val1); | |
19120 | } | |
19121 | { | |
19122 | if (!wxPyCheckForApp()) SWIG_fail; | |
19123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19124 | result = wxToggleButton::GetClassDefaultAttributes(arg1); | |
19125 | wxPyEndAllowThreads(__tstate); | |
19126 | if (PyErr_Occurred()) SWIG_fail; | |
19127 | } | |
19128 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
19129 | return resultobj; | |
19130 | fail: | |
19131 | return NULL; | |
d55e5bfc RD |
19132 | } |
19133 | ||
19134 | ||
1bd55598 RD |
19135 | SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19136 | PyObject *obj; | |
19137 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19138 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj)); | |
19139 | return SWIG_Py_Void(); | |
d55e5bfc RD |
19140 | } |
19141 | ||
1bd55598 RD |
19142 | SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19143 | return SWIG_Python_InitShadowInstance(args); | |
19144 | } | |
d55e5bfc | 19145 | |
1bd55598 RD |
19146 | SWIGINTERN int NotebookNameStr_set(PyObject *) { |
19147 | SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only."); | |
19148 | return 1; | |
d55e5bfc RD |
19149 | } |
19150 | ||
19151 | ||
1bd55598 RD |
19152 | SWIGINTERN PyObject *NotebookNameStr_get(void) { |
19153 | PyObject *pyobj = 0; | |
19154 | ||
19155 | { | |
d55e5bfc | 19156 | #if wxUSE_UNICODE |
1bd55598 | 19157 | pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d55e5bfc | 19158 | #else |
1bd55598 | 19159 | pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d55e5bfc | 19160 | #endif |
1bd55598 RD |
19161 | } |
19162 | return pyobj; | |
d55e5bfc RD |
19163 | } |
19164 | ||
19165 | ||
1bd55598 RD |
19166 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19167 | PyObject *resultobj = 0; | |
19168 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19169 | size_t result; | |
19170 | void *argp1 = 0 ; | |
19171 | int res1 = 0 ; | |
19172 | PyObject *swig_obj[1] ; | |
19173 | ||
19174 | if (!args) SWIG_fail; | |
19175 | swig_obj[0] = args; | |
19176 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19177 | if (!SWIG_IsOK(res1)) { | |
19178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19179 | } | |
19180 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19181 | { | |
19182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19183 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount(); | |
19184 | wxPyEndAllowThreads(__tstate); | |
19185 | if (PyErr_Occurred()) SWIG_fail; | |
19186 | } | |
19187 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
19188 | return resultobj; | |
19189 | fail: | |
19190 | return NULL; | |
19191 | } | |
19192 | ||
19193 | ||
19194 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19195 | PyObject *resultobj = 0; | |
19196 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19197 | size_t arg2 ; | |
19198 | wxWindow *result = 0 ; | |
19199 | void *argp1 = 0 ; | |
19200 | int res1 = 0 ; | |
19201 | size_t val2 ; | |
19202 | int ecode2 = 0 ; | |
19203 | PyObject * obj0 = 0 ; | |
19204 | PyObject * obj1 = 0 ; | |
19205 | char * kwnames[] = { | |
19206 | (char *) "self",(char *) "n", NULL | |
19207 | }; | |
19208 | ||
19209 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19210 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19211 | if (!SWIG_IsOK(res1)) { | |
19212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19213 | } | |
19214 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19215 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19216 | if (!SWIG_IsOK(ecode2)) { | |
19217 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'"); | |
19218 | } | |
19219 | arg2 = static_cast< size_t >(val2); | |
19220 | { | |
19221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19222 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
19223 | wxPyEndAllowThreads(__tstate); | |
19224 | if (PyErr_Occurred()) SWIG_fail; | |
19225 | } | |
19226 | { | |
19227 | resultobj = wxPyMake_wxObject(result, 0); | |
19228 | } | |
19229 | return resultobj; | |
19230 | fail: | |
19231 | return NULL; | |
d55e5bfc RD |
19232 | } |
19233 | ||
19234 | ||
1bd55598 RD |
19235 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19236 | PyObject *resultobj = 0; | |
19237 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19238 | wxWindow *result = 0 ; | |
19239 | void *argp1 = 0 ; | |
19240 | int res1 = 0 ; | |
19241 | PyObject *swig_obj[1] ; | |
19242 | ||
19243 | if (!args) SWIG_fail; | |
19244 | swig_obj[0] = args; | |
19245 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19246 | if (!SWIG_IsOK(res1)) { | |
19247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19248 | } | |
19249 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19250 | { | |
19251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19252 | result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage(); | |
19253 | wxPyEndAllowThreads(__tstate); | |
19254 | if (PyErr_Occurred()) SWIG_fail; | |
19255 | } | |
19256 | { | |
19257 | resultobj = wxPyMake_wxObject(result, 0); | |
19258 | } | |
19259 | return resultobj; | |
19260 | fail: | |
19261 | return NULL; | |
d55e5bfc RD |
19262 | } |
19263 | ||
19264 | ||
1bd55598 RD |
19265 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19266 | PyObject *resultobj = 0; | |
19267 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19268 | int result; | |
19269 | void *argp1 = 0 ; | |
19270 | int res1 = 0 ; | |
19271 | PyObject *swig_obj[1] ; | |
19272 | ||
19273 | if (!args) SWIG_fail; | |
19274 | swig_obj[0] = args; | |
19275 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19276 | if (!SWIG_IsOK(res1)) { | |
19277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19278 | } | |
19279 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19280 | { | |
19281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19282 | result = (int)((wxBookCtrlBase const *)arg1)->GetSelection(); | |
19283 | wxPyEndAllowThreads(__tstate); | |
19284 | if (PyErr_Occurred()) SWIG_fail; | |
19285 | } | |
19286 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19287 | return resultobj; | |
19288 | fail: | |
19289 | return NULL; | |
19290 | } | |
19291 | ||
19292 | ||
19293 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19294 | PyObject *resultobj = 0; | |
19295 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19296 | size_t arg2 ; | |
19297 | wxString *arg3 = 0 ; | |
19298 | bool result; | |
19299 | void *argp1 = 0 ; | |
19300 | int res1 = 0 ; | |
19301 | size_t val2 ; | |
19302 | int ecode2 = 0 ; | |
19303 | bool temp3 = false ; | |
19304 | PyObject * obj0 = 0 ; | |
19305 | PyObject * obj1 = 0 ; | |
19306 | PyObject * obj2 = 0 ; | |
19307 | char * kwnames[] = { | |
19308 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
19309 | }; | |
19310 | ||
19311 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19312 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19313 | if (!SWIG_IsOK(res1)) { | |
19314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19315 | } | |
19316 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19317 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19318 | if (!SWIG_IsOK(ecode2)) { | |
19319 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'"); | |
19320 | } | |
19321 | arg2 = static_cast< size_t >(val2); | |
19322 | { | |
19323 | arg3 = wxString_in_helper(obj2); | |
19324 | if (arg3 == NULL) SWIG_fail; | |
19325 | temp3 = true; | |
19326 | } | |
19327 | { | |
19328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19329 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
19330 | wxPyEndAllowThreads(__tstate); | |
19331 | if (PyErr_Occurred()) SWIG_fail; | |
19332 | } | |
19333 | { | |
19334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19335 | } | |
19336 | { | |
19337 | if (temp3) | |
19338 | delete arg3; | |
19339 | } | |
19340 | return resultobj; | |
19341 | fail: | |
19342 | { | |
19343 | if (temp3) | |
19344 | delete arg3; | |
19345 | } | |
19346 | return NULL; | |
19347 | } | |
19348 | ||
19349 | ||
19350 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19351 | PyObject *resultobj = 0; | |
19352 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19353 | size_t arg2 ; | |
19354 | wxString result; | |
19355 | void *argp1 = 0 ; | |
19356 | int res1 = 0 ; | |
19357 | size_t val2 ; | |
19358 | int ecode2 = 0 ; | |
19359 | PyObject * obj0 = 0 ; | |
19360 | PyObject * obj1 = 0 ; | |
19361 | char * kwnames[] = { | |
19362 | (char *) "self",(char *) "n", NULL | |
19363 | }; | |
19364 | ||
19365 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail; | |
19366 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19367 | if (!SWIG_IsOK(res1)) { | |
19368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19369 | } | |
19370 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19371 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19372 | if (!SWIG_IsOK(ecode2)) { | |
19373 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'"); | |
19374 | } | |
19375 | arg2 = static_cast< size_t >(val2); | |
19376 | { | |
19377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19378 | result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2); | |
19379 | wxPyEndAllowThreads(__tstate); | |
19380 | if (PyErr_Occurred()) SWIG_fail; | |
19381 | } | |
19382 | { | |
19383 | #if wxUSE_UNICODE | |
19384 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19385 | #else | |
19386 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19387 | #endif | |
19388 | } | |
19389 | return resultobj; | |
19390 | fail: | |
19391 | return NULL; | |
19392 | } | |
19393 | ||
19394 | ||
19395 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19396 | PyObject *resultobj = 0; | |
19397 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19398 | wxImageList *arg2 = (wxImageList *) 0 ; | |
19399 | void *argp1 = 0 ; | |
19400 | int res1 = 0 ; | |
19401 | void *argp2 = 0 ; | |
19402 | int res2 = 0 ; | |
19403 | PyObject * obj0 = 0 ; | |
19404 | PyObject * obj1 = 0 ; | |
19405 | char * kwnames[] = { | |
19406 | (char *) "self",(char *) "imageList", NULL | |
19407 | }; | |
19408 | ||
19409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
19410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19411 | if (!SWIG_IsOK(res1)) { | |
19412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19413 | } | |
19414 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19415 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
19416 | if (!SWIG_IsOK(res2)) { | |
19417 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
19418 | } | |
19419 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
19420 | { | |
19421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19422 | (arg1)->SetImageList(arg2); | |
19423 | wxPyEndAllowThreads(__tstate); | |
19424 | if (PyErr_Occurred()) SWIG_fail; | |
19425 | } | |
19426 | resultobj = SWIG_Py_Void(); | |
19427 | return resultobj; | |
19428 | fail: | |
19429 | return NULL; | |
19430 | } | |
19431 | ||
19432 | ||
19433 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19434 | PyObject *resultobj = 0; | |
19435 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19436 | wxImageList *arg2 = (wxImageList *) 0 ; | |
19437 | void *argp1 = 0 ; | |
19438 | int res1 = 0 ; | |
19439 | int res2 = 0 ; | |
19440 | PyObject * obj0 = 0 ; | |
19441 | PyObject * obj1 = 0 ; | |
19442 | char * kwnames[] = { | |
19443 | (char *) "self",(char *) "imageList", NULL | |
19444 | }; | |
19445 | ||
19446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
19447 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19448 | if (!SWIG_IsOK(res1)) { | |
19449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19450 | } | |
19451 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19452 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
19453 | if (!SWIG_IsOK(res2)) { | |
19454 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
19455 | } | |
19456 | { | |
19457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19458 | (arg1)->AssignImageList(arg2); | |
19459 | wxPyEndAllowThreads(__tstate); | |
19460 | if (PyErr_Occurred()) SWIG_fail; | |
19461 | } | |
19462 | resultobj = SWIG_Py_Void(); | |
19463 | return resultobj; | |
19464 | fail: | |
19465 | return NULL; | |
d55e5bfc RD |
19466 | } |
19467 | ||
19468 | ||
1bd55598 RD |
19469 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19470 | PyObject *resultobj = 0; | |
19471 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19472 | wxImageList *result = 0 ; | |
19473 | void *argp1 = 0 ; | |
19474 | int res1 = 0 ; | |
19475 | PyObject *swig_obj[1] ; | |
19476 | ||
19477 | if (!args) SWIG_fail; | |
19478 | swig_obj[0] = args; | |
19479 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19480 | if (!SWIG_IsOK(res1)) { | |
19481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19482 | } | |
19483 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19484 | { | |
19485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19486 | result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList(); | |
19487 | wxPyEndAllowThreads(__tstate); | |
19488 | if (PyErr_Occurred()) SWIG_fail; | |
19489 | } | |
3ecece7e RD |
19490 | { |
19491 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
19492 | } | |
1bd55598 RD |
19493 | return resultobj; |
19494 | fail: | |
19495 | return NULL; | |
19496 | } | |
19497 | ||
19498 | ||
19499 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19500 | PyObject *resultobj = 0; | |
19501 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19502 | size_t arg2 ; | |
19503 | int result; | |
19504 | void *argp1 = 0 ; | |
19505 | int res1 = 0 ; | |
19506 | size_t val2 ; | |
19507 | int ecode2 = 0 ; | |
19508 | PyObject * obj0 = 0 ; | |
19509 | PyObject * obj1 = 0 ; | |
19510 | char * kwnames[] = { | |
19511 | (char *) "self",(char *) "n", NULL | |
19512 | }; | |
19513 | ||
19514 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19515 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19516 | if (!SWIG_IsOK(res1)) { | |
19517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19518 | } | |
19519 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19520 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19521 | if (!SWIG_IsOK(ecode2)) { | |
19522 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'"); | |
19523 | } | |
19524 | arg2 = static_cast< size_t >(val2); | |
19525 | { | |
19526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19527 | result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2); | |
19528 | wxPyEndAllowThreads(__tstate); | |
19529 | if (PyErr_Occurred()) SWIG_fail; | |
19530 | } | |
19531 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19532 | return resultobj; | |
19533 | fail: | |
19534 | return NULL; | |
19535 | } | |
19536 | ||
19537 | ||
19538 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19539 | PyObject *resultobj = 0; | |
19540 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19541 | size_t arg2 ; | |
19542 | int arg3 ; | |
19543 | bool result; | |
19544 | void *argp1 = 0 ; | |
19545 | int res1 = 0 ; | |
19546 | size_t val2 ; | |
19547 | int ecode2 = 0 ; | |
19548 | int val3 ; | |
19549 | int ecode3 = 0 ; | |
19550 | PyObject * obj0 = 0 ; | |
19551 | PyObject * obj1 = 0 ; | |
19552 | PyObject * obj2 = 0 ; | |
19553 | char * kwnames[] = { | |
19554 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
19555 | }; | |
19556 | ||
19557 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19558 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19559 | if (!SWIG_IsOK(res1)) { | |
19560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19561 | } | |
19562 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19563 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19564 | if (!SWIG_IsOK(ecode2)) { | |
19565 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'"); | |
19566 | } | |
19567 | arg2 = static_cast< size_t >(val2); | |
19568 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19569 | if (!SWIG_IsOK(ecode3)) { | |
19570 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'"); | |
19571 | } | |
19572 | arg3 = static_cast< int >(val3); | |
19573 | { | |
19574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19575 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
19576 | wxPyEndAllowThreads(__tstate); | |
19577 | if (PyErr_Occurred()) SWIG_fail; | |
19578 | } | |
19579 | { | |
19580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19581 | } | |
19582 | return resultobj; | |
19583 | fail: | |
19584 | return NULL; | |
19585 | } | |
19586 | ||
19587 | ||
19588 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19589 | PyObject *resultobj = 0; | |
19590 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19591 | wxSize *arg2 = 0 ; | |
19592 | void *argp1 = 0 ; | |
19593 | int res1 = 0 ; | |
19594 | wxSize temp2 ; | |
19595 | PyObject * obj0 = 0 ; | |
19596 | PyObject * obj1 = 0 ; | |
19597 | char * kwnames[] = { | |
19598 | (char *) "self",(char *) "size", NULL | |
19599 | }; | |
19600 | ||
19601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
19602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19603 | if (!SWIG_IsOK(res1)) { | |
19604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19605 | } | |
19606 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19607 | { | |
19608 | arg2 = &temp2; | |
19609 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19610 | } | |
19611 | { | |
19612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19613 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
19614 | wxPyEndAllowThreads(__tstate); | |
19615 | if (PyErr_Occurred()) SWIG_fail; | |
19616 | } | |
19617 | resultobj = SWIG_Py_Void(); | |
19618 | return resultobj; | |
19619 | fail: | |
19620 | return NULL; | |
19621 | } | |
19622 | ||
19623 | ||
19624 | SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19625 | PyObject *resultobj = 0; | |
19626 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19627 | wxSize *arg2 = 0 ; | |
19628 | wxSize result; | |
19629 | void *argp1 = 0 ; | |
19630 | int res1 = 0 ; | |
19631 | wxSize temp2 ; | |
19632 | PyObject * obj0 = 0 ; | |
19633 | PyObject * obj1 = 0 ; | |
19634 | char * kwnames[] = { | |
19635 | (char *) "self",(char *) "sizePage", NULL | |
19636 | }; | |
19637 | ||
19638 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19639 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19640 | if (!SWIG_IsOK(res1)) { | |
19641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19642 | } | |
19643 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19644 | { | |
19645 | arg2 = &temp2; | |
19646 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19647 | } | |
19648 | { | |
19649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19650 | result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
19651 | wxPyEndAllowThreads(__tstate); | |
19652 | if (PyErr_Occurred()) SWIG_fail; | |
19653 | } | |
19654 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
19655 | return resultobj; | |
19656 | fail: | |
19657 | return NULL; | |
d55e5bfc RD |
19658 | } |
19659 | ||
19660 | ||
1bd55598 RD |
19661 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19662 | PyObject *resultobj = 0; | |
19663 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
e9d6f3a4 | 19664 | unsigned int result; |
1bd55598 RD |
19665 | void *argp1 = 0 ; |
19666 | int res1 = 0 ; | |
19667 | PyObject *swig_obj[1] ; | |
19668 | ||
19669 | if (!args) SWIG_fail; | |
19670 | swig_obj[0] = args; | |
19671 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19672 | if (!SWIG_IsOK(res1)) { | |
19673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19674 | } | |
19675 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19676 | { | |
19677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e9d6f3a4 | 19678 | result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder(); |
1bd55598 RD |
19679 | wxPyEndAllowThreads(__tstate); |
19680 | if (PyErr_Occurred()) SWIG_fail; | |
19681 | } | |
e9d6f3a4 | 19682 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
1bd55598 RD |
19683 | return resultobj; |
19684 | fail: | |
19685 | return NULL; | |
19686 | } | |
19687 | ||
19688 | ||
19689 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19690 | PyObject *resultobj = 0; | |
19691 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
e9d6f3a4 | 19692 | unsigned int arg2 ; |
1bd55598 RD |
19693 | void *argp1 = 0 ; |
19694 | int res1 = 0 ; | |
e9d6f3a4 | 19695 | unsigned int val2 ; |
1bd55598 RD |
19696 | int ecode2 = 0 ; |
19697 | PyObject * obj0 = 0 ; | |
19698 | PyObject * obj1 = 0 ; | |
19699 | char * kwnames[] = { | |
19700 | (char *) "self",(char *) "internalBorder", NULL | |
19701 | }; | |
19702 | ||
19703 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail; | |
19704 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19705 | if (!SWIG_IsOK(res1)) { | |
19706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19707 | } | |
19708 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
e9d6f3a4 | 19709 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
1bd55598 | 19710 | if (!SWIG_IsOK(ecode2)) { |
e9d6f3a4 | 19711 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'"); |
1bd55598 | 19712 | } |
e9d6f3a4 | 19713 | arg2 = static_cast< unsigned int >(val2); |
1bd55598 RD |
19714 | { |
19715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19716 | (arg1)->SetInternalBorder(arg2); | |
19717 | wxPyEndAllowThreads(__tstate); | |
19718 | if (PyErr_Occurred()) SWIG_fail; | |
19719 | } | |
19720 | resultobj = SWIG_Py_Void(); | |
19721 | return resultobj; | |
19722 | fail: | |
19723 | return NULL; | |
d55e5bfc RD |
19724 | } |
19725 | ||
19726 | ||
1bd55598 RD |
19727 | SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19728 | PyObject *resultobj = 0; | |
19729 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19730 | bool result; | |
19731 | void *argp1 = 0 ; | |
19732 | int res1 = 0 ; | |
19733 | PyObject *swig_obj[1] ; | |
19734 | ||
19735 | if (!args) SWIG_fail; | |
19736 | swig_obj[0] = args; | |
19737 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19738 | if (!SWIG_IsOK(res1)) { | |
19739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19740 | } | |
19741 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19742 | { | |
19743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19744 | result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical(); | |
19745 | wxPyEndAllowThreads(__tstate); | |
19746 | if (PyErr_Occurred()) SWIG_fail; | |
19747 | } | |
19748 | { | |
19749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19750 | } | |
19751 | return resultobj; | |
19752 | fail: | |
19753 | return NULL; | |
19754 | } | |
19755 | ||
19756 | ||
e9d6f3a4 RD |
19757 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19758 | PyObject *resultobj = 0; | |
19759 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19760 | int arg2 ; | |
19761 | void *argp1 = 0 ; | |
19762 | int res1 = 0 ; | |
19763 | int val2 ; | |
19764 | int ecode2 = 0 ; | |
19765 | PyObject * obj0 = 0 ; | |
19766 | PyObject * obj1 = 0 ; | |
19767 | char * kwnames[] = { | |
19768 | (char *) "self",(char *) "margin", NULL | |
19769 | }; | |
19770 | ||
19771 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
19772 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19773 | if (!SWIG_IsOK(res1)) { | |
19774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19775 | } | |
19776 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19777 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19778 | if (!SWIG_IsOK(ecode2)) { | |
19779 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'"); | |
19780 | } | |
19781 | arg2 = static_cast< int >(val2); | |
19782 | { | |
19783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19784 | (arg1)->SetControlMargin(arg2); | |
19785 | wxPyEndAllowThreads(__tstate); | |
19786 | if (PyErr_Occurred()) SWIG_fail; | |
19787 | } | |
19788 | resultobj = SWIG_Py_Void(); | |
19789 | return resultobj; | |
19790 | fail: | |
19791 | return NULL; | |
19792 | } | |
19793 | ||
19794 | ||
19795 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19796 | PyObject *resultobj = 0; | |
19797 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19798 | int result; | |
19799 | void *argp1 = 0 ; | |
19800 | int res1 = 0 ; | |
19801 | PyObject *swig_obj[1] ; | |
19802 | ||
19803 | if (!args) SWIG_fail; | |
19804 | swig_obj[0] = args; | |
19805 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19806 | if (!SWIG_IsOK(res1)) { | |
19807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19808 | } | |
19809 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19810 | { | |
19811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19812 | result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin(); | |
19813 | wxPyEndAllowThreads(__tstate); | |
19814 | if (PyErr_Occurred()) SWIG_fail; | |
19815 | } | |
19816 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19817 | return resultobj; | |
19818 | fail: | |
19819 | return NULL; | |
19820 | } | |
19821 | ||
19822 | ||
1bd55598 RD |
19823 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19824 | PyObject *resultobj = 0; | |
19825 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19826 | bool arg2 ; | |
19827 | void *argp1 = 0 ; | |
19828 | int res1 = 0 ; | |
19829 | bool val2 ; | |
19830 | int ecode2 = 0 ; | |
19831 | PyObject * obj0 = 0 ; | |
19832 | PyObject * obj1 = 0 ; | |
19833 | char * kwnames[] = { | |
19834 | (char *) "self",(char *) "fit", NULL | |
19835 | }; | |
19836 | ||
19837 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19839 | if (!SWIG_IsOK(res1)) { | |
19840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19841 | } | |
19842 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19843 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19844 | if (!SWIG_IsOK(ecode2)) { | |
19845 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'"); | |
19846 | } | |
19847 | arg2 = static_cast< bool >(val2); | |
19848 | { | |
19849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19850 | (arg1)->SetFitToCurrentPage(arg2); | |
19851 | wxPyEndAllowThreads(__tstate); | |
19852 | if (PyErr_Occurred()) SWIG_fail; | |
19853 | } | |
19854 | resultobj = SWIG_Py_Void(); | |
19855 | return resultobj; | |
19856 | fail: | |
19857 | return NULL; | |
d55e5bfc RD |
19858 | } |
19859 | ||
19860 | ||
1bd55598 RD |
19861 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19862 | PyObject *resultobj = 0; | |
19863 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19864 | bool result; | |
19865 | void *argp1 = 0 ; | |
19866 | int res1 = 0 ; | |
19867 | PyObject *swig_obj[1] ; | |
19868 | ||
19869 | if (!args) SWIG_fail; | |
19870 | swig_obj[0] = args; | |
19871 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19872 | if (!SWIG_IsOK(res1)) { | |
19873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19874 | } | |
19875 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19876 | { | |
19877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19878 | result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage(); | |
19879 | wxPyEndAllowThreads(__tstate); | |
19880 | if (PyErr_Occurred()) SWIG_fail; | |
19881 | } | |
19882 | { | |
19883 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19884 | } | |
19885 | return resultobj; | |
19886 | fail: | |
19887 | return NULL; | |
19888 | } | |
19889 | ||
19890 | ||
e9d6f3a4 RD |
19891 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19892 | PyObject *resultobj = 0; | |
19893 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19894 | wxSizer *result = 0 ; | |
19895 | void *argp1 = 0 ; | |
19896 | int res1 = 0 ; | |
19897 | PyObject *swig_obj[1] ; | |
19898 | ||
19899 | if (!args) SWIG_fail; | |
19900 | swig_obj[0] = args; | |
19901 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19902 | if (!SWIG_IsOK(res1)) { | |
19903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19904 | } | |
19905 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19906 | { | |
19907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19908 | result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer(); | |
19909 | wxPyEndAllowThreads(__tstate); | |
19910 | if (PyErr_Occurred()) SWIG_fail; | |
19911 | } | |
19912 | { | |
19913 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
19914 | } | |
19915 | return resultobj; | |
19916 | fail: | |
19917 | return NULL; | |
19918 | } | |
19919 | ||
19920 | ||
1bd55598 RD |
19921 | SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19922 | PyObject *resultobj = 0; | |
19923 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19924 | size_t arg2 ; | |
19925 | bool result; | |
19926 | void *argp1 = 0 ; | |
19927 | int res1 = 0 ; | |
19928 | size_t val2 ; | |
19929 | int ecode2 = 0 ; | |
19930 | PyObject * obj0 = 0 ; | |
19931 | PyObject * obj1 = 0 ; | |
19932 | char * kwnames[] = { | |
19933 | (char *) "self",(char *) "n", NULL | |
19934 | }; | |
19935 | ||
19936 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19937 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19938 | if (!SWIG_IsOK(res1)) { | |
19939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19940 | } | |
19941 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19942 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19943 | if (!SWIG_IsOK(ecode2)) { | |
19944 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'"); | |
19945 | } | |
19946 | arg2 = static_cast< size_t >(val2); | |
19947 | { | |
19948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19949 | result = (bool)(arg1)->DeletePage(arg2); | |
19950 | wxPyEndAllowThreads(__tstate); | |
19951 | if (PyErr_Occurred()) SWIG_fail; | |
19952 | } | |
19953 | { | |
19954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19955 | } | |
19956 | return resultobj; | |
19957 | fail: | |
19958 | return NULL; | |
19959 | } | |
19960 | ||
19961 | ||
19962 | SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19963 | PyObject *resultobj = 0; | |
19964 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19965 | size_t arg2 ; | |
19966 | bool result; | |
19967 | void *argp1 = 0 ; | |
19968 | int res1 = 0 ; | |
19969 | size_t val2 ; | |
19970 | int ecode2 = 0 ; | |
19971 | PyObject * obj0 = 0 ; | |
19972 | PyObject * obj1 = 0 ; | |
19973 | char * kwnames[] = { | |
19974 | (char *) "self",(char *) "n", NULL | |
19975 | }; | |
19976 | ||
19977 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19978 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19979 | if (!SWIG_IsOK(res1)) { | |
19980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19981 | } | |
19982 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19983 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19984 | if (!SWIG_IsOK(ecode2)) { | |
19985 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'"); | |
19986 | } | |
19987 | arg2 = static_cast< size_t >(val2); | |
19988 | { | |
19989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19990 | result = (bool)(arg1)->RemovePage(arg2); | |
19991 | wxPyEndAllowThreads(__tstate); | |
19992 | if (PyErr_Occurred()) SWIG_fail; | |
19993 | } | |
19994 | { | |
19995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19996 | } | |
19997 | return resultobj; | |
19998 | fail: | |
19999 | return NULL; | |
f20a2e1f RD |
20000 | } |
20001 | ||
20002 | ||
1bd55598 RD |
20003 | SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20004 | PyObject *resultobj = 0; | |
20005 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20006 | bool result; | |
20007 | void *argp1 = 0 ; | |
20008 | int res1 = 0 ; | |
20009 | PyObject *swig_obj[1] ; | |
20010 | ||
20011 | if (!args) SWIG_fail; | |
20012 | swig_obj[0] = args; | |
20013 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20014 | if (!SWIG_IsOK(res1)) { | |
20015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20016 | } | |
20017 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20018 | { | |
20019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20020 | result = (bool)(arg1)->DeleteAllPages(); | |
20021 | wxPyEndAllowThreads(__tstate); | |
20022 | if (PyErr_Occurred()) SWIG_fail; | |
20023 | } | |
20024 | { | |
20025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20026 | } | |
20027 | return resultobj; | |
20028 | fail: | |
20029 | return NULL; | |
20030 | } | |
20031 | ||
20032 | ||
20033 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20034 | PyObject *resultobj = 0; | |
20035 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20036 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20037 | wxString *arg3 = 0 ; | |
20038 | bool arg4 = (bool) false ; | |
20039 | int arg5 = (int) -1 ; | |
20040 | bool result; | |
20041 | void *argp1 = 0 ; | |
20042 | int res1 = 0 ; | |
20043 | void *argp2 = 0 ; | |
20044 | int res2 = 0 ; | |
20045 | bool temp3 = false ; | |
20046 | bool val4 ; | |
20047 | int ecode4 = 0 ; | |
20048 | int val5 ; | |
20049 | int ecode5 = 0 ; | |
20050 | PyObject * obj0 = 0 ; | |
20051 | PyObject * obj1 = 0 ; | |
20052 | PyObject * obj2 = 0 ; | |
20053 | PyObject * obj3 = 0 ; | |
20054 | PyObject * obj4 = 0 ; | |
20055 | char * kwnames[] = { | |
20056 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
20057 | }; | |
20058 | ||
20059 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20061 | if (!SWIG_IsOK(res1)) { | |
20062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20063 | } | |
20064 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20065 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20066 | if (!SWIG_IsOK(res2)) { | |
20067 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20068 | } | |
20069 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20070 | { | |
20071 | arg3 = wxString_in_helper(obj2); | |
20072 | if (arg3 == NULL) SWIG_fail; | |
20073 | temp3 = true; | |
20074 | } | |
20075 | if (obj3) { | |
20076 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
20077 | if (!SWIG_IsOK(ecode4)) { | |
20078 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'"); | |
20079 | } | |
20080 | arg4 = static_cast< bool >(val4); | |
20081 | } | |
20082 | if (obj4) { | |
20083 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20084 | if (!SWIG_IsOK(ecode5)) { | |
20085 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'"); | |
20086 | } | |
20087 | arg5 = static_cast< int >(val5); | |
20088 | } | |
20089 | { | |
20090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20091 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
20092 | wxPyEndAllowThreads(__tstate); | |
20093 | if (PyErr_Occurred()) SWIG_fail; | |
20094 | } | |
20095 | { | |
20096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20097 | } | |
20098 | { | |
20099 | if (temp3) | |
20100 | delete arg3; | |
20101 | } | |
20102 | return resultobj; | |
20103 | fail: | |
20104 | { | |
20105 | if (temp3) | |
20106 | delete arg3; | |
20107 | } | |
20108 | return NULL; | |
20109 | } | |
20110 | ||
20111 | ||
20112 | SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20113 | PyObject *resultobj = 0; | |
20114 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20115 | size_t arg2 ; | |
20116 | wxWindow *arg3 = (wxWindow *) 0 ; | |
20117 | wxString *arg4 = 0 ; | |
20118 | bool arg5 = (bool) false ; | |
20119 | int arg6 = (int) -1 ; | |
20120 | bool result; | |
20121 | void *argp1 = 0 ; | |
20122 | int res1 = 0 ; | |
20123 | size_t val2 ; | |
20124 | int ecode2 = 0 ; | |
20125 | void *argp3 = 0 ; | |
20126 | int res3 = 0 ; | |
20127 | bool temp4 = false ; | |
20128 | bool val5 ; | |
20129 | int ecode5 = 0 ; | |
20130 | int val6 ; | |
20131 | int ecode6 = 0 ; | |
20132 | PyObject * obj0 = 0 ; | |
20133 | PyObject * obj1 = 0 ; | |
20134 | PyObject * obj2 = 0 ; | |
20135 | PyObject * obj3 = 0 ; | |
20136 | PyObject * obj4 = 0 ; | |
20137 | PyObject * obj5 = 0 ; | |
20138 | char * kwnames[] = { | |
20139 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
20140 | }; | |
20141 | ||
20142 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20143 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20144 | if (!SWIG_IsOK(res1)) { | |
20145 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20146 | } | |
20147 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20148 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
20149 | if (!SWIG_IsOK(ecode2)) { | |
20150 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'"); | |
20151 | } | |
20152 | arg2 = static_cast< size_t >(val2); | |
20153 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20154 | if (!SWIG_IsOK(res3)) { | |
20155 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
20156 | } | |
20157 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
20158 | { | |
20159 | arg4 = wxString_in_helper(obj3); | |
20160 | if (arg4 == NULL) SWIG_fail; | |
20161 | temp4 = true; | |
20162 | } | |
20163 | if (obj4) { | |
20164 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
20165 | if (!SWIG_IsOK(ecode5)) { | |
20166 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'"); | |
20167 | } | |
20168 | arg5 = static_cast< bool >(val5); | |
20169 | } | |
20170 | if (obj5) { | |
20171 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20172 | if (!SWIG_IsOK(ecode6)) { | |
20173 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'"); | |
20174 | } | |
20175 | arg6 = static_cast< int >(val6); | |
20176 | } | |
20177 | { | |
20178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20179 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
20180 | wxPyEndAllowThreads(__tstate); | |
20181 | if (PyErr_Occurred()) SWIG_fail; | |
20182 | } | |
20183 | { | |
20184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20185 | } | |
20186 | { | |
20187 | if (temp4) | |
20188 | delete arg4; | |
20189 | } | |
20190 | return resultobj; | |
20191 | fail: | |
20192 | { | |
20193 | if (temp4) | |
20194 | delete arg4; | |
20195 | } | |
20196 | return NULL; | |
20197 | } | |
20198 | ||
20199 | ||
20200 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20201 | PyObject *resultobj = 0; | |
20202 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20203 | size_t arg2 ; | |
20204 | int result; | |
20205 | void *argp1 = 0 ; | |
20206 | int res1 = 0 ; | |
20207 | size_t val2 ; | |
20208 | int ecode2 = 0 ; | |
20209 | PyObject * obj0 = 0 ; | |
20210 | PyObject * obj1 = 0 ; | |
20211 | char * kwnames[] = { | |
20212 | (char *) "self",(char *) "n", NULL | |
20213 | }; | |
20214 | ||
20215 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20216 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20217 | if (!SWIG_IsOK(res1)) { | |
20218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20219 | } | |
20220 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20221 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
20222 | if (!SWIG_IsOK(ecode2)) { | |
20223 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'"); | |
20224 | } | |
20225 | arg2 = static_cast< size_t >(val2); | |
20226 | { | |
20227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20228 | result = (int)(arg1)->SetSelection(arg2); | |
20229 | wxPyEndAllowThreads(__tstate); | |
20230 | if (PyErr_Occurred()) SWIG_fail; | |
20231 | } | |
20232 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20233 | return resultobj; | |
20234 | fail: | |
20235 | return NULL; | |
20236 | } | |
20237 | ||
20238 | ||
b39fe951 RD |
20239 | SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20240 | PyObject *resultobj = 0; | |
20241 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20242 | size_t arg2 ; | |
20243 | int result; | |
20244 | void *argp1 = 0 ; | |
20245 | int res1 = 0 ; | |
20246 | size_t val2 ; | |
20247 | int ecode2 = 0 ; | |
20248 | PyObject * obj0 = 0 ; | |
20249 | PyObject * obj1 = 0 ; | |
20250 | char * kwnames[] = { | |
20251 | (char *) "self",(char *) "n", NULL | |
20252 | }; | |
20253 | ||
20254 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20255 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20256 | if (!SWIG_IsOK(res1)) { | |
20257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20258 | } | |
20259 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20260 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
20261 | if (!SWIG_IsOK(ecode2)) { | |
20262 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'"); | |
20263 | } | |
20264 | arg2 = static_cast< size_t >(val2); | |
20265 | { | |
20266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20267 | result = (int)(arg1)->ChangeSelection(arg2); | |
20268 | wxPyEndAllowThreads(__tstate); | |
20269 | if (PyErr_Occurred()) SWIG_fail; | |
20270 | } | |
20271 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20272 | return resultobj; | |
20273 | fail: | |
20274 | return NULL; | |
20275 | } | |
20276 | ||
20277 | ||
1bd55598 RD |
20278 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20279 | PyObject *resultobj = 0; | |
20280 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20281 | bool arg2 = (bool) true ; | |
20282 | void *argp1 = 0 ; | |
20283 | int res1 = 0 ; | |
20284 | bool val2 ; | |
20285 | int ecode2 = 0 ; | |
20286 | PyObject * obj0 = 0 ; | |
20287 | PyObject * obj1 = 0 ; | |
20288 | char * kwnames[] = { | |
20289 | (char *) "self",(char *) "forward", NULL | |
20290 | }; | |
20291 | ||
20292 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20293 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20294 | if (!SWIG_IsOK(res1)) { | |
20295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20296 | } | |
20297 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20298 | if (obj1) { | |
20299 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
20300 | if (!SWIG_IsOK(ecode2)) { | |
20301 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'"); | |
20302 | } | |
20303 | arg2 = static_cast< bool >(val2); | |
20304 | } | |
20305 | { | |
20306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20307 | (arg1)->AdvanceSelection(arg2); | |
20308 | wxPyEndAllowThreads(__tstate); | |
20309 | if (PyErr_Occurred()) SWIG_fail; | |
20310 | } | |
20311 | resultobj = SWIG_Py_Void(); | |
20312 | return resultobj; | |
20313 | fail: | |
20314 | return NULL; | |
20315 | } | |
20316 | ||
20317 | ||
704eda0c RD |
20318 | SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20319 | PyObject *resultobj = 0; | |
20320 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20321 | wxPoint *arg2 = 0 ; | |
20322 | long *arg3 = (long *) 0 ; | |
20323 | int result; | |
20324 | void *argp1 = 0 ; | |
20325 | int res1 = 0 ; | |
20326 | wxPoint temp2 ; | |
20327 | long temp3 ; | |
20328 | int res3 = SWIG_TMPOBJ ; | |
20329 | PyObject * obj0 = 0 ; | |
20330 | PyObject * obj1 = 0 ; | |
20331 | char * kwnames[] = { | |
20332 | (char *) "self",(char *) "pt", NULL | |
20333 | }; | |
20334 | ||
20335 | arg3 = &temp3; | |
20336 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
20337 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20338 | if (!SWIG_IsOK(res1)) { | |
20339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
20340 | } | |
20341 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20342 | { | |
20343 | arg2 = &temp2; | |
20344 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20345 | } | |
20346 | { | |
20347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20348 | result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
20349 | wxPyEndAllowThreads(__tstate); | |
20350 | if (PyErr_Occurred()) SWIG_fail; | |
20351 | } | |
20352 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20353 | if (SWIG_IsTmpObj(res3)) { | |
20354 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
20355 | } else { | |
20356 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20357 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
20358 | } | |
20359 | return resultobj; | |
20360 | fail: | |
20361 | return NULL; | |
20362 | } | |
20363 | ||
20364 | ||
1bd55598 RD |
20365 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20366 | PyObject *resultobj = 0; | |
20367 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
20368 | SwigValueWrapper<wxVisualAttributes > result; | |
20369 | int val1 ; | |
20370 | int ecode1 = 0 ; | |
20371 | PyObject * obj0 = 0 ; | |
20372 | char * kwnames[] = { | |
20373 | (char *) "variant", NULL | |
20374 | }; | |
20375 | ||
20376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
20377 | if (obj0) { | |
20378 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20379 | if (!SWIG_IsOK(ecode1)) { | |
20380 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
20381 | } | |
20382 | arg1 = static_cast< wxWindowVariant >(val1); | |
20383 | } | |
20384 | { | |
20385 | if (!wxPyCheckForApp()) SWIG_fail; | |
20386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20387 | result = wxBookCtrlBase::GetClassDefaultAttributes(arg1); | |
20388 | wxPyEndAllowThreads(__tstate); | |
20389 | if (PyErr_Occurred()) SWIG_fail; | |
20390 | } | |
20391 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
20392 | return resultobj; | |
20393 | fail: | |
20394 | return NULL; | |
20395 | } | |
20396 | ||
20397 | ||
20398 | SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20399 | PyObject *obj; | |
20400 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20401 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj)); | |
20402 | return SWIG_Py_Void(); | |
20403 | } | |
20404 | ||
20405 | SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20406 | PyObject *resultobj = 0; | |
20407 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20408 | int arg2 = (int) 0 ; | |
20409 | int arg3 = (int) -1 ; | |
20410 | int arg4 = (int) -1 ; | |
20411 | wxBookCtrlBaseEvent *result = 0 ; | |
20412 | int val1 ; | |
20413 | int ecode1 = 0 ; | |
20414 | int val2 ; | |
20415 | int ecode2 = 0 ; | |
20416 | int val3 ; | |
20417 | int ecode3 = 0 ; | |
20418 | int val4 ; | |
20419 | int ecode4 = 0 ; | |
20420 | PyObject * obj0 = 0 ; | |
20421 | PyObject * obj1 = 0 ; | |
20422 | PyObject * obj2 = 0 ; | |
20423 | PyObject * obj3 = 0 ; | |
20424 | char * kwnames[] = { | |
20425 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
20426 | }; | |
20427 | ||
20428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20429 | if (obj0) { | |
20430 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20431 | if (!SWIG_IsOK(ecode1)) { | |
20432 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
20433 | } | |
20434 | arg1 = static_cast< wxEventType >(val1); | |
20435 | } | |
20436 | if (obj1) { | |
20437 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20438 | if (!SWIG_IsOK(ecode2)) { | |
20439 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'"); | |
20440 | } | |
20441 | arg2 = static_cast< int >(val2); | |
20442 | } | |
20443 | if (obj2) { | |
20444 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20445 | if (!SWIG_IsOK(ecode3)) { | |
20446 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'"); | |
20447 | } | |
20448 | arg3 = static_cast< int >(val3); | |
20449 | } | |
20450 | if (obj3) { | |
20451 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20452 | if (!SWIG_IsOK(ecode4)) { | |
20453 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'"); | |
20454 | } | |
20455 | arg4 = static_cast< int >(val4); | |
20456 | } | |
20457 | { | |
20458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20459 | result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4); | |
20460 | wxPyEndAllowThreads(__tstate); | |
20461 | if (PyErr_Occurred()) SWIG_fail; | |
20462 | } | |
20463 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 ); | |
20464 | return resultobj; | |
20465 | fail: | |
20466 | return NULL; | |
d55e5bfc RD |
20467 | } |
20468 | ||
20469 | ||
1bd55598 RD |
20470 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20471 | PyObject *resultobj = 0; | |
20472 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20473 | int result; | |
20474 | void *argp1 = 0 ; | |
20475 | int res1 = 0 ; | |
20476 | PyObject *swig_obj[1] ; | |
20477 | ||
20478 | if (!args) SWIG_fail; | |
20479 | swig_obj[0] = args; | |
20480 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20481 | if (!SWIG_IsOK(res1)) { | |
20482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'"); | |
20483 | } | |
20484 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20485 | { | |
20486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20487 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection(); | |
20488 | wxPyEndAllowThreads(__tstate); | |
20489 | if (PyErr_Occurred()) SWIG_fail; | |
20490 | } | |
20491 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20492 | return resultobj; | |
20493 | fail: | |
20494 | return NULL; | |
20495 | } | |
20496 | ||
20497 | ||
20498 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20499 | PyObject *resultobj = 0; | |
20500 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20501 | int arg2 ; | |
20502 | void *argp1 = 0 ; | |
20503 | int res1 = 0 ; | |
20504 | int val2 ; | |
20505 | int ecode2 = 0 ; | |
20506 | PyObject * obj0 = 0 ; | |
20507 | PyObject * obj1 = 0 ; | |
20508 | char * kwnames[] = { | |
20509 | (char *) "self",(char *) "nSel", NULL | |
20510 | }; | |
20511 | ||
20512 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20513 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20514 | if (!SWIG_IsOK(res1)) { | |
20515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'"); | |
20516 | } | |
20517 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20518 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20519 | if (!SWIG_IsOK(ecode2)) { | |
20520 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
20521 | } | |
20522 | arg2 = static_cast< int >(val2); | |
20523 | { | |
20524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20525 | (arg1)->SetSelection(arg2); | |
20526 | wxPyEndAllowThreads(__tstate); | |
20527 | if (PyErr_Occurred()) SWIG_fail; | |
20528 | } | |
20529 | resultobj = SWIG_Py_Void(); | |
20530 | return resultobj; | |
20531 | fail: | |
20532 | return NULL; | |
d55e5bfc RD |
20533 | } |
20534 | ||
20535 | ||
1bd55598 RD |
20536 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20537 | PyObject *resultobj = 0; | |
20538 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20539 | int result; | |
20540 | void *argp1 = 0 ; | |
20541 | int res1 = 0 ; | |
20542 | PyObject *swig_obj[1] ; | |
20543 | ||
20544 | if (!args) SWIG_fail; | |
20545 | swig_obj[0] = args; | |
20546 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20547 | if (!SWIG_IsOK(res1)) { | |
20548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'"); | |
20549 | } | |
20550 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20551 | { | |
20552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20553 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection(); | |
20554 | wxPyEndAllowThreads(__tstate); | |
20555 | if (PyErr_Occurred()) SWIG_fail; | |
20556 | } | |
20557 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20558 | return resultobj; | |
20559 | fail: | |
20560 | return NULL; | |
20561 | } | |
20562 | ||
20563 | ||
20564 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20565 | PyObject *resultobj = 0; | |
20566 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20567 | int arg2 ; | |
20568 | void *argp1 = 0 ; | |
20569 | int res1 = 0 ; | |
20570 | int val2 ; | |
20571 | int ecode2 = 0 ; | |
20572 | PyObject * obj0 = 0 ; | |
20573 | PyObject * obj1 = 0 ; | |
20574 | char * kwnames[] = { | |
20575 | (char *) "self",(char *) "nOldSel", NULL | |
20576 | }; | |
20577 | ||
20578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20580 | if (!SWIG_IsOK(res1)) { | |
20581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'"); | |
20582 | } | |
20583 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20584 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20585 | if (!SWIG_IsOK(ecode2)) { | |
20586 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'"); | |
20587 | } | |
20588 | arg2 = static_cast< int >(val2); | |
20589 | { | |
20590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20591 | (arg1)->SetOldSelection(arg2); | |
20592 | wxPyEndAllowThreads(__tstate); | |
20593 | if (PyErr_Occurred()) SWIG_fail; | |
20594 | } | |
20595 | resultobj = SWIG_Py_Void(); | |
20596 | return resultobj; | |
20597 | fail: | |
20598 | return NULL; | |
20599 | } | |
20600 | ||
20601 | ||
20602 | SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20603 | PyObject *obj; | |
20604 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20605 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj)); | |
20606 | return SWIG_Py_Void(); | |
20607 | } | |
20608 | ||
20609 | SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20610 | return SWIG_Python_InitShadowInstance(args); | |
20611 | } | |
20612 | ||
20613 | SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20614 | PyObject *resultobj = 0; | |
20615 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20616 | int arg2 = (int) -1 ; | |
20617 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20618 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20619 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20620 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20621 | long arg5 = (long) 0 ; | |
20622 | wxString const &arg6_defvalue = wxPyNotebookNameStr ; | |
20623 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20624 | wxNotebook *result = 0 ; | |
20625 | void *argp1 = 0 ; | |
20626 | int res1 = 0 ; | |
20627 | int val2 ; | |
20628 | int ecode2 = 0 ; | |
20629 | wxPoint temp3 ; | |
20630 | wxSize temp4 ; | |
20631 | long val5 ; | |
20632 | int ecode5 = 0 ; | |
20633 | bool temp6 = false ; | |
20634 | PyObject * obj0 = 0 ; | |
20635 | PyObject * obj1 = 0 ; | |
20636 | PyObject * obj2 = 0 ; | |
20637 | PyObject * obj3 = 0 ; | |
20638 | PyObject * obj4 = 0 ; | |
20639 | PyObject * obj5 = 0 ; | |
20640 | char * kwnames[] = { | |
20641 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20642 | }; | |
20643 | ||
20644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20646 | if (!SWIG_IsOK(res1)) { | |
20647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20648 | } | |
20649 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20650 | if (obj1) { | |
20651 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20652 | if (!SWIG_IsOK(ecode2)) { | |
20653 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'"); | |
20654 | } | |
20655 | arg2 = static_cast< int >(val2); | |
20656 | } | |
20657 | if (obj2) { | |
20658 | { | |
20659 | arg3 = &temp3; | |
20660 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 20661 | } |
1bd55598 RD |
20662 | } |
20663 | if (obj3) { | |
d55e5bfc | 20664 | { |
1bd55598 RD |
20665 | arg4 = &temp4; |
20666 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 20667 | } |
1bd55598 RD |
20668 | } |
20669 | if (obj4) { | |
20670 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
20671 | if (!SWIG_IsOK(ecode5)) { | |
20672 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'"); | |
20673 | } | |
20674 | arg5 = static_cast< long >(val5); | |
20675 | } | |
20676 | if (obj5) { | |
d55e5bfc | 20677 | { |
1bd55598 RD |
20678 | arg6 = wxString_in_helper(obj5); |
20679 | if (arg6 == NULL) SWIG_fail; | |
20680 | temp6 = true; | |
d55e5bfc | 20681 | } |
1bd55598 RD |
20682 | } |
20683 | { | |
20684 | if (!wxPyCheckForApp()) SWIG_fail; | |
20685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20686 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20687 | wxPyEndAllowThreads(__tstate); | |
20688 | if (PyErr_Occurred()) SWIG_fail; | |
20689 | } | |
20690 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 ); | |
20691 | { | |
20692 | if (temp6) | |
20693 | delete arg6; | |
20694 | } | |
20695 | return resultobj; | |
20696 | fail: | |
20697 | { | |
20698 | if (temp6) | |
20699 | delete arg6; | |
20700 | } | |
20701 | return NULL; | |
20702 | } | |
20703 | ||
20704 | ||
20705 | SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20706 | PyObject *resultobj = 0; | |
20707 | wxNotebook *result = 0 ; | |
20708 | ||
20709 | if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail; | |
20710 | { | |
20711 | if (!wxPyCheckForApp()) SWIG_fail; | |
20712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20713 | result = (wxNotebook *)new wxNotebook(); | |
20714 | wxPyEndAllowThreads(__tstate); | |
20715 | if (PyErr_Occurred()) SWIG_fail; | |
20716 | } | |
20717 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 ); | |
20718 | return resultobj; | |
20719 | fail: | |
20720 | return NULL; | |
20721 | } | |
20722 | ||
20723 | ||
20724 | SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20725 | PyObject *resultobj = 0; | |
20726 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20727 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20728 | int arg3 = (int) -1 ; | |
20729 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20730 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20731 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20732 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20733 | long arg6 = (long) 0 ; | |
20734 | wxString const &arg7_defvalue = wxPyNotebookNameStr ; | |
20735 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20736 | bool result; | |
20737 | void *argp1 = 0 ; | |
20738 | int res1 = 0 ; | |
20739 | void *argp2 = 0 ; | |
20740 | int res2 = 0 ; | |
20741 | int val3 ; | |
20742 | int ecode3 = 0 ; | |
20743 | wxPoint temp4 ; | |
20744 | wxSize temp5 ; | |
20745 | long val6 ; | |
20746 | int ecode6 = 0 ; | |
20747 | bool temp7 = false ; | |
20748 | PyObject * obj0 = 0 ; | |
20749 | PyObject * obj1 = 0 ; | |
20750 | PyObject * obj2 = 0 ; | |
20751 | PyObject * obj3 = 0 ; | |
20752 | PyObject * obj4 = 0 ; | |
20753 | PyObject * obj5 = 0 ; | |
20754 | PyObject * obj6 = 0 ; | |
20755 | char * kwnames[] = { | |
20756 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20757 | }; | |
20758 | ||
20759 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20760 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20761 | if (!SWIG_IsOK(res1)) { | |
20762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20763 | } | |
20764 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20765 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20766 | if (!SWIG_IsOK(res2)) { | |
20767 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20768 | } | |
20769 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20770 | if (obj2) { | |
20771 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20772 | if (!SWIG_IsOK(ecode3)) { | |
20773 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
20774 | } | |
20775 | arg3 = static_cast< int >(val3); | |
20776 | } | |
20777 | if (obj3) { | |
d55e5bfc | 20778 | { |
1bd55598 RD |
20779 | arg4 = &temp4; |
20780 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 20781 | } |
1bd55598 RD |
20782 | } |
20783 | if (obj4) { | |
d55e5bfc | 20784 | { |
1bd55598 RD |
20785 | arg5 = &temp5; |
20786 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 20787 | } |
1bd55598 RD |
20788 | } |
20789 | if (obj5) { | |
20790 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20791 | if (!SWIG_IsOK(ecode6)) { | |
20792 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
20793 | } | |
20794 | arg6 = static_cast< long >(val6); | |
20795 | } | |
20796 | if (obj6) { | |
d55e5bfc | 20797 | { |
1bd55598 RD |
20798 | arg7 = wxString_in_helper(obj6); |
20799 | if (arg7 == NULL) SWIG_fail; | |
20800 | temp7 = true; | |
d55e5bfc | 20801 | } |
1bd55598 RD |
20802 | } |
20803 | { | |
20804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20805 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20806 | wxPyEndAllowThreads(__tstate); | |
20807 | if (PyErr_Occurred()) SWIG_fail; | |
20808 | } | |
20809 | { | |
20810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20811 | } | |
20812 | { | |
20813 | if (temp7) | |
20814 | delete arg7; | |
20815 | } | |
20816 | return resultobj; | |
20817 | fail: | |
20818 | { | |
20819 | if (temp7) | |
20820 | delete arg7; | |
20821 | } | |
20822 | return NULL; | |
d55e5bfc RD |
20823 | } |
20824 | ||
20825 | ||
1bd55598 RD |
20826 | SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20827 | PyObject *resultobj = 0; | |
20828 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20829 | int result; | |
20830 | void *argp1 = 0 ; | |
20831 | int res1 = 0 ; | |
20832 | PyObject *swig_obj[1] ; | |
20833 | ||
20834 | if (!args) SWIG_fail; | |
20835 | swig_obj[0] = args; | |
20836 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20837 | if (!SWIG_IsOK(res1)) { | |
20838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'"); | |
20839 | } | |
20840 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20841 | { | |
20842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20843 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
20844 | wxPyEndAllowThreads(__tstate); | |
20845 | if (PyErr_Occurred()) SWIG_fail; | |
20846 | } | |
20847 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20848 | return resultobj; | |
20849 | fail: | |
20850 | return NULL; | |
20851 | } | |
20852 | ||
20853 | ||
20854 | SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20855 | PyObject *resultobj = 0; | |
20856 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20857 | wxSize *arg2 = 0 ; | |
20858 | void *argp1 = 0 ; | |
20859 | int res1 = 0 ; | |
20860 | wxSize temp2 ; | |
20861 | PyObject * obj0 = 0 ; | |
20862 | PyObject * obj1 = 0 ; | |
20863 | char * kwnames[] = { | |
20864 | (char *) "self",(char *) "padding", NULL | |
20865 | }; | |
20866 | ||
20867 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail; | |
20868 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20869 | if (!SWIG_IsOK(res1)) { | |
20870 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20871 | } | |
20872 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20873 | { | |
20874 | arg2 = &temp2; | |
20875 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20876 | } | |
20877 | { | |
20878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20879 | (arg1)->SetPadding((wxSize const &)*arg2); | |
20880 | wxPyEndAllowThreads(__tstate); | |
20881 | if (PyErr_Occurred()) SWIG_fail; | |
20882 | } | |
20883 | resultobj = SWIG_Py_Void(); | |
20884 | return resultobj; | |
20885 | fail: | |
20886 | return NULL; | |
20887 | } | |
20888 | ||
20889 | ||
20890 | SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20891 | PyObject *resultobj = 0; | |
20892 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20893 | wxSize *arg2 = 0 ; | |
20894 | void *argp1 = 0 ; | |
20895 | int res1 = 0 ; | |
20896 | wxSize temp2 ; | |
20897 | PyObject * obj0 = 0 ; | |
20898 | PyObject * obj1 = 0 ; | |
20899 | char * kwnames[] = { | |
20900 | (char *) "self",(char *) "sz", NULL | |
20901 | }; | |
20902 | ||
20903 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
20904 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20905 | if (!SWIG_IsOK(res1)) { | |
20906 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20907 | } | |
20908 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20909 | { | |
20910 | arg2 = &temp2; | |
20911 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20912 | } | |
20913 | { | |
20914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20915 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
20916 | wxPyEndAllowThreads(__tstate); | |
20917 | if (PyErr_Occurred()) SWIG_fail; | |
20918 | } | |
20919 | resultobj = SWIG_Py_Void(); | |
20920 | return resultobj; | |
20921 | fail: | |
20922 | return NULL; | |
20923 | } | |
20924 | ||
20925 | ||
1bd55598 RD |
20926 | SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20927 | PyObject *resultobj = 0; | |
20928 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20929 | wxColour result; | |
20930 | void *argp1 = 0 ; | |
20931 | int res1 = 0 ; | |
20932 | PyObject *swig_obj[1] ; | |
20933 | ||
20934 | if (!args) SWIG_fail; | |
20935 | swig_obj[0] = args; | |
20936 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20937 | if (!SWIG_IsOK(res1)) { | |
20938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'"); | |
20939 | } | |
20940 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20941 | { | |
20942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20943 | result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour(); | |
20944 | wxPyEndAllowThreads(__tstate); | |
20945 | if (PyErr_Occurred()) SWIG_fail; | |
20946 | } | |
20947 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
20948 | return resultobj; | |
20949 | fail: | |
20950 | return NULL; | |
20951 | } | |
20952 | ||
20953 | ||
20954 | SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20955 | PyObject *resultobj = 0; | |
20956 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
20957 | SwigValueWrapper<wxVisualAttributes > result; | |
20958 | int val1 ; | |
20959 | int ecode1 = 0 ; | |
20960 | PyObject * obj0 = 0 ; | |
20961 | char * kwnames[] = { | |
20962 | (char *) "variant", NULL | |
20963 | }; | |
20964 | ||
20965 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
20966 | if (obj0) { | |
20967 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20968 | if (!SWIG_IsOK(ecode1)) { | |
20969 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
20970 | } | |
20971 | arg1 = static_cast< wxWindowVariant >(val1); | |
20972 | } | |
20973 | { | |
20974 | if (!wxPyCheckForApp()) SWIG_fail; | |
20975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20976 | result = wxNotebook::GetClassDefaultAttributes(arg1); | |
20977 | wxPyEndAllowThreads(__tstate); | |
20978 | if (PyErr_Occurred()) SWIG_fail; | |
20979 | } | |
20980 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
20981 | return resultobj; | |
20982 | fail: | |
20983 | return NULL; | |
20984 | } | |
20985 | ||
20986 | ||
b39fe951 RD |
20987 | SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20988 | PyObject *resultobj = 0; | |
20989 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20990 | int arg2 ; | |
20991 | bool result; | |
20992 | void *argp1 = 0 ; | |
20993 | int res1 = 0 ; | |
20994 | int val2 ; | |
20995 | int ecode2 = 0 ; | |
20996 | PyObject * obj0 = 0 ; | |
20997 | PyObject * obj1 = 0 ; | |
20998 | char * kwnames[] = { | |
20999 | (char *) "self",(char *) "nPage", NULL | |
21000 | }; | |
21001 | ||
21002 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
21003 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
21004 | if (!SWIG_IsOK(res1)) { | |
21005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
21006 | } | |
21007 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
21008 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21009 | if (!SWIG_IsOK(ecode2)) { | |
21010 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'"); | |
21011 | } | |
21012 | arg2 = static_cast< int >(val2); | |
21013 | { | |
21014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21015 | result = (bool)(arg1)->SendPageChangingEvent(arg2); | |
21016 | wxPyEndAllowThreads(__tstate); | |
21017 | if (PyErr_Occurred()) SWIG_fail; | |
21018 | } | |
21019 | { | |
21020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21021 | } | |
21022 | return resultobj; | |
21023 | fail: | |
21024 | return NULL; | |
21025 | } | |
21026 | ||
21027 | ||
21028 | SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21029 | PyObject *resultobj = 0; | |
21030 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
21031 | int arg2 ; | |
21032 | int arg3 = (int) -1 ; | |
21033 | void *argp1 = 0 ; | |
21034 | int res1 = 0 ; | |
21035 | int val2 ; | |
21036 | int ecode2 = 0 ; | |
21037 | int val3 ; | |
21038 | int ecode3 = 0 ; | |
21039 | PyObject * obj0 = 0 ; | |
21040 | PyObject * obj1 = 0 ; | |
21041 | PyObject * obj2 = 0 ; | |
21042 | char * kwnames[] = { | |
21043 | (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL | |
21044 | }; | |
21045 | ||
21046 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21047 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
21048 | if (!SWIG_IsOK(res1)) { | |
21049 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
21050 | } | |
21051 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
21052 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21053 | if (!SWIG_IsOK(ecode2)) { | |
21054 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'"); | |
21055 | } | |
21056 | arg2 = static_cast< int >(val2); | |
21057 | if (obj2) { | |
21058 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21059 | if (!SWIG_IsOK(ecode3)) { | |
21060 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'"); | |
21061 | } | |
21062 | arg3 = static_cast< int >(val3); | |
21063 | } | |
21064 | { | |
21065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21066 | (arg1)->SendPageChangedEvent(arg2,arg3); | |
21067 | wxPyEndAllowThreads(__tstate); | |
21068 | if (PyErr_Occurred()) SWIG_fail; | |
21069 | } | |
21070 | resultobj = SWIG_Py_Void(); | |
21071 | return resultobj; | |
21072 | fail: | |
21073 | return NULL; | |
21074 | } | |
21075 | ||
21076 | ||
1bd55598 RD |
21077 | SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21078 | PyObject *obj; | |
21079 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21080 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj)); | |
21081 | return SWIG_Py_Void(); | |
21082 | } | |
21083 | ||
21084 | SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21085 | return SWIG_Python_InitShadowInstance(args); | |
21086 | } | |
21087 | ||
21088 | SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21089 | PyObject *resultobj = 0; | |
21090 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21091 | int arg2 = (int) 0 ; | |
21092 | int arg3 = (int) -1 ; | |
21093 | int arg4 = (int) -1 ; | |
21094 | wxNotebookEvent *result = 0 ; | |
21095 | int val1 ; | |
21096 | int ecode1 = 0 ; | |
21097 | int val2 ; | |
21098 | int ecode2 = 0 ; | |
21099 | int val3 ; | |
21100 | int ecode3 = 0 ; | |
21101 | int val4 ; | |
21102 | int ecode4 = 0 ; | |
21103 | PyObject * obj0 = 0 ; | |
21104 | PyObject * obj1 = 0 ; | |
21105 | PyObject * obj2 = 0 ; | |
21106 | PyObject * obj3 = 0 ; | |
21107 | char * kwnames[] = { | |
21108 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21109 | }; | |
21110 | ||
21111 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21112 | if (obj0) { | |
21113 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21114 | if (!SWIG_IsOK(ecode1)) { | |
21115 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21116 | } | |
21117 | arg1 = static_cast< wxEventType >(val1); | |
21118 | } | |
21119 | if (obj1) { | |
21120 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21121 | if (!SWIG_IsOK(ecode2)) { | |
21122 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21123 | } | |
21124 | arg2 = static_cast< int >(val2); | |
21125 | } | |
21126 | if (obj2) { | |
21127 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21128 | if (!SWIG_IsOK(ecode3)) { | |
21129 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21130 | } | |
21131 | arg3 = static_cast< int >(val3); | |
21132 | } | |
21133 | if (obj3) { | |
21134 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21135 | if (!SWIG_IsOK(ecode4)) { | |
21136 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21137 | } | |
21138 | arg4 = static_cast< int >(val4); | |
21139 | } | |
21140 | { | |
21141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21142 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
21143 | wxPyEndAllowThreads(__tstate); | |
21144 | if (PyErr_Occurred()) SWIG_fail; | |
21145 | } | |
21146 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 ); | |
21147 | return resultobj; | |
21148 | fail: | |
21149 | return NULL; | |
21150 | } | |
21151 | ||
21152 | ||
21153 | SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21154 | PyObject *obj; | |
21155 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21156 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj)); | |
21157 | return SWIG_Py_Void(); | |
21158 | } | |
21159 | ||
21160 | SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21161 | return SWIG_Python_InitShadowInstance(args); | |
21162 | } | |
21163 | ||
21164 | SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21165 | PyObject *resultobj = 0; | |
21166 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21167 | int arg2 = (int) -1 ; | |
21168 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21169 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21170 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21171 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21172 | long arg5 = (long) 0 ; | |
21173 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21174 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21175 | wxListbook *result = 0 ; | |
21176 | void *argp1 = 0 ; | |
21177 | int res1 = 0 ; | |
21178 | int val2 ; | |
21179 | int ecode2 = 0 ; | |
21180 | wxPoint temp3 ; | |
21181 | wxSize temp4 ; | |
21182 | long val5 ; | |
21183 | int ecode5 = 0 ; | |
21184 | bool temp6 = false ; | |
21185 | PyObject * obj0 = 0 ; | |
21186 | PyObject * obj1 = 0 ; | |
21187 | PyObject * obj2 = 0 ; | |
21188 | PyObject * obj3 = 0 ; | |
21189 | PyObject * obj4 = 0 ; | |
21190 | PyObject * obj5 = 0 ; | |
21191 | char * kwnames[] = { | |
21192 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21193 | }; | |
21194 | ||
21195 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21196 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21197 | if (!SWIG_IsOK(res1)) { | |
21198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21199 | } | |
21200 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21201 | if (obj1) { | |
21202 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21203 | if (!SWIG_IsOK(ecode2)) { | |
21204 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'"); | |
21205 | } | |
21206 | arg2 = static_cast< int >(val2); | |
21207 | } | |
21208 | if (obj2) { | |
d55e5bfc | 21209 | { |
1bd55598 RD |
21210 | arg3 = &temp3; |
21211 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 21212 | } |
1bd55598 RD |
21213 | } |
21214 | if (obj3) { | |
d55e5bfc | 21215 | { |
1bd55598 RD |
21216 | arg4 = &temp4; |
21217 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 21218 | } |
1bd55598 RD |
21219 | } |
21220 | if (obj4) { | |
21221 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21222 | if (!SWIG_IsOK(ecode5)) { | |
21223 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'"); | |
21224 | } | |
21225 | arg5 = static_cast< long >(val5); | |
21226 | } | |
21227 | if (obj5) { | |
d55e5bfc | 21228 | { |
1bd55598 RD |
21229 | arg6 = wxString_in_helper(obj5); |
21230 | if (arg6 == NULL) SWIG_fail; | |
21231 | temp6 = true; | |
d55e5bfc | 21232 | } |
1bd55598 RD |
21233 | } |
21234 | { | |
21235 | if (!wxPyCheckForApp()) SWIG_fail; | |
21236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21237 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21238 | wxPyEndAllowThreads(__tstate); | |
21239 | if (PyErr_Occurred()) SWIG_fail; | |
21240 | } | |
21241 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 ); | |
21242 | { | |
21243 | if (temp6) | |
21244 | delete arg6; | |
21245 | } | |
21246 | return resultobj; | |
21247 | fail: | |
21248 | { | |
21249 | if (temp6) | |
21250 | delete arg6; | |
21251 | } | |
21252 | return NULL; | |
21253 | } | |
21254 | ||
21255 | ||
21256 | SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21257 | PyObject *resultobj = 0; | |
21258 | wxListbook *result = 0 ; | |
21259 | ||
21260 | if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail; | |
21261 | { | |
21262 | if (!wxPyCheckForApp()) SWIG_fail; | |
21263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21264 | result = (wxListbook *)new wxListbook(); | |
21265 | wxPyEndAllowThreads(__tstate); | |
21266 | if (PyErr_Occurred()) SWIG_fail; | |
21267 | } | |
21268 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 ); | |
21269 | return resultobj; | |
21270 | fail: | |
21271 | return NULL; | |
21272 | } | |
21273 | ||
21274 | ||
21275 | SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21276 | PyObject *resultobj = 0; | |
21277 | wxListbook *arg1 = (wxListbook *) 0 ; | |
21278 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21279 | int arg3 = (int) -1 ; | |
21280 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21281 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21282 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21283 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21284 | long arg6 = (long) 0 ; | |
21285 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
21286 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21287 | bool result; | |
21288 | void *argp1 = 0 ; | |
21289 | int res1 = 0 ; | |
21290 | void *argp2 = 0 ; | |
21291 | int res2 = 0 ; | |
21292 | int val3 ; | |
21293 | int ecode3 = 0 ; | |
21294 | wxPoint temp4 ; | |
21295 | wxSize temp5 ; | |
21296 | long val6 ; | |
21297 | int ecode6 = 0 ; | |
21298 | bool temp7 = false ; | |
21299 | PyObject * obj0 = 0 ; | |
21300 | PyObject * obj1 = 0 ; | |
21301 | PyObject * obj2 = 0 ; | |
21302 | PyObject * obj3 = 0 ; | |
21303 | PyObject * obj4 = 0 ; | |
21304 | PyObject * obj5 = 0 ; | |
21305 | PyObject * obj6 = 0 ; | |
21306 | char * kwnames[] = { | |
21307 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21308 | }; | |
21309 | ||
21310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 ); | |
21312 | if (!SWIG_IsOK(res1)) { | |
21313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'"); | |
21314 | } | |
21315 | arg1 = reinterpret_cast< wxListbook * >(argp1); | |
21316 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21317 | if (!SWIG_IsOK(res2)) { | |
21318 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21319 | } | |
21320 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21321 | if (obj2) { | |
21322 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21323 | if (!SWIG_IsOK(ecode3)) { | |
21324 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'"); | |
21325 | } | |
21326 | arg3 = static_cast< int >(val3); | |
21327 | } | |
21328 | if (obj3) { | |
d55e5bfc | 21329 | { |
1bd55598 RD |
21330 | arg4 = &temp4; |
21331 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 21332 | } |
1bd55598 RD |
21333 | } |
21334 | if (obj4) { | |
d55e5bfc | 21335 | { |
1bd55598 RD |
21336 | arg5 = &temp5; |
21337 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 21338 | } |
1bd55598 RD |
21339 | } |
21340 | if (obj5) { | |
21341 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21342 | if (!SWIG_IsOK(ecode6)) { | |
21343 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'"); | |
21344 | } | |
21345 | arg6 = static_cast< long >(val6); | |
21346 | } | |
21347 | if (obj6) { | |
d55e5bfc | 21348 | { |
1bd55598 RD |
21349 | arg7 = wxString_in_helper(obj6); |
21350 | if (arg7 == NULL) SWIG_fail; | |
21351 | temp7 = true; | |
d55e5bfc | 21352 | } |
1bd55598 RD |
21353 | } |
21354 | { | |
21355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21356 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21357 | wxPyEndAllowThreads(__tstate); | |
21358 | if (PyErr_Occurred()) SWIG_fail; | |
21359 | } | |
21360 | { | |
21361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21362 | } | |
21363 | { | |
21364 | if (temp7) | |
21365 | delete arg7; | |
21366 | } | |
21367 | return resultobj; | |
21368 | fail: | |
21369 | { | |
21370 | if (temp7) | |
21371 | delete arg7; | |
21372 | } | |
21373 | return NULL; | |
d55e5bfc RD |
21374 | } |
21375 | ||
21376 | ||
1bd55598 RD |
21377 | SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21378 | PyObject *resultobj = 0; | |
21379 | wxListbook *arg1 = (wxListbook *) 0 ; | |
21380 | wxListView *result = 0 ; | |
21381 | void *argp1 = 0 ; | |
21382 | int res1 = 0 ; | |
21383 | PyObject *swig_obj[1] ; | |
21384 | ||
21385 | if (!args) SWIG_fail; | |
21386 | swig_obj[0] = args; | |
21387 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 ); | |
21388 | if (!SWIG_IsOK(res1)) { | |
21389 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'"); | |
21390 | } | |
21391 | arg1 = reinterpret_cast< wxListbook * >(argp1); | |
21392 | { | |
21393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21394 | result = (wxListView *)(arg1)->GetListView(); | |
21395 | wxPyEndAllowThreads(__tstate); | |
21396 | if (PyErr_Occurred()) SWIG_fail; | |
21397 | } | |
21398 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 ); | |
21399 | return resultobj; | |
21400 | fail: | |
21401 | return NULL; | |
21402 | } | |
21403 | ||
21404 | ||
21405 | SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21406 | PyObject *obj; | |
21407 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21408 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj)); | |
21409 | return SWIG_Py_Void(); | |
21410 | } | |
21411 | ||
21412 | SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21413 | return SWIG_Python_InitShadowInstance(args); | |
21414 | } | |
21415 | ||
21416 | SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21417 | PyObject *resultobj = 0; | |
21418 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21419 | int arg2 = (int) 0 ; | |
21420 | int arg3 = (int) -1 ; | |
21421 | int arg4 = (int) -1 ; | |
21422 | wxListbookEvent *result = 0 ; | |
21423 | int val1 ; | |
21424 | int ecode1 = 0 ; | |
21425 | int val2 ; | |
21426 | int ecode2 = 0 ; | |
21427 | int val3 ; | |
21428 | int ecode3 = 0 ; | |
21429 | int val4 ; | |
21430 | int ecode4 = 0 ; | |
21431 | PyObject * obj0 = 0 ; | |
21432 | PyObject * obj1 = 0 ; | |
21433 | PyObject * obj2 = 0 ; | |
21434 | PyObject * obj3 = 0 ; | |
21435 | char * kwnames[] = { | |
21436 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21437 | }; | |
21438 | ||
21439 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21440 | if (obj0) { | |
21441 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21442 | if (!SWIG_IsOK(ecode1)) { | |
21443 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21444 | } | |
21445 | arg1 = static_cast< wxEventType >(val1); | |
21446 | } | |
21447 | if (obj1) { | |
21448 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21449 | if (!SWIG_IsOK(ecode2)) { | |
21450 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21451 | } | |
21452 | arg2 = static_cast< int >(val2); | |
21453 | } | |
21454 | if (obj2) { | |
21455 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21456 | if (!SWIG_IsOK(ecode3)) { | |
21457 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21458 | } | |
21459 | arg3 = static_cast< int >(val3); | |
21460 | } | |
21461 | if (obj3) { | |
21462 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21463 | if (!SWIG_IsOK(ecode4)) { | |
21464 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21465 | } | |
21466 | arg4 = static_cast< int >(val4); | |
21467 | } | |
21468 | { | |
21469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21470 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
21471 | wxPyEndAllowThreads(__tstate); | |
21472 | if (PyErr_Occurred()) SWIG_fail; | |
21473 | } | |
21474 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 ); | |
21475 | return resultobj; | |
21476 | fail: | |
21477 | return NULL; | |
21478 | } | |
21479 | ||
21480 | ||
21481 | SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21482 | PyObject *obj; | |
21483 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21484 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj)); | |
21485 | return SWIG_Py_Void(); | |
21486 | } | |
21487 | ||
21488 | SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21489 | return SWIG_Python_InitShadowInstance(args); | |
21490 | } | |
21491 | ||
21492 | SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21493 | PyObject *resultobj = 0; | |
21494 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21495 | int arg2 ; | |
21496 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21497 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21498 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21499 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21500 | long arg5 = (long) 0 ; | |
21501 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21502 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21503 | wxChoicebook *result = 0 ; | |
21504 | void *argp1 = 0 ; | |
21505 | int res1 = 0 ; | |
21506 | int val2 ; | |
21507 | int ecode2 = 0 ; | |
21508 | wxPoint temp3 ; | |
21509 | wxSize temp4 ; | |
21510 | long val5 ; | |
21511 | int ecode5 = 0 ; | |
21512 | bool temp6 = false ; | |
21513 | PyObject * obj0 = 0 ; | |
21514 | PyObject * obj1 = 0 ; | |
21515 | PyObject * obj2 = 0 ; | |
21516 | PyObject * obj3 = 0 ; | |
21517 | PyObject * obj4 = 0 ; | |
21518 | PyObject * obj5 = 0 ; | |
21519 | char * kwnames[] = { | |
21520 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21521 | }; | |
21522 | ||
21523 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21524 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21525 | if (!SWIG_IsOK(res1)) { | |
21526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21527 | } | |
21528 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21529 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21530 | if (!SWIG_IsOK(ecode2)) { | |
21531 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'"); | |
21532 | } | |
21533 | arg2 = static_cast< int >(val2); | |
21534 | if (obj2) { | |
36ed4f51 | 21535 | { |
1bd55598 RD |
21536 | arg3 = &temp3; |
21537 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 21538 | } |
1bd55598 RD |
21539 | } |
21540 | if (obj3) { | |
36ed4f51 | 21541 | { |
1bd55598 RD |
21542 | arg4 = &temp4; |
21543 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 21544 | } |
1bd55598 RD |
21545 | } |
21546 | if (obj4) { | |
21547 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21548 | if (!SWIG_IsOK(ecode5)) { | |
21549 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'"); | |
21550 | } | |
21551 | arg5 = static_cast< long >(val5); | |
21552 | } | |
21553 | if (obj5) { | |
d55e5bfc | 21554 | { |
1bd55598 RD |
21555 | arg6 = wxString_in_helper(obj5); |
21556 | if (arg6 == NULL) SWIG_fail; | |
21557 | temp6 = true; | |
d55e5bfc | 21558 | } |
1bd55598 RD |
21559 | } |
21560 | { | |
21561 | if (!wxPyCheckForApp()) SWIG_fail; | |
21562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21563 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21564 | wxPyEndAllowThreads(__tstate); | |
21565 | if (PyErr_Occurred()) SWIG_fail; | |
21566 | } | |
21567 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 ); | |
21568 | { | |
21569 | if (temp6) | |
21570 | delete arg6; | |
21571 | } | |
21572 | return resultobj; | |
21573 | fail: | |
21574 | { | |
21575 | if (temp6) | |
21576 | delete arg6; | |
21577 | } | |
21578 | return NULL; | |
d55e5bfc RD |
21579 | } |
21580 | ||
21581 | ||
1bd55598 RD |
21582 | SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21583 | PyObject *resultobj = 0; | |
21584 | wxChoicebook *result = 0 ; | |
21585 | ||
21586 | if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail; | |
21587 | { | |
21588 | if (!wxPyCheckForApp()) SWIG_fail; | |
21589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21590 | result = (wxChoicebook *)new wxChoicebook(); | |
21591 | wxPyEndAllowThreads(__tstate); | |
21592 | if (PyErr_Occurred()) SWIG_fail; | |
21593 | } | |
21594 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 ); | |
21595 | return resultobj; | |
21596 | fail: | |
21597 | return NULL; | |
21598 | } | |
21599 | ||
21600 | ||
21601 | SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21602 | PyObject *resultobj = 0; | |
21603 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
21604 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21605 | int arg3 ; | |
21606 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21607 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21608 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21609 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21610 | long arg6 = (long) 0 ; | |
21611 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
21612 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21613 | bool result; | |
21614 | void *argp1 = 0 ; | |
21615 | int res1 = 0 ; | |
21616 | void *argp2 = 0 ; | |
21617 | int res2 = 0 ; | |
21618 | int val3 ; | |
21619 | int ecode3 = 0 ; | |
21620 | wxPoint temp4 ; | |
21621 | wxSize temp5 ; | |
21622 | long val6 ; | |
21623 | int ecode6 = 0 ; | |
21624 | bool temp7 = false ; | |
21625 | PyObject * obj0 = 0 ; | |
21626 | PyObject * obj1 = 0 ; | |
21627 | PyObject * obj2 = 0 ; | |
21628 | PyObject * obj3 = 0 ; | |
21629 | PyObject * obj4 = 0 ; | |
21630 | PyObject * obj5 = 0 ; | |
21631 | PyObject * obj6 = 0 ; | |
21632 | char * kwnames[] = { | |
21633 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21634 | }; | |
21635 | ||
21636 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21637 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 ); | |
21638 | if (!SWIG_IsOK(res1)) { | |
21639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'"); | |
21640 | } | |
21641 | arg1 = reinterpret_cast< wxChoicebook * >(argp1); | |
21642 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21643 | if (!SWIG_IsOK(res2)) { | |
21644 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21645 | } | |
21646 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21647 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21648 | if (!SWIG_IsOK(ecode3)) { | |
21649 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
21650 | } | |
21651 | arg3 = static_cast< int >(val3); | |
21652 | if (obj3) { | |
d55e5bfc | 21653 | { |
1bd55598 RD |
21654 | arg4 = &temp4; |
21655 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 21656 | } |
1bd55598 RD |
21657 | } |
21658 | if (obj4) { | |
d55e5bfc | 21659 | { |
1bd55598 RD |
21660 | arg5 = &temp5; |
21661 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 21662 | } |
1bd55598 RD |
21663 | } |
21664 | if (obj5) { | |
21665 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21666 | if (!SWIG_IsOK(ecode6)) { | |
21667 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
21668 | } | |
21669 | arg6 = static_cast< long >(val6); | |
21670 | } | |
21671 | if (obj6) { | |
d55e5bfc | 21672 | { |
1bd55598 RD |
21673 | arg7 = wxString_in_helper(obj6); |
21674 | if (arg7 == NULL) SWIG_fail; | |
21675 | temp7 = true; | |
d55e5bfc | 21676 | } |
1bd55598 RD |
21677 | } |
21678 | { | |
21679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21680 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21681 | wxPyEndAllowThreads(__tstate); | |
21682 | if (PyErr_Occurred()) SWIG_fail; | |
21683 | } | |
21684 | { | |
21685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21686 | } | |
21687 | { | |
21688 | if (temp7) | |
21689 | delete arg7; | |
21690 | } | |
21691 | return resultobj; | |
21692 | fail: | |
21693 | { | |
21694 | if (temp7) | |
21695 | delete arg7; | |
21696 | } | |
21697 | return NULL; | |
d55e5bfc RD |
21698 | } |
21699 | ||
21700 | ||
1bd55598 RD |
21701 | SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21702 | PyObject *resultobj = 0; | |
21703 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
21704 | wxChoice *result = 0 ; | |
21705 | void *argp1 = 0 ; | |
21706 | int res1 = 0 ; | |
21707 | PyObject *swig_obj[1] ; | |
21708 | ||
21709 | if (!args) SWIG_fail; | |
21710 | swig_obj[0] = args; | |
21711 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 ); | |
21712 | if (!SWIG_IsOK(res1)) { | |
21713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'"); | |
21714 | } | |
21715 | arg1 = reinterpret_cast< wxChoicebook * >(argp1); | |
21716 | { | |
21717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21718 | result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl(); | |
21719 | wxPyEndAllowThreads(__tstate); | |
21720 | if (PyErr_Occurred()) SWIG_fail; | |
21721 | } | |
21722 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 ); | |
21723 | return resultobj; | |
21724 | fail: | |
21725 | return NULL; | |
21726 | } | |
21727 | ||
21728 | ||
21729 | SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21730 | PyObject *obj; | |
21731 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21732 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj)); | |
21733 | return SWIG_Py_Void(); | |
21734 | } | |
21735 | ||
21736 | SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21737 | return SWIG_Python_InitShadowInstance(args); | |
21738 | } | |
21739 | ||
21740 | SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21741 | PyObject *resultobj = 0; | |
21742 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21743 | int arg2 = (int) 0 ; | |
21744 | int arg3 = (int) -1 ; | |
21745 | int arg4 = (int) -1 ; | |
21746 | wxChoicebookEvent *result = 0 ; | |
21747 | int val1 ; | |
21748 | int ecode1 = 0 ; | |
21749 | int val2 ; | |
21750 | int ecode2 = 0 ; | |
21751 | int val3 ; | |
21752 | int ecode3 = 0 ; | |
21753 | int val4 ; | |
21754 | int ecode4 = 0 ; | |
21755 | PyObject * obj0 = 0 ; | |
21756 | PyObject * obj1 = 0 ; | |
21757 | PyObject * obj2 = 0 ; | |
21758 | PyObject * obj3 = 0 ; | |
21759 | char * kwnames[] = { | |
21760 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21761 | }; | |
21762 | ||
21763 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21764 | if (obj0) { | |
21765 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21766 | if (!SWIG_IsOK(ecode1)) { | |
21767 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21768 | } | |
21769 | arg1 = static_cast< wxEventType >(val1); | |
21770 | } | |
21771 | if (obj1) { | |
21772 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21773 | if (!SWIG_IsOK(ecode2)) { | |
21774 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21775 | } | |
21776 | arg2 = static_cast< int >(val2); | |
21777 | } | |
21778 | if (obj2) { | |
21779 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21780 | if (!SWIG_IsOK(ecode3)) { | |
21781 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21782 | } | |
21783 | arg3 = static_cast< int >(val3); | |
21784 | } | |
21785 | if (obj3) { | |
21786 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21787 | if (!SWIG_IsOK(ecode4)) { | |
21788 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21789 | } | |
21790 | arg4 = static_cast< int >(val4); | |
21791 | } | |
21792 | { | |
21793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21794 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
21795 | wxPyEndAllowThreads(__tstate); | |
21796 | if (PyErr_Occurred()) SWIG_fail; | |
21797 | } | |
21798 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 ); | |
21799 | return resultobj; | |
21800 | fail: | |
21801 | return NULL; | |
21802 | } | |
21803 | ||
21804 | ||
21805 | SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21806 | PyObject *obj; | |
21807 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21808 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj)); | |
21809 | return SWIG_Py_Void(); | |
21810 | } | |
21811 | ||
21812 | SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21813 | return SWIG_Python_InitShadowInstance(args); | |
21814 | } | |
21815 | ||
21816 | SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21817 | PyObject *resultobj = 0; | |
21818 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21819 | int arg2 ; | |
21820 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21821 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21822 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21823 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21824 | long arg5 = (long) wxBK_DEFAULT ; | |
21825 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21826 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21827 | wxTreebook *result = 0 ; | |
21828 | void *argp1 = 0 ; | |
21829 | int res1 = 0 ; | |
21830 | int val2 ; | |
21831 | int ecode2 = 0 ; | |
21832 | wxPoint temp3 ; | |
21833 | wxSize temp4 ; | |
21834 | long val5 ; | |
21835 | int ecode5 = 0 ; | |
21836 | bool temp6 = false ; | |
21837 | PyObject * obj0 = 0 ; | |
21838 | PyObject * obj1 = 0 ; | |
21839 | PyObject * obj2 = 0 ; | |
21840 | PyObject * obj3 = 0 ; | |
21841 | PyObject * obj4 = 0 ; | |
21842 | PyObject * obj5 = 0 ; | |
21843 | char * kwnames[] = { | |
21844 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21845 | }; | |
21846 | ||
21847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21849 | if (!SWIG_IsOK(res1)) { | |
21850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21851 | } | |
21852 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21853 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21854 | if (!SWIG_IsOK(ecode2)) { | |
21855 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'"); | |
21856 | } | |
21857 | arg2 = static_cast< int >(val2); | |
21858 | if (obj2) { | |
36ed4f51 | 21859 | { |
1bd55598 RD |
21860 | arg3 = &temp3; |
21861 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 21862 | } |
1bd55598 RD |
21863 | } |
21864 | if (obj3) { | |
36ed4f51 | 21865 | { |
1bd55598 RD |
21866 | arg4 = &temp4; |
21867 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 21868 | } |
1bd55598 RD |
21869 | } |
21870 | if (obj4) { | |
21871 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21872 | if (!SWIG_IsOK(ecode5)) { | |
21873 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'"); | |
21874 | } | |
21875 | arg5 = static_cast< long >(val5); | |
21876 | } | |
21877 | if (obj5) { | |
d55e5bfc | 21878 | { |
1bd55598 RD |
21879 | arg6 = wxString_in_helper(obj5); |
21880 | if (arg6 == NULL) SWIG_fail; | |
21881 | temp6 = true; | |
d55e5bfc | 21882 | } |
1bd55598 RD |
21883 | } |
21884 | { | |
21885 | if (!wxPyCheckForApp()) SWIG_fail; | |
21886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21887 | result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21888 | wxPyEndAllowThreads(__tstate); | |
21889 | if (PyErr_Occurred()) SWIG_fail; | |
21890 | } | |
21891 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 ); | |
21892 | { | |
21893 | if (temp6) | |
21894 | delete arg6; | |
21895 | } | |
21896 | return resultobj; | |
21897 | fail: | |
21898 | { | |
21899 | if (temp6) | |
21900 | delete arg6; | |
21901 | } | |
21902 | return NULL; | |
d55e5bfc RD |
21903 | } |
21904 | ||
21905 | ||
1bd55598 RD |
21906 | SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21907 | PyObject *resultobj = 0; | |
21908 | wxTreebook *result = 0 ; | |
21909 | ||
21910 | if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail; | |
21911 | { | |
21912 | if (!wxPyCheckForApp()) SWIG_fail; | |
21913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21914 | result = (wxTreebook *)new wxTreebook(); | |
21915 | wxPyEndAllowThreads(__tstate); | |
21916 | if (PyErr_Occurred()) SWIG_fail; | |
21917 | } | |
21918 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 ); | |
21919 | return resultobj; | |
21920 | fail: | |
21921 | return NULL; | |
21922 | } | |
21923 | ||
21924 | ||
21925 | SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21926 | PyObject *resultobj = 0; | |
21927 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21928 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21929 | int arg3 ; | |
21930 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21931 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21932 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21933 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21934 | long arg6 = (long) wxBK_DEFAULT ; | |
21935 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
21936 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21937 | bool result; | |
21938 | void *argp1 = 0 ; | |
21939 | int res1 = 0 ; | |
21940 | void *argp2 = 0 ; | |
21941 | int res2 = 0 ; | |
21942 | int val3 ; | |
21943 | int ecode3 = 0 ; | |
21944 | wxPoint temp4 ; | |
21945 | wxSize temp5 ; | |
21946 | long val6 ; | |
21947 | int ecode6 = 0 ; | |
21948 | bool temp7 = false ; | |
21949 | PyObject * obj0 = 0 ; | |
21950 | PyObject * obj1 = 0 ; | |
21951 | PyObject * obj2 = 0 ; | |
21952 | PyObject * obj3 = 0 ; | |
21953 | PyObject * obj4 = 0 ; | |
21954 | PyObject * obj5 = 0 ; | |
21955 | PyObject * obj6 = 0 ; | |
21956 | char * kwnames[] = { | |
21957 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21958 | }; | |
21959 | ||
21960 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21961 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21962 | if (!SWIG_IsOK(res1)) { | |
21963 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
21964 | } | |
21965 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21966 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21967 | if (!SWIG_IsOK(res2)) { | |
21968 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21969 | } | |
21970 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21971 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21972 | if (!SWIG_IsOK(ecode3)) { | |
21973 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
21974 | } | |
21975 | arg3 = static_cast< int >(val3); | |
21976 | if (obj3) { | |
36ed4f51 | 21977 | { |
1bd55598 RD |
21978 | arg4 = &temp4; |
21979 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 21980 | } |
1bd55598 RD |
21981 | } |
21982 | if (obj4) { | |
d55e5bfc | 21983 | { |
1bd55598 RD |
21984 | arg5 = &temp5; |
21985 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 21986 | } |
1bd55598 RD |
21987 | } |
21988 | if (obj5) { | |
21989 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21990 | if (!SWIG_IsOK(ecode6)) { | |
21991 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
21992 | } | |
21993 | arg6 = static_cast< long >(val6); | |
21994 | } | |
21995 | if (obj6) { | |
36ed4f51 | 21996 | { |
1bd55598 RD |
21997 | arg7 = wxString_in_helper(obj6); |
21998 | if (arg7 == NULL) SWIG_fail; | |
21999 | temp7 = true; | |
36ed4f51 | 22000 | } |
1bd55598 RD |
22001 | } |
22002 | { | |
22003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22004 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22005 | wxPyEndAllowThreads(__tstate); | |
22006 | if (PyErr_Occurred()) SWIG_fail; | |
22007 | } | |
22008 | { | |
22009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22010 | } | |
22011 | { | |
22012 | if (temp7) | |
22013 | delete arg7; | |
22014 | } | |
22015 | return resultobj; | |
22016 | fail: | |
22017 | { | |
22018 | if (temp7) | |
22019 | delete arg7; | |
22020 | } | |
22021 | return NULL; | |
22022 | } | |
22023 | ||
22024 | ||
22025 | SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22026 | PyObject *resultobj = 0; | |
22027 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22028 | size_t arg2 ; | |
22029 | wxWindow *arg3 = (wxWindow *) 0 ; | |
22030 | wxString *arg4 = 0 ; | |
22031 | bool arg5 = (bool) false ; | |
22032 | int arg6 = (int) wxNOT_FOUND ; | |
22033 | bool result; | |
22034 | void *argp1 = 0 ; | |
22035 | int res1 = 0 ; | |
22036 | size_t val2 ; | |
22037 | int ecode2 = 0 ; | |
22038 | void *argp3 = 0 ; | |
22039 | int res3 = 0 ; | |
22040 | bool temp4 = false ; | |
22041 | bool val5 ; | |
22042 | int ecode5 = 0 ; | |
22043 | int val6 ; | |
22044 | int ecode6 = 0 ; | |
22045 | PyObject * obj0 = 0 ; | |
22046 | PyObject * obj1 = 0 ; | |
22047 | PyObject * obj2 = 0 ; | |
22048 | PyObject * obj3 = 0 ; | |
22049 | PyObject * obj4 = 0 ; | |
22050 | PyObject * obj5 = 0 ; | |
22051 | char * kwnames[] = { | |
22052 | (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
22053 | }; | |
22054 | ||
22055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22057 | if (!SWIG_IsOK(res1)) { | |
22058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22059 | } | |
22060 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22061 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22062 | if (!SWIG_IsOK(ecode2)) { | |
22063 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'"); | |
22064 | } | |
22065 | arg2 = static_cast< size_t >(val2); | |
22066 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22067 | if (!SWIG_IsOK(res3)) { | |
22068 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
22069 | } | |
22070 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
22071 | { | |
22072 | arg4 = wxString_in_helper(obj3); | |
22073 | if (arg4 == NULL) SWIG_fail; | |
22074 | temp4 = true; | |
22075 | } | |
22076 | if (obj4) { | |
22077 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
22078 | if (!SWIG_IsOK(ecode5)) { | |
22079 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'"); | |
22080 | } | |
22081 | arg5 = static_cast< bool >(val5); | |
22082 | } | |
22083 | if (obj5) { | |
22084 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22085 | if (!SWIG_IsOK(ecode6)) { | |
22086 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'"); | |
22087 | } | |
22088 | arg6 = static_cast< int >(val6); | |
22089 | } | |
22090 | { | |
22091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22092 | result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
22093 | wxPyEndAllowThreads(__tstate); | |
22094 | if (PyErr_Occurred()) SWIG_fail; | |
22095 | } | |
22096 | { | |
22097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22098 | } | |
22099 | { | |
22100 | if (temp4) | |
22101 | delete arg4; | |
22102 | } | |
22103 | return resultobj; | |
22104 | fail: | |
22105 | { | |
22106 | if (temp4) | |
22107 | delete arg4; | |
22108 | } | |
22109 | return NULL; | |
22110 | } | |
22111 | ||
22112 | ||
22113 | SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22114 | PyObject *resultobj = 0; | |
22115 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22116 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22117 | wxString *arg3 = 0 ; | |
22118 | bool arg4 = (bool) false ; | |
22119 | int arg5 = (int) wxNOT_FOUND ; | |
22120 | bool result; | |
22121 | void *argp1 = 0 ; | |
22122 | int res1 = 0 ; | |
22123 | void *argp2 = 0 ; | |
22124 | int res2 = 0 ; | |
22125 | bool temp3 = false ; | |
22126 | bool val4 ; | |
22127 | int ecode4 = 0 ; | |
22128 | int val5 ; | |
22129 | int ecode5 = 0 ; | |
22130 | PyObject * obj0 = 0 ; | |
22131 | PyObject * obj1 = 0 ; | |
22132 | PyObject * obj2 = 0 ; | |
22133 | PyObject * obj3 = 0 ; | |
22134 | PyObject * obj4 = 0 ; | |
22135 | char * kwnames[] = { | |
22136 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
22137 | }; | |
22138 | ||
22139 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
22140 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22141 | if (!SWIG_IsOK(res1)) { | |
22142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22143 | } | |
22144 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22145 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22146 | if (!SWIG_IsOK(res2)) { | |
22147 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
22148 | } | |
22149 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
22150 | { | |
22151 | arg3 = wxString_in_helper(obj2); | |
22152 | if (arg3 == NULL) SWIG_fail; | |
22153 | temp3 = true; | |
22154 | } | |
22155 | if (obj3) { | |
22156 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
22157 | if (!SWIG_IsOK(ecode4)) { | |
22158 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'"); | |
22159 | } | |
22160 | arg4 = static_cast< bool >(val4); | |
22161 | } | |
22162 | if (obj4) { | |
22163 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22164 | if (!SWIG_IsOK(ecode5)) { | |
22165 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'"); | |
22166 | } | |
22167 | arg5 = static_cast< int >(val5); | |
22168 | } | |
22169 | { | |
22170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22171 | result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
22172 | wxPyEndAllowThreads(__tstate); | |
22173 | if (PyErr_Occurred()) SWIG_fail; | |
22174 | } | |
22175 | { | |
22176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22177 | } | |
22178 | { | |
22179 | if (temp3) | |
22180 | delete arg3; | |
22181 | } | |
22182 | return resultobj; | |
22183 | fail: | |
22184 | { | |
22185 | if (temp3) | |
22186 | delete arg3; | |
22187 | } | |
22188 | return NULL; | |
22189 | } | |
22190 | ||
22191 | ||
22192 | SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22193 | PyObject *resultobj = 0; | |
22194 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22195 | size_t arg2 ; | |
22196 | bool result; | |
22197 | void *argp1 = 0 ; | |
22198 | int res1 = 0 ; | |
22199 | size_t val2 ; | |
22200 | int ecode2 = 0 ; | |
22201 | PyObject * obj0 = 0 ; | |
22202 | PyObject * obj1 = 0 ; | |
22203 | char * kwnames[] = { | |
22204 | (char *) "self",(char *) "pos", NULL | |
22205 | }; | |
22206 | ||
22207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail; | |
22208 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22209 | if (!SWIG_IsOK(res1)) { | |
22210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
22211 | } | |
22212 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22213 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22214 | if (!SWIG_IsOK(ecode2)) { | |
22215 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'"); | |
22216 | } | |
22217 | arg2 = static_cast< size_t >(val2); | |
22218 | { | |
22219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22220 | result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2); | |
22221 | wxPyEndAllowThreads(__tstate); | |
22222 | if (PyErr_Occurred()) SWIG_fail; | |
22223 | } | |
22224 | { | |
22225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22226 | } | |
22227 | return resultobj; | |
22228 | fail: | |
22229 | return NULL; | |
22230 | } | |
22231 | ||
22232 | ||
22233 | SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22234 | PyObject *resultobj = 0; | |
22235 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22236 | size_t arg2 ; | |
22237 | bool arg3 = (bool) true ; | |
22238 | bool result; | |
22239 | void *argp1 = 0 ; | |
22240 | int res1 = 0 ; | |
22241 | size_t val2 ; | |
22242 | int ecode2 = 0 ; | |
22243 | bool val3 ; | |
22244 | int ecode3 = 0 ; | |
22245 | PyObject * obj0 = 0 ; | |
22246 | PyObject * obj1 = 0 ; | |
22247 | PyObject * obj2 = 0 ; | |
22248 | char * kwnames[] = { | |
22249 | (char *) "self",(char *) "pos",(char *) "expand", NULL | |
22250 | }; | |
22251 | ||
22252 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22253 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22254 | if (!SWIG_IsOK(res1)) { | |
22255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22256 | } | |
22257 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22258 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22259 | if (!SWIG_IsOK(ecode2)) { | |
22260 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'"); | |
22261 | } | |
22262 | arg2 = static_cast< size_t >(val2); | |
22263 | if (obj2) { | |
22264 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
22265 | if (!SWIG_IsOK(ecode3)) { | |
22266 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'"); | |
22267 | } | |
22268 | arg3 = static_cast< bool >(val3); | |
22269 | } | |
22270 | { | |
22271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22272 | result = (bool)(arg1)->ExpandNode(arg2,arg3); | |
22273 | wxPyEndAllowThreads(__tstate); | |
22274 | if (PyErr_Occurred()) SWIG_fail; | |
22275 | } | |
22276 | { | |
22277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22278 | } | |
22279 | return resultobj; | |
22280 | fail: | |
22281 | return NULL; | |
22282 | } | |
22283 | ||
22284 | ||
22285 | SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22286 | PyObject *resultobj = 0; | |
22287 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22288 | size_t arg2 ; | |
22289 | bool result; | |
22290 | void *argp1 = 0 ; | |
22291 | int res1 = 0 ; | |
22292 | size_t val2 ; | |
22293 | int ecode2 = 0 ; | |
22294 | PyObject * obj0 = 0 ; | |
22295 | PyObject * obj1 = 0 ; | |
22296 | char * kwnames[] = { | |
22297 | (char *) "self",(char *) "pos", NULL | |
22298 | }; | |
22299 | ||
22300 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail; | |
22301 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22302 | if (!SWIG_IsOK(res1)) { | |
22303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22304 | } | |
22305 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22306 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22307 | if (!SWIG_IsOK(ecode2)) { | |
22308 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'"); | |
22309 | } | |
22310 | arg2 = static_cast< size_t >(val2); | |
22311 | { | |
22312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22313 | result = (bool)(arg1)->CollapseNode(arg2); | |
22314 | wxPyEndAllowThreads(__tstate); | |
22315 | if (PyErr_Occurred()) SWIG_fail; | |
22316 | } | |
22317 | { | |
22318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22319 | } | |
22320 | return resultobj; | |
22321 | fail: | |
22322 | return NULL; | |
22323 | } | |
22324 | ||
22325 | ||
22326 | SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22327 | PyObject *resultobj = 0; | |
22328 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22329 | size_t arg2 ; | |
22330 | int result; | |
22331 | void *argp1 = 0 ; | |
22332 | int res1 = 0 ; | |
22333 | size_t val2 ; | |
22334 | int ecode2 = 0 ; | |
22335 | PyObject * obj0 = 0 ; | |
22336 | PyObject * obj1 = 0 ; | |
22337 | char * kwnames[] = { | |
22338 | (char *) "self",(char *) "pos", NULL | |
22339 | }; | |
22340 | ||
22341 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
22342 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22343 | if (!SWIG_IsOK(res1)) { | |
22344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
22345 | } | |
22346 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22347 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22348 | if (!SWIG_IsOK(ecode2)) { | |
22349 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'"); | |
22350 | } | |
22351 | arg2 = static_cast< size_t >(val2); | |
22352 | { | |
22353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22354 | result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2); | |
22355 | wxPyEndAllowThreads(__tstate); | |
22356 | if (PyErr_Occurred()) SWIG_fail; | |
22357 | } | |
22358 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22359 | return resultobj; | |
22360 | fail: | |
22361 | return NULL; | |
d55e5bfc RD |
22362 | } |
22363 | ||
22364 | ||
1bd55598 RD |
22365 | SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22366 | PyObject *resultobj = 0; | |
22367 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
10044bf1 | 22368 | wxPyTreeCtrl *result = 0 ; |
1bd55598 RD |
22369 | void *argp1 = 0 ; |
22370 | int res1 = 0 ; | |
22371 | PyObject *swig_obj[1] ; | |
22372 | ||
22373 | if (!args) SWIG_fail; | |
22374 | swig_obj[0] = args; | |
22375 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22376 | if (!SWIG_IsOK(res1)) { | |
22377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
22378 | } | |
22379 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22380 | { | |
22381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10044bf1 | 22382 | result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl(); |
1bd55598 RD |
22383 | wxPyEndAllowThreads(__tstate); |
22384 | if (PyErr_Occurred()) SWIG_fail; | |
22385 | } | |
10044bf1 RD |
22386 | { |
22387 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
22388 | } | |
1bd55598 RD |
22389 | return resultobj; |
22390 | fail: | |
22391 | return NULL; | |
22392 | } | |
22393 | ||
22394 | ||
22395 | SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22396 | PyObject *obj; | |
22397 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22398 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj)); | |
22399 | return SWIG_Py_Void(); | |
22400 | } | |
22401 | ||
22402 | SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22403 | return SWIG_Python_InitShadowInstance(args); | |
22404 | } | |
22405 | ||
22406 | SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22407 | PyObject *resultobj = 0; | |
22408 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22409 | int arg2 = (int) 0 ; | |
22410 | int arg3 = (int) wxNOT_FOUND ; | |
22411 | int arg4 = (int) wxNOT_FOUND ; | |
22412 | wxTreebookEvent *result = 0 ; | |
22413 | int val1 ; | |
22414 | int ecode1 = 0 ; | |
22415 | int val2 ; | |
22416 | int ecode2 = 0 ; | |
22417 | int val3 ; | |
22418 | int ecode3 = 0 ; | |
22419 | int val4 ; | |
22420 | int ecode4 = 0 ; | |
22421 | PyObject * obj0 = 0 ; | |
22422 | PyObject * obj1 = 0 ; | |
22423 | PyObject * obj2 = 0 ; | |
22424 | PyObject * obj3 = 0 ; | |
22425 | char * kwnames[] = { | |
22426 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
22427 | }; | |
22428 | ||
22429 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22430 | if (obj0) { | |
22431 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22432 | if (!SWIG_IsOK(ecode1)) { | |
22433 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
22434 | } | |
22435 | arg1 = static_cast< wxEventType >(val1); | |
22436 | } | |
22437 | if (obj1) { | |
22438 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22439 | if (!SWIG_IsOK(ecode2)) { | |
22440 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
22441 | } | |
22442 | arg2 = static_cast< int >(val2); | |
22443 | } | |
22444 | if (obj2) { | |
22445 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22446 | if (!SWIG_IsOK(ecode3)) { | |
22447 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
22448 | } | |
22449 | arg3 = static_cast< int >(val3); | |
22450 | } | |
22451 | if (obj3) { | |
22452 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22453 | if (!SWIG_IsOK(ecode4)) { | |
22454 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
22455 | } | |
22456 | arg4 = static_cast< int >(val4); | |
22457 | } | |
22458 | { | |
22459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22460 | result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4); | |
22461 | wxPyEndAllowThreads(__tstate); | |
22462 | if (PyErr_Occurred()) SWIG_fail; | |
22463 | } | |
22464 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 ); | |
22465 | return resultobj; | |
22466 | fail: | |
22467 | return NULL; | |
22468 | } | |
22469 | ||
22470 | ||
22471 | SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22472 | PyObject *obj; | |
22473 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22474 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj)); | |
22475 | return SWIG_Py_Void(); | |
22476 | } | |
22477 | ||
22478 | SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22479 | return SWIG_Python_InitShadowInstance(args); | |
22480 | } | |
22481 | ||
22482 | SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22483 | PyObject *resultobj = 0; | |
22484 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22485 | int arg2 ; | |
22486 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22487 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22488 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22489 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22490 | long arg5 = (long) wxBK_DEFAULT ; | |
22491 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
22492 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22493 | wxToolbook *result = 0 ; | |
22494 | void *argp1 = 0 ; | |
22495 | int res1 = 0 ; | |
22496 | int val2 ; | |
22497 | int ecode2 = 0 ; | |
22498 | wxPoint temp3 ; | |
22499 | wxSize temp4 ; | |
22500 | long val5 ; | |
22501 | int ecode5 = 0 ; | |
22502 | bool temp6 = false ; | |
22503 | PyObject * obj0 = 0 ; | |
22504 | PyObject * obj1 = 0 ; | |
22505 | PyObject * obj2 = 0 ; | |
22506 | PyObject * obj3 = 0 ; | |
22507 | PyObject * obj4 = 0 ; | |
22508 | PyObject * obj5 = 0 ; | |
22509 | char * kwnames[] = { | |
22510 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22511 | }; | |
22512 | ||
22513 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22514 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22515 | if (!SWIG_IsOK(res1)) { | |
22516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
22517 | } | |
22518 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
22519 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22520 | if (!SWIG_IsOK(ecode2)) { | |
22521 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'"); | |
22522 | } | |
22523 | arg2 = static_cast< int >(val2); | |
22524 | if (obj2) { | |
36ed4f51 | 22525 | { |
1bd55598 RD |
22526 | arg3 = &temp3; |
22527 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 22528 | } |
1bd55598 RD |
22529 | } |
22530 | if (obj3) { | |
36ed4f51 | 22531 | { |
1bd55598 RD |
22532 | arg4 = &temp4; |
22533 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 22534 | } |
1bd55598 RD |
22535 | } |
22536 | if (obj4) { | |
22537 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
22538 | if (!SWIG_IsOK(ecode5)) { | |
22539 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'"); | |
22540 | } | |
22541 | arg5 = static_cast< long >(val5); | |
22542 | } | |
22543 | if (obj5) { | |
d55e5bfc | 22544 | { |
1bd55598 RD |
22545 | arg6 = wxString_in_helper(obj5); |
22546 | if (arg6 == NULL) SWIG_fail; | |
22547 | temp6 = true; | |
d55e5bfc | 22548 | } |
1bd55598 RD |
22549 | } |
22550 | { | |
22551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22552 | result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22553 | wxPyEndAllowThreads(__tstate); | |
22554 | if (PyErr_Occurred()) SWIG_fail; | |
22555 | } | |
22556 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 ); | |
22557 | { | |
22558 | if (temp6) | |
22559 | delete arg6; | |
22560 | } | |
22561 | return resultobj; | |
22562 | fail: | |
22563 | { | |
22564 | if (temp6) | |
22565 | delete arg6; | |
22566 | } | |
22567 | return NULL; | |
d55e5bfc RD |
22568 | } |
22569 | ||
22570 | ||
1bd55598 RD |
22571 | SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22572 | PyObject *resultobj = 0; | |
22573 | wxToolbook *result = 0 ; | |
22574 | ||
22575 | if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail; | |
22576 | { | |
22577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22578 | result = (wxToolbook *)new wxToolbook(); | |
22579 | wxPyEndAllowThreads(__tstate); | |
22580 | if (PyErr_Occurred()) SWIG_fail; | |
22581 | } | |
22582 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 ); | |
22583 | return resultobj; | |
22584 | fail: | |
22585 | return NULL; | |
22586 | } | |
22587 | ||
22588 | ||
22589 | SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22590 | PyObject *resultobj = 0; | |
22591 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
22592 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22593 | int arg3 ; | |
22594 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22595 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22596 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22597 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22598 | long arg6 = (long) 0 ; | |
22599 | wxString const &arg7_defvalue = wxEmptyString ; | |
22600 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22601 | bool result; | |
22602 | void *argp1 = 0 ; | |
22603 | int res1 = 0 ; | |
22604 | void *argp2 = 0 ; | |
22605 | int res2 = 0 ; | |
22606 | int val3 ; | |
22607 | int ecode3 = 0 ; | |
22608 | wxPoint temp4 ; | |
22609 | wxSize temp5 ; | |
22610 | long val6 ; | |
22611 | int ecode6 = 0 ; | |
22612 | bool temp7 = false ; | |
22613 | PyObject * obj0 = 0 ; | |
22614 | PyObject * obj1 = 0 ; | |
22615 | PyObject * obj2 = 0 ; | |
22616 | PyObject * obj3 = 0 ; | |
22617 | PyObject * obj4 = 0 ; | |
22618 | PyObject * obj5 = 0 ; | |
22619 | PyObject * obj6 = 0 ; | |
22620 | char * kwnames[] = { | |
22621 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22622 | }; | |
22623 | ||
22624 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
22625 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
22626 | if (!SWIG_IsOK(res1)) { | |
22627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'"); | |
22628 | } | |
22629 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
22630 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22631 | if (!SWIG_IsOK(res2)) { | |
22632 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
22633 | } | |
22634 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
22635 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22636 | if (!SWIG_IsOK(ecode3)) { | |
22637 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'"); | |
22638 | } | |
22639 | arg3 = static_cast< int >(val3); | |
22640 | if (obj3) { | |
22641 | { | |
22642 | arg4 = &temp4; | |
22643 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
f20a2e1f | 22644 | } |
1bd55598 RD |
22645 | } |
22646 | if (obj4) { | |
f20a2e1f | 22647 | { |
1bd55598 RD |
22648 | arg5 = &temp5; |
22649 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
f20a2e1f | 22650 | } |
1bd55598 RD |
22651 | } |
22652 | if (obj5) { | |
22653 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
22654 | if (!SWIG_IsOK(ecode6)) { | |
22655 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'"); | |
22656 | } | |
22657 | arg6 = static_cast< long >(val6); | |
22658 | } | |
22659 | if (obj6) { | |
f20a2e1f | 22660 | { |
1bd55598 RD |
22661 | arg7 = wxString_in_helper(obj6); |
22662 | if (arg7 == NULL) SWIG_fail; | |
22663 | temp7 = true; | |
f20a2e1f | 22664 | } |
1bd55598 RD |
22665 | } |
22666 | { | |
22667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22668 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22669 | wxPyEndAllowThreads(__tstate); | |
22670 | if (PyErr_Occurred()) SWIG_fail; | |
22671 | } | |
22672 | { | |
22673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22674 | } | |
22675 | { | |
22676 | if (temp7) | |
22677 | delete arg7; | |
22678 | } | |
22679 | return resultobj; | |
22680 | fail: | |
22681 | { | |
22682 | if (temp7) | |
22683 | delete arg7; | |
22684 | } | |
22685 | return NULL; | |
f20a2e1f RD |
22686 | } |
22687 | ||
22688 | ||
1bd55598 RD |
22689 | SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22690 | PyObject *resultobj = 0; | |
22691 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
22692 | wxToolBarBase *result = 0 ; | |
22693 | void *argp1 = 0 ; | |
22694 | int res1 = 0 ; | |
22695 | PyObject *swig_obj[1] ; | |
22696 | ||
22697 | if (!args) SWIG_fail; | |
22698 | swig_obj[0] = args; | |
22699 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
22700 | if (!SWIG_IsOK(res1)) { | |
22701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'"); | |
22702 | } | |
22703 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
22704 | { | |
22705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22706 | result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar(); | |
22707 | wxPyEndAllowThreads(__tstate); | |
22708 | if (PyErr_Occurred()) SWIG_fail; | |
22709 | } | |
22710 | { | |
22711 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
22712 | } | |
22713 | return resultobj; | |
22714 | fail: | |
22715 | return NULL; | |
d55e5bfc RD |
22716 | } |
22717 | ||
22718 | ||
1bd55598 RD |
22719 | SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22720 | PyObject *resultobj = 0; | |
22721 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
22722 | void *argp1 = 0 ; | |
22723 | int res1 = 0 ; | |
22724 | PyObject *swig_obj[1] ; | |
22725 | ||
22726 | if (!args) SWIG_fail; | |
22727 | swig_obj[0] = args; | |
22728 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
22729 | if (!SWIG_IsOK(res1)) { | |
22730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'"); | |
22731 | } | |
22732 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
22733 | { | |
22734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22735 | (arg1)->Realize(); | |
22736 | wxPyEndAllowThreads(__tstate); | |
22737 | if (PyErr_Occurred()) SWIG_fail; | |
22738 | } | |
22739 | resultobj = SWIG_Py_Void(); | |
22740 | return resultobj; | |
22741 | fail: | |
22742 | return NULL; | |
22743 | } | |
22744 | ||
22745 | ||
22746 | SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22747 | PyObject *obj; | |
22748 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22749 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj)); | |
22750 | return SWIG_Py_Void(); | |
22751 | } | |
22752 | ||
22753 | SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22754 | return SWIG_Python_InitShadowInstance(args); | |
22755 | } | |
22756 | ||
22757 | SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22758 | PyObject *resultobj = 0; | |
22759 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22760 | int arg2 = (int) 0 ; | |
22761 | int arg3 = (int) wxNOT_FOUND ; | |
22762 | int arg4 = (int) wxNOT_FOUND ; | |
22763 | wxToolbookEvent *result = 0 ; | |
22764 | int val1 ; | |
22765 | int ecode1 = 0 ; | |
22766 | int val2 ; | |
22767 | int ecode2 = 0 ; | |
22768 | int val3 ; | |
22769 | int ecode3 = 0 ; | |
22770 | int val4 ; | |
22771 | int ecode4 = 0 ; | |
22772 | PyObject * obj0 = 0 ; | |
22773 | PyObject * obj1 = 0 ; | |
22774 | PyObject * obj2 = 0 ; | |
22775 | PyObject * obj3 = 0 ; | |
22776 | char * kwnames[] = { | |
22777 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
22778 | }; | |
22779 | ||
22780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22781 | if (obj0) { | |
22782 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22783 | if (!SWIG_IsOK(ecode1)) { | |
22784 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
22785 | } | |
22786 | arg1 = static_cast< wxEventType >(val1); | |
22787 | } | |
22788 | if (obj1) { | |
22789 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22790 | if (!SWIG_IsOK(ecode2)) { | |
22791 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'"); | |
22792 | } | |
22793 | arg2 = static_cast< int >(val2); | |
22794 | } | |
22795 | if (obj2) { | |
22796 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22797 | if (!SWIG_IsOK(ecode3)) { | |
22798 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'"); | |
22799 | } | |
22800 | arg3 = static_cast< int >(val3); | |
22801 | } | |
22802 | if (obj3) { | |
22803 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22804 | if (!SWIG_IsOK(ecode4)) { | |
22805 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'"); | |
22806 | } | |
22807 | arg4 = static_cast< int >(val4); | |
22808 | } | |
22809 | { | |
22810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22811 | result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4); | |
22812 | wxPyEndAllowThreads(__tstate); | |
22813 | if (PyErr_Occurred()) SWIG_fail; | |
22814 | } | |
22815 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 ); | |
22816 | return resultobj; | |
22817 | fail: | |
22818 | return NULL; | |
d55e5bfc RD |
22819 | } |
22820 | ||
22821 | ||
1bd55598 RD |
22822 | SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22823 | PyObject *obj; | |
22824 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22825 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj)); | |
22826 | return SWIG_Py_Void(); | |
d55e5bfc RD |
22827 | } |
22828 | ||
1bd55598 RD |
22829 | SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22830 | return SWIG_Python_InitShadowInstance(args); | |
22831 | } | |
d55e5bfc | 22832 | |
1bd55598 RD |
22833 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22834 | PyObject *resultobj = 0; | |
22835 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22836 | int result; | |
22837 | void *argp1 = 0 ; | |
22838 | int res1 = 0 ; | |
22839 | PyObject *swig_obj[1] ; | |
22840 | ||
22841 | if (!args) SWIG_fail; | |
22842 | swig_obj[0] = args; | |
22843 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22844 | if (!SWIG_IsOK(res1)) { | |
22845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22846 | } | |
22847 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22848 | { | |
22849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22850 | result = (int)(arg1)->GetId(); | |
22851 | wxPyEndAllowThreads(__tstate); | |
22852 | if (PyErr_Occurred()) SWIG_fail; | |
22853 | } | |
22854 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22855 | return resultobj; | |
22856 | fail: | |
22857 | return NULL; | |
d55e5bfc | 22858 | } |
1bd55598 RD |
22859 | |
22860 | ||
22861 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22862 | PyObject *resultobj = 0; | |
22863 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22864 | wxControl *result = 0 ; | |
22865 | void *argp1 = 0 ; | |
22866 | int res1 = 0 ; | |
22867 | PyObject *swig_obj[1] ; | |
22868 | ||
22869 | if (!args) SWIG_fail; | |
22870 | swig_obj[0] = args; | |
22871 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22872 | if (!SWIG_IsOK(res1)) { | |
22873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22874 | } | |
22875 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22876 | { | |
22877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22878 | result = (wxControl *)(arg1)->GetControl(); | |
22879 | wxPyEndAllowThreads(__tstate); | |
22880 | if (PyErr_Occurred()) SWIG_fail; | |
22881 | } | |
22882 | { | |
22883 | resultobj = wxPyMake_wxObject(result, 0); | |
22884 | } | |
22885 | return resultobj; | |
22886 | fail: | |
22887 | return NULL; | |
d55e5bfc RD |
22888 | } |
22889 | ||
22890 | ||
1bd55598 RD |
22891 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22892 | PyObject *resultobj = 0; | |
22893 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22894 | wxToolBarBase *result = 0 ; | |
22895 | void *argp1 = 0 ; | |
22896 | int res1 = 0 ; | |
22897 | PyObject *swig_obj[1] ; | |
22898 | ||
22899 | if (!args) SWIG_fail; | |
22900 | swig_obj[0] = args; | |
22901 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22902 | if (!SWIG_IsOK(res1)) { | |
22903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22904 | } | |
22905 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22906 | { | |
22907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22908 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
22909 | wxPyEndAllowThreads(__tstate); | |
22910 | if (PyErr_Occurred()) SWIG_fail; | |
22911 | } | |
22912 | { | |
22913 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
22914 | } | |
22915 | return resultobj; | |
22916 | fail: | |
22917 | return NULL; | |
d55e5bfc RD |
22918 | } |
22919 | ||
22920 | ||
1bd55598 RD |
22921 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22922 | PyObject *resultobj = 0; | |
22923 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22924 | int result; | |
22925 | void *argp1 = 0 ; | |
22926 | int res1 = 0 ; | |
22927 | PyObject *swig_obj[1] ; | |
22928 | ||
22929 | if (!args) SWIG_fail; | |
22930 | swig_obj[0] = args; | |
22931 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22932 | if (!SWIG_IsOK(res1)) { | |
22933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22934 | } | |
22935 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22936 | { | |
22937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22938 | result = (int)(arg1)->IsButton(); | |
22939 | wxPyEndAllowThreads(__tstate); | |
22940 | if (PyErr_Occurred()) SWIG_fail; | |
22941 | } | |
22942 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22943 | return resultobj; | |
22944 | fail: | |
22945 | return NULL; | |
d55e5bfc RD |
22946 | } |
22947 | ||
22948 | ||
1bd55598 RD |
22949 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22950 | PyObject *resultobj = 0; | |
22951 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22952 | int result; | |
22953 | void *argp1 = 0 ; | |
22954 | int res1 = 0 ; | |
22955 | PyObject *swig_obj[1] ; | |
22956 | ||
22957 | if (!args) SWIG_fail; | |
22958 | swig_obj[0] = args; | |
22959 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22960 | if (!SWIG_IsOK(res1)) { | |
22961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22962 | } | |
22963 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22964 | { | |
22965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22966 | result = (int)(arg1)->IsControl(); | |
22967 | wxPyEndAllowThreads(__tstate); | |
22968 | if (PyErr_Occurred()) SWIG_fail; | |
22969 | } | |
22970 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22971 | return resultobj; | |
22972 | fail: | |
22973 | return NULL; | |
d55e5bfc RD |
22974 | } |
22975 | ||
22976 | ||
1bd55598 RD |
22977 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22978 | PyObject *resultobj = 0; | |
22979 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22980 | int result; | |
22981 | void *argp1 = 0 ; | |
22982 | int res1 = 0 ; | |
22983 | PyObject *swig_obj[1] ; | |
22984 | ||
22985 | if (!args) SWIG_fail; | |
22986 | swig_obj[0] = args; | |
22987 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22988 | if (!SWIG_IsOK(res1)) { | |
22989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22990 | } | |
22991 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22992 | { | |
22993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22994 | result = (int)(arg1)->IsSeparator(); | |
22995 | wxPyEndAllowThreads(__tstate); | |
22996 | if (PyErr_Occurred()) SWIG_fail; | |
22997 | } | |
22998 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22999 | return resultobj; | |
23000 | fail: | |
23001 | return NULL; | |
d55e5bfc RD |
23002 | } |
23003 | ||
23004 | ||
1bd55598 RD |
23005 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23006 | PyObject *resultobj = 0; | |
23007 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23008 | int result; | |
23009 | void *argp1 = 0 ; | |
23010 | int res1 = 0 ; | |
23011 | PyObject *swig_obj[1] ; | |
23012 | ||
23013 | if (!args) SWIG_fail; | |
23014 | swig_obj[0] = args; | |
23015 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23016 | if (!SWIG_IsOK(res1)) { | |
23017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23018 | } | |
23019 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23020 | { | |
23021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23022 | result = (int)(arg1)->GetStyle(); | |
23023 | wxPyEndAllowThreads(__tstate); | |
23024 | if (PyErr_Occurred()) SWIG_fail; | |
23025 | } | |
23026 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23027 | return resultobj; | |
23028 | fail: | |
23029 | return NULL; | |
d55e5bfc RD |
23030 | } |
23031 | ||
23032 | ||
1bd55598 RD |
23033 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23034 | PyObject *resultobj = 0; | |
23035 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23036 | wxItemKind result; | |
23037 | void *argp1 = 0 ; | |
23038 | int res1 = 0 ; | |
23039 | PyObject *swig_obj[1] ; | |
23040 | ||
23041 | if (!args) SWIG_fail; | |
23042 | swig_obj[0] = args; | |
23043 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23044 | if (!SWIG_IsOK(res1)) { | |
23045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23046 | } | |
23047 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23048 | { | |
23049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23050 | result = (wxItemKind)(arg1)->GetKind(); | |
23051 | wxPyEndAllowThreads(__tstate); | |
23052 | if (PyErr_Occurred()) SWIG_fail; | |
23053 | } | |
23054 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23055 | return resultobj; | |
23056 | fail: | |
23057 | return NULL; | |
d55e5bfc RD |
23058 | } |
23059 | ||
23060 | ||
1bd55598 RD |
23061 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23062 | PyObject *resultobj = 0; | |
23063 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23064 | bool result; | |
23065 | void *argp1 = 0 ; | |
23066 | int res1 = 0 ; | |
23067 | PyObject *swig_obj[1] ; | |
23068 | ||
23069 | if (!args) SWIG_fail; | |
23070 | swig_obj[0] = args; | |
23071 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23072 | if (!SWIG_IsOK(res1)) { | |
23073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23074 | } | |
23075 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23076 | { | |
23077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23078 | result = (bool)(arg1)->IsEnabled(); | |
23079 | wxPyEndAllowThreads(__tstate); | |
23080 | if (PyErr_Occurred()) SWIG_fail; | |
23081 | } | |
23082 | { | |
23083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23084 | } | |
23085 | return resultobj; | |
23086 | fail: | |
23087 | return NULL; | |
d55e5bfc RD |
23088 | } |
23089 | ||
23090 | ||
1bd55598 RD |
23091 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23092 | PyObject *resultobj = 0; | |
23093 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23094 | bool result; | |
23095 | void *argp1 = 0 ; | |
23096 | int res1 = 0 ; | |
23097 | PyObject *swig_obj[1] ; | |
23098 | ||
23099 | if (!args) SWIG_fail; | |
23100 | swig_obj[0] = args; | |
23101 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23102 | if (!SWIG_IsOK(res1)) { | |
23103 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23104 | } | |
23105 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23106 | { | |
23107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23108 | result = (bool)(arg1)->IsToggled(); | |
23109 | wxPyEndAllowThreads(__tstate); | |
23110 | if (PyErr_Occurred()) SWIG_fail; | |
23111 | } | |
23112 | { | |
23113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23114 | } | |
23115 | return resultobj; | |
23116 | fail: | |
23117 | return NULL; | |
d55e5bfc RD |
23118 | } |
23119 | ||
23120 | ||
1bd55598 RD |
23121 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23122 | PyObject *resultobj = 0; | |
23123 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23124 | bool result; | |
23125 | void *argp1 = 0 ; | |
23126 | int res1 = 0 ; | |
23127 | PyObject *swig_obj[1] ; | |
23128 | ||
23129 | if (!args) SWIG_fail; | |
23130 | swig_obj[0] = args; | |
23131 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23132 | if (!SWIG_IsOK(res1)) { | |
23133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23134 | } | |
23135 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23136 | { | |
23137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23138 | result = (bool)(arg1)->CanBeToggled(); | |
23139 | wxPyEndAllowThreads(__tstate); | |
23140 | if (PyErr_Occurred()) SWIG_fail; | |
23141 | } | |
23142 | { | |
23143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23144 | } | |
23145 | return resultobj; | |
23146 | fail: | |
23147 | return NULL; | |
d55e5bfc RD |
23148 | } |
23149 | ||
23150 | ||
1bd55598 RD |
23151 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23152 | PyObject *resultobj = 0; | |
23153 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23154 | wxBitmap *result = 0 ; | |
23155 | void *argp1 = 0 ; | |
23156 | int res1 = 0 ; | |
23157 | PyObject *swig_obj[1] ; | |
23158 | ||
23159 | if (!args) SWIG_fail; | |
23160 | swig_obj[0] = args; | |
23161 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23162 | if (!SWIG_IsOK(res1)) { | |
23163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23164 | } | |
23165 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23166 | { | |
23167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 23168 | { |
1bd55598 RD |
23169 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); |
23170 | result = (wxBitmap *) &_result_ref; | |
36ed4f51 | 23171 | } |
1bd55598 RD |
23172 | wxPyEndAllowThreads(__tstate); |
23173 | if (PyErr_Occurred()) SWIG_fail; | |
23174 | } | |
23175 | { | |
23176 | wxBitmap* resultptr = new wxBitmap(*result); | |
23177 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
23178 | } | |
23179 | return resultobj; | |
23180 | fail: | |
23181 | return NULL; | |
d55e5bfc RD |
23182 | } |
23183 | ||
23184 | ||
1bd55598 RD |
23185 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23186 | PyObject *resultobj = 0; | |
23187 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23188 | wxBitmap *result = 0 ; | |
23189 | void *argp1 = 0 ; | |
23190 | int res1 = 0 ; | |
23191 | PyObject *swig_obj[1] ; | |
23192 | ||
23193 | if (!args) SWIG_fail; | |
23194 | swig_obj[0] = args; | |
23195 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23196 | if (!SWIG_IsOK(res1)) { | |
23197 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23198 | } | |
23199 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23200 | { | |
23201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 23202 | { |
1bd55598 RD |
23203 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); |
23204 | result = (wxBitmap *) &_result_ref; | |
d55e5bfc | 23205 | } |
1bd55598 RD |
23206 | wxPyEndAllowThreads(__tstate); |
23207 | if (PyErr_Occurred()) SWIG_fail; | |
23208 | } | |
23209 | { | |
23210 | wxBitmap* resultptr = new wxBitmap(*result); | |
23211 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
23212 | } | |
23213 | return resultobj; | |
23214 | fail: | |
23215 | return NULL; | |
d55e5bfc RD |
23216 | } |
23217 | ||
23218 | ||
1bd55598 RD |
23219 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23220 | PyObject *resultobj = 0; | |
23221 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23222 | wxBitmap result; | |
23223 | void *argp1 = 0 ; | |
23224 | int res1 = 0 ; | |
23225 | PyObject *swig_obj[1] ; | |
23226 | ||
23227 | if (!args) SWIG_fail; | |
23228 | swig_obj[0] = args; | |
23229 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23230 | if (!SWIG_IsOK(res1)) { | |
23231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23232 | } | |
23233 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23234 | { | |
23235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23236 | result = (arg1)->GetBitmap(); | |
23237 | wxPyEndAllowThreads(__tstate); | |
23238 | if (PyErr_Occurred()) SWIG_fail; | |
23239 | } | |
23240 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
23241 | return resultobj; | |
23242 | fail: | |
23243 | return NULL; | |
d55e5bfc RD |
23244 | } |
23245 | ||
23246 | ||
1bd55598 RD |
23247 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23248 | PyObject *resultobj = 0; | |
23249 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23250 | wxString result; | |
23251 | void *argp1 = 0 ; | |
23252 | int res1 = 0 ; | |
23253 | PyObject *swig_obj[1] ; | |
23254 | ||
23255 | if (!args) SWIG_fail; | |
23256 | swig_obj[0] = args; | |
23257 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23258 | if (!SWIG_IsOK(res1)) { | |
23259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23260 | } | |
23261 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23262 | { | |
23263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23264 | result = (arg1)->GetLabel(); | |
23265 | wxPyEndAllowThreads(__tstate); | |
23266 | if (PyErr_Occurred()) SWIG_fail; | |
23267 | } | |
23268 | { | |
23269 | #if wxUSE_UNICODE | |
23270 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23271 | #else | |
23272 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23273 | #endif | |
23274 | } | |
23275 | return resultobj; | |
23276 | fail: | |
23277 | return NULL; | |
d55e5bfc RD |
23278 | } |
23279 | ||
23280 | ||
1bd55598 RD |
23281 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23282 | PyObject *resultobj = 0; | |
23283 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23284 | wxString result; | |
23285 | void *argp1 = 0 ; | |
23286 | int res1 = 0 ; | |
23287 | PyObject *swig_obj[1] ; | |
23288 | ||
23289 | if (!args) SWIG_fail; | |
23290 | swig_obj[0] = args; | |
23291 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23292 | if (!SWIG_IsOK(res1)) { | |
23293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23294 | } | |
23295 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23296 | { | |
23297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23298 | result = (arg1)->GetShortHelp(); | |
23299 | wxPyEndAllowThreads(__tstate); | |
23300 | if (PyErr_Occurred()) SWIG_fail; | |
23301 | } | |
23302 | { | |
23303 | #if wxUSE_UNICODE | |
23304 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23305 | #else | |
23306 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23307 | #endif | |
23308 | } | |
23309 | return resultobj; | |
23310 | fail: | |
23311 | return NULL; | |
d55e5bfc RD |
23312 | } |
23313 | ||
23314 | ||
1bd55598 RD |
23315 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23316 | PyObject *resultobj = 0; | |
23317 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23318 | wxString result; | |
23319 | void *argp1 = 0 ; | |
23320 | int res1 = 0 ; | |
23321 | PyObject *swig_obj[1] ; | |
23322 | ||
23323 | if (!args) SWIG_fail; | |
23324 | swig_obj[0] = args; | |
23325 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23326 | if (!SWIG_IsOK(res1)) { | |
23327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23328 | } | |
23329 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23330 | { | |
23331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23332 | result = (arg1)->GetLongHelp(); | |
23333 | wxPyEndAllowThreads(__tstate); | |
23334 | if (PyErr_Occurred()) SWIG_fail; | |
23335 | } | |
23336 | { | |
23337 | #if wxUSE_UNICODE | |
23338 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23339 | #else | |
23340 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23341 | #endif | |
23342 | } | |
23343 | return resultobj; | |
23344 | fail: | |
23345 | return NULL; | |
23346 | } | |
23347 | ||
23348 | ||
23349 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23350 | PyObject *resultobj = 0; | |
23351 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23352 | bool arg2 ; | |
23353 | bool result; | |
23354 | void *argp1 = 0 ; | |
23355 | int res1 = 0 ; | |
23356 | bool val2 ; | |
23357 | int ecode2 = 0 ; | |
23358 | PyObject * obj0 = 0 ; | |
23359 | PyObject * obj1 = 0 ; | |
23360 | char * kwnames[] = { | |
23361 | (char *) "self",(char *) "enable", NULL | |
23362 | }; | |
23363 | ||
23364 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail; | |
23365 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23366 | if (!SWIG_IsOK(res1)) { | |
23367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23368 | } | |
23369 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23370 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23371 | if (!SWIG_IsOK(ecode2)) { | |
23372 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'"); | |
23373 | } | |
23374 | arg2 = static_cast< bool >(val2); | |
23375 | { | |
23376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23377 | result = (bool)(arg1)->Enable(arg2); | |
23378 | wxPyEndAllowThreads(__tstate); | |
23379 | if (PyErr_Occurred()) SWIG_fail; | |
23380 | } | |
23381 | { | |
23382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23383 | } | |
23384 | return resultobj; | |
23385 | fail: | |
23386 | return NULL; | |
d55e5bfc RD |
23387 | } |
23388 | ||
23389 | ||
1bd55598 RD |
23390 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23391 | PyObject *resultobj = 0; | |
23392 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23393 | void *argp1 = 0 ; | |
23394 | int res1 = 0 ; | |
23395 | PyObject *swig_obj[1] ; | |
23396 | ||
23397 | if (!args) SWIG_fail; | |
23398 | swig_obj[0] = args; | |
23399 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23400 | if (!SWIG_IsOK(res1)) { | |
23401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23402 | } | |
23403 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23404 | { | |
23405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23406 | (arg1)->Toggle(); | |
23407 | wxPyEndAllowThreads(__tstate); | |
23408 | if (PyErr_Occurred()) SWIG_fail; | |
23409 | } | |
23410 | resultobj = SWIG_Py_Void(); | |
23411 | return resultobj; | |
23412 | fail: | |
23413 | return NULL; | |
23414 | } | |
23415 | ||
23416 | ||
23417 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23418 | PyObject *resultobj = 0; | |
23419 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23420 | bool arg2 ; | |
23421 | bool result; | |
23422 | void *argp1 = 0 ; | |
23423 | int res1 = 0 ; | |
23424 | bool val2 ; | |
23425 | int ecode2 = 0 ; | |
23426 | PyObject * obj0 = 0 ; | |
23427 | PyObject * obj1 = 0 ; | |
23428 | char * kwnames[] = { | |
23429 | (char *) "self",(char *) "toggle", NULL | |
23430 | }; | |
23431 | ||
23432 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
23433 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23434 | if (!SWIG_IsOK(res1)) { | |
23435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23436 | } | |
23437 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23438 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23439 | if (!SWIG_IsOK(ecode2)) { | |
23440 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'"); | |
23441 | } | |
23442 | arg2 = static_cast< bool >(val2); | |
23443 | { | |
23444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23445 | result = (bool)(arg1)->SetToggle(arg2); | |
23446 | wxPyEndAllowThreads(__tstate); | |
23447 | if (PyErr_Occurred()) SWIG_fail; | |
23448 | } | |
23449 | { | |
23450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23451 | } | |
23452 | return resultobj; | |
23453 | fail: | |
23454 | return NULL; | |
23455 | } | |
23456 | ||
23457 | ||
23458 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23459 | PyObject *resultobj = 0; | |
23460 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23461 | wxString *arg2 = 0 ; | |
23462 | bool result; | |
23463 | void *argp1 = 0 ; | |
23464 | int res1 = 0 ; | |
23465 | bool temp2 = false ; | |
23466 | PyObject * obj0 = 0 ; | |
23467 | PyObject * obj1 = 0 ; | |
23468 | char * kwnames[] = { | |
23469 | (char *) "self",(char *) "help", NULL | |
23470 | }; | |
23471 | ||
23472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
23473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23474 | if (!SWIG_IsOK(res1)) { | |
23475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23476 | } | |
23477 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23478 | { | |
23479 | arg2 = wxString_in_helper(obj1); | |
23480 | if (arg2 == NULL) SWIG_fail; | |
23481 | temp2 = true; | |
23482 | } | |
23483 | { | |
23484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23485 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
23486 | wxPyEndAllowThreads(__tstate); | |
23487 | if (PyErr_Occurred()) SWIG_fail; | |
23488 | } | |
23489 | { | |
23490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23491 | } | |
23492 | { | |
23493 | if (temp2) | |
23494 | delete arg2; | |
23495 | } | |
23496 | return resultobj; | |
23497 | fail: | |
23498 | { | |
23499 | if (temp2) | |
23500 | delete arg2; | |
23501 | } | |
23502 | return NULL; | |
23503 | } | |
23504 | ||
23505 | ||
23506 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23507 | PyObject *resultobj = 0; | |
23508 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23509 | wxString *arg2 = 0 ; | |
23510 | bool result; | |
23511 | void *argp1 = 0 ; | |
23512 | int res1 = 0 ; | |
23513 | bool temp2 = false ; | |
23514 | PyObject * obj0 = 0 ; | |
23515 | PyObject * obj1 = 0 ; | |
23516 | char * kwnames[] = { | |
23517 | (char *) "self",(char *) "help", NULL | |
23518 | }; | |
23519 | ||
23520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
23521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23522 | if (!SWIG_IsOK(res1)) { | |
23523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23524 | } | |
23525 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23526 | { | |
23527 | arg2 = wxString_in_helper(obj1); | |
23528 | if (arg2 == NULL) SWIG_fail; | |
23529 | temp2 = true; | |
23530 | } | |
23531 | { | |
23532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23533 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
23534 | wxPyEndAllowThreads(__tstate); | |
23535 | if (PyErr_Occurred()) SWIG_fail; | |
23536 | } | |
23537 | { | |
23538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23539 | } | |
23540 | { | |
23541 | if (temp2) | |
23542 | delete arg2; | |
23543 | } | |
23544 | return resultobj; | |
23545 | fail: | |
23546 | { | |
23547 | if (temp2) | |
23548 | delete arg2; | |
23549 | } | |
23550 | return NULL; | |
23551 | } | |
23552 | ||
23553 | ||
23554 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23555 | PyObject *resultobj = 0; | |
23556 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23557 | wxBitmap *arg2 = 0 ; | |
23558 | void *argp1 = 0 ; | |
23559 | int res1 = 0 ; | |
23560 | void *argp2 = 0 ; | |
23561 | int res2 = 0 ; | |
23562 | PyObject * obj0 = 0 ; | |
23563 | PyObject * obj1 = 0 ; | |
23564 | char * kwnames[] = { | |
23565 | (char *) "self",(char *) "bmp", NULL | |
23566 | }; | |
23567 | ||
23568 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
23569 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23570 | if (!SWIG_IsOK(res1)) { | |
23571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23572 | } | |
23573 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23574 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23575 | if (!SWIG_IsOK(res2)) { | |
23576 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23577 | } | |
23578 | if (!argp2) { | |
23579 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23580 | } | |
23581 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
23582 | { | |
23583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23584 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
23585 | wxPyEndAllowThreads(__tstate); | |
23586 | if (PyErr_Occurred()) SWIG_fail; | |
23587 | } | |
23588 | resultobj = SWIG_Py_Void(); | |
23589 | return resultobj; | |
23590 | fail: | |
23591 | return NULL; | |
23592 | } | |
23593 | ||
23594 | ||
23595 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23596 | PyObject *resultobj = 0; | |
23597 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23598 | wxBitmap *arg2 = 0 ; | |
23599 | void *argp1 = 0 ; | |
23600 | int res1 = 0 ; | |
23601 | void *argp2 = 0 ; | |
23602 | int res2 = 0 ; | |
23603 | PyObject * obj0 = 0 ; | |
23604 | PyObject * obj1 = 0 ; | |
23605 | char * kwnames[] = { | |
23606 | (char *) "self",(char *) "bmp", NULL | |
23607 | }; | |
23608 | ||
23609 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
23610 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23611 | if (!SWIG_IsOK(res1)) { | |
23612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23613 | } | |
23614 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23615 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23616 | if (!SWIG_IsOK(res2)) { | |
23617 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23618 | } | |
23619 | if (!argp2) { | |
23620 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23621 | } | |
23622 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
23623 | { | |
23624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23625 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
23626 | wxPyEndAllowThreads(__tstate); | |
23627 | if (PyErr_Occurred()) SWIG_fail; | |
23628 | } | |
23629 | resultobj = SWIG_Py_Void(); | |
23630 | return resultobj; | |
23631 | fail: | |
23632 | return NULL; | |
23633 | } | |
23634 | ||
23635 | ||
23636 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23637 | PyObject *resultobj = 0; | |
23638 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23639 | wxString *arg2 = 0 ; | |
23640 | void *argp1 = 0 ; | |
23641 | int res1 = 0 ; | |
23642 | bool temp2 = false ; | |
23643 | PyObject * obj0 = 0 ; | |
23644 | PyObject * obj1 = 0 ; | |
23645 | char * kwnames[] = { | |
23646 | (char *) "self",(char *) "label", NULL | |
23647 | }; | |
23648 | ||
23649 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
23650 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23651 | if (!SWIG_IsOK(res1)) { | |
23652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23653 | } | |
23654 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23655 | { | |
23656 | arg2 = wxString_in_helper(obj1); | |
23657 | if (arg2 == NULL) SWIG_fail; | |
23658 | temp2 = true; | |
23659 | } | |
23660 | { | |
23661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23662 | (arg1)->SetLabel((wxString const &)*arg2); | |
23663 | wxPyEndAllowThreads(__tstate); | |
23664 | if (PyErr_Occurred()) SWIG_fail; | |
23665 | } | |
23666 | resultobj = SWIG_Py_Void(); | |
23667 | { | |
23668 | if (temp2) | |
23669 | delete arg2; | |
23670 | } | |
23671 | return resultobj; | |
23672 | fail: | |
23673 | { | |
23674 | if (temp2) | |
23675 | delete arg2; | |
23676 | } | |
23677 | return NULL; | |
d55e5bfc RD |
23678 | } |
23679 | ||
23680 | ||
1bd55598 RD |
23681 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23682 | PyObject *resultobj = 0; | |
23683 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23684 | void *argp1 = 0 ; | |
23685 | int res1 = 0 ; | |
23686 | PyObject *swig_obj[1] ; | |
23687 | ||
23688 | if (!args) SWIG_fail; | |
23689 | swig_obj[0] = args; | |
23690 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23691 | if (!SWIG_IsOK(res1)) { | |
23692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23693 | } | |
23694 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23695 | { | |
23696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23697 | (arg1)->Detach(); | |
23698 | wxPyEndAllowThreads(__tstate); | |
23699 | if (PyErr_Occurred()) SWIG_fail; | |
23700 | } | |
23701 | resultobj = SWIG_Py_Void(); | |
23702 | return resultobj; | |
23703 | fail: | |
23704 | return NULL; | |
23705 | } | |
23706 | ||
23707 | ||
23708 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23709 | PyObject *resultobj = 0; | |
23710 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23711 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
23712 | void *argp1 = 0 ; | |
23713 | int res1 = 0 ; | |
23714 | void *argp2 = 0 ; | |
23715 | int res2 = 0 ; | |
23716 | PyObject * obj0 = 0 ; | |
23717 | PyObject * obj1 = 0 ; | |
23718 | char * kwnames[] = { | |
23719 | (char *) "self",(char *) "tbar", NULL | |
23720 | }; | |
23721 | ||
23722 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail; | |
23723 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23724 | if (!SWIG_IsOK(res1)) { | |
23725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23726 | } | |
23727 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23728 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23729 | if (!SWIG_IsOK(res2)) { | |
23730 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'"); | |
23731 | } | |
23732 | arg2 = reinterpret_cast< wxToolBarBase * >(argp2); | |
23733 | { | |
23734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23735 | (arg1)->Attach(arg2); | |
23736 | wxPyEndAllowThreads(__tstate); | |
23737 | if (PyErr_Occurred()) SWIG_fail; | |
23738 | } | |
23739 | resultobj = SWIG_Py_Void(); | |
23740 | return resultobj; | |
23741 | fail: | |
23742 | return NULL; | |
d55e5bfc RD |
23743 | } |
23744 | ||
23745 | ||
1bd55598 RD |
23746 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23747 | PyObject *resultobj = 0; | |
23748 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23749 | PyObject *result = 0 ; | |
23750 | void *argp1 = 0 ; | |
23751 | int res1 = 0 ; | |
23752 | PyObject *swig_obj[1] ; | |
23753 | ||
23754 | if (!args) SWIG_fail; | |
23755 | swig_obj[0] = args; | |
23756 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23757 | if (!SWIG_IsOK(res1)) { | |
23758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23759 | } | |
23760 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23761 | { | |
23762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23763 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
23764 | wxPyEndAllowThreads(__tstate); | |
23765 | if (PyErr_Occurred()) SWIG_fail; | |
23766 | } | |
23767 | resultobj = result; | |
23768 | return resultobj; | |
23769 | fail: | |
23770 | return NULL; | |
23771 | } | |
23772 | ||
23773 | ||
23774 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23775 | PyObject *resultobj = 0; | |
23776 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23777 | PyObject *arg2 = (PyObject *) 0 ; | |
23778 | void *argp1 = 0 ; | |
23779 | int res1 = 0 ; | |
23780 | PyObject * obj0 = 0 ; | |
23781 | PyObject * obj1 = 0 ; | |
23782 | char * kwnames[] = { | |
23783 | (char *) "self",(char *) "clientData", NULL | |
23784 | }; | |
23785 | ||
23786 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail; | |
23787 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23788 | if (!SWIG_IsOK(res1)) { | |
23789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23790 | } | |
23791 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23792 | arg2 = obj1; | |
23793 | { | |
23794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23795 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
23796 | wxPyEndAllowThreads(__tstate); | |
23797 | if (PyErr_Occurred()) SWIG_fail; | |
23798 | } | |
23799 | resultobj = SWIG_Py_Void(); | |
23800 | return resultobj; | |
23801 | fail: | |
23802 | return NULL; | |
23803 | } | |
23804 | ||
23805 | ||
23806 | SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23807 | PyObject *obj; | |
23808 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23809 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj)); | |
23810 | return SWIG_Py_Void(); | |
23811 | } | |
23812 | ||
23813 | SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23814 | PyObject *resultobj = 0; | |
23815 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23816 | int arg2 ; | |
23817 | wxString *arg3 = 0 ; | |
23818 | wxBitmap *arg4 = 0 ; | |
23819 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
23820 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
23821 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; | |
23822 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
23823 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23824 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23825 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23826 | PyObject *arg9 = (PyObject *) NULL ; | |
23827 | wxToolBarToolBase *result = 0 ; | |
23828 | void *argp1 = 0 ; | |
23829 | int res1 = 0 ; | |
23830 | int val2 ; | |
23831 | int ecode2 = 0 ; | |
23832 | bool temp3 = false ; | |
23833 | void *argp4 = 0 ; | |
23834 | int res4 = 0 ; | |
23835 | void *argp5 = 0 ; | |
23836 | int res5 = 0 ; | |
23837 | int val6 ; | |
23838 | int ecode6 = 0 ; | |
23839 | bool temp7 = false ; | |
23840 | bool temp8 = false ; | |
23841 | PyObject * obj0 = 0 ; | |
23842 | PyObject * obj1 = 0 ; | |
23843 | PyObject * obj2 = 0 ; | |
23844 | PyObject * obj3 = 0 ; | |
23845 | PyObject * obj4 = 0 ; | |
23846 | PyObject * obj5 = 0 ; | |
23847 | PyObject * obj6 = 0 ; | |
23848 | PyObject * obj7 = 0 ; | |
23849 | PyObject * obj8 = 0 ; | |
23850 | char * kwnames[] = { | |
23851 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
23852 | }; | |
23853 | ||
23854 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
23855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23856 | if (!SWIG_IsOK(res1)) { | |
23857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23858 | } | |
23859 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23860 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23861 | if (!SWIG_IsOK(ecode2)) { | |
23862 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'"); | |
23863 | } | |
23864 | arg2 = static_cast< int >(val2); | |
23865 | { | |
23866 | arg3 = wxString_in_helper(obj2); | |
23867 | if (arg3 == NULL) SWIG_fail; | |
23868 | temp3 = true; | |
23869 | } | |
23870 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23871 | if (!SWIG_IsOK(res4)) { | |
23872 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
23873 | } | |
23874 | if (!argp4) { | |
23875 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
23876 | } | |
23877 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
23878 | if (obj4) { | |
23879 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23880 | if (!SWIG_IsOK(res5)) { | |
23881 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
36ed4f51 | 23882 | } |
1bd55598 RD |
23883 | if (!argp5) { |
23884 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
f20a2e1f | 23885 | } |
1bd55598 RD |
23886 | arg5 = reinterpret_cast< wxBitmap * >(argp5); |
23887 | } | |
23888 | if (obj5) { | |
23889 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
23890 | if (!SWIG_IsOK(ecode6)) { | |
23891 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'"); | |
23892 | } | |
23893 | arg6 = static_cast< wxItemKind >(val6); | |
23894 | } | |
23895 | if (obj6) { | |
f20a2e1f | 23896 | { |
1bd55598 RD |
23897 | arg7 = wxString_in_helper(obj6); |
23898 | if (arg7 == NULL) SWIG_fail; | |
23899 | temp7 = true; | |
f20a2e1f | 23900 | } |
1bd55598 RD |
23901 | } |
23902 | if (obj7) { | |
f20a2e1f | 23903 | { |
1bd55598 RD |
23904 | arg8 = wxString_in_helper(obj7); |
23905 | if (arg8 == NULL) SWIG_fail; | |
23906 | temp8 = true; | |
d55e5bfc | 23907 | } |
1bd55598 RD |
23908 | } |
23909 | if (obj8) { | |
23910 | arg9 = obj8; | |
23911 | } | |
23912 | { | |
23913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23914 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
23915 | wxPyEndAllowThreads(__tstate); | |
23916 | if (PyErr_Occurred()) SWIG_fail; | |
23917 | } | |
23918 | { | |
23919 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23920 | } | |
23921 | { | |
23922 | if (temp3) | |
23923 | delete arg3; | |
23924 | } | |
23925 | { | |
23926 | if (temp7) | |
23927 | delete arg7; | |
23928 | } | |
23929 | { | |
23930 | if (temp8) | |
23931 | delete arg8; | |
23932 | } | |
23933 | return resultobj; | |
23934 | fail: | |
23935 | { | |
23936 | if (temp3) | |
23937 | delete arg3; | |
23938 | } | |
23939 | { | |
23940 | if (temp7) | |
23941 | delete arg7; | |
23942 | } | |
23943 | { | |
23944 | if (temp8) | |
23945 | delete arg8; | |
23946 | } | |
23947 | return NULL; | |
23948 | } | |
23949 | ||
23950 | ||
23951 | SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23952 | PyObject *resultobj = 0; | |
23953 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23954 | size_t arg2 ; | |
23955 | int arg3 ; | |
23956 | wxString *arg4 = 0 ; | |
23957 | wxBitmap *arg5 = 0 ; | |
23958 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
23959 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
23960 | wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ; | |
23961 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23962 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23963 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
23964 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
23965 | PyObject *arg10 = (PyObject *) NULL ; | |
23966 | wxToolBarToolBase *result = 0 ; | |
23967 | void *argp1 = 0 ; | |
23968 | int res1 = 0 ; | |
23969 | size_t val2 ; | |
23970 | int ecode2 = 0 ; | |
23971 | int val3 ; | |
23972 | int ecode3 = 0 ; | |
23973 | bool temp4 = false ; | |
23974 | void *argp5 = 0 ; | |
23975 | int res5 = 0 ; | |
23976 | void *argp6 = 0 ; | |
23977 | int res6 = 0 ; | |
23978 | int val7 ; | |
23979 | int ecode7 = 0 ; | |
23980 | bool temp8 = false ; | |
23981 | bool temp9 = false ; | |
23982 | PyObject * obj0 = 0 ; | |
23983 | PyObject * obj1 = 0 ; | |
23984 | PyObject * obj2 = 0 ; | |
23985 | PyObject * obj3 = 0 ; | |
23986 | PyObject * obj4 = 0 ; | |
23987 | PyObject * obj5 = 0 ; | |
23988 | PyObject * obj6 = 0 ; | |
23989 | PyObject * obj7 = 0 ; | |
23990 | PyObject * obj8 = 0 ; | |
23991 | PyObject * obj9 = 0 ; | |
23992 | char * kwnames[] = { | |
23993 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
23994 | }; | |
23995 | ||
23996 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
23997 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23998 | if (!SWIG_IsOK(res1)) { | |
23999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24000 | } | |
24001 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24002 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24003 | if (!SWIG_IsOK(ecode2)) { | |
24004 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'"); | |
24005 | } | |
24006 | arg2 = static_cast< size_t >(val2); | |
24007 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24008 | if (!SWIG_IsOK(ecode3)) { | |
24009 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'"); | |
24010 | } | |
24011 | arg3 = static_cast< int >(val3); | |
24012 | { | |
24013 | arg4 = wxString_in_helper(obj3); | |
24014 | if (arg4 == NULL) SWIG_fail; | |
24015 | temp4 = true; | |
24016 | } | |
24017 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24018 | if (!SWIG_IsOK(res5)) { | |
24019 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
24020 | } | |
24021 | if (!argp5) { | |
24022 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
24023 | } | |
24024 | arg5 = reinterpret_cast< wxBitmap * >(argp5); | |
24025 | if (obj5) { | |
24026 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24027 | if (!SWIG_IsOK(res6)) { | |
24028 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 24029 | } |
1bd55598 RD |
24030 | if (!argp6) { |
24031 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 24032 | } |
1bd55598 RD |
24033 | arg6 = reinterpret_cast< wxBitmap * >(argp6); |
24034 | } | |
24035 | if (obj6) { | |
24036 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
24037 | if (!SWIG_IsOK(ecode7)) { | |
24038 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'"); | |
24039 | } | |
24040 | arg7 = static_cast< wxItemKind >(val7); | |
24041 | } | |
24042 | if (obj7) { | |
d55e5bfc | 24043 | { |
1bd55598 RD |
24044 | arg8 = wxString_in_helper(obj7); |
24045 | if (arg8 == NULL) SWIG_fail; | |
24046 | temp8 = true; | |
d55e5bfc | 24047 | } |
1bd55598 RD |
24048 | } |
24049 | if (obj8) { | |
d55e5bfc | 24050 | { |
1bd55598 RD |
24051 | arg9 = wxString_in_helper(obj8); |
24052 | if (arg9 == NULL) SWIG_fail; | |
24053 | temp9 = true; | |
d55e5bfc | 24054 | } |
1bd55598 RD |
24055 | } |
24056 | if (obj9) { | |
24057 | arg10 = obj9; | |
24058 | } | |
24059 | { | |
24060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24061 | result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10); | |
24062 | wxPyEndAllowThreads(__tstate); | |
24063 | if (PyErr_Occurred()) SWIG_fail; | |
24064 | } | |
24065 | { | |
24066 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24067 | } | |
24068 | { | |
24069 | if (temp4) | |
24070 | delete arg4; | |
24071 | } | |
24072 | { | |
24073 | if (temp8) | |
24074 | delete arg8; | |
24075 | } | |
24076 | { | |
24077 | if (temp9) | |
24078 | delete arg9; | |
24079 | } | |
24080 | return resultobj; | |
24081 | fail: | |
24082 | { | |
24083 | if (temp4) | |
24084 | delete arg4; | |
24085 | } | |
24086 | { | |
24087 | if (temp8) | |
24088 | delete arg8; | |
24089 | } | |
24090 | { | |
24091 | if (temp9) | |
24092 | delete arg9; | |
24093 | } | |
24094 | return NULL; | |
24095 | } | |
24096 | ||
24097 | ||
24098 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24099 | PyObject *resultobj = 0; | |
24100 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24101 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
24102 | wxToolBarToolBase *result = 0 ; | |
24103 | void *argp1 = 0 ; | |
24104 | int res1 = 0 ; | |
24105 | void *argp2 = 0 ; | |
24106 | int res2 = 0 ; | |
24107 | PyObject * obj0 = 0 ; | |
24108 | PyObject * obj1 = 0 ; | |
24109 | char * kwnames[] = { | |
24110 | (char *) "self",(char *) "tool", NULL | |
24111 | }; | |
24112 | ||
24113 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
24114 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24115 | if (!SWIG_IsOK(res1)) { | |
24116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24117 | } | |
24118 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24119 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
24120 | if (!SWIG_IsOK(res2)) { | |
24121 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'"); | |
24122 | } | |
24123 | arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2); | |
24124 | { | |
24125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24126 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
24127 | wxPyEndAllowThreads(__tstate); | |
24128 | if (PyErr_Occurred()) SWIG_fail; | |
24129 | } | |
24130 | { | |
24131 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24132 | } | |
24133 | return resultobj; | |
24134 | fail: | |
24135 | return NULL; | |
24136 | } | |
24137 | ||
24138 | ||
24139 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24140 | PyObject *resultobj = 0; | |
24141 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24142 | size_t arg2 ; | |
24143 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
24144 | wxToolBarToolBase *result = 0 ; | |
24145 | void *argp1 = 0 ; | |
24146 | int res1 = 0 ; | |
24147 | size_t val2 ; | |
24148 | int ecode2 = 0 ; | |
24149 | void *argp3 = 0 ; | |
24150 | int res3 = 0 ; | |
24151 | PyObject * obj0 = 0 ; | |
24152 | PyObject * obj1 = 0 ; | |
24153 | PyObject * obj2 = 0 ; | |
24154 | char * kwnames[] = { | |
24155 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
24156 | }; | |
24157 | ||
24158 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24159 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24160 | if (!SWIG_IsOK(res1)) { | |
24161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24162 | } | |
24163 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24164 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24165 | if (!SWIG_IsOK(ecode2)) { | |
24166 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'"); | |
24167 | } | |
24168 | arg2 = static_cast< size_t >(val2); | |
24169 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
24170 | if (!SWIG_IsOK(res3)) { | |
24171 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'"); | |
24172 | } | |
24173 | arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3); | |
24174 | { | |
24175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24176 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
24177 | wxPyEndAllowThreads(__tstate); | |
24178 | if (PyErr_Occurred()) SWIG_fail; | |
24179 | } | |
24180 | { | |
24181 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24182 | } | |
24183 | return resultobj; | |
24184 | fail: | |
24185 | return NULL; | |
24186 | } | |
24187 | ||
24188 | ||
24189 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24190 | PyObject *resultobj = 0; | |
24191 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24192 | wxControl *arg2 = (wxControl *) 0 ; | |
24193 | wxToolBarToolBase *result = 0 ; | |
24194 | void *argp1 = 0 ; | |
24195 | int res1 = 0 ; | |
24196 | void *argp2 = 0 ; | |
24197 | int res2 = 0 ; | |
24198 | PyObject * obj0 = 0 ; | |
24199 | PyObject * obj1 = 0 ; | |
24200 | char * kwnames[] = { | |
24201 | (char *) "self",(char *) "control", NULL | |
24202 | }; | |
24203 | ||
24204 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
24205 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24206 | if (!SWIG_IsOK(res1)) { | |
24207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24208 | } | |
24209 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24210 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 ); | |
24211 | if (!SWIG_IsOK(res2)) { | |
24212 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'"); | |
24213 | } | |
24214 | arg2 = reinterpret_cast< wxControl * >(argp2); | |
24215 | { | |
24216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24217 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
24218 | wxPyEndAllowThreads(__tstate); | |
24219 | if (PyErr_Occurred()) SWIG_fail; | |
24220 | } | |
24221 | { | |
24222 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24223 | } | |
24224 | return resultobj; | |
24225 | fail: | |
24226 | return NULL; | |
24227 | } | |
24228 | ||
24229 | ||
24230 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24231 | PyObject *resultobj = 0; | |
24232 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24233 | size_t arg2 ; | |
24234 | wxControl *arg3 = (wxControl *) 0 ; | |
24235 | wxToolBarToolBase *result = 0 ; | |
24236 | void *argp1 = 0 ; | |
24237 | int res1 = 0 ; | |
24238 | size_t val2 ; | |
24239 | int ecode2 = 0 ; | |
24240 | void *argp3 = 0 ; | |
24241 | int res3 = 0 ; | |
24242 | PyObject * obj0 = 0 ; | |
24243 | PyObject * obj1 = 0 ; | |
24244 | PyObject * obj2 = 0 ; | |
24245 | char * kwnames[] = { | |
24246 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
24247 | }; | |
24248 | ||
24249 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24250 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24251 | if (!SWIG_IsOK(res1)) { | |
24252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24253 | } | |
24254 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24255 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24256 | if (!SWIG_IsOK(ecode2)) { | |
24257 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'"); | |
24258 | } | |
24259 | arg2 = static_cast< size_t >(val2); | |
24260 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 ); | |
24261 | if (!SWIG_IsOK(res3)) { | |
24262 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'"); | |
24263 | } | |
24264 | arg3 = reinterpret_cast< wxControl * >(argp3); | |
24265 | { | |
24266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24267 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
24268 | wxPyEndAllowThreads(__tstate); | |
24269 | if (PyErr_Occurred()) SWIG_fail; | |
24270 | } | |
24271 | { | |
24272 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24273 | } | |
24274 | return resultobj; | |
24275 | fail: | |
24276 | return NULL; | |
24277 | } | |
24278 | ||
24279 | ||
24280 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24281 | PyObject *resultobj = 0; | |
24282 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24283 | int arg2 ; | |
24284 | wxControl *result = 0 ; | |
24285 | void *argp1 = 0 ; | |
24286 | int res1 = 0 ; | |
24287 | int val2 ; | |
24288 | int ecode2 = 0 ; | |
24289 | PyObject * obj0 = 0 ; | |
24290 | PyObject * obj1 = 0 ; | |
24291 | char * kwnames[] = { | |
24292 | (char *) "self",(char *) "id", NULL | |
24293 | }; | |
24294 | ||
24295 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
24296 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24297 | if (!SWIG_IsOK(res1)) { | |
24298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24299 | } | |
24300 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24301 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24302 | if (!SWIG_IsOK(ecode2)) { | |
24303 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'"); | |
24304 | } | |
24305 | arg2 = static_cast< int >(val2); | |
24306 | { | |
24307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24308 | result = (wxControl *)(arg1)->FindControl(arg2); | |
24309 | wxPyEndAllowThreads(__tstate); | |
24310 | if (PyErr_Occurred()) SWIG_fail; | |
24311 | } | |
24312 | { | |
24313 | resultobj = wxPyMake_wxObject(result, 0); | |
24314 | } | |
24315 | return resultobj; | |
24316 | fail: | |
24317 | return NULL; | |
d55e5bfc RD |
24318 | } |
24319 | ||
24320 | ||
1bd55598 RD |
24321 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24322 | PyObject *resultobj = 0; | |
24323 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24324 | wxToolBarToolBase *result = 0 ; | |
24325 | void *argp1 = 0 ; | |
24326 | int res1 = 0 ; | |
24327 | PyObject *swig_obj[1] ; | |
24328 | ||
24329 | if (!args) SWIG_fail; | |
24330 | swig_obj[0] = args; | |
24331 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24332 | if (!SWIG_IsOK(res1)) { | |
24333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24334 | } | |
24335 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24336 | { | |
24337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24338 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
24339 | wxPyEndAllowThreads(__tstate); | |
24340 | if (PyErr_Occurred()) SWIG_fail; | |
24341 | } | |
24342 | { | |
24343 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24344 | } | |
24345 | return resultobj; | |
24346 | fail: | |
24347 | return NULL; | |
24348 | } | |
24349 | ||
24350 | ||
24351 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24352 | PyObject *resultobj = 0; | |
24353 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24354 | size_t arg2 ; | |
24355 | wxToolBarToolBase *result = 0 ; | |
24356 | void *argp1 = 0 ; | |
24357 | int res1 = 0 ; | |
24358 | size_t val2 ; | |
24359 | int ecode2 = 0 ; | |
24360 | PyObject * obj0 = 0 ; | |
24361 | PyObject * obj1 = 0 ; | |
24362 | char * kwnames[] = { | |
24363 | (char *) "self",(char *) "pos", NULL | |
24364 | }; | |
24365 | ||
24366 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail; | |
24367 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24368 | if (!SWIG_IsOK(res1)) { | |
24369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24370 | } | |
24371 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24372 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24373 | if (!SWIG_IsOK(ecode2)) { | |
24374 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'"); | |
24375 | } | |
24376 | arg2 = static_cast< size_t >(val2); | |
24377 | { | |
24378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24379 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
24380 | wxPyEndAllowThreads(__tstate); | |
24381 | if (PyErr_Occurred()) SWIG_fail; | |
24382 | } | |
24383 | { | |
24384 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24385 | } | |
24386 | return resultobj; | |
24387 | fail: | |
24388 | return NULL; | |
24389 | } | |
24390 | ||
24391 | ||
24392 | SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24393 | PyObject *resultobj = 0; | |
24394 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24395 | int arg2 ; | |
24396 | wxToolBarToolBase *result = 0 ; | |
24397 | void *argp1 = 0 ; | |
24398 | int res1 = 0 ; | |
24399 | int val2 ; | |
24400 | int ecode2 = 0 ; | |
24401 | PyObject * obj0 = 0 ; | |
24402 | PyObject * obj1 = 0 ; | |
24403 | char * kwnames[] = { | |
24404 | (char *) "self",(char *) "id", NULL | |
24405 | }; | |
24406 | ||
24407 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail; | |
24408 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24409 | if (!SWIG_IsOK(res1)) { | |
24410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24411 | } | |
24412 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24413 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24414 | if (!SWIG_IsOK(ecode2)) { | |
24415 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'"); | |
24416 | } | |
24417 | arg2 = static_cast< int >(val2); | |
24418 | { | |
24419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24420 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
24421 | wxPyEndAllowThreads(__tstate); | |
24422 | if (PyErr_Occurred()) SWIG_fail; | |
24423 | } | |
24424 | { | |
24425 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24426 | } | |
24427 | return resultobj; | |
24428 | fail: | |
24429 | return NULL; | |
24430 | } | |
24431 | ||
24432 | ||
24433 | SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24434 | PyObject *resultobj = 0; | |
24435 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24436 | size_t arg2 ; | |
24437 | bool result; | |
24438 | void *argp1 = 0 ; | |
24439 | int res1 = 0 ; | |
24440 | size_t val2 ; | |
24441 | int ecode2 = 0 ; | |
24442 | PyObject * obj0 = 0 ; | |
24443 | PyObject * obj1 = 0 ; | |
24444 | char * kwnames[] = { | |
24445 | (char *) "self",(char *) "pos", NULL | |
24446 | }; | |
24447 | ||
24448 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
24449 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24450 | if (!SWIG_IsOK(res1)) { | |
24451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24452 | } | |
24453 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24454 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24455 | if (!SWIG_IsOK(ecode2)) { | |
24456 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'"); | |
24457 | } | |
24458 | arg2 = static_cast< size_t >(val2); | |
24459 | { | |
24460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24461 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
24462 | wxPyEndAllowThreads(__tstate); | |
24463 | if (PyErr_Occurred()) SWIG_fail; | |
24464 | } | |
24465 | { | |
24466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24467 | } | |
24468 | return resultobj; | |
24469 | fail: | |
24470 | return NULL; | |
24471 | } | |
24472 | ||
24473 | ||
24474 | SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24475 | PyObject *resultobj = 0; | |
24476 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24477 | int arg2 ; | |
24478 | bool result; | |
24479 | void *argp1 = 0 ; | |
24480 | int res1 = 0 ; | |
24481 | int val2 ; | |
24482 | int ecode2 = 0 ; | |
24483 | PyObject * obj0 = 0 ; | |
24484 | PyObject * obj1 = 0 ; | |
24485 | char * kwnames[] = { | |
24486 | (char *) "self",(char *) "id", NULL | |
24487 | }; | |
24488 | ||
24489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail; | |
24490 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24491 | if (!SWIG_IsOK(res1)) { | |
24492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24493 | } | |
24494 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24495 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24496 | if (!SWIG_IsOK(ecode2)) { | |
24497 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'"); | |
24498 | } | |
24499 | arg2 = static_cast< int >(val2); | |
24500 | { | |
24501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24502 | result = (bool)(arg1)->DeleteTool(arg2); | |
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; | |
d55e5bfc RD |
24512 | } |
24513 | ||
24514 | ||
1bd55598 RD |
24515 | SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24516 | PyObject *resultobj = 0; | |
24517 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24518 | void *argp1 = 0 ; | |
24519 | int res1 = 0 ; | |
24520 | PyObject *swig_obj[1] ; | |
24521 | ||
24522 | if (!args) SWIG_fail; | |
24523 | swig_obj[0] = args; | |
24524 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24525 | if (!SWIG_IsOK(res1)) { | |
24526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24527 | } | |
24528 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24529 | { | |
24530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24531 | (arg1)->ClearTools(); | |
24532 | wxPyEndAllowThreads(__tstate); | |
24533 | if (PyErr_Occurred()) SWIG_fail; | |
24534 | } | |
24535 | resultobj = SWIG_Py_Void(); | |
24536 | return resultobj; | |
24537 | fail: | |
24538 | return NULL; | |
d55e5bfc RD |
24539 | } |
24540 | ||
24541 | ||
1bd55598 RD |
24542 | SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24543 | PyObject *resultobj = 0; | |
24544 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24545 | bool result; | |
24546 | void *argp1 = 0 ; | |
24547 | int res1 = 0 ; | |
24548 | PyObject *swig_obj[1] ; | |
24549 | ||
24550 | if (!args) SWIG_fail; | |
24551 | swig_obj[0] = args; | |
24552 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24553 | if (!SWIG_IsOK(res1)) { | |
24554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24555 | } | |
24556 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24557 | { | |
24558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24559 | result = (bool)(arg1)->Realize(); | |
24560 | wxPyEndAllowThreads(__tstate); | |
24561 | if (PyErr_Occurred()) SWIG_fail; | |
24562 | } | |
24563 | { | |
24564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24565 | } | |
24566 | return resultobj; | |
24567 | fail: | |
24568 | return NULL; | |
24569 | } | |
24570 | ||
24571 | ||
24572 | SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24573 | PyObject *resultobj = 0; | |
24574 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24575 | int arg2 ; | |
24576 | bool arg3 ; | |
24577 | void *argp1 = 0 ; | |
24578 | int res1 = 0 ; | |
24579 | int val2 ; | |
24580 | int ecode2 = 0 ; | |
24581 | bool val3 ; | |
24582 | int ecode3 = 0 ; | |
24583 | PyObject * obj0 = 0 ; | |
24584 | PyObject * obj1 = 0 ; | |
24585 | PyObject * obj2 = 0 ; | |
24586 | char * kwnames[] = { | |
24587 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
24588 | }; | |
24589 | ||
24590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24592 | if (!SWIG_IsOK(res1)) { | |
24593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24594 | } | |
24595 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24596 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24597 | if (!SWIG_IsOK(ecode2)) { | |
24598 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'"); | |
24599 | } | |
24600 | arg2 = static_cast< int >(val2); | |
24601 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24602 | if (!SWIG_IsOK(ecode3)) { | |
24603 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'"); | |
24604 | } | |
24605 | arg3 = static_cast< bool >(val3); | |
24606 | { | |
24607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24608 | (arg1)->EnableTool(arg2,arg3); | |
24609 | wxPyEndAllowThreads(__tstate); | |
24610 | if (PyErr_Occurred()) SWIG_fail; | |
24611 | } | |
24612 | resultobj = SWIG_Py_Void(); | |
24613 | return resultobj; | |
24614 | fail: | |
24615 | return NULL; | |
24616 | } | |
24617 | ||
24618 | ||
24619 | SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24620 | PyObject *resultobj = 0; | |
24621 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24622 | int arg2 ; | |
24623 | bool arg3 ; | |
24624 | void *argp1 = 0 ; | |
24625 | int res1 = 0 ; | |
24626 | int val2 ; | |
24627 | int ecode2 = 0 ; | |
24628 | bool val3 ; | |
24629 | int ecode3 = 0 ; | |
24630 | PyObject * obj0 = 0 ; | |
24631 | PyObject * obj1 = 0 ; | |
24632 | PyObject * obj2 = 0 ; | |
24633 | char * kwnames[] = { | |
24634 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
24635 | }; | |
24636 | ||
24637 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24638 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24639 | if (!SWIG_IsOK(res1)) { | |
24640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24641 | } | |
24642 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24643 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24644 | if (!SWIG_IsOK(ecode2)) { | |
24645 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'"); | |
24646 | } | |
24647 | arg2 = static_cast< int >(val2); | |
24648 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24649 | if (!SWIG_IsOK(ecode3)) { | |
24650 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'"); | |
24651 | } | |
24652 | arg3 = static_cast< bool >(val3); | |
24653 | { | |
24654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24655 | (arg1)->ToggleTool(arg2,arg3); | |
24656 | wxPyEndAllowThreads(__tstate); | |
24657 | if (PyErr_Occurred()) SWIG_fail; | |
24658 | } | |
24659 | resultobj = SWIG_Py_Void(); | |
24660 | return resultobj; | |
24661 | fail: | |
24662 | return NULL; | |
24663 | } | |
24664 | ||
24665 | ||
24666 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24667 | PyObject *resultobj = 0; | |
24668 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24669 | int arg2 ; | |
24670 | bool arg3 ; | |
24671 | void *argp1 = 0 ; | |
24672 | int res1 = 0 ; | |
24673 | int val2 ; | |
24674 | int ecode2 = 0 ; | |
24675 | bool val3 ; | |
24676 | int ecode3 = 0 ; | |
24677 | PyObject * obj0 = 0 ; | |
24678 | PyObject * obj1 = 0 ; | |
24679 | PyObject * obj2 = 0 ; | |
24680 | char * kwnames[] = { | |
24681 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
24682 | }; | |
24683 | ||
24684 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24685 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24686 | if (!SWIG_IsOK(res1)) { | |
24687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24688 | } | |
24689 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24690 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24691 | if (!SWIG_IsOK(ecode2)) { | |
24692 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'"); | |
24693 | } | |
24694 | arg2 = static_cast< int >(val2); | |
24695 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24696 | if (!SWIG_IsOK(ecode3)) { | |
24697 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'"); | |
24698 | } | |
24699 | arg3 = static_cast< bool >(val3); | |
24700 | { | |
24701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24702 | (arg1)->SetToggle(arg2,arg3); | |
24703 | wxPyEndAllowThreads(__tstate); | |
24704 | if (PyErr_Occurred()) SWIG_fail; | |
24705 | } | |
24706 | resultobj = SWIG_Py_Void(); | |
24707 | return resultobj; | |
24708 | fail: | |
24709 | return NULL; | |
24710 | } | |
24711 | ||
24712 | ||
24713 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24714 | PyObject *resultobj = 0; | |
24715 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24716 | int arg2 ; | |
24717 | PyObject *result = 0 ; | |
24718 | void *argp1 = 0 ; | |
24719 | int res1 = 0 ; | |
24720 | int val2 ; | |
24721 | int ecode2 = 0 ; | |
24722 | PyObject * obj0 = 0 ; | |
24723 | PyObject * obj1 = 0 ; | |
24724 | char * kwnames[] = { | |
24725 | (char *) "self",(char *) "id", NULL | |
24726 | }; | |
24727 | ||
24728 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24729 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24730 | if (!SWIG_IsOK(res1)) { | |
24731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24732 | } | |
24733 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24734 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24735 | if (!SWIG_IsOK(ecode2)) { | |
24736 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'"); | |
24737 | } | |
24738 | arg2 = static_cast< int >(val2); | |
24739 | { | |
24740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24741 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
24742 | wxPyEndAllowThreads(__tstate); | |
24743 | if (PyErr_Occurred()) SWIG_fail; | |
24744 | } | |
24745 | resultobj = result; | |
24746 | return resultobj; | |
24747 | fail: | |
24748 | return NULL; | |
24749 | } | |
24750 | ||
24751 | ||
24752 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24753 | PyObject *resultobj = 0; | |
24754 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24755 | int arg2 ; | |
24756 | PyObject *arg3 = (PyObject *) 0 ; | |
24757 | void *argp1 = 0 ; | |
24758 | int res1 = 0 ; | |
24759 | int val2 ; | |
24760 | int ecode2 = 0 ; | |
24761 | PyObject * obj0 = 0 ; | |
24762 | PyObject * obj1 = 0 ; | |
24763 | PyObject * obj2 = 0 ; | |
24764 | char * kwnames[] = { | |
24765 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
24766 | }; | |
24767 | ||
24768 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24769 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24770 | if (!SWIG_IsOK(res1)) { | |
24771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24772 | } | |
24773 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24774 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24775 | if (!SWIG_IsOK(ecode2)) { | |
24776 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'"); | |
24777 | } | |
24778 | arg2 = static_cast< int >(val2); | |
24779 | arg3 = obj2; | |
24780 | { | |
24781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24782 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
24783 | wxPyEndAllowThreads(__tstate); | |
24784 | if (PyErr_Occurred()) SWIG_fail; | |
24785 | } | |
24786 | resultobj = SWIG_Py_Void(); | |
24787 | return resultobj; | |
24788 | fail: | |
24789 | return NULL; | |
24790 | } | |
24791 | ||
24792 | ||
24793 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24794 | PyObject *resultobj = 0; | |
24795 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24796 | int arg2 ; | |
24797 | int result; | |
24798 | void *argp1 = 0 ; | |
24799 | int res1 = 0 ; | |
24800 | int val2 ; | |
24801 | int ecode2 = 0 ; | |
24802 | PyObject * obj0 = 0 ; | |
24803 | PyObject * obj1 = 0 ; | |
24804 | char * kwnames[] = { | |
24805 | (char *) "self",(char *) "id", NULL | |
24806 | }; | |
24807 | ||
24808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
24809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24810 | if (!SWIG_IsOK(res1)) { | |
24811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
24812 | } | |
24813 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24814 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24815 | if (!SWIG_IsOK(ecode2)) { | |
24816 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'"); | |
24817 | } | |
24818 | arg2 = static_cast< int >(val2); | |
24819 | { | |
24820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24821 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
24822 | wxPyEndAllowThreads(__tstate); | |
24823 | if (PyErr_Occurred()) SWIG_fail; | |
24824 | } | |
24825 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24826 | return resultobj; | |
24827 | fail: | |
24828 | return NULL; | |
24829 | } | |
24830 | ||
24831 | ||
24832 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24833 | PyObject *resultobj = 0; | |
24834 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24835 | int arg2 ; | |
24836 | bool result; | |
24837 | void *argp1 = 0 ; | |
24838 | int res1 = 0 ; | |
24839 | int val2 ; | |
24840 | int ecode2 = 0 ; | |
24841 | PyObject * obj0 = 0 ; | |
24842 | PyObject * obj1 = 0 ; | |
24843 | char * kwnames[] = { | |
24844 | (char *) "self",(char *) "id", NULL | |
24845 | }; | |
24846 | ||
24847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail; | |
24848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24849 | if (!SWIG_IsOK(res1)) { | |
24850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24851 | } | |
24852 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24853 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24854 | if (!SWIG_IsOK(ecode2)) { | |
24855 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'"); | |
24856 | } | |
24857 | arg2 = static_cast< int >(val2); | |
24858 | { | |
24859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24860 | result = (bool)(arg1)->GetToolState(arg2); | |
24861 | wxPyEndAllowThreads(__tstate); | |
24862 | if (PyErr_Occurred()) SWIG_fail; | |
24863 | } | |
24864 | { | |
24865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24866 | } | |
24867 | return resultobj; | |
24868 | fail: | |
24869 | return NULL; | |
24870 | } | |
24871 | ||
24872 | ||
24873 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24874 | PyObject *resultobj = 0; | |
24875 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24876 | int arg2 ; | |
24877 | bool result; | |
24878 | void *argp1 = 0 ; | |
24879 | int res1 = 0 ; | |
24880 | int val2 ; | |
24881 | int ecode2 = 0 ; | |
24882 | PyObject * obj0 = 0 ; | |
24883 | PyObject * obj1 = 0 ; | |
24884 | char * kwnames[] = { | |
24885 | (char *) "self",(char *) "id", NULL | |
24886 | }; | |
24887 | ||
24888 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
24889 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24890 | if (!SWIG_IsOK(res1)) { | |
24891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24892 | } | |
24893 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24894 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24895 | if (!SWIG_IsOK(ecode2)) { | |
24896 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'"); | |
24897 | } | |
24898 | arg2 = static_cast< int >(val2); | |
24899 | { | |
24900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24901 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
24902 | wxPyEndAllowThreads(__tstate); | |
24903 | if (PyErr_Occurred()) SWIG_fail; | |
24904 | } | |
24905 | { | |
24906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24907 | } | |
24908 | return resultobj; | |
24909 | fail: | |
24910 | return NULL; | |
24911 | } | |
24912 | ||
24913 | ||
24914 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24915 | PyObject *resultobj = 0; | |
24916 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24917 | int arg2 ; | |
24918 | wxString *arg3 = 0 ; | |
24919 | void *argp1 = 0 ; | |
24920 | int res1 = 0 ; | |
24921 | int val2 ; | |
24922 | int ecode2 = 0 ; | |
24923 | bool temp3 = false ; | |
24924 | PyObject * obj0 = 0 ; | |
24925 | PyObject * obj1 = 0 ; | |
24926 | PyObject * obj2 = 0 ; | |
24927 | char * kwnames[] = { | |
24928 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
24929 | }; | |
24930 | ||
24931 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24933 | if (!SWIG_IsOK(res1)) { | |
24934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24935 | } | |
24936 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24937 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24938 | if (!SWIG_IsOK(ecode2)) { | |
24939 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'"); | |
24940 | } | |
24941 | arg2 = static_cast< int >(val2); | |
24942 | { | |
24943 | arg3 = wxString_in_helper(obj2); | |
24944 | if (arg3 == NULL) SWIG_fail; | |
24945 | temp3 = true; | |
24946 | } | |
24947 | { | |
24948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24949 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
24950 | wxPyEndAllowThreads(__tstate); | |
24951 | if (PyErr_Occurred()) SWIG_fail; | |
24952 | } | |
24953 | resultobj = SWIG_Py_Void(); | |
24954 | { | |
24955 | if (temp3) | |
24956 | delete arg3; | |
24957 | } | |
24958 | return resultobj; | |
24959 | fail: | |
24960 | { | |
24961 | if (temp3) | |
24962 | delete arg3; | |
24963 | } | |
24964 | return NULL; | |
24965 | } | |
24966 | ||
24967 | ||
24968 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24969 | PyObject *resultobj = 0; | |
24970 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24971 | int arg2 ; | |
24972 | wxString result; | |
24973 | void *argp1 = 0 ; | |
24974 | int res1 = 0 ; | |
24975 | int val2 ; | |
24976 | int ecode2 = 0 ; | |
24977 | PyObject * obj0 = 0 ; | |
24978 | PyObject * obj1 = 0 ; | |
24979 | char * kwnames[] = { | |
24980 | (char *) "self",(char *) "id", NULL | |
24981 | }; | |
24982 | ||
24983 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
24984 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24985 | if (!SWIG_IsOK(res1)) { | |
24986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24987 | } | |
24988 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24989 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24990 | if (!SWIG_IsOK(ecode2)) { | |
24991 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'"); | |
24992 | } | |
24993 | arg2 = static_cast< int >(val2); | |
24994 | { | |
24995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24996 | result = (arg1)->GetToolShortHelp(arg2); | |
24997 | wxPyEndAllowThreads(__tstate); | |
24998 | if (PyErr_Occurred()) SWIG_fail; | |
24999 | } | |
25000 | { | |
25001 | #if wxUSE_UNICODE | |
25002 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25003 | #else | |
25004 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25005 | #endif | |
25006 | } | |
25007 | return resultobj; | |
25008 | fail: | |
25009 | return NULL; | |
25010 | } | |
25011 | ||
25012 | ||
25013 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25014 | PyObject *resultobj = 0; | |
25015 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25016 | int arg2 ; | |
25017 | wxString *arg3 = 0 ; | |
25018 | void *argp1 = 0 ; | |
25019 | int res1 = 0 ; | |
25020 | int val2 ; | |
25021 | int ecode2 = 0 ; | |
25022 | bool temp3 = false ; | |
25023 | PyObject * obj0 = 0 ; | |
25024 | PyObject * obj1 = 0 ; | |
25025 | PyObject * obj2 = 0 ; | |
25026 | char * kwnames[] = { | |
25027 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
25028 | }; | |
25029 | ||
25030 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25031 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25032 | if (!SWIG_IsOK(res1)) { | |
25033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25034 | } | |
25035 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25036 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25037 | if (!SWIG_IsOK(ecode2)) { | |
25038 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'"); | |
25039 | } | |
25040 | arg2 = static_cast< int >(val2); | |
25041 | { | |
25042 | arg3 = wxString_in_helper(obj2); | |
25043 | if (arg3 == NULL) SWIG_fail; | |
25044 | temp3 = true; | |
25045 | } | |
25046 | { | |
25047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25048 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
25049 | wxPyEndAllowThreads(__tstate); | |
25050 | if (PyErr_Occurred()) SWIG_fail; | |
25051 | } | |
25052 | resultobj = SWIG_Py_Void(); | |
25053 | { | |
25054 | if (temp3) | |
25055 | delete arg3; | |
25056 | } | |
25057 | return resultobj; | |
25058 | fail: | |
25059 | { | |
25060 | if (temp3) | |
25061 | delete arg3; | |
25062 | } | |
25063 | return NULL; | |
25064 | } | |
25065 | ||
25066 | ||
25067 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25068 | PyObject *resultobj = 0; | |
25069 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25070 | int arg2 ; | |
25071 | wxString result; | |
25072 | void *argp1 = 0 ; | |
25073 | int res1 = 0 ; | |
25074 | int val2 ; | |
25075 | int ecode2 = 0 ; | |
25076 | PyObject * obj0 = 0 ; | |
25077 | PyObject * obj1 = 0 ; | |
25078 | char * kwnames[] = { | |
25079 | (char *) "self",(char *) "id", NULL | |
25080 | }; | |
25081 | ||
25082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
25083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25084 | if (!SWIG_IsOK(res1)) { | |
25085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25086 | } | |
25087 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25088 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25089 | if (!SWIG_IsOK(ecode2)) { | |
25090 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'"); | |
25091 | } | |
25092 | arg2 = static_cast< int >(val2); | |
25093 | { | |
25094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25095 | result = (arg1)->GetToolLongHelp(arg2); | |
25096 | wxPyEndAllowThreads(__tstate); | |
25097 | if (PyErr_Occurred()) SWIG_fail; | |
25098 | } | |
25099 | { | |
25100 | #if wxUSE_UNICODE | |
25101 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25102 | #else | |
25103 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25104 | #endif | |
25105 | } | |
25106 | return resultobj; | |
25107 | fail: | |
25108 | return NULL; | |
25109 | } | |
25110 | ||
25111 | ||
25112 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25113 | PyObject *resultobj = 0; | |
25114 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25115 | int arg2 ; | |
25116 | int arg3 ; | |
25117 | void *argp1 = 0 ; | |
25118 | int res1 = 0 ; | |
25119 | int val2 ; | |
25120 | int ecode2 = 0 ; | |
25121 | int val3 ; | |
25122 | int ecode3 = 0 ; | |
25123 | PyObject * obj0 = 0 ; | |
25124 | PyObject * obj1 = 0 ; | |
25125 | PyObject * obj2 = 0 ; | |
25126 | char * kwnames[] = { | |
25127 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25128 | }; | |
25129 | ||
25130 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25131 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25132 | if (!SWIG_IsOK(res1)) { | |
25133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25134 | } | |
25135 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25136 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25137 | if (!SWIG_IsOK(ecode2)) { | |
25138 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'"); | |
25139 | } | |
25140 | arg2 = static_cast< int >(val2); | |
25141 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25142 | if (!SWIG_IsOK(ecode3)) { | |
25143 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'"); | |
25144 | } | |
25145 | arg3 = static_cast< int >(val3); | |
25146 | { | |
25147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25148 | (arg1)->SetMargins(arg2,arg3); | |
25149 | wxPyEndAllowThreads(__tstate); | |
25150 | if (PyErr_Occurred()) SWIG_fail; | |
25151 | } | |
25152 | resultobj = SWIG_Py_Void(); | |
25153 | return resultobj; | |
25154 | fail: | |
25155 | return NULL; | |
25156 | } | |
25157 | ||
25158 | ||
25159 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25160 | PyObject *resultobj = 0; | |
25161 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25162 | wxSize *arg2 = 0 ; | |
25163 | void *argp1 = 0 ; | |
25164 | int res1 = 0 ; | |
25165 | wxSize temp2 ; | |
25166 | PyObject * obj0 = 0 ; | |
25167 | PyObject * obj1 = 0 ; | |
25168 | char * kwnames[] = { | |
25169 | (char *) "self",(char *) "size", NULL | |
25170 | }; | |
25171 | ||
25172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
25173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25174 | if (!SWIG_IsOK(res1)) { | |
25175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25176 | } | |
25177 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25178 | { | |
25179 | arg2 = &temp2; | |
25180 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25181 | } | |
25182 | { | |
25183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25184 | (arg1)->SetMargins((wxSize const &)*arg2); | |
25185 | wxPyEndAllowThreads(__tstate); | |
25186 | if (PyErr_Occurred()) SWIG_fail; | |
25187 | } | |
25188 | resultobj = SWIG_Py_Void(); | |
25189 | return resultobj; | |
25190 | fail: | |
25191 | return NULL; | |
25192 | } | |
25193 | ||
25194 | ||
25195 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25196 | PyObject *resultobj = 0; | |
25197 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25198 | int arg2 ; | |
25199 | void *argp1 = 0 ; | |
25200 | int res1 = 0 ; | |
25201 | int val2 ; | |
25202 | int ecode2 = 0 ; | |
25203 | PyObject * obj0 = 0 ; | |
25204 | PyObject * obj1 = 0 ; | |
25205 | char * kwnames[] = { | |
25206 | (char *) "self",(char *) "packing", NULL | |
25207 | }; | |
25208 | ||
25209 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail; | |
25210 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25211 | if (!SWIG_IsOK(res1)) { | |
25212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25213 | } | |
25214 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25215 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25216 | if (!SWIG_IsOK(ecode2)) { | |
25217 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'"); | |
25218 | } | |
25219 | arg2 = static_cast< int >(val2); | |
25220 | { | |
25221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25222 | (arg1)->SetToolPacking(arg2); | |
25223 | wxPyEndAllowThreads(__tstate); | |
25224 | if (PyErr_Occurred()) SWIG_fail; | |
25225 | } | |
25226 | resultobj = SWIG_Py_Void(); | |
25227 | return resultobj; | |
25228 | fail: | |
25229 | return NULL; | |
25230 | } | |
25231 | ||
25232 | ||
25233 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25234 | PyObject *resultobj = 0; | |
25235 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25236 | int arg2 ; | |
25237 | void *argp1 = 0 ; | |
25238 | int res1 = 0 ; | |
25239 | int val2 ; | |
25240 | int ecode2 = 0 ; | |
25241 | PyObject * obj0 = 0 ; | |
25242 | PyObject * obj1 = 0 ; | |
25243 | char * kwnames[] = { | |
25244 | (char *) "self",(char *) "separation", NULL | |
25245 | }; | |
25246 | ||
25247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail; | |
25248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25249 | if (!SWIG_IsOK(res1)) { | |
25250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25251 | } | |
25252 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25253 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25254 | if (!SWIG_IsOK(ecode2)) { | |
25255 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'"); | |
25256 | } | |
25257 | arg2 = static_cast< int >(val2); | |
25258 | { | |
25259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25260 | (arg1)->SetToolSeparation(arg2); | |
25261 | wxPyEndAllowThreads(__tstate); | |
25262 | if (PyErr_Occurred()) SWIG_fail; | |
25263 | } | |
25264 | resultobj = SWIG_Py_Void(); | |
25265 | return resultobj; | |
25266 | fail: | |
25267 | return NULL; | |
d55e5bfc RD |
25268 | } |
25269 | ||
25270 | ||
1bd55598 RD |
25271 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25272 | PyObject *resultobj = 0; | |
25273 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25274 | wxSize result; | |
25275 | void *argp1 = 0 ; | |
25276 | int res1 = 0 ; | |
25277 | PyObject *swig_obj[1] ; | |
25278 | ||
25279 | if (!args) SWIG_fail; | |
25280 | swig_obj[0] = args; | |
25281 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25282 | if (!SWIG_IsOK(res1)) { | |
25283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25284 | } | |
25285 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25286 | { | |
25287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25288 | result = (arg1)->GetToolMargins(); | |
25289 | wxPyEndAllowThreads(__tstate); | |
25290 | if (PyErr_Occurred()) SWIG_fail; | |
25291 | } | |
25292 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25293 | return resultobj; | |
25294 | fail: | |
25295 | return NULL; | |
d55e5bfc RD |
25296 | } |
25297 | ||
25298 | ||
1bd55598 RD |
25299 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25300 | PyObject *resultobj = 0; | |
25301 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25302 | wxSize result; | |
25303 | void *argp1 = 0 ; | |
25304 | int res1 = 0 ; | |
25305 | PyObject *swig_obj[1] ; | |
25306 | ||
25307 | if (!args) SWIG_fail; | |
25308 | swig_obj[0] = args; | |
25309 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25310 | if (!SWIG_IsOK(res1)) { | |
25311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25312 | } | |
25313 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25314 | { | |
25315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25316 | result = (arg1)->GetMargins(); | |
25317 | wxPyEndAllowThreads(__tstate); | |
25318 | if (PyErr_Occurred()) SWIG_fail; | |
25319 | } | |
25320 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25321 | return resultobj; | |
25322 | fail: | |
25323 | return NULL; | |
d55e5bfc RD |
25324 | } |
25325 | ||
25326 | ||
1bd55598 RD |
25327 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25328 | PyObject *resultobj = 0; | |
25329 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25330 | int result; | |
25331 | void *argp1 = 0 ; | |
25332 | int res1 = 0 ; | |
25333 | PyObject *swig_obj[1] ; | |
25334 | ||
25335 | if (!args) SWIG_fail; | |
25336 | swig_obj[0] = args; | |
25337 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25338 | if (!SWIG_IsOK(res1)) { | |
25339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25340 | } | |
25341 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25342 | { | |
25343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25344 | result = (int)(arg1)->GetToolPacking(); | |
25345 | wxPyEndAllowThreads(__tstate); | |
25346 | if (PyErr_Occurred()) SWIG_fail; | |
25347 | } | |
25348 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25349 | return resultobj; | |
25350 | fail: | |
25351 | return NULL; | |
d55e5bfc RD |
25352 | } |
25353 | ||
25354 | ||
1bd55598 RD |
25355 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25356 | PyObject *resultobj = 0; | |
25357 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25358 | int result; | |
25359 | void *argp1 = 0 ; | |
25360 | int res1 = 0 ; | |
25361 | PyObject *swig_obj[1] ; | |
25362 | ||
25363 | if (!args) SWIG_fail; | |
25364 | swig_obj[0] = args; | |
25365 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25366 | if (!SWIG_IsOK(res1)) { | |
25367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25368 | } | |
25369 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25370 | { | |
25371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25372 | result = (int)(arg1)->GetToolSeparation(); | |
25373 | wxPyEndAllowThreads(__tstate); | |
25374 | if (PyErr_Occurred()) SWIG_fail; | |
25375 | } | |
25376 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25377 | return resultobj; | |
25378 | fail: | |
25379 | return NULL; | |
25380 | } | |
25381 | ||
25382 | ||
25383 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25384 | PyObject *resultobj = 0; | |
25385 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25386 | int arg2 ; | |
25387 | void *argp1 = 0 ; | |
25388 | int res1 = 0 ; | |
25389 | int val2 ; | |
25390 | int ecode2 = 0 ; | |
25391 | PyObject * obj0 = 0 ; | |
25392 | PyObject * obj1 = 0 ; | |
25393 | char * kwnames[] = { | |
25394 | (char *) "self",(char *) "nRows", NULL | |
25395 | }; | |
25396 | ||
25397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail; | |
25398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25399 | if (!SWIG_IsOK(res1)) { | |
25400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25401 | } | |
25402 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25403 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25404 | if (!SWIG_IsOK(ecode2)) { | |
25405 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'"); | |
25406 | } | |
25407 | arg2 = static_cast< int >(val2); | |
25408 | { | |
25409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25410 | (arg1)->SetRows(arg2); | |
25411 | wxPyEndAllowThreads(__tstate); | |
25412 | if (PyErr_Occurred()) SWIG_fail; | |
25413 | } | |
25414 | resultobj = SWIG_Py_Void(); | |
25415 | return resultobj; | |
25416 | fail: | |
25417 | return NULL; | |
25418 | } | |
25419 | ||
25420 | ||
25421 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25422 | PyObject *resultobj = 0; | |
25423 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25424 | int arg2 ; | |
25425 | int arg3 ; | |
25426 | void *argp1 = 0 ; | |
25427 | int res1 = 0 ; | |
25428 | int val2 ; | |
25429 | int ecode2 = 0 ; | |
25430 | int val3 ; | |
25431 | int ecode3 = 0 ; | |
25432 | PyObject * obj0 = 0 ; | |
25433 | PyObject * obj1 = 0 ; | |
25434 | PyObject * obj2 = 0 ; | |
25435 | char * kwnames[] = { | |
25436 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
25437 | }; | |
25438 | ||
25439 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25440 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25441 | if (!SWIG_IsOK(res1)) { | |
25442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25443 | } | |
25444 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25445 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25446 | if (!SWIG_IsOK(ecode2)) { | |
25447 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'"); | |
25448 | } | |
25449 | arg2 = static_cast< int >(val2); | |
25450 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25451 | if (!SWIG_IsOK(ecode3)) { | |
25452 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'"); | |
25453 | } | |
25454 | arg3 = static_cast< int >(val3); | |
25455 | { | |
25456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25457 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
25458 | wxPyEndAllowThreads(__tstate); | |
25459 | if (PyErr_Occurred()) SWIG_fail; | |
25460 | } | |
25461 | resultobj = SWIG_Py_Void(); | |
25462 | return resultobj; | |
25463 | fail: | |
25464 | return NULL; | |
d55e5bfc RD |
25465 | } |
25466 | ||
25467 | ||
1bd55598 RD |
25468 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25469 | PyObject *resultobj = 0; | |
25470 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25471 | int result; | |
25472 | void *argp1 = 0 ; | |
25473 | int res1 = 0 ; | |
25474 | PyObject *swig_obj[1] ; | |
25475 | ||
25476 | if (!args) SWIG_fail; | |
25477 | swig_obj[0] = args; | |
25478 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25479 | if (!SWIG_IsOK(res1)) { | |
25480 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25481 | } | |
25482 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25483 | { | |
25484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25485 | result = (int)(arg1)->GetMaxRows(); | |
25486 | wxPyEndAllowThreads(__tstate); | |
25487 | if (PyErr_Occurred()) SWIG_fail; | |
25488 | } | |
25489 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25490 | return resultobj; | |
25491 | fail: | |
25492 | return NULL; | |
d55e5bfc RD |
25493 | } |
25494 | ||
25495 | ||
1bd55598 RD |
25496 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25497 | PyObject *resultobj = 0; | |
25498 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25499 | int result; | |
25500 | void *argp1 = 0 ; | |
25501 | int res1 = 0 ; | |
25502 | PyObject *swig_obj[1] ; | |
25503 | ||
25504 | if (!args) SWIG_fail; | |
25505 | swig_obj[0] = args; | |
25506 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25507 | if (!SWIG_IsOK(res1)) { | |
25508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25509 | } | |
25510 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25511 | { | |
25512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25513 | result = (int)(arg1)->GetMaxCols(); | |
25514 | wxPyEndAllowThreads(__tstate); | |
25515 | if (PyErr_Occurred()) SWIG_fail; | |
25516 | } | |
25517 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25518 | return resultobj; | |
25519 | fail: | |
25520 | return NULL; | |
25521 | } | |
25522 | ||
25523 | ||
25524 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25525 | PyObject *resultobj = 0; | |
25526 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25527 | wxSize *arg2 = 0 ; | |
25528 | void *argp1 = 0 ; | |
25529 | int res1 = 0 ; | |
25530 | wxSize temp2 ; | |
25531 | PyObject * obj0 = 0 ; | |
25532 | PyObject * obj1 = 0 ; | |
25533 | char * kwnames[] = { | |
25534 | (char *) "self",(char *) "size", NULL | |
25535 | }; | |
25536 | ||
25537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
25538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25539 | if (!SWIG_IsOK(res1)) { | |
25540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25541 | } | |
25542 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25543 | { | |
25544 | arg2 = &temp2; | |
25545 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25546 | } | |
25547 | { | |
25548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25549 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
25550 | wxPyEndAllowThreads(__tstate); | |
25551 | if (PyErr_Occurred()) SWIG_fail; | |
25552 | } | |
25553 | resultobj = SWIG_Py_Void(); | |
25554 | return resultobj; | |
25555 | fail: | |
25556 | return NULL; | |
d55e5bfc RD |
25557 | } |
25558 | ||
25559 | ||
1bd55598 RD |
25560 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25561 | PyObject *resultobj = 0; | |
25562 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25563 | wxSize result; | |
25564 | void *argp1 = 0 ; | |
25565 | int res1 = 0 ; | |
25566 | PyObject *swig_obj[1] ; | |
25567 | ||
25568 | if (!args) SWIG_fail; | |
25569 | swig_obj[0] = args; | |
25570 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25571 | if (!SWIG_IsOK(res1)) { | |
25572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25573 | } | |
25574 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25575 | { | |
25576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25577 | result = (arg1)->GetToolBitmapSize(); | |
25578 | wxPyEndAllowThreads(__tstate); | |
25579 | if (PyErr_Occurred()) SWIG_fail; | |
25580 | } | |
25581 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25582 | return resultobj; | |
25583 | fail: | |
25584 | return NULL; | |
d55e5bfc RD |
25585 | } |
25586 | ||
25587 | ||
1bd55598 RD |
25588 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25589 | PyObject *resultobj = 0; | |
25590 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25591 | wxSize result; | |
25592 | void *argp1 = 0 ; | |
25593 | int res1 = 0 ; | |
25594 | PyObject *swig_obj[1] ; | |
25595 | ||
25596 | if (!args) SWIG_fail; | |
25597 | swig_obj[0] = args; | |
25598 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25599 | if (!SWIG_IsOK(res1)) { | |
25600 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25601 | } | |
25602 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25603 | { | |
25604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25605 | result = (arg1)->GetToolSize(); | |
25606 | wxPyEndAllowThreads(__tstate); | |
25607 | if (PyErr_Occurred()) SWIG_fail; | |
25608 | } | |
25609 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25610 | return resultobj; | |
25611 | fail: | |
25612 | return NULL; | |
25613 | } | |
25614 | ||
25615 | ||
25616 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25617 | PyObject *resultobj = 0; | |
25618 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25619 | int arg2 ; | |
25620 | int arg3 ; | |
25621 | wxToolBarToolBase *result = 0 ; | |
25622 | void *argp1 = 0 ; | |
25623 | int res1 = 0 ; | |
25624 | int val2 ; | |
25625 | int ecode2 = 0 ; | |
25626 | int val3 ; | |
25627 | int ecode3 = 0 ; | |
25628 | PyObject * obj0 = 0 ; | |
25629 | PyObject * obj1 = 0 ; | |
25630 | PyObject * obj2 = 0 ; | |
25631 | char * kwnames[] = { | |
25632 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25633 | }; | |
25634 | ||
25635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25636 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25637 | if (!SWIG_IsOK(res1)) { | |
25638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25639 | } | |
25640 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25641 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25642 | if (!SWIG_IsOK(ecode2)) { | |
25643 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'"); | |
25644 | } | |
25645 | arg2 = static_cast< int >(val2); | |
25646 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25647 | if (!SWIG_IsOK(ecode3)) { | |
25648 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'"); | |
25649 | } | |
25650 | arg3 = static_cast< int >(val3); | |
25651 | { | |
25652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25653 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
25654 | wxPyEndAllowThreads(__tstate); | |
25655 | if (PyErr_Occurred()) SWIG_fail; | |
25656 | } | |
25657 | { | |
25658 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
25659 | } | |
25660 | return resultobj; | |
25661 | fail: | |
25662 | return NULL; | |
25663 | } | |
25664 | ||
25665 | ||
25666 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25667 | PyObject *resultobj = 0; | |
25668 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25669 | int arg2 ; | |
25670 | wxToolBarToolBase *result = 0 ; | |
25671 | void *argp1 = 0 ; | |
25672 | int res1 = 0 ; | |
25673 | int val2 ; | |
25674 | int ecode2 = 0 ; | |
25675 | PyObject * obj0 = 0 ; | |
25676 | PyObject * obj1 = 0 ; | |
25677 | char * kwnames[] = { | |
25678 | (char *) "self",(char *) "toolid", NULL | |
25679 | }; | |
25680 | ||
25681 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail; | |
25682 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25683 | if (!SWIG_IsOK(res1)) { | |
25684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
25685 | } | |
25686 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25687 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25688 | if (!SWIG_IsOK(ecode2)) { | |
25689 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'"); | |
25690 | } | |
25691 | arg2 = static_cast< int >(val2); | |
25692 | { | |
25693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25694 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
25695 | wxPyEndAllowThreads(__tstate); | |
25696 | if (PyErr_Occurred()) SWIG_fail; | |
25697 | } | |
25698 | { | |
25699 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
25700 | } | |
25701 | return resultobj; | |
25702 | fail: | |
25703 | return NULL; | |
d55e5bfc RD |
25704 | } |
25705 | ||
25706 | ||
1bd55598 RD |
25707 | SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25708 | PyObject *resultobj = 0; | |
25709 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25710 | bool result; | |
25711 | void *argp1 = 0 ; | |
25712 | int res1 = 0 ; | |
25713 | PyObject *swig_obj[1] ; | |
25714 | ||
25715 | if (!args) SWIG_fail; | |
25716 | swig_obj[0] = args; | |
25717 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25718 | if (!SWIG_IsOK(res1)) { | |
25719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25720 | } | |
25721 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25722 | { | |
25723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25724 | result = (bool)(arg1)->IsVertical(); | |
25725 | wxPyEndAllowThreads(__tstate); | |
25726 | if (PyErr_Occurred()) SWIG_fail; | |
25727 | } | |
25728 | { | |
25729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25730 | } | |
25731 | return resultobj; | |
25732 | fail: | |
25733 | return NULL; | |
d55e5bfc RD |
25734 | } |
25735 | ||
25736 | ||
1bd55598 RD |
25737 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25738 | PyObject *resultobj = 0; | |
25739 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25740 | size_t result; | |
25741 | void *argp1 = 0 ; | |
25742 | int res1 = 0 ; | |
25743 | PyObject *swig_obj[1] ; | |
25744 | ||
25745 | if (!args) SWIG_fail; | |
25746 | swig_obj[0] = args; | |
25747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25748 | if (!SWIG_IsOK(res1)) { | |
25749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
25750 | } | |
25751 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25752 | { | |
25753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25754 | result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount(); | |
25755 | wxPyEndAllowThreads(__tstate); | |
25756 | if (PyErr_Occurred()) SWIG_fail; | |
25757 | } | |
25758 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
25759 | return resultobj; | |
25760 | fail: | |
25761 | return NULL; | |
25762 | } | |
25763 | ||
25764 | ||
25765 | SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25766 | PyObject *obj; | |
25767 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25768 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj)); | |
25769 | return SWIG_Py_Void(); | |
25770 | } | |
25771 | ||
25772 | SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25773 | PyObject *resultobj = 0; | |
25774 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25775 | int arg2 = (int) -1 ; | |
25776 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
25777 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25778 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25779 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25780 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
25781 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
25782 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
25783 | wxToolBar *result = 0 ; | |
25784 | void *argp1 = 0 ; | |
25785 | int res1 = 0 ; | |
25786 | int val2 ; | |
25787 | int ecode2 = 0 ; | |
25788 | wxPoint temp3 ; | |
25789 | wxSize temp4 ; | |
25790 | long val5 ; | |
25791 | int ecode5 = 0 ; | |
25792 | bool temp6 = false ; | |
25793 | PyObject * obj0 = 0 ; | |
25794 | PyObject * obj1 = 0 ; | |
25795 | PyObject * obj2 = 0 ; | |
25796 | PyObject * obj3 = 0 ; | |
25797 | PyObject * obj4 = 0 ; | |
25798 | PyObject * obj5 = 0 ; | |
25799 | char * kwnames[] = { | |
25800 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
25801 | }; | |
25802 | ||
25803 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
25804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25805 | if (!SWIG_IsOK(res1)) { | |
25806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25807 | } | |
25808 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25809 | if (obj1) { | |
25810 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25811 | if (!SWIG_IsOK(ecode2)) { | |
25812 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'"); | |
25813 | } | |
25814 | arg2 = static_cast< int >(val2); | |
25815 | } | |
25816 | if (obj2) { | |
d55e5bfc | 25817 | { |
1bd55598 RD |
25818 | arg3 = &temp3; |
25819 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 25820 | } |
1bd55598 RD |
25821 | } |
25822 | if (obj3) { | |
d55e5bfc | 25823 | { |
1bd55598 RD |
25824 | arg4 = &temp4; |
25825 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 25826 | } |
1bd55598 RD |
25827 | } |
25828 | if (obj4) { | |
25829 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
25830 | if (!SWIG_IsOK(ecode5)) { | |
25831 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'"); | |
25832 | } | |
25833 | arg5 = static_cast< long >(val5); | |
25834 | } | |
25835 | if (obj5) { | |
36ed4f51 | 25836 | { |
1bd55598 RD |
25837 | arg6 = wxString_in_helper(obj5); |
25838 | if (arg6 == NULL) SWIG_fail; | |
25839 | temp6 = true; | |
36ed4f51 | 25840 | } |
1bd55598 RD |
25841 | } |
25842 | { | |
25843 | if (!wxPyCheckForApp()) SWIG_fail; | |
25844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25845 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
25846 | wxPyEndAllowThreads(__tstate); | |
25847 | if (PyErr_Occurred()) SWIG_fail; | |
25848 | } | |
25849 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 ); | |
25850 | { | |
25851 | if (temp6) | |
25852 | delete arg6; | |
25853 | } | |
25854 | return resultobj; | |
25855 | fail: | |
25856 | { | |
25857 | if (temp6) | |
25858 | delete arg6; | |
25859 | } | |
25860 | return NULL; | |
d55e5bfc RD |
25861 | } |
25862 | ||
25863 | ||
1bd55598 RD |
25864 | SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25865 | PyObject *resultobj = 0; | |
25866 | wxToolBar *result = 0 ; | |
25867 | ||
25868 | if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail; | |
25869 | { | |
25870 | if (!wxPyCheckForApp()) SWIG_fail; | |
25871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25872 | result = (wxToolBar *)new wxToolBar(); | |
25873 | wxPyEndAllowThreads(__tstate); | |
25874 | if (PyErr_Occurred()) SWIG_fail; | |
25875 | } | |
25876 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 ); | |
25877 | return resultobj; | |
25878 | fail: | |
25879 | return NULL; | |
25880 | } | |
25881 | ||
25882 | ||
25883 | SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25884 | PyObject *resultobj = 0; | |
25885 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
25886 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25887 | int arg3 = (int) -1 ; | |
25888 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
25889 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25890 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25891 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25892 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
25893 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
25894 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
25895 | bool result; | |
25896 | void *argp1 = 0 ; | |
25897 | int res1 = 0 ; | |
25898 | void *argp2 = 0 ; | |
25899 | int res2 = 0 ; | |
25900 | int val3 ; | |
25901 | int ecode3 = 0 ; | |
25902 | wxPoint temp4 ; | |
25903 | wxSize temp5 ; | |
25904 | long val6 ; | |
25905 | int ecode6 = 0 ; | |
25906 | bool temp7 = false ; | |
25907 | PyObject * obj0 = 0 ; | |
25908 | PyObject * obj1 = 0 ; | |
25909 | PyObject * obj2 = 0 ; | |
25910 | PyObject * obj3 = 0 ; | |
25911 | PyObject * obj4 = 0 ; | |
25912 | PyObject * obj5 = 0 ; | |
25913 | PyObject * obj6 = 0 ; | |
25914 | char * kwnames[] = { | |
25915 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
25916 | }; | |
25917 | ||
25918 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
25919 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
25920 | if (!SWIG_IsOK(res1)) { | |
25921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'"); | |
25922 | } | |
25923 | arg1 = reinterpret_cast< wxToolBar * >(argp1); | |
25924 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25925 | if (!SWIG_IsOK(res2)) { | |
25926 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25927 | } | |
25928 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25929 | if (obj2) { | |
25930 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25931 | if (!SWIG_IsOK(ecode3)) { | |
25932 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
25933 | } | |
25934 | arg3 = static_cast< int >(val3); | |
25935 | } | |
25936 | if (obj3) { | |
d55e5bfc | 25937 | { |
1bd55598 RD |
25938 | arg4 = &temp4; |
25939 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 25940 | } |
1bd55598 RD |
25941 | } |
25942 | if (obj4) { | |
d55e5bfc | 25943 | { |
1bd55598 RD |
25944 | arg5 = &temp5; |
25945 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 25946 | } |
1bd55598 RD |
25947 | } |
25948 | if (obj5) { | |
25949 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
25950 | if (!SWIG_IsOK(ecode6)) { | |
25951 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'"); | |
25952 | } | |
25953 | arg6 = static_cast< long >(val6); | |
25954 | } | |
25955 | if (obj6) { | |
36ed4f51 | 25956 | { |
1bd55598 RD |
25957 | arg7 = wxString_in_helper(obj6); |
25958 | if (arg7 == NULL) SWIG_fail; | |
25959 | temp7 = true; | |
36ed4f51 | 25960 | } |
1bd55598 RD |
25961 | } |
25962 | { | |
25963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25964 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
25965 | wxPyEndAllowThreads(__tstate); | |
25966 | if (PyErr_Occurred()) SWIG_fail; | |
25967 | } | |
25968 | { | |
25969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25970 | } | |
25971 | { | |
25972 | if (temp7) | |
25973 | delete arg7; | |
25974 | } | |
25975 | return resultobj; | |
25976 | fail: | |
25977 | { | |
25978 | if (temp7) | |
25979 | delete arg7; | |
25980 | } | |
25981 | return NULL; | |
25982 | } | |
25983 | ||
25984 | ||
4976f996 RD |
25985 | SWIGINTERN PyObject *_wrap_ToolBar_SetToolNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25986 | PyObject *resultobj = 0; | |
25987 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
25988 | int arg2 ; | |
25989 | wxBitmap *arg3 = 0 ; | |
25990 | void *argp1 = 0 ; | |
25991 | int res1 = 0 ; | |
25992 | int val2 ; | |
25993 | int ecode2 = 0 ; | |
25994 | void *argp3 = 0 ; | |
25995 | int res3 = 0 ; | |
25996 | PyObject * obj0 = 0 ; | |
25997 | PyObject * obj1 = 0 ; | |
25998 | PyObject * obj2 = 0 ; | |
25999 | char * kwnames[] = { | |
26000 | (char *) "self",(char *) "id",(char *) "bitmap", NULL | |
26001 | }; | |
26002 | ||
26003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_SetToolNormalBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
26005 | if (!SWIG_IsOK(res1)) { | |
26006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "1"" of type '" "wxToolBar *""'"); | |
26007 | } | |
26008 | arg1 = reinterpret_cast< wxToolBar * >(argp1); | |
26009 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26010 | if (!SWIG_IsOK(ecode2)) { | |
26011 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "2"" of type '" "int""'"); | |
26012 | } | |
26013 | arg2 = static_cast< int >(val2); | |
26014 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
26015 | if (!SWIG_IsOK(res3)) { | |
26016 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
26017 | } | |
26018 | if (!argp3) { | |
26019 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
26020 | } | |
26021 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
26022 | { | |
26023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26024 | (arg1)->SetToolNormalBitmap(arg2,(wxBitmap const &)*arg3); | |
26025 | wxPyEndAllowThreads(__tstate); | |
26026 | if (PyErr_Occurred()) SWIG_fail; | |
26027 | } | |
26028 | resultobj = SWIG_Py_Void(); | |
26029 | return resultobj; | |
26030 | fail: | |
26031 | return NULL; | |
26032 | } | |
26033 | ||
26034 | ||
26035 | SWIGINTERN PyObject *_wrap_ToolBar_SetToolDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26036 | PyObject *resultobj = 0; | |
26037 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
26038 | int arg2 ; | |
26039 | wxBitmap *arg3 = 0 ; | |
26040 | void *argp1 = 0 ; | |
26041 | int res1 = 0 ; | |
26042 | int val2 ; | |
26043 | int ecode2 = 0 ; | |
26044 | void *argp3 = 0 ; | |
26045 | int res3 = 0 ; | |
26046 | PyObject * obj0 = 0 ; | |
26047 | PyObject * obj1 = 0 ; | |
26048 | PyObject * obj2 = 0 ; | |
26049 | char * kwnames[] = { | |
26050 | (char *) "self",(char *) "id",(char *) "bitmap", NULL | |
26051 | }; | |
26052 | ||
26053 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_SetToolDisabledBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26054 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
26055 | if (!SWIG_IsOK(res1)) { | |
26056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBar *""'"); | |
26057 | } | |
26058 | arg1 = reinterpret_cast< wxToolBar * >(argp1); | |
26059 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26060 | if (!SWIG_IsOK(ecode2)) { | |
26061 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "2"" of type '" "int""'"); | |
26062 | } | |
26063 | arg2 = static_cast< int >(val2); | |
26064 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
26065 | if (!SWIG_IsOK(res3)) { | |
26066 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
26067 | } | |
26068 | if (!argp3) { | |
26069 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
26070 | } | |
26071 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
26072 | { | |
26073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26074 | (arg1)->SetToolDisabledBitmap(arg2,(wxBitmap const &)*arg3); | |
26075 | wxPyEndAllowThreads(__tstate); | |
26076 | if (PyErr_Occurred()) SWIG_fail; | |
26077 | } | |
26078 | resultobj = SWIG_Py_Void(); | |
26079 | return resultobj; | |
26080 | fail: | |
26081 | return NULL; | |
26082 | } | |
26083 | ||
26084 | ||
1bd55598 RD |
26085 | SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26086 | PyObject *resultobj = 0; | |
26087 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
26088 | SwigValueWrapper<wxVisualAttributes > result; | |
26089 | int val1 ; | |
26090 | int ecode1 = 0 ; | |
26091 | PyObject * obj0 = 0 ; | |
26092 | char * kwnames[] = { | |
26093 | (char *) "variant", NULL | |
26094 | }; | |
26095 | ||
26096 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
26097 | if (obj0) { | |
26098 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
26099 | if (!SWIG_IsOK(ecode1)) { | |
26100 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
26101 | } | |
26102 | arg1 = static_cast< wxWindowVariant >(val1); | |
26103 | } | |
26104 | { | |
26105 | if (!wxPyCheckForApp()) SWIG_fail; | |
26106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26107 | result = wxToolBar::GetClassDefaultAttributes(arg1); | |
26108 | wxPyEndAllowThreads(__tstate); | |
26109 | if (PyErr_Occurred()) SWIG_fail; | |
26110 | } | |
26111 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
26112 | return resultobj; | |
26113 | fail: | |
26114 | return NULL; | |
d55e5bfc RD |
26115 | } |
26116 | ||
26117 | ||
1bd55598 RD |
26118 | SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26119 | PyObject *obj; | |
26120 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26121 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj)); | |
26122 | return SWIG_Py_Void(); | |
d55e5bfc RD |
26123 | } |
26124 | ||
1bd55598 RD |
26125 | SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26126 | return SWIG_Python_InitShadowInstance(args); | |
26127 | } | |
d55e5bfc | 26128 | |
1bd55598 RD |
26129 | SWIGINTERN int ListCtrlNameStr_set(PyObject *) { |
26130 | SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only."); | |
26131 | return 1; | |
d55e5bfc RD |
26132 | } |
26133 | ||
26134 | ||
1bd55598 RD |
26135 | SWIGINTERN PyObject *ListCtrlNameStr_get(void) { |
26136 | PyObject *pyobj = 0; | |
26137 | ||
26138 | { | |
26139 | #if wxUSE_UNICODE | |
26140 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
26141 | #else | |
26142 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
26143 | #endif | |
26144 | } | |
26145 | return pyobj; | |
26146 | } | |
26147 | ||
26148 | ||
26149 | SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26150 | PyObject *resultobj = 0; | |
26151 | wxColour const &arg1_defvalue = wxNullColour ; | |
26152 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
26153 | wxColour const &arg2_defvalue = wxNullColour ; | |
26154 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
26155 | wxFont const &arg3_defvalue = wxNullFont ; | |
26156 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
26157 | wxListItemAttr *result = 0 ; | |
26158 | wxColour temp1 ; | |
26159 | wxColour temp2 ; | |
26160 | void *argp3 = 0 ; | |
26161 | int res3 = 0 ; | |
26162 | PyObject * obj0 = 0 ; | |
26163 | PyObject * obj1 = 0 ; | |
26164 | PyObject * obj2 = 0 ; | |
26165 | char * kwnames[] = { | |
26166 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
26167 | }; | |
26168 | ||
26169 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26170 | if (obj0) { | |
d55e5bfc | 26171 | { |
1bd55598 RD |
26172 | arg1 = &temp1; |
26173 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
d55e5bfc | 26174 | } |
1bd55598 RD |
26175 | } |
26176 | if (obj1) { | |
36ed4f51 | 26177 | { |
1bd55598 RD |
26178 | arg2 = &temp2; |
26179 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
36ed4f51 | 26180 | } |
1bd55598 RD |
26181 | } |
26182 | if (obj2) { | |
26183 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
26184 | if (!SWIG_IsOK(res3)) { | |
26185 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d55e5bfc | 26186 | } |
1bd55598 RD |
26187 | if (!argp3) { |
26188 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
36ed4f51 | 26189 | } |
1bd55598 RD |
26190 | arg3 = reinterpret_cast< wxFont * >(argp3); |
26191 | } | |
26192 | { | |
26193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26194 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
26195 | wxPyEndAllowThreads(__tstate); | |
26196 | if (PyErr_Occurred()) SWIG_fail; | |
26197 | } | |
26198 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 ); | |
26199 | return resultobj; | |
26200 | fail: | |
26201 | return NULL; | |
d55e5bfc RD |
26202 | } |
26203 | ||
26204 | ||
1bd55598 RD |
26205 | SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26206 | PyObject *resultobj = 0; | |
26207 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26208 | void *argp1 = 0 ; | |
26209 | int res1 = 0 ; | |
26210 | PyObject *swig_obj[1] ; | |
26211 | ||
26212 | if (!args) SWIG_fail; | |
26213 | swig_obj[0] = args; | |
26214 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 ); | |
26215 | if (!SWIG_IsOK(res1)) { | |
26216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26217 | } | |
26218 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26219 | { | |
26220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26221 | delete arg1; | |
d55e5bfc | 26222 | |
1bd55598 RD |
26223 | wxPyEndAllowThreads(__tstate); |
26224 | if (PyErr_Occurred()) SWIG_fail; | |
26225 | } | |
26226 | resultobj = SWIG_Py_Void(); | |
26227 | return resultobj; | |
26228 | fail: | |
26229 | return NULL; | |
26230 | } | |
26231 | ||
26232 | ||
26233 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26234 | PyObject *resultobj = 0; | |
26235 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26236 | wxColour *arg2 = 0 ; | |
26237 | void *argp1 = 0 ; | |
26238 | int res1 = 0 ; | |
26239 | wxColour temp2 ; | |
26240 | PyObject * obj0 = 0 ; | |
26241 | PyObject * obj1 = 0 ; | |
26242 | char * kwnames[] = { | |
26243 | (char *) "self",(char *) "colText", NULL | |
26244 | }; | |
26245 | ||
26246 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
26247 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26248 | if (!SWIG_IsOK(res1)) { | |
26249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26250 | } | |
26251 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26252 | { | |
26253 | arg2 = &temp2; | |
26254 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26255 | } | |
26256 | { | |
26257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26258 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
26259 | wxPyEndAllowThreads(__tstate); | |
26260 | if (PyErr_Occurred()) SWIG_fail; | |
26261 | } | |
26262 | resultobj = SWIG_Py_Void(); | |
26263 | return resultobj; | |
26264 | fail: | |
26265 | return NULL; | |
26266 | } | |
26267 | ||
26268 | ||
26269 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26270 | PyObject *resultobj = 0; | |
26271 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26272 | wxColour *arg2 = 0 ; | |
26273 | void *argp1 = 0 ; | |
26274 | int res1 = 0 ; | |
26275 | wxColour temp2 ; | |
26276 | PyObject * obj0 = 0 ; | |
26277 | PyObject * obj1 = 0 ; | |
26278 | char * kwnames[] = { | |
26279 | (char *) "self",(char *) "colBack", NULL | |
26280 | }; | |
26281 | ||
26282 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
26283 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26284 | if (!SWIG_IsOK(res1)) { | |
26285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26286 | } | |
26287 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26288 | { | |
26289 | arg2 = &temp2; | |
26290 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26291 | } | |
26292 | { | |
26293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26294 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26295 | wxPyEndAllowThreads(__tstate); | |
26296 | if (PyErr_Occurred()) SWIG_fail; | |
26297 | } | |
26298 | resultobj = SWIG_Py_Void(); | |
26299 | return resultobj; | |
26300 | fail: | |
26301 | return NULL; | |
26302 | } | |
26303 | ||
26304 | ||
26305 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26306 | PyObject *resultobj = 0; | |
26307 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26308 | wxFont *arg2 = 0 ; | |
26309 | void *argp1 = 0 ; | |
26310 | int res1 = 0 ; | |
26311 | void *argp2 = 0 ; | |
26312 | int res2 = 0 ; | |
26313 | PyObject * obj0 = 0 ; | |
26314 | PyObject * obj1 = 0 ; | |
26315 | char * kwnames[] = { | |
26316 | (char *) "self",(char *) "font", NULL | |
26317 | }; | |
26318 | ||
26319 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
26320 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26321 | if (!SWIG_IsOK(res1)) { | |
26322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26323 | } | |
26324 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26325 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
26326 | if (!SWIG_IsOK(res2)) { | |
26327 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
26328 | } | |
26329 | if (!argp2) { | |
26330 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
26331 | } | |
26332 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
26333 | { | |
26334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26335 | (arg1)->SetFont((wxFont const &)*arg2); | |
26336 | wxPyEndAllowThreads(__tstate); | |
26337 | if (PyErr_Occurred()) SWIG_fail; | |
26338 | } | |
26339 | resultobj = SWIG_Py_Void(); | |
26340 | return resultobj; | |
26341 | fail: | |
26342 | return NULL; | |
d55e5bfc RD |
26343 | } |
26344 | ||
26345 | ||
1bd55598 RD |
26346 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26347 | PyObject *resultobj = 0; | |
26348 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26349 | bool result; | |
26350 | void *argp1 = 0 ; | |
26351 | int res1 = 0 ; | |
26352 | PyObject *swig_obj[1] ; | |
26353 | ||
26354 | if (!args) SWIG_fail; | |
26355 | swig_obj[0] = args; | |
26356 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26357 | if (!SWIG_IsOK(res1)) { | |
26358 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26359 | } | |
26360 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26361 | { | |
26362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26363 | result = (bool)(arg1)->HasTextColour(); | |
26364 | wxPyEndAllowThreads(__tstate); | |
26365 | if (PyErr_Occurred()) SWIG_fail; | |
26366 | } | |
26367 | { | |
26368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26369 | } | |
26370 | return resultobj; | |
26371 | fail: | |
26372 | return NULL; | |
f20a2e1f RD |
26373 | } |
26374 | ||
26375 | ||
1bd55598 RD |
26376 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26377 | PyObject *resultobj = 0; | |
26378 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26379 | bool result; | |
26380 | void *argp1 = 0 ; | |
26381 | int res1 = 0 ; | |
26382 | PyObject *swig_obj[1] ; | |
26383 | ||
26384 | if (!args) SWIG_fail; | |
26385 | swig_obj[0] = args; | |
26386 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26387 | if (!SWIG_IsOK(res1)) { | |
26388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26389 | } | |
26390 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26391 | { | |
26392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26393 | result = (bool)(arg1)->HasBackgroundColour(); | |
26394 | wxPyEndAllowThreads(__tstate); | |
26395 | if (PyErr_Occurred()) SWIG_fail; | |
26396 | } | |
26397 | { | |
26398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26399 | } | |
26400 | return resultobj; | |
26401 | fail: | |
26402 | return NULL; | |
d55e5bfc | 26403 | } |
1bd55598 RD |
26404 | |
26405 | ||
26406 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26407 | PyObject *resultobj = 0; | |
26408 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26409 | bool result; | |
26410 | void *argp1 = 0 ; | |
26411 | int res1 = 0 ; | |
26412 | PyObject *swig_obj[1] ; | |
26413 | ||
26414 | if (!args) SWIG_fail; | |
26415 | swig_obj[0] = args; | |
26416 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26417 | if (!SWIG_IsOK(res1)) { | |
26418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26419 | } | |
26420 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26421 | { | |
26422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26423 | result = (bool)(arg1)->HasFont(); | |
26424 | wxPyEndAllowThreads(__tstate); | |
26425 | if (PyErr_Occurred()) SWIG_fail; | |
26426 | } | |
26427 | { | |
26428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26429 | } | |
26430 | return resultobj; | |
26431 | fail: | |
26432 | return NULL; | |
d55e5bfc RD |
26433 | } |
26434 | ||
26435 | ||
1bd55598 RD |
26436 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26437 | PyObject *resultobj = 0; | |
26438 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26439 | wxColour result; | |
26440 | void *argp1 = 0 ; | |
26441 | int res1 = 0 ; | |
26442 | PyObject *swig_obj[1] ; | |
26443 | ||
26444 | if (!args) SWIG_fail; | |
26445 | swig_obj[0] = args; | |
26446 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26447 | if (!SWIG_IsOK(res1)) { | |
26448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26449 | } | |
26450 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26451 | { | |
26452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26453 | result = (arg1)->GetTextColour(); | |
26454 | wxPyEndAllowThreads(__tstate); | |
26455 | if (PyErr_Occurred()) SWIG_fail; | |
26456 | } | |
26457 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
26458 | return resultobj; | |
26459 | fail: | |
26460 | return NULL; | |
d55e5bfc RD |
26461 | } |
26462 | ||
26463 | ||
1bd55598 RD |
26464 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26465 | PyObject *resultobj = 0; | |
26466 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26467 | wxColour result; | |
26468 | void *argp1 = 0 ; | |
26469 | int res1 = 0 ; | |
26470 | PyObject *swig_obj[1] ; | |
26471 | ||
26472 | if (!args) SWIG_fail; | |
26473 | swig_obj[0] = args; | |
26474 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26475 | if (!SWIG_IsOK(res1)) { | |
26476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26477 | } | |
26478 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26479 | { | |
26480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26481 | result = (arg1)->GetBackgroundColour(); | |
26482 | wxPyEndAllowThreads(__tstate); | |
26483 | if (PyErr_Occurred()) SWIG_fail; | |
26484 | } | |
26485 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
26486 | return resultobj; | |
26487 | fail: | |
26488 | return NULL; | |
d55e5bfc RD |
26489 | } |
26490 | ||
26491 | ||
1bd55598 RD |
26492 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26493 | PyObject *resultobj = 0; | |
26494 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26495 | wxFont result; | |
26496 | void *argp1 = 0 ; | |
26497 | int res1 = 0 ; | |
26498 | PyObject *swig_obj[1] ; | |
26499 | ||
26500 | if (!args) SWIG_fail; | |
26501 | swig_obj[0] = args; | |
26502 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26503 | if (!SWIG_IsOK(res1)) { | |
26504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26505 | } | |
26506 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26507 | { | |
26508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26509 | result = (arg1)->GetFont(); | |
26510 | wxPyEndAllowThreads(__tstate); | |
26511 | if (PyErr_Occurred()) SWIG_fail; | |
26512 | } | |
26513 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
26514 | return resultobj; | |
26515 | fail: | |
26516 | return NULL; | |
26517 | } | |
26518 | ||
26519 | ||
26520 | SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26521 | PyObject *resultobj = 0; | |
26522 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26523 | wxListItemAttr *arg2 = 0 ; | |
26524 | void *argp1 = 0 ; | |
26525 | int res1 = 0 ; | |
26526 | void *argp2 = 0 ; | |
26527 | int res2 = 0 ; | |
26528 | PyObject * obj0 = 0 ; | |
26529 | PyObject * obj1 = 0 ; | |
26530 | char * kwnames[] = { | |
26531 | (char *) "self",(char *) "source", NULL | |
26532 | }; | |
26533 | ||
26534 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail; | |
26535 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26536 | if (!SWIG_IsOK(res1)) { | |
26537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26538 | } | |
26539 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26540 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0); | |
26541 | if (!SWIG_IsOK(res2)) { | |
26542 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'"); | |
26543 | } | |
26544 | if (!argp2) { | |
26545 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'"); | |
26546 | } | |
26547 | arg2 = reinterpret_cast< wxListItemAttr * >(argp2); | |
26548 | { | |
26549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26550 | (arg1)->AssignFrom((wxListItemAttr const &)*arg2); | |
26551 | wxPyEndAllowThreads(__tstate); | |
26552 | if (PyErr_Occurred()) SWIG_fail; | |
26553 | } | |
26554 | resultobj = SWIG_Py_Void(); | |
26555 | return resultobj; | |
26556 | fail: | |
26557 | return NULL; | |
121b9a67 RD |
26558 | } |
26559 | ||
26560 | ||
1bd55598 RD |
26561 | SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26562 | PyObject *resultobj = 0; | |
26563 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26564 | void *argp1 = 0 ; | |
26565 | int res1 = 0 ; | |
26566 | PyObject *swig_obj[1] ; | |
26567 | ||
26568 | if (!args) SWIG_fail; | |
26569 | swig_obj[0] = args; | |
26570 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26571 | if (!SWIG_IsOK(res1)) { | |
26572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26573 | } | |
26574 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26575 | { | |
26576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26577 | wxListItemAttr_Destroy(arg1); | |
26578 | wxPyEndAllowThreads(__tstate); | |
26579 | if (PyErr_Occurred()) SWIG_fail; | |
26580 | } | |
26581 | resultobj = SWIG_Py_Void(); | |
26582 | return resultobj; | |
26583 | fail: | |
26584 | return NULL; | |
121b9a67 RD |
26585 | } |
26586 | ||
26587 | ||
1bd55598 RD |
26588 | SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26589 | PyObject *obj; | |
26590 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26591 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj)); | |
26592 | return SWIG_Py_Void(); | |
121b9a67 RD |
26593 | } |
26594 | ||
1bd55598 RD |
26595 | SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26596 | return SWIG_Python_InitShadowInstance(args); | |
26597 | } | |
121b9a67 | 26598 | |
1bd55598 RD |
26599 | SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26600 | PyObject *resultobj = 0; | |
26601 | wxListItem *result = 0 ; | |
26602 | ||
26603 | if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail; | |
26604 | { | |
26605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26606 | result = (wxListItem *)new wxListItem(); | |
26607 | wxPyEndAllowThreads(__tstate); | |
26608 | if (PyErr_Occurred()) SWIG_fail; | |
26609 | } | |
3ecece7e | 26610 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 ); |
1bd55598 RD |
26611 | return resultobj; |
26612 | fail: | |
26613 | return NULL; | |
121b9a67 RD |
26614 | } |
26615 | ||
26616 | ||
1bd55598 RD |
26617 | SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26618 | PyObject *resultobj = 0; | |
26619 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26620 | void *argp1 = 0 ; | |
26621 | int res1 = 0 ; | |
26622 | PyObject *swig_obj[1] ; | |
26623 | ||
26624 | if (!args) SWIG_fail; | |
26625 | swig_obj[0] = args; | |
26626 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 ); | |
26627 | if (!SWIG_IsOK(res1)) { | |
26628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26629 | } | |
26630 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26631 | { | |
26632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26633 | delete arg1; | |
f20a2e1f | 26634 | |
1bd55598 RD |
26635 | wxPyEndAllowThreads(__tstate); |
26636 | if (PyErr_Occurred()) SWIG_fail; | |
26637 | } | |
26638 | resultobj = SWIG_Py_Void(); | |
26639 | return resultobj; | |
26640 | fail: | |
26641 | return NULL; | |
f20a2e1f RD |
26642 | } |
26643 | ||
26644 | ||
1bd55598 RD |
26645 | SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26646 | PyObject *resultobj = 0; | |
26647 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26648 | void *argp1 = 0 ; | |
26649 | int res1 = 0 ; | |
26650 | PyObject *swig_obj[1] ; | |
26651 | ||
26652 | if (!args) SWIG_fail; | |
26653 | swig_obj[0] = args; | |
26654 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26655 | if (!SWIG_IsOK(res1)) { | |
26656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26657 | } | |
26658 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26659 | { | |
26660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26661 | (arg1)->Clear(); | |
26662 | wxPyEndAllowThreads(__tstate); | |
26663 | if (PyErr_Occurred()) SWIG_fail; | |
26664 | } | |
26665 | resultobj = SWIG_Py_Void(); | |
26666 | return resultobj; | |
26667 | fail: | |
26668 | return NULL; | |
d55e5bfc | 26669 | } |
1bd55598 RD |
26670 | |
26671 | ||
26672 | SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26673 | PyObject *resultobj = 0; | |
26674 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26675 | void *argp1 = 0 ; | |
26676 | int res1 = 0 ; | |
26677 | PyObject *swig_obj[1] ; | |
26678 | ||
26679 | if (!args) SWIG_fail; | |
26680 | swig_obj[0] = args; | |
26681 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26682 | if (!SWIG_IsOK(res1)) { | |
26683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26684 | } | |
26685 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26686 | { | |
26687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26688 | (arg1)->ClearAttributes(); | |
26689 | wxPyEndAllowThreads(__tstate); | |
26690 | if (PyErr_Occurred()) SWIG_fail; | |
26691 | } | |
26692 | resultobj = SWIG_Py_Void(); | |
26693 | return resultobj; | |
26694 | fail: | |
26695 | return NULL; | |
26696 | } | |
26697 | ||
26698 | ||
26699 | SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26700 | PyObject *resultobj = 0; | |
26701 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26702 | long arg2 ; | |
26703 | void *argp1 = 0 ; | |
26704 | int res1 = 0 ; | |
26705 | long val2 ; | |
26706 | int ecode2 = 0 ; | |
26707 | PyObject * obj0 = 0 ; | |
26708 | PyObject * obj1 = 0 ; | |
26709 | char * kwnames[] = { | |
26710 | (char *) "self",(char *) "mask", NULL | |
26711 | }; | |
26712 | ||
26713 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
26714 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26715 | if (!SWIG_IsOK(res1)) { | |
26716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26717 | } | |
26718 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26719 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26720 | if (!SWIG_IsOK(ecode2)) { | |
26721 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'"); | |
26722 | } | |
26723 | arg2 = static_cast< long >(val2); | |
26724 | { | |
26725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26726 | (arg1)->SetMask(arg2); | |
26727 | wxPyEndAllowThreads(__tstate); | |
26728 | if (PyErr_Occurred()) SWIG_fail; | |
26729 | } | |
26730 | resultobj = SWIG_Py_Void(); | |
26731 | return resultobj; | |
26732 | fail: | |
26733 | return NULL; | |
26734 | } | |
26735 | ||
26736 | ||
26737 | SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26738 | PyObject *resultobj = 0; | |
26739 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26740 | long arg2 ; | |
26741 | void *argp1 = 0 ; | |
26742 | int res1 = 0 ; | |
26743 | long val2 ; | |
26744 | int ecode2 = 0 ; | |
26745 | PyObject * obj0 = 0 ; | |
26746 | PyObject * obj1 = 0 ; | |
26747 | char * kwnames[] = { | |
26748 | (char *) "self",(char *) "id", NULL | |
26749 | }; | |
26750 | ||
26751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
26752 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26753 | if (!SWIG_IsOK(res1)) { | |
26754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26755 | } | |
26756 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26757 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26758 | if (!SWIG_IsOK(ecode2)) { | |
26759 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'"); | |
26760 | } | |
26761 | arg2 = static_cast< long >(val2); | |
26762 | { | |
26763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26764 | (arg1)->SetId(arg2); | |
26765 | wxPyEndAllowThreads(__tstate); | |
26766 | if (PyErr_Occurred()) SWIG_fail; | |
26767 | } | |
26768 | resultobj = SWIG_Py_Void(); | |
26769 | return resultobj; | |
26770 | fail: | |
26771 | return NULL; | |
26772 | } | |
26773 | ||
26774 | ||
26775 | SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26776 | PyObject *resultobj = 0; | |
26777 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26778 | int arg2 ; | |
26779 | void *argp1 = 0 ; | |
26780 | int res1 = 0 ; | |
26781 | int val2 ; | |
26782 | int ecode2 = 0 ; | |
26783 | PyObject * obj0 = 0 ; | |
26784 | PyObject * obj1 = 0 ; | |
26785 | char * kwnames[] = { | |
26786 | (char *) "self",(char *) "col", NULL | |
26787 | }; | |
26788 | ||
26789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
26790 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26791 | if (!SWIG_IsOK(res1)) { | |
26792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26793 | } | |
26794 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26795 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26796 | if (!SWIG_IsOK(ecode2)) { | |
26797 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'"); | |
26798 | } | |
26799 | arg2 = static_cast< int >(val2); | |
26800 | { | |
26801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26802 | (arg1)->SetColumn(arg2); | |
26803 | wxPyEndAllowThreads(__tstate); | |
26804 | if (PyErr_Occurred()) SWIG_fail; | |
26805 | } | |
26806 | resultobj = SWIG_Py_Void(); | |
26807 | return resultobj; | |
26808 | fail: | |
26809 | return NULL; | |
26810 | } | |
26811 | ||
26812 | ||
26813 | SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26814 | PyObject *resultobj = 0; | |
26815 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26816 | long arg2 ; | |
26817 | void *argp1 = 0 ; | |
26818 | int res1 = 0 ; | |
26819 | long val2 ; | |
26820 | int ecode2 = 0 ; | |
26821 | PyObject * obj0 = 0 ; | |
26822 | PyObject * obj1 = 0 ; | |
26823 | char * kwnames[] = { | |
26824 | (char *) "self",(char *) "state", NULL | |
26825 | }; | |
26826 | ||
26827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail; | |
26828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26829 | if (!SWIG_IsOK(res1)) { | |
26830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26831 | } | |
26832 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26833 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26834 | if (!SWIG_IsOK(ecode2)) { | |
26835 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'"); | |
26836 | } | |
26837 | arg2 = static_cast< long >(val2); | |
26838 | { | |
26839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26840 | (arg1)->SetState(arg2); | |
26841 | wxPyEndAllowThreads(__tstate); | |
26842 | if (PyErr_Occurred()) SWIG_fail; | |
26843 | } | |
26844 | resultobj = SWIG_Py_Void(); | |
26845 | return resultobj; | |
26846 | fail: | |
26847 | return NULL; | |
26848 | } | |
26849 | ||
26850 | ||
26851 | SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26852 | PyObject *resultobj = 0; | |
26853 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26854 | long arg2 ; | |
26855 | void *argp1 = 0 ; | |
26856 | int res1 = 0 ; | |
26857 | long val2 ; | |
26858 | int ecode2 = 0 ; | |
26859 | PyObject * obj0 = 0 ; | |
26860 | PyObject * obj1 = 0 ; | |
26861 | char * kwnames[] = { | |
26862 | (char *) "self",(char *) "stateMask", NULL | |
26863 | }; | |
26864 | ||
26865 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
26866 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26867 | if (!SWIG_IsOK(res1)) { | |
26868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26869 | } | |
26870 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26871 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26872 | if (!SWIG_IsOK(ecode2)) { | |
26873 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'"); | |
26874 | } | |
26875 | arg2 = static_cast< long >(val2); | |
26876 | { | |
26877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26878 | (arg1)->SetStateMask(arg2); | |
26879 | wxPyEndAllowThreads(__tstate); | |
26880 | if (PyErr_Occurred()) SWIG_fail; | |
26881 | } | |
26882 | resultobj = SWIG_Py_Void(); | |
26883 | return resultobj; | |
26884 | fail: | |
26885 | return NULL; | |
26886 | } | |
26887 | ||
26888 | ||
26889 | SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26890 | PyObject *resultobj = 0; | |
26891 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26892 | wxString *arg2 = 0 ; | |
26893 | void *argp1 = 0 ; | |
26894 | int res1 = 0 ; | |
26895 | bool temp2 = false ; | |
26896 | PyObject * obj0 = 0 ; | |
26897 | PyObject * obj1 = 0 ; | |
26898 | char * kwnames[] = { | |
26899 | (char *) "self",(char *) "text", NULL | |
26900 | }; | |
26901 | ||
26902 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail; | |
26903 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26904 | if (!SWIG_IsOK(res1)) { | |
26905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26906 | } | |
26907 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26908 | { | |
26909 | arg2 = wxString_in_helper(obj1); | |
26910 | if (arg2 == NULL) SWIG_fail; | |
26911 | temp2 = true; | |
26912 | } | |
26913 | { | |
26914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26915 | (arg1)->SetText((wxString const &)*arg2); | |
26916 | wxPyEndAllowThreads(__tstate); | |
26917 | if (PyErr_Occurred()) SWIG_fail; | |
26918 | } | |
26919 | resultobj = SWIG_Py_Void(); | |
26920 | { | |
26921 | if (temp2) | |
26922 | delete arg2; | |
26923 | } | |
26924 | return resultobj; | |
26925 | fail: | |
26926 | { | |
26927 | if (temp2) | |
26928 | delete arg2; | |
26929 | } | |
26930 | return NULL; | |
26931 | } | |
26932 | ||
26933 | ||
26934 | SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26935 | PyObject *resultobj = 0; | |
26936 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26937 | int arg2 ; | |
26938 | void *argp1 = 0 ; | |
26939 | int res1 = 0 ; | |
26940 | int val2 ; | |
26941 | int ecode2 = 0 ; | |
26942 | PyObject * obj0 = 0 ; | |
26943 | PyObject * obj1 = 0 ; | |
26944 | char * kwnames[] = { | |
26945 | (char *) "self",(char *) "image", NULL | |
26946 | }; | |
26947 | ||
26948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26950 | if (!SWIG_IsOK(res1)) { | |
26951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26952 | } | |
26953 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26954 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26955 | if (!SWIG_IsOK(ecode2)) { | |
26956 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'"); | |
26957 | } | |
26958 | arg2 = static_cast< int >(val2); | |
26959 | { | |
26960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26961 | (arg1)->SetImage(arg2); | |
26962 | wxPyEndAllowThreads(__tstate); | |
26963 | if (PyErr_Occurred()) SWIG_fail; | |
26964 | } | |
26965 | resultobj = SWIG_Py_Void(); | |
26966 | return resultobj; | |
26967 | fail: | |
26968 | return NULL; | |
26969 | } | |
26970 | ||
26971 | ||
26972 | SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26973 | PyObject *resultobj = 0; | |
26974 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26975 | long arg2 ; | |
26976 | void *argp1 = 0 ; | |
26977 | int res1 = 0 ; | |
26978 | long val2 ; | |
26979 | int ecode2 = 0 ; | |
26980 | PyObject * obj0 = 0 ; | |
26981 | PyObject * obj1 = 0 ; | |
26982 | char * kwnames[] = { | |
26983 | (char *) "self",(char *) "data", NULL | |
26984 | }; | |
26985 | ||
26986 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
26987 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26988 | if (!SWIG_IsOK(res1)) { | |
26989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26990 | } | |
26991 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26992 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26993 | if (!SWIG_IsOK(ecode2)) { | |
26994 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'"); | |
26995 | } | |
26996 | arg2 = static_cast< long >(val2); | |
26997 | { | |
26998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26999 | (arg1)->SetData(arg2); | |
27000 | wxPyEndAllowThreads(__tstate); | |
27001 | if (PyErr_Occurred()) SWIG_fail; | |
27002 | } | |
27003 | resultobj = SWIG_Py_Void(); | |
27004 | return resultobj; | |
27005 | fail: | |
27006 | return NULL; | |
27007 | } | |
27008 | ||
27009 | ||
27010 | SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27011 | PyObject *resultobj = 0; | |
27012 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27013 | int arg2 ; | |
27014 | void *argp1 = 0 ; | |
27015 | int res1 = 0 ; | |
27016 | int val2 ; | |
27017 | int ecode2 = 0 ; | |
27018 | PyObject * obj0 = 0 ; | |
27019 | PyObject * obj1 = 0 ; | |
27020 | char * kwnames[] = { | |
27021 | (char *) "self",(char *) "width", NULL | |
27022 | }; | |
27023 | ||
27024 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
27025 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27026 | if (!SWIG_IsOK(res1)) { | |
27027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27028 | } | |
27029 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27030 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27031 | if (!SWIG_IsOK(ecode2)) { | |
27032 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
27033 | } | |
27034 | arg2 = static_cast< int >(val2); | |
27035 | { | |
27036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27037 | (arg1)->SetWidth(arg2); | |
27038 | wxPyEndAllowThreads(__tstate); | |
27039 | if (PyErr_Occurred()) SWIG_fail; | |
27040 | } | |
27041 | resultobj = SWIG_Py_Void(); | |
27042 | return resultobj; | |
27043 | fail: | |
27044 | return NULL; | |
27045 | } | |
27046 | ||
27047 | ||
27048 | SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27049 | PyObject *resultobj = 0; | |
27050 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27051 | wxListColumnFormat arg2 ; | |
27052 | void *argp1 = 0 ; | |
27053 | int res1 = 0 ; | |
27054 | int val2 ; | |
27055 | int ecode2 = 0 ; | |
27056 | PyObject * obj0 = 0 ; | |
27057 | PyObject * obj1 = 0 ; | |
27058 | char * kwnames[] = { | |
27059 | (char *) "self",(char *) "align", NULL | |
27060 | }; | |
27061 | ||
27062 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail; | |
27063 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27064 | if (!SWIG_IsOK(res1)) { | |
27065 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27066 | } | |
27067 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27068 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27069 | if (!SWIG_IsOK(ecode2)) { | |
27070 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'"); | |
27071 | } | |
27072 | arg2 = static_cast< wxListColumnFormat >(val2); | |
27073 | { | |
27074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27075 | (arg1)->SetAlign(arg2); | |
27076 | wxPyEndAllowThreads(__tstate); | |
27077 | if (PyErr_Occurred()) SWIG_fail; | |
27078 | } | |
27079 | resultobj = SWIG_Py_Void(); | |
27080 | return resultobj; | |
27081 | fail: | |
27082 | return NULL; | |
27083 | } | |
27084 | ||
27085 | ||
27086 | SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27087 | PyObject *resultobj = 0; | |
27088 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27089 | wxColour *arg2 = 0 ; | |
27090 | void *argp1 = 0 ; | |
27091 | int res1 = 0 ; | |
27092 | wxColour temp2 ; | |
27093 | PyObject * obj0 = 0 ; | |
27094 | PyObject * obj1 = 0 ; | |
27095 | char * kwnames[] = { | |
27096 | (char *) "self",(char *) "colText", NULL | |
27097 | }; | |
27098 | ||
27099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
27100 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27101 | if (!SWIG_IsOK(res1)) { | |
27102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27103 | } | |
27104 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27105 | { | |
27106 | arg2 = &temp2; | |
27107 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
27108 | } | |
27109 | { | |
27110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27111 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
27112 | wxPyEndAllowThreads(__tstate); | |
27113 | if (PyErr_Occurred()) SWIG_fail; | |
27114 | } | |
27115 | resultobj = SWIG_Py_Void(); | |
27116 | return resultobj; | |
27117 | fail: | |
27118 | return NULL; | |
27119 | } | |
27120 | ||
27121 | ||
27122 | SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27123 | PyObject *resultobj = 0; | |
27124 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27125 | wxColour *arg2 = 0 ; | |
27126 | void *argp1 = 0 ; | |
27127 | int res1 = 0 ; | |
27128 | wxColour temp2 ; | |
27129 | PyObject * obj0 = 0 ; | |
27130 | PyObject * obj1 = 0 ; | |
27131 | char * kwnames[] = { | |
27132 | (char *) "self",(char *) "colBack", NULL | |
27133 | }; | |
27134 | ||
27135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
27136 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27137 | if (!SWIG_IsOK(res1)) { | |
27138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27139 | } | |
27140 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27141 | { | |
27142 | arg2 = &temp2; | |
27143 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
27144 | } | |
27145 | { | |
27146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27147 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
27148 | wxPyEndAllowThreads(__tstate); | |
27149 | if (PyErr_Occurred()) SWIG_fail; | |
27150 | } | |
27151 | resultobj = SWIG_Py_Void(); | |
27152 | return resultobj; | |
27153 | fail: | |
27154 | return NULL; | |
27155 | } | |
27156 | ||
27157 | ||
27158 | SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27159 | PyObject *resultobj = 0; | |
27160 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27161 | wxFont *arg2 = 0 ; | |
27162 | void *argp1 = 0 ; | |
27163 | int res1 = 0 ; | |
27164 | void *argp2 = 0 ; | |
27165 | int res2 = 0 ; | |
27166 | PyObject * obj0 = 0 ; | |
27167 | PyObject * obj1 = 0 ; | |
27168 | char * kwnames[] = { | |
27169 | (char *) "self",(char *) "font", NULL | |
27170 | }; | |
27171 | ||
27172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
27173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27174 | if (!SWIG_IsOK(res1)) { | |
27175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27176 | } | |
27177 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27178 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
27179 | if (!SWIG_IsOK(res2)) { | |
27180 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
27181 | } | |
27182 | if (!argp2) { | |
27183 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
27184 | } | |
27185 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
27186 | { | |
27187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27188 | (arg1)->SetFont((wxFont const &)*arg2); | |
27189 | wxPyEndAllowThreads(__tstate); | |
27190 | if (PyErr_Occurred()) SWIG_fail; | |
27191 | } | |
27192 | resultobj = SWIG_Py_Void(); | |
27193 | return resultobj; | |
27194 | fail: | |
27195 | return NULL; | |
d55e5bfc RD |
27196 | } |
27197 | ||
27198 | ||
1bd55598 RD |
27199 | SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27200 | PyObject *resultobj = 0; | |
27201 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27202 | long result; | |
27203 | void *argp1 = 0 ; | |
27204 | int res1 = 0 ; | |
27205 | PyObject *swig_obj[1] ; | |
27206 | ||
27207 | if (!args) SWIG_fail; | |
27208 | swig_obj[0] = args; | |
27209 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27210 | if (!SWIG_IsOK(res1)) { | |
27211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27212 | } | |
27213 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27214 | { | |
27215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27216 | result = (long)(arg1)->GetMask(); | |
27217 | wxPyEndAllowThreads(__tstate); | |
27218 | if (PyErr_Occurred()) SWIG_fail; | |
27219 | } | |
27220 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27221 | return resultobj; | |
27222 | fail: | |
27223 | return NULL; | |
d55e5bfc RD |
27224 | } |
27225 | ||
27226 | ||
1bd55598 RD |
27227 | SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27228 | PyObject *resultobj = 0; | |
27229 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27230 | long result; | |
27231 | void *argp1 = 0 ; | |
27232 | int res1 = 0 ; | |
27233 | PyObject *swig_obj[1] ; | |
27234 | ||
27235 | if (!args) SWIG_fail; | |
27236 | swig_obj[0] = args; | |
27237 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27238 | if (!SWIG_IsOK(res1)) { | |
27239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27240 | } | |
27241 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27242 | { | |
27243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27244 | result = (long)(arg1)->GetId(); | |
27245 | wxPyEndAllowThreads(__tstate); | |
27246 | if (PyErr_Occurred()) SWIG_fail; | |
27247 | } | |
27248 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27249 | return resultobj; | |
27250 | fail: | |
27251 | return NULL; | |
d55e5bfc RD |
27252 | } |
27253 | ||
27254 | ||
1bd55598 RD |
27255 | SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27256 | PyObject *resultobj = 0; | |
27257 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27258 | int result; | |
27259 | void *argp1 = 0 ; | |
27260 | int res1 = 0 ; | |
27261 | PyObject *swig_obj[1] ; | |
27262 | ||
27263 | if (!args) SWIG_fail; | |
27264 | swig_obj[0] = args; | |
27265 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27266 | if (!SWIG_IsOK(res1)) { | |
27267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27268 | } | |
27269 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27270 | { | |
27271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27272 | result = (int)(arg1)->GetColumn(); | |
27273 | wxPyEndAllowThreads(__tstate); | |
27274 | if (PyErr_Occurred()) SWIG_fail; | |
27275 | } | |
27276 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27277 | return resultobj; | |
27278 | fail: | |
27279 | return NULL; | |
d55e5bfc RD |
27280 | } |
27281 | ||
27282 | ||
1bd55598 RD |
27283 | SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27284 | PyObject *resultobj = 0; | |
27285 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27286 | long result; | |
27287 | void *argp1 = 0 ; | |
27288 | int res1 = 0 ; | |
27289 | PyObject *swig_obj[1] ; | |
27290 | ||
27291 | if (!args) SWIG_fail; | |
27292 | swig_obj[0] = args; | |
27293 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27294 | if (!SWIG_IsOK(res1)) { | |
27295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27296 | } | |
27297 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27298 | { | |
27299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27300 | result = (long)(arg1)->GetState(); | |
27301 | wxPyEndAllowThreads(__tstate); | |
27302 | if (PyErr_Occurred()) SWIG_fail; | |
27303 | } | |
27304 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27305 | return resultobj; | |
27306 | fail: | |
27307 | return NULL; | |
8fb0e70a RD |
27308 | } |
27309 | ||
27310 | ||
1bd55598 RD |
27311 | SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27312 | PyObject *resultobj = 0; | |
27313 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27314 | wxString *result = 0 ; | |
27315 | void *argp1 = 0 ; | |
27316 | int res1 = 0 ; | |
27317 | PyObject *swig_obj[1] ; | |
27318 | ||
27319 | if (!args) SWIG_fail; | |
27320 | swig_obj[0] = args; | |
27321 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27322 | if (!SWIG_IsOK(res1)) { | |
27323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27324 | } | |
27325 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27326 | { | |
27327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 27328 | { |
1bd55598 RD |
27329 | wxString const &_result_ref = (arg1)->GetText(); |
27330 | result = (wxString *) &_result_ref; | |
36ed4f51 | 27331 | } |
1bd55598 RD |
27332 | wxPyEndAllowThreads(__tstate); |
27333 | if (PyErr_Occurred()) SWIG_fail; | |
27334 | } | |
27335 | { | |
27336 | #if wxUSE_UNICODE | |
27337 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27338 | #else | |
27339 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27340 | #endif | |
27341 | } | |
27342 | return resultobj; | |
27343 | fail: | |
27344 | return NULL; | |
d55e5bfc RD |
27345 | } |
27346 | ||
27347 | ||
1bd55598 RD |
27348 | SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27349 | PyObject *resultobj = 0; | |
27350 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27351 | int result; | |
27352 | void *argp1 = 0 ; | |
27353 | int res1 = 0 ; | |
27354 | PyObject *swig_obj[1] ; | |
27355 | ||
27356 | if (!args) SWIG_fail; | |
27357 | swig_obj[0] = args; | |
27358 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27359 | if (!SWIG_IsOK(res1)) { | |
27360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27361 | } | |
27362 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27363 | { | |
27364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27365 | result = (int)(arg1)->GetImage(); | |
27366 | wxPyEndAllowThreads(__tstate); | |
27367 | if (PyErr_Occurred()) SWIG_fail; | |
27368 | } | |
27369 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27370 | return resultobj; | |
27371 | fail: | |
27372 | return NULL; | |
d55e5bfc RD |
27373 | } |
27374 | ||
27375 | ||
1bd55598 RD |
27376 | SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27377 | PyObject *resultobj = 0; | |
27378 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27379 | long result; | |
27380 | void *argp1 = 0 ; | |
27381 | int res1 = 0 ; | |
27382 | PyObject *swig_obj[1] ; | |
27383 | ||
27384 | if (!args) SWIG_fail; | |
27385 | swig_obj[0] = args; | |
27386 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27387 | if (!SWIG_IsOK(res1)) { | |
27388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27389 | } | |
27390 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27391 | { | |
27392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27393 | result = (long)(arg1)->GetData(); | |
27394 | wxPyEndAllowThreads(__tstate); | |
27395 | if (PyErr_Occurred()) SWIG_fail; | |
27396 | } | |
27397 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27398 | return resultobj; | |
27399 | fail: | |
27400 | return NULL; | |
d55e5bfc RD |
27401 | } |
27402 | ||
27403 | ||
1bd55598 RD |
27404 | SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27405 | PyObject *resultobj = 0; | |
27406 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27407 | int result; | |
27408 | void *argp1 = 0 ; | |
27409 | int res1 = 0 ; | |
27410 | PyObject *swig_obj[1] ; | |
27411 | ||
27412 | if (!args) SWIG_fail; | |
27413 | swig_obj[0] = args; | |
27414 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27415 | if (!SWIG_IsOK(res1)) { | |
27416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27417 | } | |
27418 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27419 | { | |
27420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27421 | result = (int)(arg1)->GetWidth(); | |
27422 | wxPyEndAllowThreads(__tstate); | |
27423 | if (PyErr_Occurred()) SWIG_fail; | |
27424 | } | |
27425 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27426 | return resultobj; | |
27427 | fail: | |
27428 | return NULL; | |
d55e5bfc RD |
27429 | } |
27430 | ||
27431 | ||
1bd55598 RD |
27432 | SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27433 | PyObject *resultobj = 0; | |
27434 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27435 | wxListColumnFormat result; | |
27436 | void *argp1 = 0 ; | |
27437 | int res1 = 0 ; | |
27438 | PyObject *swig_obj[1] ; | |
27439 | ||
27440 | if (!args) SWIG_fail; | |
27441 | swig_obj[0] = args; | |
27442 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27443 | if (!SWIG_IsOK(res1)) { | |
27444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27445 | } | |
27446 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27447 | { | |
27448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27449 | result = (wxListColumnFormat)(arg1)->GetAlign(); | |
27450 | wxPyEndAllowThreads(__tstate); | |
27451 | if (PyErr_Occurred()) SWIG_fail; | |
27452 | } | |
27453 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27454 | return resultobj; | |
27455 | fail: | |
27456 | return NULL; | |
d55e5bfc RD |
27457 | } |
27458 | ||
27459 | ||
1bd55598 RD |
27460 | SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27461 | PyObject *resultobj = 0; | |
27462 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27463 | wxListItemAttr *result = 0 ; | |
27464 | void *argp1 = 0 ; | |
27465 | int res1 = 0 ; | |
27466 | PyObject *swig_obj[1] ; | |
27467 | ||
27468 | if (!args) SWIG_fail; | |
27469 | swig_obj[0] = args; | |
27470 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27471 | if (!SWIG_IsOK(res1)) { | |
27472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27473 | } | |
27474 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27475 | { | |
27476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27477 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
27478 | wxPyEndAllowThreads(__tstate); | |
27479 | if (PyErr_Occurred()) SWIG_fail; | |
27480 | } | |
27481 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
27482 | return resultobj; | |
27483 | fail: | |
27484 | return NULL; | |
d55e5bfc RD |
27485 | } |
27486 | ||
27487 | ||
1bd55598 RD |
27488 | SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27489 | PyObject *resultobj = 0; | |
27490 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27491 | bool result; | |
27492 | void *argp1 = 0 ; | |
27493 | int res1 = 0 ; | |
27494 | PyObject *swig_obj[1] ; | |
27495 | ||
27496 | if (!args) SWIG_fail; | |
27497 | swig_obj[0] = args; | |
27498 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27499 | if (!SWIG_IsOK(res1)) { | |
27500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27501 | } | |
27502 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27503 | { | |
27504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27505 | result = (bool)(arg1)->HasAttributes(); | |
27506 | wxPyEndAllowThreads(__tstate); | |
27507 | if (PyErr_Occurred()) SWIG_fail; | |
27508 | } | |
27509 | { | |
27510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27511 | } | |
27512 | return resultobj; | |
27513 | fail: | |
27514 | return NULL; | |
d55e5bfc RD |
27515 | } |
27516 | ||
27517 | ||
1bd55598 RD |
27518 | SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27519 | PyObject *resultobj = 0; | |
27520 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27521 | wxColour result; | |
27522 | void *argp1 = 0 ; | |
27523 | int res1 = 0 ; | |
27524 | PyObject *swig_obj[1] ; | |
27525 | ||
27526 | if (!args) SWIG_fail; | |
27527 | swig_obj[0] = args; | |
27528 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27529 | if (!SWIG_IsOK(res1)) { | |
27530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
27531 | } | |
27532 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27533 | { | |
27534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27535 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
27536 | wxPyEndAllowThreads(__tstate); | |
27537 | if (PyErr_Occurred()) SWIG_fail; | |
27538 | } | |
27539 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
27540 | return resultobj; | |
27541 | fail: | |
27542 | return NULL; | |
d55e5bfc RD |
27543 | } |
27544 | ||
27545 | ||
1bd55598 RD |
27546 | SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27547 | PyObject *resultobj = 0; | |
27548 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27549 | wxColour result; | |
27550 | void *argp1 = 0 ; | |
27551 | int res1 = 0 ; | |
27552 | PyObject *swig_obj[1] ; | |
27553 | ||
27554 | if (!args) SWIG_fail; | |
27555 | swig_obj[0] = args; | |
27556 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27557 | if (!SWIG_IsOK(res1)) { | |
27558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
27559 | } | |
27560 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27561 | { | |
27562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27563 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
27564 | wxPyEndAllowThreads(__tstate); | |
27565 | if (PyErr_Occurred()) SWIG_fail; | |
27566 | } | |
27567 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
27568 | return resultobj; | |
27569 | fail: | |
27570 | return NULL; | |
d55e5bfc RD |
27571 | } |
27572 | ||
27573 | ||
1bd55598 RD |
27574 | SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27575 | PyObject *resultobj = 0; | |
27576 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27577 | wxFont result; | |
27578 | void *argp1 = 0 ; | |
27579 | int res1 = 0 ; | |
27580 | PyObject *swig_obj[1] ; | |
27581 | ||
27582 | if (!args) SWIG_fail; | |
27583 | swig_obj[0] = args; | |
27584 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27585 | if (!SWIG_IsOK(res1)) { | |
27586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
27587 | } | |
27588 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27589 | { | |
27590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27591 | result = ((wxListItem const *)arg1)->GetFont(); | |
27592 | wxPyEndAllowThreads(__tstate); | |
27593 | if (PyErr_Occurred()) SWIG_fail; | |
27594 | } | |
27595 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
27596 | return resultobj; | |
27597 | fail: | |
27598 | return NULL; | |
27599 | } | |
27600 | ||
27601 | ||
27602 | SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27603 | PyObject *resultobj = 0; | |
27604 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27605 | long arg2 ; | |
27606 | void *argp1 = 0 ; | |
27607 | int res1 = 0 ; | |
27608 | long val2 ; | |
27609 | int ecode2 = 0 ; | |
27610 | PyObject *swig_obj[2] ; | |
27611 | ||
27612 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail; | |
27613 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27614 | if (!SWIG_IsOK(res1)) { | |
27615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27616 | } | |
27617 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27618 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27619 | if (!SWIG_IsOK(ecode2)) { | |
27620 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'"); | |
27621 | } | |
27622 | arg2 = static_cast< long >(val2); | |
27623 | if (arg1) (arg1)->m_mask = arg2; | |
27624 | ||
27625 | resultobj = SWIG_Py_Void(); | |
27626 | return resultobj; | |
27627 | fail: | |
27628 | return NULL; | |
d55e5bfc RD |
27629 | } |
27630 | ||
27631 | ||
1bd55598 RD |
27632 | SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27633 | PyObject *resultobj = 0; | |
27634 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27635 | long result; | |
27636 | void *argp1 = 0 ; | |
27637 | int res1 = 0 ; | |
27638 | PyObject *swig_obj[1] ; | |
27639 | ||
27640 | if (!args) SWIG_fail; | |
27641 | swig_obj[0] = args; | |
27642 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27643 | if (!SWIG_IsOK(res1)) { | |
27644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27645 | } | |
27646 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27647 | result = (long) ((arg1)->m_mask); | |
27648 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27649 | return resultobj; | |
27650 | fail: | |
27651 | return NULL; | |
27652 | } | |
27653 | ||
27654 | ||
27655 | SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27656 | PyObject *resultobj = 0; | |
27657 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27658 | long arg2 ; | |
27659 | void *argp1 = 0 ; | |
27660 | int res1 = 0 ; | |
27661 | long val2 ; | |
27662 | int ecode2 = 0 ; | |
27663 | PyObject *swig_obj[2] ; | |
27664 | ||
27665 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail; | |
27666 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27667 | if (!SWIG_IsOK(res1)) { | |
27668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27669 | } | |
27670 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27671 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27672 | if (!SWIG_IsOK(ecode2)) { | |
27673 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'"); | |
27674 | } | |
27675 | arg2 = static_cast< long >(val2); | |
27676 | if (arg1) (arg1)->m_itemId = arg2; | |
27677 | ||
27678 | resultobj = SWIG_Py_Void(); | |
27679 | return resultobj; | |
27680 | fail: | |
27681 | return NULL; | |
7e08d4ef RD |
27682 | } |
27683 | ||
27684 | ||
1bd55598 RD |
27685 | SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27686 | PyObject *resultobj = 0; | |
27687 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27688 | long result; | |
27689 | void *argp1 = 0 ; | |
27690 | int res1 = 0 ; | |
27691 | PyObject *swig_obj[1] ; | |
27692 | ||
27693 | if (!args) SWIG_fail; | |
27694 | swig_obj[0] = args; | |
27695 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27696 | if (!SWIG_IsOK(res1)) { | |
27697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27698 | } | |
27699 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27700 | result = (long) ((arg1)->m_itemId); | |
27701 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27702 | return resultobj; | |
27703 | fail: | |
27704 | return NULL; | |
27705 | } | |
27706 | ||
27707 | ||
27708 | SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27709 | PyObject *resultobj = 0; | |
27710 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27711 | int arg2 ; | |
27712 | void *argp1 = 0 ; | |
27713 | int res1 = 0 ; | |
27714 | int val2 ; | |
27715 | int ecode2 = 0 ; | |
27716 | PyObject *swig_obj[2] ; | |
27717 | ||
27718 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail; | |
27719 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27720 | if (!SWIG_IsOK(res1)) { | |
27721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27722 | } | |
27723 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27724 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27725 | if (!SWIG_IsOK(ecode2)) { | |
27726 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'"); | |
27727 | } | |
27728 | arg2 = static_cast< int >(val2); | |
27729 | if (arg1) (arg1)->m_col = arg2; | |
27730 | ||
27731 | resultobj = SWIG_Py_Void(); | |
27732 | return resultobj; | |
27733 | fail: | |
27734 | return NULL; | |
7e08d4ef RD |
27735 | } |
27736 | ||
27737 | ||
1bd55598 RD |
27738 | SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27739 | PyObject *resultobj = 0; | |
27740 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27741 | int result; | |
27742 | void *argp1 = 0 ; | |
27743 | int res1 = 0 ; | |
27744 | PyObject *swig_obj[1] ; | |
27745 | ||
27746 | if (!args) SWIG_fail; | |
27747 | swig_obj[0] = args; | |
27748 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27749 | if (!SWIG_IsOK(res1)) { | |
27750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27751 | } | |
27752 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27753 | result = (int) ((arg1)->m_col); | |
27754 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27755 | return resultobj; | |
27756 | fail: | |
27757 | return NULL; | |
27758 | } | |
27759 | ||
27760 | ||
27761 | SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27762 | PyObject *resultobj = 0; | |
27763 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27764 | long arg2 ; | |
27765 | void *argp1 = 0 ; | |
27766 | int res1 = 0 ; | |
27767 | long val2 ; | |
27768 | int ecode2 = 0 ; | |
27769 | PyObject *swig_obj[2] ; | |
27770 | ||
27771 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail; | |
27772 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27773 | if (!SWIG_IsOK(res1)) { | |
27774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27775 | } | |
27776 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27777 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27778 | if (!SWIG_IsOK(ecode2)) { | |
27779 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'"); | |
27780 | } | |
27781 | arg2 = static_cast< long >(val2); | |
27782 | if (arg1) (arg1)->m_state = arg2; | |
27783 | ||
27784 | resultobj = SWIG_Py_Void(); | |
27785 | return resultobj; | |
27786 | fail: | |
27787 | return NULL; | |
7e08d4ef RD |
27788 | } |
27789 | ||
27790 | ||
1bd55598 RD |
27791 | SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27792 | PyObject *resultobj = 0; | |
27793 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27794 | long result; | |
27795 | void *argp1 = 0 ; | |
27796 | int res1 = 0 ; | |
27797 | PyObject *swig_obj[1] ; | |
27798 | ||
27799 | if (!args) SWIG_fail; | |
27800 | swig_obj[0] = args; | |
27801 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27802 | if (!SWIG_IsOK(res1)) { | |
27803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27804 | } | |
27805 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27806 | result = (long) ((arg1)->m_state); | |
27807 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27808 | return resultobj; | |
27809 | fail: | |
27810 | return NULL; | |
27811 | } | |
27812 | ||
27813 | ||
27814 | SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27815 | PyObject *resultobj = 0; | |
27816 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27817 | long arg2 ; | |
27818 | void *argp1 = 0 ; | |
27819 | int res1 = 0 ; | |
27820 | long val2 ; | |
27821 | int ecode2 = 0 ; | |
27822 | PyObject *swig_obj[2] ; | |
27823 | ||
27824 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail; | |
27825 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27826 | if (!SWIG_IsOK(res1)) { | |
27827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27828 | } | |
27829 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27830 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27831 | if (!SWIG_IsOK(ecode2)) { | |
27832 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'"); | |
27833 | } | |
27834 | arg2 = static_cast< long >(val2); | |
27835 | if (arg1) (arg1)->m_stateMask = arg2; | |
27836 | ||
27837 | resultobj = SWIG_Py_Void(); | |
27838 | return resultobj; | |
27839 | fail: | |
27840 | return NULL; | |
7e08d4ef RD |
27841 | } |
27842 | ||
27843 | ||
1bd55598 RD |
27844 | SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27845 | PyObject *resultobj = 0; | |
27846 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27847 | long result; | |
27848 | void *argp1 = 0 ; | |
27849 | int res1 = 0 ; | |
27850 | PyObject *swig_obj[1] ; | |
27851 | ||
27852 | if (!args) SWIG_fail; | |
27853 | swig_obj[0] = args; | |
27854 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27855 | if (!SWIG_IsOK(res1)) { | |
27856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27857 | } | |
27858 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27859 | result = (long) ((arg1)->m_stateMask); | |
27860 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27861 | return resultobj; | |
27862 | fail: | |
27863 | return NULL; | |
27864 | } | |
27865 | ||
27866 | ||
27867 | SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27868 | PyObject *resultobj = 0; | |
27869 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27870 | wxString *arg2 = (wxString *) 0 ; | |
27871 | void *argp1 = 0 ; | |
27872 | int res1 = 0 ; | |
27873 | bool temp2 = false ; | |
27874 | PyObject *swig_obj[2] ; | |
27875 | ||
27876 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail; | |
27877 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27878 | if (!SWIG_IsOK(res1)) { | |
27879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27880 | } | |
27881 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27882 | { | |
27883 | arg2 = wxString_in_helper(swig_obj[1]); | |
27884 | if (arg2 == NULL) SWIG_fail; | |
27885 | temp2 = true; | |
27886 | } | |
27887 | if (arg1) (arg1)->m_text = *arg2; | |
27888 | ||
27889 | resultobj = SWIG_Py_Void(); | |
27890 | { | |
27891 | if (temp2) | |
27892 | delete arg2; | |
27893 | } | |
27894 | return resultobj; | |
27895 | fail: | |
27896 | { | |
27897 | if (temp2) | |
27898 | delete arg2; | |
27899 | } | |
27900 | return NULL; | |
7e08d4ef RD |
27901 | } |
27902 | ||
27903 | ||
1bd55598 RD |
27904 | SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27905 | PyObject *resultobj = 0; | |
27906 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27907 | wxString *result = 0 ; | |
27908 | void *argp1 = 0 ; | |
27909 | int res1 = 0 ; | |
27910 | PyObject *swig_obj[1] ; | |
27911 | ||
27912 | if (!args) SWIG_fail; | |
27913 | swig_obj[0] = args; | |
27914 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27915 | if (!SWIG_IsOK(res1)) { | |
27916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27917 | } | |
27918 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27919 | result = (wxString *)& ((arg1)->m_text); | |
27920 | { | |
27921 | #if wxUSE_UNICODE | |
27922 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27923 | #else | |
27924 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27925 | #endif | |
27926 | } | |
27927 | return resultobj; | |
27928 | fail: | |
27929 | return NULL; | |
d55e5bfc RD |
27930 | } |
27931 | ||
27932 | ||
1bd55598 RD |
27933 | SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27934 | PyObject *resultobj = 0; | |
27935 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27936 | int arg2 ; | |
27937 | void *argp1 = 0 ; | |
27938 | int res1 = 0 ; | |
27939 | int val2 ; | |
27940 | int ecode2 = 0 ; | |
27941 | PyObject *swig_obj[2] ; | |
27942 | ||
27943 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail; | |
27944 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27945 | if (!SWIG_IsOK(res1)) { | |
27946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27947 | } | |
27948 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27949 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27950 | if (!SWIG_IsOK(ecode2)) { | |
27951 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'"); | |
27952 | } | |
27953 | arg2 = static_cast< int >(val2); | |
27954 | if (arg1) (arg1)->m_image = arg2; | |
27955 | ||
27956 | resultobj = SWIG_Py_Void(); | |
27957 | return resultobj; | |
27958 | fail: | |
27959 | return NULL; | |
d55e5bfc RD |
27960 | } |
27961 | ||
27962 | ||
1bd55598 RD |
27963 | SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27964 | PyObject *resultobj = 0; | |
27965 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27966 | int result; | |
27967 | void *argp1 = 0 ; | |
27968 | int res1 = 0 ; | |
27969 | PyObject *swig_obj[1] ; | |
27970 | ||
27971 | if (!args) SWIG_fail; | |
27972 | swig_obj[0] = args; | |
27973 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27974 | if (!SWIG_IsOK(res1)) { | |
27975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27976 | } | |
27977 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27978 | result = (int) ((arg1)->m_image); | |
27979 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27980 | return resultobj; | |
27981 | fail: | |
27982 | return NULL; | |
27983 | } | |
27984 | ||
27985 | ||
27986 | SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27987 | PyObject *resultobj = 0; | |
27988 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27989 | long arg2 ; | |
27990 | void *argp1 = 0 ; | |
27991 | int res1 = 0 ; | |
27992 | long val2 ; | |
27993 | int ecode2 = 0 ; | |
27994 | PyObject *swig_obj[2] ; | |
27995 | ||
27996 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail; | |
27997 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27998 | if (!SWIG_IsOK(res1)) { | |
27999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28000 | } | |
28001 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28002 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
28003 | if (!SWIG_IsOK(ecode2)) { | |
28004 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'"); | |
28005 | } | |
28006 | arg2 = static_cast< long >(val2); | |
28007 | if (arg1) (arg1)->m_data = arg2; | |
28008 | ||
28009 | resultobj = SWIG_Py_Void(); | |
28010 | return resultobj; | |
28011 | fail: | |
28012 | return NULL; | |
d55e5bfc RD |
28013 | } |
28014 | ||
28015 | ||
1bd55598 RD |
28016 | SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28017 | PyObject *resultobj = 0; | |
28018 | wxListItem *arg1 = (wxListItem *) 0 ; | |
28019 | long result; | |
28020 | void *argp1 = 0 ; | |
28021 | int res1 = 0 ; | |
28022 | PyObject *swig_obj[1] ; | |
28023 | ||
28024 | if (!args) SWIG_fail; | |
28025 | swig_obj[0] = args; | |
28026 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28027 | if (!SWIG_IsOK(res1)) { | |
28028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28029 | } | |
28030 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28031 | result = (long) ((arg1)->m_data); | |
28032 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28033 | return resultobj; | |
28034 | fail: | |
28035 | return NULL; | |
28036 | } | |
28037 | ||
28038 | ||
28039 | SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28040 | PyObject *resultobj = 0; | |
28041 | wxListItem *arg1 = (wxListItem *) 0 ; | |
28042 | int arg2 ; | |
28043 | void *argp1 = 0 ; | |
28044 | int res1 = 0 ; | |
28045 | int val2 ; | |
28046 | int ecode2 = 0 ; | |
28047 | PyObject *swig_obj[2] ; | |
28048 | ||
28049 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail; | |
28050 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28051 | if (!SWIG_IsOK(res1)) { | |
28052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28053 | } | |
28054 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28055 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
28056 | if (!SWIG_IsOK(ecode2)) { | |
28057 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'"); | |
28058 | } | |
28059 | arg2 = static_cast< int >(val2); | |
28060 | if (arg1) (arg1)->m_format = arg2; | |
28061 | ||
28062 | resultobj = SWIG_Py_Void(); | |
28063 | return resultobj; | |
28064 | fail: | |
28065 | return NULL; | |
d55e5bfc RD |
28066 | } |
28067 | ||
28068 | ||
1bd55598 RD |
28069 | SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28070 | PyObject *resultobj = 0; | |
28071 | wxListItem *arg1 = (wxListItem *) 0 ; | |
28072 | int result; | |
28073 | void *argp1 = 0 ; | |
28074 | int res1 = 0 ; | |
28075 | PyObject *swig_obj[1] ; | |
28076 | ||
28077 | if (!args) SWIG_fail; | |
28078 | swig_obj[0] = args; | |
28079 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28080 | if (!SWIG_IsOK(res1)) { | |
28081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28082 | } | |
28083 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28084 | result = (int) ((arg1)->m_format); | |
28085 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28086 | return resultobj; | |
28087 | fail: | |
28088 | return NULL; | |
28089 | } | |
28090 | ||
28091 | ||
28092 | SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28093 | PyObject *resultobj = 0; | |
28094 | wxListItem *arg1 = (wxListItem *) 0 ; | |
28095 | int arg2 ; | |
28096 | void *argp1 = 0 ; | |
28097 | int res1 = 0 ; | |
28098 | int val2 ; | |
28099 | int ecode2 = 0 ; | |
28100 | PyObject *swig_obj[2] ; | |
28101 | ||
28102 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail; | |
28103 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28104 | if (!SWIG_IsOK(res1)) { | |
28105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28106 | } | |
28107 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28108 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
28109 | if (!SWIG_IsOK(ecode2)) { | |
28110 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'"); | |
28111 | } | |
28112 | arg2 = static_cast< int >(val2); | |
28113 | if (arg1) (arg1)->m_width = arg2; | |
28114 | ||
28115 | resultobj = SWIG_Py_Void(); | |
28116 | return resultobj; | |
28117 | fail: | |
28118 | return NULL; | |
d55e5bfc RD |
28119 | } |
28120 | ||
28121 | ||
1bd55598 RD |
28122 | SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28123 | PyObject *resultobj = 0; | |
28124 | wxListItem *arg1 = (wxListItem *) 0 ; | |
28125 | int result; | |
28126 | void *argp1 = 0 ; | |
28127 | int res1 = 0 ; | |
28128 | PyObject *swig_obj[1] ; | |
28129 | ||
28130 | if (!args) SWIG_fail; | |
28131 | swig_obj[0] = args; | |
28132 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28133 | if (!SWIG_IsOK(res1)) { | |
28134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28135 | } | |
28136 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28137 | result = (int) ((arg1)->m_width); | |
28138 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28139 | return resultobj; | |
28140 | fail: | |
28141 | return NULL; | |
28142 | } | |
28143 | ||
28144 | ||
28145 | SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28146 | PyObject *obj; | |
28147 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28148 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj)); | |
28149 | return SWIG_Py_Void(); | |
28150 | } | |
28151 | ||
28152 | SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28153 | return SWIG_Python_InitShadowInstance(args); | |
28154 | } | |
28155 | ||
28156 | SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28157 | PyObject *resultobj = 0; | |
28158 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
28159 | int arg2 = (int) 0 ; | |
28160 | wxListEvent *result = 0 ; | |
28161 | int val1 ; | |
28162 | int ecode1 = 0 ; | |
28163 | int val2 ; | |
28164 | int ecode2 = 0 ; | |
28165 | PyObject * obj0 = 0 ; | |
28166 | PyObject * obj1 = 0 ; | |
28167 | char * kwnames[] = { | |
28168 | (char *) "commandType",(char *) "id", NULL | |
28169 | }; | |
28170 | ||
28171 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
28172 | if (obj0) { | |
28173 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
28174 | if (!SWIG_IsOK(ecode1)) { | |
28175 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
28176 | } | |
28177 | arg1 = static_cast< wxEventType >(val1); | |
28178 | } | |
28179 | if (obj1) { | |
28180 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28181 | if (!SWIG_IsOK(ecode2)) { | |
28182 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'"); | |
28183 | } | |
28184 | arg2 = static_cast< int >(val2); | |
28185 | } | |
28186 | { | |
28187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28188 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
28189 | wxPyEndAllowThreads(__tstate); | |
28190 | if (PyErr_Occurred()) SWIG_fail; | |
28191 | } | |
28192 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 ); | |
28193 | return resultobj; | |
28194 | fail: | |
28195 | return NULL; | |
28196 | } | |
28197 | ||
28198 | ||
28199 | SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28200 | PyObject *resultobj = 0; | |
28201 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28202 | int arg2 ; | |
28203 | void *argp1 = 0 ; | |
28204 | int res1 = 0 ; | |
28205 | int val2 ; | |
28206 | int ecode2 = 0 ; | |
28207 | PyObject *swig_obj[2] ; | |
28208 | ||
28209 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail; | |
28210 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28211 | if (!SWIG_IsOK(res1)) { | |
28212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28213 | } | |
28214 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28215 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
28216 | if (!SWIG_IsOK(ecode2)) { | |
28217 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'"); | |
28218 | } | |
28219 | arg2 = static_cast< int >(val2); | |
28220 | if (arg1) (arg1)->m_code = arg2; | |
28221 | ||
28222 | resultobj = SWIG_Py_Void(); | |
28223 | return resultobj; | |
28224 | fail: | |
28225 | return NULL; | |
d55e5bfc RD |
28226 | } |
28227 | ||
28228 | ||
1bd55598 RD |
28229 | SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28230 | PyObject *resultobj = 0; | |
28231 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28232 | int result; | |
28233 | void *argp1 = 0 ; | |
28234 | int res1 = 0 ; | |
28235 | PyObject *swig_obj[1] ; | |
28236 | ||
28237 | if (!args) SWIG_fail; | |
28238 | swig_obj[0] = args; | |
28239 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28240 | if (!SWIG_IsOK(res1)) { | |
28241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28242 | } | |
28243 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28244 | result = (int) ((arg1)->m_code); | |
28245 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28246 | return resultobj; | |
28247 | fail: | |
28248 | return NULL; | |
28249 | } | |
28250 | ||
28251 | ||
28252 | SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28253 | PyObject *resultobj = 0; | |
28254 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28255 | long arg2 ; | |
28256 | void *argp1 = 0 ; | |
28257 | int res1 = 0 ; | |
28258 | long val2 ; | |
28259 | int ecode2 = 0 ; | |
28260 | PyObject *swig_obj[2] ; | |
28261 | ||
28262 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail; | |
28263 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28264 | if (!SWIG_IsOK(res1)) { | |
28265 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28266 | } | |
28267 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28268 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
28269 | if (!SWIG_IsOK(ecode2)) { | |
28270 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'"); | |
28271 | } | |
28272 | arg2 = static_cast< long >(val2); | |
28273 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
28274 | ||
28275 | resultobj = SWIG_Py_Void(); | |
28276 | return resultobj; | |
28277 | fail: | |
28278 | return NULL; | |
d55e5bfc RD |
28279 | } |
28280 | ||
28281 | ||
1bd55598 RD |
28282 | SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28283 | PyObject *resultobj = 0; | |
28284 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28285 | long result; | |
28286 | void *argp1 = 0 ; | |
28287 | int res1 = 0 ; | |
28288 | PyObject *swig_obj[1] ; | |
28289 | ||
28290 | if (!args) SWIG_fail; | |
28291 | swig_obj[0] = args; | |
28292 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28293 | if (!SWIG_IsOK(res1)) { | |
28294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28295 | } | |
28296 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28297 | result = (long) ((arg1)->m_oldItemIndex); | |
28298 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28299 | return resultobj; | |
28300 | fail: | |
28301 | return NULL; | |
28302 | } | |
28303 | ||
28304 | ||
28305 | SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28306 | PyObject *resultobj = 0; | |
28307 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28308 | long arg2 ; | |
28309 | void *argp1 = 0 ; | |
28310 | int res1 = 0 ; | |
28311 | long val2 ; | |
28312 | int ecode2 = 0 ; | |
28313 | PyObject *swig_obj[2] ; | |
28314 | ||
28315 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail; | |
28316 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28317 | if (!SWIG_IsOK(res1)) { | |
28318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28319 | } | |
28320 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28321 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
28322 | if (!SWIG_IsOK(ecode2)) { | |
28323 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'"); | |
28324 | } | |
28325 | arg2 = static_cast< long >(val2); | |
28326 | if (arg1) (arg1)->m_itemIndex = arg2; | |
28327 | ||
28328 | resultobj = SWIG_Py_Void(); | |
28329 | return resultobj; | |
28330 | fail: | |
28331 | return NULL; | |
f20a2e1f RD |
28332 | } |
28333 | ||
28334 | ||
1bd55598 RD |
28335 | SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28336 | PyObject *resultobj = 0; | |
28337 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28338 | long result; | |
28339 | void *argp1 = 0 ; | |
28340 | int res1 = 0 ; | |
28341 | PyObject *swig_obj[1] ; | |
28342 | ||
28343 | if (!args) SWIG_fail; | |
28344 | swig_obj[0] = args; | |
28345 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28346 | if (!SWIG_IsOK(res1)) { | |
28347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28348 | } | |
28349 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28350 | result = (long) ((arg1)->m_itemIndex); | |
28351 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28352 | return resultobj; | |
28353 | fail: | |
28354 | return NULL; | |
28355 | } | |
28356 | ||
28357 | ||
28358 | SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28359 | PyObject *resultobj = 0; | |
28360 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28361 | int arg2 ; | |
28362 | void *argp1 = 0 ; | |
28363 | int res1 = 0 ; | |
28364 | int val2 ; | |
28365 | int ecode2 = 0 ; | |
28366 | PyObject *swig_obj[2] ; | |
28367 | ||
28368 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail; | |
28369 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28370 | if (!SWIG_IsOK(res1)) { | |
28371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28372 | } | |
28373 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28374 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
28375 | if (!SWIG_IsOK(ecode2)) { | |
28376 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'"); | |
28377 | } | |
28378 | arg2 = static_cast< int >(val2); | |
28379 | if (arg1) (arg1)->m_col = arg2; | |
28380 | ||
28381 | resultobj = SWIG_Py_Void(); | |
28382 | return resultobj; | |
28383 | fail: | |
28384 | return NULL; | |
d55e5bfc RD |
28385 | } |
28386 | ||
28387 | ||
1bd55598 RD |
28388 | SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(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_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28401 | } | |
28402 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28403 | result = (int) ((arg1)->m_col); | |
28404 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28405 | return resultobj; | |
28406 | fail: | |
28407 | return NULL; | |
28408 | } | |
28409 | ||
28410 | ||
28411 | SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28412 | PyObject *resultobj = 0; | |
28413 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28414 | wxPoint *arg2 = (wxPoint *) 0 ; | |
28415 | void *argp1 = 0 ; | |
28416 | int res1 = 0 ; | |
28417 | void *argp2 = 0 ; | |
28418 | int res2 = 0 ; | |
28419 | PyObject *swig_obj[2] ; | |
28420 | ||
28421 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail; | |
28422 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28423 | if (!SWIG_IsOK(res1)) { | |
28424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28425 | } | |
28426 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28427 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 ); | |
28428 | if (!SWIG_IsOK(res2)) { | |
28429 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'"); | |
28430 | } | |
28431 | arg2 = reinterpret_cast< wxPoint * >(argp2); | |
28432 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
28433 | ||
28434 | resultobj = SWIG_Py_Void(); | |
28435 | return resultobj; | |
28436 | fail: | |
28437 | return NULL; | |
d55e5bfc RD |
28438 | } |
28439 | ||
28440 | ||
1bd55598 RD |
28441 | SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28442 | PyObject *resultobj = 0; | |
28443 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28444 | wxPoint *result = 0 ; | |
28445 | void *argp1 = 0 ; | |
28446 | int res1 = 0 ; | |
28447 | PyObject *swig_obj[1] ; | |
28448 | ||
28449 | if (!args) SWIG_fail; | |
28450 | swig_obj[0] = args; | |
28451 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28452 | if (!SWIG_IsOK(res1)) { | |
28453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28454 | } | |
28455 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28456 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
28457 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 ); | |
28458 | return resultobj; | |
28459 | fail: | |
28460 | return NULL; | |
28461 | } | |
28462 | ||
28463 | ||
28464 | SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28465 | PyObject *resultobj = 0; | |
28466 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28467 | wxListItem *result = 0 ; | |
28468 | void *argp1 = 0 ; | |
28469 | int res1 = 0 ; | |
28470 | PyObject *swig_obj[1] ; | |
28471 | ||
28472 | if (!args) SWIG_fail; | |
28473 | swig_obj[0] = args; | |
28474 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28475 | if (!SWIG_IsOK(res1)) { | |
28476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28477 | } | |
28478 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28479 | result = (wxListItem *)& ((arg1)->m_item); | |
28480 | { | |
3ecece7e | 28481 | resultobj = wxPyMake_wxObject(result, 0); |
1bd55598 RD |
28482 | } |
28483 | return resultobj; | |
28484 | fail: | |
28485 | return NULL; | |
d55e5bfc RD |
28486 | } |
28487 | ||
28488 | ||
1bd55598 RD |
28489 | SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28490 | PyObject *resultobj = 0; | |
28491 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28492 | int result; | |
28493 | void *argp1 = 0 ; | |
28494 | int res1 = 0 ; | |
28495 | PyObject *swig_obj[1] ; | |
28496 | ||
28497 | if (!args) SWIG_fail; | |
28498 | swig_obj[0] = args; | |
28499 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28500 | if (!SWIG_IsOK(res1)) { | |
28501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28502 | } | |
28503 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28504 | { | |
28505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28506 | result = (int)(arg1)->GetKeyCode(); | |
28507 | wxPyEndAllowThreads(__tstate); | |
28508 | if (PyErr_Occurred()) SWIG_fail; | |
28509 | } | |
28510 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28511 | return resultobj; | |
28512 | fail: | |
28513 | return NULL; | |
d55e5bfc RD |
28514 | } |
28515 | ||
28516 | ||
1bd55598 RD |
28517 | SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28518 | PyObject *resultobj = 0; | |
28519 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28520 | long result; | |
28521 | void *argp1 = 0 ; | |
28522 | int res1 = 0 ; | |
28523 | PyObject *swig_obj[1] ; | |
28524 | ||
28525 | if (!args) SWIG_fail; | |
28526 | swig_obj[0] = args; | |
28527 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28528 | if (!SWIG_IsOK(res1)) { | |
28529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28530 | } | |
28531 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28532 | { | |
28533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28534 | result = (long)(arg1)->GetIndex(); | |
28535 | wxPyEndAllowThreads(__tstate); | |
28536 | if (PyErr_Occurred()) SWIG_fail; | |
28537 | } | |
28538 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28539 | return resultobj; | |
28540 | fail: | |
28541 | return NULL; | |
d55e5bfc RD |
28542 | } |
28543 | ||
28544 | ||
1bd55598 RD |
28545 | SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28546 | PyObject *resultobj = 0; | |
28547 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28548 | int result; | |
28549 | void *argp1 = 0 ; | |
28550 | int res1 = 0 ; | |
28551 | PyObject *swig_obj[1] ; | |
28552 | ||
28553 | if (!args) SWIG_fail; | |
28554 | swig_obj[0] = args; | |
28555 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28556 | if (!SWIG_IsOK(res1)) { | |
28557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28558 | } | |
28559 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28560 | { | |
28561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28562 | result = (int)(arg1)->GetColumn(); | |
28563 | wxPyEndAllowThreads(__tstate); | |
28564 | if (PyErr_Occurred()) SWIG_fail; | |
28565 | } | |
28566 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28567 | return resultobj; | |
28568 | fail: | |
28569 | return NULL; | |
d55e5bfc RD |
28570 | } |
28571 | ||
28572 | ||
1bd55598 RD |
28573 | SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28574 | PyObject *resultobj = 0; | |
28575 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28576 | wxPoint result; | |
28577 | void *argp1 = 0 ; | |
28578 | int res1 = 0 ; | |
28579 | PyObject *swig_obj[1] ; | |
28580 | ||
28581 | if (!args) SWIG_fail; | |
28582 | swig_obj[0] = args; | |
28583 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28584 | if (!SWIG_IsOK(res1)) { | |
28585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28586 | } | |
28587 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28588 | { | |
28589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28590 | result = (arg1)->GetPoint(); | |
28591 | wxPyEndAllowThreads(__tstate); | |
28592 | if (PyErr_Occurred()) SWIG_fail; | |
28593 | } | |
28594 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
28595 | return resultobj; | |
28596 | fail: | |
28597 | return NULL; | |
d55e5bfc RD |
28598 | } |
28599 | ||
28600 | ||
1bd55598 RD |
28601 | SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28602 | PyObject *resultobj = 0; | |
28603 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28604 | wxString *result = 0 ; | |
28605 | void *argp1 = 0 ; | |
28606 | int res1 = 0 ; | |
28607 | PyObject *swig_obj[1] ; | |
28608 | ||
28609 | if (!args) SWIG_fail; | |
28610 | swig_obj[0] = args; | |
28611 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28612 | if (!SWIG_IsOK(res1)) { | |
28613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28614 | } | |
28615 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28616 | { | |
28617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 28618 | { |
1bd55598 RD |
28619 | wxString const &_result_ref = (arg1)->GetLabel(); |
28620 | result = (wxString *) &_result_ref; | |
d55e5bfc | 28621 | } |
1bd55598 RD |
28622 | wxPyEndAllowThreads(__tstate); |
28623 | if (PyErr_Occurred()) SWIG_fail; | |
28624 | } | |
28625 | { | |
28626 | #if wxUSE_UNICODE | |
28627 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28628 | #else | |
28629 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28630 | #endif | |
28631 | } | |
28632 | return resultobj; | |
28633 | fail: | |
28634 | return NULL; | |
d55e5bfc RD |
28635 | } |
28636 | ||
28637 | ||
1bd55598 RD |
28638 | SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28639 | PyObject *resultobj = 0; | |
28640 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28641 | wxString *result = 0 ; | |
28642 | void *argp1 = 0 ; | |
28643 | int res1 = 0 ; | |
28644 | PyObject *swig_obj[1] ; | |
28645 | ||
28646 | if (!args) SWIG_fail; | |
28647 | swig_obj[0] = args; | |
28648 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28649 | if (!SWIG_IsOK(res1)) { | |
28650 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28651 | } | |
28652 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28653 | { | |
28654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 28655 | { |
1bd55598 RD |
28656 | wxString const &_result_ref = (arg1)->GetText(); |
28657 | result = (wxString *) &_result_ref; | |
36ed4f51 | 28658 | } |
1bd55598 RD |
28659 | wxPyEndAllowThreads(__tstate); |
28660 | if (PyErr_Occurred()) SWIG_fail; | |
28661 | } | |
28662 | { | |
28663 | #if wxUSE_UNICODE | |
28664 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28665 | #else | |
28666 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28667 | #endif | |
28668 | } | |
28669 | return resultobj; | |
28670 | fail: | |
28671 | return NULL; | |
d55e5bfc RD |
28672 | } |
28673 | ||
28674 | ||
1bd55598 RD |
28675 | SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28676 | PyObject *resultobj = 0; | |
28677 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28678 | int result; | |
28679 | void *argp1 = 0 ; | |
28680 | int res1 = 0 ; | |
28681 | PyObject *swig_obj[1] ; | |
28682 | ||
28683 | if (!args) SWIG_fail; | |
28684 | swig_obj[0] = args; | |
28685 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28686 | if (!SWIG_IsOK(res1)) { | |
28687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28688 | } | |
28689 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28690 | { | |
28691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28692 | result = (int)(arg1)->GetImage(); | |
28693 | wxPyEndAllowThreads(__tstate); | |
28694 | if (PyErr_Occurred()) SWIG_fail; | |
28695 | } | |
28696 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28697 | return resultobj; | |
28698 | fail: | |
28699 | return NULL; | |
d55e5bfc RD |
28700 | } |
28701 | ||
28702 | ||
1bd55598 RD |
28703 | SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28704 | PyObject *resultobj = 0; | |
28705 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28706 | long result; | |
28707 | void *argp1 = 0 ; | |
28708 | int res1 = 0 ; | |
28709 | PyObject *swig_obj[1] ; | |
28710 | ||
28711 | if (!args) SWIG_fail; | |
28712 | swig_obj[0] = args; | |
28713 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28714 | if (!SWIG_IsOK(res1)) { | |
28715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28716 | } | |
28717 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28718 | { | |
28719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28720 | result = (long)(arg1)->GetData(); | |
28721 | wxPyEndAllowThreads(__tstate); | |
28722 | if (PyErr_Occurred()) SWIG_fail; | |
28723 | } | |
28724 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28725 | return resultobj; | |
28726 | fail: | |
28727 | return NULL; | |
d55e5bfc RD |
28728 | } |
28729 | ||
28730 | ||
1bd55598 RD |
28731 | SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28732 | PyObject *resultobj = 0; | |
28733 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28734 | long result; | |
28735 | void *argp1 = 0 ; | |
28736 | int res1 = 0 ; | |
28737 | PyObject *swig_obj[1] ; | |
28738 | ||
28739 | if (!args) SWIG_fail; | |
28740 | swig_obj[0] = args; | |
28741 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28742 | if (!SWIG_IsOK(res1)) { | |
28743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28744 | } | |
28745 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28746 | { | |
28747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28748 | result = (long)(arg1)->GetMask(); | |
28749 | wxPyEndAllowThreads(__tstate); | |
28750 | if (PyErr_Occurred()) SWIG_fail; | |
28751 | } | |
28752 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28753 | return resultobj; | |
28754 | fail: | |
28755 | return NULL; | |
d55e5bfc RD |
28756 | } |
28757 | ||
28758 | ||
1bd55598 RD |
28759 | SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28760 | PyObject *resultobj = 0; | |
28761 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28762 | wxListItem *result = 0 ; | |
28763 | void *argp1 = 0 ; | |
28764 | int res1 = 0 ; | |
28765 | PyObject *swig_obj[1] ; | |
28766 | ||
28767 | if (!args) SWIG_fail; | |
28768 | swig_obj[0] = args; | |
28769 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28770 | if (!SWIG_IsOK(res1)) { | |
28771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28772 | } | |
28773 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28774 | { | |
28775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 28776 | { |
1bd55598 RD |
28777 | wxListItem const &_result_ref = (arg1)->GetItem(); |
28778 | result = (wxListItem *) &_result_ref; | |
d55e5bfc | 28779 | } |
1bd55598 RD |
28780 | wxPyEndAllowThreads(__tstate); |
28781 | if (PyErr_Occurred()) SWIG_fail; | |
28782 | } | |
28783 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28784 | return resultobj; | |
28785 | fail: | |
28786 | return NULL; | |
d55e5bfc RD |
28787 | } |
28788 | ||
28789 | ||
1bd55598 RD |
28790 | SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28791 | PyObject *resultobj = 0; | |
28792 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28793 | long result; | |
28794 | void *argp1 = 0 ; | |
28795 | int res1 = 0 ; | |
28796 | PyObject *swig_obj[1] ; | |
28797 | ||
28798 | if (!args) SWIG_fail; | |
28799 | swig_obj[0] = args; | |
28800 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28801 | if (!SWIG_IsOK(res1)) { | |
28802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28803 | } | |
28804 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28805 | { | |
28806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28807 | result = (long)(arg1)->GetCacheFrom(); | |
28808 | wxPyEndAllowThreads(__tstate); | |
28809 | if (PyErr_Occurred()) SWIG_fail; | |
28810 | } | |
28811 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28812 | return resultobj; | |
28813 | fail: | |
28814 | return NULL; | |
d55e5bfc RD |
28815 | } |
28816 | ||
28817 | ||
1bd55598 RD |
28818 | SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28819 | PyObject *resultobj = 0; | |
28820 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28821 | long result; | |
28822 | void *argp1 = 0 ; | |
28823 | int res1 = 0 ; | |
28824 | PyObject *swig_obj[1] ; | |
28825 | ||
28826 | if (!args) SWIG_fail; | |
28827 | swig_obj[0] = args; | |
28828 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28829 | if (!SWIG_IsOK(res1)) { | |
28830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28831 | } | |
28832 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28833 | { | |
28834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28835 | result = (long)(arg1)->GetCacheTo(); | |
28836 | wxPyEndAllowThreads(__tstate); | |
28837 | if (PyErr_Occurred()) SWIG_fail; | |
28838 | } | |
28839 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28840 | return resultobj; | |
28841 | fail: | |
28842 | return NULL; | |
7e08d4ef RD |
28843 | } |
28844 | ||
28845 | ||
1bd55598 RD |
28846 | SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28847 | PyObject *resultobj = 0; | |
28848 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28849 | bool result; | |
28850 | void *argp1 = 0 ; | |
28851 | int res1 = 0 ; | |
28852 | PyObject *swig_obj[1] ; | |
28853 | ||
28854 | if (!args) SWIG_fail; | |
28855 | swig_obj[0] = args; | |
28856 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28857 | if (!SWIG_IsOK(res1)) { | |
28858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'"); | |
28859 | } | |
28860 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28861 | { | |
28862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28863 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
28864 | wxPyEndAllowThreads(__tstate); | |
28865 | if (PyErr_Occurred()) SWIG_fail; | |
28866 | } | |
28867 | { | |
28868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28869 | } | |
28870 | return resultobj; | |
28871 | fail: | |
28872 | return NULL; | |
28873 | } | |
28874 | ||
28875 | ||
28876 | SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28877 | PyObject *resultobj = 0; | |
28878 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28879 | bool arg2 ; | |
28880 | void *argp1 = 0 ; | |
28881 | int res1 = 0 ; | |
28882 | bool val2 ; | |
28883 | int ecode2 = 0 ; | |
28884 | PyObject * obj0 = 0 ; | |
28885 | PyObject * obj1 = 0 ; | |
28886 | char * kwnames[] = { | |
28887 | (char *) "self",(char *) "editCancelled", NULL | |
28888 | }; | |
28889 | ||
28890 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail; | |
28891 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28892 | if (!SWIG_IsOK(res1)) { | |
28893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28894 | } | |
28895 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28896 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
28897 | if (!SWIG_IsOK(ecode2)) { | |
28898 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'"); | |
28899 | } | |
28900 | arg2 = static_cast< bool >(val2); | |
28901 | { | |
28902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28903 | (arg1)->SetEditCanceled(arg2); | |
28904 | wxPyEndAllowThreads(__tstate); | |
28905 | if (PyErr_Occurred()) SWIG_fail; | |
28906 | } | |
28907 | resultobj = SWIG_Py_Void(); | |
28908 | return resultobj; | |
28909 | fail: | |
28910 | return NULL; | |
28911 | } | |
28912 | ||
28913 | ||
28914 | SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28915 | PyObject *obj; | |
28916 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28917 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj)); | |
28918 | return SWIG_Py_Void(); | |
28919 | } | |
28920 | ||
28921 | SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28922 | return SWIG_Python_InitShadowInstance(args); | |
28923 | } | |
28924 | ||
28925 | SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28926 | PyObject *resultobj = 0; | |
28927 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28928 | int arg2 = (int) -1 ; | |
28929 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28930 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28931 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28932 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28933 | long arg5 = (long) wxLC_ICON ; | |
28934 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28935 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28936 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
28937 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28938 | wxPyListCtrl *result = 0 ; | |
28939 | void *argp1 = 0 ; | |
28940 | int res1 = 0 ; | |
28941 | int val2 ; | |
28942 | int ecode2 = 0 ; | |
28943 | wxPoint temp3 ; | |
28944 | wxSize temp4 ; | |
28945 | long val5 ; | |
28946 | int ecode5 = 0 ; | |
28947 | void *argp6 = 0 ; | |
28948 | int res6 = 0 ; | |
28949 | bool temp7 = false ; | |
28950 | PyObject * obj0 = 0 ; | |
28951 | PyObject * obj1 = 0 ; | |
28952 | PyObject * obj2 = 0 ; | |
28953 | PyObject * obj3 = 0 ; | |
28954 | PyObject * obj4 = 0 ; | |
28955 | PyObject * obj5 = 0 ; | |
28956 | PyObject * obj6 = 0 ; | |
28957 | char * kwnames[] = { | |
28958 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28959 | }; | |
28960 | ||
28961 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28962 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28963 | if (!SWIG_IsOK(res1)) { | |
28964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
28965 | } | |
28966 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
28967 | if (obj1) { | |
28968 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28969 | if (!SWIG_IsOK(ecode2)) { | |
28970 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'"); | |
28971 | } | |
28972 | arg2 = static_cast< int >(val2); | |
28973 | } | |
28974 | if (obj2) { | |
7e08d4ef | 28975 | { |
1bd55598 RD |
28976 | arg3 = &temp3; |
28977 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7e08d4ef | 28978 | } |
1bd55598 RD |
28979 | } |
28980 | if (obj3) { | |
7e08d4ef | 28981 | { |
1bd55598 RD |
28982 | arg4 = &temp4; |
28983 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7e08d4ef | 28984 | } |
1bd55598 RD |
28985 | } |
28986 | if (obj4) { | |
28987 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
28988 | if (!SWIG_IsOK(ecode5)) { | |
28989 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'"); | |
28990 | } | |
28991 | arg5 = static_cast< long >(val5); | |
28992 | } | |
28993 | if (obj5) { | |
28994 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
28995 | if (!SWIG_IsOK(res6)) { | |
28996 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 28997 | } |
1bd55598 RD |
28998 | if (!argp6) { |
28999 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 29000 | } |
1bd55598 RD |
29001 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
29002 | } | |
29003 | if (obj6) { | |
7e08d4ef | 29004 | { |
1bd55598 RD |
29005 | arg7 = wxString_in_helper(obj6); |
29006 | if (arg7 == NULL) SWIG_fail; | |
29007 | temp7 = true; | |
7e08d4ef | 29008 | } |
1bd55598 RD |
29009 | } |
29010 | { | |
29011 | if (!wxPyCheckForApp()) SWIG_fail; | |
29012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29013 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
29014 | wxPyEndAllowThreads(__tstate); | |
29015 | if (PyErr_Occurred()) SWIG_fail; | |
29016 | } | |
29017 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 ); | |
29018 | { | |
29019 | if (temp7) | |
29020 | delete arg7; | |
29021 | } | |
29022 | return resultobj; | |
29023 | fail: | |
29024 | { | |
29025 | if (temp7) | |
29026 | delete arg7; | |
29027 | } | |
29028 | return NULL; | |
7e08d4ef RD |
29029 | } |
29030 | ||
29031 | ||
1bd55598 RD |
29032 | SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29033 | PyObject *resultobj = 0; | |
29034 | wxPyListCtrl *result = 0 ; | |
29035 | ||
29036 | if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail; | |
29037 | { | |
29038 | if (!wxPyCheckForApp()) SWIG_fail; | |
29039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29040 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
29041 | wxPyEndAllowThreads(__tstate); | |
29042 | if (PyErr_Occurred()) SWIG_fail; | |
29043 | } | |
29044 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 ); | |
29045 | return resultobj; | |
29046 | fail: | |
29047 | return NULL; | |
29048 | } | |
29049 | ||
29050 | ||
29051 | SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29052 | PyObject *resultobj = 0; | |
29053 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29054 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29055 | int arg3 = (int) -1 ; | |
29056 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
29057 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29058 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29059 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29060 | long arg6 = (long) wxLC_ICON ; | |
29061 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
29062 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
29063 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
29064 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
29065 | bool result; | |
29066 | void *argp1 = 0 ; | |
29067 | int res1 = 0 ; | |
29068 | void *argp2 = 0 ; | |
29069 | int res2 = 0 ; | |
29070 | int val3 ; | |
29071 | int ecode3 = 0 ; | |
29072 | wxPoint temp4 ; | |
29073 | wxSize temp5 ; | |
29074 | long val6 ; | |
29075 | int ecode6 = 0 ; | |
29076 | void *argp7 = 0 ; | |
29077 | int res7 = 0 ; | |
29078 | bool temp8 = false ; | |
29079 | PyObject * obj0 = 0 ; | |
29080 | PyObject * obj1 = 0 ; | |
29081 | PyObject * obj2 = 0 ; | |
29082 | PyObject * obj3 = 0 ; | |
29083 | PyObject * obj4 = 0 ; | |
29084 | PyObject * obj5 = 0 ; | |
29085 | PyObject * obj6 = 0 ; | |
29086 | PyObject * obj7 = 0 ; | |
29087 | char * kwnames[] = { | |
29088 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29089 | }; | |
29090 | ||
29091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
29092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29093 | if (!SWIG_IsOK(res1)) { | |
29094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29095 | } | |
29096 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29097 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
29098 | if (!SWIG_IsOK(res2)) { | |
29099 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
29100 | } | |
29101 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
29102 | if (obj2) { | |
29103 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29104 | if (!SWIG_IsOK(ecode3)) { | |
29105 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
29106 | } | |
29107 | arg3 = static_cast< int >(val3); | |
29108 | } | |
29109 | if (obj3) { | |
7e08d4ef | 29110 | { |
1bd55598 RD |
29111 | arg4 = &temp4; |
29112 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7e08d4ef | 29113 | } |
1bd55598 RD |
29114 | } |
29115 | if (obj4) { | |
7e08d4ef | 29116 | { |
1bd55598 RD |
29117 | arg5 = &temp5; |
29118 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7e08d4ef | 29119 | } |
1bd55598 RD |
29120 | } |
29121 | if (obj5) { | |
29122 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
29123 | if (!SWIG_IsOK(ecode6)) { | |
29124 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
29125 | } | |
29126 | arg6 = static_cast< long >(val6); | |
29127 | } | |
29128 | if (obj6) { | |
29129 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
29130 | if (!SWIG_IsOK(res7)) { | |
29131 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 29132 | } |
1bd55598 RD |
29133 | if (!argp7) { |
29134 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 29135 | } |
1bd55598 RD |
29136 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
29137 | } | |
29138 | if (obj7) { | |
7e08d4ef | 29139 | { |
1bd55598 RD |
29140 | arg8 = wxString_in_helper(obj7); |
29141 | if (arg8 == NULL) SWIG_fail; | |
29142 | temp8 = true; | |
7e08d4ef | 29143 | } |
1bd55598 RD |
29144 | } |
29145 | { | |
29146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29147 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
29148 | wxPyEndAllowThreads(__tstate); | |
29149 | if (PyErr_Occurred()) SWIG_fail; | |
29150 | } | |
29151 | { | |
29152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29153 | } | |
29154 | { | |
29155 | if (temp8) | |
29156 | delete arg8; | |
29157 | } | |
29158 | return resultobj; | |
29159 | fail: | |
29160 | { | |
29161 | if (temp8) | |
29162 | delete arg8; | |
29163 | } | |
29164 | return NULL; | |
29165 | } | |
29166 | ||
29167 | ||
29168 | SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29169 | PyObject *resultobj = 0; | |
29170 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29171 | PyObject *arg2 = (PyObject *) 0 ; | |
29172 | PyObject *arg3 = (PyObject *) 0 ; | |
29173 | void *argp1 = 0 ; | |
29174 | int res1 = 0 ; | |
29175 | PyObject * obj0 = 0 ; | |
29176 | PyObject * obj1 = 0 ; | |
29177 | PyObject * obj2 = 0 ; | |
29178 | char * kwnames[] = { | |
29179 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29180 | }; | |
29181 | ||
29182 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29183 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29184 | if (!SWIG_IsOK(res1)) { | |
29185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29186 | } | |
29187 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29188 | arg2 = obj1; | |
29189 | arg3 = obj2; | |
29190 | { | |
29191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29192 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29193 | wxPyEndAllowThreads(__tstate); | |
29194 | if (PyErr_Occurred()) SWIG_fail; | |
29195 | } | |
29196 | resultobj = SWIG_Py_Void(); | |
29197 | return resultobj; | |
29198 | fail: | |
29199 | return NULL; | |
29200 | } | |
29201 | ||
29202 | ||
29203 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29204 | PyObject *resultobj = 0; | |
29205 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29206 | int arg2 ; | |
29207 | wxListItem *result = 0 ; | |
29208 | void *argp1 = 0 ; | |
29209 | int res1 = 0 ; | |
29210 | int val2 ; | |
29211 | int ecode2 = 0 ; | |
29212 | PyObject * obj0 = 0 ; | |
29213 | PyObject * obj1 = 0 ; | |
29214 | char * kwnames[] = { | |
29215 | (char *) "self",(char *) "col", NULL | |
29216 | }; | |
29217 | ||
29218 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
29219 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29220 | if (!SWIG_IsOK(res1)) { | |
29221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29222 | } | |
29223 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29224 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29225 | if (!SWIG_IsOK(ecode2)) { | |
29226 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'"); | |
29227 | } | |
29228 | arg2 = static_cast< int >(val2); | |
29229 | { | |
29230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29231 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
29232 | wxPyEndAllowThreads(__tstate); | |
29233 | if (PyErr_Occurred()) SWIG_fail; | |
29234 | } | |
29235 | { | |
3ecece7e | 29236 | resultobj = wxPyMake_wxObject(result, 0); |
1bd55598 RD |
29237 | } |
29238 | return resultobj; | |
29239 | fail: | |
29240 | return NULL; | |
29241 | } | |
29242 | ||
29243 | ||
29244 | SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29245 | PyObject *resultobj = 0; | |
29246 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29247 | int arg2 ; | |
29248 | wxListItem *arg3 = 0 ; | |
29249 | bool result; | |
29250 | void *argp1 = 0 ; | |
29251 | int res1 = 0 ; | |
29252 | int val2 ; | |
29253 | int ecode2 = 0 ; | |
29254 | void *argp3 = 0 ; | |
29255 | int res3 = 0 ; | |
29256 | PyObject * obj0 = 0 ; | |
29257 | PyObject * obj1 = 0 ; | |
29258 | PyObject * obj2 = 0 ; | |
29259 | char * kwnames[] = { | |
29260 | (char *) "self",(char *) "col",(char *) "item", NULL | |
29261 | }; | |
29262 | ||
29263 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29264 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29265 | if (!SWIG_IsOK(res1)) { | |
29266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29267 | } | |
29268 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29269 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29270 | if (!SWIG_IsOK(ecode2)) { | |
29271 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'"); | |
29272 | } | |
29273 | arg2 = static_cast< int >(val2); | |
29274 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 ); | |
29275 | if (!SWIG_IsOK(res3)) { | |
29276 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
29277 | } | |
29278 | if (!argp3) { | |
29279 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
29280 | } | |
29281 | arg3 = reinterpret_cast< wxListItem * >(argp3); | |
29282 | { | |
29283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29284 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
29285 | wxPyEndAllowThreads(__tstate); | |
29286 | if (PyErr_Occurred()) SWIG_fail; | |
29287 | } | |
29288 | { | |
29289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29290 | } | |
29291 | return resultobj; | |
29292 | fail: | |
29293 | return NULL; | |
29294 | } | |
29295 | ||
29296 | ||
29297 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29298 | PyObject *resultobj = 0; | |
29299 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29300 | int arg2 ; | |
29301 | int result; | |
29302 | void *argp1 = 0 ; | |
29303 | int res1 = 0 ; | |
29304 | int val2 ; | |
29305 | int ecode2 = 0 ; | |
29306 | PyObject * obj0 = 0 ; | |
29307 | PyObject * obj1 = 0 ; | |
29308 | char * kwnames[] = { | |
29309 | (char *) "self",(char *) "col", NULL | |
29310 | }; | |
29311 | ||
29312 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
29313 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29314 | if (!SWIG_IsOK(res1)) { | |
29315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29316 | } | |
29317 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29318 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29319 | if (!SWIG_IsOK(ecode2)) { | |
29320 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'"); | |
29321 | } | |
29322 | arg2 = static_cast< int >(val2); | |
29323 | { | |
29324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29325 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
29326 | wxPyEndAllowThreads(__tstate); | |
29327 | if (PyErr_Occurred()) SWIG_fail; | |
29328 | } | |
29329 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29330 | return resultobj; | |
29331 | fail: | |
29332 | return NULL; | |
29333 | } | |
29334 | ||
29335 | ||
29336 | SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29337 | PyObject *resultobj = 0; | |
29338 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29339 | int arg2 ; | |
29340 | int arg3 ; | |
29341 | bool result; | |
29342 | void *argp1 = 0 ; | |
29343 | int res1 = 0 ; | |
29344 | int val2 ; | |
29345 | int ecode2 = 0 ; | |
29346 | int val3 ; | |
29347 | int ecode3 = 0 ; | |
29348 | PyObject * obj0 = 0 ; | |
29349 | PyObject * obj1 = 0 ; | |
29350 | PyObject * obj2 = 0 ; | |
29351 | char * kwnames[] = { | |
29352 | (char *) "self",(char *) "col",(char *) "width", NULL | |
29353 | }; | |
29354 | ||
29355 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29356 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29357 | if (!SWIG_IsOK(res1)) { | |
29358 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29359 | } | |
29360 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29361 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29362 | if (!SWIG_IsOK(ecode2)) { | |
29363 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'"); | |
29364 | } | |
29365 | arg2 = static_cast< int >(val2); | |
29366 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29367 | if (!SWIG_IsOK(ecode3)) { | |
29368 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'"); | |
29369 | } | |
29370 | arg3 = static_cast< int >(val3); | |
29371 | { | |
29372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29373 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
29374 | wxPyEndAllowThreads(__tstate); | |
29375 | if (PyErr_Occurred()) SWIG_fail; | |
29376 | } | |
29377 | { | |
29378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29379 | } | |
29380 | return resultobj; | |
29381 | fail: | |
29382 | return NULL; | |
7e08d4ef RD |
29383 | } |
29384 | ||
29385 | ||
1bd55598 RD |
29386 | SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29387 | PyObject *resultobj = 0; | |
29388 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29389 | int result; | |
29390 | void *argp1 = 0 ; | |
29391 | int res1 = 0 ; | |
29392 | PyObject *swig_obj[1] ; | |
29393 | ||
29394 | if (!args) SWIG_fail; | |
29395 | swig_obj[0] = args; | |
29396 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29397 | if (!SWIG_IsOK(res1)) { | |
29398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29399 | } | |
29400 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29401 | { | |
29402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29403 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
29404 | wxPyEndAllowThreads(__tstate); | |
29405 | if (PyErr_Occurred()) SWIG_fail; | |
29406 | } | |
29407 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29408 | return resultobj; | |
29409 | fail: | |
29410 | return NULL; | |
7e08d4ef RD |
29411 | } |
29412 | ||
29413 | ||
1bd55598 RD |
29414 | SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29415 | PyObject *resultobj = 0; | |
29416 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29417 | wxRect result; | |
29418 | void *argp1 = 0 ; | |
29419 | int res1 = 0 ; | |
29420 | PyObject *swig_obj[1] ; | |
29421 | ||
29422 | if (!args) SWIG_fail; | |
29423 | swig_obj[0] = args; | |
29424 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29425 | if (!SWIG_IsOK(res1)) { | |
29426 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29427 | } | |
29428 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29429 | { | |
29430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29431 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
29432 | wxPyEndAllowThreads(__tstate); | |
29433 | if (PyErr_Occurred()) SWIG_fail; | |
29434 | } | |
29435 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
29436 | return resultobj; | |
29437 | fail: | |
29438 | return NULL; | |
7e08d4ef RD |
29439 | } |
29440 | ||
29441 | ||
1bd55598 RD |
29442 | SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29443 | PyObject *resultobj = 0; | |
29444 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29445 | wxTextCtrl *result = 0 ; | |
29446 | void *argp1 = 0 ; | |
29447 | int res1 = 0 ; | |
29448 | PyObject *swig_obj[1] ; | |
29449 | ||
29450 | if (!args) SWIG_fail; | |
29451 | swig_obj[0] = args; | |
29452 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29453 | if (!SWIG_IsOK(res1)) { | |
29454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29455 | } | |
29456 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29457 | { | |
29458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29459 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
29460 | wxPyEndAllowThreads(__tstate); | |
29461 | if (PyErr_Occurred()) SWIG_fail; | |
29462 | } | |
29463 | { | |
29464 | resultobj = wxPyMake_wxObject(result, 0); | |
29465 | } | |
29466 | return resultobj; | |
29467 | fail: | |
29468 | return NULL; | |
29469 | } | |
29470 | ||
29471 | ||
29472 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29473 | PyObject *resultobj = 0; | |
29474 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29475 | long arg2 ; | |
29476 | int arg3 = (int) 0 ; | |
29477 | wxListItem *result = 0 ; | |
29478 | void *argp1 = 0 ; | |
29479 | int res1 = 0 ; | |
29480 | long val2 ; | |
29481 | int ecode2 = 0 ; | |
29482 | int val3 ; | |
29483 | int ecode3 = 0 ; | |
29484 | PyObject * obj0 = 0 ; | |
29485 | PyObject * obj1 = 0 ; | |
29486 | PyObject * obj2 = 0 ; | |
29487 | char * kwnames[] = { | |
29488 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
29489 | }; | |
29490 | ||
29491 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29492 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29493 | if (!SWIG_IsOK(res1)) { | |
29494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29495 | } | |
29496 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29497 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29498 | if (!SWIG_IsOK(ecode2)) { | |
29499 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'"); | |
29500 | } | |
29501 | arg2 = static_cast< long >(val2); | |
29502 | if (obj2) { | |
29503 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29504 | if (!SWIG_IsOK(ecode3)) { | |
29505 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'"); | |
29506 | } | |
29507 | arg3 = static_cast< int >(val3); | |
29508 | } | |
29509 | { | |
29510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29511 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
29512 | wxPyEndAllowThreads(__tstate); | |
29513 | if (PyErr_Occurred()) SWIG_fail; | |
29514 | } | |
29515 | { | |
3ecece7e | 29516 | resultobj = wxPyMake_wxObject(result, 0); |
1bd55598 RD |
29517 | } |
29518 | return resultobj; | |
29519 | fail: | |
29520 | return NULL; | |
29521 | } | |
29522 | ||
29523 | ||
29524 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29525 | PyObject *resultobj = 0; | |
29526 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29527 | wxListItem *arg2 = 0 ; | |
29528 | bool result; | |
29529 | void *argp1 = 0 ; | |
29530 | int res1 = 0 ; | |
29531 | void *argp2 = 0 ; | |
29532 | int res2 = 0 ; | |
29533 | PyObject * obj0 = 0 ; | |
29534 | PyObject * obj1 = 0 ; | |
29535 | char * kwnames[] = { | |
29536 | (char *) "self",(char *) "info", NULL | |
29537 | }; | |
29538 | ||
29539 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
29540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29541 | if (!SWIG_IsOK(res1)) { | |
29542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29543 | } | |
29544 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29545 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 ); | |
29546 | if (!SWIG_IsOK(res2)) { | |
29547 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
29548 | } | |
29549 | if (!argp2) { | |
29550 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
29551 | } | |
29552 | arg2 = reinterpret_cast< wxListItem * >(argp2); | |
29553 | { | |
29554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29555 | result = (bool)(arg1)->SetItem(*arg2); | |
29556 | wxPyEndAllowThreads(__tstate); | |
29557 | if (PyErr_Occurred()) SWIG_fail; | |
29558 | } | |
29559 | { | |
29560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29561 | } | |
29562 | return resultobj; | |
29563 | fail: | |
29564 | return NULL; | |
29565 | } | |
29566 | ||
29567 | ||
29568 | SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29569 | PyObject *resultobj = 0; | |
29570 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29571 | long arg2 ; | |
29572 | int arg3 ; | |
29573 | wxString *arg4 = 0 ; | |
29574 | int arg5 = (int) -1 ; | |
29575 | long result; | |
29576 | void *argp1 = 0 ; | |
29577 | int res1 = 0 ; | |
29578 | long val2 ; | |
29579 | int ecode2 = 0 ; | |
29580 | int val3 ; | |
29581 | int ecode3 = 0 ; | |
29582 | bool temp4 = false ; | |
29583 | int val5 ; | |
29584 | int ecode5 = 0 ; | |
29585 | PyObject * obj0 = 0 ; | |
29586 | PyObject * obj1 = 0 ; | |
29587 | PyObject * obj2 = 0 ; | |
29588 | PyObject * obj3 = 0 ; | |
29589 | PyObject * obj4 = 0 ; | |
29590 | char * kwnames[] = { | |
29591 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
29592 | }; | |
29593 | ||
29594 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29595 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29596 | if (!SWIG_IsOK(res1)) { | |
29597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29598 | } | |
29599 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29600 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29601 | if (!SWIG_IsOK(ecode2)) { | |
29602 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'"); | |
29603 | } | |
29604 | arg2 = static_cast< long >(val2); | |
29605 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29606 | if (!SWIG_IsOK(ecode3)) { | |
29607 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'"); | |
29608 | } | |
29609 | arg3 = static_cast< int >(val3); | |
29610 | { | |
29611 | arg4 = wxString_in_helper(obj3); | |
29612 | if (arg4 == NULL) SWIG_fail; | |
29613 | temp4 = true; | |
29614 | } | |
29615 | if (obj4) { | |
29616 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
29617 | if (!SWIG_IsOK(ecode5)) { | |
29618 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'"); | |
29619 | } | |
29620 | arg5 = static_cast< int >(val5); | |
29621 | } | |
29622 | { | |
29623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29624 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
29625 | wxPyEndAllowThreads(__tstate); | |
29626 | if (PyErr_Occurred()) SWIG_fail; | |
29627 | } | |
29628 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
29629 | { | |
29630 | if (temp4) | |
29631 | delete arg4; | |
29632 | } | |
29633 | return resultobj; | |
29634 | fail: | |
29635 | { | |
29636 | if (temp4) | |
29637 | delete arg4; | |
29638 | } | |
29639 | return NULL; | |
29640 | } | |
29641 | ||
29642 | ||
29643 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29644 | PyObject *resultobj = 0; | |
29645 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29646 | long arg2 ; | |
29647 | long arg3 ; | |
29648 | int result; | |
29649 | void *argp1 = 0 ; | |
29650 | int res1 = 0 ; | |
29651 | long val2 ; | |
29652 | int ecode2 = 0 ; | |
29653 | long val3 ; | |
29654 | int ecode3 = 0 ; | |
29655 | PyObject * obj0 = 0 ; | |
29656 | PyObject * obj1 = 0 ; | |
29657 | PyObject * obj2 = 0 ; | |
29658 | char * kwnames[] = { | |
29659 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
29660 | }; | |
29661 | ||
29662 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29663 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29664 | if (!SWIG_IsOK(res1)) { | |
29665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29666 | } | |
29667 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29668 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29669 | if (!SWIG_IsOK(ecode2)) { | |
29670 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'"); | |
29671 | } | |
29672 | arg2 = static_cast< long >(val2); | |
29673 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29674 | if (!SWIG_IsOK(ecode3)) { | |
29675 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'"); | |
29676 | } | |
29677 | arg3 = static_cast< long >(val3); | |
29678 | { | |
29679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29680 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
29681 | wxPyEndAllowThreads(__tstate); | |
29682 | if (PyErr_Occurred()) SWIG_fail; | |
29683 | } | |
29684 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29685 | return resultobj; | |
29686 | fail: | |
29687 | return NULL; | |
29688 | } | |
29689 | ||
29690 | ||
29691 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29692 | PyObject *resultobj = 0; | |
29693 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29694 | long arg2 ; | |
29695 | long arg3 ; | |
29696 | long arg4 ; | |
29697 | bool result; | |
29698 | void *argp1 = 0 ; | |
29699 | int res1 = 0 ; | |
29700 | long val2 ; | |
29701 | int ecode2 = 0 ; | |
29702 | long val3 ; | |
29703 | int ecode3 = 0 ; | |
29704 | long val4 ; | |
29705 | int ecode4 = 0 ; | |
29706 | PyObject * obj0 = 0 ; | |
29707 | PyObject * obj1 = 0 ; | |
29708 | PyObject * obj2 = 0 ; | |
29709 | PyObject * obj3 = 0 ; | |
29710 | char * kwnames[] = { | |
29711 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
29712 | }; | |
29713 | ||
29714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29716 | if (!SWIG_IsOK(res1)) { | |
29717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29718 | } | |
29719 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29720 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29721 | if (!SWIG_IsOK(ecode2)) { | |
29722 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'"); | |
29723 | } | |
29724 | arg2 = static_cast< long >(val2); | |
29725 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29726 | if (!SWIG_IsOK(ecode3)) { | |
29727 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'"); | |
29728 | } | |
29729 | arg3 = static_cast< long >(val3); | |
29730 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
29731 | if (!SWIG_IsOK(ecode4)) { | |
29732 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'"); | |
29733 | } | |
29734 | arg4 = static_cast< long >(val4); | |
29735 | { | |
29736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29737 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
29738 | wxPyEndAllowThreads(__tstate); | |
29739 | if (PyErr_Occurred()) SWIG_fail; | |
29740 | } | |
29741 | { | |
29742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29743 | } | |
29744 | return resultobj; | |
29745 | fail: | |
29746 | return NULL; | |
29747 | } | |
29748 | ||
29749 | ||
29750 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29751 | PyObject *resultobj = 0; | |
29752 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29753 | long arg2 ; | |
29754 | int arg3 ; | |
29755 | int arg4 = (int) -1 ; | |
29756 | bool result; | |
29757 | void *argp1 = 0 ; | |
29758 | int res1 = 0 ; | |
29759 | long val2 ; | |
29760 | int ecode2 = 0 ; | |
29761 | int val3 ; | |
29762 | int ecode3 = 0 ; | |
29763 | int val4 ; | |
29764 | int ecode4 = 0 ; | |
29765 | PyObject * obj0 = 0 ; | |
29766 | PyObject * obj1 = 0 ; | |
29767 | PyObject * obj2 = 0 ; | |
29768 | PyObject * obj3 = 0 ; | |
29769 | char * kwnames[] = { | |
29770 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
29771 | }; | |
29772 | ||
29773 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29774 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29775 | if (!SWIG_IsOK(res1)) { | |
29776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29777 | } | |
29778 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29779 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29780 | if (!SWIG_IsOK(ecode2)) { | |
29781 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'"); | |
29782 | } | |
29783 | arg2 = static_cast< long >(val2); | |
29784 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29785 | if (!SWIG_IsOK(ecode3)) { | |
29786 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'"); | |
29787 | } | |
29788 | arg3 = static_cast< int >(val3); | |
29789 | if (obj3) { | |
29790 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29791 | if (!SWIG_IsOK(ecode4)) { | |
29792 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'"); | |
29793 | } | |
29794 | arg4 = static_cast< int >(val4); | |
29795 | } | |
29796 | { | |
29797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29798 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
29799 | wxPyEndAllowThreads(__tstate); | |
29800 | if (PyErr_Occurred()) SWIG_fail; | |
29801 | } | |
29802 | { | |
29803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29804 | } | |
29805 | return resultobj; | |
29806 | fail: | |
29807 | return NULL; | |
29808 | } | |
29809 | ||
29810 | ||
29811 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29812 | PyObject *resultobj = 0; | |
29813 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29814 | long arg2 ; | |
29815 | long arg3 ; | |
29816 | int arg4 ; | |
29817 | bool result; | |
29818 | void *argp1 = 0 ; | |
29819 | int res1 = 0 ; | |
29820 | long val2 ; | |
29821 | int ecode2 = 0 ; | |
29822 | long val3 ; | |
29823 | int ecode3 = 0 ; | |
29824 | int val4 ; | |
29825 | int ecode4 = 0 ; | |
29826 | PyObject * obj0 = 0 ; | |
29827 | PyObject * obj1 = 0 ; | |
29828 | PyObject * obj2 = 0 ; | |
29829 | PyObject * obj3 = 0 ; | |
29830 | char * kwnames[] = { | |
29831 | (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL | |
29832 | }; | |
29833 | ||
29834 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29835 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29836 | if (!SWIG_IsOK(res1)) { | |
29837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29838 | } | |
29839 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29840 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29841 | if (!SWIG_IsOK(ecode2)) { | |
29842 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'"); | |
29843 | } | |
29844 | arg2 = static_cast< long >(val2); | |
29845 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29846 | if (!SWIG_IsOK(ecode3)) { | |
29847 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'"); | |
29848 | } | |
29849 | arg3 = static_cast< long >(val3); | |
29850 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29851 | if (!SWIG_IsOK(ecode4)) { | |
29852 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'"); | |
29853 | } | |
29854 | arg4 = static_cast< int >(val4); | |
29855 | { | |
29856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29857 | result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4); | |
29858 | wxPyEndAllowThreads(__tstate); | |
29859 | if (PyErr_Occurred()) SWIG_fail; | |
29860 | } | |
29861 | { | |
29862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29863 | } | |
29864 | return resultobj; | |
29865 | fail: | |
29866 | return NULL; | |
29867 | } | |
29868 | ||
29869 | ||
29870 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29871 | PyObject *resultobj = 0; | |
29872 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29873 | long arg2 ; | |
29874 | wxString result; | |
29875 | void *argp1 = 0 ; | |
29876 | int res1 = 0 ; | |
29877 | long val2 ; | |
29878 | int ecode2 = 0 ; | |
29879 | PyObject * obj0 = 0 ; | |
29880 | PyObject * obj1 = 0 ; | |
29881 | char * kwnames[] = { | |
29882 | (char *) "self",(char *) "item", NULL | |
29883 | }; | |
29884 | ||
29885 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail; | |
29886 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29887 | if (!SWIG_IsOK(res1)) { | |
29888 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29889 | } | |
29890 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29891 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29892 | if (!SWIG_IsOK(ecode2)) { | |
29893 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'"); | |
29894 | } | |
29895 | arg2 = static_cast< long >(val2); | |
29896 | { | |
29897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29898 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
29899 | wxPyEndAllowThreads(__tstate); | |
29900 | if (PyErr_Occurred()) SWIG_fail; | |
29901 | } | |
29902 | { | |
29903 | #if wxUSE_UNICODE | |
29904 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29905 | #else | |
29906 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29907 | #endif | |
29908 | } | |
29909 | return resultobj; | |
29910 | fail: | |
29911 | return NULL; | |
29912 | } | |
29913 | ||
29914 | ||
29915 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29916 | PyObject *resultobj = 0; | |
29917 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29918 | long arg2 ; | |
29919 | wxString *arg3 = 0 ; | |
29920 | void *argp1 = 0 ; | |
29921 | int res1 = 0 ; | |
29922 | long val2 ; | |
29923 | int ecode2 = 0 ; | |
29924 | bool temp3 = false ; | |
29925 | PyObject * obj0 = 0 ; | |
29926 | PyObject * obj1 = 0 ; | |
29927 | PyObject * obj2 = 0 ; | |
29928 | char * kwnames[] = { | |
29929 | (char *) "self",(char *) "item",(char *) "str", NULL | |
29930 | }; | |
29931 | ||
29932 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29933 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29934 | if (!SWIG_IsOK(res1)) { | |
29935 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29936 | } | |
29937 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29938 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29939 | if (!SWIG_IsOK(ecode2)) { | |
29940 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'"); | |
29941 | } | |
29942 | arg2 = static_cast< long >(val2); | |
29943 | { | |
29944 | arg3 = wxString_in_helper(obj2); | |
29945 | if (arg3 == NULL) SWIG_fail; | |
29946 | temp3 = true; | |
29947 | } | |
29948 | { | |
29949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29950 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
29951 | wxPyEndAllowThreads(__tstate); | |
29952 | if (PyErr_Occurred()) SWIG_fail; | |
29953 | } | |
29954 | resultobj = SWIG_Py_Void(); | |
29955 | { | |
29956 | if (temp3) | |
29957 | delete arg3; | |
29958 | } | |
29959 | return resultobj; | |
29960 | fail: | |
29961 | { | |
29962 | if (temp3) | |
29963 | delete arg3; | |
29964 | } | |
29965 | return NULL; | |
29966 | } | |
29967 | ||
29968 | ||
29969 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29970 | PyObject *resultobj = 0; | |
29971 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29972 | long arg2 ; | |
29973 | long result; | |
29974 | void *argp1 = 0 ; | |
29975 | int res1 = 0 ; | |
29976 | long val2 ; | |
29977 | int ecode2 = 0 ; | |
29978 | PyObject * obj0 = 0 ; | |
29979 | PyObject * obj1 = 0 ; | |
29980 | char * kwnames[] = { | |
29981 | (char *) "self",(char *) "item", NULL | |
29982 | }; | |
29983 | ||
29984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail; | |
29985 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29986 | if (!SWIG_IsOK(res1)) { | |
29987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29988 | } | |
29989 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29990 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29991 | if (!SWIG_IsOK(ecode2)) { | |
29992 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'"); | |
29993 | } | |
29994 | arg2 = static_cast< long >(val2); | |
29995 | { | |
29996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29997 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
29998 | wxPyEndAllowThreads(__tstate); | |
29999 | if (PyErr_Occurred()) SWIG_fail; | |
30000 | } | |
30001 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30002 | return resultobj; | |
30003 | fail: | |
30004 | return NULL; | |
30005 | } | |
30006 | ||
30007 | ||
30008 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30009 | PyObject *resultobj = 0; | |
30010 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30011 | long arg2 ; | |
30012 | long arg3 ; | |
30013 | bool result; | |
30014 | void *argp1 = 0 ; | |
30015 | int res1 = 0 ; | |
30016 | long val2 ; | |
30017 | int ecode2 = 0 ; | |
30018 | long val3 ; | |
30019 | int ecode3 = 0 ; | |
30020 | PyObject * obj0 = 0 ; | |
30021 | PyObject * obj1 = 0 ; | |
30022 | PyObject * obj2 = 0 ; | |
30023 | char * kwnames[] = { | |
30024 | (char *) "self",(char *) "item",(char *) "data", NULL | |
30025 | }; | |
30026 | ||
30027 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30028 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30029 | if (!SWIG_IsOK(res1)) { | |
30030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30031 | } | |
30032 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30033 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30034 | if (!SWIG_IsOK(ecode2)) { | |
30035 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'"); | |
30036 | } | |
30037 | arg2 = static_cast< long >(val2); | |
30038 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
30039 | if (!SWIG_IsOK(ecode3)) { | |
30040 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'"); | |
30041 | } | |
30042 | arg3 = static_cast< long >(val3); | |
30043 | { | |
30044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30045 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
30046 | wxPyEndAllowThreads(__tstate); | |
30047 | if (PyErr_Occurred()) SWIG_fail; | |
30048 | } | |
30049 | { | |
30050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30051 | } | |
30052 | return resultobj; | |
30053 | fail: | |
30054 | return NULL; | |
30055 | } | |
30056 | ||
30057 | ||
30058 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30059 | PyObject *resultobj = 0; | |
30060 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30061 | long arg2 ; | |
30062 | wxPoint result; | |
30063 | void *argp1 = 0 ; | |
30064 | int res1 = 0 ; | |
30065 | long val2 ; | |
30066 | int ecode2 = 0 ; | |
30067 | PyObject * obj0 = 0 ; | |
30068 | PyObject * obj1 = 0 ; | |
30069 | char * kwnames[] = { | |
30070 | (char *) "self",(char *) "item", NULL | |
30071 | }; | |
30072 | ||
30073 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
30074 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30075 | if (!SWIG_IsOK(res1)) { | |
30076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30077 | } | |
30078 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30079 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30080 | if (!SWIG_IsOK(ecode2)) { | |
30081 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'"); | |
30082 | } | |
30083 | arg2 = static_cast< long >(val2); | |
30084 | { | |
30085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30086 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
30087 | wxPyEndAllowThreads(__tstate); | |
30088 | if (PyErr_Occurred()) SWIG_fail; | |
30089 | } | |
30090 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
30091 | return resultobj; | |
30092 | fail: | |
30093 | return NULL; | |
30094 | } | |
30095 | ||
30096 | ||
30097 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30098 | PyObject *resultobj = 0; | |
30099 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30100 | long arg2 ; | |
30101 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
30102 | wxRect result; | |
30103 | void *argp1 = 0 ; | |
30104 | int res1 = 0 ; | |
30105 | long val2 ; | |
30106 | int ecode2 = 0 ; | |
30107 | int val3 ; | |
30108 | int ecode3 = 0 ; | |
30109 | PyObject * obj0 = 0 ; | |
30110 | PyObject * obj1 = 0 ; | |
30111 | PyObject * obj2 = 0 ; | |
30112 | char * kwnames[] = { | |
30113 | (char *) "self",(char *) "item",(char *) "code", NULL | |
30114 | }; | |
30115 | ||
30116 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30117 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30118 | if (!SWIG_IsOK(res1)) { | |
30119 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30120 | } | |
30121 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30122 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30123 | if (!SWIG_IsOK(ecode2)) { | |
30124 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'"); | |
30125 | } | |
30126 | arg2 = static_cast< long >(val2); | |
30127 | if (obj2) { | |
30128 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30129 | if (!SWIG_IsOK(ecode3)) { | |
30130 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'"); | |
30131 | } | |
30132 | arg3 = static_cast< int >(val3); | |
30133 | } | |
30134 | { | |
30135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30136 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
30137 | wxPyEndAllowThreads(__tstate); | |
30138 | if (PyErr_Occurred()) SWIG_fail; | |
30139 | } | |
30140 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
30141 | return resultobj; | |
30142 | fail: | |
30143 | return NULL; | |
30144 | } | |
30145 | ||
30146 | ||
30147 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30148 | PyObject *resultobj = 0; | |
30149 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30150 | long arg2 ; | |
30151 | wxPoint *arg3 = 0 ; | |
30152 | bool result; | |
30153 | void *argp1 = 0 ; | |
30154 | int res1 = 0 ; | |
30155 | long val2 ; | |
30156 | int ecode2 = 0 ; | |
30157 | wxPoint temp3 ; | |
30158 | PyObject * obj0 = 0 ; | |
30159 | PyObject * obj1 = 0 ; | |
30160 | PyObject * obj2 = 0 ; | |
30161 | char * kwnames[] = { | |
30162 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
30163 | }; | |
30164 | ||
30165 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30166 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30167 | if (!SWIG_IsOK(res1)) { | |
30168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30169 | } | |
30170 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30171 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30172 | if (!SWIG_IsOK(ecode2)) { | |
30173 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'"); | |
30174 | } | |
30175 | arg2 = static_cast< long >(val2); | |
30176 | { | |
30177 | arg3 = &temp3; | |
30178 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30179 | } | |
30180 | { | |
30181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30182 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
30183 | wxPyEndAllowThreads(__tstate); | |
30184 | if (PyErr_Occurred()) SWIG_fail; | |
30185 | } | |
30186 | { | |
30187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30188 | } | |
30189 | return resultobj; | |
30190 | fail: | |
30191 | return NULL; | |
7e08d4ef RD |
30192 | } |
30193 | ||
30194 | ||
1bd55598 RD |
30195 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30196 | PyObject *resultobj = 0; | |
30197 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30198 | int result; | |
30199 | void *argp1 = 0 ; | |
30200 | int res1 = 0 ; | |
30201 | PyObject *swig_obj[1] ; | |
30202 | ||
30203 | if (!args) SWIG_fail; | |
30204 | swig_obj[0] = args; | |
30205 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30206 | if (!SWIG_IsOK(res1)) { | |
30207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30208 | } | |
30209 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30210 | { | |
30211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30212 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
30213 | wxPyEndAllowThreads(__tstate); | |
30214 | if (PyErr_Occurred()) SWIG_fail; | |
30215 | } | |
30216 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30217 | return resultobj; | |
30218 | fail: | |
30219 | return NULL; | |
7e08d4ef RD |
30220 | } |
30221 | ||
30222 | ||
1bd55598 RD |
30223 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30224 | PyObject *resultobj = 0; | |
30225 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30226 | int result; | |
30227 | void *argp1 = 0 ; | |
30228 | int res1 = 0 ; | |
30229 | PyObject *swig_obj[1] ; | |
30230 | ||
30231 | if (!args) SWIG_fail; | |
30232 | swig_obj[0] = args; | |
30233 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30234 | if (!SWIG_IsOK(res1)) { | |
30235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30236 | } | |
30237 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30238 | { | |
30239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30240 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
30241 | wxPyEndAllowThreads(__tstate); | |
30242 | if (PyErr_Occurred()) SWIG_fail; | |
30243 | } | |
30244 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30245 | return resultobj; | |
30246 | fail: | |
30247 | return NULL; | |
7e08d4ef RD |
30248 | } |
30249 | ||
30250 | ||
1bd55598 RD |
30251 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30252 | PyObject *resultobj = 0; | |
30253 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30254 | wxSize result; | |
30255 | void *argp1 = 0 ; | |
30256 | int res1 = 0 ; | |
30257 | PyObject *swig_obj[1] ; | |
30258 | ||
30259 | if (!args) SWIG_fail; | |
30260 | swig_obj[0] = args; | |
30261 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30262 | if (!SWIG_IsOK(res1)) { | |
30263 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30264 | } | |
30265 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30266 | { | |
30267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30268 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
30269 | wxPyEndAllowThreads(__tstate); | |
30270 | if (PyErr_Occurred()) SWIG_fail; | |
30271 | } | |
30272 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
30273 | return resultobj; | |
30274 | fail: | |
30275 | return NULL; | |
30276 | } | |
30277 | ||
30278 | ||
30279 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30280 | PyObject *resultobj = 0; | |
30281 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30282 | int arg2 ; | |
30283 | bool arg3 = (bool) false ; | |
30284 | void *argp1 = 0 ; | |
30285 | int res1 = 0 ; | |
30286 | int val2 ; | |
30287 | int ecode2 = 0 ; | |
30288 | bool val3 ; | |
30289 | int ecode3 = 0 ; | |
30290 | PyObject * obj0 = 0 ; | |
30291 | PyObject * obj1 = 0 ; | |
30292 | PyObject * obj2 = 0 ; | |
30293 | char * kwnames[] = { | |
30294 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
30295 | }; | |
30296 | ||
30297 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30298 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30299 | if (!SWIG_IsOK(res1)) { | |
30300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30301 | } | |
30302 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30303 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30304 | if (!SWIG_IsOK(ecode2)) { | |
30305 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'"); | |
30306 | } | |
30307 | arg2 = static_cast< int >(val2); | |
30308 | if (obj2) { | |
30309 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
30310 | if (!SWIG_IsOK(ecode3)) { | |
30311 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'"); | |
30312 | } | |
30313 | arg3 = static_cast< bool >(val3); | |
30314 | } | |
30315 | { | |
30316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30317 | (arg1)->SetItemSpacing(arg2,arg3); | |
30318 | wxPyEndAllowThreads(__tstate); | |
30319 | if (PyErr_Occurred()) SWIG_fail; | |
30320 | } | |
30321 | resultobj = SWIG_Py_Void(); | |
30322 | return resultobj; | |
30323 | fail: | |
30324 | return NULL; | |
7e08d4ef RD |
30325 | } |
30326 | ||
30327 | ||
1bd55598 RD |
30328 | SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30329 | PyObject *resultobj = 0; | |
30330 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30331 | int result; | |
30332 | void *argp1 = 0 ; | |
30333 | int res1 = 0 ; | |
30334 | PyObject *swig_obj[1] ; | |
30335 | ||
30336 | if (!args) SWIG_fail; | |
30337 | swig_obj[0] = args; | |
30338 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30339 | if (!SWIG_IsOK(res1)) { | |
30340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30341 | } | |
30342 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30343 | { | |
30344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30345 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
30346 | wxPyEndAllowThreads(__tstate); | |
30347 | if (PyErr_Occurred()) SWIG_fail; | |
30348 | } | |
30349 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30350 | return resultobj; | |
30351 | fail: | |
30352 | return NULL; | |
7e08d4ef RD |
30353 | } |
30354 | ||
30355 | ||
1bd55598 RD |
30356 | SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30357 | PyObject *resultobj = 0; | |
30358 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30359 | wxColour result; | |
30360 | void *argp1 = 0 ; | |
30361 | int res1 = 0 ; | |
30362 | PyObject *swig_obj[1] ; | |
30363 | ||
30364 | if (!args) SWIG_fail; | |
30365 | swig_obj[0] = args; | |
30366 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30367 | if (!SWIG_IsOK(res1)) { | |
30368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30369 | } | |
30370 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30371 | { | |
30372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30373 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
30374 | wxPyEndAllowThreads(__tstate); | |
30375 | if (PyErr_Occurred()) SWIG_fail; | |
30376 | } | |
30377 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
30378 | return resultobj; | |
30379 | fail: | |
30380 | return NULL; | |
30381 | } | |
30382 | ||
30383 | ||
30384 | SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30385 | PyObject *resultobj = 0; | |
30386 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30387 | wxColour *arg2 = 0 ; | |
30388 | void *argp1 = 0 ; | |
30389 | int res1 = 0 ; | |
30390 | wxColour temp2 ; | |
30391 | PyObject * obj0 = 0 ; | |
30392 | PyObject * obj1 = 0 ; | |
30393 | char * kwnames[] = { | |
30394 | (char *) "self",(char *) "col", NULL | |
30395 | }; | |
30396 | ||
30397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
30398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30399 | if (!SWIG_IsOK(res1)) { | |
30400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30401 | } | |
30402 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30403 | { | |
30404 | arg2 = &temp2; | |
30405 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
30406 | } | |
30407 | { | |
30408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30409 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
30410 | wxPyEndAllowThreads(__tstate); | |
30411 | if (PyErr_Occurred()) SWIG_fail; | |
30412 | } | |
30413 | resultobj = SWIG_Py_Void(); | |
30414 | return resultobj; | |
30415 | fail: | |
30416 | return NULL; | |
7e08d4ef RD |
30417 | } |
30418 | ||
30419 | ||
1bd55598 RD |
30420 | SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30421 | PyObject *resultobj = 0; | |
30422 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30423 | long result; | |
30424 | void *argp1 = 0 ; | |
30425 | int res1 = 0 ; | |
30426 | PyObject *swig_obj[1] ; | |
30427 | ||
30428 | if (!args) SWIG_fail; | |
30429 | swig_obj[0] = args; | |
30430 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30431 | if (!SWIG_IsOK(res1)) { | |
30432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30433 | } | |
30434 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30435 | { | |
30436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30437 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
30438 | wxPyEndAllowThreads(__tstate); | |
30439 | if (PyErr_Occurred()) SWIG_fail; | |
30440 | } | |
30441 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30442 | return resultobj; | |
30443 | fail: | |
30444 | return NULL; | |
30445 | } | |
30446 | ||
30447 | ||
30448 | SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30449 | PyObject *resultobj = 0; | |
30450 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30451 | long arg2 ; | |
30452 | bool arg3 = (bool) true ; | |
30453 | void *argp1 = 0 ; | |
30454 | int res1 = 0 ; | |
30455 | long val2 ; | |
30456 | int ecode2 = 0 ; | |
30457 | bool val3 ; | |
30458 | int ecode3 = 0 ; | |
30459 | PyObject * obj0 = 0 ; | |
30460 | PyObject * obj1 = 0 ; | |
30461 | PyObject * obj2 = 0 ; | |
30462 | char * kwnames[] = { | |
30463 | (char *) "self",(char *) "style",(char *) "add", NULL | |
30464 | }; | |
30465 | ||
30466 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30467 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30468 | if (!SWIG_IsOK(res1)) { | |
30469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30470 | } | |
30471 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30472 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30473 | if (!SWIG_IsOK(ecode2)) { | |
30474 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'"); | |
30475 | } | |
30476 | arg2 = static_cast< long >(val2); | |
30477 | if (obj2) { | |
30478 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
30479 | if (!SWIG_IsOK(ecode3)) { | |
30480 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'"); | |
30481 | } | |
30482 | arg3 = static_cast< bool >(val3); | |
30483 | } | |
30484 | { | |
30485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30486 | (arg1)->SetSingleStyle(arg2,arg3); | |
30487 | wxPyEndAllowThreads(__tstate); | |
30488 | if (PyErr_Occurred()) SWIG_fail; | |
30489 | } | |
30490 | resultobj = SWIG_Py_Void(); | |
30491 | return resultobj; | |
30492 | fail: | |
30493 | return NULL; | |
30494 | } | |
30495 | ||
30496 | ||
30497 | SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30498 | PyObject *resultobj = 0; | |
30499 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30500 | long arg2 ; | |
30501 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
30502 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
30503 | long result; | |
30504 | void *argp1 = 0 ; | |
30505 | int res1 = 0 ; | |
30506 | long val2 ; | |
30507 | int ecode2 = 0 ; | |
30508 | int val3 ; | |
30509 | int ecode3 = 0 ; | |
30510 | int val4 ; | |
30511 | int ecode4 = 0 ; | |
30512 | PyObject * obj0 = 0 ; | |
30513 | PyObject * obj1 = 0 ; | |
30514 | PyObject * obj2 = 0 ; | |
30515 | PyObject * obj3 = 0 ; | |
30516 | char * kwnames[] = { | |
30517 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
30518 | }; | |
30519 | ||
30520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30522 | if (!SWIG_IsOK(res1)) { | |
30523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30524 | } | |
30525 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30526 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30527 | if (!SWIG_IsOK(ecode2)) { | |
30528 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'"); | |
30529 | } | |
30530 | arg2 = static_cast< long >(val2); | |
30531 | if (obj2) { | |
30532 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30533 | if (!SWIG_IsOK(ecode3)) { | |
30534 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'"); | |
30535 | } | |
30536 | arg3 = static_cast< int >(val3); | |
30537 | } | |
30538 | if (obj3) { | |
30539 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30540 | if (!SWIG_IsOK(ecode4)) { | |
30541 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'"); | |
30542 | } | |
30543 | arg4 = static_cast< int >(val4); | |
30544 | } | |
30545 | { | |
30546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30547 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
30548 | wxPyEndAllowThreads(__tstate); | |
30549 | if (PyErr_Occurred()) SWIG_fail; | |
30550 | } | |
30551 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30552 | return resultobj; | |
30553 | fail: | |
30554 | return NULL; | |
30555 | } | |
30556 | ||
30557 | ||
30558 | SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30559 | PyObject *resultobj = 0; | |
30560 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30561 | int arg2 ; | |
30562 | wxImageList *result = 0 ; | |
30563 | void *argp1 = 0 ; | |
30564 | int res1 = 0 ; | |
30565 | int val2 ; | |
30566 | int ecode2 = 0 ; | |
30567 | PyObject * obj0 = 0 ; | |
30568 | PyObject * obj1 = 0 ; | |
30569 | char * kwnames[] = { | |
30570 | (char *) "self",(char *) "which", NULL | |
30571 | }; | |
30572 | ||
30573 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
30574 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30575 | if (!SWIG_IsOK(res1)) { | |
30576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30577 | } | |
30578 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30579 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30580 | if (!SWIG_IsOK(ecode2)) { | |
30581 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'"); | |
30582 | } | |
30583 | arg2 = static_cast< int >(val2); | |
30584 | { | |
30585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30586 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
30587 | wxPyEndAllowThreads(__tstate); | |
30588 | if (PyErr_Occurred()) SWIG_fail; | |
30589 | } | |
3ecece7e RD |
30590 | { |
30591 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
30592 | } | |
1bd55598 RD |
30593 | return resultobj; |
30594 | fail: | |
30595 | return NULL; | |
30596 | } | |
30597 | ||
30598 | ||
30599 | SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30600 | PyObject *resultobj = 0; | |
30601 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30602 | wxImageList *arg2 = (wxImageList *) 0 ; | |
30603 | int arg3 ; | |
30604 | void *argp1 = 0 ; | |
30605 | int res1 = 0 ; | |
30606 | void *argp2 = 0 ; | |
30607 | int res2 = 0 ; | |
30608 | int val3 ; | |
30609 | int ecode3 = 0 ; | |
30610 | PyObject * obj0 = 0 ; | |
30611 | PyObject * obj1 = 0 ; | |
30612 | PyObject * obj2 = 0 ; | |
30613 | char * kwnames[] = { | |
30614 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
30615 | }; | |
30616 | ||
30617 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30618 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30619 | if (!SWIG_IsOK(res1)) { | |
30620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30621 | } | |
30622 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30623 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30624 | if (!SWIG_IsOK(res2)) { | |
30625 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
30626 | } | |
30627 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
30628 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30629 | if (!SWIG_IsOK(ecode3)) { | |
30630 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'"); | |
30631 | } | |
30632 | arg3 = static_cast< int >(val3); | |
30633 | { | |
30634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30635 | (arg1)->SetImageList(arg2,arg3); | |
30636 | wxPyEndAllowThreads(__tstate); | |
30637 | if (PyErr_Occurred()) SWIG_fail; | |
30638 | } | |
30639 | resultobj = SWIG_Py_Void(); | |
30640 | return resultobj; | |
30641 | fail: | |
30642 | return NULL; | |
30643 | } | |
30644 | ||
30645 | ||
30646 | SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30647 | PyObject *resultobj = 0; | |
30648 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30649 | wxImageList *arg2 = (wxImageList *) 0 ; | |
30650 | int arg3 ; | |
30651 | void *argp1 = 0 ; | |
30652 | int res1 = 0 ; | |
30653 | int res2 = 0 ; | |
30654 | int val3 ; | |
30655 | int ecode3 = 0 ; | |
30656 | PyObject * obj0 = 0 ; | |
30657 | PyObject * obj1 = 0 ; | |
30658 | PyObject * obj2 = 0 ; | |
30659 | char * kwnames[] = { | |
30660 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
30661 | }; | |
30662 | ||
30663 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30664 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30665 | if (!SWIG_IsOK(res1)) { | |
30666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30667 | } | |
30668 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30669 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
30670 | if (!SWIG_IsOK(res2)) { | |
30671 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
30672 | } | |
30673 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30674 | if (!SWIG_IsOK(ecode3)) { | |
30675 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'"); | |
30676 | } | |
30677 | arg3 = static_cast< int >(val3); | |
30678 | { | |
30679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30680 | (arg1)->AssignImageList(arg2,arg3); | |
30681 | wxPyEndAllowThreads(__tstate); | |
30682 | if (PyErr_Occurred()) SWIG_fail; | |
30683 | } | |
30684 | resultobj = SWIG_Py_Void(); | |
30685 | return resultobj; | |
30686 | fail: | |
30687 | return NULL; | |
7e08d4ef RD |
30688 | } |
30689 | ||
30690 | ||
1bd55598 RD |
30691 | SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30692 | PyObject *resultobj = 0; | |
30693 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30694 | bool result; | |
30695 | void *argp1 = 0 ; | |
30696 | int res1 = 0 ; | |
30697 | PyObject *swig_obj[1] ; | |
30698 | ||
30699 | if (!args) SWIG_fail; | |
30700 | swig_obj[0] = args; | |
30701 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30702 | if (!SWIG_IsOK(res1)) { | |
30703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30704 | } | |
30705 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30706 | { | |
30707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30708 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
30709 | wxPyEndAllowThreads(__tstate); | |
30710 | if (PyErr_Occurred()) SWIG_fail; | |
30711 | } | |
30712 | { | |
30713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30714 | } | |
30715 | return resultobj; | |
30716 | fail: | |
30717 | return NULL; | |
44bf767a RD |
30718 | } |
30719 | ||
30720 | ||
1bd55598 RD |
30721 | SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30722 | PyObject *resultobj = 0; | |
30723 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30724 | bool result; | |
30725 | void *argp1 = 0 ; | |
30726 | int res1 = 0 ; | |
30727 | PyObject *swig_obj[1] ; | |
30728 | ||
30729 | if (!args) SWIG_fail; | |
30730 | swig_obj[0] = args; | |
30731 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30732 | if (!SWIG_IsOK(res1)) { | |
30733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30734 | } | |
30735 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30736 | { | |
30737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30738 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
30739 | wxPyEndAllowThreads(__tstate); | |
30740 | if (PyErr_Occurred()) SWIG_fail; | |
30741 | } | |
30742 | { | |
30743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30744 | } | |
30745 | return resultobj; | |
30746 | fail: | |
30747 | return NULL; | |
30748 | } | |
30749 | ||
30750 | ||
30751 | SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30752 | PyObject *resultobj = 0; | |
30753 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30754 | long arg2 ; | |
30755 | void *argp1 = 0 ; | |
30756 | int res1 = 0 ; | |
30757 | long val2 ; | |
30758 | int ecode2 = 0 ; | |
30759 | PyObject * obj0 = 0 ; | |
30760 | PyObject * obj1 = 0 ; | |
30761 | char * kwnames[] = { | |
30762 | (char *) "self",(char *) "item", NULL | |
30763 | }; | |
30764 | ||
30765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
30766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30767 | if (!SWIG_IsOK(res1)) { | |
30768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30769 | } | |
30770 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30771 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30772 | if (!SWIG_IsOK(ecode2)) { | |
30773 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'"); | |
30774 | } | |
30775 | arg2 = static_cast< long >(val2); | |
30776 | { | |
30777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30778 | (arg1)->RefreshItem(arg2); | |
30779 | wxPyEndAllowThreads(__tstate); | |
30780 | if (PyErr_Occurred()) SWIG_fail; | |
30781 | } | |
30782 | resultobj = SWIG_Py_Void(); | |
30783 | return resultobj; | |
30784 | fail: | |
30785 | return NULL; | |
30786 | } | |
30787 | ||
30788 | ||
30789 | SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30790 | PyObject *resultobj = 0; | |
30791 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30792 | long arg2 ; | |
30793 | long arg3 ; | |
30794 | void *argp1 = 0 ; | |
30795 | int res1 = 0 ; | |
30796 | long val2 ; | |
30797 | int ecode2 = 0 ; | |
30798 | long val3 ; | |
30799 | int ecode3 = 0 ; | |
30800 | PyObject * obj0 = 0 ; | |
30801 | PyObject * obj1 = 0 ; | |
30802 | PyObject * obj2 = 0 ; | |
30803 | char * kwnames[] = { | |
30804 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
30805 | }; | |
30806 | ||
30807 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30808 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30809 | if (!SWIG_IsOK(res1)) { | |
30810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30811 | } | |
30812 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30813 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30814 | if (!SWIG_IsOK(ecode2)) { | |
30815 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'"); | |
30816 | } | |
30817 | arg2 = static_cast< long >(val2); | |
30818 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
30819 | if (!SWIG_IsOK(ecode3)) { | |
30820 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'"); | |
30821 | } | |
30822 | arg3 = static_cast< long >(val3); | |
30823 | { | |
30824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30825 | (arg1)->RefreshItems(arg2,arg3); | |
30826 | wxPyEndAllowThreads(__tstate); | |
30827 | if (PyErr_Occurred()) SWIG_fail; | |
30828 | } | |
30829 | resultobj = SWIG_Py_Void(); | |
30830 | return resultobj; | |
30831 | fail: | |
30832 | return NULL; | |
30833 | } | |
30834 | ||
30835 | ||
30836 | SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30837 | PyObject *resultobj = 0; | |
30838 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30839 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
30840 | bool result; | |
30841 | void *argp1 = 0 ; | |
30842 | int res1 = 0 ; | |
30843 | int val2 ; | |
30844 | int ecode2 = 0 ; | |
30845 | PyObject * obj0 = 0 ; | |
30846 | PyObject * obj1 = 0 ; | |
30847 | char * kwnames[] = { | |
30848 | (char *) "self",(char *) "flag", NULL | |
30849 | }; | |
30850 | ||
30851 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail; | |
30852 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30853 | if (!SWIG_IsOK(res1)) { | |
30854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30855 | } | |
30856 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30857 | if (obj1) { | |
30858 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30859 | if (!SWIG_IsOK(ecode2)) { | |
30860 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'"); | |
30861 | } | |
30862 | arg2 = static_cast< int >(val2); | |
30863 | } | |
30864 | { | |
30865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30866 | result = (bool)(arg1)->Arrange(arg2); | |
30867 | wxPyEndAllowThreads(__tstate); | |
30868 | if (PyErr_Occurred()) SWIG_fail; | |
30869 | } | |
30870 | { | |
30871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30872 | } | |
30873 | return resultobj; | |
30874 | fail: | |
30875 | return NULL; | |
30876 | } | |
30877 | ||
30878 | ||
30879 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30880 | PyObject *resultobj = 0; | |
30881 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30882 | long arg2 ; | |
30883 | bool result; | |
30884 | void *argp1 = 0 ; | |
30885 | int res1 = 0 ; | |
30886 | long val2 ; | |
30887 | int ecode2 = 0 ; | |
30888 | PyObject * obj0 = 0 ; | |
30889 | PyObject * obj1 = 0 ; | |
30890 | char * kwnames[] = { | |
30891 | (char *) "self",(char *) "item", NULL | |
30892 | }; | |
30893 | ||
30894 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
30895 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30896 | if (!SWIG_IsOK(res1)) { | |
30897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30898 | } | |
30899 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30900 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30901 | if (!SWIG_IsOK(ecode2)) { | |
30902 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'"); | |
30903 | } | |
30904 | arg2 = static_cast< long >(val2); | |
30905 | { | |
30906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30907 | result = (bool)(arg1)->DeleteItem(arg2); | |
30908 | wxPyEndAllowThreads(__tstate); | |
30909 | if (PyErr_Occurred()) SWIG_fail; | |
30910 | } | |
30911 | { | |
30912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30913 | } | |
30914 | return resultobj; | |
30915 | fail: | |
30916 | return NULL; | |
d55e5bfc RD |
30917 | } |
30918 | ||
30919 | ||
1bd55598 RD |
30920 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30921 | PyObject *resultobj = 0; | |
30922 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30923 | bool result; | |
30924 | void *argp1 = 0 ; | |
30925 | int res1 = 0 ; | |
30926 | PyObject *swig_obj[1] ; | |
30927 | ||
30928 | if (!args) SWIG_fail; | |
30929 | swig_obj[0] = args; | |
30930 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30931 | if (!SWIG_IsOK(res1)) { | |
30932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30933 | } | |
30934 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30935 | { | |
30936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30937 | result = (bool)(arg1)->DeleteAllItems(); | |
30938 | wxPyEndAllowThreads(__tstate); | |
30939 | if (PyErr_Occurred()) SWIG_fail; | |
30940 | } | |
30941 | { | |
30942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30943 | } | |
30944 | return resultobj; | |
30945 | fail: | |
30946 | return NULL; | |
30947 | } | |
30948 | ||
30949 | ||
30950 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30951 | PyObject *resultobj = 0; | |
30952 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30953 | int arg2 ; | |
30954 | bool result; | |
30955 | void *argp1 = 0 ; | |
30956 | int res1 = 0 ; | |
30957 | int val2 ; | |
30958 | int ecode2 = 0 ; | |
30959 | PyObject * obj0 = 0 ; | |
30960 | PyObject * obj1 = 0 ; | |
30961 | char * kwnames[] = { | |
30962 | (char *) "self",(char *) "col", NULL | |
30963 | }; | |
30964 | ||
30965 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
30966 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30967 | if (!SWIG_IsOK(res1)) { | |
30968 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30969 | } | |
30970 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30971 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30972 | if (!SWIG_IsOK(ecode2)) { | |
30973 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'"); | |
30974 | } | |
30975 | arg2 = static_cast< int >(val2); | |
30976 | { | |
30977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30978 | result = (bool)(arg1)->DeleteColumn(arg2); | |
30979 | wxPyEndAllowThreads(__tstate); | |
30980 | if (PyErr_Occurred()) SWIG_fail; | |
30981 | } | |
30982 | { | |
30983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30984 | } | |
30985 | return resultobj; | |
30986 | fail: | |
30987 | return NULL; | |
b411df4a RD |
30988 | } |
30989 | ||
30990 | ||
1bd55598 RD |
30991 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30992 | PyObject *resultobj = 0; | |
30993 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30994 | bool result; | |
30995 | void *argp1 = 0 ; | |
30996 | int res1 = 0 ; | |
30997 | PyObject *swig_obj[1] ; | |
30998 | ||
30999 | if (!args) SWIG_fail; | |
31000 | swig_obj[0] = args; | |
31001 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31002 | if (!SWIG_IsOK(res1)) { | |
31003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31004 | } | |
31005 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31006 | { | |
31007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31008 | result = (bool)(arg1)->DeleteAllColumns(); | |
31009 | wxPyEndAllowThreads(__tstate); | |
31010 | if (PyErr_Occurred()) SWIG_fail; | |
31011 | } | |
31012 | { | |
31013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31014 | } | |
31015 | return resultobj; | |
31016 | fail: | |
31017 | return NULL; | |
b411df4a RD |
31018 | } |
31019 | ||
31020 | ||
1bd55598 RD |
31021 | SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31022 | PyObject *resultobj = 0; | |
31023 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31024 | void *argp1 = 0 ; | |
31025 | int res1 = 0 ; | |
31026 | PyObject *swig_obj[1] ; | |
31027 | ||
31028 | if (!args) SWIG_fail; | |
31029 | swig_obj[0] = args; | |
31030 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31031 | if (!SWIG_IsOK(res1)) { | |
31032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31033 | } | |
31034 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31035 | { | |
31036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31037 | (arg1)->ClearAll(); | |
31038 | wxPyEndAllowThreads(__tstate); | |
31039 | if (PyErr_Occurred()) SWIG_fail; | |
31040 | } | |
31041 | resultobj = SWIG_Py_Void(); | |
31042 | return resultobj; | |
31043 | fail: | |
31044 | return NULL; | |
31045 | } | |
31046 | ||
31047 | ||
31048 | SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31049 | PyObject *resultobj = 0; | |
31050 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31051 | long arg2 ; | |
31052 | void *argp1 = 0 ; | |
31053 | int res1 = 0 ; | |
31054 | long val2 ; | |
31055 | int ecode2 = 0 ; | |
31056 | PyObject * obj0 = 0 ; | |
31057 | PyObject * obj1 = 0 ; | |
31058 | char * kwnames[] = { | |
31059 | (char *) "self",(char *) "item", NULL | |
31060 | }; | |
31061 | ||
31062 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
31063 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31064 | if (!SWIG_IsOK(res1)) { | |
31065 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31066 | } | |
31067 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31068 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31069 | if (!SWIG_IsOK(ecode2)) { | |
31070 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'"); | |
31071 | } | |
31072 | arg2 = static_cast< long >(val2); | |
31073 | { | |
31074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31075 | (arg1)->EditLabel(arg2); | |
31076 | wxPyEndAllowThreads(__tstate); | |
31077 | if (PyErr_Occurred()) SWIG_fail; | |
31078 | } | |
31079 | resultobj = SWIG_Py_Void(); | |
31080 | return resultobj; | |
31081 | fail: | |
31082 | return NULL; | |
31083 | } | |
31084 | ||
31085 | ||
31086 | SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31087 | PyObject *resultobj = 0; | |
31088 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31089 | long arg2 ; | |
31090 | bool result; | |
31091 | void *argp1 = 0 ; | |
31092 | int res1 = 0 ; | |
31093 | long val2 ; | |
31094 | int ecode2 = 0 ; | |
31095 | PyObject * obj0 = 0 ; | |
31096 | PyObject * obj1 = 0 ; | |
31097 | char * kwnames[] = { | |
31098 | (char *) "self",(char *) "item", NULL | |
31099 | }; | |
31100 | ||
31101 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
31102 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31103 | if (!SWIG_IsOK(res1)) { | |
31104 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31105 | } | |
31106 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31107 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31108 | if (!SWIG_IsOK(ecode2)) { | |
31109 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'"); | |
31110 | } | |
31111 | arg2 = static_cast< long >(val2); | |
31112 | { | |
31113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31114 | result = (bool)(arg1)->EnsureVisible(arg2); | |
31115 | wxPyEndAllowThreads(__tstate); | |
31116 | if (PyErr_Occurred()) SWIG_fail; | |
31117 | } | |
31118 | { | |
31119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31120 | } | |
31121 | return resultobj; | |
31122 | fail: | |
31123 | return NULL; | |
31124 | } | |
31125 | ||
31126 | ||
31127 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31128 | PyObject *resultobj = 0; | |
31129 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31130 | long arg2 ; | |
31131 | wxString *arg3 = 0 ; | |
31132 | bool arg4 = (bool) false ; | |
31133 | long result; | |
31134 | void *argp1 = 0 ; | |
31135 | int res1 = 0 ; | |
31136 | long val2 ; | |
31137 | int ecode2 = 0 ; | |
31138 | bool temp3 = false ; | |
31139 | bool val4 ; | |
31140 | int ecode4 = 0 ; | |
31141 | PyObject * obj0 = 0 ; | |
31142 | PyObject * obj1 = 0 ; | |
31143 | PyObject * obj2 = 0 ; | |
31144 | PyObject * obj3 = 0 ; | |
31145 | char * kwnames[] = { | |
31146 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
31147 | }; | |
31148 | ||
31149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31150 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31151 | if (!SWIG_IsOK(res1)) { | |
31152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31153 | } | |
31154 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31155 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31156 | if (!SWIG_IsOK(ecode2)) { | |
31157 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'"); | |
31158 | } | |
31159 | arg2 = static_cast< long >(val2); | |
31160 | { | |
31161 | arg3 = wxString_in_helper(obj2); | |
31162 | if (arg3 == NULL) SWIG_fail; | |
31163 | temp3 = true; | |
31164 | } | |
31165 | if (obj3) { | |
31166 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
31167 | if (!SWIG_IsOK(ecode4)) { | |
31168 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'"); | |
31169 | } | |
31170 | arg4 = static_cast< bool >(val4); | |
31171 | } | |
31172 | { | |
31173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31174 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
31175 | wxPyEndAllowThreads(__tstate); | |
31176 | if (PyErr_Occurred()) SWIG_fail; | |
31177 | } | |
31178 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31179 | { | |
31180 | if (temp3) | |
31181 | delete arg3; | |
31182 | } | |
31183 | return resultobj; | |
31184 | fail: | |
31185 | { | |
31186 | if (temp3) | |
31187 | delete arg3; | |
31188 | } | |
31189 | return NULL; | |
31190 | } | |
31191 | ||
31192 | ||
31193 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31194 | PyObject *resultobj = 0; | |
31195 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31196 | long arg2 ; | |
31197 | long arg3 ; | |
31198 | long result; | |
31199 | void *argp1 = 0 ; | |
31200 | int res1 = 0 ; | |
31201 | long val2 ; | |
31202 | int ecode2 = 0 ; | |
31203 | long val3 ; | |
31204 | int ecode3 = 0 ; | |
31205 | PyObject * obj0 = 0 ; | |
31206 | PyObject * obj1 = 0 ; | |
31207 | PyObject * obj2 = 0 ; | |
31208 | char * kwnames[] = { | |
31209 | (char *) "self",(char *) "start",(char *) "data", NULL | |
31210 | }; | |
31211 | ||
31212 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31213 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31214 | if (!SWIG_IsOK(res1)) { | |
31215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31216 | } | |
31217 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31218 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31219 | if (!SWIG_IsOK(ecode2)) { | |
31220 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'"); | |
31221 | } | |
31222 | arg2 = static_cast< long >(val2); | |
31223 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
31224 | if (!SWIG_IsOK(ecode3)) { | |
31225 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'"); | |
31226 | } | |
31227 | arg3 = static_cast< long >(val3); | |
31228 | { | |
31229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31230 | result = (long)(arg1)->FindItem(arg2,arg3); | |
31231 | wxPyEndAllowThreads(__tstate); | |
31232 | if (PyErr_Occurred()) SWIG_fail; | |
31233 | } | |
31234 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31235 | return resultobj; | |
31236 | fail: | |
31237 | return NULL; | |
31238 | } | |
31239 | ||
31240 | ||
31241 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31242 | PyObject *resultobj = 0; | |
31243 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31244 | long arg2 ; | |
31245 | wxPoint *arg3 = 0 ; | |
31246 | int arg4 ; | |
31247 | long result; | |
31248 | void *argp1 = 0 ; | |
31249 | int res1 = 0 ; | |
31250 | long val2 ; | |
31251 | int ecode2 = 0 ; | |
31252 | wxPoint temp3 ; | |
31253 | int val4 ; | |
31254 | int ecode4 = 0 ; | |
31255 | PyObject * obj0 = 0 ; | |
31256 | PyObject * obj1 = 0 ; | |
31257 | PyObject * obj2 = 0 ; | |
31258 | PyObject * obj3 = 0 ; | |
31259 | char * kwnames[] = { | |
31260 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
31261 | }; | |
31262 | ||
31263 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31264 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31265 | if (!SWIG_IsOK(res1)) { | |
31266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31267 | } | |
31268 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31269 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31270 | if (!SWIG_IsOK(ecode2)) { | |
31271 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'"); | |
31272 | } | |
31273 | arg2 = static_cast< long >(val2); | |
31274 | { | |
31275 | arg3 = &temp3; | |
31276 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31277 | } | |
31278 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31279 | if (!SWIG_IsOK(ecode4)) { | |
31280 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'"); | |
31281 | } | |
31282 | arg4 = static_cast< int >(val4); | |
31283 | { | |
31284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31285 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
31286 | wxPyEndAllowThreads(__tstate); | |
31287 | if (PyErr_Occurred()) SWIG_fail; | |
31288 | } | |
31289 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31290 | return resultobj; | |
31291 | fail: | |
31292 | return NULL; | |
31293 | } | |
31294 | ||
31295 | ||
31296 | SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31297 | PyObject *resultobj = 0; | |
31298 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31299 | wxPoint *arg2 = 0 ; | |
31300 | int *arg3 = 0 ; | |
31301 | long result; | |
31302 | void *argp1 = 0 ; | |
31303 | int res1 = 0 ; | |
31304 | wxPoint temp2 ; | |
31305 | int temp3 ; | |
31306 | int res3 = SWIG_TMPOBJ ; | |
31307 | PyObject * obj0 = 0 ; | |
31308 | PyObject * obj1 = 0 ; | |
31309 | char * kwnames[] = { | |
31310 | (char *) "self",(char *) "point", NULL | |
31311 | }; | |
31312 | ||
31313 | arg3 = &temp3; | |
31314 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
31315 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31316 | if (!SWIG_IsOK(res1)) { | |
31317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31318 | } | |
31319 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31320 | { | |
31321 | arg2 = &temp2; | |
31322 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31323 | } | |
31324 | { | |
31325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31326 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
31327 | wxPyEndAllowThreads(__tstate); | |
31328 | if (PyErr_Occurred()) SWIG_fail; | |
31329 | } | |
31330 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31331 | if (SWIG_IsTmpObj(res3)) { | |
31332 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
31333 | } else { | |
31334 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31335 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
31336 | } | |
31337 | return resultobj; | |
31338 | fail: | |
31339 | return NULL; | |
31340 | } | |
31341 | ||
31342 | ||
704eda0c RD |
31343 | SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31344 | PyObject *resultobj = 0; | |
31345 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31346 | wxPoint *arg2 = 0 ; | |
31347 | int *arg3 = 0 ; | |
31348 | long *arg4 = (long *) 0 ; | |
31349 | long result; | |
31350 | void *argp1 = 0 ; | |
31351 | int res1 = 0 ; | |
31352 | wxPoint temp2 ; | |
31353 | int temp3 ; | |
31354 | int res3 = SWIG_TMPOBJ ; | |
31355 | long temp4 ; | |
31356 | int res4 = SWIG_TMPOBJ ; | |
31357 | PyObject * obj0 = 0 ; | |
31358 | PyObject * obj1 = 0 ; | |
31359 | char * kwnames[] = { | |
31360 | (char *) "self",(char *) "point", NULL | |
31361 | }; | |
31362 | ||
31363 | arg3 = &temp3; | |
31364 | arg4 = &temp4; | |
31365 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
31366 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31367 | if (!SWIG_IsOK(res1)) { | |
31368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31369 | } | |
31370 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31371 | { | |
31372 | arg2 = &temp2; | |
31373 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31374 | } | |
31375 | { | |
31376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31377 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4); | |
31378 | wxPyEndAllowThreads(__tstate); | |
31379 | if (PyErr_Occurred()) SWIG_fail; | |
31380 | } | |
31381 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31382 | if (SWIG_IsTmpObj(res3)) { | |
31383 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
31384 | } else { | |
31385 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31386 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
31387 | } | |
31388 | if (SWIG_IsTmpObj(res4)) { | |
31389 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
31390 | } else { | |
31391 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31392 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
31393 | } | |
31394 | return resultobj; | |
31395 | fail: | |
31396 | return NULL; | |
31397 | } | |
31398 | ||
31399 | ||
1bd55598 RD |
31400 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31401 | PyObject *resultobj = 0; | |
31402 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31403 | wxListItem *arg2 = 0 ; | |
31404 | long result; | |
31405 | void *argp1 = 0 ; | |
31406 | int res1 = 0 ; | |
31407 | void *argp2 = 0 ; | |
31408 | int res2 = 0 ; | |
31409 | PyObject * obj0 = 0 ; | |
31410 | PyObject * obj1 = 0 ; | |
31411 | char * kwnames[] = { | |
31412 | (char *) "self",(char *) "info", NULL | |
31413 | }; | |
31414 | ||
31415 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
31416 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31417 | if (!SWIG_IsOK(res1)) { | |
31418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31419 | } | |
31420 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31421 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 ); | |
31422 | if (!SWIG_IsOK(res2)) { | |
31423 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
31424 | } | |
31425 | if (!argp2) { | |
31426 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
31427 | } | |
31428 | arg2 = reinterpret_cast< wxListItem * >(argp2); | |
31429 | { | |
31430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31431 | result = (long)(arg1)->InsertItem(*arg2); | |
31432 | wxPyEndAllowThreads(__tstate); | |
31433 | if (PyErr_Occurred()) SWIG_fail; | |
31434 | } | |
31435 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31436 | return resultobj; | |
31437 | fail: | |
31438 | return NULL; | |
31439 | } | |
31440 | ||
31441 | ||
31442 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31443 | PyObject *resultobj = 0; | |
31444 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31445 | long arg2 ; | |
31446 | wxString *arg3 = 0 ; | |
31447 | int arg4 = (int) -1 ; | |
31448 | long result; | |
31449 | void *argp1 = 0 ; | |
31450 | int res1 = 0 ; | |
31451 | long val2 ; | |
31452 | int ecode2 = 0 ; | |
31453 | bool temp3 = false ; | |
31454 | int val4 ; | |
31455 | int ecode4 = 0 ; | |
31456 | PyObject * obj0 = 0 ; | |
31457 | PyObject * obj1 = 0 ; | |
31458 | PyObject * obj2 = 0 ; | |
31459 | PyObject * obj3 = 0 ; | |
31460 | char * kwnames[] = { | |
31461 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
31462 | }; | |
31463 | ||
31464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31466 | if (!SWIG_IsOK(res1)) { | |
31467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31468 | } | |
31469 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31470 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31471 | if (!SWIG_IsOK(ecode2)) { | |
31472 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'"); | |
31473 | } | |
31474 | arg2 = static_cast< long >(val2); | |
31475 | { | |
31476 | arg3 = wxString_in_helper(obj2); | |
31477 | if (arg3 == NULL) SWIG_fail; | |
31478 | temp3 = true; | |
31479 | } | |
31480 | if (obj3) { | |
31481 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31482 | if (!SWIG_IsOK(ecode4)) { | |
31483 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'"); | |
31484 | } | |
31485 | arg4 = static_cast< int >(val4); | |
31486 | } | |
31487 | { | |
31488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31489 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
31490 | wxPyEndAllowThreads(__tstate); | |
31491 | if (PyErr_Occurred()) SWIG_fail; | |
31492 | } | |
31493 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31494 | { | |
31495 | if (temp3) | |
31496 | delete arg3; | |
31497 | } | |
31498 | return resultobj; | |
31499 | fail: | |
31500 | { | |
31501 | if (temp3) | |
31502 | delete arg3; | |
31503 | } | |
31504 | return NULL; | |
31505 | } | |
31506 | ||
31507 | ||
31508 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31509 | PyObject *resultobj = 0; | |
31510 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31511 | long arg2 ; | |
31512 | int arg3 ; | |
31513 | long result; | |
31514 | void *argp1 = 0 ; | |
31515 | int res1 = 0 ; | |
31516 | long val2 ; | |
31517 | int ecode2 = 0 ; | |
31518 | int val3 ; | |
31519 | int ecode3 = 0 ; | |
31520 | PyObject * obj0 = 0 ; | |
31521 | PyObject * obj1 = 0 ; | |
31522 | PyObject * obj2 = 0 ; | |
31523 | char * kwnames[] = { | |
31524 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
31525 | }; | |
31526 | ||
31527 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31528 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31529 | if (!SWIG_IsOK(res1)) { | |
31530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31531 | } | |
31532 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31533 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31534 | if (!SWIG_IsOK(ecode2)) { | |
31535 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'"); | |
31536 | } | |
31537 | arg2 = static_cast< long >(val2); | |
31538 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31539 | if (!SWIG_IsOK(ecode3)) { | |
31540 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'"); | |
31541 | } | |
31542 | arg3 = static_cast< int >(val3); | |
31543 | { | |
31544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31545 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
31546 | wxPyEndAllowThreads(__tstate); | |
31547 | if (PyErr_Occurred()) SWIG_fail; | |
31548 | } | |
31549 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31550 | return resultobj; | |
31551 | fail: | |
31552 | return NULL; | |
31553 | } | |
31554 | ||
31555 | ||
31556 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31557 | PyObject *resultobj = 0; | |
31558 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31559 | long arg2 ; | |
31560 | wxString *arg3 = 0 ; | |
31561 | int arg4 ; | |
31562 | long result; | |
31563 | void *argp1 = 0 ; | |
31564 | int res1 = 0 ; | |
31565 | long val2 ; | |
31566 | int ecode2 = 0 ; | |
31567 | bool temp3 = false ; | |
31568 | int val4 ; | |
31569 | int ecode4 = 0 ; | |
31570 | PyObject * obj0 = 0 ; | |
31571 | PyObject * obj1 = 0 ; | |
31572 | PyObject * obj2 = 0 ; | |
31573 | PyObject * obj3 = 0 ; | |
31574 | char * kwnames[] = { | |
31575 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
31576 | }; | |
31577 | ||
31578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31580 | if (!SWIG_IsOK(res1)) { | |
31581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31582 | } | |
31583 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31584 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31585 | if (!SWIG_IsOK(ecode2)) { | |
31586 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'"); | |
31587 | } | |
31588 | arg2 = static_cast< long >(val2); | |
31589 | { | |
31590 | arg3 = wxString_in_helper(obj2); | |
31591 | if (arg3 == NULL) SWIG_fail; | |
31592 | temp3 = true; | |
31593 | } | |
31594 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31595 | if (!SWIG_IsOK(ecode4)) { | |
31596 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'"); | |
31597 | } | |
31598 | arg4 = static_cast< int >(val4); | |
31599 | { | |
31600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31601 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
31602 | wxPyEndAllowThreads(__tstate); | |
31603 | if (PyErr_Occurred()) SWIG_fail; | |
31604 | } | |
31605 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31606 | { | |
31607 | if (temp3) | |
31608 | delete arg3; | |
31609 | } | |
31610 | return resultobj; | |
31611 | fail: | |
31612 | { | |
31613 | if (temp3) | |
31614 | delete arg3; | |
31615 | } | |
31616 | return NULL; | |
31617 | } | |
31618 | ||
31619 | ||
31620 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31621 | PyObject *resultobj = 0; | |
31622 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31623 | long arg2 ; | |
31624 | wxListItem *arg3 = 0 ; | |
31625 | long result; | |
31626 | void *argp1 = 0 ; | |
31627 | int res1 = 0 ; | |
31628 | long val2 ; | |
31629 | int ecode2 = 0 ; | |
31630 | void *argp3 = 0 ; | |
31631 | int res3 = 0 ; | |
31632 | PyObject * obj0 = 0 ; | |
31633 | PyObject * obj1 = 0 ; | |
31634 | PyObject * obj2 = 0 ; | |
31635 | char * kwnames[] = { | |
31636 | (char *) "self",(char *) "col",(char *) "info", NULL | |
31637 | }; | |
31638 | ||
31639 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31640 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31641 | if (!SWIG_IsOK(res1)) { | |
31642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31643 | } | |
31644 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31645 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31646 | if (!SWIG_IsOK(ecode2)) { | |
31647 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'"); | |
31648 | } | |
31649 | arg2 = static_cast< long >(val2); | |
31650 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 ); | |
31651 | if (!SWIG_IsOK(res3)) { | |
31652 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
31653 | } | |
31654 | if (!argp3) { | |
31655 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
31656 | } | |
31657 | arg3 = reinterpret_cast< wxListItem * >(argp3); | |
31658 | { | |
31659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31660 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
31661 | wxPyEndAllowThreads(__tstate); | |
31662 | if (PyErr_Occurred()) SWIG_fail; | |
31663 | } | |
31664 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31665 | return resultobj; | |
31666 | fail: | |
31667 | return NULL; | |
31668 | } | |
31669 | ||
31670 | ||
31671 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31672 | PyObject *resultobj = 0; | |
31673 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31674 | long arg2 ; | |
31675 | wxString *arg3 = 0 ; | |
31676 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
31677 | int arg5 = (int) -1 ; | |
31678 | long result; | |
31679 | void *argp1 = 0 ; | |
31680 | int res1 = 0 ; | |
31681 | long val2 ; | |
31682 | int ecode2 = 0 ; | |
31683 | bool temp3 = false ; | |
31684 | int val4 ; | |
31685 | int ecode4 = 0 ; | |
31686 | int val5 ; | |
31687 | int ecode5 = 0 ; | |
31688 | PyObject * obj0 = 0 ; | |
31689 | PyObject * obj1 = 0 ; | |
31690 | PyObject * obj2 = 0 ; | |
31691 | PyObject * obj3 = 0 ; | |
31692 | PyObject * obj4 = 0 ; | |
31693 | char * kwnames[] = { | |
31694 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
31695 | }; | |
31696 | ||
31697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
31698 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31699 | if (!SWIG_IsOK(res1)) { | |
31700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31701 | } | |
31702 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31703 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31704 | if (!SWIG_IsOK(ecode2)) { | |
31705 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'"); | |
31706 | } | |
31707 | arg2 = static_cast< long >(val2); | |
31708 | { | |
31709 | arg3 = wxString_in_helper(obj2); | |
31710 | if (arg3 == NULL) SWIG_fail; | |
31711 | temp3 = true; | |
31712 | } | |
31713 | if (obj3) { | |
31714 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31715 | if (!SWIG_IsOK(ecode4)) { | |
31716 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'"); | |
31717 | } | |
31718 | arg4 = static_cast< int >(val4); | |
31719 | } | |
31720 | if (obj4) { | |
31721 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31722 | if (!SWIG_IsOK(ecode5)) { | |
31723 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'"); | |
31724 | } | |
31725 | arg5 = static_cast< int >(val5); | |
31726 | } | |
31727 | { | |
31728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31729 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
31730 | wxPyEndAllowThreads(__tstate); | |
31731 | if (PyErr_Occurred()) SWIG_fail; | |
31732 | } | |
31733 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31734 | { | |
31735 | if (temp3) | |
31736 | delete arg3; | |
31737 | } | |
31738 | return resultobj; | |
31739 | fail: | |
31740 | { | |
31741 | if (temp3) | |
31742 | delete arg3; | |
31743 | } | |
31744 | return NULL; | |
31745 | } | |
31746 | ||
31747 | ||
31748 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31749 | PyObject *resultobj = 0; | |
31750 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31751 | long arg2 ; | |
31752 | void *argp1 = 0 ; | |
31753 | int res1 = 0 ; | |
31754 | long val2 ; | |
31755 | int ecode2 = 0 ; | |
31756 | PyObject * obj0 = 0 ; | |
31757 | PyObject * obj1 = 0 ; | |
31758 | char * kwnames[] = { | |
31759 | (char *) "self",(char *) "count", NULL | |
31760 | }; | |
31761 | ||
31762 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
31763 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31764 | if (!SWIG_IsOK(res1)) { | |
31765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31766 | } | |
31767 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31768 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31769 | if (!SWIG_IsOK(ecode2)) { | |
31770 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'"); | |
31771 | } | |
31772 | arg2 = static_cast< long >(val2); | |
31773 | { | |
31774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31775 | (arg1)->SetItemCount(arg2); | |
31776 | wxPyEndAllowThreads(__tstate); | |
31777 | if (PyErr_Occurred()) SWIG_fail; | |
31778 | } | |
31779 | resultobj = SWIG_Py_Void(); | |
31780 | return resultobj; | |
31781 | fail: | |
31782 | return NULL; | |
31783 | } | |
31784 | ||
31785 | ||
31786 | SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31787 | PyObject *resultobj = 0; | |
31788 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31789 | int arg2 ; | |
31790 | int arg3 ; | |
31791 | bool result; | |
31792 | void *argp1 = 0 ; | |
31793 | int res1 = 0 ; | |
31794 | int val2 ; | |
31795 | int ecode2 = 0 ; | |
31796 | int val3 ; | |
31797 | int ecode3 = 0 ; | |
31798 | PyObject * obj0 = 0 ; | |
31799 | PyObject * obj1 = 0 ; | |
31800 | PyObject * obj2 = 0 ; | |
31801 | char * kwnames[] = { | |
31802 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
31803 | }; | |
31804 | ||
31805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31807 | if (!SWIG_IsOK(res1)) { | |
31808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31809 | } | |
31810 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31811 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31812 | if (!SWIG_IsOK(ecode2)) { | |
31813 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'"); | |
31814 | } | |
31815 | arg2 = static_cast< int >(val2); | |
31816 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31817 | if (!SWIG_IsOK(ecode3)) { | |
31818 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'"); | |
31819 | } | |
31820 | arg3 = static_cast< int >(val3); | |
31821 | { | |
31822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31823 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
31824 | wxPyEndAllowThreads(__tstate); | |
31825 | if (PyErr_Occurred()) SWIG_fail; | |
31826 | } | |
31827 | { | |
31828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31829 | } | |
31830 | return resultobj; | |
31831 | fail: | |
31832 | return NULL; | |
31833 | } | |
31834 | ||
31835 | ||
31836 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31837 | PyObject *resultobj = 0; | |
31838 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31839 | long arg2 ; | |
31840 | wxColour *arg3 = 0 ; | |
31841 | void *argp1 = 0 ; | |
31842 | int res1 = 0 ; | |
31843 | long val2 ; | |
31844 | int ecode2 = 0 ; | |
31845 | wxColour temp3 ; | |
31846 | PyObject * obj0 = 0 ; | |
31847 | PyObject * obj1 = 0 ; | |
31848 | PyObject * obj2 = 0 ; | |
31849 | char * kwnames[] = { | |
31850 | (char *) "self",(char *) "item",(char *) "col", NULL | |
31851 | }; | |
31852 | ||
31853 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31854 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31855 | if (!SWIG_IsOK(res1)) { | |
31856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31857 | } | |
31858 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31859 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31860 | if (!SWIG_IsOK(ecode2)) { | |
31861 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'"); | |
31862 | } | |
31863 | arg2 = static_cast< long >(val2); | |
31864 | { | |
31865 | arg3 = &temp3; | |
31866 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31867 | } | |
31868 | { | |
31869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31870 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
31871 | wxPyEndAllowThreads(__tstate); | |
31872 | if (PyErr_Occurred()) SWIG_fail; | |
31873 | } | |
31874 | resultobj = SWIG_Py_Void(); | |
31875 | return resultobj; | |
31876 | fail: | |
31877 | return NULL; | |
31878 | } | |
31879 | ||
31880 | ||
31881 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31882 | PyObject *resultobj = 0; | |
31883 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31884 | long arg2 ; | |
31885 | wxColour result; | |
31886 | void *argp1 = 0 ; | |
31887 | int res1 = 0 ; | |
31888 | long val2 ; | |
31889 | int ecode2 = 0 ; | |
31890 | PyObject * obj0 = 0 ; | |
31891 | PyObject * obj1 = 0 ; | |
31892 | char * kwnames[] = { | |
31893 | (char *) "self",(char *) "item", NULL | |
31894 | }; | |
31895 | ||
31896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
31897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31898 | if (!SWIG_IsOK(res1)) { | |
31899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
31900 | } | |
31901 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31902 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31903 | if (!SWIG_IsOK(ecode2)) { | |
31904 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'"); | |
31905 | } | |
31906 | arg2 = static_cast< long >(val2); | |
31907 | { | |
31908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31909 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
31910 | wxPyEndAllowThreads(__tstate); | |
31911 | if (PyErr_Occurred()) SWIG_fail; | |
31912 | } | |
31913 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
31914 | return resultobj; | |
31915 | fail: | |
31916 | return NULL; | |
31917 | } | |
31918 | ||
31919 | ||
31920 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31921 | PyObject *resultobj = 0; | |
31922 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31923 | long arg2 ; | |
31924 | wxColour *arg3 = 0 ; | |
31925 | void *argp1 = 0 ; | |
31926 | int res1 = 0 ; | |
31927 | long val2 ; | |
31928 | int ecode2 = 0 ; | |
31929 | wxColour temp3 ; | |
31930 | PyObject * obj0 = 0 ; | |
31931 | PyObject * obj1 = 0 ; | |
31932 | PyObject * obj2 = 0 ; | |
31933 | char * kwnames[] = { | |
31934 | (char *) "self",(char *) "item",(char *) "col", NULL | |
31935 | }; | |
31936 | ||
31937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31938 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31939 | if (!SWIG_IsOK(res1)) { | |
31940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31941 | } | |
31942 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31943 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31944 | if (!SWIG_IsOK(ecode2)) { | |
31945 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'"); | |
31946 | } | |
31947 | arg2 = static_cast< long >(val2); | |
31948 | { | |
31949 | arg3 = &temp3; | |
31950 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31951 | } | |
31952 | { | |
31953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31954 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
31955 | wxPyEndAllowThreads(__tstate); | |
31956 | if (PyErr_Occurred()) SWIG_fail; | |
31957 | } | |
31958 | resultobj = SWIG_Py_Void(); | |
31959 | return resultobj; | |
31960 | fail: | |
31961 | return NULL; | |
31962 | } | |
31963 | ||
31964 | ||
31965 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31966 | PyObject *resultobj = 0; | |
31967 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31968 | long arg2 ; | |
31969 | wxColour result; | |
31970 | void *argp1 = 0 ; | |
31971 | int res1 = 0 ; | |
31972 | long val2 ; | |
31973 | int ecode2 = 0 ; | |
31974 | PyObject * obj0 = 0 ; | |
31975 | PyObject * obj1 = 0 ; | |
31976 | char * kwnames[] = { | |
31977 | (char *) "self",(char *) "item", NULL | |
31978 | }; | |
31979 | ||
31980 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
31981 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31982 | if (!SWIG_IsOK(res1)) { | |
31983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
31984 | } | |
31985 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31986 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31987 | if (!SWIG_IsOK(ecode2)) { | |
31988 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'"); | |
31989 | } | |
31990 | arg2 = static_cast< long >(val2); | |
31991 | { | |
31992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31993 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
31994 | wxPyEndAllowThreads(__tstate); | |
31995 | if (PyErr_Occurred()) SWIG_fail; | |
31996 | } | |
31997 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
31998 | return resultobj; | |
31999 | fail: | |
32000 | return NULL; | |
32001 | } | |
32002 | ||
32003 | ||
32004 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32005 | PyObject *resultobj = 0; | |
32006 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
32007 | long arg2 ; | |
32008 | wxFont *arg3 = 0 ; | |
32009 | void *argp1 = 0 ; | |
32010 | int res1 = 0 ; | |
32011 | long val2 ; | |
32012 | int ecode2 = 0 ; | |
32013 | void *argp3 = 0 ; | |
32014 | int res3 = 0 ; | |
32015 | PyObject * obj0 = 0 ; | |
32016 | PyObject * obj1 = 0 ; | |
32017 | PyObject * obj2 = 0 ; | |
32018 | char * kwnames[] = { | |
32019 | (char *) "self",(char *) "item",(char *) "f", NULL | |
32020 | }; | |
32021 | ||
32022 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32023 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
32024 | if (!SWIG_IsOK(res1)) { | |
32025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
32026 | } | |
32027 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
32028 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32029 | if (!SWIG_IsOK(ecode2)) { | |
32030 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'"); | |
32031 | } | |
32032 | arg2 = static_cast< long >(val2); | |
32033 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
32034 | if (!SWIG_IsOK(res3)) { | |
32035 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
32036 | } | |
32037 | if (!argp3) { | |
32038 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
32039 | } | |
32040 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
32041 | { | |
32042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32043 | (arg1)->SetItemFont(arg2,(wxFont const &)*arg3); | |
32044 | wxPyEndAllowThreads(__tstate); | |
32045 | if (PyErr_Occurred()) SWIG_fail; | |
32046 | } | |
32047 | resultobj = SWIG_Py_Void(); | |
32048 | return resultobj; | |
32049 | fail: | |
32050 | return NULL; | |
32051 | } | |
32052 | ||
32053 | ||
32054 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32055 | PyObject *resultobj = 0; | |
32056 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
32057 | long arg2 ; | |
32058 | wxFont result; | |
32059 | void *argp1 = 0 ; | |
32060 | int res1 = 0 ; | |
32061 | long val2 ; | |
32062 | int ecode2 = 0 ; | |
32063 | PyObject * obj0 = 0 ; | |
32064 | PyObject * obj1 = 0 ; | |
32065 | char * kwnames[] = { | |
32066 | (char *) "self",(char *) "item", NULL | |
32067 | }; | |
32068 | ||
32069 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
32070 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
32071 | if (!SWIG_IsOK(res1)) { | |
32072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
32073 | } | |
32074 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
32075 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32076 | if (!SWIG_IsOK(ecode2)) { | |
32077 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'"); | |
32078 | } | |
32079 | arg2 = static_cast< long >(val2); | |
32080 | { | |
32081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32082 | result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2); | |
32083 | wxPyEndAllowThreads(__tstate); | |
32084 | if (PyErr_Occurred()) SWIG_fail; | |
32085 | } | |
32086 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
32087 | return resultobj; | |
32088 | fail: | |
32089 | return NULL; | |
32090 | } | |
32091 | ||
32092 | ||
32093 | SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32094 | PyObject *resultobj = 0; | |
32095 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
32096 | PyObject *arg2 = (PyObject *) 0 ; | |
32097 | bool result; | |
32098 | void *argp1 = 0 ; | |
32099 | int res1 = 0 ; | |
32100 | PyObject * obj0 = 0 ; | |
32101 | PyObject * obj1 = 0 ; | |
32102 | char * kwnames[] = { | |
32103 | (char *) "self",(char *) "func", NULL | |
32104 | }; | |
32105 | ||
32106 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail; | |
32107 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
32108 | if (!SWIG_IsOK(res1)) { | |
32109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
32110 | } | |
32111 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
32112 | arg2 = obj1; | |
32113 | { | |
32114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32115 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
32116 | wxPyEndAllowThreads(__tstate); | |
32117 | if (PyErr_Occurred()) SWIG_fail; | |
32118 | } | |
32119 | { | |
32120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32121 | } | |
32122 | return resultobj; | |
32123 | fail: | |
32124 | return NULL; | |
b411df4a RD |
32125 | } |
32126 | ||
32127 | ||
1bd55598 RD |
32128 | SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32129 | PyObject *resultobj = 0; | |
32130 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
32131 | wxWindow *result = 0 ; | |
32132 | void *argp1 = 0 ; | |
32133 | int res1 = 0 ; | |
32134 | PyObject *swig_obj[1] ; | |
32135 | ||
32136 | if (!args) SWIG_fail; | |
32137 | swig_obj[0] = args; | |
32138 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
32139 | if (!SWIG_IsOK(res1)) { | |
32140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
32141 | } | |
32142 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
32143 | { | |
32144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32145 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
32146 | wxPyEndAllowThreads(__tstate); | |
32147 | if (PyErr_Occurred()) SWIG_fail; | |
32148 | } | |
32149 | { | |
32150 | resultobj = wxPyMake_wxObject(result, 0); | |
32151 | } | |
32152 | return resultobj; | |
32153 | fail: | |
32154 | return NULL; | |
7993762b RD |
32155 | } |
32156 | ||
32157 | ||
1bd55598 RD |
32158 | SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32159 | PyObject *resultobj = 0; | |
32160 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
32161 | SwigValueWrapper<wxVisualAttributes > result; | |
32162 | int val1 ; | |
32163 | int ecode1 = 0 ; | |
32164 | PyObject * obj0 = 0 ; | |
32165 | char * kwnames[] = { | |
32166 | (char *) "variant", NULL | |
32167 | }; | |
32168 | ||
32169 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
32170 | if (obj0) { | |
32171 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32172 | if (!SWIG_IsOK(ecode1)) { | |
32173 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
32174 | } | |
32175 | arg1 = static_cast< wxWindowVariant >(val1); | |
32176 | } | |
32177 | { | |
32178 | if (!wxPyCheckForApp()) SWIG_fail; | |
32179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32180 | result = wxPyListCtrl::GetClassDefaultAttributes(arg1); | |
32181 | wxPyEndAllowThreads(__tstate); | |
32182 | if (PyErr_Occurred()) SWIG_fail; | |
32183 | } | |
32184 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
32185 | return resultobj; | |
32186 | fail: | |
32187 | return NULL; | |
32188 | } | |
32189 | ||
32190 | ||
32191 | SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32192 | PyObject *obj; | |
32193 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32194 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj)); | |
32195 | return SWIG_Py_Void(); | |
32196 | } | |
32197 | ||
32198 | SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32199 | return SWIG_Python_InitShadowInstance(args); | |
32200 | } | |
32201 | ||
32202 | SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32203 | PyObject *resultobj = 0; | |
32204 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32205 | int arg2 = (int) -1 ; | |
32206 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
32207 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32208 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32209 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32210 | long arg5 = (long) wxLC_REPORT ; | |
32211 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32212 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32213 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
32214 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32215 | wxListView *result = 0 ; | |
32216 | void *argp1 = 0 ; | |
32217 | int res1 = 0 ; | |
32218 | int val2 ; | |
32219 | int ecode2 = 0 ; | |
32220 | wxPoint temp3 ; | |
32221 | wxSize temp4 ; | |
32222 | long val5 ; | |
32223 | int ecode5 = 0 ; | |
32224 | void *argp6 = 0 ; | |
32225 | int res6 = 0 ; | |
32226 | bool temp7 = false ; | |
32227 | PyObject * obj0 = 0 ; | |
32228 | PyObject * obj1 = 0 ; | |
32229 | PyObject * obj2 = 0 ; | |
32230 | PyObject * obj3 = 0 ; | |
32231 | PyObject * obj4 = 0 ; | |
32232 | PyObject * obj5 = 0 ; | |
32233 | PyObject * obj6 = 0 ; | |
32234 | char * kwnames[] = { | |
32235 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32236 | }; | |
32237 | ||
32238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
32239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
32240 | if (!SWIG_IsOK(res1)) { | |
32241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
32242 | } | |
32243 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
32244 | if (obj1) { | |
32245 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32246 | if (!SWIG_IsOK(ecode2)) { | |
32247 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'"); | |
32248 | } | |
32249 | arg2 = static_cast< int >(val2); | |
32250 | } | |
32251 | if (obj2) { | |
b411df4a | 32252 | { |
1bd55598 RD |
32253 | arg3 = &temp3; |
32254 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
b411df4a | 32255 | } |
1bd55598 RD |
32256 | } |
32257 | if (obj3) { | |
32258 | { | |
32259 | arg4 = &temp4; | |
32260 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
b411df4a | 32261 | } |
1bd55598 RD |
32262 | } |
32263 | if (obj4) { | |
32264 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
32265 | if (!SWIG_IsOK(ecode5)) { | |
32266 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'"); | |
32267 | } | |
32268 | arg5 = static_cast< long >(val5); | |
32269 | } | |
32270 | if (obj5) { | |
32271 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
32272 | if (!SWIG_IsOK(res6)) { | |
32273 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
b411df4a | 32274 | } |
1bd55598 RD |
32275 | if (!argp6) { |
32276 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
b411df4a | 32277 | } |
1bd55598 RD |
32278 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
32279 | } | |
32280 | if (obj6) { | |
b411df4a | 32281 | { |
1bd55598 RD |
32282 | arg7 = wxString_in_helper(obj6); |
32283 | if (arg7 == NULL) SWIG_fail; | |
32284 | temp7 = true; | |
b411df4a | 32285 | } |
1bd55598 RD |
32286 | } |
32287 | { | |
32288 | if (!wxPyCheckForApp()) SWIG_fail; | |
32289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32290 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32291 | wxPyEndAllowThreads(__tstate); | |
32292 | if (PyErr_Occurred()) SWIG_fail; | |
32293 | } | |
32294 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 ); | |
32295 | { | |
32296 | if (temp7) | |
32297 | delete arg7; | |
32298 | } | |
32299 | return resultobj; | |
32300 | fail: | |
32301 | { | |
32302 | if (temp7) | |
32303 | delete arg7; | |
32304 | } | |
32305 | return NULL; | |
b411df4a RD |
32306 | } |
32307 | ||
32308 | ||
1bd55598 RD |
32309 | SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32310 | PyObject *resultobj = 0; | |
32311 | wxListView *result = 0 ; | |
32312 | ||
32313 | if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail; | |
32314 | { | |
32315 | if (!wxPyCheckForApp()) SWIG_fail; | |
32316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32317 | result = (wxListView *)new wxListView(); | |
32318 | wxPyEndAllowThreads(__tstate); | |
32319 | if (PyErr_Occurred()) SWIG_fail; | |
32320 | } | |
32321 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 ); | |
32322 | return resultobj; | |
32323 | fail: | |
32324 | return NULL; | |
32325 | } | |
32326 | ||
32327 | ||
32328 | SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32329 | PyObject *resultobj = 0; | |
32330 | wxListView *arg1 = (wxListView *) 0 ; | |
32331 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32332 | int arg3 = (int) -1 ; | |
32333 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
32334 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
32335 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
32336 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
32337 | long arg6 = (long) wxLC_REPORT ; | |
32338 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
32339 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
32340 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
32341 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
32342 | bool result; | |
32343 | void *argp1 = 0 ; | |
32344 | int res1 = 0 ; | |
32345 | void *argp2 = 0 ; | |
32346 | int res2 = 0 ; | |
32347 | int val3 ; | |
32348 | int ecode3 = 0 ; | |
32349 | wxPoint temp4 ; | |
32350 | wxSize temp5 ; | |
32351 | long val6 ; | |
32352 | int ecode6 = 0 ; | |
32353 | void *argp7 = 0 ; | |
32354 | int res7 = 0 ; | |
32355 | bool temp8 = false ; | |
32356 | PyObject * obj0 = 0 ; | |
32357 | PyObject * obj1 = 0 ; | |
32358 | PyObject * obj2 = 0 ; | |
32359 | PyObject * obj3 = 0 ; | |
32360 | PyObject * obj4 = 0 ; | |
32361 | PyObject * obj5 = 0 ; | |
32362 | PyObject * obj6 = 0 ; | |
32363 | PyObject * obj7 = 0 ; | |
32364 | char * kwnames[] = { | |
32365 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32366 | }; | |
32367 | ||
32368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
32369 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32370 | if (!SWIG_IsOK(res1)) { | |
32371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32372 | } | |
32373 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32374 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
32375 | if (!SWIG_IsOK(res2)) { | |
32376 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
32377 | } | |
32378 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
32379 | if (obj2) { | |
32380 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32381 | if (!SWIG_IsOK(ecode3)) { | |
32382 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'"); | |
32383 | } | |
32384 | arg3 = static_cast< int >(val3); | |
32385 | } | |
32386 | if (obj3) { | |
d55e5bfc | 32387 | { |
1bd55598 RD |
32388 | arg4 = &temp4; |
32389 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 32390 | } |
1bd55598 RD |
32391 | } |
32392 | if (obj4) { | |
36ed4f51 | 32393 | { |
1bd55598 RD |
32394 | arg5 = &temp5; |
32395 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 32396 | } |
1bd55598 RD |
32397 | } |
32398 | if (obj5) { | |
32399 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
32400 | if (!SWIG_IsOK(ecode6)) { | |
32401 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'"); | |
32402 | } | |
32403 | arg6 = static_cast< long >(val6); | |
32404 | } | |
32405 | if (obj6) { | |
32406 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
32407 | if (!SWIG_IsOK(res7)) { | |
32408 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 32409 | } |
1bd55598 RD |
32410 | if (!argp7) { |
32411 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
32412 | } | |
32413 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
32414 | } | |
32415 | if (obj7) { | |
d55e5bfc | 32416 | { |
1bd55598 RD |
32417 | arg8 = wxString_in_helper(obj7); |
32418 | if (arg8 == NULL) SWIG_fail; | |
32419 | temp8 = true; | |
d55e5bfc | 32420 | } |
1bd55598 RD |
32421 | } |
32422 | { | |
32423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32424 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
32425 | wxPyEndAllowThreads(__tstate); | |
32426 | if (PyErr_Occurred()) SWIG_fail; | |
32427 | } | |
32428 | { | |
32429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32430 | } | |
32431 | { | |
32432 | if (temp8) | |
32433 | delete arg8; | |
32434 | } | |
32435 | return resultobj; | |
32436 | fail: | |
32437 | { | |
32438 | if (temp8) | |
32439 | delete arg8; | |
32440 | } | |
32441 | return NULL; | |
32442 | } | |
32443 | ||
32444 | ||
32445 | SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32446 | PyObject *resultobj = 0; | |
32447 | wxListView *arg1 = (wxListView *) 0 ; | |
32448 | long arg2 ; | |
32449 | bool arg3 = (bool) true ; | |
32450 | void *argp1 = 0 ; | |
32451 | int res1 = 0 ; | |
32452 | long val2 ; | |
32453 | int ecode2 = 0 ; | |
32454 | bool val3 ; | |
32455 | int ecode3 = 0 ; | |
32456 | PyObject * obj0 = 0 ; | |
32457 | PyObject * obj1 = 0 ; | |
32458 | PyObject * obj2 = 0 ; | |
32459 | char * kwnames[] = { | |
32460 | (char *) "self",(char *) "n",(char *) "on", NULL | |
32461 | }; | |
32462 | ||
32463 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32464 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32465 | if (!SWIG_IsOK(res1)) { | |
32466 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32467 | } | |
32468 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32469 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32470 | if (!SWIG_IsOK(ecode2)) { | |
32471 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'"); | |
32472 | } | |
32473 | arg2 = static_cast< long >(val2); | |
32474 | if (obj2) { | |
32475 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
32476 | if (!SWIG_IsOK(ecode3)) { | |
32477 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'"); | |
32478 | } | |
32479 | arg3 = static_cast< bool >(val3); | |
32480 | } | |
32481 | { | |
32482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32483 | (arg1)->Select(arg2,arg3); | |
32484 | wxPyEndAllowThreads(__tstate); | |
32485 | if (PyErr_Occurred()) SWIG_fail; | |
32486 | } | |
32487 | resultobj = SWIG_Py_Void(); | |
32488 | return resultobj; | |
32489 | fail: | |
32490 | return NULL; | |
32491 | } | |
32492 | ||
32493 | ||
32494 | SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32495 | PyObject *resultobj = 0; | |
32496 | wxListView *arg1 = (wxListView *) 0 ; | |
32497 | long arg2 ; | |
32498 | void *argp1 = 0 ; | |
32499 | int res1 = 0 ; | |
32500 | long val2 ; | |
32501 | int ecode2 = 0 ; | |
32502 | PyObject * obj0 = 0 ; | |
32503 | PyObject * obj1 = 0 ; | |
32504 | char * kwnames[] = { | |
32505 | (char *) "self",(char *) "index", NULL | |
32506 | }; | |
32507 | ||
32508 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail; | |
32509 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32510 | if (!SWIG_IsOK(res1)) { | |
32511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32512 | } | |
32513 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32514 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32515 | if (!SWIG_IsOK(ecode2)) { | |
32516 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'"); | |
32517 | } | |
32518 | arg2 = static_cast< long >(val2); | |
32519 | { | |
32520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32521 | (arg1)->Focus(arg2); | |
32522 | wxPyEndAllowThreads(__tstate); | |
32523 | if (PyErr_Occurred()) SWIG_fail; | |
32524 | } | |
32525 | resultobj = SWIG_Py_Void(); | |
32526 | return resultobj; | |
32527 | fail: | |
32528 | return NULL; | |
d55e5bfc RD |
32529 | } |
32530 | ||
32531 | ||
1bd55598 RD |
32532 | SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32533 | PyObject *resultobj = 0; | |
32534 | wxListView *arg1 = (wxListView *) 0 ; | |
32535 | long result; | |
32536 | void *argp1 = 0 ; | |
32537 | int res1 = 0 ; | |
32538 | PyObject *swig_obj[1] ; | |
32539 | ||
32540 | if (!args) SWIG_fail; | |
32541 | swig_obj[0] = args; | |
32542 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32543 | if (!SWIG_IsOK(res1)) { | |
32544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
32545 | } | |
32546 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32547 | { | |
32548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32549 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
32550 | wxPyEndAllowThreads(__tstate); | |
32551 | if (PyErr_Occurred()) SWIG_fail; | |
32552 | } | |
32553 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
32554 | return resultobj; | |
32555 | fail: | |
32556 | return NULL; | |
32557 | } | |
32558 | ||
32559 | ||
32560 | SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32561 | PyObject *resultobj = 0; | |
32562 | wxListView *arg1 = (wxListView *) 0 ; | |
32563 | long arg2 ; | |
32564 | long result; | |
32565 | void *argp1 = 0 ; | |
32566 | int res1 = 0 ; | |
32567 | long val2 ; | |
32568 | int ecode2 = 0 ; | |
32569 | PyObject * obj0 = 0 ; | |
32570 | PyObject * obj1 = 0 ; | |
32571 | char * kwnames[] = { | |
32572 | (char *) "self",(char *) "item", NULL | |
32573 | }; | |
32574 | ||
32575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
32576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32577 | if (!SWIG_IsOK(res1)) { | |
32578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
32579 | } | |
32580 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32581 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32582 | if (!SWIG_IsOK(ecode2)) { | |
32583 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'"); | |
32584 | } | |
32585 | arg2 = static_cast< long >(val2); | |
32586 | { | |
32587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32588 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
32589 | wxPyEndAllowThreads(__tstate); | |
32590 | if (PyErr_Occurred()) SWIG_fail; | |
32591 | } | |
32592 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
32593 | return resultobj; | |
32594 | fail: | |
32595 | return NULL; | |
d55e5bfc RD |
32596 | } |
32597 | ||
32598 | ||
1bd55598 RD |
32599 | SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32600 | PyObject *resultobj = 0; | |
32601 | wxListView *arg1 = (wxListView *) 0 ; | |
32602 | long result; | |
32603 | void *argp1 = 0 ; | |
32604 | int res1 = 0 ; | |
32605 | PyObject *swig_obj[1] ; | |
32606 | ||
32607 | if (!args) SWIG_fail; | |
32608 | swig_obj[0] = args; | |
32609 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32610 | if (!SWIG_IsOK(res1)) { | |
32611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
32612 | } | |
32613 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32614 | { | |
32615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32616 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
32617 | wxPyEndAllowThreads(__tstate); | |
32618 | if (PyErr_Occurred()) SWIG_fail; | |
32619 | } | |
32620 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
32621 | return resultobj; | |
32622 | fail: | |
32623 | return NULL; | |
32624 | } | |
32625 | ||
32626 | ||
32627 | SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32628 | PyObject *resultobj = 0; | |
32629 | wxListView *arg1 = (wxListView *) 0 ; | |
32630 | long arg2 ; | |
32631 | bool result; | |
32632 | void *argp1 = 0 ; | |
32633 | int res1 = 0 ; | |
32634 | long val2 ; | |
32635 | int ecode2 = 0 ; | |
32636 | PyObject * obj0 = 0 ; | |
32637 | PyObject * obj1 = 0 ; | |
32638 | char * kwnames[] = { | |
32639 | (char *) "self",(char *) "index", NULL | |
32640 | }; | |
32641 | ||
32642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
32643 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32644 | if (!SWIG_IsOK(res1)) { | |
32645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32646 | } | |
32647 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32648 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32649 | if (!SWIG_IsOK(ecode2)) { | |
32650 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'"); | |
32651 | } | |
32652 | arg2 = static_cast< long >(val2); | |
32653 | { | |
32654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32655 | result = (bool)(arg1)->IsSelected(arg2); | |
32656 | wxPyEndAllowThreads(__tstate); | |
32657 | if (PyErr_Occurred()) SWIG_fail; | |
32658 | } | |
32659 | { | |
32660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32661 | } | |
32662 | return resultobj; | |
32663 | fail: | |
32664 | return NULL; | |
32665 | } | |
32666 | ||
32667 | ||
32668 | SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32669 | PyObject *resultobj = 0; | |
32670 | wxListView *arg1 = (wxListView *) 0 ; | |
32671 | int arg2 ; | |
32672 | int arg3 ; | |
32673 | void *argp1 = 0 ; | |
32674 | int res1 = 0 ; | |
32675 | int val2 ; | |
32676 | int ecode2 = 0 ; | |
32677 | int val3 ; | |
32678 | int ecode3 = 0 ; | |
32679 | PyObject * obj0 = 0 ; | |
32680 | PyObject * obj1 = 0 ; | |
32681 | PyObject * obj2 = 0 ; | |
32682 | char * kwnames[] = { | |
32683 | (char *) "self",(char *) "col",(char *) "image", NULL | |
32684 | }; | |
32685 | ||
32686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32687 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32688 | if (!SWIG_IsOK(res1)) { | |
32689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32690 | } | |
32691 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32692 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32693 | if (!SWIG_IsOK(ecode2)) { | |
32694 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'"); | |
32695 | } | |
32696 | arg2 = static_cast< int >(val2); | |
32697 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32698 | if (!SWIG_IsOK(ecode3)) { | |
32699 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'"); | |
32700 | } | |
32701 | arg3 = static_cast< int >(val3); | |
32702 | { | |
32703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32704 | (arg1)->SetColumnImage(arg2,arg3); | |
32705 | wxPyEndAllowThreads(__tstate); | |
32706 | if (PyErr_Occurred()) SWIG_fail; | |
32707 | } | |
32708 | resultobj = SWIG_Py_Void(); | |
32709 | return resultobj; | |
32710 | fail: | |
32711 | return NULL; | |
32712 | } | |
32713 | ||
32714 | ||
32715 | SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32716 | PyObject *resultobj = 0; | |
32717 | wxListView *arg1 = (wxListView *) 0 ; | |
32718 | int arg2 ; | |
32719 | void *argp1 = 0 ; | |
32720 | int res1 = 0 ; | |
32721 | int val2 ; | |
32722 | int ecode2 = 0 ; | |
32723 | PyObject * obj0 = 0 ; | |
32724 | PyObject * obj1 = 0 ; | |
32725 | char * kwnames[] = { | |
32726 | (char *) "self",(char *) "col", NULL | |
32727 | }; | |
32728 | ||
32729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
32730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32731 | if (!SWIG_IsOK(res1)) { | |
32732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32733 | } | |
32734 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32735 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32736 | if (!SWIG_IsOK(ecode2)) { | |
32737 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'"); | |
32738 | } | |
32739 | arg2 = static_cast< int >(val2); | |
32740 | { | |
32741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32742 | (arg1)->ClearColumnImage(arg2); | |
32743 | wxPyEndAllowThreads(__tstate); | |
32744 | if (PyErr_Occurred()) SWIG_fail; | |
32745 | } | |
32746 | resultobj = SWIG_Py_Void(); | |
32747 | return resultobj; | |
32748 | fail: | |
32749 | return NULL; | |
d55e5bfc RD |
32750 | } |
32751 | ||
32752 | ||
1bd55598 RD |
32753 | SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32754 | PyObject *obj; | |
32755 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32756 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj)); | |
32757 | return SWIG_Py_Void(); | |
d55e5bfc RD |
32758 | } |
32759 | ||
1bd55598 RD |
32760 | SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32761 | return SWIG_Python_InitShadowInstance(args); | |
32762 | } | |
d55e5bfc | 32763 | |
1bd55598 RD |
32764 | SWIGINTERN int TreeCtrlNameStr_set(PyObject *) { |
32765 | SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only."); | |
32766 | return 1; | |
d55e5bfc RD |
32767 | } |
32768 | ||
32769 | ||
1bd55598 RD |
32770 | SWIGINTERN PyObject *TreeCtrlNameStr_get(void) { |
32771 | PyObject *pyobj = 0; | |
32772 | ||
32773 | { | |
32774 | #if wxUSE_UNICODE | |
32775 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
32776 | #else | |
32777 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
32778 | #endif | |
32779 | } | |
32780 | return pyobj; | |
d55e5bfc RD |
32781 | } |
32782 | ||
32783 | ||
1bd55598 RD |
32784 | SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32785 | PyObject *resultobj = 0; | |
32786 | wxTreeItemId *result = 0 ; | |
32787 | ||
32788 | if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail; | |
32789 | { | |
32790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32791 | result = (wxTreeItemId *)new wxTreeItemId(); | |
32792 | wxPyEndAllowThreads(__tstate); | |
32793 | if (PyErr_Occurred()) SWIG_fail; | |
32794 | } | |
32795 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 ); | |
32796 | return resultobj; | |
32797 | fail: | |
32798 | return NULL; | |
d55e5bfc RD |
32799 | } |
32800 | ||
32801 | ||
1bd55598 RD |
32802 | SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32803 | PyObject *resultobj = 0; | |
32804 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32805 | void *argp1 = 0 ; | |
32806 | int res1 = 0 ; | |
32807 | PyObject *swig_obj[1] ; | |
32808 | ||
32809 | if (!args) SWIG_fail; | |
32810 | swig_obj[0] = args; | |
32811 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 ); | |
32812 | if (!SWIG_IsOK(res1)) { | |
32813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32814 | } | |
32815 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32816 | { | |
32817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32818 | delete arg1; | |
d55e5bfc | 32819 | |
1bd55598 RD |
32820 | wxPyEndAllowThreads(__tstate); |
32821 | if (PyErr_Occurred()) SWIG_fail; | |
32822 | } | |
32823 | resultobj = SWIG_Py_Void(); | |
32824 | return resultobj; | |
32825 | fail: | |
32826 | return NULL; | |
d55e5bfc RD |
32827 | } |
32828 | ||
32829 | ||
1bd55598 RD |
32830 | SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32831 | PyObject *resultobj = 0; | |
32832 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32833 | bool result; | |
32834 | void *argp1 = 0 ; | |
32835 | int res1 = 0 ; | |
32836 | PyObject *swig_obj[1] ; | |
32837 | ||
32838 | if (!args) SWIG_fail; | |
32839 | swig_obj[0] = args; | |
32840 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32841 | if (!SWIG_IsOK(res1)) { | |
32842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'"); | |
32843 | } | |
32844 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32845 | { | |
32846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32847 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
32848 | wxPyEndAllowThreads(__tstate); | |
32849 | if (PyErr_Occurred()) SWIG_fail; | |
32850 | } | |
32851 | { | |
32852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32853 | } | |
32854 | return resultobj; | |
32855 | fail: | |
32856 | return NULL; | |
32857 | } | |
32858 | ||
32859 | ||
32860 | SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32861 | PyObject *resultobj = 0; | |
32862 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32863 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
32864 | bool result; | |
32865 | void *argp1 = 0 ; | |
32866 | int res1 = 0 ; | |
32867 | void *argp2 = 0 ; | |
32868 | int res2 = 0 ; | |
32869 | PyObject * obj0 = 0 ; | |
32870 | PyObject * obj1 = 0 ; | |
32871 | char * kwnames[] = { | |
32872 | (char *) "self",(char *) "other", NULL | |
32873 | }; | |
32874 | ||
32875 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
32876 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32877 | if (!SWIG_IsOK(res1)) { | |
32878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32879 | } | |
32880 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32881 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32882 | if (!SWIG_IsOK(res2)) { | |
32883 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'"); | |
32884 | } | |
32885 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32886 | { | |
32887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32888 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
32889 | wxPyEndAllowThreads(__tstate); | |
32890 | if (PyErr_Occurred()) SWIG_fail; | |
32891 | } | |
32892 | { | |
32893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32894 | } | |
32895 | return resultobj; | |
32896 | fail: | |
32897 | return NULL; | |
32898 | } | |
32899 | ||
32900 | ||
32901 | SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32902 | PyObject *resultobj = 0; | |
32903 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32904 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
32905 | bool result; | |
32906 | void *argp1 = 0 ; | |
32907 | int res1 = 0 ; | |
32908 | void *argp2 = 0 ; | |
32909 | int res2 = 0 ; | |
32910 | PyObject * obj0 = 0 ; | |
32911 | PyObject * obj1 = 0 ; | |
32912 | char * kwnames[] = { | |
32913 | (char *) "self",(char *) "other", NULL | |
32914 | }; | |
32915 | ||
32916 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
32917 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32918 | if (!SWIG_IsOK(res1)) { | |
32919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32920 | } | |
32921 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32922 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32923 | if (!SWIG_IsOK(res2)) { | |
32924 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'"); | |
32925 | } | |
32926 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32927 | { | |
32928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32929 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
32930 | wxPyEndAllowThreads(__tstate); | |
32931 | if (PyErr_Occurred()) SWIG_fail; | |
32932 | } | |
32933 | { | |
32934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32935 | } | |
32936 | return resultobj; | |
32937 | fail: | |
32938 | return NULL; | |
d55e5bfc RD |
32939 | } |
32940 | ||
32941 | ||
1bd55598 RD |
32942 | SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32943 | PyObject *resultobj = 0; | |
32944 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32945 | void *arg2 = (void *) 0 ; | |
32946 | void *argp1 = 0 ; | |
32947 | int res1 = 0 ; | |
32948 | int res2 ; | |
32949 | PyObject *swig_obj[2] ; | |
32950 | ||
32951 | if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail; | |
32952 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32953 | if (!SWIG_IsOK(res1)) { | |
32954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32955 | } | |
32956 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32957 | res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); | |
32958 | if (!SWIG_IsOK(res2)) { | |
32959 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'"); | |
32960 | } | |
32961 | if (arg1) (arg1)->m_pItem = arg2; | |
32962 | ||
32963 | resultobj = SWIG_Py_Void(); | |
32964 | return resultobj; | |
32965 | fail: | |
32966 | return NULL; | |
d55e5bfc RD |
32967 | } |
32968 | ||
32969 | ||
1bd55598 RD |
32970 | SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32971 | PyObject *resultobj = 0; | |
32972 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32973 | void *result = 0 ; | |
32974 | void *argp1 = 0 ; | |
32975 | int res1 = 0 ; | |
32976 | PyObject *swig_obj[1] ; | |
32977 | ||
32978 | if (!args) SWIG_fail; | |
32979 | swig_obj[0] = args; | |
32980 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32981 | if (!SWIG_IsOK(res1)) { | |
32982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32983 | } | |
32984 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32985 | result = (void *) ((arg1)->m_pItem); | |
32986 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
32987 | return resultobj; | |
32988 | fail: | |
32989 | return NULL; | |
d55e5bfc RD |
32990 | } |
32991 | ||
32992 | ||
1bd55598 RD |
32993 | SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32994 | PyObject *obj; | |
32995 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32996 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj)); | |
32997 | return SWIG_Py_Void(); | |
d55e5bfc RD |
32998 | } |
32999 | ||
1bd55598 RD |
33000 | SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33001 | return SWIG_Python_InitShadowInstance(args); | |
33002 | } | |
d55e5bfc | 33003 | |
1bd55598 RD |
33004 | SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33005 | PyObject *resultobj = 0; | |
33006 | PyObject *arg1 = (PyObject *) NULL ; | |
33007 | wxPyTreeItemData *result = 0 ; | |
33008 | PyObject * obj0 = 0 ; | |
33009 | char * kwnames[] = { | |
33010 | (char *) "obj", NULL | |
33011 | }; | |
33012 | ||
33013 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail; | |
33014 | if (obj0) { | |
33015 | arg1 = obj0; | |
33016 | } | |
33017 | { | |
33018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33019 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
33020 | wxPyEndAllowThreads(__tstate); | |
33021 | if (PyErr_Occurred()) SWIG_fail; | |
33022 | } | |
33023 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 ); | |
33024 | return resultobj; | |
33025 | fail: | |
33026 | return NULL; | |
d55e5bfc RD |
33027 | } |
33028 | ||
33029 | ||
1bd55598 RD |
33030 | SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33031 | PyObject *resultobj = 0; | |
33032 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33033 | void *argp1 = 0 ; | |
33034 | int res1 = 0 ; | |
33035 | PyObject *swig_obj[1] ; | |
33036 | ||
33037 | if (!args) SWIG_fail; | |
33038 | swig_obj[0] = args; | |
33039 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
33040 | if (!SWIG_IsOK(res1)) { | |
33041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33042 | } | |
33043 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33044 | { | |
33045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33046 | delete arg1; | |
d55e5bfc | 33047 | |
1bd55598 RD |
33048 | wxPyEndAllowThreads(__tstate); |
33049 | if (PyErr_Occurred()) SWIG_fail; | |
33050 | } | |
33051 | resultobj = SWIG_Py_Void(); | |
33052 | return resultobj; | |
33053 | fail: | |
33054 | return NULL; | |
d55e5bfc RD |
33055 | } |
33056 | ||
33057 | ||
1bd55598 RD |
33058 | SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33059 | PyObject *resultobj = 0; | |
33060 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33061 | PyObject *result = 0 ; | |
33062 | void *argp1 = 0 ; | |
33063 | int res1 = 0 ; | |
33064 | PyObject *swig_obj[1] ; | |
33065 | ||
33066 | if (!args) SWIG_fail; | |
33067 | swig_obj[0] = args; | |
33068 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33069 | if (!SWIG_IsOK(res1)) { | |
33070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33071 | } | |
33072 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33073 | { | |
33074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33075 | result = (PyObject *)(arg1)->GetData(); | |
33076 | wxPyEndAllowThreads(__tstate); | |
33077 | if (PyErr_Occurred()) SWIG_fail; | |
33078 | } | |
33079 | resultobj = result; | |
33080 | return resultobj; | |
33081 | fail: | |
33082 | return NULL; | |
33083 | } | |
33084 | ||
33085 | ||
33086 | SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33087 | PyObject *resultobj = 0; | |
33088 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33089 | PyObject *arg2 = (PyObject *) 0 ; | |
33090 | void *argp1 = 0 ; | |
33091 | int res1 = 0 ; | |
33092 | PyObject * obj0 = 0 ; | |
33093 | PyObject * obj1 = 0 ; | |
33094 | char * kwnames[] = { | |
33095 | (char *) "self",(char *) "obj", NULL | |
33096 | }; | |
33097 | ||
33098 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
33099 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33100 | if (!SWIG_IsOK(res1)) { | |
33101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33102 | } | |
33103 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33104 | arg2 = obj1; | |
33105 | { | |
33106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33107 | (arg1)->SetData(arg2); | |
33108 | wxPyEndAllowThreads(__tstate); | |
33109 | if (PyErr_Occurred()) SWIG_fail; | |
33110 | } | |
33111 | resultobj = SWIG_Py_Void(); | |
33112 | return resultobj; | |
33113 | fail: | |
33114 | return NULL; | |
d55e5bfc RD |
33115 | } |
33116 | ||
33117 | ||
1bd55598 RD |
33118 | SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33119 | PyObject *resultobj = 0; | |
33120 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33121 | wxTreeItemId *result = 0 ; | |
33122 | void *argp1 = 0 ; | |
33123 | int res1 = 0 ; | |
33124 | PyObject *swig_obj[1] ; | |
33125 | ||
33126 | if (!args) SWIG_fail; | |
33127 | swig_obj[0] = args; | |
33128 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33129 | if (!SWIG_IsOK(res1)) { | |
33130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33131 | } | |
33132 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33133 | { | |
33134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 33135 | { |
1bd55598 RD |
33136 | wxTreeItemId const &_result_ref = (arg1)->GetId(); |
33137 | result = (wxTreeItemId *) &_result_ref; | |
d55e5bfc | 33138 | } |
1bd55598 RD |
33139 | wxPyEndAllowThreads(__tstate); |
33140 | if (PyErr_Occurred()) SWIG_fail; | |
33141 | } | |
33142 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
33143 | return resultobj; | |
33144 | fail: | |
33145 | return NULL; | |
33146 | } | |
33147 | ||
33148 | ||
33149 | SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33150 | PyObject *resultobj = 0; | |
33151 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33152 | wxTreeItemId *arg2 = 0 ; | |
33153 | void *argp1 = 0 ; | |
33154 | int res1 = 0 ; | |
33155 | void *argp2 = 0 ; | |
33156 | int res2 = 0 ; | |
33157 | PyObject * obj0 = 0 ; | |
33158 | PyObject * obj1 = 0 ; | |
33159 | char * kwnames[] = { | |
33160 | (char *) "self",(char *) "id", NULL | |
33161 | }; | |
33162 | ||
33163 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
33164 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33165 | if (!SWIG_IsOK(res1)) { | |
33166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33167 | } | |
33168 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33169 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33170 | if (!SWIG_IsOK(res2)) { | |
33171 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33172 | } | |
33173 | if (!argp2) { | |
33174 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33175 | } | |
33176 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33177 | { | |
33178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33179 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
33180 | wxPyEndAllowThreads(__tstate); | |
33181 | if (PyErr_Occurred()) SWIG_fail; | |
33182 | } | |
33183 | resultobj = SWIG_Py_Void(); | |
33184 | return resultobj; | |
33185 | fail: | |
33186 | return NULL; | |
d55e5bfc RD |
33187 | } |
33188 | ||
33189 | ||
1bd55598 RD |
33190 | SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33191 | PyObject *resultobj = 0; | |
33192 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33193 | void *argp1 = 0 ; | |
33194 | int res1 = 0 ; | |
33195 | PyObject *swig_obj[1] ; | |
33196 | ||
33197 | if (!args) SWIG_fail; | |
33198 | swig_obj[0] = args; | |
33199 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33200 | if (!SWIG_IsOK(res1)) { | |
33201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33202 | } | |
33203 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33204 | { | |
33205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33206 | wxPyTreeItemData_Destroy(arg1); | |
33207 | wxPyEndAllowThreads(__tstate); | |
33208 | if (PyErr_Occurred()) SWIG_fail; | |
33209 | } | |
33210 | resultobj = SWIG_Py_Void(); | |
33211 | return resultobj; | |
33212 | fail: | |
33213 | return NULL; | |
d55e5bfc RD |
33214 | } |
33215 | ||
33216 | ||
1bd55598 RD |
33217 | SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33218 | PyObject *obj; | |
33219 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33220 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj)); | |
33221 | return SWIG_Py_Void(); | |
d55e5bfc RD |
33222 | } |
33223 | ||
1bd55598 RD |
33224 | SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33225 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
33226 | } |
33227 | ||
b02396e8 RD |
33228 | SWIGINTERN int NullTreeItemId_set(PyObject *_val) { |
33229 | { | |
33230 | void *argp = 0; | |
33231 | int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33232 | if (!SWIG_IsOK(res)) { | |
33233 | SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'"); | |
33234 | } | |
33235 | if (!argp) { | |
33236 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'"); | |
33237 | } else { | |
33238 | wxTreeItemId * temp; | |
33239 | temp = reinterpret_cast< wxTreeItemId * >(argp); | |
33240 | wxNullTreeItemId = *temp; | |
33241 | if (SWIG_IsNewObj(res)) delete temp; | |
33242 | } | |
33243 | } | |
33244 | return 0; | |
33245 | fail: | |
33246 | return 1; | |
33247 | } | |
33248 | ||
33249 | ||
33250 | SWIGINTERN PyObject *NullTreeItemId_get(void) { | |
33251 | PyObject *pyobj = 0; | |
33252 | ||
33253 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 ); | |
33254 | return pyobj; | |
33255 | } | |
33256 | ||
33257 | ||
33258 | SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
1bd55598 RD |
33259 | PyObject *resultobj = 0; |
33260 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
33261 | int arg2 = (int) 0 ; | |
33262 | wxTreeEvent *result = 0 ; | |
33263 | int val1 ; | |
33264 | int ecode1 = 0 ; | |
33265 | int val2 ; | |
33266 | int ecode2 = 0 ; | |
1bd55598 | 33267 | |
b02396e8 RD |
33268 | if ((nobjs < 0) || (nobjs > 2)) SWIG_fail; |
33269 | if (swig_obj[0]) { | |
33270 | ecode1 = SWIG_AsVal_int(swig_obj[0], &val1); | |
1bd55598 RD |
33271 | if (!SWIG_IsOK(ecode1)) { |
33272 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
33273 | } | |
33274 | arg1 = static_cast< wxEventType >(val1); | |
33275 | } | |
b02396e8 RD |
33276 | if (swig_obj[1]) { |
33277 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
1bd55598 RD |
33278 | if (!SWIG_IsOK(ecode2)) { |
33279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'"); | |
33280 | } | |
33281 | arg2 = static_cast< int >(val2); | |
33282 | } | |
33283 | { | |
33284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33285 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
33286 | wxPyEndAllowThreads(__tstate); | |
33287 | if (PyErr_Occurred()) SWIG_fail; | |
33288 | } | |
33289 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 ); | |
33290 | return resultobj; | |
33291 | fail: | |
33292 | return NULL; | |
d55e5bfc RD |
33293 | } |
33294 | ||
33295 | ||
b02396e8 RD |
33296 | SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
33297 | PyObject *resultobj = 0; | |
33298 | wxEventType arg1 ; | |
33299 | wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ; | |
33300 | wxTreeItemId &arg3_defvalue = wxNullTreeItemId ; | |
33301 | wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ; | |
33302 | wxTreeEvent *result = 0 ; | |
33303 | int val1 ; | |
33304 | int ecode1 = 0 ; | |
33305 | void *argp2 = 0 ; | |
33306 | int res2 = 0 ; | |
33307 | void *argp3 = 0 ; | |
33308 | int res3 = 0 ; | |
33309 | ||
33310 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
33311 | ecode1 = SWIG_AsVal_int(swig_obj[0], &val1); | |
33312 | if (!SWIG_IsOK(ecode1)) { | |
33313 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
33314 | } | |
33315 | arg1 = static_cast< wxEventType >(val1); | |
33316 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33317 | if (!SWIG_IsOK(res2)) { | |
33318 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'"); | |
33319 | } | |
33320 | arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2); | |
33321 | if (swig_obj[2]) { | |
33322 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 ); | |
33323 | if (!SWIG_IsOK(res3)) { | |
33324 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'"); | |
33325 | } | |
33326 | if (!argp3) { | |
33327 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'"); | |
33328 | } | |
33329 | arg3 = reinterpret_cast< wxTreeItemId * >(argp3); | |
33330 | } | |
33331 | { | |
33332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33333 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3); | |
33334 | wxPyEndAllowThreads(__tstate); | |
33335 | if (PyErr_Occurred()) SWIG_fail; | |
33336 | } | |
33337 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 ); | |
33338 | return resultobj; | |
33339 | fail: | |
33340 | return NULL; | |
33341 | } | |
33342 | ||
33343 | ||
33344 | SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) { | |
33345 | int argc; | |
33346 | PyObject *argv[4]; | |
33347 | ||
33348 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail; | |
33349 | --argc; | |
33350 | if ((argc >= 0) && (argc <= 2)) { | |
33351 | int _v = 0; | |
33352 | if (argc > 1) { | |
33353 | { | |
33354 | { | |
33355 | int res = SWIG_AsVal_int(argv[1], NULL); | |
33356 | _v = SWIG_CheckState(res); | |
33357 | } | |
33358 | } | |
33359 | if (!_v) goto check_1; | |
33360 | } | |
33361 | return _wrap_new_TreeEvent__SWIG_0(self, argc, argv); | |
33362 | } | |
33363 | check_1: | |
33364 | ||
33365 | if ((argc >= 2) && (argc <= 3)) { | |
33366 | return _wrap_new_TreeEvent__SWIG_1(self, argc, argv); | |
33367 | } | |
33368 | ||
33369 | fail: | |
33370 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'"); | |
33371 | return NULL; | |
33372 | } | |
33373 | ||
33374 | ||
1bd55598 RD |
33375 | SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33376 | PyObject *resultobj = 0; | |
33377 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33378 | wxTreeItemId result; | |
33379 | void *argp1 = 0 ; | |
33380 | int res1 = 0 ; | |
33381 | PyObject *swig_obj[1] ; | |
33382 | ||
33383 | if (!args) SWIG_fail; | |
33384 | swig_obj[0] = args; | |
33385 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33386 | if (!SWIG_IsOK(res1)) { | |
33387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33388 | } | |
33389 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33390 | { | |
33391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33392 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
33393 | wxPyEndAllowThreads(__tstate); | |
33394 | if (PyErr_Occurred()) SWIG_fail; | |
33395 | } | |
33396 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
33397 | return resultobj; | |
33398 | fail: | |
33399 | return NULL; | |
33400 | } | |
33401 | ||
33402 | ||
33403 | SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33404 | PyObject *resultobj = 0; | |
33405 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33406 | wxTreeItemId *arg2 = 0 ; | |
33407 | void *argp1 = 0 ; | |
33408 | int res1 = 0 ; | |
33409 | void *argp2 = 0 ; | |
33410 | int res2 = 0 ; | |
33411 | PyObject * obj0 = 0 ; | |
33412 | PyObject * obj1 = 0 ; | |
33413 | char * kwnames[] = { | |
33414 | (char *) "self",(char *) "item", NULL | |
33415 | }; | |
33416 | ||
33417 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
33418 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33419 | if (!SWIG_IsOK(res1)) { | |
33420 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33421 | } | |
33422 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33423 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33424 | if (!SWIG_IsOK(res2)) { | |
33425 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33426 | } | |
33427 | if (!argp2) { | |
33428 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33429 | } | |
33430 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33431 | { | |
33432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33433 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
33434 | wxPyEndAllowThreads(__tstate); | |
33435 | if (PyErr_Occurred()) SWIG_fail; | |
33436 | } | |
33437 | resultobj = SWIG_Py_Void(); | |
33438 | return resultobj; | |
33439 | fail: | |
33440 | return NULL; | |
d55e5bfc RD |
33441 | } |
33442 | ||
33443 | ||
1bd55598 RD |
33444 | SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33445 | PyObject *resultobj = 0; | |
33446 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33447 | wxTreeItemId result; | |
33448 | void *argp1 = 0 ; | |
33449 | int res1 = 0 ; | |
33450 | PyObject *swig_obj[1] ; | |
33451 | ||
33452 | if (!args) SWIG_fail; | |
33453 | swig_obj[0] = args; | |
33454 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33455 | if (!SWIG_IsOK(res1)) { | |
33456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33457 | } | |
33458 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33459 | { | |
33460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33461 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
33462 | wxPyEndAllowThreads(__tstate); | |
33463 | if (PyErr_Occurred()) SWIG_fail; | |
33464 | } | |
33465 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
33466 | return resultobj; | |
33467 | fail: | |
33468 | return NULL; | |
33469 | } | |
33470 | ||
33471 | ||
33472 | SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33473 | PyObject *resultobj = 0; | |
33474 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33475 | wxTreeItemId *arg2 = 0 ; | |
33476 | void *argp1 = 0 ; | |
33477 | int res1 = 0 ; | |
33478 | void *argp2 = 0 ; | |
33479 | int res2 = 0 ; | |
33480 | PyObject * obj0 = 0 ; | |
33481 | PyObject * obj1 = 0 ; | |
33482 | char * kwnames[] = { | |
33483 | (char *) "self",(char *) "item", NULL | |
33484 | }; | |
33485 | ||
33486 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
33487 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33488 | if (!SWIG_IsOK(res1)) { | |
33489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33490 | } | |
33491 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33492 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33493 | if (!SWIG_IsOK(res2)) { | |
33494 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33495 | } | |
33496 | if (!argp2) { | |
33497 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33498 | } | |
33499 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33500 | { | |
33501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33502 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
33503 | wxPyEndAllowThreads(__tstate); | |
33504 | if (PyErr_Occurred()) SWIG_fail; | |
33505 | } | |
33506 | resultobj = SWIG_Py_Void(); | |
33507 | return resultobj; | |
33508 | fail: | |
33509 | return NULL; | |
d55e5bfc RD |
33510 | } |
33511 | ||
33512 | ||
1bd55598 RD |
33513 | SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33514 | PyObject *resultobj = 0; | |
33515 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33516 | wxPoint result; | |
33517 | void *argp1 = 0 ; | |
33518 | int res1 = 0 ; | |
33519 | PyObject *swig_obj[1] ; | |
33520 | ||
33521 | if (!args) SWIG_fail; | |
33522 | swig_obj[0] = args; | |
33523 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33524 | if (!SWIG_IsOK(res1)) { | |
33525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33526 | } | |
33527 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33528 | { | |
33529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33530 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
33531 | wxPyEndAllowThreads(__tstate); | |
33532 | if (PyErr_Occurred()) SWIG_fail; | |
33533 | } | |
33534 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
33535 | return resultobj; | |
33536 | fail: | |
33537 | return NULL; | |
33538 | } | |
33539 | ||
33540 | ||
33541 | SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33542 | PyObject *resultobj = 0; | |
33543 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33544 | wxPoint *arg2 = 0 ; | |
33545 | void *argp1 = 0 ; | |
33546 | int res1 = 0 ; | |
33547 | wxPoint temp2 ; | |
33548 | PyObject * obj0 = 0 ; | |
33549 | PyObject * obj1 = 0 ; | |
33550 | char * kwnames[] = { | |
33551 | (char *) "self",(char *) "pt", NULL | |
33552 | }; | |
33553 | ||
33554 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
33555 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33556 | if (!SWIG_IsOK(res1)) { | |
33557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33558 | } | |
33559 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33560 | { | |
33561 | arg2 = &temp2; | |
33562 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33563 | } | |
33564 | { | |
33565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33566 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
33567 | wxPyEndAllowThreads(__tstate); | |
33568 | if (PyErr_Occurred()) SWIG_fail; | |
33569 | } | |
33570 | resultobj = SWIG_Py_Void(); | |
33571 | return resultobj; | |
33572 | fail: | |
33573 | return NULL; | |
d55e5bfc RD |
33574 | } |
33575 | ||
33576 | ||
1bd55598 RD |
33577 | SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33578 | PyObject *resultobj = 0; | |
33579 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33580 | wxKeyEvent *result = 0 ; | |
33581 | void *argp1 = 0 ; | |
33582 | int res1 = 0 ; | |
33583 | PyObject *swig_obj[1] ; | |
33584 | ||
33585 | if (!args) SWIG_fail; | |
33586 | swig_obj[0] = args; | |
33587 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33588 | if (!SWIG_IsOK(res1)) { | |
33589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33590 | } | |
33591 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33592 | { | |
33593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 33594 | { |
1bd55598 RD |
33595 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); |
33596 | result = (wxKeyEvent *) &_result_ref; | |
d55e5bfc | 33597 | } |
1bd55598 RD |
33598 | wxPyEndAllowThreads(__tstate); |
33599 | if (PyErr_Occurred()) SWIG_fail; | |
33600 | } | |
33601 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 ); | |
33602 | return resultobj; | |
33603 | fail: | |
33604 | return NULL; | |
d55e5bfc RD |
33605 | } |
33606 | ||
33607 | ||
1bd55598 RD |
33608 | SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33609 | PyObject *resultobj = 0; | |
33610 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33611 | int result; | |
33612 | void *argp1 = 0 ; | |
33613 | int res1 = 0 ; | |
33614 | PyObject *swig_obj[1] ; | |
33615 | ||
33616 | if (!args) SWIG_fail; | |
33617 | swig_obj[0] = args; | |
33618 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33619 | if (!SWIG_IsOK(res1)) { | |
33620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33621 | } | |
33622 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33623 | { | |
33624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33625 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
33626 | wxPyEndAllowThreads(__tstate); | |
33627 | if (PyErr_Occurred()) SWIG_fail; | |
33628 | } | |
33629 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33630 | return resultobj; | |
33631 | fail: | |
33632 | return NULL; | |
33633 | } | |
33634 | ||
33635 | ||
33636 | SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33637 | PyObject *resultobj = 0; | |
33638 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33639 | wxKeyEvent *arg2 = 0 ; | |
33640 | void *argp1 = 0 ; | |
33641 | int res1 = 0 ; | |
33642 | void *argp2 = 0 ; | |
33643 | int res2 = 0 ; | |
33644 | PyObject * obj0 = 0 ; | |
33645 | PyObject * obj1 = 0 ; | |
33646 | char * kwnames[] = { | |
33647 | (char *) "self",(char *) "evt", NULL | |
33648 | }; | |
33649 | ||
33650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
33651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33652 | if (!SWIG_IsOK(res1)) { | |
33653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33654 | } | |
33655 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33656 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0); | |
33657 | if (!SWIG_IsOK(res2)) { | |
33658 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
33659 | } | |
33660 | if (!argp2) { | |
33661 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
33662 | } | |
33663 | arg2 = reinterpret_cast< wxKeyEvent * >(argp2); | |
33664 | { | |
33665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33666 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
33667 | wxPyEndAllowThreads(__tstate); | |
33668 | if (PyErr_Occurred()) SWIG_fail; | |
33669 | } | |
33670 | resultobj = SWIG_Py_Void(); | |
33671 | return resultobj; | |
33672 | fail: | |
33673 | return NULL; | |
d55e5bfc RD |
33674 | } |
33675 | ||
33676 | ||
1bd55598 RD |
33677 | SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33678 | PyObject *resultobj = 0; | |
33679 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33680 | wxString *result = 0 ; | |
33681 | void *argp1 = 0 ; | |
33682 | int res1 = 0 ; | |
33683 | PyObject *swig_obj[1] ; | |
33684 | ||
33685 | if (!args) SWIG_fail; | |
33686 | swig_obj[0] = args; | |
33687 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33688 | if (!SWIG_IsOK(res1)) { | |
33689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33690 | } | |
33691 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33692 | { | |
33693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 33694 | { |
1bd55598 RD |
33695 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); |
33696 | result = (wxString *) &_result_ref; | |
d55e5bfc | 33697 | } |
1bd55598 RD |
33698 | wxPyEndAllowThreads(__tstate); |
33699 | if (PyErr_Occurred()) SWIG_fail; | |
33700 | } | |
33701 | { | |
33702 | #if wxUSE_UNICODE | |
33703 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33704 | #else | |
33705 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33706 | #endif | |
33707 | } | |
33708 | return resultobj; | |
33709 | fail: | |
33710 | return NULL; | |
33711 | } | |
33712 | ||
33713 | ||
33714 | SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33715 | PyObject *resultobj = 0; | |
33716 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33717 | wxString *arg2 = 0 ; | |
33718 | void *argp1 = 0 ; | |
33719 | int res1 = 0 ; | |
33720 | bool temp2 = false ; | |
33721 | PyObject * obj0 = 0 ; | |
33722 | PyObject * obj1 = 0 ; | |
33723 | char * kwnames[] = { | |
33724 | (char *) "self",(char *) "label", NULL | |
33725 | }; | |
33726 | ||
33727 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
33728 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33729 | if (!SWIG_IsOK(res1)) { | |
33730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33731 | } | |
33732 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33733 | { | |
33734 | arg2 = wxString_in_helper(obj1); | |
33735 | if (arg2 == NULL) SWIG_fail; | |
33736 | temp2 = true; | |
33737 | } | |
33738 | { | |
33739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33740 | (arg1)->SetLabel((wxString const &)*arg2); | |
33741 | wxPyEndAllowThreads(__tstate); | |
33742 | if (PyErr_Occurred()) SWIG_fail; | |
33743 | } | |
33744 | resultobj = SWIG_Py_Void(); | |
33745 | { | |
33746 | if (temp2) | |
33747 | delete arg2; | |
33748 | } | |
33749 | return resultobj; | |
33750 | fail: | |
33751 | { | |
33752 | if (temp2) | |
33753 | delete arg2; | |
33754 | } | |
33755 | return NULL; | |
d55e5bfc RD |
33756 | } |
33757 | ||
33758 | ||
1bd55598 RD |
33759 | SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33760 | PyObject *resultobj = 0; | |
33761 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33762 | bool result; | |
33763 | void *argp1 = 0 ; | |
33764 | int res1 = 0 ; | |
33765 | PyObject *swig_obj[1] ; | |
33766 | ||
33767 | if (!args) SWIG_fail; | |
33768 | swig_obj[0] = args; | |
33769 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33770 | if (!SWIG_IsOK(res1)) { | |
33771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33772 | } | |
33773 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33774 | { | |
33775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33776 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
33777 | wxPyEndAllowThreads(__tstate); | |
33778 | if (PyErr_Occurred()) SWIG_fail; | |
33779 | } | |
33780 | { | |
33781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33782 | } | |
33783 | return resultobj; | |
33784 | fail: | |
33785 | return NULL; | |
33786 | } | |
33787 | ||
33788 | ||
33789 | SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33790 | PyObject *resultobj = 0; | |
33791 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33792 | bool arg2 ; | |
33793 | void *argp1 = 0 ; | |
33794 | int res1 = 0 ; | |
33795 | bool val2 ; | |
33796 | int ecode2 = 0 ; | |
33797 | PyObject * obj0 = 0 ; | |
33798 | PyObject * obj1 = 0 ; | |
33799 | char * kwnames[] = { | |
33800 | (char *) "self",(char *) "editCancelled", NULL | |
33801 | }; | |
33802 | ||
33803 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail; | |
33804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33805 | if (!SWIG_IsOK(res1)) { | |
33806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33807 | } | |
33808 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33809 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
33810 | if (!SWIG_IsOK(ecode2)) { | |
33811 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'"); | |
33812 | } | |
33813 | arg2 = static_cast< bool >(val2); | |
33814 | { | |
33815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33816 | (arg1)->SetEditCanceled(arg2); | |
33817 | wxPyEndAllowThreads(__tstate); | |
33818 | if (PyErr_Occurred()) SWIG_fail; | |
33819 | } | |
33820 | resultobj = SWIG_Py_Void(); | |
33821 | return resultobj; | |
33822 | fail: | |
33823 | return NULL; | |
33824 | } | |
33825 | ||
33826 | ||
33827 | SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33828 | PyObject *resultobj = 0; | |
33829 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33830 | wxString *arg2 = 0 ; | |
33831 | void *argp1 = 0 ; | |
33832 | int res1 = 0 ; | |
33833 | bool temp2 = false ; | |
33834 | PyObject * obj0 = 0 ; | |
33835 | PyObject * obj1 = 0 ; | |
33836 | char * kwnames[] = { | |
33837 | (char *) "self",(char *) "toolTip", NULL | |
33838 | }; | |
33839 | ||
33840 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail; | |
33841 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33842 | if (!SWIG_IsOK(res1)) { | |
33843 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33844 | } | |
33845 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33846 | { | |
33847 | arg2 = wxString_in_helper(obj1); | |
33848 | if (arg2 == NULL) SWIG_fail; | |
33849 | temp2 = true; | |
33850 | } | |
33851 | { | |
33852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33853 | (arg1)->SetToolTip((wxString const &)*arg2); | |
33854 | wxPyEndAllowThreads(__tstate); | |
33855 | if (PyErr_Occurred()) SWIG_fail; | |
33856 | } | |
33857 | resultobj = SWIG_Py_Void(); | |
33858 | { | |
33859 | if (temp2) | |
33860 | delete arg2; | |
33861 | } | |
33862 | return resultobj; | |
33863 | fail: | |
33864 | { | |
33865 | if (temp2) | |
33866 | delete arg2; | |
33867 | } | |
33868 | return NULL; | |
d55e5bfc RD |
33869 | } |
33870 | ||
33871 | ||
1bd55598 RD |
33872 | SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33873 | PyObject *resultobj = 0; | |
33874 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33875 | wxString result; | |
33876 | void *argp1 = 0 ; | |
33877 | int res1 = 0 ; | |
33878 | PyObject *swig_obj[1] ; | |
33879 | ||
33880 | if (!args) SWIG_fail; | |
33881 | swig_obj[0] = args; | |
33882 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33883 | if (!SWIG_IsOK(res1)) { | |
33884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33885 | } | |
33886 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33887 | { | |
33888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33889 | result = (arg1)->GetToolTip(); | |
33890 | wxPyEndAllowThreads(__tstate); | |
33891 | if (PyErr_Occurred()) SWIG_fail; | |
33892 | } | |
33893 | { | |
33894 | #if wxUSE_UNICODE | |
33895 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33896 | #else | |
33897 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33898 | #endif | |
33899 | } | |
33900 | return resultobj; | |
33901 | fail: | |
33902 | return NULL; | |
33903 | } | |
33904 | ||
33905 | ||
33906 | SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33907 | PyObject *obj; | |
33908 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33909 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj)); | |
33910 | return SWIG_Py_Void(); | |
33911 | } | |
33912 | ||
33913 | SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33914 | return SWIG_Python_InitShadowInstance(args); | |
33915 | } | |
33916 | ||
33917 | SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33918 | PyObject *resultobj = 0; | |
33919 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33920 | int arg2 = (int) -1 ; | |
33921 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
33922 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33923 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33924 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33925 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
33926 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
33927 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
33928 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
33929 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33930 | wxPyTreeCtrl *result = 0 ; | |
33931 | void *argp1 = 0 ; | |
33932 | int res1 = 0 ; | |
33933 | int val2 ; | |
33934 | int ecode2 = 0 ; | |
33935 | wxPoint temp3 ; | |
33936 | wxSize temp4 ; | |
33937 | long val5 ; | |
33938 | int ecode5 = 0 ; | |
33939 | void *argp6 = 0 ; | |
33940 | int res6 = 0 ; | |
33941 | bool temp7 = false ; | |
33942 | PyObject * obj0 = 0 ; | |
33943 | PyObject * obj1 = 0 ; | |
33944 | PyObject * obj2 = 0 ; | |
33945 | PyObject * obj3 = 0 ; | |
33946 | PyObject * obj4 = 0 ; | |
33947 | PyObject * obj5 = 0 ; | |
33948 | PyObject * obj6 = 0 ; | |
33949 | char * kwnames[] = { | |
33950 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33951 | }; | |
33952 | ||
33953 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
33954 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33955 | if (!SWIG_IsOK(res1)) { | |
33956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
33957 | } | |
33958 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
33959 | if (obj1) { | |
33960 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33961 | if (!SWIG_IsOK(ecode2)) { | |
33962 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'"); | |
33963 | } | |
33964 | arg2 = static_cast< int >(val2); | |
33965 | } | |
33966 | if (obj2) { | |
d55e5bfc | 33967 | { |
1bd55598 RD |
33968 | arg3 = &temp3; |
33969 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 33970 | } |
1bd55598 RD |
33971 | } |
33972 | if (obj3) { | |
36ed4f51 | 33973 | { |
1bd55598 RD |
33974 | arg4 = &temp4; |
33975 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 33976 | } |
1bd55598 RD |
33977 | } |
33978 | if (obj4) { | |
33979 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
33980 | if (!SWIG_IsOK(ecode5)) { | |
33981 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'"); | |
33982 | } | |
33983 | arg5 = static_cast< long >(val5); | |
33984 | } | |
33985 | if (obj5) { | |
33986 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
33987 | if (!SWIG_IsOK(res6)) { | |
33988 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 33989 | } |
1bd55598 RD |
33990 | if (!argp6) { |
33991 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 33992 | } |
1bd55598 RD |
33993 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
33994 | } | |
33995 | if (obj6) { | |
d55e5bfc | 33996 | { |
1bd55598 RD |
33997 | arg7 = wxString_in_helper(obj6); |
33998 | if (arg7 == NULL) SWIG_fail; | |
33999 | temp7 = true; | |
d55e5bfc | 34000 | } |
1bd55598 RD |
34001 | } |
34002 | { | |
34003 | if (!wxPyCheckForApp()) SWIG_fail; | |
34004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34005 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
34006 | wxPyEndAllowThreads(__tstate); | |
34007 | if (PyErr_Occurred()) SWIG_fail; | |
34008 | } | |
34009 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 ); | |
34010 | { | |
34011 | if (temp7) | |
34012 | delete arg7; | |
34013 | } | |
34014 | return resultobj; | |
34015 | fail: | |
34016 | { | |
34017 | if (temp7) | |
34018 | delete arg7; | |
34019 | } | |
34020 | return NULL; | |
34021 | } | |
34022 | ||
34023 | ||
34024 | SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34025 | PyObject *resultobj = 0; | |
34026 | wxPyTreeCtrl *result = 0 ; | |
34027 | ||
34028 | if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail; | |
34029 | { | |
34030 | if (!wxPyCheckForApp()) SWIG_fail; | |
34031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34032 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
34033 | wxPyEndAllowThreads(__tstate); | |
34034 | if (PyErr_Occurred()) SWIG_fail; | |
34035 | } | |
34036 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 ); | |
34037 | return resultobj; | |
34038 | fail: | |
34039 | return NULL; | |
34040 | } | |
34041 | ||
34042 | ||
34043 | SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34044 | PyObject *resultobj = 0; | |
34045 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34046 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34047 | int arg3 = (int) -1 ; | |
34048 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
34049 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
34050 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
34051 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
34052 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
34053 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
34054 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
34055 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
34056 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
34057 | bool result; | |
34058 | void *argp1 = 0 ; | |
34059 | int res1 = 0 ; | |
34060 | void *argp2 = 0 ; | |
34061 | int res2 = 0 ; | |
34062 | int val3 ; | |
34063 | int ecode3 = 0 ; | |
34064 | wxPoint temp4 ; | |
34065 | wxSize temp5 ; | |
34066 | long val6 ; | |
34067 | int ecode6 = 0 ; | |
34068 | void *argp7 = 0 ; | |
34069 | int res7 = 0 ; | |
34070 | bool temp8 = false ; | |
34071 | PyObject * obj0 = 0 ; | |
34072 | PyObject * obj1 = 0 ; | |
34073 | PyObject * obj2 = 0 ; | |
34074 | PyObject * obj3 = 0 ; | |
34075 | PyObject * obj4 = 0 ; | |
34076 | PyObject * obj5 = 0 ; | |
34077 | PyObject * obj6 = 0 ; | |
34078 | PyObject * obj7 = 0 ; | |
34079 | char * kwnames[] = { | |
34080 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34081 | }; | |
34082 | ||
34083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
34084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34085 | if (!SWIG_IsOK(res1)) { | |
34086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34087 | } | |
34088 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34089 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34090 | if (!SWIG_IsOK(res2)) { | |
34091 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34092 | } | |
34093 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34094 | if (obj2) { | |
34095 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34096 | if (!SWIG_IsOK(ecode3)) { | |
34097 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
34098 | } | |
34099 | arg3 = static_cast< int >(val3); | |
34100 | } | |
34101 | if (obj3) { | |
d55e5bfc | 34102 | { |
1bd55598 RD |
34103 | arg4 = &temp4; |
34104 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 34105 | } |
1bd55598 RD |
34106 | } |
34107 | if (obj4) { | |
d55e5bfc | 34108 | { |
1bd55598 RD |
34109 | arg5 = &temp5; |
34110 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 34111 | } |
1bd55598 RD |
34112 | } |
34113 | if (obj5) { | |
34114 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
34115 | if (!SWIG_IsOK(ecode6)) { | |
34116 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
34117 | } | |
34118 | arg6 = static_cast< long >(val6); | |
34119 | } | |
34120 | if (obj6) { | |
34121 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
34122 | if (!SWIG_IsOK(res7)) { | |
34123 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 34124 | } |
1bd55598 RD |
34125 | if (!argp7) { |
34126 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 34127 | } |
1bd55598 RD |
34128 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
34129 | } | |
34130 | if (obj7) { | |
d55e5bfc | 34131 | { |
1bd55598 RD |
34132 | arg8 = wxString_in_helper(obj7); |
34133 | if (arg8 == NULL) SWIG_fail; | |
34134 | temp8 = true; | |
d55e5bfc | 34135 | } |
1bd55598 RD |
34136 | } |
34137 | { | |
34138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34139 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
34140 | wxPyEndAllowThreads(__tstate); | |
34141 | if (PyErr_Occurred()) SWIG_fail; | |
34142 | } | |
34143 | { | |
34144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34145 | } | |
34146 | { | |
34147 | if (temp8) | |
34148 | delete arg8; | |
34149 | } | |
34150 | return resultobj; | |
34151 | fail: | |
34152 | { | |
34153 | if (temp8) | |
34154 | delete arg8; | |
34155 | } | |
34156 | return NULL; | |
34157 | } | |
34158 | ||
34159 | ||
34160 | SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34161 | PyObject *resultobj = 0; | |
34162 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34163 | PyObject *arg2 = (PyObject *) 0 ; | |
34164 | PyObject *arg3 = (PyObject *) 0 ; | |
34165 | void *argp1 = 0 ; | |
34166 | int res1 = 0 ; | |
34167 | PyObject * obj0 = 0 ; | |
34168 | PyObject * obj1 = 0 ; | |
34169 | PyObject * obj2 = 0 ; | |
34170 | char * kwnames[] = { | |
34171 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
34172 | }; | |
34173 | ||
34174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) 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__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34178 | } | |
34179 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34180 | arg2 = obj1; | |
34181 | arg3 = obj2; | |
34182 | { | |
34183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34184 | (arg1)->_setCallbackInfo(arg2,arg3); | |
34185 | wxPyEndAllowThreads(__tstate); | |
34186 | if (PyErr_Occurred()) SWIG_fail; | |
34187 | } | |
34188 | resultobj = SWIG_Py_Void(); | |
34189 | return resultobj; | |
34190 | fail: | |
34191 | return NULL; | |
d55e5bfc RD |
34192 | } |
34193 | ||
34194 | ||
1bd55598 RD |
34195 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34196 | PyObject *resultobj = 0; | |
34197 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
e9d6f3a4 | 34198 | unsigned int result; |
1bd55598 RD |
34199 | void *argp1 = 0 ; |
34200 | int res1 = 0 ; | |
34201 | PyObject *swig_obj[1] ; | |
34202 | ||
34203 | if (!args) SWIG_fail; | |
34204 | swig_obj[0] = args; | |
34205 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34206 | if (!SWIG_IsOK(res1)) { | |
34207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34208 | } | |
34209 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34210 | { | |
34211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e9d6f3a4 | 34212 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount(); |
1bd55598 RD |
34213 | wxPyEndAllowThreads(__tstate); |
34214 | if (PyErr_Occurred()) SWIG_fail; | |
34215 | } | |
e9d6f3a4 | 34216 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
1bd55598 RD |
34217 | return resultobj; |
34218 | fail: | |
34219 | return NULL; | |
d55e5bfc RD |
34220 | } |
34221 | ||
34222 | ||
1bd55598 RD |
34223 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34224 | PyObject *resultobj = 0; | |
34225 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34226 | unsigned int result; | |
34227 | void *argp1 = 0 ; | |
34228 | int res1 = 0 ; | |
34229 | PyObject *swig_obj[1] ; | |
34230 | ||
34231 | if (!args) SWIG_fail; | |
34232 | swig_obj[0] = args; | |
34233 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34234 | if (!SWIG_IsOK(res1)) { | |
34235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34236 | } | |
34237 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34238 | { | |
34239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34240 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
34241 | wxPyEndAllowThreads(__tstate); | |
34242 | if (PyErr_Occurred()) SWIG_fail; | |
34243 | } | |
34244 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
34245 | return resultobj; | |
34246 | fail: | |
34247 | return NULL; | |
34248 | } | |
34249 | ||
34250 | ||
34251 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34252 | PyObject *resultobj = 0; | |
34253 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34254 | unsigned int arg2 ; | |
34255 | void *argp1 = 0 ; | |
34256 | int res1 = 0 ; | |
34257 | unsigned int val2 ; | |
34258 | int ecode2 = 0 ; | |
34259 | PyObject * obj0 = 0 ; | |
34260 | PyObject * obj1 = 0 ; | |
34261 | char * kwnames[] = { | |
34262 | (char *) "self",(char *) "indent", NULL | |
34263 | }; | |
34264 | ||
34265 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
34266 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34267 | if (!SWIG_IsOK(res1)) { | |
34268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34269 | } | |
34270 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34271 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
34272 | if (!SWIG_IsOK(ecode2)) { | |
34273 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'"); | |
34274 | } | |
34275 | arg2 = static_cast< unsigned int >(val2); | |
34276 | { | |
34277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34278 | (arg1)->SetIndent(arg2); | |
34279 | wxPyEndAllowThreads(__tstate); | |
34280 | if (PyErr_Occurred()) SWIG_fail; | |
34281 | } | |
34282 | resultobj = SWIG_Py_Void(); | |
34283 | return resultobj; | |
34284 | fail: | |
34285 | return NULL; | |
d55e5bfc RD |
34286 | } |
34287 | ||
34288 | ||
1bd55598 RD |
34289 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34290 | PyObject *resultobj = 0; | |
34291 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34292 | unsigned int result; | |
34293 | void *argp1 = 0 ; | |
34294 | int res1 = 0 ; | |
34295 | PyObject *swig_obj[1] ; | |
34296 | ||
34297 | if (!args) SWIG_fail; | |
34298 | swig_obj[0] = args; | |
34299 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34300 | if (!SWIG_IsOK(res1)) { | |
34301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34302 | } | |
34303 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34304 | { | |
34305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34306 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
34307 | wxPyEndAllowThreads(__tstate); | |
34308 | if (PyErr_Occurred()) SWIG_fail; | |
34309 | } | |
34310 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
34311 | return resultobj; | |
34312 | fail: | |
34313 | return NULL; | |
34314 | } | |
34315 | ||
34316 | ||
34317 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34318 | PyObject *resultobj = 0; | |
34319 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34320 | unsigned int arg2 ; | |
34321 | void *argp1 = 0 ; | |
34322 | int res1 = 0 ; | |
34323 | unsigned int val2 ; | |
34324 | int ecode2 = 0 ; | |
34325 | PyObject * obj0 = 0 ; | |
34326 | PyObject * obj1 = 0 ; | |
34327 | char * kwnames[] = { | |
34328 | (char *) "self",(char *) "spacing", NULL | |
34329 | }; | |
34330 | ||
34331 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail; | |
34332 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34333 | if (!SWIG_IsOK(res1)) { | |
34334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34335 | } | |
34336 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34337 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
34338 | if (!SWIG_IsOK(ecode2)) { | |
34339 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'"); | |
34340 | } | |
34341 | arg2 = static_cast< unsigned int >(val2); | |
34342 | { | |
34343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34344 | (arg1)->SetSpacing(arg2); | |
34345 | wxPyEndAllowThreads(__tstate); | |
34346 | if (PyErr_Occurred()) SWIG_fail; | |
34347 | } | |
34348 | resultobj = SWIG_Py_Void(); | |
34349 | return resultobj; | |
34350 | fail: | |
34351 | return NULL; | |
d55e5bfc RD |
34352 | } |
34353 | ||
34354 | ||
1bd55598 RD |
34355 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34356 | PyObject *resultobj = 0; | |
34357 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34358 | wxImageList *result = 0 ; | |
34359 | void *argp1 = 0 ; | |
34360 | int res1 = 0 ; | |
34361 | PyObject *swig_obj[1] ; | |
34362 | ||
34363 | if (!args) SWIG_fail; | |
34364 | swig_obj[0] = args; | |
34365 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34366 | if (!SWIG_IsOK(res1)) { | |
34367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34368 | } | |
34369 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34370 | { | |
34371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34372 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
34373 | wxPyEndAllowThreads(__tstate); | |
34374 | if (PyErr_Occurred()) SWIG_fail; | |
34375 | } | |
3ecece7e RD |
34376 | { |
34377 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
34378 | } | |
1bd55598 RD |
34379 | return resultobj; |
34380 | fail: | |
34381 | return NULL; | |
d55e5bfc RD |
34382 | } |
34383 | ||
34384 | ||
1bd55598 RD |
34385 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34386 | PyObject *resultobj = 0; | |
34387 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34388 | wxImageList *result = 0 ; | |
34389 | void *argp1 = 0 ; | |
34390 | int res1 = 0 ; | |
34391 | PyObject *swig_obj[1] ; | |
34392 | ||
34393 | if (!args) SWIG_fail; | |
34394 | swig_obj[0] = args; | |
34395 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34396 | if (!SWIG_IsOK(res1)) { | |
34397 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34398 | } | |
34399 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34400 | { | |
34401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34402 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
34403 | wxPyEndAllowThreads(__tstate); | |
34404 | if (PyErr_Occurred()) SWIG_fail; | |
34405 | } | |
3ecece7e RD |
34406 | { |
34407 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
34408 | } | |
1bd55598 RD |
34409 | return resultobj; |
34410 | fail: | |
34411 | return NULL; | |
34412 | } | |
34413 | ||
34414 | ||
34415 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34416 | PyObject *resultobj = 0; | |
34417 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34418 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34419 | void *argp1 = 0 ; | |
34420 | int res1 = 0 ; | |
34421 | void *argp2 = 0 ; | |
34422 | int res2 = 0 ; | |
34423 | PyObject * obj0 = 0 ; | |
34424 | PyObject * obj1 = 0 ; | |
34425 | char * kwnames[] = { | |
34426 | (char *) "self",(char *) "imageList", NULL | |
34427 | }; | |
34428 | ||
34429 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34430 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34431 | if (!SWIG_IsOK(res1)) { | |
34432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34433 | } | |
34434 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34435 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
34436 | if (!SWIG_IsOK(res2)) { | |
34437 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34438 | } | |
34439 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
34440 | { | |
34441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34442 | (arg1)->SetImageList(arg2); | |
34443 | wxPyEndAllowThreads(__tstate); | |
34444 | if (PyErr_Occurred()) SWIG_fail; | |
34445 | } | |
34446 | resultobj = SWIG_Py_Void(); | |
34447 | return resultobj; | |
34448 | fail: | |
34449 | return NULL; | |
34450 | } | |
34451 | ||
34452 | ||
34453 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34454 | PyObject *resultobj = 0; | |
34455 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34456 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34457 | void *argp1 = 0 ; | |
34458 | int res1 = 0 ; | |
34459 | void *argp2 = 0 ; | |
34460 | int res2 = 0 ; | |
34461 | PyObject * obj0 = 0 ; | |
34462 | PyObject * obj1 = 0 ; | |
34463 | char * kwnames[] = { | |
34464 | (char *) "self",(char *) "imageList", NULL | |
34465 | }; | |
34466 | ||
34467 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34468 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34469 | if (!SWIG_IsOK(res1)) { | |
34470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34471 | } | |
34472 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34473 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
34474 | if (!SWIG_IsOK(res2)) { | |
34475 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34476 | } | |
34477 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
34478 | { | |
34479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34480 | (arg1)->SetStateImageList(arg2); | |
34481 | wxPyEndAllowThreads(__tstate); | |
34482 | if (PyErr_Occurred()) SWIG_fail; | |
34483 | } | |
34484 | resultobj = SWIG_Py_Void(); | |
34485 | return resultobj; | |
34486 | fail: | |
34487 | return NULL; | |
34488 | } | |
34489 | ||
34490 | ||
34491 | SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34492 | PyObject *resultobj = 0; | |
34493 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34494 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34495 | void *argp1 = 0 ; | |
34496 | int res1 = 0 ; | |
34497 | int res2 = 0 ; | |
34498 | PyObject * obj0 = 0 ; | |
34499 | PyObject * obj1 = 0 ; | |
34500 | char * kwnames[] = { | |
34501 | (char *) "self",(char *) "imageList", NULL | |
34502 | }; | |
34503 | ||
34504 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34505 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34506 | if (!SWIG_IsOK(res1)) { | |
34507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34508 | } | |
34509 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34510 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
34511 | if (!SWIG_IsOK(res2)) { | |
34512 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34513 | } | |
34514 | { | |
34515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34516 | (arg1)->AssignImageList(arg2); | |
34517 | wxPyEndAllowThreads(__tstate); | |
34518 | if (PyErr_Occurred()) SWIG_fail; | |
34519 | } | |
34520 | resultobj = SWIG_Py_Void(); | |
34521 | return resultobj; | |
34522 | fail: | |
34523 | return NULL; | |
34524 | } | |
34525 | ||
34526 | ||
34527 | SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34528 | PyObject *resultobj = 0; | |
34529 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34530 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34531 | void *argp1 = 0 ; | |
34532 | int res1 = 0 ; | |
34533 | int res2 = 0 ; | |
34534 | PyObject * obj0 = 0 ; | |
34535 | PyObject * obj1 = 0 ; | |
34536 | char * kwnames[] = { | |
34537 | (char *) "self",(char *) "imageList", NULL | |
34538 | }; | |
34539 | ||
34540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34541 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34542 | if (!SWIG_IsOK(res1)) { | |
34543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34544 | } | |
34545 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34546 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
34547 | if (!SWIG_IsOK(res2)) { | |
34548 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34549 | } | |
34550 | { | |
34551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34552 | (arg1)->AssignStateImageList(arg2); | |
34553 | wxPyEndAllowThreads(__tstate); | |
34554 | if (PyErr_Occurred()) SWIG_fail; | |
34555 | } | |
34556 | resultobj = SWIG_Py_Void(); | |
34557 | return resultobj; | |
34558 | fail: | |
34559 | return NULL; | |
34560 | } | |
34561 | ||
34562 | ||
34563 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34564 | PyObject *resultobj = 0; | |
34565 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34566 | wxTreeItemId *arg2 = 0 ; | |
34567 | wxString result; | |
34568 | void *argp1 = 0 ; | |
34569 | int res1 = 0 ; | |
34570 | void *argp2 = 0 ; | |
34571 | int res2 = 0 ; | |
34572 | PyObject * obj0 = 0 ; | |
34573 | PyObject * obj1 = 0 ; | |
34574 | char * kwnames[] = { | |
34575 | (char *) "self",(char *) "item", NULL | |
34576 | }; | |
34577 | ||
34578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail; | |
34579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34580 | if (!SWIG_IsOK(res1)) { | |
34581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34582 | } | |
34583 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34584 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34585 | if (!SWIG_IsOK(res2)) { | |
34586 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34587 | } | |
34588 | if (!argp2) { | |
34589 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34590 | } | |
34591 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34592 | { | |
34593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34594 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
34595 | wxPyEndAllowThreads(__tstate); | |
34596 | if (PyErr_Occurred()) SWIG_fail; | |
34597 | } | |
34598 | { | |
34599 | #if wxUSE_UNICODE | |
34600 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34601 | #else | |
34602 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34603 | #endif | |
34604 | } | |
34605 | return resultobj; | |
34606 | fail: | |
34607 | return NULL; | |
34608 | } | |
34609 | ||
34610 | ||
34611 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34612 | PyObject *resultobj = 0; | |
34613 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34614 | wxTreeItemId *arg2 = 0 ; | |
34615 | wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; | |
34616 | int result; | |
34617 | void *argp1 = 0 ; | |
34618 | int res1 = 0 ; | |
34619 | void *argp2 = 0 ; | |
34620 | int res2 = 0 ; | |
34621 | int val3 ; | |
34622 | int ecode3 = 0 ; | |
34623 | PyObject * obj0 = 0 ; | |
34624 | PyObject * obj1 = 0 ; | |
34625 | PyObject * obj2 = 0 ; | |
34626 | char * kwnames[] = { | |
34627 | (char *) "self",(char *) "item",(char *) "which", NULL | |
34628 | }; | |
34629 | ||
34630 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34631 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34632 | if (!SWIG_IsOK(res1)) { | |
34633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34634 | } | |
34635 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34636 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34637 | if (!SWIG_IsOK(res2)) { | |
34638 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34639 | } | |
34640 | if (!argp2) { | |
34641 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34642 | } | |
34643 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34644 | if (obj2) { | |
34645 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34646 | if (!SWIG_IsOK(ecode3)) { | |
34647 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'"); | |
34648 | } | |
34649 | arg3 = static_cast< wxTreeItemIcon >(val3); | |
34650 | } | |
34651 | { | |
34652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34653 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3); | |
34654 | wxPyEndAllowThreads(__tstate); | |
34655 | if (PyErr_Occurred()) SWIG_fail; | |
34656 | } | |
34657 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34658 | return resultobj; | |
34659 | fail: | |
34660 | return NULL; | |
34661 | } | |
34662 | ||
34663 | ||
34664 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34665 | PyObject *resultobj = 0; | |
34666 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34667 | wxTreeItemId *arg2 = 0 ; | |
34668 | wxPyTreeItemData *result = 0 ; | |
34669 | void *argp1 = 0 ; | |
34670 | int res1 = 0 ; | |
34671 | void *argp2 = 0 ; | |
34672 | int res2 = 0 ; | |
34673 | PyObject * obj0 = 0 ; | |
34674 | PyObject * obj1 = 0 ; | |
34675 | char * kwnames[] = { | |
34676 | (char *) "self",(char *) "item", NULL | |
34677 | }; | |
34678 | ||
34679 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail; | |
34680 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34681 | if (!SWIG_IsOK(res1)) { | |
34682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34683 | } | |
34684 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34685 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34686 | if (!SWIG_IsOK(res2)) { | |
34687 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34688 | } | |
34689 | if (!argp2) { | |
34690 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34691 | } | |
34692 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34693 | { | |
34694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34695 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
34696 | wxPyEndAllowThreads(__tstate); | |
34697 | if (PyErr_Occurred()) SWIG_fail; | |
34698 | } | |
34699 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
34700 | return resultobj; | |
34701 | fail: | |
34702 | return NULL; | |
34703 | } | |
34704 | ||
34705 | ||
34706 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34707 | PyObject *resultobj = 0; | |
34708 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34709 | wxTreeItemId *arg2 = 0 ; | |
34710 | PyObject *result = 0 ; | |
34711 | void *argp1 = 0 ; | |
34712 | int res1 = 0 ; | |
34713 | void *argp2 = 0 ; | |
34714 | int res2 = 0 ; | |
34715 | PyObject * obj0 = 0 ; | |
34716 | PyObject * obj1 = 0 ; | |
34717 | char * kwnames[] = { | |
34718 | (char *) "self",(char *) "item", NULL | |
34719 | }; | |
34720 | ||
34721 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail; | |
34722 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34723 | if (!SWIG_IsOK(res1)) { | |
34724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34725 | } | |
34726 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34727 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34728 | if (!SWIG_IsOK(res2)) { | |
34729 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34730 | } | |
34731 | if (!argp2) { | |
34732 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34733 | } | |
34734 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34735 | { | |
34736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34737 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
34738 | wxPyEndAllowThreads(__tstate); | |
34739 | if (PyErr_Occurred()) SWIG_fail; | |
34740 | } | |
34741 | resultobj = result; | |
34742 | return resultobj; | |
34743 | fail: | |
34744 | return NULL; | |
34745 | } | |
34746 | ||
34747 | ||
34748 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34749 | PyObject *resultobj = 0; | |
34750 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34751 | wxTreeItemId *arg2 = 0 ; | |
34752 | wxColour result; | |
34753 | void *argp1 = 0 ; | |
34754 | int res1 = 0 ; | |
34755 | void *argp2 = 0 ; | |
34756 | int res2 = 0 ; | |
34757 | PyObject * obj0 = 0 ; | |
34758 | PyObject * obj1 = 0 ; | |
34759 | char * kwnames[] = { | |
34760 | (char *) "self",(char *) "item", NULL | |
34761 | }; | |
34762 | ||
34763 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
34764 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34765 | if (!SWIG_IsOK(res1)) { | |
34766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34767 | } | |
34768 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34769 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34770 | if (!SWIG_IsOK(res2)) { | |
34771 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34772 | } | |
34773 | if (!argp2) { | |
34774 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34775 | } | |
34776 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34777 | { | |
34778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34779 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
34780 | wxPyEndAllowThreads(__tstate); | |
34781 | if (PyErr_Occurred()) SWIG_fail; | |
34782 | } | |
34783 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
34784 | return resultobj; | |
34785 | fail: | |
34786 | return NULL; | |
34787 | } | |
34788 | ||
34789 | ||
34790 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34791 | PyObject *resultobj = 0; | |
34792 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34793 | wxTreeItemId *arg2 = 0 ; | |
34794 | wxColour result; | |
34795 | void *argp1 = 0 ; | |
34796 | int res1 = 0 ; | |
34797 | void *argp2 = 0 ; | |
34798 | int res2 = 0 ; | |
34799 | PyObject * obj0 = 0 ; | |
34800 | PyObject * obj1 = 0 ; | |
34801 | char * kwnames[] = { | |
34802 | (char *) "self",(char *) "item", NULL | |
34803 | }; | |
34804 | ||
34805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
34806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34807 | if (!SWIG_IsOK(res1)) { | |
34808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34809 | } | |
34810 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34811 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34812 | if (!SWIG_IsOK(res2)) { | |
34813 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34814 | } | |
34815 | if (!argp2) { | |
34816 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34817 | } | |
34818 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34819 | { | |
34820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34821 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
34822 | wxPyEndAllowThreads(__tstate); | |
34823 | if (PyErr_Occurred()) SWIG_fail; | |
34824 | } | |
34825 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
34826 | return resultobj; | |
34827 | fail: | |
34828 | return NULL; | |
34829 | } | |
34830 | ||
34831 | ||
34832 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34833 | PyObject *resultobj = 0; | |
34834 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34835 | wxTreeItemId *arg2 = 0 ; | |
34836 | wxFont result; | |
34837 | void *argp1 = 0 ; | |
34838 | int res1 = 0 ; | |
34839 | void *argp2 = 0 ; | |
34840 | int res2 = 0 ; | |
34841 | PyObject * obj0 = 0 ; | |
34842 | PyObject * obj1 = 0 ; | |
34843 | char * kwnames[] = { | |
34844 | (char *) "self",(char *) "item", NULL | |
34845 | }; | |
34846 | ||
34847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
34848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34849 | if (!SWIG_IsOK(res1)) { | |
34850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34851 | } | |
34852 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34853 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34854 | if (!SWIG_IsOK(res2)) { | |
34855 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34856 | } | |
34857 | if (!argp2) { | |
34858 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34859 | } | |
34860 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34861 | { | |
34862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34863 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
34864 | wxPyEndAllowThreads(__tstate); | |
34865 | if (PyErr_Occurred()) SWIG_fail; | |
34866 | } | |
34867 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
34868 | return resultobj; | |
34869 | fail: | |
34870 | return NULL; | |
34871 | } | |
34872 | ||
34873 | ||
34874 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34875 | PyObject *resultobj = 0; | |
34876 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34877 | wxTreeItemId *arg2 = 0 ; | |
34878 | wxString *arg3 = 0 ; | |
34879 | void *argp1 = 0 ; | |
34880 | int res1 = 0 ; | |
34881 | void *argp2 = 0 ; | |
34882 | int res2 = 0 ; | |
34883 | bool temp3 = false ; | |
34884 | PyObject * obj0 = 0 ; | |
34885 | PyObject * obj1 = 0 ; | |
34886 | PyObject * obj2 = 0 ; | |
34887 | char * kwnames[] = { | |
34888 | (char *) "self",(char *) "item",(char *) "text", NULL | |
34889 | }; | |
34890 | ||
34891 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34892 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34893 | if (!SWIG_IsOK(res1)) { | |
34894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34895 | } | |
34896 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34897 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34898 | if (!SWIG_IsOK(res2)) { | |
34899 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34900 | } | |
34901 | if (!argp2) { | |
34902 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34903 | } | |
34904 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34905 | { | |
34906 | arg3 = wxString_in_helper(obj2); | |
34907 | if (arg3 == NULL) SWIG_fail; | |
34908 | temp3 = true; | |
34909 | } | |
34910 | { | |
34911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34912 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
34913 | wxPyEndAllowThreads(__tstate); | |
34914 | if (PyErr_Occurred()) SWIG_fail; | |
34915 | } | |
34916 | resultobj = SWIG_Py_Void(); | |
34917 | { | |
34918 | if (temp3) | |
34919 | delete arg3; | |
34920 | } | |
34921 | return resultobj; | |
34922 | fail: | |
34923 | { | |
34924 | if (temp3) | |
34925 | delete arg3; | |
34926 | } | |
34927 | return NULL; | |
34928 | } | |
34929 | ||
34930 | ||
34931 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34932 | PyObject *resultobj = 0; | |
34933 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34934 | wxTreeItemId *arg2 = 0 ; | |
34935 | int arg3 ; | |
34936 | wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; | |
34937 | void *argp1 = 0 ; | |
34938 | int res1 = 0 ; | |
34939 | void *argp2 = 0 ; | |
34940 | int res2 = 0 ; | |
34941 | int val3 ; | |
34942 | int ecode3 = 0 ; | |
34943 | int val4 ; | |
34944 | int ecode4 = 0 ; | |
34945 | PyObject * obj0 = 0 ; | |
34946 | PyObject * obj1 = 0 ; | |
34947 | PyObject * obj2 = 0 ; | |
34948 | PyObject * obj3 = 0 ; | |
34949 | char * kwnames[] = { | |
34950 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
34951 | }; | |
34952 | ||
34953 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34954 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34955 | if (!SWIG_IsOK(res1)) { | |
34956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34957 | } | |
34958 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34959 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34960 | if (!SWIG_IsOK(res2)) { | |
34961 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34962 | } | |
34963 | if (!argp2) { | |
34964 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34965 | } | |
34966 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34967 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34968 | if (!SWIG_IsOK(ecode3)) { | |
34969 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'"); | |
34970 | } | |
34971 | arg3 = static_cast< int >(val3); | |
34972 | if (obj3) { | |
34973 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34974 | if (!SWIG_IsOK(ecode4)) { | |
34975 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'"); | |
34976 | } | |
34977 | arg4 = static_cast< wxTreeItemIcon >(val4); | |
34978 | } | |
34979 | { | |
34980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34981 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4); | |
34982 | wxPyEndAllowThreads(__tstate); | |
34983 | if (PyErr_Occurred()) SWIG_fail; | |
34984 | } | |
34985 | resultobj = SWIG_Py_Void(); | |
34986 | return resultobj; | |
34987 | fail: | |
34988 | return NULL; | |
34989 | } | |
34990 | ||
34991 | ||
34992 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34993 | PyObject *resultobj = 0; | |
34994 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34995 | wxTreeItemId *arg2 = 0 ; | |
34996 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
34997 | void *argp1 = 0 ; | |
34998 | int res1 = 0 ; | |
34999 | void *argp2 = 0 ; | |
35000 | int res2 = 0 ; | |
35001 | int res3 = 0 ; | |
35002 | PyObject * obj0 = 0 ; | |
35003 | PyObject * obj1 = 0 ; | |
35004 | PyObject * obj2 = 0 ; | |
35005 | char * kwnames[] = { | |
35006 | (char *) "self",(char *) "item",(char *) "data", NULL | |
35007 | }; | |
35008 | ||
35009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35010 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35011 | if (!SWIG_IsOK(res1)) { | |
35012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35013 | } | |
35014 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35015 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35016 | if (!SWIG_IsOK(res2)) { | |
35017 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35018 | } | |
35019 | if (!argp2) { | |
35020 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35021 | } | |
35022 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35023 | res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
35024 | if (!SWIG_IsOK(res3)) { | |
35025 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'"); | |
35026 | } | |
35027 | { | |
35028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35029 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
35030 | wxPyEndAllowThreads(__tstate); | |
35031 | if (PyErr_Occurred()) SWIG_fail; | |
35032 | } | |
35033 | resultobj = SWIG_Py_Void(); | |
35034 | return resultobj; | |
35035 | fail: | |
35036 | return NULL; | |
35037 | } | |
35038 | ||
35039 | ||
35040 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35041 | PyObject *resultobj = 0; | |
35042 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35043 | wxTreeItemId *arg2 = 0 ; | |
35044 | PyObject *arg3 = (PyObject *) 0 ; | |
35045 | void *argp1 = 0 ; | |
35046 | int res1 = 0 ; | |
35047 | void *argp2 = 0 ; | |
35048 | int res2 = 0 ; | |
35049 | PyObject * obj0 = 0 ; | |
35050 | PyObject * obj1 = 0 ; | |
35051 | PyObject * obj2 = 0 ; | |
35052 | char * kwnames[] = { | |
35053 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
35054 | }; | |
35055 | ||
35056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35058 | if (!SWIG_IsOK(res1)) { | |
35059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35060 | } | |
35061 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35062 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35063 | if (!SWIG_IsOK(res2)) { | |
35064 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35065 | } | |
35066 | if (!argp2) { | |
35067 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35068 | } | |
35069 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35070 | arg3 = obj2; | |
35071 | { | |
35072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35073 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
35074 | wxPyEndAllowThreads(__tstate); | |
35075 | if (PyErr_Occurred()) SWIG_fail; | |
35076 | } | |
35077 | resultobj = SWIG_Py_Void(); | |
35078 | return resultobj; | |
35079 | fail: | |
35080 | return NULL; | |
35081 | } | |
35082 | ||
35083 | ||
35084 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35085 | PyObject *resultobj = 0; | |
35086 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35087 | wxTreeItemId *arg2 = 0 ; | |
35088 | bool arg3 = (bool) true ; | |
35089 | void *argp1 = 0 ; | |
35090 | int res1 = 0 ; | |
35091 | void *argp2 = 0 ; | |
35092 | int res2 = 0 ; | |
35093 | bool val3 ; | |
35094 | int ecode3 = 0 ; | |
35095 | PyObject * obj0 = 0 ; | |
35096 | PyObject * obj1 = 0 ; | |
35097 | PyObject * obj2 = 0 ; | |
35098 | char * kwnames[] = { | |
35099 | (char *) "self",(char *) "item",(char *) "has", NULL | |
35100 | }; | |
35101 | ||
35102 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35103 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35104 | if (!SWIG_IsOK(res1)) { | |
35105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35106 | } | |
35107 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35108 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35109 | if (!SWIG_IsOK(res2)) { | |
35110 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35111 | } | |
35112 | if (!argp2) { | |
35113 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35114 | } | |
35115 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35116 | if (obj2) { | |
35117 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35118 | if (!SWIG_IsOK(ecode3)) { | |
35119 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'"); | |
35120 | } | |
35121 | arg3 = static_cast< bool >(val3); | |
35122 | } | |
35123 | { | |
35124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35125 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
35126 | wxPyEndAllowThreads(__tstate); | |
35127 | if (PyErr_Occurred()) SWIG_fail; | |
35128 | } | |
35129 | resultobj = SWIG_Py_Void(); | |
35130 | return resultobj; | |
35131 | fail: | |
35132 | return NULL; | |
35133 | } | |
35134 | ||
35135 | ||
35136 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35137 | PyObject *resultobj = 0; | |
35138 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35139 | wxTreeItemId *arg2 = 0 ; | |
35140 | bool arg3 = (bool) true ; | |
35141 | void *argp1 = 0 ; | |
35142 | int res1 = 0 ; | |
35143 | void *argp2 = 0 ; | |
35144 | int res2 = 0 ; | |
35145 | bool val3 ; | |
35146 | int ecode3 = 0 ; | |
35147 | PyObject * obj0 = 0 ; | |
35148 | PyObject * obj1 = 0 ; | |
35149 | PyObject * obj2 = 0 ; | |
35150 | char * kwnames[] = { | |
35151 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
35152 | }; | |
35153 | ||
35154 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35155 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35156 | if (!SWIG_IsOK(res1)) { | |
35157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35158 | } | |
35159 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35160 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35161 | if (!SWIG_IsOK(res2)) { | |
35162 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35163 | } | |
35164 | if (!argp2) { | |
35165 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35166 | } | |
35167 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35168 | if (obj2) { | |
35169 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35170 | if (!SWIG_IsOK(ecode3)) { | |
35171 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'"); | |
35172 | } | |
35173 | arg3 = static_cast< bool >(val3); | |
35174 | } | |
35175 | { | |
35176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35177 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
35178 | wxPyEndAllowThreads(__tstate); | |
35179 | if (PyErr_Occurred()) SWIG_fail; | |
35180 | } | |
35181 | resultobj = SWIG_Py_Void(); | |
35182 | return resultobj; | |
35183 | fail: | |
35184 | return NULL; | |
35185 | } | |
35186 | ||
35187 | ||
35188 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35189 | PyObject *resultobj = 0; | |
35190 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35191 | wxTreeItemId *arg2 = 0 ; | |
35192 | bool arg3 = (bool) true ; | |
35193 | void *argp1 = 0 ; | |
35194 | int res1 = 0 ; | |
35195 | void *argp2 = 0 ; | |
35196 | int res2 = 0 ; | |
35197 | bool val3 ; | |
35198 | int ecode3 = 0 ; | |
35199 | PyObject * obj0 = 0 ; | |
35200 | PyObject * obj1 = 0 ; | |
35201 | PyObject * obj2 = 0 ; | |
35202 | char * kwnames[] = { | |
35203 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
35204 | }; | |
35205 | ||
35206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35208 | if (!SWIG_IsOK(res1)) { | |
35209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35210 | } | |
35211 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35212 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35213 | if (!SWIG_IsOK(res2)) { | |
35214 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35215 | } | |
35216 | if (!argp2) { | |
35217 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35218 | } | |
35219 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35220 | if (obj2) { | |
35221 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35222 | if (!SWIG_IsOK(ecode3)) { | |
35223 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'"); | |
35224 | } | |
35225 | arg3 = static_cast< bool >(val3); | |
35226 | } | |
35227 | { | |
35228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35229 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
35230 | wxPyEndAllowThreads(__tstate); | |
35231 | if (PyErr_Occurred()) SWIG_fail; | |
35232 | } | |
35233 | resultobj = SWIG_Py_Void(); | |
35234 | return resultobj; | |
35235 | fail: | |
35236 | return NULL; | |
35237 | } | |
35238 | ||
35239 | ||
35240 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35241 | PyObject *resultobj = 0; | |
35242 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35243 | wxTreeItemId *arg2 = 0 ; | |
35244 | wxColour *arg3 = 0 ; | |
35245 | void *argp1 = 0 ; | |
35246 | int res1 = 0 ; | |
35247 | void *argp2 = 0 ; | |
35248 | int res2 = 0 ; | |
35249 | wxColour temp3 ; | |
35250 | PyObject * obj0 = 0 ; | |
35251 | PyObject * obj1 = 0 ; | |
35252 | PyObject * obj2 = 0 ; | |
35253 | char * kwnames[] = { | |
35254 | (char *) "self",(char *) "item",(char *) "col", NULL | |
35255 | }; | |
35256 | ||
35257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35259 | if (!SWIG_IsOK(res1)) { | |
35260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35261 | } | |
35262 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35263 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35264 | if (!SWIG_IsOK(res2)) { | |
35265 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35266 | } | |
35267 | if (!argp2) { | |
35268 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35269 | } | |
35270 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35271 | { | |
35272 | arg3 = &temp3; | |
35273 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
35274 | } | |
35275 | { | |
35276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35277 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
35278 | wxPyEndAllowThreads(__tstate); | |
35279 | if (PyErr_Occurred()) SWIG_fail; | |
35280 | } | |
35281 | resultobj = SWIG_Py_Void(); | |
35282 | return resultobj; | |
35283 | fail: | |
35284 | return NULL; | |
35285 | } | |
35286 | ||
35287 | ||
35288 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35289 | PyObject *resultobj = 0; | |
35290 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35291 | wxTreeItemId *arg2 = 0 ; | |
35292 | wxColour *arg3 = 0 ; | |
35293 | void *argp1 = 0 ; | |
35294 | int res1 = 0 ; | |
35295 | void *argp2 = 0 ; | |
35296 | int res2 = 0 ; | |
35297 | wxColour temp3 ; | |
35298 | PyObject * obj0 = 0 ; | |
35299 | PyObject * obj1 = 0 ; | |
35300 | PyObject * obj2 = 0 ; | |
35301 | char * kwnames[] = { | |
35302 | (char *) "self",(char *) "item",(char *) "col", NULL | |
35303 | }; | |
35304 | ||
35305 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35306 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35307 | if (!SWIG_IsOK(res1)) { | |
35308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35309 | } | |
35310 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35311 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35312 | if (!SWIG_IsOK(res2)) { | |
35313 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35314 | } | |
35315 | if (!argp2) { | |
35316 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35317 | } | |
35318 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35319 | { | |
35320 | arg3 = &temp3; | |
35321 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
35322 | } | |
35323 | { | |
35324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35325 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
35326 | wxPyEndAllowThreads(__tstate); | |
35327 | if (PyErr_Occurred()) SWIG_fail; | |
35328 | } | |
35329 | resultobj = SWIG_Py_Void(); | |
35330 | return resultobj; | |
35331 | fail: | |
35332 | return NULL; | |
35333 | } | |
35334 | ||
35335 | ||
35336 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35337 | PyObject *resultobj = 0; | |
35338 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35339 | wxTreeItemId *arg2 = 0 ; | |
35340 | wxFont *arg3 = 0 ; | |
35341 | void *argp1 = 0 ; | |
35342 | int res1 = 0 ; | |
35343 | void *argp2 = 0 ; | |
35344 | int res2 = 0 ; | |
35345 | void *argp3 = 0 ; | |
35346 | int res3 = 0 ; | |
35347 | PyObject * obj0 = 0 ; | |
35348 | PyObject * obj1 = 0 ; | |
35349 | PyObject * obj2 = 0 ; | |
35350 | char * kwnames[] = { | |
35351 | (char *) "self",(char *) "item",(char *) "font", NULL | |
35352 | }; | |
35353 | ||
35354 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35355 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35356 | if (!SWIG_IsOK(res1)) { | |
35357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35358 | } | |
35359 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35360 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35361 | if (!SWIG_IsOK(res2)) { | |
35362 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35363 | } | |
35364 | if (!argp2) { | |
35365 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35366 | } | |
35367 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35368 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
35369 | if (!SWIG_IsOK(res3)) { | |
35370 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
35371 | } | |
35372 | if (!argp3) { | |
35373 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
35374 | } | |
35375 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
35376 | { | |
35377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35378 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
35379 | wxPyEndAllowThreads(__tstate); | |
35380 | if (PyErr_Occurred()) SWIG_fail; | |
35381 | } | |
35382 | resultobj = SWIG_Py_Void(); | |
35383 | return resultobj; | |
35384 | fail: | |
35385 | return NULL; | |
35386 | } | |
35387 | ||
35388 | ||
35389 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35390 | PyObject *resultobj = 0; | |
35391 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35392 | wxTreeItemId *arg2 = 0 ; | |
35393 | bool result; | |
35394 | void *argp1 = 0 ; | |
35395 | int res1 = 0 ; | |
35396 | void *argp2 = 0 ; | |
35397 | int res2 = 0 ; | |
35398 | PyObject * obj0 = 0 ; | |
35399 | PyObject * obj1 = 0 ; | |
35400 | char * kwnames[] = { | |
35401 | (char *) "self",(char *) "item", NULL | |
35402 | }; | |
35403 | ||
35404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
35405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35406 | if (!SWIG_IsOK(res1)) { | |
35407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35408 | } | |
35409 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35410 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35411 | if (!SWIG_IsOK(res2)) { | |
35412 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35413 | } | |
35414 | if (!argp2) { | |
35415 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35416 | } | |
35417 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35418 | { | |
35419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35420 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
35421 | wxPyEndAllowThreads(__tstate); | |
35422 | if (PyErr_Occurred()) SWIG_fail; | |
35423 | } | |
35424 | { | |
35425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35426 | } | |
35427 | return resultobj; | |
35428 | fail: | |
35429 | return NULL; | |
35430 | } | |
35431 | ||
35432 | ||
35433 | SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35434 | PyObject *resultobj = 0; | |
35435 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35436 | wxTreeItemId *arg2 = 0 ; | |
35437 | bool result; | |
35438 | void *argp1 = 0 ; | |
35439 | int res1 = 0 ; | |
35440 | void *argp2 = 0 ; | |
35441 | int res2 = 0 ; | |
35442 | PyObject * obj0 = 0 ; | |
35443 | PyObject * obj1 = 0 ; | |
35444 | char * kwnames[] = { | |
35445 | (char *) "self",(char *) "item", NULL | |
35446 | }; | |
35447 | ||
35448 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
35449 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35450 | if (!SWIG_IsOK(res1)) { | |
35451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35452 | } | |
35453 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35454 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35455 | if (!SWIG_IsOK(res2)) { | |
35456 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35457 | } | |
35458 | if (!argp2) { | |
35459 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35460 | } | |
35461 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35462 | { | |
35463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35464 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
35465 | wxPyEndAllowThreads(__tstate); | |
35466 | if (PyErr_Occurred()) SWIG_fail; | |
35467 | } | |
35468 | { | |
35469 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35470 | } | |
35471 | return resultobj; | |
35472 | fail: | |
35473 | return NULL; | |
35474 | } | |
35475 | ||
35476 | ||
35477 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35478 | PyObject *resultobj = 0; | |
35479 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35480 | wxTreeItemId *arg2 = 0 ; | |
35481 | bool result; | |
35482 | void *argp1 = 0 ; | |
35483 | int res1 = 0 ; | |
35484 | void *argp2 = 0 ; | |
35485 | int res2 = 0 ; | |
35486 | PyObject * obj0 = 0 ; | |
35487 | PyObject * obj1 = 0 ; | |
35488 | char * kwnames[] = { | |
35489 | (char *) "self",(char *) "item", NULL | |
35490 | }; | |
35491 | ||
35492 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail; | |
35493 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35494 | if (!SWIG_IsOK(res1)) { | |
35495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35496 | } | |
35497 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35498 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35499 | if (!SWIG_IsOK(res2)) { | |
35500 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35501 | } | |
35502 | if (!argp2) { | |
35503 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35504 | } | |
35505 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35506 | { | |
35507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35508 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
35509 | wxPyEndAllowThreads(__tstate); | |
35510 | if (PyErr_Occurred()) SWIG_fail; | |
35511 | } | |
35512 | { | |
35513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35514 | } | |
35515 | return resultobj; | |
35516 | fail: | |
35517 | return NULL; | |
35518 | } | |
35519 | ||
35520 | ||
35521 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35522 | PyObject *resultobj = 0; | |
35523 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35524 | wxTreeItemId *arg2 = 0 ; | |
35525 | bool result; | |
35526 | void *argp1 = 0 ; | |
35527 | int res1 = 0 ; | |
35528 | void *argp2 = 0 ; | |
35529 | int res2 = 0 ; | |
35530 | PyObject * obj0 = 0 ; | |
35531 | PyObject * obj1 = 0 ; | |
35532 | char * kwnames[] = { | |
35533 | (char *) "self",(char *) "item", NULL | |
35534 | }; | |
35535 | ||
35536 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
35537 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35538 | if (!SWIG_IsOK(res1)) { | |
35539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35540 | } | |
35541 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35542 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35543 | if (!SWIG_IsOK(res2)) { | |
35544 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35545 | } | |
35546 | if (!argp2) { | |
35547 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35548 | } | |
35549 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35550 | { | |
35551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35552 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
35553 | wxPyEndAllowThreads(__tstate); | |
35554 | if (PyErr_Occurred()) SWIG_fail; | |
35555 | } | |
35556 | { | |
35557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35558 | } | |
35559 | return resultobj; | |
35560 | fail: | |
35561 | return NULL; | |
35562 | } | |
35563 | ||
35564 | ||
35565 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35566 | PyObject *resultobj = 0; | |
35567 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35568 | wxTreeItemId *arg2 = 0 ; | |
35569 | bool result; | |
35570 | void *argp1 = 0 ; | |
35571 | int res1 = 0 ; | |
35572 | void *argp2 = 0 ; | |
35573 | int res2 = 0 ; | |
35574 | PyObject * obj0 = 0 ; | |
35575 | PyObject * obj1 = 0 ; | |
35576 | char * kwnames[] = { | |
35577 | (char *) "self",(char *) "item", NULL | |
35578 | }; | |
35579 | ||
35580 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail; | |
35581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35582 | if (!SWIG_IsOK(res1)) { | |
35583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35584 | } | |
35585 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35586 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35587 | if (!SWIG_IsOK(res2)) { | |
35588 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35589 | } | |
35590 | if (!argp2) { | |
35591 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35592 | } | |
35593 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35594 | { | |
35595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35596 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
35597 | wxPyEndAllowThreads(__tstate); | |
35598 | if (PyErr_Occurred()) SWIG_fail; | |
35599 | } | |
35600 | { | |
35601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35602 | } | |
35603 | return resultobj; | |
35604 | fail: | |
35605 | return NULL; | |
35606 | } | |
35607 | ||
35608 | ||
1ceb4f4d RD |
35609 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35610 | PyObject *resultobj = 0; | |
35611 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35612 | bool result; | |
35613 | void *argp1 = 0 ; | |
35614 | int res1 = 0 ; | |
35615 | PyObject *swig_obj[1] ; | |
35616 | ||
35617 | if (!args) SWIG_fail; | |
35618 | swig_obj[0] = args; | |
35619 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35620 | if (!SWIG_IsOK(res1)) { | |
35621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35622 | } | |
35623 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35624 | { | |
35625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35626 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsEmpty(); | |
35627 | wxPyEndAllowThreads(__tstate); | |
35628 | if (PyErr_Occurred()) SWIG_fail; | |
35629 | } | |
35630 | { | |
35631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35632 | } | |
35633 | return resultobj; | |
35634 | fail: | |
35635 | return NULL; | |
35636 | } | |
35637 | ||
35638 | ||
1bd55598 RD |
35639 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35640 | PyObject *resultobj = 0; | |
35641 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35642 | wxTreeItemId *arg2 = 0 ; | |
35643 | bool arg3 = (bool) true ; | |
35644 | size_t result; | |
35645 | void *argp1 = 0 ; | |
35646 | int res1 = 0 ; | |
35647 | void *argp2 = 0 ; | |
35648 | int res2 = 0 ; | |
35649 | bool val3 ; | |
35650 | int ecode3 = 0 ; | |
35651 | PyObject * obj0 = 0 ; | |
35652 | PyObject * obj1 = 0 ; | |
35653 | PyObject * obj2 = 0 ; | |
35654 | char * kwnames[] = { | |
35655 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
35656 | }; | |
35657 | ||
35658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35660 | if (!SWIG_IsOK(res1)) { | |
35661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35662 | } | |
35663 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35664 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35665 | if (!SWIG_IsOK(res2)) { | |
35666 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35667 | } | |
35668 | if (!argp2) { | |
35669 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35670 | } | |
35671 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35672 | if (obj2) { | |
35673 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35674 | if (!SWIG_IsOK(ecode3)) { | |
35675 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'"); | |
35676 | } | |
35677 | arg3 = static_cast< bool >(val3); | |
35678 | } | |
35679 | { | |
35680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35681 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
35682 | wxPyEndAllowThreads(__tstate); | |
35683 | if (PyErr_Occurred()) SWIG_fail; | |
35684 | } | |
35685 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
35686 | return resultobj; | |
35687 | fail: | |
35688 | return NULL; | |
d55e5bfc RD |
35689 | } |
35690 | ||
35691 | ||
1bd55598 RD |
35692 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35693 | PyObject *resultobj = 0; | |
35694 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35695 | wxTreeItemId result; | |
35696 | void *argp1 = 0 ; | |
35697 | int res1 = 0 ; | |
35698 | PyObject *swig_obj[1] ; | |
35699 | ||
35700 | if (!args) SWIG_fail; | |
35701 | swig_obj[0] = args; | |
35702 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35703 | if (!SWIG_IsOK(res1)) { | |
35704 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35705 | } | |
35706 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35707 | { | |
35708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35709 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
35710 | wxPyEndAllowThreads(__tstate); | |
35711 | if (PyErr_Occurred()) SWIG_fail; | |
35712 | } | |
35713 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35714 | return resultobj; | |
35715 | fail: | |
35716 | return NULL; | |
d55e5bfc RD |
35717 | } |
35718 | ||
35719 | ||
1bd55598 RD |
35720 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35721 | PyObject *resultobj = 0; | |
35722 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35723 | wxTreeItemId result; | |
35724 | void *argp1 = 0 ; | |
35725 | int res1 = 0 ; | |
35726 | PyObject *swig_obj[1] ; | |
35727 | ||
35728 | if (!args) SWIG_fail; | |
35729 | swig_obj[0] = args; | |
35730 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35731 | if (!SWIG_IsOK(res1)) { | |
35732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35733 | } | |
35734 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35735 | { | |
35736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35737 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
35738 | wxPyEndAllowThreads(__tstate); | |
35739 | if (PyErr_Occurred()) SWIG_fail; | |
35740 | } | |
35741 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35742 | return resultobj; | |
35743 | fail: | |
35744 | return NULL; | |
d55e5bfc RD |
35745 | } |
35746 | ||
35747 | ||
1bd55598 RD |
35748 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35749 | PyObject *resultobj = 0; | |
35750 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35751 | PyObject *result = 0 ; | |
35752 | void *argp1 = 0 ; | |
35753 | int res1 = 0 ; | |
35754 | PyObject *swig_obj[1] ; | |
35755 | ||
35756 | if (!args) SWIG_fail; | |
35757 | swig_obj[0] = args; | |
35758 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35759 | if (!SWIG_IsOK(res1)) { | |
35760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35761 | } | |
35762 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35763 | { | |
35764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35765 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
35766 | wxPyEndAllowThreads(__tstate); | |
35767 | if (PyErr_Occurred()) SWIG_fail; | |
35768 | } | |
35769 | resultobj = result; | |
35770 | return resultobj; | |
35771 | fail: | |
35772 | return NULL; | |
35773 | } | |
35774 | ||
35775 | ||
35776 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35777 | PyObject *resultobj = 0; | |
35778 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35779 | wxTreeItemId *arg2 = 0 ; | |
35780 | wxTreeItemId result; | |
35781 | void *argp1 = 0 ; | |
35782 | int res1 = 0 ; | |
35783 | void *argp2 = 0 ; | |
35784 | int res2 = 0 ; | |
35785 | PyObject * obj0 = 0 ; | |
35786 | PyObject * obj1 = 0 ; | |
35787 | char * kwnames[] = { | |
35788 | (char *) "self",(char *) "item", NULL | |
35789 | }; | |
35790 | ||
35791 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
35792 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35793 | if (!SWIG_IsOK(res1)) { | |
35794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35795 | } | |
35796 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35797 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35798 | if (!SWIG_IsOK(res2)) { | |
35799 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35800 | } | |
35801 | if (!argp2) { | |
35802 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35803 | } | |
35804 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35805 | { | |
35806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35807 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
35808 | wxPyEndAllowThreads(__tstate); | |
35809 | if (PyErr_Occurred()) SWIG_fail; | |
35810 | } | |
35811 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35812 | return resultobj; | |
35813 | fail: | |
35814 | return NULL; | |
35815 | } | |
35816 | ||
35817 | ||
35818 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35819 | PyObject *resultobj = 0; | |
35820 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35821 | wxTreeItemId *arg2 = 0 ; | |
35822 | PyObject *result = 0 ; | |
35823 | void *argp1 = 0 ; | |
35824 | int res1 = 0 ; | |
35825 | void *argp2 = 0 ; | |
35826 | int res2 = 0 ; | |
35827 | PyObject * obj0 = 0 ; | |
35828 | PyObject * obj1 = 0 ; | |
35829 | char * kwnames[] = { | |
35830 | (char *) "self",(char *) "item", NULL | |
35831 | }; | |
35832 | ||
35833 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
35834 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35835 | if (!SWIG_IsOK(res1)) { | |
35836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35837 | } | |
35838 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35839 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35840 | if (!SWIG_IsOK(res2)) { | |
35841 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35842 | } | |
35843 | if (!argp2) { | |
35844 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35845 | } | |
35846 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35847 | { | |
35848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35849 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
35850 | wxPyEndAllowThreads(__tstate); | |
35851 | if (PyErr_Occurred()) SWIG_fail; | |
35852 | } | |
35853 | resultobj = result; | |
35854 | return resultobj; | |
35855 | fail: | |
35856 | return NULL; | |
35857 | } | |
35858 | ||
35859 | ||
35860 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35861 | PyObject *resultobj = 0; | |
35862 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35863 | wxTreeItemId *arg2 = 0 ; | |
35864 | void *arg3 = (void *) 0 ; | |
35865 | PyObject *result = 0 ; | |
35866 | void *argp1 = 0 ; | |
35867 | int res1 = 0 ; | |
35868 | void *argp2 = 0 ; | |
35869 | int res2 = 0 ; | |
35870 | int res3 ; | |
35871 | PyObject * obj0 = 0 ; | |
35872 | PyObject * obj1 = 0 ; | |
35873 | PyObject * obj2 = 0 ; | |
35874 | char * kwnames[] = { | |
35875 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
35876 | }; | |
35877 | ||
35878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35880 | if (!SWIG_IsOK(res1)) { | |
35881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35882 | } | |
35883 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35884 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35885 | if (!SWIG_IsOK(res2)) { | |
35886 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35887 | } | |
35888 | if (!argp2) { | |
35889 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35890 | } | |
35891 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35892 | res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); | |
35893 | if (!SWIG_IsOK(res3)) { | |
35894 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'"); | |
35895 | } | |
35896 | { | |
35897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35898 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
35899 | wxPyEndAllowThreads(__tstate); | |
35900 | if (PyErr_Occurred()) SWIG_fail; | |
35901 | } | |
35902 | resultobj = result; | |
35903 | return resultobj; | |
35904 | fail: | |
35905 | return NULL; | |
35906 | } | |
35907 | ||
35908 | ||
35909 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35910 | PyObject *resultobj = 0; | |
35911 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35912 | wxTreeItemId *arg2 = 0 ; | |
35913 | wxTreeItemId result; | |
35914 | void *argp1 = 0 ; | |
35915 | int res1 = 0 ; | |
35916 | void *argp2 = 0 ; | |
35917 | int res2 = 0 ; | |
35918 | PyObject * obj0 = 0 ; | |
35919 | PyObject * obj1 = 0 ; | |
35920 | char * kwnames[] = { | |
35921 | (char *) "self",(char *) "item", NULL | |
35922 | }; | |
35923 | ||
35924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
35925 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35926 | if (!SWIG_IsOK(res1)) { | |
35927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35928 | } | |
35929 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35930 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35931 | if (!SWIG_IsOK(res2)) { | |
35932 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35933 | } | |
35934 | if (!argp2) { | |
35935 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35936 | } | |
35937 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35938 | { | |
35939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35940 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
35941 | wxPyEndAllowThreads(__tstate); | |
35942 | if (PyErr_Occurred()) SWIG_fail; | |
35943 | } | |
35944 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35945 | return resultobj; | |
35946 | fail: | |
35947 | return NULL; | |
35948 | } | |
35949 | ||
35950 | ||
35951 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35952 | PyObject *resultobj = 0; | |
35953 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35954 | wxTreeItemId *arg2 = 0 ; | |
35955 | wxTreeItemId result; | |
35956 | void *argp1 = 0 ; | |
35957 | int res1 = 0 ; | |
35958 | void *argp2 = 0 ; | |
35959 | int res2 = 0 ; | |
35960 | PyObject * obj0 = 0 ; | |
35961 | PyObject * obj1 = 0 ; | |
35962 | char * kwnames[] = { | |
35963 | (char *) "self",(char *) "item", NULL | |
35964 | }; | |
35965 | ||
35966 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail; | |
35967 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35968 | if (!SWIG_IsOK(res1)) { | |
35969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35970 | } | |
35971 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35972 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35973 | if (!SWIG_IsOK(res2)) { | |
35974 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35975 | } | |
35976 | if (!argp2) { | |
35977 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35978 | } | |
35979 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35980 | { | |
35981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35982 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
35983 | wxPyEndAllowThreads(__tstate); | |
35984 | if (PyErr_Occurred()) SWIG_fail; | |
35985 | } | |
35986 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35987 | return resultobj; | |
35988 | fail: | |
35989 | return NULL; | |
35990 | } | |
35991 | ||
35992 | ||
35993 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35994 | PyObject *resultobj = 0; | |
35995 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35996 | wxTreeItemId *arg2 = 0 ; | |
35997 | wxTreeItemId result; | |
35998 | void *argp1 = 0 ; | |
35999 | int res1 = 0 ; | |
36000 | void *argp2 = 0 ; | |
36001 | int res2 = 0 ; | |
36002 | PyObject * obj0 = 0 ; | |
36003 | PyObject * obj1 = 0 ; | |
36004 | char * kwnames[] = { | |
36005 | (char *) "self",(char *) "item", NULL | |
36006 | }; | |
36007 | ||
36008 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail; | |
36009 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36010 | if (!SWIG_IsOK(res1)) { | |
36011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
36012 | } | |
36013 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36014 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36015 | if (!SWIG_IsOK(res2)) { | |
36016 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36017 | } | |
36018 | if (!argp2) { | |
36019 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36020 | } | |
36021 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36022 | { | |
36023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36024 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
36025 | wxPyEndAllowThreads(__tstate); | |
36026 | if (PyErr_Occurred()) SWIG_fail; | |
36027 | } | |
36028 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36029 | return resultobj; | |
36030 | fail: | |
36031 | return NULL; | |
d55e5bfc RD |
36032 | } |
36033 | ||
36034 | ||
1bd55598 RD |
36035 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36036 | PyObject *resultobj = 0; | |
36037 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36038 | wxTreeItemId result; | |
36039 | void *argp1 = 0 ; | |
36040 | int res1 = 0 ; | |
36041 | PyObject *swig_obj[1] ; | |
36042 | ||
36043 | if (!args) SWIG_fail; | |
36044 | swig_obj[0] = args; | |
36045 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36046 | if (!SWIG_IsOK(res1)) { | |
36047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
36048 | } | |
36049 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36050 | { | |
36051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36052 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
36053 | wxPyEndAllowThreads(__tstate); | |
36054 | if (PyErr_Occurred()) SWIG_fail; | |
36055 | } | |
36056 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36057 | return resultobj; | |
36058 | fail: | |
36059 | return NULL; | |
36060 | } | |
36061 | ||
36062 | ||
36063 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36064 | PyObject *resultobj = 0; | |
36065 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36066 | wxTreeItemId *arg2 = 0 ; | |
36067 | wxTreeItemId result; | |
36068 | void *argp1 = 0 ; | |
36069 | int res1 = 0 ; | |
36070 | void *argp2 = 0 ; | |
36071 | int res2 = 0 ; | |
36072 | PyObject * obj0 = 0 ; | |
36073 | PyObject * obj1 = 0 ; | |
36074 | char * kwnames[] = { | |
36075 | (char *) "self",(char *) "item", NULL | |
36076 | }; | |
36077 | ||
36078 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
36079 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36080 | if (!SWIG_IsOK(res1)) { | |
36081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
36082 | } | |
36083 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36084 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36085 | if (!SWIG_IsOK(res2)) { | |
36086 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36087 | } | |
36088 | if (!argp2) { | |
36089 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36090 | } | |
36091 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36092 | { | |
36093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36094 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
36095 | wxPyEndAllowThreads(__tstate); | |
36096 | if (PyErr_Occurred()) SWIG_fail; | |
36097 | } | |
36098 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36099 | return resultobj; | |
36100 | fail: | |
36101 | return NULL; | |
36102 | } | |
36103 | ||
36104 | ||
36105 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36106 | PyObject *resultobj = 0; | |
36107 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36108 | wxTreeItemId *arg2 = 0 ; | |
36109 | wxTreeItemId result; | |
36110 | void *argp1 = 0 ; | |
36111 | int res1 = 0 ; | |
36112 | void *argp2 = 0 ; | |
36113 | int res2 = 0 ; | |
36114 | PyObject * obj0 = 0 ; | |
36115 | PyObject * obj1 = 0 ; | |
36116 | char * kwnames[] = { | |
36117 | (char *) "self",(char *) "item", NULL | |
36118 | }; | |
36119 | ||
36120 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
36121 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36122 | if (!SWIG_IsOK(res1)) { | |
36123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
36124 | } | |
36125 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36126 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36127 | if (!SWIG_IsOK(res2)) { | |
36128 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36129 | } | |
36130 | if (!argp2) { | |
36131 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36132 | } | |
36133 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36134 | { | |
36135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36136 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
36137 | wxPyEndAllowThreads(__tstate); | |
36138 | if (PyErr_Occurred()) SWIG_fail; | |
36139 | } | |
36140 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36141 | return resultobj; | |
36142 | fail: | |
36143 | return NULL; | |
36144 | } | |
36145 | ||
36146 | ||
36147 | SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36148 | PyObject *resultobj = 0; | |
36149 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36150 | wxString *arg2 = 0 ; | |
36151 | int arg3 = (int) -1 ; | |
36152 | int arg4 = (int) -1 ; | |
36153 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
36154 | wxTreeItemId result; | |
36155 | void *argp1 = 0 ; | |
36156 | int res1 = 0 ; | |
36157 | bool temp2 = false ; | |
36158 | int val3 ; | |
36159 | int ecode3 = 0 ; | |
36160 | int val4 ; | |
36161 | int ecode4 = 0 ; | |
36162 | int res5 = 0 ; | |
36163 | PyObject * obj0 = 0 ; | |
36164 | PyObject * obj1 = 0 ; | |
36165 | PyObject * obj2 = 0 ; | |
36166 | PyObject * obj3 = 0 ; | |
36167 | PyObject * obj4 = 0 ; | |
36168 | char * kwnames[] = { | |
36169 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36170 | }; | |
36171 | ||
36172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36174 | if (!SWIG_IsOK(res1)) { | |
36175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36176 | } | |
36177 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36178 | { | |
36179 | arg2 = wxString_in_helper(obj1); | |
36180 | if (arg2 == NULL) SWIG_fail; | |
36181 | temp2 = true; | |
36182 | } | |
36183 | if (obj2) { | |
36184 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36185 | if (!SWIG_IsOK(ecode3)) { | |
36186 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'"); | |
36187 | } | |
36188 | arg3 = static_cast< int >(val3); | |
36189 | } | |
36190 | if (obj3) { | |
36191 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36192 | if (!SWIG_IsOK(ecode4)) { | |
36193 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'"); | |
36194 | } | |
36195 | arg4 = static_cast< int >(val4); | |
36196 | } | |
36197 | if (obj4) { | |
36198 | res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36199 | if (!SWIG_IsOK(res5)) { | |
36200 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'"); | |
36ed4f51 | 36201 | } |
1bd55598 RD |
36202 | } |
36203 | { | |
36204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36205 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
36206 | wxPyEndAllowThreads(__tstate); | |
36207 | if (PyErr_Occurred()) SWIG_fail; | |
36208 | } | |
36209 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36210 | { | |
36211 | if (temp2) | |
36212 | delete arg2; | |
36213 | } | |
36214 | return resultobj; | |
36215 | fail: | |
36216 | { | |
36217 | if (temp2) | |
36218 | delete arg2; | |
36219 | } | |
36220 | return NULL; | |
36221 | } | |
36222 | ||
36223 | ||
36224 | SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36225 | PyObject *resultobj = 0; | |
36226 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36227 | wxTreeItemId *arg2 = 0 ; | |
36228 | wxString *arg3 = 0 ; | |
36229 | int arg4 = (int) -1 ; | |
36230 | int arg5 = (int) -1 ; | |
36231 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
36232 | wxTreeItemId result; | |
36233 | void *argp1 = 0 ; | |
36234 | int res1 = 0 ; | |
36235 | void *argp2 = 0 ; | |
36236 | int res2 = 0 ; | |
36237 | bool temp3 = false ; | |
36238 | int val4 ; | |
36239 | int ecode4 = 0 ; | |
36240 | int val5 ; | |
36241 | int ecode5 = 0 ; | |
36242 | int res6 = 0 ; | |
36243 | PyObject * obj0 = 0 ; | |
36244 | PyObject * obj1 = 0 ; | |
36245 | PyObject * obj2 = 0 ; | |
36246 | PyObject * obj3 = 0 ; | |
36247 | PyObject * obj4 = 0 ; | |
36248 | PyObject * obj5 = 0 ; | |
36249 | char * kwnames[] = { | |
36250 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36251 | }; | |
36252 | ||
36253 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
36254 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36255 | if (!SWIG_IsOK(res1)) { | |
36256 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36257 | } | |
36258 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36259 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36260 | if (!SWIG_IsOK(res2)) { | |
36261 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36262 | } | |
36263 | if (!argp2) { | |
36264 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36265 | } | |
36266 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36267 | { | |
36268 | arg3 = wxString_in_helper(obj2); | |
36269 | if (arg3 == NULL) SWIG_fail; | |
36270 | temp3 = true; | |
36271 | } | |
36272 | if (obj3) { | |
36273 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36274 | if (!SWIG_IsOK(ecode4)) { | |
36275 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'"); | |
36276 | } | |
36277 | arg4 = static_cast< int >(val4); | |
36278 | } | |
36279 | if (obj4) { | |
36280 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36281 | if (!SWIG_IsOK(ecode5)) { | |
36282 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'"); | |
36283 | } | |
36284 | arg5 = static_cast< int >(val5); | |
36285 | } | |
36286 | if (obj5) { | |
36287 | res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36288 | if (!SWIG_IsOK(res6)) { | |
36289 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'"); | |
d55e5bfc | 36290 | } |
1bd55598 RD |
36291 | } |
36292 | { | |
36293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36294 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
36295 | wxPyEndAllowThreads(__tstate); | |
36296 | if (PyErr_Occurred()) SWIG_fail; | |
36297 | } | |
36298 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36299 | { | |
36300 | if (temp3) | |
36301 | delete arg3; | |
36302 | } | |
36303 | return resultobj; | |
36304 | fail: | |
36305 | { | |
36306 | if (temp3) | |
36307 | delete arg3; | |
36308 | } | |
36309 | return NULL; | |
36310 | } | |
36311 | ||
36312 | ||
36313 | SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36314 | PyObject *resultobj = 0; | |
36315 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36316 | wxTreeItemId *arg2 = 0 ; | |
36317 | wxTreeItemId *arg3 = 0 ; | |
36318 | wxString *arg4 = 0 ; | |
36319 | int arg5 = (int) -1 ; | |
36320 | int arg6 = (int) -1 ; | |
36321 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
36322 | wxTreeItemId result; | |
36323 | void *argp1 = 0 ; | |
36324 | int res1 = 0 ; | |
36325 | void *argp2 = 0 ; | |
36326 | int res2 = 0 ; | |
36327 | void *argp3 = 0 ; | |
36328 | int res3 = 0 ; | |
36329 | bool temp4 = false ; | |
36330 | int val5 ; | |
36331 | int ecode5 = 0 ; | |
36332 | int val6 ; | |
36333 | int ecode6 = 0 ; | |
36334 | int res7 = 0 ; | |
36335 | PyObject * obj0 = 0 ; | |
36336 | PyObject * obj1 = 0 ; | |
36337 | PyObject * obj2 = 0 ; | |
36338 | PyObject * obj3 = 0 ; | |
36339 | PyObject * obj4 = 0 ; | |
36340 | PyObject * obj5 = 0 ; | |
36341 | PyObject * obj6 = 0 ; | |
36342 | char * kwnames[] = { | |
36343 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36344 | }; | |
36345 | ||
36346 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36347 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36348 | if (!SWIG_IsOK(res1)) { | |
36349 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36350 | } | |
36351 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36352 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36353 | if (!SWIG_IsOK(res2)) { | |
36354 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36355 | } | |
36356 | if (!argp2) { | |
36357 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36358 | } | |
36359 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36360 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36361 | if (!SWIG_IsOK(res3)) { | |
36362 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'"); | |
36363 | } | |
36364 | if (!argp3) { | |
36365 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'"); | |
36366 | } | |
36367 | arg3 = reinterpret_cast< wxTreeItemId * >(argp3); | |
36368 | { | |
36369 | arg4 = wxString_in_helper(obj3); | |
36370 | if (arg4 == NULL) SWIG_fail; | |
36371 | temp4 = true; | |
36372 | } | |
36373 | if (obj4) { | |
36374 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36375 | if (!SWIG_IsOK(ecode5)) { | |
36376 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'"); | |
36377 | } | |
36378 | arg5 = static_cast< int >(val5); | |
36379 | } | |
36380 | if (obj5) { | |
36381 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
36382 | if (!SWIG_IsOK(ecode6)) { | |
36383 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'"); | |
36384 | } | |
36385 | arg6 = static_cast< int >(val6); | |
36386 | } | |
36387 | if (obj6) { | |
36388 | res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36389 | if (!SWIG_IsOK(res7)) { | |
36390 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'"); | |
d55e5bfc | 36391 | } |
1bd55598 RD |
36392 | } |
36393 | { | |
36394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36395 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
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 (temp4) | |
36402 | delete arg4; | |
36403 | } | |
36404 | return resultobj; | |
36405 | fail: | |
36406 | { | |
36407 | if (temp4) | |
36408 | delete arg4; | |
36409 | } | |
36410 | return NULL; | |
36411 | } | |
36412 | ||
36413 | ||
36414 | SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36415 | PyObject *resultobj = 0; | |
36416 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36417 | wxTreeItemId *arg2 = 0 ; | |
36418 | size_t arg3 ; | |
36419 | wxString *arg4 = 0 ; | |
36420 | int arg5 = (int) -1 ; | |
36421 | int arg6 = (int) -1 ; | |
36422 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
36423 | wxTreeItemId result; | |
36424 | void *argp1 = 0 ; | |
36425 | int res1 = 0 ; | |
36426 | void *argp2 = 0 ; | |
36427 | int res2 = 0 ; | |
36428 | size_t val3 ; | |
36429 | int ecode3 = 0 ; | |
36430 | bool temp4 = false ; | |
36431 | int val5 ; | |
36432 | int ecode5 = 0 ; | |
36433 | int val6 ; | |
36434 | int ecode6 = 0 ; | |
36435 | int res7 = 0 ; | |
36436 | PyObject * obj0 = 0 ; | |
36437 | PyObject * obj1 = 0 ; | |
36438 | PyObject * obj2 = 0 ; | |
36439 | PyObject * obj3 = 0 ; | |
36440 | PyObject * obj4 = 0 ; | |
36441 | PyObject * obj5 = 0 ; | |
36442 | PyObject * obj6 = 0 ; | |
36443 | char * kwnames[] = { | |
36444 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36445 | }; | |
36446 | ||
36447 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36448 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36449 | if (!SWIG_IsOK(res1)) { | |
36450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36451 | } | |
36452 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36453 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36454 | if (!SWIG_IsOK(res2)) { | |
36455 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36456 | } | |
36457 | if (!argp2) { | |
36458 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36459 | } | |
36460 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36461 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
36462 | if (!SWIG_IsOK(ecode3)) { | |
36463 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'"); | |
36464 | } | |
36465 | arg3 = static_cast< size_t >(val3); | |
36466 | { | |
36467 | arg4 = wxString_in_helper(obj3); | |
36468 | if (arg4 == NULL) SWIG_fail; | |
36469 | temp4 = true; | |
36470 | } | |
36471 | if (obj4) { | |
36472 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36473 | if (!SWIG_IsOK(ecode5)) { | |
36474 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'"); | |
36475 | } | |
36476 | arg5 = static_cast< int >(val5); | |
36477 | } | |
36478 | if (obj5) { | |
36479 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
36480 | if (!SWIG_IsOK(ecode6)) { | |
36481 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'"); | |
36482 | } | |
36483 | arg6 = static_cast< int >(val6); | |
36484 | } | |
36485 | if (obj6) { | |
36486 | res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36487 | if (!SWIG_IsOK(res7)) { | |
36488 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'"); | |
d55e5bfc | 36489 | } |
1bd55598 RD |
36490 | } |
36491 | { | |
36492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36493 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
36494 | wxPyEndAllowThreads(__tstate); | |
36495 | if (PyErr_Occurred()) SWIG_fail; | |
36496 | } | |
36497 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36498 | { | |
36499 | if (temp4) | |
36500 | delete arg4; | |
36501 | } | |
36502 | return resultobj; | |
36503 | fail: | |
36504 | { | |
36505 | if (temp4) | |
36506 | delete arg4; | |
36507 | } | |
36508 | return NULL; | |
36509 | } | |
36510 | ||
36511 | ||
36512 | SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36513 | PyObject *resultobj = 0; | |
36514 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36515 | wxTreeItemId *arg2 = 0 ; | |
36516 | wxString *arg3 = 0 ; | |
36517 | int arg4 = (int) -1 ; | |
36518 | int arg5 = (int) -1 ; | |
36519 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
36520 | wxTreeItemId result; | |
36521 | void *argp1 = 0 ; | |
36522 | int res1 = 0 ; | |
36523 | void *argp2 = 0 ; | |
36524 | int res2 = 0 ; | |
36525 | bool temp3 = false ; | |
36526 | int val4 ; | |
36527 | int ecode4 = 0 ; | |
36528 | int val5 ; | |
36529 | int ecode5 = 0 ; | |
36530 | int res6 = 0 ; | |
36531 | PyObject * obj0 = 0 ; | |
36532 | PyObject * obj1 = 0 ; | |
36533 | PyObject * obj2 = 0 ; | |
36534 | PyObject * obj3 = 0 ; | |
36535 | PyObject * obj4 = 0 ; | |
36536 | PyObject * obj5 = 0 ; | |
36537 | char * kwnames[] = { | |
36538 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36539 | }; | |
36540 | ||
36541 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
36542 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36543 | if (!SWIG_IsOK(res1)) { | |
36544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36545 | } | |
36546 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36547 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36548 | if (!SWIG_IsOK(res2)) { | |
36549 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36550 | } | |
36551 | if (!argp2) { | |
36552 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36553 | } | |
36554 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36555 | { | |
36556 | arg3 = wxString_in_helper(obj2); | |
36557 | if (arg3 == NULL) SWIG_fail; | |
36558 | temp3 = true; | |
36559 | } | |
36560 | if (obj3) { | |
36561 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36562 | if (!SWIG_IsOK(ecode4)) { | |
36563 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'"); | |
36564 | } | |
36565 | arg4 = static_cast< int >(val4); | |
36566 | } | |
36567 | if (obj4) { | |
36568 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36569 | if (!SWIG_IsOK(ecode5)) { | |
36570 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'"); | |
36571 | } | |
36572 | arg5 = static_cast< int >(val5); | |
36573 | } | |
36574 | if (obj5) { | |
36575 | res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36576 | if (!SWIG_IsOK(res6)) { | |
36577 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'"); | |
d55e5bfc | 36578 | } |
1bd55598 RD |
36579 | } |
36580 | { | |
36581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36582 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
36583 | wxPyEndAllowThreads(__tstate); | |
36584 | if (PyErr_Occurred()) SWIG_fail; | |
36585 | } | |
36586 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36587 | { | |
36588 | if (temp3) | |
36589 | delete arg3; | |
36590 | } | |
36591 | return resultobj; | |
36592 | fail: | |
36593 | { | |
36594 | if (temp3) | |
36595 | delete arg3; | |
36596 | } | |
36597 | return NULL; | |
36598 | } | |
36599 | ||
36600 | ||
36601 | SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36602 | PyObject *resultobj = 0; | |
36603 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36604 | wxTreeItemId *arg2 = 0 ; | |
36605 | void *argp1 = 0 ; | |
36606 | int res1 = 0 ; | |
36607 | void *argp2 = 0 ; | |
36608 | int res2 = 0 ; | |
36609 | PyObject * obj0 = 0 ; | |
36610 | PyObject * obj1 = 0 ; | |
36611 | char * kwnames[] = { | |
36612 | (char *) "self",(char *) "item", NULL | |
36613 | }; | |
36614 | ||
36615 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail; | |
36616 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36617 | if (!SWIG_IsOK(res1)) { | |
36618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36619 | } | |
36620 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36621 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36622 | if (!SWIG_IsOK(res2)) { | |
36623 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36624 | } | |
36625 | if (!argp2) { | |
36626 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36627 | } | |
36628 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36629 | { | |
36630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36631 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
36632 | wxPyEndAllowThreads(__tstate); | |
36633 | if (PyErr_Occurred()) SWIG_fail; | |
36634 | } | |
36635 | resultobj = SWIG_Py_Void(); | |
36636 | return resultobj; | |
36637 | fail: | |
36638 | return NULL; | |
36639 | } | |
36640 | ||
36641 | ||
36642 | SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36643 | PyObject *resultobj = 0; | |
36644 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36645 | wxTreeItemId *arg2 = 0 ; | |
36646 | void *argp1 = 0 ; | |
36647 | int res1 = 0 ; | |
36648 | void *argp2 = 0 ; | |
36649 | int res2 = 0 ; | |
36650 | PyObject * obj0 = 0 ; | |
36651 | PyObject * obj1 = 0 ; | |
36652 | char * kwnames[] = { | |
36653 | (char *) "self",(char *) "item", NULL | |
36654 | }; | |
36655 | ||
36656 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
36657 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36658 | if (!SWIG_IsOK(res1)) { | |
36659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36660 | } | |
36661 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36662 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36663 | if (!SWIG_IsOK(res2)) { | |
36664 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36665 | } | |
36666 | if (!argp2) { | |
36667 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36668 | } | |
36669 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36670 | { | |
36671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36672 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
36673 | wxPyEndAllowThreads(__tstate); | |
36674 | if (PyErr_Occurred()) SWIG_fail; | |
36675 | } | |
36676 | resultobj = SWIG_Py_Void(); | |
36677 | return resultobj; | |
36678 | fail: | |
36679 | return NULL; | |
d55e5bfc RD |
36680 | } |
36681 | ||
36682 | ||
1bd55598 RD |
36683 | SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36684 | PyObject *resultobj = 0; | |
36685 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36686 | void *argp1 = 0 ; | |
36687 | int res1 = 0 ; | |
36688 | PyObject *swig_obj[1] ; | |
36689 | ||
36690 | if (!args) SWIG_fail; | |
36691 | swig_obj[0] = args; | |
36692 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36693 | if (!SWIG_IsOK(res1)) { | |
36694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36695 | } | |
36696 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36697 | { | |
36698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36699 | (arg1)->DeleteAllItems(); | |
36700 | wxPyEndAllowThreads(__tstate); | |
36701 | if (PyErr_Occurred()) SWIG_fail; | |
36702 | } | |
36703 | resultobj = SWIG_Py_Void(); | |
36704 | return resultobj; | |
36705 | fail: | |
36706 | return NULL; | |
36707 | } | |
36708 | ||
36709 | ||
36710 | SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36711 | PyObject *resultobj = 0; | |
36712 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36713 | wxTreeItemId *arg2 = 0 ; | |
36714 | void *argp1 = 0 ; | |
36715 | int res1 = 0 ; | |
36716 | void *argp2 = 0 ; | |
36717 | int res2 = 0 ; | |
36718 | PyObject * obj0 = 0 ; | |
36719 | PyObject * obj1 = 0 ; | |
36720 | char * kwnames[] = { | |
36721 | (char *) "self",(char *) "item", NULL | |
36722 | }; | |
36723 | ||
36724 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail; | |
36725 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36726 | if (!SWIG_IsOK(res1)) { | |
36727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36728 | } | |
36729 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36730 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36731 | if (!SWIG_IsOK(res2)) { | |
36732 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36733 | } | |
36734 | if (!argp2) { | |
36735 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36736 | } | |
36737 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36738 | { | |
36739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36740 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
36741 | wxPyEndAllowThreads(__tstate); | |
36742 | if (PyErr_Occurred()) SWIG_fail; | |
36743 | } | |
36744 | resultobj = SWIG_Py_Void(); | |
36745 | return resultobj; | |
36746 | fail: | |
36747 | return NULL; | |
36748 | } | |
36749 | ||
36750 | ||
3d6c9062 RD |
36751 | SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36752 | PyObject *resultobj = 0; | |
36753 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36754 | wxTreeItemId *arg2 = 0 ; | |
36755 | void *argp1 = 0 ; | |
36756 | int res1 = 0 ; | |
36757 | void *argp2 = 0 ; | |
36758 | int res2 = 0 ; | |
36759 | PyObject * obj0 = 0 ; | |
36760 | PyObject * obj1 = 0 ; | |
36761 | char * kwnames[] = { | |
36762 | (char *) "self",(char *) "item", NULL | |
36763 | }; | |
36764 | ||
36765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
36766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36767 | if (!SWIG_IsOK(res1)) { | |
36768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36769 | } | |
36770 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36771 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36772 | if (!SWIG_IsOK(res2)) { | |
36773 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36774 | } | |
36775 | if (!argp2) { | |
36776 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36777 | } | |
36778 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36779 | { | |
36780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36781 | (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2); | |
36782 | wxPyEndAllowThreads(__tstate); | |
36783 | if (PyErr_Occurred()) SWIG_fail; | |
36784 | } | |
36785 | resultobj = SWIG_Py_Void(); | |
36786 | return resultobj; | |
36787 | fail: | |
36788 | return NULL; | |
36789 | } | |
36790 | ||
36791 | ||
36792 | SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36793 | PyObject *resultobj = 0; | |
36794 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36795 | void *argp1 = 0 ; | |
36796 | int res1 = 0 ; | |
36797 | PyObject *swig_obj[1] ; | |
36798 | ||
36799 | if (!args) SWIG_fail; | |
36800 | swig_obj[0] = args; | |
36801 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36802 | if (!SWIG_IsOK(res1)) { | |
36803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36804 | } | |
36805 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36806 | { | |
36807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36808 | (arg1)->ExpandAll(); | |
36809 | wxPyEndAllowThreads(__tstate); | |
36810 | if (PyErr_Occurred()) SWIG_fail; | |
36811 | } | |
36812 | resultobj = SWIG_Py_Void(); | |
36813 | return resultobj; | |
36814 | fail: | |
36815 | return NULL; | |
36816 | } | |
36817 | ||
36818 | ||
1bd55598 RD |
36819 | SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36820 | PyObject *resultobj = 0; | |
36821 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36822 | wxTreeItemId *arg2 = 0 ; | |
36823 | void *argp1 = 0 ; | |
36824 | int res1 = 0 ; | |
36825 | void *argp2 = 0 ; | |
36826 | int res2 = 0 ; | |
36827 | PyObject * obj0 = 0 ; | |
36828 | PyObject * obj1 = 0 ; | |
36829 | char * kwnames[] = { | |
36830 | (char *) "self",(char *) "item", NULL | |
36831 | }; | |
36832 | ||
36833 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail; | |
36834 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36835 | if (!SWIG_IsOK(res1)) { | |
36836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36837 | } | |
36838 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36839 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36840 | if (!SWIG_IsOK(res2)) { | |
36841 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36842 | } | |
36843 | if (!argp2) { | |
36844 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36845 | } | |
36846 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36847 | { | |
36848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36849 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
36850 | wxPyEndAllowThreads(__tstate); | |
36851 | if (PyErr_Occurred()) SWIG_fail; | |
36852 | } | |
36853 | resultobj = SWIG_Py_Void(); | |
36854 | return resultobj; | |
36855 | fail: | |
36856 | return NULL; | |
36857 | } | |
36858 | ||
36859 | ||
1ceb4f4d RD |
36860 | SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36861 | PyObject *resultobj = 0; | |
36862 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36863 | wxTreeItemId *arg2 = 0 ; | |
36864 | void *argp1 = 0 ; | |
36865 | int res1 = 0 ; | |
36866 | void *argp2 = 0 ; | |
36867 | int res2 = 0 ; | |
36868 | PyObject * obj0 = 0 ; | |
36869 | PyObject * obj1 = 0 ; | |
36870 | char * kwnames[] = { | |
36871 | (char *) "self",(char *) "item", NULL | |
36872 | }; | |
36873 | ||
36874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAllChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
36875 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36876 | if (!SWIG_IsOK(res1)) { | |
36877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36878 | } | |
36879 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36880 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36881 | if (!SWIG_IsOK(res2)) { | |
36882 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36883 | } | |
36884 | if (!argp2) { | |
36885 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36886 | } | |
36887 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36888 | { | |
36889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36890 | (arg1)->CollapseAllChildren((wxTreeItemId const &)*arg2); | |
36891 | wxPyEndAllowThreads(__tstate); | |
36892 | if (PyErr_Occurred()) SWIG_fail; | |
36893 | } | |
36894 | resultobj = SWIG_Py_Void(); | |
36895 | return resultobj; | |
36896 | fail: | |
36897 | return NULL; | |
36898 | } | |
36899 | ||
36900 | ||
36901 | SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36902 | PyObject *resultobj = 0; | |
36903 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36904 | void *argp1 = 0 ; | |
36905 | int res1 = 0 ; | |
36906 | PyObject *swig_obj[1] ; | |
36907 | ||
36908 | if (!args) SWIG_fail; | |
36909 | swig_obj[0] = args; | |
36910 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36911 | if (!SWIG_IsOK(res1)) { | |
36912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36913 | } | |
36914 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36915 | { | |
36916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36917 | (arg1)->CollapseAll(); | |
36918 | wxPyEndAllowThreads(__tstate); | |
36919 | if (PyErr_Occurred()) SWIG_fail; | |
36920 | } | |
36921 | resultobj = SWIG_Py_Void(); | |
36922 | return resultobj; | |
36923 | fail: | |
36924 | return NULL; | |
36925 | } | |
36926 | ||
36927 | ||
1bd55598 RD |
36928 | SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36929 | PyObject *resultobj = 0; | |
36930 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36931 | wxTreeItemId *arg2 = 0 ; | |
36932 | void *argp1 = 0 ; | |
36933 | int res1 = 0 ; | |
36934 | void *argp2 = 0 ; | |
36935 | int res2 = 0 ; | |
36936 | PyObject * obj0 = 0 ; | |
36937 | PyObject * obj1 = 0 ; | |
36938 | char * kwnames[] = { | |
36939 | (char *) "self",(char *) "item", NULL | |
36940 | }; | |
36941 | ||
36942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail; | |
36943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36944 | if (!SWIG_IsOK(res1)) { | |
36945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36946 | } | |
36947 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36948 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36949 | if (!SWIG_IsOK(res2)) { | |
36950 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36951 | } | |
36952 | if (!argp2) { | |
36953 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36954 | } | |
36955 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36956 | { | |
36957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36958 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
36959 | wxPyEndAllowThreads(__tstate); | |
36960 | if (PyErr_Occurred()) SWIG_fail; | |
36961 | } | |
36962 | resultobj = SWIG_Py_Void(); | |
36963 | return resultobj; | |
36964 | fail: | |
36965 | return NULL; | |
36966 | } | |
36967 | ||
36968 | ||
36969 | SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36970 | PyObject *resultobj = 0; | |
36971 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36972 | wxTreeItemId *arg2 = 0 ; | |
36973 | void *argp1 = 0 ; | |
36974 | int res1 = 0 ; | |
36975 | void *argp2 = 0 ; | |
36976 | int res2 = 0 ; | |
36977 | PyObject * obj0 = 0 ; | |
36978 | PyObject * obj1 = 0 ; | |
36979 | char * kwnames[] = { | |
36980 | (char *) "self",(char *) "item", NULL | |
36981 | }; | |
36982 | ||
36983 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
36984 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36985 | if (!SWIG_IsOK(res1)) { | |
36986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36987 | } | |
36988 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36989 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36990 | if (!SWIG_IsOK(res2)) { | |
36991 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36992 | } | |
36993 | if (!argp2) { | |
36994 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36995 | } | |
36996 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36997 | { | |
36998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36999 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
37000 | wxPyEndAllowThreads(__tstate); | |
37001 | if (PyErr_Occurred()) SWIG_fail; | |
37002 | } | |
37003 | resultobj = SWIG_Py_Void(); | |
37004 | return resultobj; | |
37005 | fail: | |
37006 | return NULL; | |
d55e5bfc RD |
37007 | } |
37008 | ||
37009 | ||
1bd55598 RD |
37010 | SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37011 | PyObject *resultobj = 0; | |
37012 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37013 | void *argp1 = 0 ; | |
37014 | int res1 = 0 ; | |
37015 | PyObject *swig_obj[1] ; | |
37016 | ||
37017 | if (!args) SWIG_fail; | |
37018 | swig_obj[0] = args; | |
37019 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37020 | if (!SWIG_IsOK(res1)) { | |
37021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37022 | } | |
37023 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37024 | { | |
37025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37026 | (arg1)->Unselect(); | |
37027 | wxPyEndAllowThreads(__tstate); | |
37028 | if (PyErr_Occurred()) SWIG_fail; | |
37029 | } | |
37030 | resultobj = SWIG_Py_Void(); | |
37031 | return resultobj; | |
37032 | fail: | |
37033 | return NULL; | |
37034 | } | |
37035 | ||
37036 | ||
37037 | SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37038 | PyObject *resultobj = 0; | |
37039 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37040 | wxTreeItemId *arg2 = 0 ; | |
37041 | void *argp1 = 0 ; | |
37042 | int res1 = 0 ; | |
37043 | void *argp2 = 0 ; | |
37044 | int res2 = 0 ; | |
37045 | PyObject * obj0 = 0 ; | |
37046 | PyObject * obj1 = 0 ; | |
37047 | char * kwnames[] = { | |
37048 | (char *) "self",(char *) "item", NULL | |
37049 | }; | |
37050 | ||
37051 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
37052 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37053 | if (!SWIG_IsOK(res1)) { | |
37054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37055 | } | |
37056 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37057 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37058 | if (!SWIG_IsOK(res2)) { | |
37059 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37060 | } | |
37061 | if (!argp2) { | |
37062 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37063 | } | |
37064 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37065 | { | |
37066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37067 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
37068 | wxPyEndAllowThreads(__tstate); | |
37069 | if (PyErr_Occurred()) SWIG_fail; | |
37070 | } | |
37071 | resultobj = SWIG_Py_Void(); | |
37072 | return resultobj; | |
37073 | fail: | |
37074 | return NULL; | |
d55e5bfc RD |
37075 | } |
37076 | ||
37077 | ||
1bd55598 RD |
37078 | SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37079 | PyObject *resultobj = 0; | |
37080 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37081 | void *argp1 = 0 ; | |
37082 | int res1 = 0 ; | |
37083 | PyObject *swig_obj[1] ; | |
37084 | ||
37085 | if (!args) SWIG_fail; | |
37086 | swig_obj[0] = args; | |
37087 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37088 | if (!SWIG_IsOK(res1)) { | |
37089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37090 | } | |
37091 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37092 | { | |
37093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37094 | (arg1)->UnselectAll(); | |
37095 | wxPyEndAllowThreads(__tstate); | |
37096 | if (PyErr_Occurred()) SWIG_fail; | |
37097 | } | |
37098 | resultobj = SWIG_Py_Void(); | |
37099 | return resultobj; | |
37100 | fail: | |
37101 | return NULL; | |
37102 | } | |
37103 | ||
37104 | ||
37105 | SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37106 | PyObject *resultobj = 0; | |
37107 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37108 | wxTreeItemId *arg2 = 0 ; | |
37109 | bool arg3 = (bool) true ; | |
37110 | void *argp1 = 0 ; | |
37111 | int res1 = 0 ; | |
37112 | void *argp2 = 0 ; | |
37113 | int res2 = 0 ; | |
37114 | bool val3 ; | |
37115 | int ecode3 = 0 ; | |
37116 | PyObject * obj0 = 0 ; | |
37117 | PyObject * obj1 = 0 ; | |
37118 | PyObject * obj2 = 0 ; | |
37119 | char * kwnames[] = { | |
37120 | (char *) "self",(char *) "item",(char *) "select", NULL | |
37121 | }; | |
37122 | ||
37123 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37124 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37125 | if (!SWIG_IsOK(res1)) { | |
37126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37127 | } | |
37128 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37129 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37130 | if (!SWIG_IsOK(res2)) { | |
37131 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37132 | } | |
37133 | if (!argp2) { | |
37134 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37135 | } | |
37136 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37137 | if (obj2) { | |
37138 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
37139 | if (!SWIG_IsOK(ecode3)) { | |
37140 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'"); | |
37141 | } | |
37142 | arg3 = static_cast< bool >(val3); | |
37143 | } | |
37144 | { | |
37145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37146 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
37147 | wxPyEndAllowThreads(__tstate); | |
37148 | if (PyErr_Occurred()) SWIG_fail; | |
37149 | } | |
37150 | resultobj = SWIG_Py_Void(); | |
37151 | return resultobj; | |
37152 | fail: | |
37153 | return NULL; | |
37154 | } | |
37155 | ||
37156 | ||
37157 | SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37158 | PyObject *resultobj = 0; | |
37159 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37160 | wxTreeItemId *arg2 = 0 ; | |
37161 | void *argp1 = 0 ; | |
37162 | int res1 = 0 ; | |
37163 | void *argp2 = 0 ; | |
37164 | int res2 = 0 ; | |
37165 | PyObject * obj0 = 0 ; | |
37166 | PyObject * obj1 = 0 ; | |
37167 | char * kwnames[] = { | |
37168 | (char *) "self",(char *) "item", NULL | |
37169 | }; | |
37170 | ||
37171 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
37172 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37173 | if (!SWIG_IsOK(res1)) { | |
37174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37175 | } | |
37176 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37177 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37178 | if (!SWIG_IsOK(res2)) { | |
37179 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37180 | } | |
37181 | if (!argp2) { | |
37182 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37183 | } | |
37184 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37185 | { | |
37186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37187 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
37188 | wxPyEndAllowThreads(__tstate); | |
37189 | if (PyErr_Occurred()) SWIG_fail; | |
37190 | } | |
37191 | resultobj = SWIG_Py_Void(); | |
37192 | return resultobj; | |
37193 | fail: | |
37194 | return NULL; | |
37195 | } | |
37196 | ||
37197 | ||
37198 | SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37199 | PyObject *resultobj = 0; | |
37200 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37201 | wxTreeItemId *arg2 = 0 ; | |
37202 | void *argp1 = 0 ; | |
37203 | int res1 = 0 ; | |
37204 | void *argp2 = 0 ; | |
37205 | int res2 = 0 ; | |
37206 | PyObject * obj0 = 0 ; | |
37207 | PyObject * obj1 = 0 ; | |
37208 | char * kwnames[] = { | |
37209 | (char *) "self",(char *) "item", NULL | |
37210 | }; | |
37211 | ||
37212 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
37213 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37214 | if (!SWIG_IsOK(res1)) { | |
37215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37216 | } | |
37217 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37218 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37219 | if (!SWIG_IsOK(res2)) { | |
37220 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37221 | } | |
37222 | if (!argp2) { | |
37223 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37224 | } | |
37225 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37226 | { | |
37227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37228 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
37229 | wxPyEndAllowThreads(__tstate); | |
37230 | if (PyErr_Occurred()) SWIG_fail; | |
37231 | } | |
37232 | resultobj = SWIG_Py_Void(); | |
37233 | return resultobj; | |
37234 | fail: | |
37235 | return NULL; | |
37236 | } | |
37237 | ||
37238 | ||
37239 | SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37240 | PyObject *resultobj = 0; | |
37241 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37242 | wxTreeItemId *arg2 = 0 ; | |
37243 | void *argp1 = 0 ; | |
37244 | int res1 = 0 ; | |
37245 | void *argp2 = 0 ; | |
37246 | int res2 = 0 ; | |
37247 | PyObject * obj0 = 0 ; | |
37248 | PyObject * obj1 = 0 ; | |
37249 | char * kwnames[] = { | |
37250 | (char *) "self",(char *) "item", NULL | |
37251 | }; | |
37252 | ||
37253 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail; | |
37254 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37255 | if (!SWIG_IsOK(res1)) { | |
37256 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37257 | } | |
37258 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37259 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37260 | if (!SWIG_IsOK(res2)) { | |
37261 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37262 | } | |
37263 | if (!argp2) { | |
37264 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37265 | } | |
37266 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37267 | { | |
37268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37269 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
37270 | wxPyEndAllowThreads(__tstate); | |
37271 | if (PyErr_Occurred()) SWIG_fail; | |
37272 | } | |
37273 | resultobj = SWIG_Py_Void(); | |
37274 | return resultobj; | |
37275 | fail: | |
37276 | return NULL; | |
37277 | } | |
37278 | ||
37279 | ||
37280 | SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37281 | PyObject *resultobj = 0; | |
37282 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37283 | wxTreeItemId *arg2 = 0 ; | |
37284 | void *argp1 = 0 ; | |
37285 | int res1 = 0 ; | |
37286 | void *argp2 = 0 ; | |
37287 | int res2 = 0 ; | |
37288 | PyObject * obj0 = 0 ; | |
37289 | PyObject * obj1 = 0 ; | |
37290 | char * kwnames[] = { | |
37291 | (char *) "self",(char *) "item", NULL | |
37292 | }; | |
37293 | ||
37294 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
37295 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37296 | if (!SWIG_IsOK(res1)) { | |
37297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37298 | } | |
37299 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37300 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37301 | if (!SWIG_IsOK(res2)) { | |
37302 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37303 | } | |
37304 | if (!argp2) { | |
37305 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37306 | } | |
37307 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37308 | { | |
37309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37310 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
37311 | wxPyEndAllowThreads(__tstate); | |
37312 | if (PyErr_Occurred()) SWIG_fail; | |
37313 | } | |
37314 | resultobj = SWIG_Py_Void(); | |
37315 | return resultobj; | |
37316 | fail: | |
37317 | return NULL; | |
d55e5bfc RD |
37318 | } |
37319 | ||
37320 | ||
1bd55598 RD |
37321 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37322 | PyObject *resultobj = 0; | |
37323 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37324 | wxTextCtrl *result = 0 ; | |
37325 | void *argp1 = 0 ; | |
37326 | int res1 = 0 ; | |
37327 | PyObject *swig_obj[1] ; | |
37328 | ||
37329 | if (!args) SWIG_fail; | |
37330 | swig_obj[0] = args; | |
37331 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37332 | if (!SWIG_IsOK(res1)) { | |
37333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
37334 | } | |
37335 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37336 | { | |
37337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37338 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
37339 | wxPyEndAllowThreads(__tstate); | |
37340 | if (PyErr_Occurred()) SWIG_fail; | |
37341 | } | |
37342 | { | |
37343 | resultobj = wxPyMake_wxObject(result, 0); | |
37344 | } | |
37345 | return resultobj; | |
37346 | fail: | |
37347 | return NULL; | |
37348 | } | |
37349 | ||
37350 | ||
37351 | SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37352 | PyObject *resultobj = 0; | |
37353 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37354 | wxTreeItemId *arg2 = 0 ; | |
37355 | void *argp1 = 0 ; | |
37356 | int res1 = 0 ; | |
37357 | void *argp2 = 0 ; | |
37358 | int res2 = 0 ; | |
37359 | PyObject * obj0 = 0 ; | |
37360 | PyObject * obj1 = 0 ; | |
37361 | char * kwnames[] = { | |
37362 | (char *) "self",(char *) "item", NULL | |
37363 | }; | |
37364 | ||
37365 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
37366 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37367 | if (!SWIG_IsOK(res1)) { | |
37368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37369 | } | |
37370 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37371 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37372 | if (!SWIG_IsOK(res2)) { | |
37373 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37374 | } | |
37375 | if (!argp2) { | |
37376 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37377 | } | |
37378 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37379 | { | |
37380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37381 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
37382 | wxPyEndAllowThreads(__tstate); | |
37383 | if (PyErr_Occurred()) SWIG_fail; | |
37384 | } | |
37385 | resultobj = SWIG_Py_Void(); | |
37386 | return resultobj; | |
37387 | fail: | |
37388 | return NULL; | |
37389 | } | |
37390 | ||
37391 | ||
37392 | SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37393 | PyObject *resultobj = 0; | |
37394 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37395 | wxPoint *arg2 = 0 ; | |
37396 | int *arg3 = 0 ; | |
37397 | wxTreeItemId result; | |
37398 | void *argp1 = 0 ; | |
37399 | int res1 = 0 ; | |
37400 | wxPoint temp2 ; | |
37401 | int temp3 ; | |
37402 | int res3 = SWIG_TMPOBJ ; | |
37403 | PyObject * obj0 = 0 ; | |
37404 | PyObject * obj1 = 0 ; | |
37405 | char * kwnames[] = { | |
37406 | (char *) "self",(char *) "point", NULL | |
37407 | }; | |
37408 | ||
37409 | arg3 = &temp3; | |
37410 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
37411 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37412 | if (!SWIG_IsOK(res1)) { | |
37413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37414 | } | |
37415 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37416 | { | |
37417 | arg2 = &temp2; | |
37418 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37419 | } | |
37420 | { | |
37421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37422 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
37423 | wxPyEndAllowThreads(__tstate); | |
37424 | if (PyErr_Occurred()) SWIG_fail; | |
37425 | } | |
37426 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
37427 | if (SWIG_IsTmpObj(res3)) { | |
37428 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
37429 | } else { | |
37430 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
37431 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
37432 | } | |
37433 | return resultobj; | |
37434 | fail: | |
37435 | return NULL; | |
37436 | } | |
37437 | ||
37438 | ||
37439 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37440 | PyObject *resultobj = 0; | |
37441 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37442 | wxTreeItemId *arg2 = 0 ; | |
37443 | bool arg3 = (bool) false ; | |
37444 | PyObject *result = 0 ; | |
37445 | void *argp1 = 0 ; | |
37446 | int res1 = 0 ; | |
37447 | void *argp2 = 0 ; | |
37448 | int res2 = 0 ; | |
37449 | bool val3 ; | |
37450 | int ecode3 = 0 ; | |
37451 | PyObject * obj0 = 0 ; | |
37452 | PyObject * obj1 = 0 ; | |
37453 | PyObject * obj2 = 0 ; | |
37454 | char * kwnames[] = { | |
37455 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
37456 | }; | |
37457 | ||
37458 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37459 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37460 | if (!SWIG_IsOK(res1)) { | |
37461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37462 | } | |
37463 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37464 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37465 | if (!SWIG_IsOK(res2)) { | |
37466 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37467 | } | |
37468 | if (!argp2) { | |
37469 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37470 | } | |
37471 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37472 | if (obj2) { | |
37473 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
37474 | if (!SWIG_IsOK(ecode3)) { | |
37475 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'"); | |
37476 | } | |
37477 | arg3 = static_cast< bool >(val3); | |
37478 | } | |
37479 | { | |
37480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37481 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
37482 | wxPyEndAllowThreads(__tstate); | |
37483 | if (PyErr_Occurred()) SWIG_fail; | |
37484 | } | |
37485 | resultobj = result; | |
37486 | return resultobj; | |
37487 | fail: | |
37488 | return NULL; | |
37489 | } | |
37490 | ||
37491 | ||
37492 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37493 | PyObject *resultobj = 0; | |
37494 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
37495 | SwigValueWrapper<wxVisualAttributes > result; | |
37496 | int val1 ; | |
37497 | int ecode1 = 0 ; | |
37498 | PyObject * obj0 = 0 ; | |
37499 | char * kwnames[] = { | |
37500 | (char *) "variant", NULL | |
37501 | }; | |
37502 | ||
37503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
37504 | if (obj0) { | |
37505 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
37506 | if (!SWIG_IsOK(ecode1)) { | |
37507 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
37508 | } | |
37509 | arg1 = static_cast< wxWindowVariant >(val1); | |
37510 | } | |
37511 | { | |
37512 | if (!wxPyCheckForApp()) SWIG_fail; | |
37513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37514 | result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1); | |
37515 | wxPyEndAllowThreads(__tstate); | |
37516 | if (PyErr_Occurred()) SWIG_fail; | |
37517 | } | |
37518 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
37519 | return resultobj; | |
37520 | fail: | |
37521 | return NULL; | |
d55e5bfc RD |
37522 | } |
37523 | ||
37524 | ||
2131d850 RD |
37525 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
37526 | PyObject *resultobj = 0; | |
37527 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37528 | bool arg2 ; | |
37529 | void *argp1 = 0 ; | |
37530 | int res1 = 0 ; | |
37531 | bool val2 ; | |
37532 | int ecode2 = 0 ; | |
37533 | PyObject * obj0 = 0 ; | |
37534 | PyObject * obj1 = 0 ; | |
37535 | char * kwnames[] = { | |
37536 | (char *) "self",(char *) "q", NULL | |
37537 | }; | |
37538 | ||
37539 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
37540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37541 | if (!SWIG_IsOK(res1)) { | |
37542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37543 | } | |
37544 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37545 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
37546 | if (!SWIG_IsOK(ecode2)) { | |
37547 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'"); | |
37548 | } | |
37549 | arg2 = static_cast< bool >(val2); | |
37550 | { | |
37551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37552 | (arg1)->SetQuickBestSize(arg2); | |
37553 | wxPyEndAllowThreads(__tstate); | |
37554 | if (PyErr_Occurred()) SWIG_fail; | |
37555 | } | |
37556 | resultobj = SWIG_Py_Void(); | |
37557 | return resultobj; | |
37558 | fail: | |
37559 | return NULL; | |
37560 | } | |
37561 | ||
37562 | ||
37563 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37564 | PyObject *resultobj = 0; | |
37565 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37566 | bool result; | |
37567 | void *argp1 = 0 ; | |
37568 | int res1 = 0 ; | |
37569 | PyObject *swig_obj[1] ; | |
37570 | ||
37571 | if (!args) SWIG_fail; | |
37572 | swig_obj[0] = args; | |
37573 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37574 | if (!SWIG_IsOK(res1)) { | |
37575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
37576 | } | |
37577 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37578 | { | |
37579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37580 | result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize(); | |
37581 | wxPyEndAllowThreads(__tstate); | |
37582 | if (PyErr_Occurred()) SWIG_fail; | |
37583 | } | |
37584 | { | |
37585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37586 | } | |
37587 | return resultobj; | |
37588 | fail: | |
37589 | return NULL; | |
37590 | } | |
37591 | ||
37592 | ||
1bd55598 RD |
37593 | SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37594 | PyObject *obj; | |
37595 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
37596 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj)); | |
37597 | return SWIG_Py_Void(); | |
d55e5bfc RD |
37598 | } |
37599 | ||
1bd55598 RD |
37600 | SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37601 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
37602 | } |
37603 | ||
1bd55598 RD |
37604 | SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) { |
37605 | SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
37606 | return 1; | |
d55e5bfc RD |
37607 | } |
37608 | ||
37609 | ||
1bd55598 RD |
37610 | SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) { |
37611 | PyObject *pyobj = 0; | |
37612 | ||
37613 | { | |
37614 | #if wxUSE_UNICODE | |
37615 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
37616 | #else | |
37617 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
37618 | #endif | |
37619 | } | |
37620 | return pyobj; | |
37621 | } | |
37622 | ||
37623 | ||
37624 | SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37625 | PyObject *resultobj = 0; | |
37626 | wxWindow *arg1 = (wxWindow *) 0 ; | |
37627 | int arg2 = (int) (int)-1 ; | |
37628 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
37629 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
37630 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
37631 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
37632 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
37633 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
37634 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
37635 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
37636 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
37637 | int arg8 = (int) 0 ; | |
37638 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
37639 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
37640 | wxGenericDirCtrl *result = 0 ; | |
37641 | void *argp1 = 0 ; | |
37642 | int res1 = 0 ; | |
37643 | int val2 ; | |
37644 | int ecode2 = 0 ; | |
37645 | bool temp3 = false ; | |
37646 | wxPoint temp4 ; | |
37647 | wxSize temp5 ; | |
37648 | long val6 ; | |
37649 | int ecode6 = 0 ; | |
37650 | bool temp7 = false ; | |
37651 | int val8 ; | |
37652 | int ecode8 = 0 ; | |
37653 | bool temp9 = false ; | |
37654 | PyObject * obj0 = 0 ; | |
37655 | PyObject * obj1 = 0 ; | |
37656 | PyObject * obj2 = 0 ; | |
37657 | PyObject * obj3 = 0 ; | |
37658 | PyObject * obj4 = 0 ; | |
37659 | PyObject * obj5 = 0 ; | |
37660 | PyObject * obj6 = 0 ; | |
37661 | PyObject * obj7 = 0 ; | |
37662 | PyObject * obj8 = 0 ; | |
37663 | char * kwnames[] = { | |
37664 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
37665 | }; | |
37666 | ||
37667 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
37668 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
37669 | if (!SWIG_IsOK(res1)) { | |
37670 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
37671 | } | |
37672 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
37673 | if (obj1) { | |
37674 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37675 | if (!SWIG_IsOK(ecode2)) { | |
37676 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'"); | |
37677 | } | |
37678 | arg2 = static_cast< int >(val2); | |
37679 | } | |
37680 | if (obj2) { | |
36ed4f51 | 37681 | { |
1bd55598 RD |
37682 | arg3 = wxString_in_helper(obj2); |
37683 | if (arg3 == NULL) SWIG_fail; | |
37684 | temp3 = true; | |
36ed4f51 | 37685 | } |
1bd55598 RD |
37686 | } |
37687 | if (obj3) { | |
d55e5bfc | 37688 | { |
1bd55598 RD |
37689 | arg4 = &temp4; |
37690 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 37691 | } |
1bd55598 RD |
37692 | } |
37693 | if (obj4) { | |
36ed4f51 | 37694 | { |
1bd55598 RD |
37695 | arg5 = &temp5; |
37696 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 37697 | } |
1bd55598 RD |
37698 | } |
37699 | if (obj5) { | |
37700 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
37701 | if (!SWIG_IsOK(ecode6)) { | |
37702 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'"); | |
37703 | } | |
37704 | arg6 = static_cast< long >(val6); | |
37705 | } | |
37706 | if (obj6) { | |
36ed4f51 | 37707 | { |
1bd55598 RD |
37708 | arg7 = wxString_in_helper(obj6); |
37709 | if (arg7 == NULL) SWIG_fail; | |
37710 | temp7 = true; | |
36ed4f51 | 37711 | } |
1bd55598 RD |
37712 | } |
37713 | if (obj7) { | |
37714 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
37715 | if (!SWIG_IsOK(ecode8)) { | |
37716 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'"); | |
37717 | } | |
37718 | arg8 = static_cast< int >(val8); | |
37719 | } | |
37720 | if (obj8) { | |
d55e5bfc | 37721 | { |
1bd55598 RD |
37722 | arg9 = wxString_in_helper(obj8); |
37723 | if (arg9 == NULL) SWIG_fail; | |
37724 | temp9 = true; | |
d55e5bfc | 37725 | } |
1bd55598 RD |
37726 | } |
37727 | { | |
37728 | if (!wxPyCheckForApp()) SWIG_fail; | |
37729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37730 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
37731 | wxPyEndAllowThreads(__tstate); | |
37732 | if (PyErr_Occurred()) SWIG_fail; | |
37733 | } | |
37734 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 ); | |
37735 | { | |
37736 | if (temp3) | |
37737 | delete arg3; | |
37738 | } | |
37739 | { | |
37740 | if (temp7) | |
37741 | delete arg7; | |
37742 | } | |
37743 | { | |
37744 | if (temp9) | |
37745 | delete arg9; | |
37746 | } | |
37747 | return resultobj; | |
37748 | fail: | |
37749 | { | |
37750 | if (temp3) | |
37751 | delete arg3; | |
37752 | } | |
37753 | { | |
37754 | if (temp7) | |
37755 | delete arg7; | |
37756 | } | |
37757 | { | |
37758 | if (temp9) | |
37759 | delete arg9; | |
37760 | } | |
37761 | return NULL; | |
d55e5bfc RD |
37762 | } |
37763 | ||
37764 | ||
1bd55598 RD |
37765 | SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37766 | PyObject *resultobj = 0; | |
37767 | wxGenericDirCtrl *result = 0 ; | |
37768 | ||
37769 | if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail; | |
37770 | { | |
37771 | if (!wxPyCheckForApp()) SWIG_fail; | |
37772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37773 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
37774 | wxPyEndAllowThreads(__tstate); | |
37775 | if (PyErr_Occurred()) SWIG_fail; | |
37776 | } | |
37777 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 ); | |
37778 | return resultobj; | |
37779 | fail: | |
37780 | return NULL; | |
37781 | } | |
37782 | ||
37783 | ||
37784 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37785 | PyObject *resultobj = 0; | |
37786 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37787 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37788 | int arg3 = (int) (int)-1 ; | |
37789 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
37790 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
37791 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
37792 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
37793 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
37794 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
37795 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
37796 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
37797 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
37798 | int arg9 = (int) 0 ; | |
37799 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
37800 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
37801 | bool result; | |
37802 | void *argp1 = 0 ; | |
37803 | int res1 = 0 ; | |
37804 | void *argp2 = 0 ; | |
37805 | int res2 = 0 ; | |
37806 | int val3 ; | |
37807 | int ecode3 = 0 ; | |
37808 | bool temp4 = false ; | |
37809 | wxPoint temp5 ; | |
37810 | wxSize temp6 ; | |
37811 | long val7 ; | |
37812 | int ecode7 = 0 ; | |
37813 | bool temp8 = false ; | |
37814 | int val9 ; | |
37815 | int ecode9 = 0 ; | |
37816 | bool temp10 = false ; | |
37817 | PyObject * obj0 = 0 ; | |
37818 | PyObject * obj1 = 0 ; | |
37819 | PyObject * obj2 = 0 ; | |
37820 | PyObject * obj3 = 0 ; | |
37821 | PyObject * obj4 = 0 ; | |
37822 | PyObject * obj5 = 0 ; | |
37823 | PyObject * obj6 = 0 ; | |
37824 | PyObject * obj7 = 0 ; | |
37825 | PyObject * obj8 = 0 ; | |
37826 | PyObject * obj9 = 0 ; | |
37827 | char * kwnames[] = { | |
37828 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
37829 | }; | |
37830 | ||
37831 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
37832 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37833 | if (!SWIG_IsOK(res1)) { | |
37834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37835 | } | |
37836 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37837 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
37838 | if (!SWIG_IsOK(res2)) { | |
37839 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
37840 | } | |
37841 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
37842 | if (obj2) { | |
37843 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37844 | if (!SWIG_IsOK(ecode3)) { | |
37845 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
37846 | } | |
37847 | arg3 = static_cast< int >(val3); | |
37848 | } | |
37849 | if (obj3) { | |
36ed4f51 | 37850 | { |
1bd55598 RD |
37851 | arg4 = wxString_in_helper(obj3); |
37852 | if (arg4 == NULL) SWIG_fail; | |
37853 | temp4 = true; | |
36ed4f51 | 37854 | } |
1bd55598 RD |
37855 | } |
37856 | if (obj4) { | |
36ed4f51 | 37857 | { |
1bd55598 RD |
37858 | arg5 = &temp5; |
37859 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 37860 | } |
1bd55598 RD |
37861 | } |
37862 | if (obj5) { | |
d55e5bfc | 37863 | { |
1bd55598 RD |
37864 | arg6 = &temp6; |
37865 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 37866 | } |
1bd55598 RD |
37867 | } |
37868 | if (obj6) { | |
37869 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
37870 | if (!SWIG_IsOK(ecode7)) { | |
37871 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
37872 | } | |
37873 | arg7 = static_cast< long >(val7); | |
37874 | } | |
37875 | if (obj7) { | |
d55e5bfc | 37876 | { |
1bd55598 RD |
37877 | arg8 = wxString_in_helper(obj7); |
37878 | if (arg8 == NULL) SWIG_fail; | |
37879 | temp8 = true; | |
d55e5bfc | 37880 | } |
1bd55598 RD |
37881 | } |
37882 | if (obj8) { | |
37883 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
37884 | if (!SWIG_IsOK(ecode9)) { | |
37885 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'"); | |
37886 | } | |
37887 | arg9 = static_cast< int >(val9); | |
37888 | } | |
37889 | if (obj9) { | |
36ed4f51 | 37890 | { |
1bd55598 RD |
37891 | arg10 = wxString_in_helper(obj9); |
37892 | if (arg10 == NULL) SWIG_fail; | |
37893 | temp10 = true; | |
36ed4f51 | 37894 | } |
1bd55598 RD |
37895 | } |
37896 | { | |
37897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37898 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
37899 | wxPyEndAllowThreads(__tstate); | |
37900 | if (PyErr_Occurred()) SWIG_fail; | |
37901 | } | |
37902 | { | |
37903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37904 | } | |
37905 | { | |
37906 | if (temp4) | |
37907 | delete arg4; | |
37908 | } | |
37909 | { | |
37910 | if (temp8) | |
37911 | delete arg8; | |
37912 | } | |
37913 | { | |
37914 | if (temp10) | |
37915 | delete arg10; | |
37916 | } | |
37917 | return resultobj; | |
37918 | fail: | |
37919 | { | |
37920 | if (temp4) | |
37921 | delete arg4; | |
37922 | } | |
37923 | { | |
37924 | if (temp8) | |
37925 | delete arg8; | |
37926 | } | |
37927 | { | |
37928 | if (temp10) | |
37929 | delete arg10; | |
37930 | } | |
37931 | return NULL; | |
37932 | } | |
37933 | ||
37934 | ||
37935 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37936 | PyObject *resultobj = 0; | |
37937 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37938 | wxString *arg2 = 0 ; | |
37939 | bool result; | |
37940 | void *argp1 = 0 ; | |
37941 | int res1 = 0 ; | |
37942 | bool temp2 = false ; | |
37943 | PyObject * obj0 = 0 ; | |
37944 | PyObject * obj1 = 0 ; | |
37945 | char * kwnames[] = { | |
37946 | (char *) "self",(char *) "path", NULL | |
37947 | }; | |
37948 | ||
37949 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
37950 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37951 | if (!SWIG_IsOK(res1)) { | |
37952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37953 | } | |
37954 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37955 | { | |
37956 | arg2 = wxString_in_helper(obj1); | |
37957 | if (arg2 == NULL) SWIG_fail; | |
37958 | temp2 = true; | |
37959 | } | |
37960 | { | |
37961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37962 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
37963 | wxPyEndAllowThreads(__tstate); | |
37964 | if (PyErr_Occurred()) SWIG_fail; | |
37965 | } | |
37966 | { | |
37967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37968 | } | |
37969 | { | |
37970 | if (temp2) | |
37971 | delete arg2; | |
37972 | } | |
37973 | return resultobj; | |
37974 | fail: | |
37975 | { | |
37976 | if (temp2) | |
37977 | delete arg2; | |
37978 | } | |
37979 | return NULL; | |
d55e5bfc RD |
37980 | } |
37981 | ||
37982 | ||
704eda0c RD |
37983 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
37984 | PyObject *resultobj = 0; | |
37985 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37986 | wxString *arg2 = 0 ; | |
37987 | bool result; | |
37988 | void *argp1 = 0 ; | |
37989 | int res1 = 0 ; | |
37990 | bool temp2 = false ; | |
37991 | PyObject * obj0 = 0 ; | |
37992 | PyObject * obj1 = 0 ; | |
37993 | char * kwnames[] = { | |
37994 | (char *) "self",(char *) "path", NULL | |
37995 | }; | |
37996 | ||
37997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail; | |
37998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37999 | if (!SWIG_IsOK(res1)) { | |
38000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38001 | } | |
38002 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38003 | { | |
38004 | arg2 = wxString_in_helper(obj1); | |
38005 | if (arg2 == NULL) SWIG_fail; | |
38006 | temp2 = true; | |
38007 | } | |
38008 | { | |
38009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38010 | result = (bool)(arg1)->CollapsePath((wxString const &)*arg2); | |
38011 | wxPyEndAllowThreads(__tstate); | |
38012 | if (PyErr_Occurred()) SWIG_fail; | |
38013 | } | |
38014 | { | |
38015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38016 | } | |
38017 | { | |
38018 | if (temp2) | |
38019 | delete arg2; | |
38020 | } | |
38021 | return resultobj; | |
38022 | fail: | |
38023 | { | |
38024 | if (temp2) | |
38025 | delete arg2; | |
38026 | } | |
38027 | return NULL; | |
38028 | } | |
38029 | ||
38030 | ||
1bd55598 RD |
38031 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38032 | PyObject *resultobj = 0; | |
38033 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38034 | wxString result; | |
38035 | void *argp1 = 0 ; | |
38036 | int res1 = 0 ; | |
38037 | PyObject *swig_obj[1] ; | |
38038 | ||
38039 | if (!args) SWIG_fail; | |
38040 | swig_obj[0] = args; | |
38041 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38042 | if (!SWIG_IsOK(res1)) { | |
38043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38044 | } | |
38045 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38046 | { | |
38047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38048 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
38049 | wxPyEndAllowThreads(__tstate); | |
38050 | if (PyErr_Occurred()) SWIG_fail; | |
38051 | } | |
38052 | { | |
38053 | #if wxUSE_UNICODE | |
38054 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
38055 | #else | |
38056 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
38057 | #endif | |
38058 | } | |
38059 | return resultobj; | |
38060 | fail: | |
38061 | return NULL; | |
38062 | } | |
38063 | ||
38064 | ||
38065 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38066 | PyObject *resultobj = 0; | |
38067 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38068 | wxString *arg2 = 0 ; | |
38069 | void *argp1 = 0 ; | |
38070 | int res1 = 0 ; | |
38071 | bool temp2 = false ; | |
38072 | PyObject * obj0 = 0 ; | |
38073 | PyObject * obj1 = 0 ; | |
38074 | char * kwnames[] = { | |
38075 | (char *) "self",(char *) "path", NULL | |
38076 | }; | |
38077 | ||
38078 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
38079 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38080 | if (!SWIG_IsOK(res1)) { | |
38081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38082 | } | |
38083 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38084 | { | |
38085 | arg2 = wxString_in_helper(obj1); | |
38086 | if (arg2 == NULL) SWIG_fail; | |
38087 | temp2 = true; | |
38088 | } | |
38089 | { | |
38090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38091 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
38092 | wxPyEndAllowThreads(__tstate); | |
38093 | if (PyErr_Occurred()) SWIG_fail; | |
38094 | } | |
38095 | resultobj = SWIG_Py_Void(); | |
38096 | { | |
38097 | if (temp2) | |
38098 | delete arg2; | |
38099 | } | |
38100 | return resultobj; | |
38101 | fail: | |
38102 | { | |
38103 | if (temp2) | |
38104 | delete arg2; | |
38105 | } | |
38106 | return NULL; | |
d55e5bfc RD |
38107 | } |
38108 | ||
38109 | ||
1bd55598 RD |
38110 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38111 | PyObject *resultobj = 0; | |
38112 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38113 | wxString result; | |
38114 | void *argp1 = 0 ; | |
38115 | int res1 = 0 ; | |
38116 | PyObject *swig_obj[1] ; | |
38117 | ||
38118 | if (!args) SWIG_fail; | |
38119 | swig_obj[0] = args; | |
38120 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38121 | if (!SWIG_IsOK(res1)) { | |
38122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38123 | } | |
38124 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38125 | { | |
38126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38127 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
38128 | wxPyEndAllowThreads(__tstate); | |
38129 | if (PyErr_Occurred()) SWIG_fail; | |
38130 | } | |
38131 | { | |
38132 | #if wxUSE_UNICODE | |
38133 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
38134 | #else | |
38135 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
38136 | #endif | |
38137 | } | |
38138 | return resultobj; | |
38139 | fail: | |
38140 | return NULL; | |
d55e5bfc RD |
38141 | } |
38142 | ||
38143 | ||
1bd55598 RD |
38144 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38145 | PyObject *resultobj = 0; | |
38146 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38147 | wxString result; | |
38148 | void *argp1 = 0 ; | |
38149 | int res1 = 0 ; | |
38150 | PyObject *swig_obj[1] ; | |
38151 | ||
38152 | if (!args) SWIG_fail; | |
38153 | swig_obj[0] = args; | |
38154 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38155 | if (!SWIG_IsOK(res1)) { | |
38156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38157 | } | |
38158 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38159 | { | |
38160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38161 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
38162 | wxPyEndAllowThreads(__tstate); | |
38163 | if (PyErr_Occurred()) SWIG_fail; | |
38164 | } | |
38165 | { | |
38166 | #if wxUSE_UNICODE | |
38167 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
38168 | #else | |
38169 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
38170 | #endif | |
38171 | } | |
38172 | return resultobj; | |
38173 | fail: | |
38174 | return NULL; | |
38175 | } | |
38176 | ||
38177 | ||
38178 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38179 | PyObject *resultobj = 0; | |
38180 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38181 | wxString *arg2 = 0 ; | |
38182 | void *argp1 = 0 ; | |
38183 | int res1 = 0 ; | |
38184 | bool temp2 = false ; | |
38185 | PyObject * obj0 = 0 ; | |
38186 | PyObject * obj1 = 0 ; | |
38187 | char * kwnames[] = { | |
38188 | (char *) "self",(char *) "path", NULL | |
38189 | }; | |
38190 | ||
38191 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
38192 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38193 | if (!SWIG_IsOK(res1)) { | |
38194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38195 | } | |
38196 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38197 | { | |
38198 | arg2 = wxString_in_helper(obj1); | |
38199 | if (arg2 == NULL) SWIG_fail; | |
38200 | temp2 = true; | |
38201 | } | |
38202 | { | |
38203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38204 | (arg1)->SetPath((wxString const &)*arg2); | |
38205 | wxPyEndAllowThreads(__tstate); | |
38206 | if (PyErr_Occurred()) SWIG_fail; | |
38207 | } | |
38208 | resultobj = SWIG_Py_Void(); | |
38209 | { | |
38210 | if (temp2) | |
38211 | delete arg2; | |
38212 | } | |
38213 | return resultobj; | |
38214 | fail: | |
38215 | { | |
38216 | if (temp2) | |
38217 | delete arg2; | |
38218 | } | |
38219 | return NULL; | |
38220 | } | |
38221 | ||
38222 | ||
38223 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38224 | PyObject *resultobj = 0; | |
38225 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38226 | bool arg2 ; | |
38227 | void *argp1 = 0 ; | |
38228 | int res1 = 0 ; | |
38229 | bool val2 ; | |
38230 | int ecode2 = 0 ; | |
38231 | PyObject * obj0 = 0 ; | |
38232 | PyObject * obj1 = 0 ; | |
38233 | char * kwnames[] = { | |
38234 | (char *) "self",(char *) "show", NULL | |
38235 | }; | |
38236 | ||
38237 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail; | |
38238 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38239 | if (!SWIG_IsOK(res1)) { | |
38240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38241 | } | |
38242 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38243 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
38244 | if (!SWIG_IsOK(ecode2)) { | |
38245 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'"); | |
38246 | } | |
38247 | arg2 = static_cast< bool >(val2); | |
38248 | { | |
38249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38250 | (arg1)->ShowHidden(arg2); | |
38251 | wxPyEndAllowThreads(__tstate); | |
38252 | if (PyErr_Occurred()) SWIG_fail; | |
38253 | } | |
38254 | resultobj = SWIG_Py_Void(); | |
38255 | return resultobj; | |
38256 | fail: | |
38257 | return NULL; | |
d55e5bfc RD |
38258 | } |
38259 | ||
38260 | ||
1bd55598 RD |
38261 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38262 | PyObject *resultobj = 0; | |
38263 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38264 | bool result; | |
38265 | void *argp1 = 0 ; | |
38266 | int res1 = 0 ; | |
38267 | PyObject *swig_obj[1] ; | |
38268 | ||
38269 | if (!args) SWIG_fail; | |
38270 | swig_obj[0] = args; | |
38271 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38272 | if (!SWIG_IsOK(res1)) { | |
38273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38274 | } | |
38275 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38276 | { | |
38277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38278 | result = (bool)(arg1)->GetShowHidden(); | |
38279 | wxPyEndAllowThreads(__tstate); | |
38280 | if (PyErr_Occurred()) SWIG_fail; | |
38281 | } | |
38282 | { | |
38283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38284 | } | |
38285 | return resultobj; | |
38286 | fail: | |
38287 | return NULL; | |
d55e5bfc RD |
38288 | } |
38289 | ||
38290 | ||
1bd55598 RD |
38291 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38292 | PyObject *resultobj = 0; | |
38293 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38294 | wxString result; | |
38295 | void *argp1 = 0 ; | |
38296 | int res1 = 0 ; | |
38297 | PyObject *swig_obj[1] ; | |
38298 | ||
38299 | if (!args) SWIG_fail; | |
38300 | swig_obj[0] = args; | |
38301 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38302 | if (!SWIG_IsOK(res1)) { | |
38303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38304 | } | |
38305 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38306 | { | |
38307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38308 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
38309 | wxPyEndAllowThreads(__tstate); | |
38310 | if (PyErr_Occurred()) SWIG_fail; | |
38311 | } | |
38312 | { | |
38313 | #if wxUSE_UNICODE | |
38314 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
38315 | #else | |
38316 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
38317 | #endif | |
38318 | } | |
38319 | return resultobj; | |
38320 | fail: | |
38321 | return NULL; | |
38322 | } | |
38323 | ||
38324 | ||
38325 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38326 | PyObject *resultobj = 0; | |
38327 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38328 | wxString *arg2 = 0 ; | |
38329 | void *argp1 = 0 ; | |
38330 | int res1 = 0 ; | |
38331 | bool temp2 = false ; | |
38332 | PyObject * obj0 = 0 ; | |
38333 | PyObject * obj1 = 0 ; | |
38334 | char * kwnames[] = { | |
38335 | (char *) "self",(char *) "filter", NULL | |
38336 | }; | |
38337 | ||
38338 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail; | |
38339 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38340 | if (!SWIG_IsOK(res1)) { | |
38341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38342 | } | |
38343 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38344 | { | |
38345 | arg2 = wxString_in_helper(obj1); | |
38346 | if (arg2 == NULL) SWIG_fail; | |
38347 | temp2 = true; | |
38348 | } | |
38349 | { | |
38350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38351 | (arg1)->SetFilter((wxString const &)*arg2); | |
38352 | wxPyEndAllowThreads(__tstate); | |
38353 | if (PyErr_Occurred()) SWIG_fail; | |
38354 | } | |
38355 | resultobj = SWIG_Py_Void(); | |
38356 | { | |
38357 | if (temp2) | |
38358 | delete arg2; | |
38359 | } | |
38360 | return resultobj; | |
38361 | fail: | |
38362 | { | |
38363 | if (temp2) | |
38364 | delete arg2; | |
38365 | } | |
38366 | return NULL; | |
d55e5bfc RD |
38367 | } |
38368 | ||
38369 | ||
1bd55598 RD |
38370 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38371 | PyObject *resultobj = 0; | |
38372 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38373 | int result; | |
38374 | void *argp1 = 0 ; | |
38375 | int res1 = 0 ; | |
38376 | PyObject *swig_obj[1] ; | |
38377 | ||
38378 | if (!args) SWIG_fail; | |
38379 | swig_obj[0] = args; | |
38380 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38381 | if (!SWIG_IsOK(res1)) { | |
38382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38383 | } | |
38384 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38385 | { | |
38386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38387 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
38388 | wxPyEndAllowThreads(__tstate); | |
38389 | if (PyErr_Occurred()) SWIG_fail; | |
38390 | } | |
38391 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
38392 | return resultobj; | |
38393 | fail: | |
38394 | return NULL; | |
38395 | } | |
38396 | ||
38397 | ||
38398 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38399 | PyObject *resultobj = 0; | |
38400 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38401 | int arg2 ; | |
38402 | void *argp1 = 0 ; | |
38403 | int res1 = 0 ; | |
38404 | int val2 ; | |
38405 | int ecode2 = 0 ; | |
38406 | PyObject * obj0 = 0 ; | |
38407 | PyObject * obj1 = 0 ; | |
38408 | char * kwnames[] = { | |
38409 | (char *) "self",(char *) "n", NULL | |
38410 | }; | |
38411 | ||
38412 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
38413 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38414 | if (!SWIG_IsOK(res1)) { | |
38415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38416 | } | |
38417 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38418 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38419 | if (!SWIG_IsOK(ecode2)) { | |
38420 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'"); | |
38421 | } | |
38422 | arg2 = static_cast< int >(val2); | |
38423 | { | |
38424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38425 | (arg1)->SetFilterIndex(arg2); | |
38426 | wxPyEndAllowThreads(__tstate); | |
38427 | if (PyErr_Occurred()) SWIG_fail; | |
38428 | } | |
38429 | resultobj = SWIG_Py_Void(); | |
38430 | return resultobj; | |
38431 | fail: | |
38432 | return NULL; | |
d55e5bfc RD |
38433 | } |
38434 | ||
38435 | ||
1bd55598 RD |
38436 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38437 | PyObject *resultobj = 0; | |
38438 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38439 | wxTreeItemId result; | |
38440 | void *argp1 = 0 ; | |
38441 | int res1 = 0 ; | |
38442 | PyObject *swig_obj[1] ; | |
38443 | ||
38444 | if (!args) SWIG_fail; | |
38445 | swig_obj[0] = args; | |
38446 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38447 | if (!SWIG_IsOK(res1)) { | |
38448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38449 | } | |
38450 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38451 | { | |
38452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38453 | result = (arg1)->GetRootId(); | |
38454 | wxPyEndAllowThreads(__tstate); | |
38455 | if (PyErr_Occurred()) SWIG_fail; | |
38456 | } | |
38457 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
38458 | return resultobj; | |
38459 | fail: | |
38460 | return NULL; | |
d55e5bfc RD |
38461 | } |
38462 | ||
38463 | ||
1bd55598 RD |
38464 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38465 | PyObject *resultobj = 0; | |
38466 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38467 | wxPyTreeCtrl *result = 0 ; | |
38468 | void *argp1 = 0 ; | |
38469 | int res1 = 0 ; | |
38470 | PyObject *swig_obj[1] ; | |
38471 | ||
38472 | if (!args) SWIG_fail; | |
38473 | swig_obj[0] = args; | |
38474 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38475 | if (!SWIG_IsOK(res1)) { | |
38476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38477 | } | |
38478 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38479 | { | |
38480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38481 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
38482 | wxPyEndAllowThreads(__tstate); | |
38483 | if (PyErr_Occurred()) SWIG_fail; | |
38484 | } | |
38485 | { | |
38486 | resultobj = wxPyMake_wxObject(result, 0); | |
38487 | } | |
38488 | return resultobj; | |
38489 | fail: | |
38490 | return NULL; | |
d55e5bfc RD |
38491 | } |
38492 | ||
38493 | ||
1bd55598 RD |
38494 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38495 | PyObject *resultobj = 0; | |
38496 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38497 | wxDirFilterListCtrl *result = 0 ; | |
38498 | void *argp1 = 0 ; | |
38499 | int res1 = 0 ; | |
38500 | PyObject *swig_obj[1] ; | |
38501 | ||
38502 | if (!args) SWIG_fail; | |
38503 | swig_obj[0] = args; | |
38504 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38505 | if (!SWIG_IsOK(res1)) { | |
38506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38507 | } | |
38508 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38509 | { | |
38510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38511 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
38512 | wxPyEndAllowThreads(__tstate); | |
38513 | if (PyErr_Occurred()) SWIG_fail; | |
38514 | } | |
38515 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
38516 | return resultobj; | |
38517 | fail: | |
38518 | return NULL; | |
38519 | } | |
38520 | ||
38521 | ||
38522 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38523 | PyObject *resultobj = 0; | |
38524 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38525 | wxTreeItemId arg2 ; | |
38526 | wxString *arg3 = 0 ; | |
38527 | bool *arg4 = 0 ; | |
38528 | wxTreeItemId result; | |
38529 | void *argp1 = 0 ; | |
38530 | int res1 = 0 ; | |
38531 | void *argp2 ; | |
38532 | int res2 = 0 ; | |
38533 | bool temp3 = false ; | |
38534 | bool temp4 ; | |
38535 | int res4 = SWIG_TMPOBJ ; | |
38536 | PyObject * obj0 = 0 ; | |
38537 | PyObject * obj1 = 0 ; | |
38538 | PyObject * obj2 = 0 ; | |
38539 | char * kwnames[] = { | |
38540 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
38541 | }; | |
38542 | ||
38543 | arg4 = &temp4; | |
38544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38546 | if (!SWIG_IsOK(res1)) { | |
38547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38548 | } | |
38549 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38550 | { | |
38551 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
38552 | if (!SWIG_IsOK(res2)) { | |
38553 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'"); | |
38554 | } | |
38555 | if (!argp2) { | |
38556 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'"); | |
38557 | } else { | |
38558 | wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2); | |
38559 | arg2 = *temp; | |
38560 | if (SWIG_IsNewObj(res2)) delete temp; | |
d55e5bfc | 38561 | } |
1bd55598 RD |
38562 | } |
38563 | { | |
38564 | arg3 = wxString_in_helper(obj2); | |
38565 | if (arg3 == NULL) SWIG_fail; | |
38566 | temp3 = true; | |
38567 | } | |
38568 | { | |
38569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38570 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
38571 | wxPyEndAllowThreads(__tstate); | |
38572 | if (PyErr_Occurred()) SWIG_fail; | |
38573 | } | |
38574 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
38575 | if (SWIG_IsTmpObj(res4)) { | |
38576 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4))); | |
38577 | } else { | |
38578 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38579 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags)); | |
38580 | } | |
38581 | { | |
38582 | if (temp3) | |
38583 | delete arg3; | |
38584 | } | |
38585 | return resultobj; | |
38586 | fail: | |
38587 | { | |
38588 | if (temp3) | |
38589 | delete arg3; | |
38590 | } | |
38591 | return NULL; | |
d55e5bfc RD |
38592 | } |
38593 | ||
38594 | ||
1bd55598 RD |
38595 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38596 | PyObject *resultobj = 0; | |
38597 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38598 | void *argp1 = 0 ; | |
38599 | int res1 = 0 ; | |
38600 | PyObject *swig_obj[1] ; | |
38601 | ||
38602 | if (!args) SWIG_fail; | |
38603 | swig_obj[0] = args; | |
38604 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38605 | if (!SWIG_IsOK(res1)) { | |
38606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38607 | } | |
38608 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38609 | { | |
38610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38611 | (arg1)->DoResize(); | |
38612 | wxPyEndAllowThreads(__tstate); | |
38613 | if (PyErr_Occurred()) SWIG_fail; | |
38614 | } | |
38615 | resultobj = SWIG_Py_Void(); | |
38616 | return resultobj; | |
38617 | fail: | |
38618 | return NULL; | |
38619 | } | |
38620 | ||
38621 | ||
38622 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38623 | PyObject *resultobj = 0; | |
38624 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38625 | void *argp1 = 0 ; | |
38626 | int res1 = 0 ; | |
38627 | PyObject *swig_obj[1] ; | |
38628 | ||
38629 | if (!args) SWIG_fail; | |
38630 | swig_obj[0] = args; | |
38631 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38632 | if (!SWIG_IsOK(res1)) { | |
38633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38634 | } | |
38635 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38636 | { | |
38637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38638 | (arg1)->ReCreateTree(); | |
38639 | wxPyEndAllowThreads(__tstate); | |
38640 | if (PyErr_Occurred()) SWIG_fail; | |
38641 | } | |
38642 | resultobj = SWIG_Py_Void(); | |
38643 | return resultobj; | |
38644 | fail: | |
38645 | return NULL; | |
38646 | } | |
38647 | ||
38648 | ||
38649 | SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38650 | PyObject *obj; | |
38651 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38652 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj)); | |
38653 | return SWIG_Py_Void(); | |
38654 | } | |
38655 | ||
38656 | SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38657 | return SWIG_Python_InitShadowInstance(args); | |
38658 | } | |
38659 | ||
38660 | SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38661 | PyObject *resultobj = 0; | |
38662 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38663 | int arg2 = (int) (int)-1 ; | |
38664 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
38665 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
38666 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
38667 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
38668 | long arg5 = (long) 0 ; | |
38669 | wxDirFilterListCtrl *result = 0 ; | |
38670 | void *argp1 = 0 ; | |
38671 | int res1 = 0 ; | |
38672 | int val2 ; | |
38673 | int ecode2 = 0 ; | |
38674 | wxPoint temp3 ; | |
38675 | wxSize temp4 ; | |
38676 | long val5 ; | |
38677 | int ecode5 = 0 ; | |
38678 | PyObject * obj0 = 0 ; | |
38679 | PyObject * obj1 = 0 ; | |
38680 | PyObject * obj2 = 0 ; | |
38681 | PyObject * obj3 = 0 ; | |
38682 | PyObject * obj4 = 0 ; | |
38683 | char * kwnames[] = { | |
38684 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
38685 | }; | |
38686 | ||
38687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38688 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38689 | if (!SWIG_IsOK(res1)) { | |
38690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38691 | } | |
38692 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38693 | if (obj1) { | |
38694 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38695 | if (!SWIG_IsOK(ecode2)) { | |
38696 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'"); | |
38697 | } | |
38698 | arg2 = static_cast< int >(val2); | |
38699 | } | |
38700 | if (obj2) { | |
d55e5bfc | 38701 | { |
1bd55598 RD |
38702 | arg3 = &temp3; |
38703 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 38704 | } |
1bd55598 RD |
38705 | } |
38706 | if (obj3) { | |
d55e5bfc | 38707 | { |
1bd55598 RD |
38708 | arg4 = &temp4; |
38709 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 38710 | } |
1bd55598 RD |
38711 | } |
38712 | if (obj4) { | |
38713 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
38714 | if (!SWIG_IsOK(ecode5)) { | |
38715 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'"); | |
38716 | } | |
38717 | arg5 = static_cast< long >(val5); | |
38718 | } | |
38719 | { | |
38720 | if (!wxPyCheckForApp()) SWIG_fail; | |
38721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38722 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
38723 | wxPyEndAllowThreads(__tstate); | |
38724 | if (PyErr_Occurred()) SWIG_fail; | |
38725 | } | |
38726 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 ); | |
38727 | return resultobj; | |
38728 | fail: | |
38729 | return NULL; | |
d55e5bfc RD |
38730 | } |
38731 | ||
38732 | ||
1bd55598 RD |
38733 | SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38734 | PyObject *resultobj = 0; | |
38735 | wxDirFilterListCtrl *result = 0 ; | |
38736 | ||
38737 | if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail; | |
38738 | { | |
38739 | if (!wxPyCheckForApp()) SWIG_fail; | |
38740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38741 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
38742 | wxPyEndAllowThreads(__tstate); | |
38743 | if (PyErr_Occurred()) SWIG_fail; | |
38744 | } | |
38745 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 ); | |
38746 | return resultobj; | |
38747 | fail: | |
38748 | return NULL; | |
38749 | } | |
38750 | ||
38751 | ||
38752 | SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38753 | PyObject *resultobj = 0; | |
38754 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
38755 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
38756 | int arg3 = (int) (int)-1 ; | |
38757 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
38758 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
38759 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
38760 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
38761 | long arg6 = (long) 0 ; | |
38762 | bool result; | |
38763 | void *argp1 = 0 ; | |
38764 | int res1 = 0 ; | |
38765 | void *argp2 = 0 ; | |
38766 | int res2 = 0 ; | |
38767 | int val3 ; | |
38768 | int ecode3 = 0 ; | |
38769 | wxPoint temp4 ; | |
38770 | wxSize temp5 ; | |
38771 | long val6 ; | |
38772 | int ecode6 = 0 ; | |
38773 | PyObject * obj0 = 0 ; | |
38774 | PyObject * obj1 = 0 ; | |
38775 | PyObject * obj2 = 0 ; | |
38776 | PyObject * obj3 = 0 ; | |
38777 | PyObject * obj4 = 0 ; | |
38778 | PyObject * obj5 = 0 ; | |
38779 | char * kwnames[] = { | |
38780 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
38781 | }; | |
38782 | ||
38783 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
38784 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
38785 | if (!SWIG_IsOK(res1)) { | |
38786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'"); | |
38787 | } | |
38788 | arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1); | |
38789 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38790 | if (!SWIG_IsOK(res2)) { | |
38791 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'"); | |
38792 | } | |
38793 | arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2); | |
38794 | if (obj2) { | |
38795 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38796 | if (!SWIG_IsOK(ecode3)) { | |
38797 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
38798 | } | |
38799 | arg3 = static_cast< int >(val3); | |
38800 | } | |
38801 | if (obj3) { | |
36ed4f51 | 38802 | { |
1bd55598 RD |
38803 | arg4 = &temp4; |
38804 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 38805 | } |
1bd55598 RD |
38806 | } |
38807 | if (obj4) { | |
36ed4f51 | 38808 | { |
1bd55598 RD |
38809 | arg5 = &temp5; |
38810 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 38811 | } |
1bd55598 RD |
38812 | } |
38813 | if (obj5) { | |
38814 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
38815 | if (!SWIG_IsOK(ecode6)) { | |
38816 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
38817 | } | |
38818 | arg6 = static_cast< long >(val6); | |
38819 | } | |
38820 | { | |
38821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38822 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
38823 | wxPyEndAllowThreads(__tstate); | |
38824 | if (PyErr_Occurred()) SWIG_fail; | |
38825 | } | |
38826 | { | |
38827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38828 | } | |
38829 | return resultobj; | |
38830 | fail: | |
38831 | return NULL; | |
38832 | } | |
38833 | ||
38834 | ||
38835 | SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38836 | PyObject *resultobj = 0; | |
38837 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
38838 | wxString *arg2 = 0 ; | |
38839 | int arg3 ; | |
38840 | void *argp1 = 0 ; | |
38841 | int res1 = 0 ; | |
38842 | bool temp2 = false ; | |
38843 | int val3 ; | |
38844 | int ecode3 = 0 ; | |
38845 | PyObject * obj0 = 0 ; | |
38846 | PyObject * obj1 = 0 ; | |
38847 | PyObject * obj2 = 0 ; | |
38848 | char * kwnames[] = { | |
38849 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
38850 | }; | |
38851 | ||
38852 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38853 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
38854 | if (!SWIG_IsOK(res1)) { | |
38855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'"); | |
38856 | } | |
38857 | arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1); | |
38858 | { | |
38859 | arg2 = wxString_in_helper(obj1); | |
38860 | if (arg2 == NULL) SWIG_fail; | |
38861 | temp2 = true; | |
38862 | } | |
38863 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38864 | if (!SWIG_IsOK(ecode3)) { | |
38865 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'"); | |
38866 | } | |
38867 | arg3 = static_cast< int >(val3); | |
38868 | { | |
38869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38870 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
38871 | wxPyEndAllowThreads(__tstate); | |
38872 | if (PyErr_Occurred()) SWIG_fail; | |
38873 | } | |
38874 | resultobj = SWIG_Py_Void(); | |
38875 | { | |
38876 | if (temp2) | |
38877 | delete arg2; | |
38878 | } | |
38879 | return resultobj; | |
38880 | fail: | |
38881 | { | |
38882 | if (temp2) | |
38883 | delete arg2; | |
38884 | } | |
38885 | return NULL; | |
38886 | } | |
38887 | ||
38888 | ||
38889 | SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38890 | PyObject *obj; | |
38891 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38892 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj)); | |
38893 | return SWIG_Py_Void(); | |
38894 | } | |
38895 | ||
38896 | SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38897 | return SWIG_Python_InitShadowInstance(args); | |
38898 | } | |
38899 | ||
38900 | SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38901 | PyObject *resultobj = 0; | |
38902 | wxWindow *arg1 = (wxWindow *) 0 ; | |
38903 | int arg2 = (int) (int)-1 ; | |
38904 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
38905 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
38906 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
38907 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
38908 | long arg5 = (long) 0 ; | |
38909 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
38910 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
38911 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
38912 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
38913 | wxPyControl *result = 0 ; | |
38914 | void *argp1 = 0 ; | |
38915 | int res1 = 0 ; | |
38916 | int val2 ; | |
38917 | int ecode2 = 0 ; | |
38918 | wxPoint temp3 ; | |
38919 | wxSize temp4 ; | |
38920 | long val5 ; | |
38921 | int ecode5 = 0 ; | |
38922 | void *argp6 = 0 ; | |
38923 | int res6 = 0 ; | |
38924 | bool temp7 = false ; | |
38925 | PyObject * obj0 = 0 ; | |
38926 | PyObject * obj1 = 0 ; | |
38927 | PyObject * obj2 = 0 ; | |
38928 | PyObject * obj3 = 0 ; | |
38929 | PyObject * obj4 = 0 ; | |
38930 | PyObject * obj5 = 0 ; | |
38931 | PyObject * obj6 = 0 ; | |
38932 | char * kwnames[] = { | |
38933 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
38934 | }; | |
38935 | ||
38936 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
38937 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
38938 | if (!SWIG_IsOK(res1)) { | |
38939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
38940 | } | |
38941 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
38942 | if (obj1) { | |
38943 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38944 | if (!SWIG_IsOK(ecode2)) { | |
38945 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'"); | |
38946 | } | |
38947 | arg2 = static_cast< int >(val2); | |
38948 | } | |
38949 | if (obj2) { | |
d55e5bfc | 38950 | { |
1bd55598 RD |
38951 | arg3 = &temp3; |
38952 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 38953 | } |
1bd55598 RD |
38954 | } |
38955 | if (obj3) { | |
d55e5bfc | 38956 | { |
1bd55598 RD |
38957 | arg4 = &temp4; |
38958 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 38959 | } |
1bd55598 RD |
38960 | } |
38961 | if (obj4) { | |
38962 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
38963 | if (!SWIG_IsOK(ecode5)) { | |
38964 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'"); | |
38965 | } | |
38966 | arg5 = static_cast< long >(val5); | |
38967 | } | |
38968 | if (obj5) { | |
38969 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
38970 | if (!SWIG_IsOK(res6)) { | |
38971 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
f20a2e1f | 38972 | } |
1bd55598 RD |
38973 | if (!argp6) { |
38974 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
f20a2e1f | 38975 | } |
1bd55598 RD |
38976 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
38977 | } | |
38978 | if (obj6) { | |
f20a2e1f | 38979 | { |
1bd55598 RD |
38980 | arg7 = wxString_in_helper(obj6); |
38981 | if (arg7 == NULL) SWIG_fail; | |
38982 | temp7 = true; | |
f20a2e1f | 38983 | } |
1bd55598 RD |
38984 | } |
38985 | { | |
38986 | if (!wxPyCheckForApp()) SWIG_fail; | |
38987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38988 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
38989 | wxPyEndAllowThreads(__tstate); | |
38990 | if (PyErr_Occurred()) SWIG_fail; | |
38991 | } | |
38992 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 ); | |
38993 | { | |
38994 | if (temp7) | |
38995 | delete arg7; | |
38996 | } | |
38997 | return resultobj; | |
38998 | fail: | |
38999 | { | |
39000 | if (temp7) | |
39001 | delete arg7; | |
39002 | } | |
39003 | return NULL; | |
d55e5bfc RD |
39004 | } |
39005 | ||
39006 | ||
1bd55598 RD |
39007 | SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39008 | PyObject *resultobj = 0; | |
39009 | wxPyControl *result = 0 ; | |
39010 | ||
39011 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail; | |
39012 | { | |
39013 | if (!wxPyCheckForApp()) SWIG_fail; | |
39014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39015 | result = (wxPyControl *)new wxPyControl(); | |
39016 | wxPyEndAllowThreads(__tstate); | |
39017 | if (PyErr_Occurred()) SWIG_fail; | |
39018 | } | |
39019 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 ); | |
39020 | return resultobj; | |
39021 | fail: | |
39022 | return NULL; | |
39023 | } | |
39024 | ||
39025 | ||
39026 | SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39027 | PyObject *resultobj = 0; | |
39028 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39029 | PyObject *arg2 = (PyObject *) 0 ; | |
39030 | PyObject *arg3 = (PyObject *) 0 ; | |
39031 | void *argp1 = 0 ; | |
39032 | int res1 = 0 ; | |
39033 | PyObject * obj0 = 0 ; | |
39034 | PyObject * obj1 = 0 ; | |
39035 | PyObject * obj2 = 0 ; | |
39036 | char * kwnames[] = { | |
39037 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
39038 | }; | |
39039 | ||
39040 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
39041 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39042 | if (!SWIG_IsOK(res1)) { | |
39043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39044 | } | |
39045 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39046 | arg2 = obj1; | |
39047 | arg3 = obj2; | |
39048 | { | |
39049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39050 | (arg1)->_setCallbackInfo(arg2,arg3); | |
39051 | wxPyEndAllowThreads(__tstate); | |
39052 | if (PyErr_Occurred()) SWIG_fail; | |
39053 | } | |
39054 | resultobj = SWIG_Py_Void(); | |
39055 | return resultobj; | |
39056 | fail: | |
39057 | return NULL; | |
39058 | } | |
39059 | ||
39060 | ||
1bd55598 RD |
39061 | SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
39062 | PyObject *resultobj = 0; | |
39063 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39064 | wxDC *arg2 = (wxDC *) 0 ; | |
39065 | bool result; | |
39066 | void *argp1 = 0 ; | |
39067 | int res1 = 0 ; | |
39068 | void *argp2 = 0 ; | |
39069 | int res2 = 0 ; | |
39070 | PyObject * obj0 = 0 ; | |
39071 | PyObject * obj1 = 0 ; | |
39072 | char * kwnames[] = { | |
39073 | (char *) "self",(char *) "dc", NULL | |
39074 | }; | |
39075 | ||
39076 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
39077 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39078 | if (!SWIG_IsOK(res1)) { | |
39079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39080 | } | |
39081 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39082 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
39083 | if (!SWIG_IsOK(res2)) { | |
39084 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
39085 | } | |
39086 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
39087 | { | |
39088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39089 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
39090 | wxPyEndAllowThreads(__tstate); | |
39091 | if (PyErr_Occurred()) SWIG_fail; | |
39092 | } | |
39093 | { | |
39094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39095 | } | |
39096 | return resultobj; | |
39097 | fail: | |
39098 | return NULL; | |
39099 | } | |
39100 | ||
39101 | ||
39102 | SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39103 | PyObject *resultobj = 0; | |
39104 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39105 | int arg2 ; | |
39106 | int arg3 ; | |
39107 | int arg4 ; | |
39108 | int arg5 ; | |
39109 | void *argp1 = 0 ; | |
39110 | int res1 = 0 ; | |
39111 | int val2 ; | |
39112 | int ecode2 = 0 ; | |
39113 | int val3 ; | |
39114 | int ecode3 = 0 ; | |
39115 | int val4 ; | |
39116 | int ecode4 = 0 ; | |
39117 | int val5 ; | |
39118 | int ecode5 = 0 ; | |
39119 | PyObject * obj0 = 0 ; | |
39120 | PyObject * obj1 = 0 ; | |
39121 | PyObject * obj2 = 0 ; | |
39122 | PyObject * obj3 = 0 ; | |
39123 | PyObject * obj4 = 0 ; | |
39124 | char * kwnames[] = { | |
39125 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
39126 | }; | |
39127 | ||
39128 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
39129 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39130 | if (!SWIG_IsOK(res1)) { | |
39131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39132 | } | |
39133 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39134 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39135 | if (!SWIG_IsOK(ecode2)) { | |
39136 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
39137 | } | |
39138 | arg2 = static_cast< int >(val2); | |
39139 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
39140 | if (!SWIG_IsOK(ecode3)) { | |
39141 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
39142 | } | |
39143 | arg3 = static_cast< int >(val3); | |
39144 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
39145 | if (!SWIG_IsOK(ecode4)) { | |
39146 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
39147 | } | |
39148 | arg4 = static_cast< int >(val4); | |
39149 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
39150 | if (!SWIG_IsOK(ecode5)) { | |
39151 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
39152 | } | |
39153 | arg5 = static_cast< int >(val5); | |
39154 | { | |
39155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39156 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
39157 | wxPyEndAllowThreads(__tstate); | |
39158 | if (PyErr_Occurred()) SWIG_fail; | |
39159 | } | |
39160 | resultobj = SWIG_Py_Void(); | |
39161 | return resultobj; | |
39162 | fail: | |
39163 | return NULL; | |
39164 | } | |
39165 | ||
39166 | ||
39167 | SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39168 | PyObject *resultobj = 0; | |
39169 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39170 | int arg2 ; | |
39171 | int arg3 ; | |
39172 | int arg4 ; | |
39173 | int arg5 ; | |
39174 | int arg6 = (int) wxSIZE_AUTO ; | |
39175 | void *argp1 = 0 ; | |
39176 | int res1 = 0 ; | |
39177 | int val2 ; | |
39178 | int ecode2 = 0 ; | |
39179 | int val3 ; | |
39180 | int ecode3 = 0 ; | |
39181 | int val4 ; | |
39182 | int ecode4 = 0 ; | |
39183 | int val5 ; | |
39184 | int ecode5 = 0 ; | |
39185 | int val6 ; | |
39186 | int ecode6 = 0 ; | |
39187 | PyObject * obj0 = 0 ; | |
39188 | PyObject * obj1 = 0 ; | |
39189 | PyObject * obj2 = 0 ; | |
39190 | PyObject * obj3 = 0 ; | |
39191 | PyObject * obj4 = 0 ; | |
39192 | PyObject * obj5 = 0 ; | |
39193 | char * kwnames[] = { | |
39194 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
39195 | }; | |
39196 | ||
39197 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
39198 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39199 | if (!SWIG_IsOK(res1)) { | |
39200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39201 | } | |
39202 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39203 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39204 | if (!SWIG_IsOK(ecode2)) { | |
39205 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
39206 | } | |
39207 | arg2 = static_cast< int >(val2); | |
39208 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
39209 | if (!SWIG_IsOK(ecode3)) { | |
39210 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
39211 | } | |
39212 | arg3 = static_cast< int >(val3); | |
39213 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
39214 | if (!SWIG_IsOK(ecode4)) { | |
39215 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
39216 | } | |
39217 | arg4 = static_cast< int >(val4); | |
39218 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
39219 | if (!SWIG_IsOK(ecode5)) { | |
39220 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
39221 | } | |
39222 | arg5 = static_cast< int >(val5); | |
39223 | if (obj5) { | |
39224 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
39225 | if (!SWIG_IsOK(ecode6)) { | |
39226 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
39227 | } | |
39228 | arg6 = static_cast< int >(val6); | |
39229 | } | |
39230 | { | |
39231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39232 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
39233 | wxPyEndAllowThreads(__tstate); | |
39234 | if (PyErr_Occurred()) SWIG_fail; | |
39235 | } | |
39236 | resultobj = SWIG_Py_Void(); | |
39237 | return resultobj; | |
39238 | fail: | |
39239 | return NULL; | |
39240 | } | |
39241 | ||
39242 | ||
39243 | SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39244 | PyObject *resultobj = 0; | |
39245 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39246 | int arg2 ; | |
39247 | int arg3 ; | |
39248 | void *argp1 = 0 ; | |
39249 | int res1 = 0 ; | |
39250 | int val2 ; | |
39251 | int ecode2 = 0 ; | |
39252 | int val3 ; | |
39253 | int ecode3 = 0 ; | |
39254 | PyObject * obj0 = 0 ; | |
39255 | PyObject * obj1 = 0 ; | |
39256 | PyObject * obj2 = 0 ; | |
39257 | char * kwnames[] = { | |
39258 | (char *) "self",(char *) "width",(char *) "height", NULL | |
39259 | }; | |
39260 | ||
39261 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
39262 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39263 | if (!SWIG_IsOK(res1)) { | |
39264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39265 | } | |
39266 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39267 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39268 | if (!SWIG_IsOK(ecode2)) { | |
39269 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
39270 | } | |
39271 | arg2 = static_cast< int >(val2); | |
39272 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
39273 | if (!SWIG_IsOK(ecode3)) { | |
39274 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
39275 | } | |
39276 | arg3 = static_cast< int >(val3); | |
39277 | { | |
39278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39279 | (arg1)->DoSetClientSize(arg2,arg3); | |
39280 | wxPyEndAllowThreads(__tstate); | |
39281 | if (PyErr_Occurred()) SWIG_fail; | |
39282 | } | |
39283 | resultobj = SWIG_Py_Void(); | |
39284 | return resultobj; | |
39285 | fail: | |
39286 | return NULL; | |
39287 | } | |
39288 | ||
39289 | ||
39290 | SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39291 | PyObject *resultobj = 0; | |
39292 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39293 | int arg2 ; | |
39294 | int arg3 ; | |
39295 | void *argp1 = 0 ; | |
39296 | int res1 = 0 ; | |
39297 | int val2 ; | |
39298 | int ecode2 = 0 ; | |
39299 | int val3 ; | |
39300 | int ecode3 = 0 ; | |
39301 | PyObject * obj0 = 0 ; | |
39302 | PyObject * obj1 = 0 ; | |
39303 | PyObject * obj2 = 0 ; | |
39304 | char * kwnames[] = { | |
39305 | (char *) "self",(char *) "x",(char *) "y", NULL | |
39306 | }; | |
39307 | ||
39308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
39309 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39310 | if (!SWIG_IsOK(res1)) { | |
39311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39312 | } | |
39313 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39314 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39315 | if (!SWIG_IsOK(ecode2)) { | |
39316 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
39317 | } | |
39318 | arg2 = static_cast< int >(val2); | |
39319 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
39320 | if (!SWIG_IsOK(ecode3)) { | |
39321 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
39322 | } | |
39323 | arg3 = static_cast< int >(val3); | |
39324 | { | |
39325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39326 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
39327 | wxPyEndAllowThreads(__tstate); | |
39328 | if (PyErr_Occurred()) SWIG_fail; | |
39329 | } | |
39330 | resultobj = SWIG_Py_Void(); | |
39331 | return resultobj; | |
39332 | fail: | |
39333 | return NULL; | |
39334 | } | |
39335 | ||
39336 | ||
39337 | SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39338 | PyObject *resultobj = 0; | |
39339 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39340 | int *arg2 = (int *) 0 ; | |
39341 | int *arg3 = (int *) 0 ; | |
39342 | void *argp1 = 0 ; | |
39343 | int res1 = 0 ; | |
39344 | int temp2 ; | |
39345 | int res2 = SWIG_TMPOBJ ; | |
39346 | int temp3 ; | |
39347 | int res3 = SWIG_TMPOBJ ; | |
39348 | PyObject *swig_obj[1] ; | |
39349 | ||
39350 | arg2 = &temp2; | |
39351 | arg3 = &temp3; | |
39352 | if (!args) SWIG_fail; | |
39353 | swig_obj[0] = args; | |
39354 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39355 | if (!SWIG_IsOK(res1)) { | |
39356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39357 | } | |
39358 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39359 | { | |
39360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39361 | ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3); | |
39362 | wxPyEndAllowThreads(__tstate); | |
39363 | if (PyErr_Occurred()) SWIG_fail; | |
39364 | } | |
39365 | resultobj = SWIG_Py_Void(); | |
39366 | if (SWIG_IsTmpObj(res2)) { | |
39367 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
39368 | } else { | |
39369 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39370 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
39371 | } | |
39372 | if (SWIG_IsTmpObj(res3)) { | |
39373 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
39374 | } else { | |
39375 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39376 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
39377 | } | |
39378 | return resultobj; | |
39379 | fail: | |
39380 | return NULL; | |
39381 | } | |
39382 | ||
39383 | ||
39384 | SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39385 | PyObject *resultobj = 0; | |
39386 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39387 | int *arg2 = (int *) 0 ; | |
39388 | int *arg3 = (int *) 0 ; | |
39389 | void *argp1 = 0 ; | |
39390 | int res1 = 0 ; | |
39391 | int temp2 ; | |
39392 | int res2 = SWIG_TMPOBJ ; | |
39393 | int temp3 ; | |
39394 | int res3 = SWIG_TMPOBJ ; | |
39395 | PyObject *swig_obj[1] ; | |
39396 | ||
39397 | arg2 = &temp2; | |
39398 | arg3 = &temp3; | |
39399 | if (!args) SWIG_fail; | |
39400 | swig_obj[0] = args; | |
39401 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39402 | if (!SWIG_IsOK(res1)) { | |
39403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39404 | } | |
39405 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39406 | { | |
39407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39408 | ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3); | |
39409 | wxPyEndAllowThreads(__tstate); | |
39410 | if (PyErr_Occurred()) SWIG_fail; | |
39411 | } | |
39412 | resultobj = SWIG_Py_Void(); | |
39413 | if (SWIG_IsTmpObj(res2)) { | |
39414 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
39415 | } else { | |
39416 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39417 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
39418 | } | |
39419 | if (SWIG_IsTmpObj(res3)) { | |
39420 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
39421 | } else { | |
39422 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39423 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
39424 | } | |
39425 | return resultobj; | |
39426 | fail: | |
39427 | return NULL; | |
39428 | } | |
39429 | ||
39430 | ||
39431 | SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39432 | PyObject *resultobj = 0; | |
39433 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39434 | int *arg2 = (int *) 0 ; | |
39435 | int *arg3 = (int *) 0 ; | |
39436 | void *argp1 = 0 ; | |
39437 | int res1 = 0 ; | |
39438 | int temp2 ; | |
39439 | int res2 = SWIG_TMPOBJ ; | |
39440 | int temp3 ; | |
39441 | int res3 = SWIG_TMPOBJ ; | |
39442 | PyObject *swig_obj[1] ; | |
39443 | ||
39444 | arg2 = &temp2; | |
39445 | arg3 = &temp3; | |
39446 | if (!args) SWIG_fail; | |
39447 | swig_obj[0] = args; | |
39448 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39449 | if (!SWIG_IsOK(res1)) { | |
39450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39451 | } | |
39452 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39453 | { | |
39454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39455 | ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3); | |
39456 | wxPyEndAllowThreads(__tstate); | |
39457 | if (PyErr_Occurred()) SWIG_fail; | |
39458 | } | |
39459 | resultobj = SWIG_Py_Void(); | |
39460 | if (SWIG_IsTmpObj(res2)) { | |
39461 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
39462 | } else { | |
39463 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39464 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
39465 | } | |
39466 | if (SWIG_IsTmpObj(res3)) { | |
39467 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
39468 | } else { | |
39469 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39470 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
39471 | } | |
39472 | return resultobj; | |
39473 | fail: | |
39474 | return NULL; | |
d55e5bfc RD |
39475 | } |
39476 | ||
39477 | ||
1bd55598 RD |
39478 | SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39479 | PyObject *resultobj = 0; | |
39480 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39481 | wxSize result; | |
39482 | void *argp1 = 0 ; | |
39483 | int res1 = 0 ; | |
39484 | PyObject *swig_obj[1] ; | |
39485 | ||
39486 | if (!args) SWIG_fail; | |
39487 | swig_obj[0] = args; | |
39488 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39489 | if (!SWIG_IsOK(res1)) { | |
39490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39491 | } | |
39492 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39493 | { | |
39494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39495 | result = ((wxPyControl const *)arg1)->DoGetVirtualSize(); | |
39496 | wxPyEndAllowThreads(__tstate); | |
39497 | if (PyErr_Occurred()) SWIG_fail; | |
39498 | } | |
39499 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
39500 | return resultobj; | |
39501 | fail: | |
39502 | return NULL; | |
7e08d4ef RD |
39503 | } |
39504 | ||
39505 | ||
1bd55598 RD |
39506 | SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39507 | PyObject *resultobj = 0; | |
39508 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39509 | wxSize result; | |
39510 | void *argp1 = 0 ; | |
39511 | int res1 = 0 ; | |
39512 | PyObject *swig_obj[1] ; | |
39513 | ||
39514 | if (!args) SWIG_fail; | |
39515 | swig_obj[0] = args; | |
39516 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39517 | if (!SWIG_IsOK(res1)) { | |
39518 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39519 | } | |
39520 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39521 | { | |
39522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39523 | result = ((wxPyControl const *)arg1)->DoGetBestSize(); | |
39524 | wxPyEndAllowThreads(__tstate); | |
39525 | if (PyErr_Occurred()) SWIG_fail; | |
39526 | } | |
39527 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
39528 | return resultobj; | |
39529 | fail: | |
39530 | return NULL; | |
d55e5bfc RD |
39531 | } |
39532 | ||
39533 | ||
1bd55598 RD |
39534 | SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39535 | PyObject *resultobj = 0; | |
39536 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39537 | SwigValueWrapper<wxVisualAttributes > result; | |
39538 | void *argp1 = 0 ; | |
39539 | int res1 = 0 ; | |
39540 | PyObject *swig_obj[1] ; | |
39541 | ||
39542 | if (!args) SWIG_fail; | |
39543 | swig_obj[0] = args; | |
39544 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39545 | if (!SWIG_IsOK(res1)) { | |
39546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39547 | } | |
39548 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39549 | { | |
39550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39551 | result = (arg1)->GetDefaultAttributes(); | |
39552 | wxPyEndAllowThreads(__tstate); | |
39553 | if (PyErr_Occurred()) SWIG_fail; | |
39554 | } | |
39555 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
39556 | return resultobj; | |
39557 | fail: | |
39558 | return NULL; | |
d55e5bfc RD |
39559 | } |
39560 | ||
39561 | ||
1bd55598 RD |
39562 | SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39563 | PyObject *resultobj = 0; | |
39564 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39565 | void *argp1 = 0 ; | |
39566 | int res1 = 0 ; | |
39567 | PyObject *swig_obj[1] ; | |
39568 | ||
39569 | if (!args) SWIG_fail; | |
39570 | swig_obj[0] = args; | |
39571 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39572 | if (!SWIG_IsOK(res1)) { | |
39573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39574 | } | |
39575 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39576 | { | |
39577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39578 | (arg1)->OnInternalIdle(); | |
39579 | wxPyEndAllowThreads(__tstate); | |
39580 | if (PyErr_Occurred()) SWIG_fail; | |
39581 | } | |
39582 | resultobj = SWIG_Py_Void(); | |
39583 | return resultobj; | |
39584 | fail: | |
39585 | return NULL; | |
39586 | } | |
39587 | ||
39588 | ||
39589 | SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39590 | PyObject *obj; | |
39591 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39592 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj)); | |
39593 | return SWIG_Py_Void(); | |
39594 | } | |
39595 | ||
39596 | SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39597 | return SWIG_Python_InitShadowInstance(args); | |
39598 | } | |
39599 | ||
39600 | SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39601 | PyObject *resultobj = 0; | |
39602 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
39603 | int arg2 = (int) 0 ; | |
39604 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
39605 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
704eda0c | 39606 | wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ; |
1bd55598 RD |
39607 | wxHelpEvent *result = 0 ; |
39608 | int val1 ; | |
39609 | int ecode1 = 0 ; | |
39610 | int val2 ; | |
39611 | int ecode2 = 0 ; | |
39612 | wxPoint temp3 ; | |
704eda0c RD |
39613 | int val4 ; |
39614 | int ecode4 = 0 ; | |
1bd55598 RD |
39615 | PyObject * obj0 = 0 ; |
39616 | PyObject * obj1 = 0 ; | |
39617 | PyObject * obj2 = 0 ; | |
704eda0c | 39618 | PyObject * obj3 = 0 ; |
1bd55598 | 39619 | char * kwnames[] = { |
704eda0c | 39620 | (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL |
1bd55598 RD |
39621 | }; |
39622 | ||
704eda0c | 39623 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
1bd55598 RD |
39624 | if (obj0) { |
39625 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
39626 | if (!SWIG_IsOK(ecode1)) { | |
39627 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
39628 | } | |
39629 | arg1 = static_cast< wxEventType >(val1); | |
39630 | } | |
39631 | if (obj1) { | |
39632 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39633 | if (!SWIG_IsOK(ecode2)) { | |
39634 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'"); | |
39635 | } | |
39636 | arg2 = static_cast< int >(val2); | |
39637 | } | |
39638 | if (obj2) { | |
d55e5bfc | 39639 | { |
1bd55598 RD |
39640 | arg3 = &temp3; |
39641 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 39642 | } |
1bd55598 | 39643 | } |
704eda0c RD |
39644 | if (obj3) { |
39645 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
39646 | if (!SWIG_IsOK(ecode4)) { | |
39647 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'"); | |
39648 | } | |
39649 | arg4 = static_cast< wxHelpEvent::Origin >(val4); | |
39650 | } | |
1bd55598 RD |
39651 | { |
39652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 39653 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4); |
1bd55598 RD |
39654 | wxPyEndAllowThreads(__tstate); |
39655 | if (PyErr_Occurred()) SWIG_fail; | |
39656 | } | |
39657 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 ); | |
39658 | return resultobj; | |
39659 | fail: | |
39660 | return NULL; | |
d55e5bfc RD |
39661 | } |
39662 | ||
39663 | ||
1bd55598 RD |
39664 | SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39665 | PyObject *resultobj = 0; | |
39666 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39667 | wxPoint result; | |
39668 | void *argp1 = 0 ; | |
39669 | int res1 = 0 ; | |
39670 | PyObject *swig_obj[1] ; | |
39671 | ||
39672 | if (!args) SWIG_fail; | |
39673 | swig_obj[0] = args; | |
39674 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39675 | if (!SWIG_IsOK(res1)) { | |
39676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39677 | } | |
39678 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39679 | { | |
39680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39681 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
39682 | wxPyEndAllowThreads(__tstate); | |
39683 | if (PyErr_Occurred()) SWIG_fail; | |
39684 | } | |
39685 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
39686 | return resultobj; | |
39687 | fail: | |
39688 | return NULL; | |
39689 | } | |
39690 | ||
39691 | ||
39692 | SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39693 | PyObject *resultobj = 0; | |
39694 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39695 | wxPoint *arg2 = 0 ; | |
39696 | void *argp1 = 0 ; | |
39697 | int res1 = 0 ; | |
39698 | wxPoint temp2 ; | |
39699 | PyObject * obj0 = 0 ; | |
39700 | PyObject * obj1 = 0 ; | |
39701 | char * kwnames[] = { | |
39702 | (char *) "self",(char *) "pos", NULL | |
39703 | }; | |
39704 | ||
39705 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
39706 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39707 | if (!SWIG_IsOK(res1)) { | |
39708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
39709 | } | |
39710 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39711 | { | |
39712 | arg2 = &temp2; | |
39713 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39714 | } | |
39715 | { | |
39716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39717 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
39718 | wxPyEndAllowThreads(__tstate); | |
39719 | if (PyErr_Occurred()) SWIG_fail; | |
39720 | } | |
39721 | resultobj = SWIG_Py_Void(); | |
39722 | return resultobj; | |
39723 | fail: | |
39724 | return NULL; | |
d55e5bfc RD |
39725 | } |
39726 | ||
39727 | ||
1bd55598 RD |
39728 | SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39729 | PyObject *resultobj = 0; | |
39730 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39731 | wxString *result = 0 ; | |
39732 | void *argp1 = 0 ; | |
39733 | int res1 = 0 ; | |
39734 | PyObject *swig_obj[1] ; | |
39735 | ||
39736 | if (!args) SWIG_fail; | |
39737 | swig_obj[0] = args; | |
39738 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39739 | if (!SWIG_IsOK(res1)) { | |
39740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39741 | } | |
39742 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39743 | { | |
39744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 39745 | { |
1bd55598 RD |
39746 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); |
39747 | result = (wxString *) &_result_ref; | |
d55e5bfc | 39748 | } |
1bd55598 RD |
39749 | wxPyEndAllowThreads(__tstate); |
39750 | if (PyErr_Occurred()) SWIG_fail; | |
39751 | } | |
39752 | { | |
39753 | #if wxUSE_UNICODE | |
39754 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
39755 | #else | |
39756 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
39757 | #endif | |
39758 | } | |
39759 | return resultobj; | |
39760 | fail: | |
39761 | return NULL; | |
39762 | } | |
39763 | ||
39764 | ||
39765 | SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39766 | PyObject *resultobj = 0; | |
39767 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39768 | wxString *arg2 = 0 ; | |
39769 | void *argp1 = 0 ; | |
39770 | int res1 = 0 ; | |
39771 | bool temp2 = false ; | |
39772 | PyObject * obj0 = 0 ; | |
39773 | PyObject * obj1 = 0 ; | |
39774 | char * kwnames[] = { | |
39775 | (char *) "self",(char *) "link", NULL | |
39776 | }; | |
39777 | ||
39778 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail; | |
39779 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39780 | if (!SWIG_IsOK(res1)) { | |
39781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
39782 | } | |
39783 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39784 | { | |
39785 | arg2 = wxString_in_helper(obj1); | |
39786 | if (arg2 == NULL) SWIG_fail; | |
39787 | temp2 = true; | |
39788 | } | |
39789 | { | |
39790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39791 | (arg1)->SetLink((wxString const &)*arg2); | |
39792 | wxPyEndAllowThreads(__tstate); | |
39793 | if (PyErr_Occurred()) SWIG_fail; | |
39794 | } | |
39795 | resultobj = SWIG_Py_Void(); | |
39796 | { | |
39797 | if (temp2) | |
39798 | delete arg2; | |
39799 | } | |
39800 | return resultobj; | |
39801 | fail: | |
39802 | { | |
39803 | if (temp2) | |
39804 | delete arg2; | |
39805 | } | |
39806 | return NULL; | |
d55e5bfc RD |
39807 | } |
39808 | ||
39809 | ||
1bd55598 RD |
39810 | SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39811 | PyObject *resultobj = 0; | |
39812 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39813 | wxString *result = 0 ; | |
39814 | void *argp1 = 0 ; | |
39815 | int res1 = 0 ; | |
39816 | PyObject *swig_obj[1] ; | |
39817 | ||
39818 | if (!args) SWIG_fail; | |
39819 | swig_obj[0] = args; | |
39820 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39821 | if (!SWIG_IsOK(res1)) { | |
39822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39823 | } | |
39824 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39825 | { | |
39826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 39827 | { |
1bd55598 RD |
39828 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); |
39829 | result = (wxString *) &_result_ref; | |
d55e5bfc | 39830 | } |
1bd55598 RD |
39831 | wxPyEndAllowThreads(__tstate); |
39832 | if (PyErr_Occurred()) SWIG_fail; | |
39833 | } | |
39834 | { | |
39835 | #if wxUSE_UNICODE | |
39836 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
39837 | #else | |
39838 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
39839 | #endif | |
39840 | } | |
39841 | return resultobj; | |
39842 | fail: | |
39843 | return NULL; | |
39844 | } | |
39845 | ||
39846 | ||
39847 | SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39848 | PyObject *resultobj = 0; | |
39849 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39850 | wxString *arg2 = 0 ; | |
39851 | void *argp1 = 0 ; | |
39852 | int res1 = 0 ; | |
39853 | bool temp2 = false ; | |
39854 | PyObject * obj0 = 0 ; | |
39855 | PyObject * obj1 = 0 ; | |
39856 | char * kwnames[] = { | |
39857 | (char *) "self",(char *) "target", NULL | |
39858 | }; | |
39859 | ||
39860 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail; | |
39861 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39862 | if (!SWIG_IsOK(res1)) { | |
39863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
39864 | } | |
39865 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39866 | { | |
39867 | arg2 = wxString_in_helper(obj1); | |
39868 | if (arg2 == NULL) SWIG_fail; | |
39869 | temp2 = true; | |
39870 | } | |
39871 | { | |
39872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39873 | (arg1)->SetTarget((wxString const &)*arg2); | |
39874 | wxPyEndAllowThreads(__tstate); | |
39875 | if (PyErr_Occurred()) SWIG_fail; | |
39876 | } | |
39877 | resultobj = SWIG_Py_Void(); | |
39878 | { | |
39879 | if (temp2) | |
39880 | delete arg2; | |
39881 | } | |
39882 | return resultobj; | |
39883 | fail: | |
39884 | { | |
39885 | if (temp2) | |
39886 | delete arg2; | |
39887 | } | |
39888 | return NULL; | |
d55e5bfc RD |
39889 | } |
39890 | ||
39891 | ||
704eda0c RD |
39892 | SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39893 | PyObject *resultobj = 0; | |
39894 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39895 | wxHelpEvent::Origin result; | |
39896 | void *argp1 = 0 ; | |
39897 | int res1 = 0 ; | |
39898 | PyObject *swig_obj[1] ; | |
39899 | ||
39900 | if (!args) SWIG_fail; | |
39901 | swig_obj[0] = args; | |
39902 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39903 | if (!SWIG_IsOK(res1)) { | |
39904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39905 | } | |
39906 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39907 | { | |
39908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39909 | result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin(); | |
39910 | wxPyEndAllowThreads(__tstate); | |
39911 | if (PyErr_Occurred()) SWIG_fail; | |
39912 | } | |
39913 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
39914 | return resultobj; | |
39915 | fail: | |
39916 | return NULL; | |
39917 | } | |
39918 | ||
39919 | ||
39920 | SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39921 | PyObject *resultobj = 0; | |
39922 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39923 | wxHelpEvent::Origin arg2 ; | |
39924 | void *argp1 = 0 ; | |
39925 | int res1 = 0 ; | |
39926 | int val2 ; | |
39927 | int ecode2 = 0 ; | |
39928 | PyObject * obj0 = 0 ; | |
39929 | PyObject * obj1 = 0 ; | |
39930 | char * kwnames[] = { | |
39931 | (char *) "self",(char *) "origin", NULL | |
39932 | }; | |
39933 | ||
39934 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail; | |
39935 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39936 | if (!SWIG_IsOK(res1)) { | |
39937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
39938 | } | |
39939 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39940 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39941 | if (!SWIG_IsOK(ecode2)) { | |
39942 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'"); | |
39943 | } | |
39944 | arg2 = static_cast< wxHelpEvent::Origin >(val2); | |
39945 | { | |
39946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39947 | (arg1)->SetOrigin(arg2); | |
39948 | wxPyEndAllowThreads(__tstate); | |
39949 | if (PyErr_Occurred()) SWIG_fail; | |
39950 | } | |
39951 | resultobj = SWIG_Py_Void(); | |
39952 | return resultobj; | |
39953 | fail: | |
39954 | return NULL; | |
39955 | } | |
39956 | ||
39957 | ||
1bd55598 RD |
39958 | SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39959 | PyObject *obj; | |
39960 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39961 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj)); | |
39962 | return SWIG_Py_Void(); | |
39963 | } | |
39964 | ||
39965 | SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39966 | return SWIG_Python_InitShadowInstance(args); | |
39967 | } | |
39968 | ||
39969 | SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39970 | PyObject *resultobj = 0; | |
39971 | wxWindow *arg1 = (wxWindow *) NULL ; | |
39972 | bool arg2 = (bool) true ; | |
39973 | wxContextHelp *result = 0 ; | |
39974 | void *argp1 = 0 ; | |
39975 | int res1 = 0 ; | |
39976 | bool val2 ; | |
39977 | int ecode2 = 0 ; | |
39978 | PyObject * obj0 = 0 ; | |
39979 | PyObject * obj1 = 0 ; | |
39980 | char * kwnames[] = { | |
39981 | (char *) "window",(char *) "doNow", NULL | |
39982 | }; | |
39983 | ||
39984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
39985 | if (obj0) { | |
39986 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39987 | if (!SWIG_IsOK(res1)) { | |
39988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
d55e5bfc | 39989 | } |
1bd55598 RD |
39990 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
39991 | } | |
39992 | if (obj1) { | |
39993 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
39994 | if (!SWIG_IsOK(ecode2)) { | |
39995 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'"); | |
39996 | } | |
39997 | arg2 = static_cast< bool >(val2); | |
39998 | } | |
39999 | { | |
40000 | if (!wxPyCheckForApp()) SWIG_fail; | |
40001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40002 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
40003 | wxPyEndAllowThreads(__tstate); | |
40004 | if (PyErr_Occurred()) SWIG_fail; | |
40005 | } | |
40006 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 ); | |
40007 | return resultobj; | |
40008 | fail: | |
40009 | return NULL; | |
d55e5bfc RD |
40010 | } |
40011 | ||
40012 | ||
1bd55598 RD |
40013 | SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40014 | PyObject *resultobj = 0; | |
40015 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
40016 | void *argp1 = 0 ; | |
40017 | int res1 = 0 ; | |
40018 | PyObject *swig_obj[1] ; | |
40019 | ||
40020 | if (!args) SWIG_fail; | |
40021 | swig_obj[0] = args; | |
40022 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 ); | |
40023 | if (!SWIG_IsOK(res1)) { | |
40024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
40025 | } | |
40026 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
40027 | { | |
40028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40029 | delete arg1; | |
d55e5bfc | 40030 | |
1bd55598 RD |
40031 | wxPyEndAllowThreads(__tstate); |
40032 | if (PyErr_Occurred()) SWIG_fail; | |
40033 | } | |
40034 | resultobj = SWIG_Py_Void(); | |
40035 | return resultobj; | |
40036 | fail: | |
40037 | return NULL; | |
40038 | } | |
40039 | ||
40040 | ||
40041 | SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40042 | PyObject *resultobj = 0; | |
40043 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
40044 | wxWindow *arg2 = (wxWindow *) NULL ; | |
40045 | bool result; | |
40046 | void *argp1 = 0 ; | |
40047 | int res1 = 0 ; | |
40048 | void *argp2 = 0 ; | |
40049 | int res2 = 0 ; | |
40050 | PyObject * obj0 = 0 ; | |
40051 | PyObject * obj1 = 0 ; | |
40052 | char * kwnames[] = { | |
40053 | (char *) "self",(char *) "window", NULL | |
40054 | }; | |
40055 | ||
40056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
40057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 ); | |
40058 | if (!SWIG_IsOK(res1)) { | |
40059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
40060 | } | |
40061 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
40062 | if (obj1) { | |
40063 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40064 | if (!SWIG_IsOK(res2)) { | |
40065 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
d55e5bfc | 40066 | } |
1bd55598 RD |
40067 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
40068 | } | |
40069 | { | |
40070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40071 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
40072 | wxPyEndAllowThreads(__tstate); | |
40073 | if (PyErr_Occurred()) SWIG_fail; | |
40074 | } | |
40075 | { | |
40076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40077 | } | |
40078 | return resultobj; | |
40079 | fail: | |
40080 | return NULL; | |
d55e5bfc RD |
40081 | } |
40082 | ||
40083 | ||
1bd55598 RD |
40084 | SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40085 | PyObject *resultobj = 0; | |
40086 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
40087 | bool result; | |
40088 | void *argp1 = 0 ; | |
40089 | int res1 = 0 ; | |
40090 | PyObject *swig_obj[1] ; | |
40091 | ||
40092 | if (!args) SWIG_fail; | |
40093 | swig_obj[0] = args; | |
40094 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 ); | |
40095 | if (!SWIG_IsOK(res1)) { | |
40096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
40097 | } | |
40098 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
40099 | { | |
40100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40101 | result = (bool)(arg1)->EndContextHelp(); | |
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 | ||
40114 | SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
40115 | PyObject *obj; | |
40116 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40117 | SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj)); | |
40118 | return SWIG_Py_Void(); | |
40119 | } | |
40120 | ||
40121 | SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
40122 | return SWIG_Python_InitShadowInstance(args); | |
40123 | } | |
40124 | ||
40125 | SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40126 | PyObject *resultobj = 0; | |
40127 | wxWindow *arg1 = (wxWindow *) 0 ; | |
40128 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
40129 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
40130 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
40131 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
40132 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
40133 | long arg5 = (long) wxBU_AUTODRAW ; | |
40134 | wxContextHelpButton *result = 0 ; | |
40135 | void *argp1 = 0 ; | |
40136 | int res1 = 0 ; | |
40137 | int val2 ; | |
40138 | int ecode2 = 0 ; | |
40139 | wxPoint temp3 ; | |
40140 | wxSize temp4 ; | |
40141 | long val5 ; | |
40142 | int ecode5 = 0 ; | |
40143 | PyObject * obj0 = 0 ; | |
40144 | PyObject * obj1 = 0 ; | |
40145 | PyObject * obj2 = 0 ; | |
40146 | PyObject * obj3 = 0 ; | |
40147 | PyObject * obj4 = 0 ; | |
40148 | char * kwnames[] = { | |
40149 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
40150 | }; | |
40151 | ||
40152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
40153 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40154 | if (!SWIG_IsOK(res1)) { | |
40155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
40156 | } | |
40157 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
40158 | if (obj1) { | |
40159 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
40160 | if (!SWIG_IsOK(ecode2)) { | |
40161 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'"); | |
40162 | } | |
40163 | arg2 = static_cast< int >(val2); | |
40164 | } | |
40165 | if (obj2) { | |
d55e5bfc | 40166 | { |
1bd55598 RD |
40167 | arg3 = &temp3; |
40168 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 40169 | } |
1bd55598 RD |
40170 | } |
40171 | if (obj3) { | |
d55e5bfc | 40172 | { |
1bd55598 RD |
40173 | arg4 = &temp4; |
40174 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 40175 | } |
1bd55598 RD |
40176 | } |
40177 | if (obj4) { | |
40178 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
40179 | if (!SWIG_IsOK(ecode5)) { | |
40180 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'"); | |
40181 | } | |
40182 | arg5 = static_cast< long >(val5); | |
40183 | } | |
40184 | { | |
40185 | if (!wxPyCheckForApp()) SWIG_fail; | |
40186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40187 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
40188 | wxPyEndAllowThreads(__tstate); | |
40189 | if (PyErr_Occurred()) SWIG_fail; | |
40190 | } | |
40191 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 ); | |
40192 | return resultobj; | |
40193 | fail: | |
40194 | return NULL; | |
d55e5bfc RD |
40195 | } |
40196 | ||
40197 | ||
1bd55598 RD |
40198 | SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40199 | PyObject *obj; | |
40200 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40201 | SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj)); | |
40202 | return SWIG_Py_Void(); | |
d55e5bfc RD |
40203 | } |
40204 | ||
1bd55598 RD |
40205 | SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40206 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
40207 | } |
40208 | ||
f52cbe90 RD |
40209 | SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40210 | PyObject *resultobj = 0; | |
40211 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40212 | void *argp1 = 0 ; | |
40213 | int res1 = 0 ; | |
40214 | PyObject *swig_obj[1] ; | |
40215 | ||
40216 | if (!args) SWIG_fail; | |
40217 | swig_obj[0] = args; | |
40218 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 ); | |
40219 | if (!SWIG_IsOK(res1)) { | |
40220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40221 | } | |
40222 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40223 | { | |
40224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40225 | delete arg1; | |
40226 | ||
40227 | wxPyEndAllowThreads(__tstate); | |
40228 | if (PyErr_Occurred()) SWIG_fail; | |
40229 | } | |
40230 | resultobj = SWIG_Py_Void(); | |
40231 | return resultobj; | |
40232 | fail: | |
40233 | return NULL; | |
40234 | } | |
40235 | ||
40236 | ||
1bd55598 RD |
40237 | SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
40238 | PyObject *resultobj = 0; | |
40239 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40240 | wxHelpProvider *result = 0 ; | |
40241 | int res1 = 0 ; | |
40242 | PyObject * obj0 = 0 ; | |
40243 | char * kwnames[] = { | |
40244 | (char *) "helpProvider", NULL | |
40245 | }; | |
40246 | ||
40247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail; | |
40248 | res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 ); | |
40249 | if (!SWIG_IsOK(res1)) { | |
40250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40251 | } | |
40252 | { | |
40253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40254 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
40255 | wxPyEndAllowThreads(__tstate); | |
40256 | if (PyErr_Occurred()) SWIG_fail; | |
40257 | } | |
40258 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 ); | |
40259 | return resultobj; | |
40260 | fail: | |
40261 | return NULL; | |
d55e5bfc RD |
40262 | } |
40263 | ||
40264 | ||
1bd55598 RD |
40265 | SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40266 | PyObject *resultobj = 0; | |
40267 | wxHelpProvider *result = 0 ; | |
40268 | ||
40269 | if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail; | |
40270 | { | |
40271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40272 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
40273 | wxPyEndAllowThreads(__tstate); | |
40274 | if (PyErr_Occurred()) SWIG_fail; | |
40275 | } | |
40276 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40277 | return resultobj; | |
40278 | fail: | |
40279 | return NULL; | |
40280 | } | |
40281 | ||
40282 | ||
40283 | SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40284 | PyObject *resultobj = 0; | |
40285 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40286 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40287 | wxString result; | |
40288 | void *argp1 = 0 ; | |
40289 | int res1 = 0 ; | |
40290 | void *argp2 = 0 ; | |
40291 | int res2 = 0 ; | |
40292 | PyObject * obj0 = 0 ; | |
40293 | PyObject * obj1 = 0 ; | |
40294 | char * kwnames[] = { | |
40295 | (char *) "self",(char *) "window", NULL | |
40296 | }; | |
40297 | ||
40298 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
40299 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40300 | if (!SWIG_IsOK(res1)) { | |
40301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40302 | } | |
40303 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40304 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40305 | if (!SWIG_IsOK(res2)) { | |
40306 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
40307 | } | |
40308 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40309 | { | |
40310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40311 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
40312 | wxPyEndAllowThreads(__tstate); | |
40313 | if (PyErr_Occurred()) SWIG_fail; | |
40314 | } | |
40315 | { | |
40316 | #if wxUSE_UNICODE | |
40317 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
40318 | #else | |
40319 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
40320 | #endif | |
40321 | } | |
40322 | return resultobj; | |
40323 | fail: | |
40324 | return NULL; | |
40325 | } | |
40326 | ||
40327 | ||
40328 | SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40329 | PyObject *resultobj = 0; | |
40330 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40331 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40332 | bool result; | |
40333 | void *argp1 = 0 ; | |
40334 | int res1 = 0 ; | |
40335 | void *argp2 = 0 ; | |
40336 | int res2 = 0 ; | |
40337 | PyObject * obj0 = 0 ; | |
40338 | PyObject * obj1 = 0 ; | |
40339 | char * kwnames[] = { | |
40340 | (char *) "self",(char *) "window", NULL | |
40341 | }; | |
40342 | ||
40343 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
40344 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40345 | if (!SWIG_IsOK(res1)) { | |
40346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40347 | } | |
40348 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40349 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40350 | if (!SWIG_IsOK(res2)) { | |
40351 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
40352 | } | |
40353 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40354 | { | |
40355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40356 | result = (bool)(arg1)->ShowHelp(arg2); | |
40357 | wxPyEndAllowThreads(__tstate); | |
40358 | if (PyErr_Occurred()) SWIG_fail; | |
40359 | } | |
40360 | { | |
40361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40362 | } | |
40363 | return resultobj; | |
40364 | fail: | |
40365 | return NULL; | |
40366 | } | |
40367 | ||
40368 | ||
b850e7f3 RD |
40369 | SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
40370 | PyObject *resultobj = 0; | |
40371 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40372 | wxWindowBase *arg2 = (wxWindowBase *) 0 ; | |
40373 | wxPoint *arg3 = 0 ; | |
40374 | wxHelpEvent::Origin arg4 ; | |
40375 | bool result; | |
40376 | void *argp1 = 0 ; | |
40377 | int res1 = 0 ; | |
40378 | void *argp2 = 0 ; | |
40379 | int res2 = 0 ; | |
40380 | wxPoint temp3 ; | |
40381 | int val4 ; | |
40382 | int ecode4 = 0 ; | |
40383 | PyObject * obj0 = 0 ; | |
40384 | PyObject * obj1 = 0 ; | |
40385 | PyObject * obj2 = 0 ; | |
40386 | PyObject * obj3 = 0 ; | |
40387 | char * kwnames[] = { | |
40388 | (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL | |
40389 | }; | |
40390 | ||
40391 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
40392 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40393 | if (!SWIG_IsOK(res1)) { | |
40394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40395 | } | |
40396 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40397 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 ); | |
40398 | if (!SWIG_IsOK(res2)) { | |
40399 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'"); | |
40400 | } | |
40401 | arg2 = reinterpret_cast< wxWindowBase * >(argp2); | |
40402 | { | |
40403 | arg3 = &temp3; | |
40404 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
40405 | } | |
40406 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
40407 | if (!SWIG_IsOK(ecode4)) { | |
40408 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'"); | |
40409 | } | |
40410 | arg4 = static_cast< wxHelpEvent::Origin >(val4); | |
40411 | { | |
40412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40413 | result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4); | |
40414 | wxPyEndAllowThreads(__tstate); | |
40415 | if (PyErr_Occurred()) SWIG_fail; | |
40416 | } | |
40417 | { | |
40418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40419 | } | |
40420 | return resultobj; | |
40421 | fail: | |
40422 | return NULL; | |
40423 | } | |
40424 | ||
40425 | ||
1bd55598 RD |
40426 | SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
40427 | PyObject *resultobj = 0; | |
40428 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40429 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40430 | wxString *arg3 = 0 ; | |
40431 | void *argp1 = 0 ; | |
40432 | int res1 = 0 ; | |
40433 | void *argp2 = 0 ; | |
40434 | int res2 = 0 ; | |
40435 | bool temp3 = false ; | |
40436 | PyObject * obj0 = 0 ; | |
40437 | PyObject * obj1 = 0 ; | |
40438 | PyObject * obj2 = 0 ; | |
40439 | char * kwnames[] = { | |
40440 | (char *) "self",(char *) "window",(char *) "text", NULL | |
40441 | }; | |
40442 | ||
40443 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
40444 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40445 | if (!SWIG_IsOK(res1)) { | |
40446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40447 | } | |
40448 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40449 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40450 | if (!SWIG_IsOK(res2)) { | |
40451 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
40452 | } | |
40453 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40454 | { | |
40455 | arg3 = wxString_in_helper(obj2); | |
40456 | if (arg3 == NULL) SWIG_fail; | |
40457 | temp3 = true; | |
40458 | } | |
40459 | { | |
40460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40461 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
40462 | wxPyEndAllowThreads(__tstate); | |
40463 | if (PyErr_Occurred()) SWIG_fail; | |
40464 | } | |
40465 | resultobj = SWIG_Py_Void(); | |
40466 | { | |
40467 | if (temp3) | |
40468 | delete arg3; | |
40469 | } | |
40470 | return resultobj; | |
40471 | fail: | |
40472 | { | |
40473 | if (temp3) | |
40474 | delete arg3; | |
40475 | } | |
40476 | return NULL; | |
40477 | } | |
40478 | ||
40479 | ||
40480 | SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40481 | PyObject *resultobj = 0; | |
40482 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40483 | int arg2 ; | |
40484 | wxString *arg3 = 0 ; | |
40485 | void *argp1 = 0 ; | |
40486 | int res1 = 0 ; | |
40487 | int val2 ; | |
40488 | int ecode2 = 0 ; | |
40489 | bool temp3 = false ; | |
40490 | PyObject * obj0 = 0 ; | |
40491 | PyObject * obj1 = 0 ; | |
40492 | PyObject * obj2 = 0 ; | |
40493 | char * kwnames[] = { | |
40494 | (char *) "self",(char *) "id",(char *) "text", NULL | |
40495 | }; | |
40496 | ||
40497 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
40498 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40499 | if (!SWIG_IsOK(res1)) { | |
40500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40501 | } | |
40502 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40503 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
40504 | if (!SWIG_IsOK(ecode2)) { | |
40505 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'"); | |
40506 | } | |
40507 | arg2 = static_cast< int >(val2); | |
40508 | { | |
40509 | arg3 = wxString_in_helper(obj2); | |
40510 | if (arg3 == NULL) SWIG_fail; | |
40511 | temp3 = true; | |
40512 | } | |
40513 | { | |
40514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40515 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
40516 | wxPyEndAllowThreads(__tstate); | |
40517 | if (PyErr_Occurred()) SWIG_fail; | |
40518 | } | |
40519 | resultobj = SWIG_Py_Void(); | |
40520 | { | |
40521 | if (temp3) | |
40522 | delete arg3; | |
40523 | } | |
40524 | return resultobj; | |
40525 | fail: | |
40526 | { | |
40527 | if (temp3) | |
40528 | delete arg3; | |
40529 | } | |
40530 | return NULL; | |
40531 | } | |
40532 | ||
40533 | ||
40534 | SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40535 | PyObject *resultobj = 0; | |
40536 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40537 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40538 | void *argp1 = 0 ; | |
40539 | int res1 = 0 ; | |
40540 | void *argp2 = 0 ; | |
40541 | int res2 = 0 ; | |
40542 | PyObject * obj0 = 0 ; | |
40543 | PyObject * obj1 = 0 ; | |
40544 | char * kwnames[] = { | |
40545 | (char *) "self",(char *) "window", NULL | |
40546 | }; | |
40547 | ||
40548 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
40549 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40550 | if (!SWIG_IsOK(res1)) { | |
40551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40552 | } | |
40553 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40554 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40555 | if (!SWIG_IsOK(res2)) { | |
40556 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
40557 | } | |
40558 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40559 | { | |
40560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40561 | (arg1)->RemoveHelp(arg2); | |
40562 | wxPyEndAllowThreads(__tstate); | |
40563 | if (PyErr_Occurred()) SWIG_fail; | |
40564 | } | |
40565 | resultobj = SWIG_Py_Void(); | |
40566 | return resultobj; | |
40567 | fail: | |
40568 | return NULL; | |
d55e5bfc RD |
40569 | } |
40570 | ||
40571 | ||
1bd55598 RD |
40572 | SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40573 | PyObject *resultobj = 0; | |
40574 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40575 | void *argp1 = 0 ; | |
40576 | int res1 = 0 ; | |
40577 | PyObject *swig_obj[1] ; | |
40578 | ||
40579 | if (!args) SWIG_fail; | |
40580 | swig_obj[0] = args; | |
40581 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40582 | if (!SWIG_IsOK(res1)) { | |
40583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40584 | } | |
40585 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40586 | { | |
40587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40588 | wxHelpProvider_Destroy(arg1); | |
40589 | wxPyEndAllowThreads(__tstate); | |
40590 | if (PyErr_Occurred()) SWIG_fail; | |
40591 | } | |
40592 | resultobj = SWIG_Py_Void(); | |
40593 | return resultobj; | |
40594 | fail: | |
40595 | return NULL; | |
d55e5bfc RD |
40596 | } |
40597 | ||
40598 | ||
1bd55598 RD |
40599 | SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40600 | PyObject *obj; | |
40601 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40602 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj)); | |
40603 | return SWIG_Py_Void(); | |
d55e5bfc RD |
40604 | } |
40605 | ||
1bd55598 RD |
40606 | SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40607 | PyObject *resultobj = 0; | |
40608 | wxSimpleHelpProvider *result = 0 ; | |
40609 | ||
40610 | if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail; | |
40611 | { | |
40612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40613 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
40614 | wxPyEndAllowThreads(__tstate); | |
40615 | if (PyErr_Occurred()) SWIG_fail; | |
40616 | } | |
40617 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 ); | |
40618 | return resultobj; | |
40619 | fail: | |
40620 | return NULL; | |
40621 | } | |
40622 | ||
40623 | ||
40624 | SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
40625 | PyObject *obj; | |
40626 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40627 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj)); | |
40628 | return SWIG_Py_Void(); | |
40629 | } | |
40630 | ||
40631 | SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
40632 | return SWIG_Python_InitShadowInstance(args); | |
40633 | } | |
40634 | ||
40635 | SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40636 | PyObject *resultobj = 0; | |
40637 | wxBitmap *arg1 = 0 ; | |
40638 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
40639 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
40640 | wxGenericDragImage *result = 0 ; | |
40641 | void *argp1 = 0 ; | |
40642 | int res1 = 0 ; | |
40643 | void *argp2 = 0 ; | |
40644 | int res2 = 0 ; | |
40645 | PyObject * obj0 = 0 ; | |
40646 | PyObject * obj1 = 0 ; | |
40647 | char * kwnames[] = { | |
40648 | (char *) "image",(char *) "cursor", NULL | |
40649 | }; | |
40650 | ||
40651 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
40652 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
40653 | if (!SWIG_IsOK(res1)) { | |
40654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
40655 | } | |
40656 | if (!argp1) { | |
40657 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
40658 | } | |
40659 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
40660 | if (obj1) { | |
40661 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
40662 | if (!SWIG_IsOK(res2)) { | |
40663 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
36ed4f51 | 40664 | } |
1bd55598 RD |
40665 | if (!argp2) { |
40666 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d55e5bfc | 40667 | } |
1bd55598 RD |
40668 | arg2 = reinterpret_cast< wxCursor * >(argp2); |
40669 | } | |
40670 | { | |
40671 | if (!wxPyCheckForApp()) SWIG_fail; | |
40672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40673 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
40674 | wxPyEndAllowThreads(__tstate); | |
40675 | if (PyErr_Occurred()) SWIG_fail; | |
40676 | } | |
40677 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 ); | |
40678 | return resultobj; | |
40679 | fail: | |
40680 | return NULL; | |
40681 | } | |
40682 | ||
40683 | ||
40684 | SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40685 | PyObject *resultobj = 0; | |
40686 | wxIcon *arg1 = 0 ; | |
40687 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
40688 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
40689 | wxGenericDragImage *result = 0 ; | |
40690 | void *argp1 = 0 ; | |
40691 | int res1 = 0 ; | |
40692 | void *argp2 = 0 ; | |
40693 | int res2 = 0 ; | |
40694 | PyObject * obj0 = 0 ; | |
40695 | PyObject * obj1 = 0 ; | |
40696 | char * kwnames[] = { | |
40697 | (char *) "image",(char *) "cursor", NULL | |
40698 | }; | |
40699 | ||
40700 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
40701 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
40702 | if (!SWIG_IsOK(res1)) { | |
40703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
40704 | } | |
40705 | if (!argp1) { | |
40706 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
40707 | } | |
40708 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
40709 | if (obj1) { | |
40710 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
40711 | if (!SWIG_IsOK(res2)) { | |
40712 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
36ed4f51 | 40713 | } |
1bd55598 RD |
40714 | if (!argp2) { |
40715 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d55e5bfc | 40716 | } |
1bd55598 RD |
40717 | arg2 = reinterpret_cast< wxCursor * >(argp2); |
40718 | } | |
40719 | { | |
40720 | if (!wxPyCheckForApp()) SWIG_fail; | |
40721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40722 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
40723 | wxPyEndAllowThreads(__tstate); | |
40724 | if (PyErr_Occurred()) SWIG_fail; | |
40725 | } | |
40726 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40727 | return resultobj; | |
40728 | fail: | |
40729 | return NULL; | |
40730 | } | |
40731 | ||
40732 | ||
40733 | SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40734 | PyObject *resultobj = 0; | |
40735 | wxString *arg1 = 0 ; | |
40736 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
40737 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
40738 | wxGenericDragImage *result = 0 ; | |
40739 | bool temp1 = false ; | |
40740 | void *argp2 = 0 ; | |
40741 | int res2 = 0 ; | |
40742 | PyObject * obj0 = 0 ; | |
40743 | PyObject * obj1 = 0 ; | |
40744 | char * kwnames[] = { | |
40745 | (char *) "str",(char *) "cursor", NULL | |
40746 | }; | |
40747 | ||
40748 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail; | |
40749 | { | |
40750 | arg1 = wxString_in_helper(obj0); | |
40751 | if (arg1 == NULL) SWIG_fail; | |
40752 | temp1 = true; | |
40753 | } | |
40754 | if (obj1) { | |
40755 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
40756 | if (!SWIG_IsOK(res2)) { | |
40757 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
36ed4f51 | 40758 | } |
1bd55598 RD |
40759 | if (!argp2) { |
40760 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d55e5bfc | 40761 | } |
1bd55598 RD |
40762 | arg2 = reinterpret_cast< wxCursor * >(argp2); |
40763 | } | |
40764 | { | |
40765 | if (!wxPyCheckForApp()) SWIG_fail; | |
40766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40767 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
40768 | wxPyEndAllowThreads(__tstate); | |
40769 | if (PyErr_Occurred()) SWIG_fail; | |
40770 | } | |
40771 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40772 | { | |
40773 | if (temp1) | |
40774 | delete arg1; | |
40775 | } | |
40776 | return resultobj; | |
40777 | fail: | |
40778 | { | |
40779 | if (temp1) | |
40780 | delete arg1; | |
40781 | } | |
40782 | return NULL; | |
40783 | } | |
40784 | ||
40785 | ||
40786 | SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40787 | PyObject *resultobj = 0; | |
40788 | wxPyTreeCtrl *arg1 = 0 ; | |
40789 | wxTreeItemId *arg2 = 0 ; | |
40790 | wxGenericDragImage *result = 0 ; | |
40791 | void *argp1 = 0 ; | |
40792 | int res1 = 0 ; | |
40793 | void *argp2 = 0 ; | |
40794 | int res2 = 0 ; | |
40795 | PyObject * obj0 = 0 ; | |
40796 | PyObject * obj1 = 0 ; | |
40797 | char * kwnames[] = { | |
40798 | (char *) "treeCtrl",(char *) "id", NULL | |
40799 | }; | |
40800 | ||
40801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
40802 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0); | |
40803 | if (!SWIG_IsOK(res1)) { | |
40804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'"); | |
40805 | } | |
40806 | if (!argp1) { | |
40807 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'"); | |
40808 | } | |
40809 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
40810 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 ); | |
40811 | if (!SWIG_IsOK(res2)) { | |
40812 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'"); | |
40813 | } | |
40814 | if (!argp2) { | |
40815 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'"); | |
40816 | } | |
40817 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
40818 | { | |
40819 | if (!wxPyCheckForApp()) SWIG_fail; | |
40820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40821 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
40822 | wxPyEndAllowThreads(__tstate); | |
40823 | if (PyErr_Occurred()) SWIG_fail; | |
40824 | } | |
40825 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40826 | return resultobj; | |
40827 | fail: | |
40828 | return NULL; | |
40829 | } | |
40830 | ||
40831 | ||
40832 | SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40833 | PyObject *resultobj = 0; | |
40834 | wxPyListCtrl *arg1 = 0 ; | |
40835 | long arg2 ; | |
40836 | wxGenericDragImage *result = 0 ; | |
40837 | void *argp1 = 0 ; | |
40838 | int res1 = 0 ; | |
40839 | long val2 ; | |
40840 | int ecode2 = 0 ; | |
40841 | PyObject * obj0 = 0 ; | |
40842 | PyObject * obj1 = 0 ; | |
40843 | char * kwnames[] = { | |
40844 | (char *) "listCtrl",(char *) "id", NULL | |
40845 | }; | |
40846 | ||
40847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
40848 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0); | |
40849 | if (!SWIG_IsOK(res1)) { | |
40850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'"); | |
40851 | } | |
40852 | if (!argp1) { | |
40853 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'"); | |
40854 | } | |
40855 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
40856 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
40857 | if (!SWIG_IsOK(ecode2)) { | |
40858 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'"); | |
40859 | } | |
40860 | arg2 = static_cast< long >(val2); | |
40861 | { | |
40862 | if (!wxPyCheckForApp()) SWIG_fail; | |
40863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40864 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
40865 | wxPyEndAllowThreads(__tstate); | |
40866 | if (PyErr_Occurred()) SWIG_fail; | |
40867 | } | |
40868 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40869 | return resultobj; | |
40870 | fail: | |
40871 | return NULL; | |
d55e5bfc RD |
40872 | } |
40873 | ||
40874 | ||
1bd55598 RD |
40875 | SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40876 | PyObject *resultobj = 0; | |
40877 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40878 | void *argp1 = 0 ; | |
40879 | int res1 = 0 ; | |
40880 | PyObject *swig_obj[1] ; | |
40881 | ||
40882 | if (!args) SWIG_fail; | |
40883 | swig_obj[0] = args; | |
40884 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 ); | |
40885 | if (!SWIG_IsOK(res1)) { | |
40886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40887 | } | |
40888 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40889 | { | |
40890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40891 | delete arg1; | |
d55e5bfc | 40892 | |
1bd55598 RD |
40893 | wxPyEndAllowThreads(__tstate); |
40894 | if (PyErr_Occurred()) SWIG_fail; | |
40895 | } | |
40896 | resultobj = SWIG_Py_Void(); | |
40897 | return resultobj; | |
40898 | fail: | |
40899 | return NULL; | |
40900 | } | |
40901 | ||
40902 | ||
40903 | SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40904 | PyObject *resultobj = 0; | |
40905 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40906 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
40907 | void *argp1 = 0 ; | |
40908 | int res1 = 0 ; | |
40909 | void *argp2 = 0 ; | |
40910 | int res2 = 0 ; | |
40911 | PyObject * obj0 = 0 ; | |
40912 | PyObject * obj1 = 0 ; | |
40913 | char * kwnames[] = { | |
40914 | (char *) "self",(char *) "bitmap", NULL | |
40915 | }; | |
40916 | ||
40917 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
40918 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40919 | if (!SWIG_IsOK(res1)) { | |
40920 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40921 | } | |
40922 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40923 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
40924 | if (!SWIG_IsOK(res2)) { | |
40925 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
40926 | } | |
40927 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
40928 | { | |
40929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40930 | (arg1)->SetBackingBitmap(arg2); | |
40931 | wxPyEndAllowThreads(__tstate); | |
40932 | if (PyErr_Occurred()) SWIG_fail; | |
40933 | } | |
40934 | resultobj = SWIG_Py_Void(); | |
40935 | return resultobj; | |
40936 | fail: | |
40937 | return NULL; | |
40938 | } | |
40939 | ||
40940 | ||
40941 | SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40942 | PyObject *resultobj = 0; | |
40943 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40944 | wxPoint *arg2 = 0 ; | |
40945 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40946 | bool arg4 = (bool) false ; | |
40947 | wxRect *arg5 = (wxRect *) NULL ; | |
40948 | bool result; | |
40949 | void *argp1 = 0 ; | |
40950 | int res1 = 0 ; | |
40951 | wxPoint temp2 ; | |
40952 | void *argp3 = 0 ; | |
40953 | int res3 = 0 ; | |
40954 | bool val4 ; | |
40955 | int ecode4 = 0 ; | |
40956 | void *argp5 = 0 ; | |
40957 | int res5 = 0 ; | |
40958 | PyObject * obj0 = 0 ; | |
40959 | PyObject * obj1 = 0 ; | |
40960 | PyObject * obj2 = 0 ; | |
40961 | PyObject * obj3 = 0 ; | |
40962 | PyObject * obj4 = 0 ; | |
40963 | char * kwnames[] = { | |
40964 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
40965 | }; | |
40966 | ||
40967 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
40968 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40969 | if (!SWIG_IsOK(res1)) { | |
40970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40971 | } | |
40972 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40973 | { | |
40974 | arg2 = &temp2; | |
40975 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
40976 | } | |
40977 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40978 | if (!SWIG_IsOK(res3)) { | |
40979 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
40980 | } | |
40981 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
40982 | if (obj3) { | |
40983 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
40984 | if (!SWIG_IsOK(ecode4)) { | |
40985 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'"); | |
40986 | } | |
40987 | arg4 = static_cast< bool >(val4); | |
40988 | } | |
40989 | if (obj4) { | |
40990 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 ); | |
40991 | if (!SWIG_IsOK(res5)) { | |
40992 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'"); | |
d55e5bfc | 40993 | } |
1bd55598 RD |
40994 | arg5 = reinterpret_cast< wxRect * >(argp5); |
40995 | } | |
40996 | { | |
40997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40998 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
40999 | wxPyEndAllowThreads(__tstate); | |
41000 | if (PyErr_Occurred()) SWIG_fail; | |
41001 | } | |
41002 | { | |
41003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41004 | } | |
41005 | return resultobj; | |
41006 | fail: | |
41007 | return NULL; | |
41008 | } | |
41009 | ||
41010 | ||
41011 | SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41012 | PyObject *resultobj = 0; | |
41013 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41014 | wxPoint *arg2 = 0 ; | |
41015 | wxWindow *arg3 = (wxWindow *) 0 ; | |
41016 | wxWindow *arg4 = (wxWindow *) 0 ; | |
41017 | bool result; | |
41018 | void *argp1 = 0 ; | |
41019 | int res1 = 0 ; | |
41020 | wxPoint temp2 ; | |
41021 | void *argp3 = 0 ; | |
41022 | int res3 = 0 ; | |
41023 | void *argp4 = 0 ; | |
41024 | int res4 = 0 ; | |
41025 | PyObject * obj0 = 0 ; | |
41026 | PyObject * obj1 = 0 ; | |
41027 | PyObject * obj2 = 0 ; | |
41028 | PyObject * obj3 = 0 ; | |
41029 | char * kwnames[] = { | |
41030 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
41031 | }; | |
41032 | ||
41033 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
41034 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41035 | if (!SWIG_IsOK(res1)) { | |
41036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
41037 | } | |
41038 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41039 | { | |
41040 | arg2 = &temp2; | |
41041 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
41042 | } | |
41043 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41044 | if (!SWIG_IsOK(res3)) { | |
41045 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
41046 | } | |
41047 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
41048 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41049 | if (!SWIG_IsOK(res4)) { | |
41050 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
41051 | } | |
41052 | arg4 = reinterpret_cast< wxWindow * >(argp4); | |
41053 | { | |
41054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41055 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
41056 | wxPyEndAllowThreads(__tstate); | |
41057 | if (PyErr_Occurred()) SWIG_fail; | |
41058 | } | |
41059 | { | |
41060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41061 | } | |
41062 | return resultobj; | |
41063 | fail: | |
41064 | return NULL; | |
d55e5bfc RD |
41065 | } |
41066 | ||
41067 | ||
1bd55598 RD |
41068 | SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41069 | PyObject *resultobj = 0; | |
41070 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41071 | bool result; | |
41072 | void *argp1 = 0 ; | |
41073 | int res1 = 0 ; | |
41074 | PyObject *swig_obj[1] ; | |
41075 | ||
41076 | if (!args) SWIG_fail; | |
41077 | swig_obj[0] = args; | |
41078 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41079 | if (!SWIG_IsOK(res1)) { | |
41080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
41081 | } | |
41082 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41083 | { | |
41084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41085 | result = (bool)(arg1)->EndDrag(); | |
41086 | wxPyEndAllowThreads(__tstate); | |
41087 | if (PyErr_Occurred()) SWIG_fail; | |
41088 | } | |
41089 | { | |
41090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41091 | } | |
41092 | return resultobj; | |
41093 | fail: | |
41094 | return NULL; | |
41095 | } | |
41096 | ||
41097 | ||
41098 | SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41099 | PyObject *resultobj = 0; | |
41100 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41101 | wxPoint *arg2 = 0 ; | |
41102 | bool result; | |
41103 | void *argp1 = 0 ; | |
41104 | int res1 = 0 ; | |
41105 | wxPoint temp2 ; | |
41106 | PyObject * obj0 = 0 ; | |
41107 | PyObject * obj1 = 0 ; | |
41108 | char * kwnames[] = { | |
41109 | (char *) "self",(char *) "pt", NULL | |
41110 | }; | |
41111 | ||
41112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail; | |
41113 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41114 | if (!SWIG_IsOK(res1)) { | |
41115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
41116 | } | |
41117 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41118 | { | |
41119 | arg2 = &temp2; | |
41120 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
41121 | } | |
41122 | { | |
41123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41124 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
41125 | wxPyEndAllowThreads(__tstate); | |
41126 | if (PyErr_Occurred()) SWIG_fail; | |
41127 | } | |
41128 | { | |
41129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41130 | } | |
41131 | return resultobj; | |
41132 | fail: | |
41133 | return NULL; | |
d55e5bfc RD |
41134 | } |
41135 | ||
41136 | ||
1bd55598 RD |
41137 | SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41138 | PyObject *resultobj = 0; | |
41139 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41140 | bool result; | |
41141 | void *argp1 = 0 ; | |
41142 | int res1 = 0 ; | |
41143 | PyObject *swig_obj[1] ; | |
41144 | ||
41145 | if (!args) SWIG_fail; | |
41146 | swig_obj[0] = args; | |
41147 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41148 | if (!SWIG_IsOK(res1)) { | |
41149 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
41150 | } | |
41151 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41152 | { | |
41153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41154 | result = (bool)(arg1)->Show(); | |
41155 | wxPyEndAllowThreads(__tstate); | |
41156 | if (PyErr_Occurred()) SWIG_fail; | |
41157 | } | |
41158 | { | |
41159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41160 | } | |
41161 | return resultobj; | |
41162 | fail: | |
41163 | return NULL; | |
d55e5bfc RD |
41164 | } |
41165 | ||
41166 | ||
1bd55598 RD |
41167 | SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41168 | PyObject *resultobj = 0; | |
41169 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41170 | bool result; | |
41171 | void *argp1 = 0 ; | |
41172 | int res1 = 0 ; | |
41173 | PyObject *swig_obj[1] ; | |
41174 | ||
41175 | if (!args) SWIG_fail; | |
41176 | swig_obj[0] = args; | |
41177 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41178 | if (!SWIG_IsOK(res1)) { | |
41179 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
41180 | } | |
41181 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41182 | { | |
41183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41184 | result = (bool)(arg1)->Hide(); | |
41185 | wxPyEndAllowThreads(__tstate); | |
41186 | if (PyErr_Occurred()) SWIG_fail; | |
41187 | } | |
41188 | { | |
41189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41190 | } | |
41191 | return resultobj; | |
41192 | fail: | |
41193 | return NULL; | |
41194 | } | |
41195 | ||
41196 | ||
41197 | SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41198 | PyObject *resultobj = 0; | |
41199 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41200 | wxPoint *arg2 = 0 ; | |
41201 | wxRect result; | |
41202 | void *argp1 = 0 ; | |
41203 | int res1 = 0 ; | |
41204 | wxPoint temp2 ; | |
41205 | PyObject * obj0 = 0 ; | |
41206 | PyObject * obj1 = 0 ; | |
41207 | char * kwnames[] = { | |
41208 | (char *) "self",(char *) "pos", NULL | |
41209 | }; | |
41210 | ||
41211 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
41212 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41213 | if (!SWIG_IsOK(res1)) { | |
41214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
41215 | } | |
41216 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41217 | { | |
41218 | arg2 = &temp2; | |
41219 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
41220 | } | |
41221 | { | |
41222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41223 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
41224 | wxPyEndAllowThreads(__tstate); | |
41225 | if (PyErr_Occurred()) SWIG_fail; | |
41226 | } | |
41227 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
41228 | return resultobj; | |
41229 | fail: | |
41230 | return NULL; | |
41231 | } | |
41232 | ||
41233 | ||
41234 | SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41235 | PyObject *resultobj = 0; | |
41236 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41237 | wxDC *arg2 = 0 ; | |
41238 | wxPoint *arg3 = 0 ; | |
41239 | bool result; | |
41240 | void *argp1 = 0 ; | |
41241 | int res1 = 0 ; | |
41242 | void *argp2 = 0 ; | |
41243 | int res2 = 0 ; | |
41244 | wxPoint temp3 ; | |
41245 | PyObject * obj0 = 0 ; | |
41246 | PyObject * obj1 = 0 ; | |
41247 | PyObject * obj2 = 0 ; | |
41248 | char * kwnames[] = { | |
41249 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
41250 | }; | |
41251 | ||
41252 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
41253 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41254 | if (!SWIG_IsOK(res1)) { | |
41255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
41256 | } | |
41257 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41258 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
41259 | if (!SWIG_IsOK(res2)) { | |
41260 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41261 | } | |
41262 | if (!argp2) { | |
41263 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41264 | } | |
41265 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
41266 | { | |
41267 | arg3 = &temp3; | |
41268 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
41269 | } | |
41270 | { | |
41271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41272 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
41273 | wxPyEndAllowThreads(__tstate); | |
41274 | if (PyErr_Occurred()) SWIG_fail; | |
41275 | } | |
41276 | { | |
41277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41278 | } | |
41279 | return resultobj; | |
41280 | fail: | |
41281 | return NULL; | |
41282 | } | |
41283 | ||
41284 | ||
41285 | SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41286 | PyObject *resultobj = 0; | |
41287 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41288 | wxDC *arg2 = 0 ; | |
41289 | wxMemoryDC *arg3 = 0 ; | |
41290 | wxRect *arg4 = 0 ; | |
41291 | wxRect *arg5 = 0 ; | |
41292 | bool result; | |
41293 | void *argp1 = 0 ; | |
41294 | int res1 = 0 ; | |
41295 | void *argp2 = 0 ; | |
41296 | int res2 = 0 ; | |
41297 | void *argp3 = 0 ; | |
41298 | int res3 = 0 ; | |
41299 | wxRect temp4 ; | |
41300 | wxRect temp5 ; | |
41301 | PyObject * obj0 = 0 ; | |
41302 | PyObject * obj1 = 0 ; | |
41303 | PyObject * obj2 = 0 ; | |
41304 | PyObject * obj3 = 0 ; | |
41305 | PyObject * obj4 = 0 ; | |
41306 | char * kwnames[] = { | |
41307 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
41308 | }; | |
41309 | ||
41310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
41311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41312 | if (!SWIG_IsOK(res1)) { | |
41313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
41314 | } | |
41315 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41316 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
41317 | if (!SWIG_IsOK(res2)) { | |
41318 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41319 | } | |
41320 | if (!argp2) { | |
41321 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41322 | } | |
41323 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
41324 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 ); | |
41325 | if (!SWIG_IsOK(res3)) { | |
41326 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'"); | |
41327 | } | |
41328 | if (!argp3) { | |
41329 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'"); | |
41330 | } | |
41331 | arg3 = reinterpret_cast< wxMemoryDC * >(argp3); | |
41332 | { | |
41333 | arg4 = &temp4; | |
41334 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
41335 | } | |
41336 | { | |
41337 | arg5 = &temp5; | |
41338 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
41339 | } | |
41340 | { | |
41341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41342 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
41343 | wxPyEndAllowThreads(__tstate); | |
41344 | if (PyErr_Occurred()) SWIG_fail; | |
41345 | } | |
41346 | { | |
41347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41348 | } | |
41349 | return resultobj; | |
41350 | fail: | |
41351 | return NULL; | |
41352 | } | |
41353 | ||
41354 | ||
41355 | SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41356 | PyObject *resultobj = 0; | |
41357 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41358 | wxPoint *arg2 = 0 ; | |
41359 | wxPoint *arg3 = 0 ; | |
41360 | bool arg4 ; | |
41361 | bool arg5 ; | |
41362 | bool result; | |
41363 | void *argp1 = 0 ; | |
41364 | int res1 = 0 ; | |
41365 | wxPoint temp2 ; | |
41366 | wxPoint temp3 ; | |
41367 | bool val4 ; | |
41368 | int ecode4 = 0 ; | |
41369 | bool val5 ; | |
41370 | int ecode5 = 0 ; | |
41371 | PyObject * obj0 = 0 ; | |
41372 | PyObject * obj1 = 0 ; | |
41373 | PyObject * obj2 = 0 ; | |
41374 | PyObject * obj3 = 0 ; | |
41375 | PyObject * obj4 = 0 ; | |
41376 | char * kwnames[] = { | |
41377 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
41378 | }; | |
41379 | ||
41380 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
41381 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41382 | if (!SWIG_IsOK(res1)) { | |
41383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
41384 | } | |
41385 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41386 | { | |
41387 | arg2 = &temp2; | |
41388 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
41389 | } | |
41390 | { | |
41391 | arg3 = &temp3; | |
41392 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
41393 | } | |
41394 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
41395 | if (!SWIG_IsOK(ecode4)) { | |
41396 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'"); | |
41397 | } | |
41398 | arg4 = static_cast< bool >(val4); | |
41399 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
41400 | if (!SWIG_IsOK(ecode5)) { | |
41401 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'"); | |
41402 | } | |
41403 | arg5 = static_cast< bool >(val5); | |
41404 | { | |
41405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41406 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
41407 | wxPyEndAllowThreads(__tstate); | |
41408 | if (PyErr_Occurred()) SWIG_fail; | |
41409 | } | |
41410 | { | |
41411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41412 | } | |
41413 | return resultobj; | |
41414 | fail: | |
41415 | return NULL; | |
d55e5bfc RD |
41416 | } |
41417 | ||
41418 | ||
1bd55598 RD |
41419 | SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41420 | PyObject *obj; | |
41421 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
41422 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj)); | |
41423 | return SWIG_Py_Void(); | |
d55e5bfc RD |
41424 | } |
41425 | ||
1bd55598 RD |
41426 | SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41427 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
41428 | } |
41429 | ||
1bd55598 RD |
41430 | SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) { |
41431 | SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only."); | |
41432 | return 1; | |
d55e5bfc RD |
41433 | } |
41434 | ||
41435 | ||
1bd55598 RD |
41436 | SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) { |
41437 | PyObject *pyobj = 0; | |
41438 | ||
41439 | { | |
41440 | #if wxUSE_UNICODE | |
41441 | pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
41442 | #else | |
41443 | pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
41444 | #endif | |
41445 | } | |
41446 | return pyobj; | |
41447 | } | |
41448 | ||
41449 | ||
41450 | SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41451 | PyObject *resultobj = 0; | |
41452 | wxWindow *arg1 = (wxWindow *) 0 ; | |
41453 | int arg2 = (int) -1 ; | |
41454 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; | |
41455 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
41456 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
41457 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
41458 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
41459 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
41460 | long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
41461 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
41462 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
41463 | wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ; | |
41464 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
41465 | wxDatePickerCtrl *result = 0 ; | |
41466 | void *argp1 = 0 ; | |
41467 | int res1 = 0 ; | |
41468 | int val2 ; | |
41469 | int ecode2 = 0 ; | |
41470 | void *argp3 = 0 ; | |
41471 | int res3 = 0 ; | |
41472 | wxPoint temp4 ; | |
41473 | wxSize temp5 ; | |
41474 | long val6 ; | |
41475 | int ecode6 = 0 ; | |
41476 | void *argp7 = 0 ; | |
41477 | int res7 = 0 ; | |
41478 | bool temp8 = false ; | |
41479 | PyObject * obj0 = 0 ; | |
41480 | PyObject * obj1 = 0 ; | |
41481 | PyObject * obj2 = 0 ; | |
41482 | PyObject * obj3 = 0 ; | |
41483 | PyObject * obj4 = 0 ; | |
41484 | PyObject * obj5 = 0 ; | |
41485 | PyObject * obj6 = 0 ; | |
41486 | PyObject * obj7 = 0 ; | |
41487 | char * kwnames[] = { | |
41488 | (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
41489 | }; | |
41490 | ||
41491 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
41492 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41493 | if (!SWIG_IsOK(res1)) { | |
41494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
41495 | } | |
41496 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
41497 | if (obj1) { | |
41498 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
41499 | if (!SWIG_IsOK(ecode2)) { | |
41500 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
41501 | } | |
41502 | arg2 = static_cast< int >(val2); | |
41503 | } | |
41504 | if (obj2) { | |
41505 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41506 | if (!SWIG_IsOK(res3)) { | |
41507 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
d55e5bfc | 41508 | } |
1bd55598 RD |
41509 | if (!argp3) { |
41510 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
d55e5bfc | 41511 | } |
1bd55598 RD |
41512 | arg3 = reinterpret_cast< wxDateTime * >(argp3); |
41513 | } | |
41514 | if (obj3) { | |
36ed4f51 | 41515 | { |
1bd55598 RD |
41516 | arg4 = &temp4; |
41517 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 41518 | } |
1bd55598 RD |
41519 | } |
41520 | if (obj4) { | |
d55e5bfc | 41521 | { |
1bd55598 RD |
41522 | arg5 = &temp5; |
41523 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 41524 | } |
1bd55598 RD |
41525 | } |
41526 | if (obj5) { | |
41527 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
41528 | if (!SWIG_IsOK(ecode6)) { | |
41529 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'"); | |
41530 | } | |
41531 | arg6 = static_cast< long >(val6); | |
41532 | } | |
41533 | if (obj6) { | |
41534 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
41535 | if (!SWIG_IsOK(res7)) { | |
41536 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 41537 | } |
1bd55598 RD |
41538 | if (!argp7) { |
41539 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 41540 | } |
1bd55598 RD |
41541 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
41542 | } | |
41543 | if (obj7) { | |
36ed4f51 | 41544 | { |
1bd55598 RD |
41545 | arg8 = wxString_in_helper(obj7); |
41546 | if (arg8 == NULL) SWIG_fail; | |
41547 | temp8 = true; | |
36ed4f51 | 41548 | } |
1bd55598 RD |
41549 | } |
41550 | { | |
41551 | if (!wxPyCheckForApp()) SWIG_fail; | |
41552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41553 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
41554 | wxPyEndAllowThreads(__tstate); | |
41555 | if (PyErr_Occurred()) SWIG_fail; | |
41556 | } | |
41557 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 ); | |
41558 | { | |
41559 | if (temp8) | |
41560 | delete arg8; | |
41561 | } | |
41562 | return resultobj; | |
41563 | fail: | |
41564 | { | |
41565 | if (temp8) | |
41566 | delete arg8; | |
41567 | } | |
41568 | return NULL; | |
d55e5bfc RD |
41569 | } |
41570 | ||
41571 | ||
1bd55598 RD |
41572 | SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41573 | PyObject *resultobj = 0; | |
41574 | wxDatePickerCtrl *result = 0 ; | |
41575 | ||
41576 | if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail; | |
41577 | { | |
41578 | if (!wxPyCheckForApp()) SWIG_fail; | |
41579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41580 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(); | |
41581 | wxPyEndAllowThreads(__tstate); | |
41582 | if (PyErr_Occurred()) SWIG_fail; | |
41583 | } | |
41584 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 ); | |
41585 | return resultobj; | |
41586 | fail: | |
41587 | return NULL; | |
41588 | } | |
41589 | ||
41590 | ||
41591 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41592 | PyObject *resultobj = 0; | |
41593 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41594 | wxWindow *arg2 = (wxWindow *) 0 ; | |
41595 | int arg3 = (int) -1 ; | |
41596 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
41597 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
41598 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
41599 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
41600 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
41601 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
41602 | long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
41603 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
41604 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
41605 | wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ; | |
41606 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
41607 | bool result; | |
41608 | void *argp1 = 0 ; | |
41609 | int res1 = 0 ; | |
41610 | void *argp2 = 0 ; | |
41611 | int res2 = 0 ; | |
41612 | int val3 ; | |
41613 | int ecode3 = 0 ; | |
41614 | void *argp4 = 0 ; | |
41615 | int res4 = 0 ; | |
41616 | wxPoint temp5 ; | |
41617 | wxSize temp6 ; | |
41618 | long val7 ; | |
41619 | int ecode7 = 0 ; | |
41620 | void *argp8 = 0 ; | |
41621 | int res8 = 0 ; | |
41622 | bool temp9 = false ; | |
41623 | PyObject * obj0 = 0 ; | |
41624 | PyObject * obj1 = 0 ; | |
41625 | PyObject * obj2 = 0 ; | |
41626 | PyObject * obj3 = 0 ; | |
41627 | PyObject * obj4 = 0 ; | |
41628 | PyObject * obj5 = 0 ; | |
41629 | PyObject * obj6 = 0 ; | |
41630 | PyObject * obj7 = 0 ; | |
41631 | PyObject * obj8 = 0 ; | |
41632 | char * kwnames[] = { | |
41633 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
41634 | }; | |
41635 | ||
41636 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
41637 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41638 | if (!SWIG_IsOK(res1)) { | |
41639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41640 | } | |
41641 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41642 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41643 | if (!SWIG_IsOK(res2)) { | |
41644 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
41645 | } | |
41646 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
41647 | if (obj2) { | |
41648 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
41649 | if (!SWIG_IsOK(ecode3)) { | |
41650 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
41651 | } | |
41652 | arg3 = static_cast< int >(val3); | |
41653 | } | |
41654 | if (obj3) { | |
41655 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41656 | if (!SWIG_IsOK(res4)) { | |
41657 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'"); | |
36ed4f51 | 41658 | } |
1bd55598 RD |
41659 | if (!argp4) { |
41660 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'"); | |
d55e5bfc | 41661 | } |
1bd55598 RD |
41662 | arg4 = reinterpret_cast< wxDateTime * >(argp4); |
41663 | } | |
41664 | if (obj4) { | |
d55e5bfc | 41665 | { |
1bd55598 RD |
41666 | arg5 = &temp5; |
41667 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 41668 | } |
1bd55598 RD |
41669 | } |
41670 | if (obj5) { | |
d55e5bfc | 41671 | { |
1bd55598 RD |
41672 | arg6 = &temp6; |
41673 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 41674 | } |
1bd55598 RD |
41675 | } |
41676 | if (obj6) { | |
41677 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
41678 | if (!SWIG_IsOK(ecode7)) { | |
41679 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
41680 | } | |
41681 | arg7 = static_cast< long >(val7); | |
41682 | } | |
41683 | if (obj7) { | |
41684 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
41685 | if (!SWIG_IsOK(res8)) { | |
41686 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 41687 | } |
1bd55598 RD |
41688 | if (!argp8) { |
41689 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 41690 | } |
1bd55598 RD |
41691 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
41692 | } | |
41693 | if (obj8) { | |
36ed4f51 | 41694 | { |
1bd55598 RD |
41695 | arg9 = wxString_in_helper(obj8); |
41696 | if (arg9 == NULL) SWIG_fail; | |
41697 | temp9 = true; | |
36ed4f51 | 41698 | } |
1bd55598 RD |
41699 | } |
41700 | { | |
41701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41702 | result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
41703 | wxPyEndAllowThreads(__tstate); | |
41704 | if (PyErr_Occurred()) SWIG_fail; | |
41705 | } | |
41706 | { | |
41707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41708 | } | |
41709 | { | |
41710 | if (temp9) | |
41711 | delete arg9; | |
41712 | } | |
41713 | return resultobj; | |
41714 | fail: | |
41715 | { | |
41716 | if (temp9) | |
41717 | delete arg9; | |
41718 | } | |
41719 | return NULL; | |
41720 | } | |
41721 | ||
41722 | ||
41723 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41724 | PyObject *resultobj = 0; | |
41725 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41726 | wxDateTime *arg2 = 0 ; | |
41727 | void *argp1 = 0 ; | |
41728 | int res1 = 0 ; | |
41729 | void *argp2 = 0 ; | |
41730 | int res2 = 0 ; | |
41731 | PyObject * obj0 = 0 ; | |
41732 | PyObject * obj1 = 0 ; | |
41733 | char * kwnames[] = { | |
41734 | (char *) "self",(char *) "dt", NULL | |
41735 | }; | |
41736 | ||
41737 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
41738 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41739 | if (!SWIG_IsOK(res1)) { | |
41740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41741 | } | |
41742 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41743 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41744 | if (!SWIG_IsOK(res2)) { | |
41745 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41746 | } | |
41747 | if (!argp2) { | |
41748 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41749 | } | |
41750 | arg2 = reinterpret_cast< wxDateTime * >(argp2); | |
41751 | { | |
41752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41753 | (arg1)->SetValue((wxDateTime const &)*arg2); | |
41754 | wxPyEndAllowThreads(__tstate); | |
41755 | if (PyErr_Occurred()) SWIG_fail; | |
41756 | } | |
41757 | resultobj = SWIG_Py_Void(); | |
41758 | return resultobj; | |
41759 | fail: | |
41760 | return NULL; | |
d55e5bfc RD |
41761 | } |
41762 | ||
41763 | ||
1bd55598 RD |
41764 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41765 | PyObject *resultobj = 0; | |
41766 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41767 | wxDateTime result; | |
41768 | void *argp1 = 0 ; | |
41769 | int res1 = 0 ; | |
41770 | PyObject *swig_obj[1] ; | |
41771 | ||
41772 | if (!args) SWIG_fail; | |
41773 | swig_obj[0] = args; | |
41774 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41775 | if (!SWIG_IsOK(res1)) { | |
41776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'"); | |
41777 | } | |
41778 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41779 | { | |
41780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41781 | result = ((wxDatePickerCtrl const *)arg1)->GetValue(); | |
41782 | wxPyEndAllowThreads(__tstate); | |
41783 | if (PyErr_Occurred()) SWIG_fail; | |
41784 | } | |
41785 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
41786 | return resultobj; | |
41787 | fail: | |
41788 | return NULL; | |
41789 | } | |
41790 | ||
41791 | ||
41792 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41793 | PyObject *resultobj = 0; | |
41794 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41795 | wxDateTime *arg2 = 0 ; | |
41796 | wxDateTime *arg3 = 0 ; | |
41797 | void *argp1 = 0 ; | |
41798 | int res1 = 0 ; | |
41799 | void *argp2 = 0 ; | |
41800 | int res2 = 0 ; | |
41801 | void *argp3 = 0 ; | |
41802 | int res3 = 0 ; | |
41803 | PyObject * obj0 = 0 ; | |
41804 | PyObject * obj1 = 0 ; | |
41805 | PyObject * obj2 = 0 ; | |
41806 | char * kwnames[] = { | |
41807 | (char *) "self",(char *) "dt1",(char *) "dt2", NULL | |
41808 | }; | |
41809 | ||
41810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
41811 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41812 | if (!SWIG_IsOK(res1)) { | |
41813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41814 | } | |
41815 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41816 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41817 | if (!SWIG_IsOK(res2)) { | |
41818 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41819 | } | |
41820 | if (!argp2) { | |
41821 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41822 | } | |
41823 | arg2 = reinterpret_cast< wxDateTime * >(argp2); | |
41824 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41825 | if (!SWIG_IsOK(res3)) { | |
41826 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
41827 | } | |
41828 | if (!argp3) { | |
41829 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
41830 | } | |
41831 | arg3 = reinterpret_cast< wxDateTime * >(argp3); | |
41832 | { | |
41833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41834 | (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
41835 | wxPyEndAllowThreads(__tstate); | |
41836 | if (PyErr_Occurred()) SWIG_fail; | |
41837 | } | |
41838 | resultobj = SWIG_Py_Void(); | |
41839 | return resultobj; | |
41840 | fail: | |
41841 | return NULL; | |
d55e5bfc RD |
41842 | } |
41843 | ||
41844 | ||
1bd55598 RD |
41845 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41846 | PyObject *resultobj = 0; | |
41847 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41848 | wxDateTime result; | |
41849 | void *argp1 = 0 ; | |
41850 | int res1 = 0 ; | |
41851 | PyObject *swig_obj[1] ; | |
41852 | ||
41853 | if (!args) SWIG_fail; | |
41854 | swig_obj[0] = args; | |
41855 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41856 | if (!SWIG_IsOK(res1)) { | |
41857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41858 | } | |
41859 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41860 | { | |
41861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41862 | result = wxDatePickerCtrl_GetLowerLimit(arg1); | |
41863 | wxPyEndAllowThreads(__tstate); | |
41864 | if (PyErr_Occurred()) SWIG_fail; | |
41865 | } | |
41866 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
41867 | return resultobj; | |
41868 | fail: | |
41869 | return NULL; | |
d55e5bfc RD |
41870 | } |
41871 | ||
41872 | ||
1bd55598 RD |
41873 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41874 | PyObject *resultobj = 0; | |
41875 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41876 | wxDateTime result; | |
41877 | void *argp1 = 0 ; | |
41878 | int res1 = 0 ; | |
41879 | PyObject *swig_obj[1] ; | |
41880 | ||
41881 | if (!args) SWIG_fail; | |
41882 | swig_obj[0] = args; | |
41883 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41884 | if (!SWIG_IsOK(res1)) { | |
41885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41886 | } | |
41887 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41888 | { | |
41889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41890 | result = wxDatePickerCtrl_GetUpperLimit(arg1); | |
41891 | wxPyEndAllowThreads(__tstate); | |
41892 | if (PyErr_Occurred()) SWIG_fail; | |
41893 | } | |
41894 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
41895 | return resultobj; | |
41896 | fail: | |
41897 | return NULL; | |
d55e5bfc RD |
41898 | } |
41899 | ||
41900 | ||
1bd55598 RD |
41901 | SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41902 | PyObject *obj; | |
41903 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
41904 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj)); | |
41905 | return SWIG_Py_Void(); | |
d55e5bfc RD |
41906 | } |
41907 | ||
1bd55598 RD |
41908 | SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41909 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
41910 | } |
41911 | ||
704eda0c RD |
41912 | SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) { |
41913 | SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only."); | |
41914 | return 1; | |
41915 | } | |
41916 | ||
41917 | ||
41918 | SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) { | |
41919 | PyObject *pyobj = 0; | |
41920 | ||
41921 | { | |
41922 | #if wxUSE_UNICODE | |
41923 | pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len()); | |
41924 | #else | |
41925 | pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len()); | |
41926 | #endif | |
41927 | } | |
41928 | return pyobj; | |
41929 | } | |
41930 | ||
41931 | ||
41932 | SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41933 | PyObject *resultobj = 0; | |
41934 | wxWindow *arg1 = (wxWindow *) 0 ; | |
41935 | int arg2 ; | |
41936 | wxString *arg3 = 0 ; | |
41937 | wxString *arg4 = 0 ; | |
41938 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
41939 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
41940 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
41941 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
41942 | long arg7 = (long) wxHL_DEFAULT_STYLE ; | |
41943 | wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ; | |
41944 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
41945 | wxHyperlinkCtrl *result = 0 ; | |
41946 | void *argp1 = 0 ; | |
41947 | int res1 = 0 ; | |
41948 | int val2 ; | |
41949 | int ecode2 = 0 ; | |
41950 | bool temp3 = false ; | |
41951 | bool temp4 = false ; | |
41952 | wxPoint temp5 ; | |
41953 | wxSize temp6 ; | |
41954 | long val7 ; | |
41955 | int ecode7 = 0 ; | |
41956 | bool temp8 = false ; | |
41957 | PyObject * obj0 = 0 ; | |
41958 | PyObject * obj1 = 0 ; | |
41959 | PyObject * obj2 = 0 ; | |
41960 | PyObject * obj3 = 0 ; | |
41961 | PyObject * obj4 = 0 ; | |
41962 | PyObject * obj5 = 0 ; | |
41963 | PyObject * obj6 = 0 ; | |
41964 | PyObject * obj7 = 0 ; | |
41965 | char * kwnames[] = { | |
41966 | (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
41967 | }; | |
41968 | ||
41969 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
41970 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41971 | if (!SWIG_IsOK(res1)) { | |
41972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
41973 | } | |
41974 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
41975 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
41976 | if (!SWIG_IsOK(ecode2)) { | |
41977 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'"); | |
41978 | } | |
41979 | arg2 = static_cast< int >(val2); | |
41980 | { | |
41981 | arg3 = wxString_in_helper(obj2); | |
41982 | if (arg3 == NULL) SWIG_fail; | |
41983 | temp3 = true; | |
41984 | } | |
41985 | { | |
41986 | arg4 = wxString_in_helper(obj3); | |
41987 | if (arg4 == NULL) SWIG_fail; | |
41988 | temp4 = true; | |
41989 | } | |
41990 | if (obj4) { | |
41991 | { | |
41992 | arg5 = &temp5; | |
41993 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
41994 | } | |
41995 | } | |
41996 | if (obj5) { | |
41997 | { | |
41998 | arg6 = &temp6; | |
41999 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
42000 | } | |
42001 | } | |
42002 | if (obj6) { | |
42003 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
42004 | if (!SWIG_IsOK(ecode7)) { | |
42005 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'"); | |
42006 | } | |
42007 | arg7 = static_cast< long >(val7); | |
42008 | } | |
42009 | if (obj7) { | |
42010 | { | |
42011 | arg8 = wxString_in_helper(obj7); | |
42012 | if (arg8 == NULL) SWIG_fail; | |
42013 | temp8 = true; | |
42014 | } | |
42015 | } | |
42016 | { | |
42017 | if (!wxPyCheckForApp()) SWIG_fail; | |
42018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42019 | result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
42020 | wxPyEndAllowThreads(__tstate); | |
42021 | if (PyErr_Occurred()) SWIG_fail; | |
42022 | } | |
42023 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 ); | |
42024 | { | |
42025 | if (temp3) | |
42026 | delete arg3; | |
42027 | } | |
42028 | { | |
42029 | if (temp4) | |
42030 | delete arg4; | |
42031 | } | |
42032 | { | |
42033 | if (temp8) | |
42034 | delete arg8; | |
42035 | } | |
42036 | return resultobj; | |
42037 | fail: | |
42038 | { | |
42039 | if (temp3) | |
42040 | delete arg3; | |
42041 | } | |
42042 | { | |
42043 | if (temp4) | |
42044 | delete arg4; | |
42045 | } | |
42046 | { | |
42047 | if (temp8) | |
42048 | delete arg8; | |
42049 | } | |
42050 | return NULL; | |
42051 | } | |
42052 | ||
42053 | ||
42054 | SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42055 | PyObject *resultobj = 0; | |
42056 | wxHyperlinkCtrl *result = 0 ; | |
42057 | ||
42058 | if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail; | |
42059 | { | |
42060 | if (!wxPyCheckForApp()) SWIG_fail; | |
42061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42062 | result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(); | |
42063 | wxPyEndAllowThreads(__tstate); | |
42064 | if (PyErr_Occurred()) SWIG_fail; | |
42065 | } | |
42066 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 ); | |
42067 | return resultobj; | |
42068 | fail: | |
42069 | return NULL; | |
42070 | } | |
42071 | ||
42072 | ||
42073 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42074 | PyObject *resultobj = 0; | |
42075 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42076 | wxWindow *arg2 = (wxWindow *) 0 ; | |
42077 | int arg3 ; | |
42078 | wxString *arg4 = 0 ; | |
42079 | wxString *arg5 = 0 ; | |
42080 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
42081 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
42082 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
42083 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
42084 | long arg8 = (long) wxHL_DEFAULT_STYLE ; | |
42085 | wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ; | |
42086 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
42087 | bool result; | |
42088 | void *argp1 = 0 ; | |
42089 | int res1 = 0 ; | |
42090 | void *argp2 = 0 ; | |
42091 | int res2 = 0 ; | |
42092 | int val3 ; | |
42093 | int ecode3 = 0 ; | |
42094 | bool temp4 = false ; | |
42095 | bool temp5 = false ; | |
42096 | wxPoint temp6 ; | |
42097 | wxSize temp7 ; | |
42098 | long val8 ; | |
42099 | int ecode8 = 0 ; | |
42100 | bool temp9 = false ; | |
42101 | PyObject * obj0 = 0 ; | |
42102 | PyObject * obj1 = 0 ; | |
42103 | PyObject * obj2 = 0 ; | |
42104 | PyObject * obj3 = 0 ; | |
42105 | PyObject * obj4 = 0 ; | |
42106 | PyObject * obj5 = 0 ; | |
42107 | PyObject * obj6 = 0 ; | |
42108 | PyObject * obj7 = 0 ; | |
42109 | PyObject * obj8 = 0 ; | |
42110 | char * kwnames[] = { | |
42111 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
42112 | }; | |
42113 | ||
42114 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
42115 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42116 | if (!SWIG_IsOK(res1)) { | |
42117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42118 | } | |
42119 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42120 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
42121 | if (!SWIG_IsOK(res2)) { | |
42122 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
42123 | } | |
42124 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
42125 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
42126 | if (!SWIG_IsOK(ecode3)) { | |
42127 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
42128 | } | |
42129 | arg3 = static_cast< int >(val3); | |
42130 | { | |
42131 | arg4 = wxString_in_helper(obj3); | |
42132 | if (arg4 == NULL) SWIG_fail; | |
42133 | temp4 = true; | |
42134 | } | |
42135 | { | |
42136 | arg5 = wxString_in_helper(obj4); | |
42137 | if (arg5 == NULL) SWIG_fail; | |
42138 | temp5 = true; | |
42139 | } | |
42140 | if (obj5) { | |
42141 | { | |
42142 | arg6 = &temp6; | |
42143 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
42144 | } | |
42145 | } | |
42146 | if (obj6) { | |
42147 | { | |
42148 | arg7 = &temp7; | |
42149 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
42150 | } | |
42151 | } | |
42152 | if (obj7) { | |
42153 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
42154 | if (!SWIG_IsOK(ecode8)) { | |
42155 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'"); | |
42156 | } | |
42157 | arg8 = static_cast< long >(val8); | |
42158 | } | |
42159 | if (obj8) { | |
42160 | { | |
42161 | arg9 = wxString_in_helper(obj8); | |
42162 | if (arg9 == NULL) SWIG_fail; | |
42163 | temp9 = true; | |
42164 | } | |
42165 | } | |
42166 | { | |
42167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42168 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9); | |
42169 | wxPyEndAllowThreads(__tstate); | |
42170 | if (PyErr_Occurred()) SWIG_fail; | |
42171 | } | |
42172 | { | |
42173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42174 | } | |
42175 | { | |
42176 | if (temp4) | |
42177 | delete arg4; | |
42178 | } | |
42179 | { | |
42180 | if (temp5) | |
42181 | delete arg5; | |
42182 | } | |
42183 | { | |
42184 | if (temp9) | |
42185 | delete arg9; | |
42186 | } | |
42187 | return resultobj; | |
42188 | fail: | |
42189 | { | |
42190 | if (temp4) | |
42191 | delete arg4; | |
42192 | } | |
42193 | { | |
42194 | if (temp5) | |
42195 | delete arg5; | |
42196 | } | |
42197 | { | |
42198 | if (temp9) | |
42199 | delete arg9; | |
42200 | } | |
42201 | return NULL; | |
42202 | } | |
42203 | ||
42204 | ||
42205 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42206 | PyObject *resultobj = 0; | |
42207 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42208 | wxColour result; | |
42209 | void *argp1 = 0 ; | |
42210 | int res1 = 0 ; | |
42211 | PyObject *swig_obj[1] ; | |
42212 | ||
42213 | if (!args) SWIG_fail; | |
42214 | swig_obj[0] = args; | |
42215 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42216 | if (!SWIG_IsOK(res1)) { | |
42217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42218 | } | |
42219 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42220 | { | |
42221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42222 | result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour(); | |
42223 | wxPyEndAllowThreads(__tstate); | |
42224 | if (PyErr_Occurred()) SWIG_fail; | |
42225 | } | |
42226 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
42227 | return resultobj; | |
42228 | fail: | |
42229 | return NULL; | |
42230 | } | |
42231 | ||
42232 | ||
42233 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42234 | PyObject *resultobj = 0; | |
42235 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42236 | wxColour *arg2 = 0 ; | |
42237 | void *argp1 = 0 ; | |
42238 | int res1 = 0 ; | |
42239 | wxColour temp2 ; | |
42240 | PyObject * obj0 = 0 ; | |
42241 | PyObject * obj1 = 0 ; | |
42242 | char * kwnames[] = { | |
42243 | (char *) "self",(char *) "colour", NULL | |
42244 | }; | |
42245 | ||
42246 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
42247 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42248 | if (!SWIG_IsOK(res1)) { | |
42249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42250 | } | |
42251 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42252 | { | |
42253 | arg2 = &temp2; | |
42254 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
42255 | } | |
42256 | { | |
42257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42258 | (arg1)->SetHoverColour((wxColour const &)*arg2); | |
42259 | wxPyEndAllowThreads(__tstate); | |
42260 | if (PyErr_Occurred()) SWIG_fail; | |
42261 | } | |
42262 | resultobj = SWIG_Py_Void(); | |
42263 | return resultobj; | |
42264 | fail: | |
42265 | return NULL; | |
42266 | } | |
42267 | ||
42268 | ||
42269 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42270 | PyObject *resultobj = 0; | |
42271 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42272 | wxColour result; | |
42273 | void *argp1 = 0 ; | |
42274 | int res1 = 0 ; | |
42275 | PyObject *swig_obj[1] ; | |
42276 | ||
42277 | if (!args) SWIG_fail; | |
42278 | swig_obj[0] = args; | |
42279 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42280 | if (!SWIG_IsOK(res1)) { | |
42281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42282 | } | |
42283 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42284 | { | |
42285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42286 | result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour(); | |
42287 | wxPyEndAllowThreads(__tstate); | |
42288 | if (PyErr_Occurred()) SWIG_fail; | |
42289 | } | |
42290 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
42291 | return resultobj; | |
42292 | fail: | |
42293 | return NULL; | |
42294 | } | |
42295 | ||
42296 | ||
42297 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42298 | PyObject *resultobj = 0; | |
42299 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42300 | wxColour *arg2 = 0 ; | |
42301 | void *argp1 = 0 ; | |
42302 | int res1 = 0 ; | |
42303 | wxColour temp2 ; | |
42304 | PyObject * obj0 = 0 ; | |
42305 | PyObject * obj1 = 0 ; | |
42306 | char * kwnames[] = { | |
42307 | (char *) "self",(char *) "colour", NULL | |
42308 | }; | |
42309 | ||
42310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
42311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42312 | if (!SWIG_IsOK(res1)) { | |
42313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42314 | } | |
42315 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42316 | { | |
42317 | arg2 = &temp2; | |
42318 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
42319 | } | |
42320 | { | |
42321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42322 | (arg1)->SetNormalColour((wxColour const &)*arg2); | |
42323 | wxPyEndAllowThreads(__tstate); | |
42324 | if (PyErr_Occurred()) SWIG_fail; | |
42325 | } | |
42326 | resultobj = SWIG_Py_Void(); | |
42327 | return resultobj; | |
42328 | fail: | |
42329 | return NULL; | |
42330 | } | |
42331 | ||
42332 | ||
42333 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42334 | PyObject *resultobj = 0; | |
42335 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42336 | wxColour result; | |
42337 | void *argp1 = 0 ; | |
42338 | int res1 = 0 ; | |
42339 | PyObject *swig_obj[1] ; | |
42340 | ||
42341 | if (!args) SWIG_fail; | |
42342 | swig_obj[0] = args; | |
42343 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42344 | if (!SWIG_IsOK(res1)) { | |
42345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42346 | } | |
42347 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42348 | { | |
42349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42350 | result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour(); | |
42351 | wxPyEndAllowThreads(__tstate); | |
42352 | if (PyErr_Occurred()) SWIG_fail; | |
42353 | } | |
42354 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
42355 | return resultobj; | |
42356 | fail: | |
42357 | return NULL; | |
42358 | } | |
42359 | ||
42360 | ||
42361 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42362 | PyObject *resultobj = 0; | |
42363 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42364 | wxColour *arg2 = 0 ; | |
42365 | void *argp1 = 0 ; | |
42366 | int res1 = 0 ; | |
42367 | wxColour temp2 ; | |
42368 | PyObject * obj0 = 0 ; | |
42369 | PyObject * obj1 = 0 ; | |
42370 | char * kwnames[] = { | |
42371 | (char *) "self",(char *) "colour", NULL | |
42372 | }; | |
42373 | ||
42374 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
42375 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42376 | if (!SWIG_IsOK(res1)) { | |
42377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42378 | } | |
42379 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42380 | { | |
42381 | arg2 = &temp2; | |
42382 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
42383 | } | |
42384 | { | |
42385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42386 | (arg1)->SetVisitedColour((wxColour const &)*arg2); | |
42387 | wxPyEndAllowThreads(__tstate); | |
42388 | if (PyErr_Occurred()) SWIG_fail; | |
42389 | } | |
42390 | resultobj = SWIG_Py_Void(); | |
42391 | return resultobj; | |
42392 | fail: | |
42393 | return NULL; | |
42394 | } | |
42395 | ||
42396 | ||
42397 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42398 | PyObject *resultobj = 0; | |
42399 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42400 | wxString result; | |
42401 | void *argp1 = 0 ; | |
42402 | int res1 = 0 ; | |
42403 | PyObject *swig_obj[1] ; | |
42404 | ||
42405 | if (!args) SWIG_fail; | |
42406 | swig_obj[0] = args; | |
42407 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42408 | if (!SWIG_IsOK(res1)) { | |
42409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42410 | } | |
42411 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42412 | { | |
42413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42414 | result = ((wxHyperlinkCtrl const *)arg1)->GetURL(); | |
42415 | wxPyEndAllowThreads(__tstate); | |
42416 | if (PyErr_Occurred()) SWIG_fail; | |
42417 | } | |
42418 | { | |
42419 | #if wxUSE_UNICODE | |
42420 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
42421 | #else | |
42422 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
42423 | #endif | |
42424 | } | |
42425 | return resultobj; | |
42426 | fail: | |
42427 | return NULL; | |
42428 | } | |
42429 | ||
42430 | ||
42431 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42432 | PyObject *resultobj = 0; | |
42433 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42434 | wxString *arg2 = 0 ; | |
42435 | void *argp1 = 0 ; | |
42436 | int res1 = 0 ; | |
42437 | bool temp2 = false ; | |
42438 | PyObject * obj0 = 0 ; | |
42439 | PyObject * obj1 = 0 ; | |
42440 | char * kwnames[] = { | |
42441 | (char *) "self",(char *) "url", NULL | |
42442 | }; | |
42443 | ||
42444 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail; | |
42445 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42446 | if (!SWIG_IsOK(res1)) { | |
42447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42448 | } | |
42449 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42450 | { | |
42451 | arg2 = wxString_in_helper(obj1); | |
42452 | if (arg2 == NULL) SWIG_fail; | |
42453 | temp2 = true; | |
42454 | } | |
42455 | { | |
42456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42457 | (arg1)->SetURL((wxString const &)*arg2); | |
42458 | wxPyEndAllowThreads(__tstate); | |
42459 | if (PyErr_Occurred()) SWIG_fail; | |
42460 | } | |
42461 | resultobj = SWIG_Py_Void(); | |
42462 | { | |
42463 | if (temp2) | |
42464 | delete arg2; | |
42465 | } | |
42466 | return resultobj; | |
42467 | fail: | |
42468 | { | |
42469 | if (temp2) | |
42470 | delete arg2; | |
42471 | } | |
42472 | return NULL; | |
42473 | } | |
42474 | ||
42475 | ||
42476 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42477 | PyObject *resultobj = 0; | |
42478 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42479 | bool arg2 = (bool) true ; | |
42480 | void *argp1 = 0 ; | |
42481 | int res1 = 0 ; | |
42482 | bool val2 ; | |
42483 | int ecode2 = 0 ; | |
42484 | PyObject * obj0 = 0 ; | |
42485 | PyObject * obj1 = 0 ; | |
42486 | char * kwnames[] = { | |
42487 | (char *) "self",(char *) "visited", NULL | |
42488 | }; | |
42489 | ||
42490 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail; | |
42491 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42492 | if (!SWIG_IsOK(res1)) { | |
42493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42494 | } | |
42495 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42496 | if (obj1) { | |
42497 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
42498 | if (!SWIG_IsOK(ecode2)) { | |
42499 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'"); | |
42500 | } | |
42501 | arg2 = static_cast< bool >(val2); | |
42502 | } | |
42503 | { | |
42504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42505 | (arg1)->SetVisited(arg2); | |
42506 | wxPyEndAllowThreads(__tstate); | |
42507 | if (PyErr_Occurred()) SWIG_fail; | |
42508 | } | |
42509 | resultobj = SWIG_Py_Void(); | |
42510 | return resultobj; | |
42511 | fail: | |
42512 | return NULL; | |
42513 | } | |
42514 | ||
42515 | ||
42516 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42517 | PyObject *resultobj = 0; | |
42518 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42519 | bool result; | |
42520 | void *argp1 = 0 ; | |
42521 | int res1 = 0 ; | |
42522 | PyObject *swig_obj[1] ; | |
42523 | ||
42524 | if (!args) SWIG_fail; | |
42525 | swig_obj[0] = args; | |
42526 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42527 | if (!SWIG_IsOK(res1)) { | |
42528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42529 | } | |
42530 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42531 | { | |
42532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42533 | result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited(); | |
42534 | wxPyEndAllowThreads(__tstate); | |
42535 | if (PyErr_Occurred()) SWIG_fail; | |
42536 | } | |
42537 | { | |
42538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42539 | } | |
42540 | return resultobj; | |
42541 | fail: | |
42542 | return NULL; | |
42543 | } | |
42544 | ||
42545 | ||
42546 | SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42547 | PyObject *obj; | |
42548 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
42549 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj)); | |
42550 | return SWIG_Py_Void(); | |
42551 | } | |
42552 | ||
42553 | SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42554 | return SWIG_Python_InitShadowInstance(args); | |
42555 | } | |
42556 | ||
42557 | SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42558 | PyObject *resultobj = 0; | |
42559 | wxObject *arg1 = (wxObject *) 0 ; | |
42560 | int arg2 ; | |
42561 | wxString *arg3 = 0 ; | |
42562 | wxHyperlinkEvent *result = 0 ; | |
42563 | void *argp1 = 0 ; | |
42564 | int res1 = 0 ; | |
42565 | int val2 ; | |
42566 | int ecode2 = 0 ; | |
42567 | bool temp3 = false ; | |
42568 | PyObject * obj0 = 0 ; | |
42569 | PyObject * obj1 = 0 ; | |
42570 | PyObject * obj2 = 0 ; | |
42571 | char * kwnames[] = { | |
42572 | (char *) "generator",(char *) "id",(char *) "url", NULL | |
42573 | }; | |
42574 | ||
42575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
42576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 ); | |
42577 | if (!SWIG_IsOK(res1)) { | |
42578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'"); | |
42579 | } | |
42580 | arg1 = reinterpret_cast< wxObject * >(argp1); | |
42581 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42582 | if (!SWIG_IsOK(ecode2)) { | |
42583 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'"); | |
42584 | } | |
42585 | arg2 = static_cast< int >(val2); | |
42586 | { | |
42587 | arg3 = wxString_in_helper(obj2); | |
42588 | if (arg3 == NULL) SWIG_fail; | |
42589 | temp3 = true; | |
42590 | } | |
42591 | { | |
42592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42593 | result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3); | |
42594 | wxPyEndAllowThreads(__tstate); | |
42595 | if (PyErr_Occurred()) SWIG_fail; | |
42596 | } | |
42597 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 ); | |
42598 | { | |
42599 | if (temp3) | |
42600 | delete arg3; | |
42601 | } | |
42602 | return resultobj; | |
42603 | fail: | |
42604 | { | |
42605 | if (temp3) | |
42606 | delete arg3; | |
42607 | } | |
42608 | return NULL; | |
42609 | } | |
42610 | ||
42611 | ||
42612 | SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42613 | PyObject *resultobj = 0; | |
42614 | wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ; | |
42615 | wxString result; | |
42616 | void *argp1 = 0 ; | |
42617 | int res1 = 0 ; | |
42618 | PyObject *swig_obj[1] ; | |
42619 | ||
42620 | if (!args) SWIG_fail; | |
42621 | swig_obj[0] = args; | |
42622 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 ); | |
42623 | if (!SWIG_IsOK(res1)) { | |
42624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'"); | |
42625 | } | |
42626 | arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1); | |
42627 | { | |
42628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42629 | result = ((wxHyperlinkEvent const *)arg1)->GetURL(); | |
42630 | wxPyEndAllowThreads(__tstate); | |
42631 | if (PyErr_Occurred()) SWIG_fail; | |
42632 | } | |
42633 | { | |
42634 | #if wxUSE_UNICODE | |
42635 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
42636 | #else | |
42637 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
42638 | #endif | |
42639 | } | |
42640 | return resultobj; | |
42641 | fail: | |
42642 | return NULL; | |
42643 | } | |
42644 | ||
42645 | ||
42646 | SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42647 | PyObject *resultobj = 0; | |
42648 | wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ; | |
42649 | wxString *arg2 = 0 ; | |
42650 | void *argp1 = 0 ; | |
42651 | int res1 = 0 ; | |
42652 | bool temp2 = false ; | |
42653 | PyObject * obj0 = 0 ; | |
42654 | PyObject * obj1 = 0 ; | |
42655 | char * kwnames[] = { | |
42656 | (char *) "self",(char *) "url", NULL | |
42657 | }; | |
42658 | ||
42659 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail; | |
42660 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 ); | |
42661 | if (!SWIG_IsOK(res1)) { | |
42662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'"); | |
42663 | } | |
42664 | arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1); | |
42665 | { | |
42666 | arg2 = wxString_in_helper(obj1); | |
42667 | if (arg2 == NULL) SWIG_fail; | |
42668 | temp2 = true; | |
42669 | } | |
42670 | { | |
42671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42672 | (arg1)->SetURL((wxString const &)*arg2); | |
42673 | wxPyEndAllowThreads(__tstate); | |
42674 | if (PyErr_Occurred()) SWIG_fail; | |
42675 | } | |
42676 | resultobj = SWIG_Py_Void(); | |
42677 | { | |
42678 | if (temp2) | |
42679 | delete arg2; | |
42680 | } | |
42681 | return resultobj; | |
42682 | fail: | |
42683 | { | |
42684 | if (temp2) | |
42685 | delete arg2; | |
42686 | } | |
42687 | return NULL; | |
42688 | } | |
42689 | ||
42690 | ||
42691 | SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42692 | PyObject *obj; | |
42693 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
42694 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj)); | |
42695 | return SWIG_Py_Void(); | |
42696 | } | |
42697 | ||
42698 | SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42699 | return SWIG_Python_InitShadowInstance(args); | |
42700 | } | |
42701 | ||
b850e7f3 RD |
42702 | SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
42703 | PyObject *resultobj = 0; | |
42704 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42705 | wxWindow *arg2 = (wxWindow *) 0 ; | |
42706 | int arg3 ; | |
42707 | wxString const &arg4_defvalue = wxEmptyString ; | |
42708 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
42709 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
42710 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
42711 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
42712 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
42713 | long arg7 = (long) 0 ; | |
42714 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
42715 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
42716 | wxString const &arg9_defvalue = wxButtonNameStr ; | |
42717 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
42718 | bool result; | |
42719 | void *argp1 = 0 ; | |
42720 | int res1 = 0 ; | |
42721 | void *argp2 = 0 ; | |
42722 | int res2 = 0 ; | |
42723 | int val3 ; | |
42724 | int ecode3 = 0 ; | |
42725 | bool temp4 = false ; | |
42726 | wxPoint temp5 ; | |
42727 | wxSize temp6 ; | |
42728 | long val7 ; | |
42729 | int ecode7 = 0 ; | |
42730 | void *argp8 = 0 ; | |
42731 | int res8 = 0 ; | |
42732 | bool temp9 = false ; | |
42733 | PyObject * obj0 = 0 ; | |
42734 | PyObject * obj1 = 0 ; | |
42735 | PyObject * obj2 = 0 ; | |
42736 | PyObject * obj3 = 0 ; | |
42737 | PyObject * obj4 = 0 ; | |
42738 | PyObject * obj5 = 0 ; | |
42739 | PyObject * obj6 = 0 ; | |
42740 | PyObject * obj7 = 0 ; | |
42741 | PyObject * obj8 = 0 ; | |
42742 | char * kwnames[] = { | |
42743 | (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
42744 | }; | |
42745 | ||
42746 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
42747 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42748 | if (!SWIG_IsOK(res1)) { | |
42749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42750 | } | |
42751 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42752 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
42753 | if (!SWIG_IsOK(res2)) { | |
42754 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
42755 | } | |
42756 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
42757 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
42758 | if (!SWIG_IsOK(ecode3)) { | |
42759 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'"); | |
42760 | } | |
42761 | arg3 = static_cast< int >(val3); | |
42762 | if (obj3) { | |
42763 | { | |
42764 | arg4 = wxString_in_helper(obj3); | |
42765 | if (arg4 == NULL) SWIG_fail; | |
42766 | temp4 = true; | |
42767 | } | |
42768 | } | |
42769 | if (obj4) { | |
42770 | { | |
42771 | arg5 = &temp5; | |
42772 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
42773 | } | |
42774 | } | |
42775 | if (obj5) { | |
42776 | { | |
42777 | arg6 = &temp6; | |
42778 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
42779 | } | |
42780 | } | |
42781 | if (obj6) { | |
42782 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
42783 | if (!SWIG_IsOK(ecode7)) { | |
42784 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'"); | |
42785 | } | |
42786 | arg7 = static_cast< long >(val7); | |
42787 | } | |
42788 | if (obj7) { | |
42789 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
42790 | if (!SWIG_IsOK(res8)) { | |
42791 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
42792 | } | |
42793 | if (!argp8) { | |
42794 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
42795 | } | |
42796 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
42797 | } | |
42798 | if (obj8) { | |
42799 | { | |
42800 | arg9 = wxString_in_helper(obj8); | |
42801 | if (arg9 == NULL) SWIG_fail; | |
42802 | temp9 = true; | |
42803 | } | |
42804 | } | |
42805 | { | |
42806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42807 | result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
42808 | wxPyEndAllowThreads(__tstate); | |
42809 | if (PyErr_Occurred()) SWIG_fail; | |
42810 | } | |
42811 | { | |
42812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42813 | } | |
42814 | { | |
42815 | if (temp4) | |
42816 | delete arg4; | |
42817 | } | |
42818 | { | |
42819 | if (temp9) | |
42820 | delete arg9; | |
42821 | } | |
42822 | return resultobj; | |
42823 | fail: | |
42824 | { | |
42825 | if (temp4) | |
42826 | delete arg4; | |
42827 | } | |
42828 | { | |
42829 | if (temp9) | |
42830 | delete arg9; | |
42831 | } | |
42832 | return NULL; | |
42833 | } | |
42834 | ||
42835 | ||
42836 | SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42837 | PyObject *resultobj = 0; | |
42838 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42839 | int arg2 ; | |
42840 | void *argp1 = 0 ; | |
42841 | int res1 = 0 ; | |
42842 | int val2 ; | |
42843 | int ecode2 = 0 ; | |
42844 | PyObject * obj0 = 0 ; | |
42845 | PyObject * obj1 = 0 ; | |
42846 | char * kwnames[] = { | |
42847 | (char *) "self",(char *) "newmargin", NULL | |
42848 | }; | |
42849 | ||
42850 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
42851 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42852 | if (!SWIG_IsOK(res1)) { | |
42853 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42854 | } | |
42855 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42856 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42857 | if (!SWIG_IsOK(ecode2)) { | |
42858 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'"); | |
42859 | } | |
42860 | arg2 = static_cast< int >(val2); | |
42861 | { | |
42862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42863 | (arg1)->SetInternalMargin(arg2); | |
42864 | wxPyEndAllowThreads(__tstate); | |
42865 | if (PyErr_Occurred()) SWIG_fail; | |
42866 | } | |
42867 | resultobj = SWIG_Py_Void(); | |
42868 | return resultobj; | |
42869 | fail: | |
42870 | return NULL; | |
42871 | } | |
42872 | ||
42873 | ||
42874 | SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42875 | PyObject *resultobj = 0; | |
42876 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42877 | int result; | |
42878 | void *argp1 = 0 ; | |
42879 | int res1 = 0 ; | |
42880 | PyObject *swig_obj[1] ; | |
42881 | ||
42882 | if (!args) SWIG_fail; | |
42883 | swig_obj[0] = args; | |
42884 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42885 | if (!SWIG_IsOK(res1)) { | |
42886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
42887 | } | |
42888 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42889 | { | |
42890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42891 | result = (int)((wxPickerBase const *)arg1)->GetInternalMargin(); | |
42892 | wxPyEndAllowThreads(__tstate); | |
42893 | if (PyErr_Occurred()) SWIG_fail; | |
42894 | } | |
42895 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
42896 | return resultobj; | |
42897 | fail: | |
42898 | return NULL; | |
42899 | } | |
42900 | ||
42901 | ||
42902 | SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42903 | PyObject *resultobj = 0; | |
42904 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42905 | int arg2 ; | |
42906 | void *argp1 = 0 ; | |
42907 | int res1 = 0 ; | |
42908 | int val2 ; | |
42909 | int ecode2 = 0 ; | |
42910 | PyObject * obj0 = 0 ; | |
42911 | PyObject * obj1 = 0 ; | |
42912 | char * kwnames[] = { | |
42913 | (char *) "self",(char *) "prop", NULL | |
42914 | }; | |
42915 | ||
42916 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail; | |
42917 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42918 | if (!SWIG_IsOK(res1)) { | |
42919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42920 | } | |
42921 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42922 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42923 | if (!SWIG_IsOK(ecode2)) { | |
42924 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'"); | |
42925 | } | |
42926 | arg2 = static_cast< int >(val2); | |
42927 | { | |
42928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42929 | (arg1)->SetTextCtrlProportion(arg2); | |
42930 | wxPyEndAllowThreads(__tstate); | |
42931 | if (PyErr_Occurred()) SWIG_fail; | |
42932 | } | |
42933 | resultobj = SWIG_Py_Void(); | |
42934 | return resultobj; | |
42935 | fail: | |
42936 | return NULL; | |
42937 | } | |
42938 | ||
42939 | ||
42940 | SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42941 | PyObject *resultobj = 0; | |
42942 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42943 | int result; | |
42944 | void *argp1 = 0 ; | |
42945 | int res1 = 0 ; | |
42946 | PyObject *swig_obj[1] ; | |
42947 | ||
42948 | if (!args) SWIG_fail; | |
42949 | swig_obj[0] = args; | |
42950 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42951 | if (!SWIG_IsOK(res1)) { | |
42952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
42953 | } | |
42954 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42955 | { | |
42956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42957 | result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion(); | |
42958 | wxPyEndAllowThreads(__tstate); | |
42959 | if (PyErr_Occurred()) SWIG_fail; | |
42960 | } | |
42961 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
42962 | return resultobj; | |
42963 | fail: | |
42964 | return NULL; | |
42965 | } | |
42966 | ||
42967 | ||
1eeb270e RD |
42968 | SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
42969 | PyObject *resultobj = 0; | |
42970 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42971 | int arg2 ; | |
42972 | void *argp1 = 0 ; | |
42973 | int res1 = 0 ; | |
42974 | int val2 ; | |
42975 | int ecode2 = 0 ; | |
42976 | PyObject * obj0 = 0 ; | |
42977 | PyObject * obj1 = 0 ; | |
42978 | char * kwnames[] = { | |
42979 | (char *) "self",(char *) "prop", NULL | |
42980 | }; | |
42981 | ||
42982 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail; | |
42983 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42984 | if (!SWIG_IsOK(res1)) { | |
42985 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42986 | } | |
42987 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42988 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42989 | if (!SWIG_IsOK(ecode2)) { | |
42990 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'"); | |
42991 | } | |
42992 | arg2 = static_cast< int >(val2); | |
42993 | { | |
42994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42995 | (arg1)->SetPickerCtrlProportion(arg2); | |
42996 | wxPyEndAllowThreads(__tstate); | |
42997 | if (PyErr_Occurred()) SWIG_fail; | |
42998 | } | |
42999 | resultobj = SWIG_Py_Void(); | |
43000 | return resultobj; | |
43001 | fail: | |
43002 | return NULL; | |
43003 | } | |
43004 | ||
43005 | ||
43006 | SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43007 | PyObject *resultobj = 0; | |
43008 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43009 | int result; | |
43010 | void *argp1 = 0 ; | |
43011 | int res1 = 0 ; | |
43012 | PyObject *swig_obj[1] ; | |
43013 | ||
43014 | if (!args) SWIG_fail; | |
43015 | swig_obj[0] = args; | |
43016 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43017 | if (!SWIG_IsOK(res1)) { | |
43018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
43019 | } | |
43020 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43021 | { | |
43022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43023 | result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion(); | |
43024 | wxPyEndAllowThreads(__tstate); | |
43025 | if (PyErr_Occurred()) SWIG_fail; | |
43026 | } | |
43027 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
43028 | return resultobj; | |
43029 | fail: | |
43030 | return NULL; | |
43031 | } | |
43032 | ||
43033 | ||
b02396e8 RD |
43034 | SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
43035 | PyObject *resultobj = 0; | |
43036 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43037 | bool result; | |
43038 | void *argp1 = 0 ; | |
43039 | int res1 = 0 ; | |
43040 | PyObject *swig_obj[1] ; | |
43041 | ||
43042 | if (!args) SWIG_fail; | |
43043 | swig_obj[0] = args; | |
43044 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43045 | if (!SWIG_IsOK(res1)) { | |
43046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
43047 | } | |
43048 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43049 | { | |
43050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43051 | result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable(); | |
43052 | wxPyEndAllowThreads(__tstate); | |
43053 | if (PyErr_Occurred()) SWIG_fail; | |
43054 | } | |
43055 | { | |
43056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43057 | } | |
43058 | return resultobj; | |
43059 | fail: | |
43060 | return NULL; | |
43061 | } | |
43062 | ||
43063 | ||
43064 | SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43065 | PyObject *resultobj = 0; | |
43066 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43067 | bool arg2 = (bool) true ; | |
43068 | void *argp1 = 0 ; | |
43069 | int res1 = 0 ; | |
43070 | bool val2 ; | |
43071 | int ecode2 = 0 ; | |
43072 | PyObject * obj0 = 0 ; | |
43073 | PyObject * obj1 = 0 ; | |
43074 | char * kwnames[] = { | |
43075 | (char *) "self",(char *) "grow", NULL | |
43076 | }; | |
43077 | ||
43078 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail; | |
43079 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43080 | if (!SWIG_IsOK(res1)) { | |
43081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
43082 | } | |
43083 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43084 | if (obj1) { | |
43085 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
43086 | if (!SWIG_IsOK(ecode2)) { | |
43087 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'"); | |
43088 | } | |
43089 | arg2 = static_cast< bool >(val2); | |
43090 | } | |
43091 | { | |
43092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43093 | (arg1)->SetTextCtrlGrowable(arg2); | |
43094 | wxPyEndAllowThreads(__tstate); | |
43095 | if (PyErr_Occurred()) SWIG_fail; | |
43096 | } | |
43097 | resultobj = SWIG_Py_Void(); | |
43098 | return resultobj; | |
43099 | fail: | |
43100 | return NULL; | |
43101 | } | |
43102 | ||
43103 | ||
43104 | SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43105 | PyObject *resultobj = 0; | |
43106 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43107 | bool result; | |
43108 | void *argp1 = 0 ; | |
43109 | int res1 = 0 ; | |
43110 | PyObject *swig_obj[1] ; | |
43111 | ||
43112 | if (!args) SWIG_fail; | |
43113 | swig_obj[0] = args; | |
43114 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43115 | if (!SWIG_IsOK(res1)) { | |
43116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
43117 | } | |
43118 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43119 | { | |
43120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43121 | result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable(); | |
43122 | wxPyEndAllowThreads(__tstate); | |
43123 | if (PyErr_Occurred()) SWIG_fail; | |
43124 | } | |
43125 | { | |
43126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43127 | } | |
43128 | return resultobj; | |
43129 | fail: | |
43130 | return NULL; | |
43131 | } | |
43132 | ||
43133 | ||
43134 | SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43135 | PyObject *resultobj = 0; | |
43136 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43137 | bool arg2 = (bool) true ; | |
43138 | void *argp1 = 0 ; | |
43139 | int res1 = 0 ; | |
43140 | bool val2 ; | |
43141 | int ecode2 = 0 ; | |
43142 | PyObject * obj0 = 0 ; | |
43143 | PyObject * obj1 = 0 ; | |
43144 | char * kwnames[] = { | |
43145 | (char *) "self",(char *) "grow", NULL | |
43146 | }; | |
43147 | ||
43148 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail; | |
43149 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43150 | if (!SWIG_IsOK(res1)) { | |
43151 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
43152 | } | |
43153 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43154 | if (obj1) { | |
43155 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
43156 | if (!SWIG_IsOK(ecode2)) { | |
43157 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'"); | |
43158 | } | |
43159 | arg2 = static_cast< bool >(val2); | |
43160 | } | |
43161 | { | |
43162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43163 | (arg1)->SetPickerCtrlGrowable(arg2); | |
43164 | wxPyEndAllowThreads(__tstate); | |
43165 | if (PyErr_Occurred()) SWIG_fail; | |
43166 | } | |
43167 | resultobj = SWIG_Py_Void(); | |
43168 | return resultobj; | |
43169 | fail: | |
43170 | return NULL; | |
43171 | } | |
43172 | ||
43173 | ||
b850e7f3 RD |
43174 | SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
43175 | PyObject *resultobj = 0; | |
43176 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43177 | bool result; | |
43178 | void *argp1 = 0 ; | |
43179 | int res1 = 0 ; | |
43180 | PyObject *swig_obj[1] ; | |
43181 | ||
43182 | if (!args) SWIG_fail; | |
43183 | swig_obj[0] = args; | |
43184 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43185 | if (!SWIG_IsOK(res1)) { | |
43186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
43187 | } | |
43188 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43189 | { | |
43190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43191 | result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl(); | |
43192 | wxPyEndAllowThreads(__tstate); | |
43193 | if (PyErr_Occurred()) SWIG_fail; | |
43194 | } | |
43195 | { | |
43196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43197 | } | |
43198 | return resultobj; | |
43199 | fail: | |
43200 | return NULL; | |
43201 | } | |
43202 | ||
43203 | ||
43204 | SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43205 | PyObject *resultobj = 0; | |
43206 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43207 | wxTextCtrl *result = 0 ; | |
43208 | void *argp1 = 0 ; | |
43209 | int res1 = 0 ; | |
43210 | PyObject *swig_obj[1] ; | |
43211 | ||
43212 | if (!args) SWIG_fail; | |
43213 | swig_obj[0] = args; | |
43214 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43215 | if (!SWIG_IsOK(res1)) { | |
43216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
43217 | } | |
43218 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43219 | { | |
43220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43221 | result = (wxTextCtrl *)(arg1)->GetTextCtrl(); | |
43222 | wxPyEndAllowThreads(__tstate); | |
43223 | if (PyErr_Occurred()) SWIG_fail; | |
43224 | } | |
43225 | { | |
43226 | resultobj = wxPyMake_wxObject(result, 0); | |
43227 | } | |
43228 | return resultobj; | |
43229 | fail: | |
43230 | return NULL; | |
43231 | } | |
43232 | ||
43233 | ||
43234 | SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43235 | PyObject *resultobj = 0; | |
43236 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43237 | wxControl *result = 0 ; | |
43238 | void *argp1 = 0 ; | |
43239 | int res1 = 0 ; | |
43240 | PyObject *swig_obj[1] ; | |
43241 | ||
43242 | if (!args) SWIG_fail; | |
43243 | swig_obj[0] = args; | |
43244 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43245 | if (!SWIG_IsOK(res1)) { | |
43246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
43247 | } | |
43248 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43249 | { | |
43250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43251 | result = (wxControl *)(arg1)->GetPickerCtrl(); | |
43252 | wxPyEndAllowThreads(__tstate); | |
43253 | if (PyErr_Occurred()) SWIG_fail; | |
43254 | } | |
43255 | { | |
43256 | resultobj = wxPyMake_wxObject(result, 0); | |
43257 | } | |
43258 | return resultobj; | |
43259 | fail: | |
43260 | return NULL; | |
43261 | } | |
43262 | ||
43263 | ||
43264 | SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43265 | PyObject *obj; | |
43266 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
43267 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj)); | |
43268 | return SWIG_Py_Void(); | |
43269 | } | |
43270 | ||
43271 | SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) { | |
43272 | SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only."); | |
43273 | return 1; | |
43274 | } | |
43275 | ||
43276 | ||
43277 | SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) { | |
43278 | PyObject *pyobj = 0; | |
43279 | ||
43280 | { | |
43281 | #if wxUSE_UNICODE | |
43282 | pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len()); | |
43283 | #else | |
43284 | pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len()); | |
43285 | #endif | |
43286 | } | |
43287 | return pyobj; | |
43288 | } | |
43289 | ||
43290 | ||
43291 | SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43292 | PyObject *resultobj = 0; | |
43293 | wxWindow *arg1 = (wxWindow *) 0 ; | |
43294 | int arg2 = (int) -1 ; | |
43295 | wxColour const &arg3_defvalue = *wxBLACK ; | |
43296 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
43297 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
43298 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
43299 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
43300 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
43301 | long arg6 = (long) wxCLRP_DEFAULT_STYLE ; | |
43302 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
43303 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
43304 | wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ; | |
43305 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
43306 | wxColourPickerCtrl *result = 0 ; | |
43307 | void *argp1 = 0 ; | |
43308 | int res1 = 0 ; | |
43309 | int val2 ; | |
43310 | int ecode2 = 0 ; | |
43311 | wxColour temp3 ; | |
43312 | wxPoint temp4 ; | |
43313 | wxSize temp5 ; | |
43314 | long val6 ; | |
43315 | int ecode6 = 0 ; | |
43316 | void *argp7 = 0 ; | |
43317 | int res7 = 0 ; | |
43318 | bool temp8 = false ; | |
43319 | PyObject * obj0 = 0 ; | |
43320 | PyObject * obj1 = 0 ; | |
43321 | PyObject * obj2 = 0 ; | |
43322 | PyObject * obj3 = 0 ; | |
43323 | PyObject * obj4 = 0 ; | |
43324 | PyObject * obj5 = 0 ; | |
43325 | PyObject * obj6 = 0 ; | |
43326 | PyObject * obj7 = 0 ; | |
43327 | char * kwnames[] = { | |
43328 | (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
43329 | }; | |
43330 | ||
43331 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
43332 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
43333 | if (!SWIG_IsOK(res1)) { | |
43334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
43335 | } | |
43336 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
43337 | if (obj1) { | |
43338 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
43339 | if (!SWIG_IsOK(ecode2)) { | |
43340 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
43341 | } | |
43342 | arg2 = static_cast< int >(val2); | |
43343 | } | |
43344 | if (obj2) { | |
43345 | { | |
43346 | arg3 = &temp3; | |
43347 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
43348 | } | |
43349 | } | |
43350 | if (obj3) { | |
43351 | { | |
43352 | arg4 = &temp4; | |
43353 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
43354 | } | |
43355 | } | |
43356 | if (obj4) { | |
43357 | { | |
43358 | arg5 = &temp5; | |
43359 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
43360 | } | |
43361 | } | |
43362 | if (obj5) { | |
43363 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
43364 | if (!SWIG_IsOK(ecode6)) { | |
43365 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'"); | |
43366 | } | |
43367 | arg6 = static_cast< long >(val6); | |
43368 | } | |
43369 | if (obj6) { | |
43370 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
43371 | if (!SWIG_IsOK(res7)) { | |
43372 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
43373 | } | |
43374 | if (!argp7) { | |
43375 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
43376 | } | |
43377 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
43378 | } | |
43379 | if (obj7) { | |
43380 | { | |
43381 | arg8 = wxString_in_helper(obj7); | |
43382 | if (arg8 == NULL) SWIG_fail; | |
43383 | temp8 = true; | |
43384 | } | |
43385 | } | |
43386 | { | |
43387 | if (!wxPyCheckForApp()) SWIG_fail; | |
43388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43389 | result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
43390 | wxPyEndAllowThreads(__tstate); | |
43391 | if (PyErr_Occurred()) SWIG_fail; | |
43392 | } | |
43393 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 ); | |
43394 | { | |
43395 | if (temp8) | |
43396 | delete arg8; | |
43397 | } | |
43398 | return resultobj; | |
43399 | fail: | |
43400 | { | |
43401 | if (temp8) | |
43402 | delete arg8; | |
43403 | } | |
43404 | return NULL; | |
43405 | } | |
43406 | ||
43407 | ||
43408 | SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43409 | PyObject *resultobj = 0; | |
43410 | wxColourPickerCtrl *result = 0 ; | |
43411 | ||
43412 | if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail; | |
43413 | { | |
43414 | if (!wxPyCheckForApp()) SWIG_fail; | |
43415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43416 | result = (wxColourPickerCtrl *)new wxColourPickerCtrl(); | |
43417 | wxPyEndAllowThreads(__tstate); | |
43418 | if (PyErr_Occurred()) SWIG_fail; | |
43419 | } | |
43420 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 ); | |
43421 | return resultobj; | |
43422 | fail: | |
43423 | return NULL; | |
43424 | } | |
43425 | ||
43426 | ||
43427 | SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43428 | PyObject *resultobj = 0; | |
43429 | wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ; | |
43430 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43431 | int arg3 ; | |
43432 | wxColour const &arg4_defvalue = *wxBLACK ; | |
43433 | wxColour *arg4 = (wxColour *) &arg4_defvalue ; | |
43434 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
43435 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
43436 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
43437 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
43438 | long arg7 = (long) wxCLRP_DEFAULT_STYLE ; | |
43439 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
43440 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
43441 | wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ; | |
43442 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
43443 | bool result; | |
43444 | void *argp1 = 0 ; | |
43445 | int res1 = 0 ; | |
43446 | void *argp2 = 0 ; | |
43447 | int res2 = 0 ; | |
43448 | int val3 ; | |
43449 | int ecode3 = 0 ; | |
43450 | wxColour temp4 ; | |
43451 | wxPoint temp5 ; | |
43452 | wxSize temp6 ; | |
43453 | long val7 ; | |
43454 | int ecode7 = 0 ; | |
43455 | void *argp8 = 0 ; | |
43456 | int res8 = 0 ; | |
43457 | bool temp9 = false ; | |
43458 | PyObject * obj0 = 0 ; | |
43459 | PyObject * obj1 = 0 ; | |
43460 | PyObject * obj2 = 0 ; | |
43461 | PyObject * obj3 = 0 ; | |
43462 | PyObject * obj4 = 0 ; | |
43463 | PyObject * obj5 = 0 ; | |
43464 | PyObject * obj6 = 0 ; | |
43465 | PyObject * obj7 = 0 ; | |
43466 | PyObject * obj8 = 0 ; | |
43467 | char * kwnames[] = { | |
43468 | (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
43469 | }; | |
43470 | ||
43471 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
43472 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 ); | |
43473 | if (!SWIG_IsOK(res1)) { | |
43474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'"); | |
43475 | } | |
43476 | arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1); | |
43477 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
43478 | if (!SWIG_IsOK(res2)) { | |
43479 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
43480 | } | |
43481 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
43482 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
43483 | if (!SWIG_IsOK(ecode3)) { | |
43484 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
43485 | } | |
43486 | arg3 = static_cast< int >(val3); | |
43487 | if (obj3) { | |
43488 | { | |
43489 | arg4 = &temp4; | |
43490 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
43491 | } | |
43492 | } | |
43493 | if (obj4) { | |
43494 | { | |
43495 | arg5 = &temp5; | |
43496 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
43497 | } | |
43498 | } | |
43499 | if (obj5) { | |
43500 | { | |
43501 | arg6 = &temp6; | |
43502 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
43503 | } | |
43504 | } | |
43505 | if (obj6) { | |
43506 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
43507 | if (!SWIG_IsOK(ecode7)) { | |
43508 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
43509 | } | |
43510 | arg7 = static_cast< long >(val7); | |
43511 | } | |
43512 | if (obj7) { | |
43513 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
43514 | if (!SWIG_IsOK(res8)) { | |
43515 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
43516 | } | |
43517 | if (!argp8) { | |
43518 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
43519 | } | |
43520 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
43521 | } | |
43522 | if (obj8) { | |
43523 | { | |
43524 | arg9 = wxString_in_helper(obj8); | |
43525 | if (arg9 == NULL) SWIG_fail; | |
43526 | temp9 = true; | |
43527 | } | |
43528 | } | |
43529 | { | |
43530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43531 | result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
43532 | wxPyEndAllowThreads(__tstate); | |
43533 | if (PyErr_Occurred()) SWIG_fail; | |
43534 | } | |
43535 | { | |
43536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43537 | } | |
43538 | { | |
43539 | if (temp9) | |
43540 | delete arg9; | |
43541 | } | |
43542 | return resultobj; | |
43543 | fail: | |
43544 | { | |
43545 | if (temp9) | |
43546 | delete arg9; | |
43547 | } | |
43548 | return NULL; | |
43549 | } | |
43550 | ||
43551 | ||
43552 | SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43553 | PyObject *resultobj = 0; | |
43554 | wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ; | |
43555 | wxColour result; | |
43556 | void *argp1 = 0 ; | |
43557 | int res1 = 0 ; | |
43558 | PyObject *swig_obj[1] ; | |
43559 | ||
43560 | if (!args) SWIG_fail; | |
43561 | swig_obj[0] = args; | |
43562 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 ); | |
43563 | if (!SWIG_IsOK(res1)) { | |
43564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'"); | |
43565 | } | |
43566 | arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1); | |
43567 | { | |
43568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43569 | result = ((wxColourPickerCtrl const *)arg1)->GetColour(); | |
43570 | wxPyEndAllowThreads(__tstate); | |
43571 | if (PyErr_Occurred()) SWIG_fail; | |
43572 | } | |
43573 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
43574 | return resultobj; | |
43575 | fail: | |
43576 | return NULL; | |
43577 | } | |
43578 | ||
43579 | ||
43580 | SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43581 | PyObject *resultobj = 0; | |
43582 | wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ; | |
43583 | wxColour *arg2 = 0 ; | |
43584 | void *argp1 = 0 ; | |
43585 | int res1 = 0 ; | |
43586 | wxColour temp2 ; | |
43587 | PyObject * obj0 = 0 ; | |
43588 | PyObject * obj1 = 0 ; | |
43589 | char * kwnames[] = { | |
43590 | (char *) "self",(char *) "col", NULL | |
43591 | }; | |
43592 | ||
43593 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
43594 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 ); | |
43595 | if (!SWIG_IsOK(res1)) { | |
43596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'"); | |
43597 | } | |
43598 | arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1); | |
43599 | { | |
43600 | arg2 = &temp2; | |
43601 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
43602 | } | |
43603 | { | |
43604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43605 | (arg1)->SetColour((wxColour const &)*arg2); | |
43606 | wxPyEndAllowThreads(__tstate); | |
43607 | if (PyErr_Occurred()) SWIG_fail; | |
43608 | } | |
43609 | resultobj = SWIG_Py_Void(); | |
43610 | return resultobj; | |
43611 | fail: | |
43612 | return NULL; | |
43613 | } | |
43614 | ||
43615 | ||
43616 | SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43617 | PyObject *obj; | |
43618 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
43619 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj)); | |
43620 | return SWIG_Py_Void(); | |
43621 | } | |
43622 | ||
43623 | SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43624 | return SWIG_Python_InitShadowInstance(args); | |
43625 | } | |
43626 | ||
43627 | SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43628 | PyObject *resultobj = 0; | |
43629 | wxObject *arg1 = (wxObject *) 0 ; | |
43630 | int arg2 ; | |
43631 | wxColour *arg3 = 0 ; | |
43632 | wxColourPickerEvent *result = 0 ; | |
43633 | void *argp1 = 0 ; | |
43634 | int res1 = 0 ; | |
43635 | int val2 ; | |
43636 | int ecode2 = 0 ; | |
43637 | wxColour temp3 ; | |
43638 | PyObject * obj0 = 0 ; | |
43639 | PyObject * obj1 = 0 ; | |
43640 | PyObject * obj2 = 0 ; | |
43641 | char * kwnames[] = { | |
43642 | (char *) "generator",(char *) "id",(char *) "col", NULL | |
43643 | }; | |
43644 | ||
43645 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
43646 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 ); | |
43647 | if (!SWIG_IsOK(res1)) { | |
43648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'"); | |
43649 | } | |
43650 | arg1 = reinterpret_cast< wxObject * >(argp1); | |
43651 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
43652 | if (!SWIG_IsOK(ecode2)) { | |
43653 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'"); | |
43654 | } | |
43655 | arg2 = static_cast< int >(val2); | |
43656 | { | |
43657 | arg3 = &temp3; | |
43658 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
43659 | } | |
43660 | { | |
43661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43662 | result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3); | |
43663 | wxPyEndAllowThreads(__tstate); | |
43664 | if (PyErr_Occurred()) SWIG_fail; | |
43665 | } | |
43666 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 ); | |
43667 | return resultobj; | |
43668 | fail: | |
43669 | return NULL; | |
43670 | } | |
43671 | ||
43672 | ||
43673 | SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43674 | PyObject *resultobj = 0; | |
43675 | wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ; | |
43676 | wxColour result; | |
43677 | void *argp1 = 0 ; | |
43678 | int res1 = 0 ; | |
43679 | PyObject *swig_obj[1] ; | |
43680 | ||
43681 | if (!args) SWIG_fail; | |
43682 | swig_obj[0] = args; | |
43683 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 ); | |
43684 | if (!SWIG_IsOK(res1)) { | |
43685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'"); | |
43686 | } | |
43687 | arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1); | |
43688 | { | |
43689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43690 | result = ((wxColourPickerEvent const *)arg1)->GetColour(); | |
43691 | wxPyEndAllowThreads(__tstate); | |
43692 | if (PyErr_Occurred()) SWIG_fail; | |
43693 | } | |
43694 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
43695 | return resultobj; | |
43696 | fail: | |
43697 | return NULL; | |
43698 | } | |
43699 | ||
43700 | ||
43701 | SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43702 | PyObject *resultobj = 0; | |
43703 | wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ; | |
43704 | wxColour *arg2 = 0 ; | |
43705 | void *argp1 = 0 ; | |
43706 | int res1 = 0 ; | |
43707 | wxColour temp2 ; | |
43708 | PyObject * obj0 = 0 ; | |
43709 | PyObject * obj1 = 0 ; | |
43710 | char * kwnames[] = { | |
43711 | (char *) "self",(char *) "c", NULL | |
43712 | }; | |
43713 | ||
43714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
43715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 ); | |
43716 | if (!SWIG_IsOK(res1)) { | |
43717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'"); | |
43718 | } | |
43719 | arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1); | |
43720 | { | |
43721 | arg2 = &temp2; | |
43722 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
43723 | } | |
43724 | { | |
43725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43726 | (arg1)->SetColour((wxColour const &)*arg2); | |
43727 | wxPyEndAllowThreads(__tstate); | |
43728 | if (PyErr_Occurred()) SWIG_fail; | |
43729 | } | |
43730 | resultobj = SWIG_Py_Void(); | |
43731 | return resultobj; | |
43732 | fail: | |
43733 | return NULL; | |
43734 | } | |
43735 | ||
43736 | ||
43737 | SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43738 | PyObject *obj; | |
43739 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
43740 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj)); | |
43741 | return SWIG_Py_Void(); | |
43742 | } | |
43743 | ||
43744 | SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43745 | return SWIG_Python_InitShadowInstance(args); | |
43746 | } | |
43747 | ||
43748 | SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) { | |
43749 | SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only."); | |
43750 | return 1; | |
43751 | } | |
43752 | ||
43753 | ||
43754 | SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) { | |
43755 | PyObject *pyobj = 0; | |
43756 | ||
43757 | { | |
43758 | #if wxUSE_UNICODE | |
43759 | pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len()); | |
43760 | #else | |
43761 | pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len()); | |
43762 | #endif | |
43763 | } | |
43764 | return pyobj; | |
43765 | } | |
43766 | ||
43767 | ||
43768 | SWIGINTERN int FileSelectorPromptStr_set(PyObject *) { | |
43769 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only."); | |
43770 | return 1; | |
43771 | } | |
43772 | ||
43773 | ||
43774 | SWIGINTERN PyObject *FileSelectorPromptStr_get(void) { | |
43775 | PyObject *pyobj = 0; | |
43776 | ||
43777 | { | |
43778 | #if wxUSE_UNICODE | |
43779 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
43780 | #else | |
43781 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
43782 | #endif | |
43783 | } | |
43784 | return pyobj; | |
43785 | } | |
43786 | ||
43787 | ||
43788 | SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) { | |
43789 | SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only."); | |
43790 | return 1; | |
43791 | } | |
43792 | ||
43793 | ||
43794 | SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) { | |
43795 | PyObject *pyobj = 0; | |
43796 | ||
43797 | { | |
43798 | #if wxUSE_UNICODE | |
43799 | pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len()); | |
43800 | #else | |
43801 | pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len()); | |
43802 | #endif | |
43803 | } | |
43804 | return pyobj; | |
43805 | } | |
43806 | ||
43807 | ||
43808 | SWIGINTERN int DirSelectorPromptStr_set(PyObject *) { | |
43809 | SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only."); | |
43810 | return 1; | |
43811 | } | |
43812 | ||
43813 | ||
43814 | SWIGINTERN PyObject *DirSelectorPromptStr_get(void) { | |
43815 | PyObject *pyobj = 0; | |
43816 | ||
43817 | { | |
43818 | #if wxUSE_UNICODE | |
43819 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
43820 | #else | |
43821 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
43822 | #endif | |
43823 | } | |
43824 | return pyobj; | |
43825 | } | |
43826 | ||
43827 | ||
43828 | SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) { | |
43829 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
43830 | return 1; | |
43831 | } | |
43832 | ||
43833 | ||
43834 | SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) { | |
43835 | PyObject *pyobj = 0; | |
43836 | ||
43837 | { | |
43838 | #if wxUSE_UNICODE | |
43839 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
43840 | #else | |
43841 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
43842 | #endif | |
43843 | } | |
43844 | return pyobj; | |
43845 | } | |
43846 | ||
43847 | ||
43848 | SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43849 | PyObject *resultobj = 0; | |
43850 | wxWindow *arg1 = (wxWindow *) 0 ; | |
43851 | int arg2 = (int) -1 ; | |
43852 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
43853 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
43854 | wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ; | |
43855 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
43856 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
43857 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
43858 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
43859 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
43860 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
43861 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
43862 | long arg8 = (long) wxFLP_DEFAULT_STYLE ; | |
43863 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
43864 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
43865 | wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ; | |
43866 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
43867 | wxFilePickerCtrl *result = 0 ; | |
43868 | void *argp1 = 0 ; | |
43869 | int res1 = 0 ; | |
43870 | int val2 ; | |
43871 | int ecode2 = 0 ; | |
43872 | bool temp3 = false ; | |
43873 | bool temp4 = false ; | |
43874 | bool temp5 = false ; | |
43875 | wxPoint temp6 ; | |
43876 | wxSize temp7 ; | |
43877 | long val8 ; | |
43878 | int ecode8 = 0 ; | |
43879 | void *argp9 = 0 ; | |
43880 | int res9 = 0 ; | |
43881 | bool temp10 = false ; | |
43882 | PyObject * obj0 = 0 ; | |
43883 | PyObject * obj1 = 0 ; | |
43884 | PyObject * obj2 = 0 ; | |
43885 | PyObject * obj3 = 0 ; | |
43886 | PyObject * obj4 = 0 ; | |
43887 | PyObject * obj5 = 0 ; | |
43888 | PyObject * obj6 = 0 ; | |
43889 | PyObject * obj7 = 0 ; | |
43890 | PyObject * obj8 = 0 ; | |
43891 | PyObject * obj9 = 0 ; | |
43892 | char * kwnames[] = { | |
43893 | (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
43894 | }; | |
43895 | ||
43896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
43897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
43898 | if (!SWIG_IsOK(res1)) { | |
43899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
43900 | } | |
43901 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
43902 | if (obj1) { | |
43903 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
43904 | if (!SWIG_IsOK(ecode2)) { | |
43905 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
43906 | } | |
43907 | arg2 = static_cast< int >(val2); | |
43908 | } | |
43909 | if (obj2) { | |
43910 | { | |
43911 | arg3 = wxString_in_helper(obj2); | |
43912 | if (arg3 == NULL) SWIG_fail; | |
43913 | temp3 = true; | |
43914 | } | |
43915 | } | |
43916 | if (obj3) { | |
43917 | { | |
43918 | arg4 = wxString_in_helper(obj3); | |
43919 | if (arg4 == NULL) SWIG_fail; | |
43920 | temp4 = true; | |
43921 | } | |
43922 | } | |
43923 | if (obj4) { | |
43924 | { | |
43925 | arg5 = wxString_in_helper(obj4); | |
43926 | if (arg5 == NULL) SWIG_fail; | |
43927 | temp5 = true; | |
43928 | } | |
43929 | } | |
43930 | if (obj5) { | |
43931 | { | |
43932 | arg6 = &temp6; | |
43933 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
43934 | } | |
43935 | } | |
43936 | if (obj6) { | |
43937 | { | |
43938 | arg7 = &temp7; | |
43939 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
43940 | } | |
43941 | } | |
43942 | if (obj7) { | |
43943 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
43944 | if (!SWIG_IsOK(ecode8)) { | |
43945 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'"); | |
43946 | } | |
43947 | arg8 = static_cast< long >(val8); | |
43948 | } | |
43949 | if (obj8) { | |
43950 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
43951 | if (!SWIG_IsOK(res9)) { | |
43952 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
43953 | } | |
43954 | if (!argp9) { | |
43955 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
43956 | } | |
43957 | arg9 = reinterpret_cast< wxValidator * >(argp9); | |
43958 | } | |
43959 | if (obj9) { | |
43960 | { | |
43961 | arg10 = wxString_in_helper(obj9); | |
43962 | if (arg10 == NULL) SWIG_fail; | |
43963 | temp10 = true; | |
43964 | } | |
43965 | } | |
43966 | { | |
43967 | if (!wxPyCheckForApp()) SWIG_fail; | |
43968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43969 | 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); | |
43970 | wxPyEndAllowThreads(__tstate); | |
43971 | if (PyErr_Occurred()) SWIG_fail; | |
43972 | } | |
43973 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 ); | |
43974 | { | |
43975 | if (temp3) | |
43976 | delete arg3; | |
43977 | } | |
43978 | { | |
43979 | if (temp4) | |
43980 | delete arg4; | |
43981 | } | |
43982 | { | |
43983 | if (temp5) | |
43984 | delete arg5; | |
43985 | } | |
43986 | { | |
43987 | if (temp10) | |
43988 | delete arg10; | |
43989 | } | |
43990 | return resultobj; | |
43991 | fail: | |
43992 | { | |
43993 | if (temp3) | |
43994 | delete arg3; | |
43995 | } | |
43996 | { | |
43997 | if (temp4) | |
43998 | delete arg4; | |
43999 | } | |
44000 | { | |
44001 | if (temp5) | |
44002 | delete arg5; | |
44003 | } | |
44004 | { | |
44005 | if (temp10) | |
44006 | delete arg10; | |
44007 | } | |
44008 | return NULL; | |
44009 | } | |
44010 | ||
44011 | ||
44012 | SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44013 | PyObject *resultobj = 0; | |
44014 | wxFilePickerCtrl *result = 0 ; | |
44015 | ||
44016 | if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail; | |
44017 | { | |
44018 | if (!wxPyCheckForApp()) SWIG_fail; | |
44019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44020 | result = (wxFilePickerCtrl *)new wxFilePickerCtrl(); | |
44021 | wxPyEndAllowThreads(__tstate); | |
44022 | if (PyErr_Occurred()) SWIG_fail; | |
44023 | } | |
44024 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 ); | |
44025 | return resultobj; | |
44026 | fail: | |
44027 | return NULL; | |
44028 | } | |
44029 | ||
44030 | ||
44031 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44032 | PyObject *resultobj = 0; | |
44033 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44034 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44035 | int arg3 = (int) -1 ; | |
44036 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
44037 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
44038 | wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ; | |
44039 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
44040 | wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
44041 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
44042 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
44043 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
44044 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
44045 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
44046 | long arg9 = (long) wxFLP_DEFAULT_STYLE ; | |
44047 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
44048 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
44049 | wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ; | |
44050 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
44051 | bool result; | |
44052 | void *argp1 = 0 ; | |
44053 | int res1 = 0 ; | |
44054 | void *argp2 = 0 ; | |
44055 | int res2 = 0 ; | |
44056 | int val3 ; | |
44057 | int ecode3 = 0 ; | |
44058 | bool temp4 = false ; | |
44059 | bool temp5 = false ; | |
44060 | bool temp6 = false ; | |
44061 | wxPoint temp7 ; | |
44062 | wxSize temp8 ; | |
44063 | long val9 ; | |
44064 | int ecode9 = 0 ; | |
44065 | void *argp10 = 0 ; | |
44066 | int res10 = 0 ; | |
44067 | bool temp11 = false ; | |
44068 | PyObject * obj0 = 0 ; | |
44069 | PyObject * obj1 = 0 ; | |
44070 | PyObject * obj2 = 0 ; | |
44071 | PyObject * obj3 = 0 ; | |
44072 | PyObject * obj4 = 0 ; | |
44073 | PyObject * obj5 = 0 ; | |
44074 | PyObject * obj6 = 0 ; | |
44075 | PyObject * obj7 = 0 ; | |
44076 | PyObject * obj8 = 0 ; | |
44077 | PyObject * obj9 = 0 ; | |
44078 | PyObject * obj10 = 0 ; | |
44079 | char * kwnames[] = { | |
44080 | (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
44081 | }; | |
44082 | ||
44083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
44084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44085 | if (!SWIG_IsOK(res1)) { | |
44086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'"); | |
44087 | } | |
44088 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44089 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
44090 | if (!SWIG_IsOK(res2)) { | |
44091 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
44092 | } | |
44093 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
44094 | if (obj2) { | |
44095 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
44096 | if (!SWIG_IsOK(ecode3)) { | |
44097 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
44098 | } | |
44099 | arg3 = static_cast< int >(val3); | |
44100 | } | |
44101 | if (obj3) { | |
44102 | { | |
44103 | arg4 = wxString_in_helper(obj3); | |
44104 | if (arg4 == NULL) SWIG_fail; | |
44105 | temp4 = true; | |
44106 | } | |
44107 | } | |
44108 | if (obj4) { | |
44109 | { | |
44110 | arg5 = wxString_in_helper(obj4); | |
44111 | if (arg5 == NULL) SWIG_fail; | |
44112 | temp5 = true; | |
44113 | } | |
44114 | } | |
44115 | if (obj5) { | |
44116 | { | |
44117 | arg6 = wxString_in_helper(obj5); | |
44118 | if (arg6 == NULL) SWIG_fail; | |
44119 | temp6 = true; | |
44120 | } | |
44121 | } | |
44122 | if (obj6) { | |
44123 | { | |
44124 | arg7 = &temp7; | |
44125 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
44126 | } | |
44127 | } | |
44128 | if (obj7) { | |
44129 | { | |
44130 | arg8 = &temp8; | |
44131 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
44132 | } | |
44133 | } | |
44134 | if (obj8) { | |
44135 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
44136 | if (!SWIG_IsOK(ecode9)) { | |
44137 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'"); | |
44138 | } | |
44139 | arg9 = static_cast< long >(val9); | |
44140 | } | |
44141 | if (obj9) { | |
44142 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
44143 | if (!SWIG_IsOK(res10)) { | |
44144 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
44145 | } | |
44146 | if (!argp10) { | |
44147 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
44148 | } | |
44149 | arg10 = reinterpret_cast< wxValidator * >(argp10); | |
44150 | } | |
44151 | if (obj10) { | |
44152 | { | |
44153 | arg11 = wxString_in_helper(obj10); | |
44154 | if (arg11 == NULL) SWIG_fail; | |
44155 | temp11 = true; | |
44156 | } | |
44157 | } | |
44158 | { | |
44159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44160 | 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); | |
44161 | wxPyEndAllowThreads(__tstate); | |
44162 | if (PyErr_Occurred()) SWIG_fail; | |
44163 | } | |
44164 | { | |
44165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44166 | } | |
44167 | { | |
44168 | if (temp4) | |
44169 | delete arg4; | |
44170 | } | |
44171 | { | |
44172 | if (temp5) | |
44173 | delete arg5; | |
44174 | } | |
44175 | { | |
44176 | if (temp6) | |
44177 | delete arg6; | |
44178 | } | |
44179 | { | |
44180 | if (temp11) | |
44181 | delete arg11; | |
44182 | } | |
44183 | return resultobj; | |
44184 | fail: | |
44185 | { | |
44186 | if (temp4) | |
44187 | delete arg4; | |
44188 | } | |
44189 | { | |
44190 | if (temp5) | |
44191 | delete arg5; | |
44192 | } | |
44193 | { | |
44194 | if (temp6) | |
44195 | delete arg6; | |
44196 | } | |
44197 | { | |
44198 | if (temp11) | |
44199 | delete arg11; | |
44200 | } | |
44201 | return NULL; | |
44202 | } | |
44203 | ||
44204 | ||
44205 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44206 | PyObject *resultobj = 0; | |
44207 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44208 | wxString result; | |
44209 | void *argp1 = 0 ; | |
44210 | int res1 = 0 ; | |
44211 | PyObject *swig_obj[1] ; | |
44212 | ||
44213 | if (!args) SWIG_fail; | |
44214 | swig_obj[0] = args; | |
44215 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44216 | if (!SWIG_IsOK(res1)) { | |
44217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'"); | |
44218 | } | |
44219 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44220 | { | |
44221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44222 | result = ((wxFilePickerCtrl const *)arg1)->GetPath(); | |
44223 | wxPyEndAllowThreads(__tstate); | |
44224 | if (PyErr_Occurred()) SWIG_fail; | |
44225 | } | |
44226 | { | |
44227 | #if wxUSE_UNICODE | |
44228 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44229 | #else | |
44230 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44231 | #endif | |
44232 | } | |
44233 | return resultobj; | |
44234 | fail: | |
44235 | return NULL; | |
44236 | } | |
44237 | ||
44238 | ||
44239 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44240 | PyObject *resultobj = 0; | |
44241 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44242 | wxString *arg2 = 0 ; | |
44243 | void *argp1 = 0 ; | |
44244 | int res1 = 0 ; | |
44245 | bool temp2 = false ; | |
44246 | PyObject * obj0 = 0 ; | |
44247 | PyObject * obj1 = 0 ; | |
44248 | char * kwnames[] = { | |
44249 | (char *) "self",(char *) "str", NULL | |
44250 | }; | |
44251 | ||
44252 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44253 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44254 | if (!SWIG_IsOK(res1)) { | |
44255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'"); | |
44256 | } | |
44257 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44258 | { | |
44259 | arg2 = wxString_in_helper(obj1); | |
44260 | if (arg2 == NULL) SWIG_fail; | |
44261 | temp2 = true; | |
44262 | } | |
44263 | { | |
44264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44265 | (arg1)->SetPath((wxString const &)*arg2); | |
44266 | wxPyEndAllowThreads(__tstate); | |
44267 | if (PyErr_Occurred()) SWIG_fail; | |
44268 | } | |
44269 | resultobj = SWIG_Py_Void(); | |
44270 | { | |
44271 | if (temp2) | |
44272 | delete arg2; | |
44273 | } | |
44274 | return resultobj; | |
44275 | fail: | |
44276 | { | |
44277 | if (temp2) | |
44278 | delete arg2; | |
44279 | } | |
44280 | return NULL; | |
44281 | } | |
44282 | ||
44283 | ||
b02396e8 RD |
44284 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
44285 | PyObject *resultobj = 0; | |
44286 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44287 | wxString *arg2 = 0 ; | |
44288 | bool result; | |
44289 | void *argp1 = 0 ; | |
44290 | int res1 = 0 ; | |
44291 | bool temp2 = false ; | |
44292 | PyObject * obj0 = 0 ; | |
44293 | PyObject * obj1 = 0 ; | |
44294 | char * kwnames[] = { | |
44295 | (char *) "self",(char *) "path", NULL | |
44296 | }; | |
44297 | ||
44298 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44299 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44300 | if (!SWIG_IsOK(res1)) { | |
44301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'"); | |
44302 | } | |
44303 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44304 | { | |
44305 | arg2 = wxString_in_helper(obj1); | |
44306 | if (arg2 == NULL) SWIG_fail; | |
44307 | temp2 = true; | |
44308 | } | |
44309 | { | |
44310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44311 | result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2); | |
44312 | wxPyEndAllowThreads(__tstate); | |
44313 | if (PyErr_Occurred()) SWIG_fail; | |
44314 | } | |
44315 | { | |
44316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44317 | } | |
44318 | { | |
44319 | if (temp2) | |
44320 | delete arg2; | |
44321 | } | |
44322 | return resultobj; | |
44323 | fail: | |
44324 | { | |
44325 | if (temp2) | |
44326 | delete arg2; | |
44327 | } | |
44328 | return NULL; | |
44329 | } | |
44330 | ||
44331 | ||
44332 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44333 | PyObject *resultobj = 0; | |
44334 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44335 | wxString result; | |
44336 | void *argp1 = 0 ; | |
44337 | int res1 = 0 ; | |
44338 | PyObject *swig_obj[1] ; | |
44339 | ||
44340 | if (!args) SWIG_fail; | |
44341 | swig_obj[0] = args; | |
44342 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44343 | if (!SWIG_IsOK(res1)) { | |
44344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'"); | |
44345 | } | |
44346 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44347 | { | |
44348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44349 | result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue(); | |
44350 | wxPyEndAllowThreads(__tstate); | |
44351 | if (PyErr_Occurred()) SWIG_fail; | |
44352 | } | |
44353 | { | |
44354 | #if wxUSE_UNICODE | |
44355 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44356 | #else | |
44357 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44358 | #endif | |
44359 | } | |
44360 | return resultobj; | |
44361 | fail: | |
44362 | return NULL; | |
44363 | } | |
44364 | ||
44365 | ||
b850e7f3 RD |
44366 | SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
44367 | PyObject *obj; | |
44368 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
44369 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj)); | |
44370 | return SWIG_Py_Void(); | |
44371 | } | |
44372 | ||
44373 | SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44374 | return SWIG_Python_InitShadowInstance(args); | |
44375 | } | |
44376 | ||
44377 | SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44378 | PyObject *resultobj = 0; | |
44379 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44380 | int arg2 = (int) -1 ; | |
44381 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
44382 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
44383 | wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ; | |
44384 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
44385 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
44386 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
44387 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
44388 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
44389 | long arg7 = (long) wxDIRP_DEFAULT_STYLE ; | |
44390 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
44391 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
44392 | wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ; | |
44393 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
44394 | wxDirPickerCtrl *result = 0 ; | |
44395 | void *argp1 = 0 ; | |
44396 | int res1 = 0 ; | |
44397 | int val2 ; | |
44398 | int ecode2 = 0 ; | |
44399 | bool temp3 = false ; | |
44400 | bool temp4 = false ; | |
44401 | wxPoint temp5 ; | |
44402 | wxSize temp6 ; | |
44403 | long val7 ; | |
44404 | int ecode7 = 0 ; | |
44405 | void *argp8 = 0 ; | |
44406 | int res8 = 0 ; | |
44407 | bool temp9 = false ; | |
44408 | PyObject * obj0 = 0 ; | |
44409 | PyObject * obj1 = 0 ; | |
44410 | PyObject * obj2 = 0 ; | |
44411 | PyObject * obj3 = 0 ; | |
44412 | PyObject * obj4 = 0 ; | |
44413 | PyObject * obj5 = 0 ; | |
44414 | PyObject * obj6 = 0 ; | |
44415 | PyObject * obj7 = 0 ; | |
44416 | PyObject * obj8 = 0 ; | |
44417 | char * kwnames[] = { | |
44418 | (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
44419 | }; | |
44420 | ||
44421 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
44422 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
44423 | if (!SWIG_IsOK(res1)) { | |
44424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
44425 | } | |
44426 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
44427 | if (obj1) { | |
44428 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
44429 | if (!SWIG_IsOK(ecode2)) { | |
44430 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
44431 | } | |
44432 | arg2 = static_cast< int >(val2); | |
44433 | } | |
44434 | if (obj2) { | |
44435 | { | |
44436 | arg3 = wxString_in_helper(obj2); | |
44437 | if (arg3 == NULL) SWIG_fail; | |
44438 | temp3 = true; | |
44439 | } | |
44440 | } | |
44441 | if (obj3) { | |
44442 | { | |
44443 | arg4 = wxString_in_helper(obj3); | |
44444 | if (arg4 == NULL) SWIG_fail; | |
44445 | temp4 = true; | |
44446 | } | |
44447 | } | |
44448 | if (obj4) { | |
44449 | { | |
44450 | arg5 = &temp5; | |
44451 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
44452 | } | |
44453 | } | |
44454 | if (obj5) { | |
44455 | { | |
44456 | arg6 = &temp6; | |
44457 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
44458 | } | |
44459 | } | |
44460 | if (obj6) { | |
44461 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
44462 | if (!SWIG_IsOK(ecode7)) { | |
44463 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'"); | |
44464 | } | |
44465 | arg7 = static_cast< long >(val7); | |
44466 | } | |
44467 | if (obj7) { | |
44468 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
44469 | if (!SWIG_IsOK(res8)) { | |
44470 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
44471 | } | |
44472 | if (!argp8) { | |
44473 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
44474 | } | |
44475 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
44476 | } | |
44477 | if (obj8) { | |
44478 | { | |
44479 | arg9 = wxString_in_helper(obj8); | |
44480 | if (arg9 == NULL) SWIG_fail; | |
44481 | temp9 = true; | |
44482 | } | |
44483 | } | |
44484 | { | |
44485 | if (!wxPyCheckForApp()) SWIG_fail; | |
44486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44487 | 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); | |
44488 | wxPyEndAllowThreads(__tstate); | |
44489 | if (PyErr_Occurred()) SWIG_fail; | |
44490 | } | |
44491 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 ); | |
44492 | { | |
44493 | if (temp3) | |
44494 | delete arg3; | |
44495 | } | |
44496 | { | |
44497 | if (temp4) | |
44498 | delete arg4; | |
44499 | } | |
44500 | { | |
44501 | if (temp9) | |
44502 | delete arg9; | |
44503 | } | |
44504 | return resultobj; | |
44505 | fail: | |
44506 | { | |
44507 | if (temp3) | |
44508 | delete arg3; | |
44509 | } | |
44510 | { | |
44511 | if (temp4) | |
44512 | delete arg4; | |
44513 | } | |
44514 | { | |
44515 | if (temp9) | |
44516 | delete arg9; | |
44517 | } | |
44518 | return NULL; | |
44519 | } | |
44520 | ||
44521 | ||
44522 | SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44523 | PyObject *resultobj = 0; | |
44524 | wxDirPickerCtrl *result = 0 ; | |
44525 | ||
44526 | if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail; | |
44527 | { | |
44528 | if (!wxPyCheckForApp()) SWIG_fail; | |
44529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44530 | result = (wxDirPickerCtrl *)new wxDirPickerCtrl(); | |
44531 | wxPyEndAllowThreads(__tstate); | |
44532 | if (PyErr_Occurred()) SWIG_fail; | |
44533 | } | |
44534 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 ); | |
44535 | return resultobj; | |
44536 | fail: | |
44537 | return NULL; | |
44538 | } | |
44539 | ||
44540 | ||
44541 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44542 | PyObject *resultobj = 0; | |
44543 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44544 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44545 | int arg3 = (int) -1 ; | |
44546 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
44547 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
44548 | wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ; | |
44549 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
44550 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
44551 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
44552 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
44553 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
44554 | long arg8 = (long) wxDIRP_DEFAULT_STYLE ; | |
44555 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
44556 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
44557 | wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ; | |
44558 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
44559 | bool result; | |
44560 | void *argp1 = 0 ; | |
44561 | int res1 = 0 ; | |
44562 | void *argp2 = 0 ; | |
44563 | int res2 = 0 ; | |
44564 | int val3 ; | |
44565 | int ecode3 = 0 ; | |
44566 | bool temp4 = false ; | |
44567 | bool temp5 = false ; | |
44568 | wxPoint temp6 ; | |
44569 | wxSize temp7 ; | |
44570 | long val8 ; | |
44571 | int ecode8 = 0 ; | |
44572 | void *argp9 = 0 ; | |
44573 | int res9 = 0 ; | |
44574 | bool temp10 = false ; | |
44575 | PyObject * obj0 = 0 ; | |
44576 | PyObject * obj1 = 0 ; | |
44577 | PyObject * obj2 = 0 ; | |
44578 | PyObject * obj3 = 0 ; | |
44579 | PyObject * obj4 = 0 ; | |
44580 | PyObject * obj5 = 0 ; | |
44581 | PyObject * obj6 = 0 ; | |
44582 | PyObject * obj7 = 0 ; | |
44583 | PyObject * obj8 = 0 ; | |
44584 | PyObject * obj9 = 0 ; | |
44585 | char * kwnames[] = { | |
44586 | (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
44587 | }; | |
44588 | ||
44589 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
44590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44591 | if (!SWIG_IsOK(res1)) { | |
44592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'"); | |
44593 | } | |
44594 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44595 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
44596 | if (!SWIG_IsOK(res2)) { | |
44597 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
44598 | } | |
44599 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
44600 | if (obj2) { | |
44601 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
44602 | if (!SWIG_IsOK(ecode3)) { | |
44603 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
44604 | } | |
44605 | arg3 = static_cast< int >(val3); | |
44606 | } | |
44607 | if (obj3) { | |
44608 | { | |
44609 | arg4 = wxString_in_helper(obj3); | |
44610 | if (arg4 == NULL) SWIG_fail; | |
44611 | temp4 = true; | |
44612 | } | |
44613 | } | |
44614 | if (obj4) { | |
44615 | { | |
44616 | arg5 = wxString_in_helper(obj4); | |
44617 | if (arg5 == NULL) SWIG_fail; | |
44618 | temp5 = true; | |
44619 | } | |
44620 | } | |
44621 | if (obj5) { | |
44622 | { | |
44623 | arg6 = &temp6; | |
44624 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
44625 | } | |
44626 | } | |
44627 | if (obj6) { | |
44628 | { | |
44629 | arg7 = &temp7; | |
44630 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
44631 | } | |
44632 | } | |
44633 | if (obj7) { | |
44634 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
44635 | if (!SWIG_IsOK(ecode8)) { | |
44636 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'"); | |
44637 | } | |
44638 | arg8 = static_cast< long >(val8); | |
44639 | } | |
44640 | if (obj8) { | |
44641 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
44642 | if (!SWIG_IsOK(res9)) { | |
44643 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
44644 | } | |
44645 | if (!argp9) { | |
44646 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
44647 | } | |
44648 | arg9 = reinterpret_cast< wxValidator * >(argp9); | |
44649 | } | |
44650 | if (obj9) { | |
44651 | { | |
44652 | arg10 = wxString_in_helper(obj9); | |
44653 | if (arg10 == NULL) SWIG_fail; | |
44654 | temp10 = true; | |
44655 | } | |
44656 | } | |
44657 | { | |
44658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44659 | 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); | |
44660 | wxPyEndAllowThreads(__tstate); | |
44661 | if (PyErr_Occurred()) SWIG_fail; | |
44662 | } | |
44663 | { | |
44664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44665 | } | |
44666 | { | |
44667 | if (temp4) | |
44668 | delete arg4; | |
44669 | } | |
44670 | { | |
44671 | if (temp5) | |
44672 | delete arg5; | |
44673 | } | |
44674 | { | |
44675 | if (temp10) | |
44676 | delete arg10; | |
44677 | } | |
44678 | return resultobj; | |
44679 | fail: | |
44680 | { | |
44681 | if (temp4) | |
44682 | delete arg4; | |
44683 | } | |
44684 | { | |
44685 | if (temp5) | |
44686 | delete arg5; | |
44687 | } | |
44688 | { | |
44689 | if (temp10) | |
44690 | delete arg10; | |
44691 | } | |
44692 | return NULL; | |
44693 | } | |
44694 | ||
44695 | ||
44696 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44697 | PyObject *resultobj = 0; | |
44698 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44699 | wxString result; | |
44700 | void *argp1 = 0 ; | |
44701 | int res1 = 0 ; | |
44702 | PyObject *swig_obj[1] ; | |
44703 | ||
44704 | if (!args) SWIG_fail; | |
44705 | swig_obj[0] = args; | |
44706 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44707 | if (!SWIG_IsOK(res1)) { | |
44708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'"); | |
44709 | } | |
44710 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44711 | { | |
44712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44713 | result = ((wxDirPickerCtrl const *)arg1)->GetPath(); | |
44714 | wxPyEndAllowThreads(__tstate); | |
44715 | if (PyErr_Occurred()) SWIG_fail; | |
44716 | } | |
44717 | { | |
44718 | #if wxUSE_UNICODE | |
44719 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44720 | #else | |
44721 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44722 | #endif | |
44723 | } | |
44724 | return resultobj; | |
44725 | fail: | |
44726 | return NULL; | |
44727 | } | |
44728 | ||
44729 | ||
44730 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44731 | PyObject *resultobj = 0; | |
44732 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44733 | wxString *arg2 = 0 ; | |
44734 | void *argp1 = 0 ; | |
44735 | int res1 = 0 ; | |
44736 | bool temp2 = false ; | |
44737 | PyObject * obj0 = 0 ; | |
44738 | PyObject * obj1 = 0 ; | |
44739 | char * kwnames[] = { | |
44740 | (char *) "self",(char *) "str", NULL | |
44741 | }; | |
44742 | ||
44743 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44744 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44745 | if (!SWIG_IsOK(res1)) { | |
44746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'"); | |
44747 | } | |
44748 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44749 | { | |
44750 | arg2 = wxString_in_helper(obj1); | |
44751 | if (arg2 == NULL) SWIG_fail; | |
44752 | temp2 = true; | |
44753 | } | |
44754 | { | |
44755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44756 | (arg1)->SetPath((wxString const &)*arg2); | |
44757 | wxPyEndAllowThreads(__tstate); | |
44758 | if (PyErr_Occurred()) SWIG_fail; | |
44759 | } | |
44760 | resultobj = SWIG_Py_Void(); | |
44761 | { | |
44762 | if (temp2) | |
44763 | delete arg2; | |
44764 | } | |
44765 | return resultobj; | |
44766 | fail: | |
44767 | { | |
44768 | if (temp2) | |
44769 | delete arg2; | |
44770 | } | |
44771 | return NULL; | |
44772 | } | |
44773 | ||
44774 | ||
b02396e8 RD |
44775 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
44776 | PyObject *resultobj = 0; | |
44777 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44778 | wxString *arg2 = 0 ; | |
44779 | bool result; | |
44780 | void *argp1 = 0 ; | |
44781 | int res1 = 0 ; | |
44782 | bool temp2 = false ; | |
44783 | PyObject * obj0 = 0 ; | |
44784 | PyObject * obj1 = 0 ; | |
44785 | char * kwnames[] = { | |
44786 | (char *) "self",(char *) "path", NULL | |
44787 | }; | |
44788 | ||
44789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44790 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44791 | if (!SWIG_IsOK(res1)) { | |
44792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'"); | |
44793 | } | |
44794 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44795 | { | |
44796 | arg2 = wxString_in_helper(obj1); | |
44797 | if (arg2 == NULL) SWIG_fail; | |
44798 | temp2 = true; | |
44799 | } | |
44800 | { | |
44801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44802 | result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2); | |
44803 | wxPyEndAllowThreads(__tstate); | |
44804 | if (PyErr_Occurred()) SWIG_fail; | |
44805 | } | |
44806 | { | |
44807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44808 | } | |
44809 | { | |
44810 | if (temp2) | |
44811 | delete arg2; | |
44812 | } | |
44813 | return resultobj; | |
44814 | fail: | |
44815 | { | |
44816 | if (temp2) | |
44817 | delete arg2; | |
44818 | } | |
44819 | return NULL; | |
44820 | } | |
44821 | ||
44822 | ||
44823 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44824 | PyObject *resultobj = 0; | |
44825 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44826 | wxString result; | |
44827 | void *argp1 = 0 ; | |
44828 | int res1 = 0 ; | |
44829 | PyObject *swig_obj[1] ; | |
44830 | ||
44831 | if (!args) SWIG_fail; | |
44832 | swig_obj[0] = args; | |
44833 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44834 | if (!SWIG_IsOK(res1)) { | |
44835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'"); | |
44836 | } | |
44837 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44838 | { | |
44839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44840 | result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue(); | |
44841 | wxPyEndAllowThreads(__tstate); | |
44842 | if (PyErr_Occurred()) SWIG_fail; | |
44843 | } | |
44844 | { | |
44845 | #if wxUSE_UNICODE | |
44846 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44847 | #else | |
44848 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44849 | #endif | |
44850 | } | |
44851 | return resultobj; | |
44852 | fail: | |
44853 | return NULL; | |
44854 | } | |
44855 | ||
44856 | ||
b850e7f3 RD |
44857 | SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
44858 | PyObject *obj; | |
44859 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
44860 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj)); | |
44861 | return SWIG_Py_Void(); | |
44862 | } | |
44863 | ||
44864 | SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44865 | return SWIG_Python_InitShadowInstance(args); | |
44866 | } | |
44867 | ||
44868 | SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44869 | PyObject *resultobj = 0; | |
44870 | wxEventType arg1 ; | |
44871 | wxObject *arg2 = (wxObject *) 0 ; | |
44872 | int arg3 ; | |
44873 | wxString *arg4 = 0 ; | |
44874 | wxFileDirPickerEvent *result = 0 ; | |
44875 | int val1 ; | |
44876 | int ecode1 = 0 ; | |
44877 | void *argp2 = 0 ; | |
44878 | int res2 = 0 ; | |
44879 | int val3 ; | |
44880 | int ecode3 = 0 ; | |
44881 | bool temp4 = false ; | |
44882 | PyObject * obj0 = 0 ; | |
44883 | PyObject * obj1 = 0 ; | |
44884 | PyObject * obj2 = 0 ; | |
44885 | PyObject * obj3 = 0 ; | |
44886 | char * kwnames[] = { | |
44887 | (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL | |
44888 | }; | |
44889 | ||
44890 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
44891 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
44892 | if (!SWIG_IsOK(ecode1)) { | |
44893 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
44894 | } | |
44895 | arg1 = static_cast< wxEventType >(val1); | |
44896 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 ); | |
44897 | if (!SWIG_IsOK(res2)) { | |
44898 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'"); | |
44899 | } | |
44900 | arg2 = reinterpret_cast< wxObject * >(argp2); | |
44901 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
44902 | if (!SWIG_IsOK(ecode3)) { | |
44903 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'"); | |
44904 | } | |
44905 | arg3 = static_cast< int >(val3); | |
44906 | { | |
44907 | arg4 = wxString_in_helper(obj3); | |
44908 | if (arg4 == NULL) SWIG_fail; | |
44909 | temp4 = true; | |
44910 | } | |
44911 | { | |
44912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44913 | result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4); | |
44914 | wxPyEndAllowThreads(__tstate); | |
44915 | if (PyErr_Occurred()) SWIG_fail; | |
44916 | } | |
44917 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 ); | |
44918 | { | |
44919 | if (temp4) | |
44920 | delete arg4; | |
44921 | } | |
44922 | return resultobj; | |
44923 | fail: | |
44924 | { | |
44925 | if (temp4) | |
44926 | delete arg4; | |
44927 | } | |
44928 | return NULL; | |
44929 | } | |
44930 | ||
44931 | ||
44932 | SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44933 | PyObject *resultobj = 0; | |
44934 | wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ; | |
44935 | wxString result; | |
44936 | void *argp1 = 0 ; | |
44937 | int res1 = 0 ; | |
44938 | PyObject *swig_obj[1] ; | |
44939 | ||
44940 | if (!args) SWIG_fail; | |
44941 | swig_obj[0] = args; | |
44942 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 ); | |
44943 | if (!SWIG_IsOK(res1)) { | |
44944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'"); | |
44945 | } | |
44946 | arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1); | |
44947 | { | |
44948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44949 | result = ((wxFileDirPickerEvent const *)arg1)->GetPath(); | |
44950 | wxPyEndAllowThreads(__tstate); | |
44951 | if (PyErr_Occurred()) SWIG_fail; | |
44952 | } | |
44953 | { | |
44954 | #if wxUSE_UNICODE | |
44955 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44956 | #else | |
44957 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44958 | #endif | |
44959 | } | |
44960 | return resultobj; | |
44961 | fail: | |
44962 | return NULL; | |
44963 | } | |
44964 | ||
44965 | ||
44966 | SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44967 | PyObject *resultobj = 0; | |
44968 | wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ; | |
44969 | wxString *arg2 = 0 ; | |
44970 | void *argp1 = 0 ; | |
44971 | int res1 = 0 ; | |
44972 | bool temp2 = false ; | |
44973 | PyObject * obj0 = 0 ; | |
44974 | PyObject * obj1 = 0 ; | |
44975 | char * kwnames[] = { | |
44976 | (char *) "self",(char *) "p", NULL | |
44977 | }; | |
44978 | ||
44979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44980 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 ); | |
44981 | if (!SWIG_IsOK(res1)) { | |
44982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'"); | |
44983 | } | |
44984 | arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1); | |
44985 | { | |
44986 | arg2 = wxString_in_helper(obj1); | |
44987 | if (arg2 == NULL) SWIG_fail; | |
44988 | temp2 = true; | |
44989 | } | |
44990 | { | |
44991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44992 | (arg1)->SetPath((wxString const &)*arg2); | |
44993 | wxPyEndAllowThreads(__tstate); | |
44994 | if (PyErr_Occurred()) SWIG_fail; | |
44995 | } | |
44996 | resultobj = SWIG_Py_Void(); | |
44997 | { | |
44998 | if (temp2) | |
44999 | delete arg2; | |
45000 | } | |
45001 | return resultobj; | |
45002 | fail: | |
45003 | { | |
45004 | if (temp2) | |
45005 | delete arg2; | |
45006 | } | |
45007 | return NULL; | |
45008 | } | |
45009 | ||
45010 | ||
45011 | SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45012 | PyObject *obj; | |
45013 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
45014 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj)); | |
45015 | return SWIG_Py_Void(); | |
45016 | } | |
45017 | ||
45018 | SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45019 | return SWIG_Python_InitShadowInstance(args); | |
45020 | } | |
45021 | ||
45022 | SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) { | |
45023 | SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only."); | |
45024 | return 1; | |
45025 | } | |
45026 | ||
45027 | ||
45028 | SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) { | |
45029 | PyObject *pyobj = 0; | |
45030 | ||
45031 | { | |
45032 | #if wxUSE_UNICODE | |
45033 | pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len()); | |
45034 | #else | |
45035 | pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len()); | |
45036 | #endif | |
45037 | } | |
45038 | return pyobj; | |
45039 | } | |
45040 | ||
45041 | ||
45042 | SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45043 | PyObject *resultobj = 0; | |
45044 | wxWindow *arg1 = (wxWindow *) 0 ; | |
45045 | int arg2 = (int) -1 ; | |
f89238b9 | 45046 | wxFont const &arg3_defvalue = wxNullFont ; |
b850e7f3 RD |
45047 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; |
45048 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
45049 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
45050 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
45051 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
45052 | long arg6 = (long) wxFNTP_DEFAULT_STYLE ; | |
45053 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
45054 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
45055 | wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ; | |
45056 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
45057 | wxFontPickerCtrl *result = 0 ; | |
45058 | void *argp1 = 0 ; | |
45059 | int res1 = 0 ; | |
45060 | int val2 ; | |
45061 | int ecode2 = 0 ; | |
45062 | void *argp3 = 0 ; | |
45063 | int res3 = 0 ; | |
45064 | wxPoint temp4 ; | |
45065 | wxSize temp5 ; | |
45066 | long val6 ; | |
45067 | int ecode6 = 0 ; | |
45068 | void *argp7 = 0 ; | |
45069 | int res7 = 0 ; | |
45070 | bool temp8 = false ; | |
45071 | PyObject * obj0 = 0 ; | |
45072 | PyObject * obj1 = 0 ; | |
45073 | PyObject * obj2 = 0 ; | |
45074 | PyObject * obj3 = 0 ; | |
45075 | PyObject * obj4 = 0 ; | |
45076 | PyObject * obj5 = 0 ; | |
45077 | PyObject * obj6 = 0 ; | |
45078 | PyObject * obj7 = 0 ; | |
45079 | char * kwnames[] = { | |
45080 | (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
45081 | }; | |
45082 | ||
45083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
45084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
45085 | if (!SWIG_IsOK(res1)) { | |
45086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
45087 | } | |
45088 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
45089 | if (obj1) { | |
45090 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
45091 | if (!SWIG_IsOK(ecode2)) { | |
45092 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
45093 | } | |
45094 | arg2 = static_cast< int >(val2); | |
45095 | } | |
45096 | if (obj2) { | |
45097 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
45098 | if (!SWIG_IsOK(res3)) { | |
45099 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
45100 | } | |
45101 | if (!argp3) { | |
45102 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
45103 | } | |
45104 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
45105 | } | |
45106 | if (obj3) { | |
45107 | { | |
45108 | arg4 = &temp4; | |
45109 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
45110 | } | |
45111 | } | |
45112 | if (obj4) { | |
45113 | { | |
45114 | arg5 = &temp5; | |
45115 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
45116 | } | |
45117 | } | |
45118 | if (obj5) { | |
45119 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
45120 | if (!SWIG_IsOK(ecode6)) { | |
45121 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'"); | |
45122 | } | |
45123 | arg6 = static_cast< long >(val6); | |
45124 | } | |
45125 | if (obj6) { | |
45126 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
45127 | if (!SWIG_IsOK(res7)) { | |
45128 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
45129 | } | |
45130 | if (!argp7) { | |
45131 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
45132 | } | |
45133 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
45134 | } | |
45135 | if (obj7) { | |
45136 | { | |
45137 | arg8 = wxString_in_helper(obj7); | |
45138 | if (arg8 == NULL) SWIG_fail; | |
45139 | temp8 = true; | |
45140 | } | |
45141 | } | |
45142 | { | |
45143 | if (!wxPyCheckForApp()) SWIG_fail; | |
45144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45145 | result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
45146 | wxPyEndAllowThreads(__tstate); | |
45147 | if (PyErr_Occurred()) SWIG_fail; | |
45148 | } | |
45149 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 ); | |
45150 | { | |
45151 | if (temp8) | |
45152 | delete arg8; | |
45153 | } | |
45154 | return resultobj; | |
45155 | fail: | |
45156 | { | |
45157 | if (temp8) | |
45158 | delete arg8; | |
45159 | } | |
45160 | return NULL; | |
45161 | } | |
45162 | ||
45163 | ||
45164 | SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45165 | PyObject *resultobj = 0; | |
45166 | wxFontPickerCtrl *result = 0 ; | |
45167 | ||
45168 | if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail; | |
45169 | { | |
45170 | if (!wxPyCheckForApp()) SWIG_fail; | |
45171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45172 | result = (wxFontPickerCtrl *)new wxFontPickerCtrl(); | |
45173 | wxPyEndAllowThreads(__tstate); | |
45174 | if (PyErr_Occurred()) SWIG_fail; | |
45175 | } | |
45176 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 ); | |
45177 | return resultobj; | |
45178 | fail: | |
45179 | return NULL; | |
45180 | } | |
45181 | ||
45182 | ||
45183 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45184 | PyObject *resultobj = 0; | |
45185 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45186 | wxWindow *arg2 = (wxWindow *) 0 ; | |
45187 | int arg3 = (int) -1 ; | |
f89238b9 | 45188 | wxFont const &arg4_defvalue = wxNullFont ; |
b850e7f3 RD |
45189 | wxFont *arg4 = (wxFont *) &arg4_defvalue ; |
45190 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
45191 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
45192 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
45193 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
45194 | long arg7 = (long) wxFNTP_DEFAULT_STYLE ; | |
45195 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
45196 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
45197 | wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ; | |
45198 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
45199 | bool result; | |
45200 | void *argp1 = 0 ; | |
45201 | int res1 = 0 ; | |
45202 | void *argp2 = 0 ; | |
45203 | int res2 = 0 ; | |
45204 | int val3 ; | |
45205 | int ecode3 = 0 ; | |
45206 | void *argp4 = 0 ; | |
45207 | int res4 = 0 ; | |
45208 | wxPoint temp5 ; | |
45209 | wxSize temp6 ; | |
45210 | long val7 ; | |
45211 | int ecode7 = 0 ; | |
45212 | void *argp8 = 0 ; | |
45213 | int res8 = 0 ; | |
45214 | bool temp9 = false ; | |
45215 | PyObject * obj0 = 0 ; | |
45216 | PyObject * obj1 = 0 ; | |
45217 | PyObject * obj2 = 0 ; | |
45218 | PyObject * obj3 = 0 ; | |
45219 | PyObject * obj4 = 0 ; | |
45220 | PyObject * obj5 = 0 ; | |
45221 | PyObject * obj6 = 0 ; | |
45222 | PyObject * obj7 = 0 ; | |
45223 | PyObject * obj8 = 0 ; | |
45224 | char * kwnames[] = { | |
45225 | (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
45226 | }; | |
45227 | ||
45228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
45229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45230 | if (!SWIG_IsOK(res1)) { | |
45231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'"); | |
45232 | } | |
45233 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45234 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
45235 | if (!SWIG_IsOK(res2)) { | |
45236 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
45237 | } | |
45238 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
45239 | if (obj2) { | |
45240 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
45241 | if (!SWIG_IsOK(ecode3)) { | |
45242 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
45243 | } | |
45244 | arg3 = static_cast< int >(val3); | |
45245 | } | |
45246 | if (obj3) { | |
45247 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0); | |
45248 | if (!SWIG_IsOK(res4)) { | |
45249 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'"); | |
45250 | } | |
45251 | if (!argp4) { | |
45252 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'"); | |
45253 | } | |
45254 | arg4 = reinterpret_cast< wxFont * >(argp4); | |
45255 | } | |
45256 | if (obj4) { | |
45257 | { | |
45258 | arg5 = &temp5; | |
45259 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
45260 | } | |
45261 | } | |
45262 | if (obj5) { | |
45263 | { | |
45264 | arg6 = &temp6; | |
45265 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
45266 | } | |
45267 | } | |
45268 | if (obj6) { | |
45269 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
45270 | if (!SWIG_IsOK(ecode7)) { | |
45271 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
45272 | } | |
45273 | arg7 = static_cast< long >(val7); | |
45274 | } | |
45275 | if (obj7) { | |
45276 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
45277 | if (!SWIG_IsOK(res8)) { | |
45278 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
45279 | } | |
45280 | if (!argp8) { | |
45281 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
45282 | } | |
45283 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
45284 | } | |
45285 | if (obj8) { | |
45286 | { | |
45287 | arg9 = wxString_in_helper(obj8); | |
45288 | if (arg9 == NULL) SWIG_fail; | |
45289 | temp9 = true; | |
45290 | } | |
45291 | } | |
45292 | { | |
45293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45294 | result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
45295 | wxPyEndAllowThreads(__tstate); | |
45296 | if (PyErr_Occurred()) SWIG_fail; | |
45297 | } | |
45298 | { | |
45299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
45300 | } | |
45301 | { | |
45302 | if (temp9) | |
45303 | delete arg9; | |
45304 | } | |
45305 | return resultobj; | |
45306 | fail: | |
45307 | { | |
45308 | if (temp9) | |
45309 | delete arg9; | |
45310 | } | |
45311 | return NULL; | |
45312 | } | |
45313 | ||
45314 | ||
45315 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45316 | PyObject *resultobj = 0; | |
45317 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45318 | wxFont result; | |
45319 | void *argp1 = 0 ; | |
45320 | int res1 = 0 ; | |
45321 | PyObject *swig_obj[1] ; | |
45322 | ||
45323 | if (!args) SWIG_fail; | |
45324 | swig_obj[0] = args; | |
45325 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45326 | if (!SWIG_IsOK(res1)) { | |
45327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'"); | |
45328 | } | |
45329 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45330 | { | |
45331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45332 | result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont(); | |
45333 | wxPyEndAllowThreads(__tstate); | |
45334 | if (PyErr_Occurred()) SWIG_fail; | |
45335 | } | |
45336 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
45337 | return resultobj; | |
45338 | fail: | |
45339 | return NULL; | |
45340 | } | |
45341 | ||
45342 | ||
45343 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45344 | PyObject *resultobj = 0; | |
45345 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45346 | wxFont *arg2 = 0 ; | |
45347 | void *argp1 = 0 ; | |
45348 | int res1 = 0 ; | |
45349 | void *argp2 = 0 ; | |
45350 | int res2 = 0 ; | |
45351 | PyObject * obj0 = 0 ; | |
45352 | PyObject * obj1 = 0 ; | |
45353 | char * kwnames[] = { | |
45354 | (char *) "self",(char *) "f", NULL | |
45355 | }; | |
45356 | ||
45357 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
45358 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45359 | if (!SWIG_IsOK(res1)) { | |
45360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'"); | |
45361 | } | |
45362 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45363 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
45364 | if (!SWIG_IsOK(res2)) { | |
45365 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45366 | } | |
45367 | if (!argp2) { | |
45368 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45369 | } | |
45370 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
45371 | { | |
45372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45373 | (arg1)->SetSelectedFont((wxFont const &)*arg2); | |
45374 | wxPyEndAllowThreads(__tstate); | |
45375 | if (PyErr_Occurred()) SWIG_fail; | |
45376 | } | |
45377 | resultobj = SWIG_Py_Void(); | |
45378 | return resultobj; | |
45379 | fail: | |
45380 | return NULL; | |
45381 | } | |
45382 | ||
45383 | ||
45384 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45385 | PyObject *resultobj = 0; | |
45386 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45387 | unsigned int arg2 ; | |
45388 | void *argp1 = 0 ; | |
45389 | int res1 = 0 ; | |
45390 | unsigned int val2 ; | |
45391 | int ecode2 = 0 ; | |
45392 | PyObject * obj0 = 0 ; | |
45393 | PyObject * obj1 = 0 ; | |
45394 | char * kwnames[] = { | |
45395 | (char *) "self",(char *) "max", NULL | |
45396 | }; | |
45397 | ||
45398 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
45399 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45400 | if (!SWIG_IsOK(res1)) { | |
45401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'"); | |
45402 | } | |
45403 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45404 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
45405 | if (!SWIG_IsOK(ecode2)) { | |
45406 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'"); | |
45407 | } | |
45408 | arg2 = static_cast< unsigned int >(val2); | |
45409 | { | |
45410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45411 | (arg1)->SetMaxPointSize(arg2); | |
45412 | wxPyEndAllowThreads(__tstate); | |
45413 | if (PyErr_Occurred()) SWIG_fail; | |
45414 | } | |
45415 | resultobj = SWIG_Py_Void(); | |
45416 | return resultobj; | |
45417 | fail: | |
45418 | return NULL; | |
45419 | } | |
45420 | ||
45421 | ||
45422 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45423 | PyObject *resultobj = 0; | |
45424 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45425 | unsigned int result; | |
45426 | void *argp1 = 0 ; | |
45427 | int res1 = 0 ; | |
45428 | PyObject *swig_obj[1] ; | |
45429 | ||
45430 | if (!args) SWIG_fail; | |
45431 | swig_obj[0] = args; | |
45432 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45433 | if (!SWIG_IsOK(res1)) { | |
45434 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'"); | |
45435 | } | |
45436 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45437 | { | |
45438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45439 | result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize(); | |
45440 | wxPyEndAllowThreads(__tstate); | |
45441 | if (PyErr_Occurred()) SWIG_fail; | |
45442 | } | |
45443 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
45444 | return resultobj; | |
45445 | fail: | |
45446 | return NULL; | |
45447 | } | |
45448 | ||
45449 | ||
45450 | SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45451 | PyObject *obj; | |
45452 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
45453 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj)); | |
45454 | return SWIG_Py_Void(); | |
45455 | } | |
45456 | ||
45457 | SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45458 | return SWIG_Python_InitShadowInstance(args); | |
45459 | } | |
45460 | ||
45461 | SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45462 | PyObject *resultobj = 0; | |
45463 | wxObject *arg1 = (wxObject *) 0 ; | |
45464 | int arg2 ; | |
45465 | wxFont *arg3 = 0 ; | |
45466 | wxFontPickerEvent *result = 0 ; | |
45467 | void *argp1 = 0 ; | |
45468 | int res1 = 0 ; | |
45469 | int val2 ; | |
45470 | int ecode2 = 0 ; | |
45471 | void *argp3 = 0 ; | |
45472 | int res3 = 0 ; | |
45473 | PyObject * obj0 = 0 ; | |
45474 | PyObject * obj1 = 0 ; | |
45475 | PyObject * obj2 = 0 ; | |
45476 | char * kwnames[] = { | |
45477 | (char *) "generator",(char *) "id",(char *) "f", NULL | |
45478 | }; | |
45479 | ||
45480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
45481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 ); | |
45482 | if (!SWIG_IsOK(res1)) { | |
45483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'"); | |
45484 | } | |
45485 | arg1 = reinterpret_cast< wxObject * >(argp1); | |
45486 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
45487 | if (!SWIG_IsOK(ecode2)) { | |
45488 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'"); | |
45489 | } | |
45490 | arg2 = static_cast< int >(val2); | |
45491 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
45492 | if (!SWIG_IsOK(res3)) { | |
45493 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
45494 | } | |
45495 | if (!argp3) { | |
45496 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
45497 | } | |
45498 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
45499 | { | |
45500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45501 | result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3); | |
45502 | wxPyEndAllowThreads(__tstate); | |
45503 | if (PyErr_Occurred()) SWIG_fail; | |
45504 | } | |
45505 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 ); | |
45506 | return resultobj; | |
45507 | fail: | |
45508 | return NULL; | |
45509 | } | |
45510 | ||
45511 | ||
45512 | SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45513 | PyObject *resultobj = 0; | |
45514 | wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ; | |
45515 | wxFont result; | |
45516 | void *argp1 = 0 ; | |
45517 | int res1 = 0 ; | |
45518 | PyObject *swig_obj[1] ; | |
45519 | ||
45520 | if (!args) SWIG_fail; | |
45521 | swig_obj[0] = args; | |
45522 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 ); | |
45523 | if (!SWIG_IsOK(res1)) { | |
45524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'"); | |
45525 | } | |
45526 | arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1); | |
45527 | { | |
45528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45529 | result = ((wxFontPickerEvent const *)arg1)->GetFont(); | |
45530 | wxPyEndAllowThreads(__tstate); | |
45531 | if (PyErr_Occurred()) SWIG_fail; | |
45532 | } | |
45533 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
45534 | return resultobj; | |
45535 | fail: | |
45536 | return NULL; | |
45537 | } | |
45538 | ||
45539 | ||
45540 | SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45541 | PyObject *resultobj = 0; | |
45542 | wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ; | |
45543 | wxFont *arg2 = 0 ; | |
45544 | void *argp1 = 0 ; | |
45545 | int res1 = 0 ; | |
45546 | void *argp2 = 0 ; | |
45547 | int res2 = 0 ; | |
45548 | PyObject * obj0 = 0 ; | |
45549 | PyObject * obj1 = 0 ; | |
45550 | char * kwnames[] = { | |
45551 | (char *) "self",(char *) "c", NULL | |
45552 | }; | |
45553 | ||
45554 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
45555 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 ); | |
45556 | if (!SWIG_IsOK(res1)) { | |
45557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'"); | |
45558 | } | |
45559 | arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1); | |
45560 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
45561 | if (!SWIG_IsOK(res2)) { | |
45562 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45563 | } | |
45564 | if (!argp2) { | |
45565 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45566 | } | |
45567 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
45568 | { | |
45569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45570 | (arg1)->SetFont((wxFont const &)*arg2); | |
45571 | wxPyEndAllowThreads(__tstate); | |
45572 | if (PyErr_Occurred()) SWIG_fail; | |
45573 | } | |
45574 | resultobj = SWIG_Py_Void(); | |
45575 | return resultobj; | |
45576 | fail: | |
45577 | return NULL; | |
45578 | } | |
45579 | ||
45580 | ||
45581 | SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45582 | PyObject *obj; | |
45583 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
45584 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj)); | |
45585 | return SWIG_Py_Void(); | |
45586 | } | |
45587 | ||
45588 | SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45589 | return SWIG_Python_InitShadowInstance(args); | |
45590 | } | |
45591 | ||
5172800e RD |
45592 | SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) { |
45593 | SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only."); | |
45594 | return 1; | |
45595 | } | |
45596 | ||
45597 | ||
45598 | SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) { | |
45599 | PyObject *pyobj = 0; | |
45600 | ||
45601 | { | |
45602 | #if wxUSE_UNICODE | |
45603 | pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len()); | |
45604 | #else | |
45605 | pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len()); | |
45606 | #endif | |
45607 | } | |
45608 | return pyobj; | |
45609 | } | |
45610 | ||
45611 | ||
45612 | SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45613 | PyObject *resultobj = 0; | |
45614 | wxWindow *arg1 = (wxWindow *) 0 ; | |
45615 | int arg2 = (int) -1 ; | |
45616 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
45617 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
45618 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
45619 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
45620 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
45621 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
45622 | long arg6 = (long) wxCP_DEFAULT_STYLE ; | |
45623 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
45624 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
45625 | wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ; | |
45626 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
45627 | wxCollapsiblePane *result = 0 ; | |
45628 | void *argp1 = 0 ; | |
45629 | int res1 = 0 ; | |
45630 | int val2 ; | |
45631 | int ecode2 = 0 ; | |
45632 | bool temp3 = false ; | |
45633 | wxPoint temp4 ; | |
45634 | wxSize temp5 ; | |
45635 | long val6 ; | |
45636 | int ecode6 = 0 ; | |
45637 | void *argp7 = 0 ; | |
45638 | int res7 = 0 ; | |
45639 | bool temp8 = false ; | |
45640 | PyObject * obj0 = 0 ; | |
45641 | PyObject * obj1 = 0 ; | |
45642 | PyObject * obj2 = 0 ; | |
45643 | PyObject * obj3 = 0 ; | |
45644 | PyObject * obj4 = 0 ; | |
45645 | PyObject * obj5 = 0 ; | |
45646 | PyObject * obj6 = 0 ; | |
45647 | PyObject * obj7 = 0 ; | |
45648 | char * kwnames[] = { | |
45649 | (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL | |
45650 | }; | |
45651 | ||
45652 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
45653 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
45654 | if (!SWIG_IsOK(res1)) { | |
45655 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
45656 | } | |
45657 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
45658 | if (obj1) { | |
45659 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
45660 | if (!SWIG_IsOK(ecode2)) { | |
45661 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'"); | |
45662 | } | |
45663 | arg2 = static_cast< int >(val2); | |
45664 | } | |
45665 | if (obj2) { | |
45666 | { | |
45667 | arg3 = wxString_in_helper(obj2); | |
45668 | if (arg3 == NULL) SWIG_fail; | |
45669 | temp3 = true; | |
45670 | } | |
45671 | } | |
45672 | if (obj3) { | |
45673 | { | |
45674 | arg4 = &temp4; | |
45675 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
45676 | } | |
45677 | } | |
45678 | if (obj4) { | |
45679 | { | |
45680 | arg5 = &temp5; | |
45681 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
45682 | } | |
45683 | } | |
45684 | if (obj5) { | |
45685 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
45686 | if (!SWIG_IsOK(ecode6)) { | |
45687 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'"); | |
45688 | } | |
45689 | arg6 = static_cast< long >(val6); | |
45690 | } | |
45691 | if (obj6) { | |
45692 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
45693 | if (!SWIG_IsOK(res7)) { | |
45694 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
45695 | } | |
45696 | if (!argp7) { | |
45697 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
45698 | } | |
45699 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
45700 | } | |
45701 | if (obj7) { | |
45702 | { | |
45703 | arg8 = wxString_in_helper(obj7); | |
45704 | if (arg8 == NULL) SWIG_fail; | |
45705 | temp8 = true; | |
45706 | } | |
45707 | } | |
45708 | { | |
45709 | if (!wxPyCheckForApp()) SWIG_fail; | |
45710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45711 | result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
45712 | wxPyEndAllowThreads(__tstate); | |
45713 | if (PyErr_Occurred()) SWIG_fail; | |
45714 | } | |
45715 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 ); | |
45716 | { | |
45717 | if (temp3) | |
45718 | delete arg3; | |
45719 | } | |
45720 | { | |
45721 | if (temp8) | |
45722 | delete arg8; | |
45723 | } | |
45724 | return resultobj; | |
45725 | fail: | |
45726 | { | |
45727 | if (temp3) | |
45728 | delete arg3; | |
45729 | } | |
45730 | { | |
45731 | if (temp8) | |
45732 | delete arg8; | |
45733 | } | |
45734 | return NULL; | |
45735 | } | |
45736 | ||
45737 | ||
45738 | SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45739 | PyObject *resultobj = 0; | |
45740 | wxCollapsiblePane *result = 0 ; | |
45741 | ||
45742 | if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail; | |
45743 | { | |
45744 | if (!wxPyCheckForApp()) SWIG_fail; | |
45745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45746 | result = (wxCollapsiblePane *)new wxCollapsiblePane(); | |
45747 | wxPyEndAllowThreads(__tstate); | |
45748 | if (PyErr_Occurred()) SWIG_fail; | |
45749 | } | |
45750 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 ); | |
45751 | return resultobj; | |
45752 | fail: | |
45753 | return NULL; | |
45754 | } | |
45755 | ||
45756 | ||
45757 | SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45758 | PyObject *resultobj = 0; | |
45759 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
45760 | wxWindow *arg2 = (wxWindow *) 0 ; | |
45761 | int arg3 = (int) -1 ; | |
45762 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
45763 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
45764 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
45765 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
45766 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
45767 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
45768 | long arg7 = (long) wxCP_DEFAULT_STYLE ; | |
45769 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
45770 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
45771 | wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ; | |
45772 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
45773 | bool result; | |
45774 | void *argp1 = 0 ; | |
45775 | int res1 = 0 ; | |
45776 | void *argp2 = 0 ; | |
45777 | int res2 = 0 ; | |
45778 | int val3 ; | |
45779 | int ecode3 = 0 ; | |
45780 | bool temp4 = false ; | |
45781 | wxPoint temp5 ; | |
45782 | wxSize temp6 ; | |
45783 | long val7 ; | |
45784 | int ecode7 = 0 ; | |
45785 | void *argp8 = 0 ; | |
45786 | int res8 = 0 ; | |
45787 | bool temp9 = false ; | |
45788 | PyObject * obj0 = 0 ; | |
45789 | PyObject * obj1 = 0 ; | |
45790 | PyObject * obj2 = 0 ; | |
45791 | PyObject * obj3 = 0 ; | |
45792 | PyObject * obj4 = 0 ; | |
45793 | PyObject * obj5 = 0 ; | |
45794 | PyObject * obj6 = 0 ; | |
45795 | PyObject * obj7 = 0 ; | |
45796 | PyObject * obj8 = 0 ; | |
45797 | char * kwnames[] = { | |
45798 | (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL | |
45799 | }; | |
45800 | ||
45801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
45802 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
45803 | if (!SWIG_IsOK(res1)) { | |
45804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'"); | |
45805 | } | |
45806 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
45807 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
45808 | if (!SWIG_IsOK(res2)) { | |
45809 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
45810 | } | |
45811 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
45812 | if (obj2) { | |
45813 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
45814 | if (!SWIG_IsOK(ecode3)) { | |
45815 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'"); | |
45816 | } | |
45817 | arg3 = static_cast< int >(val3); | |
45818 | } | |
45819 | if (obj3) { | |
45820 | { | |
45821 | arg4 = wxString_in_helper(obj3); | |
45822 | if (arg4 == NULL) SWIG_fail; | |
45823 | temp4 = true; | |
45824 | } | |
45825 | } | |
45826 | if (obj4) { | |
45827 | { | |
45828 | arg5 = &temp5; | |
45829 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
45830 | } | |
45831 | } | |
45832 | if (obj5) { | |
45833 | { | |
45834 | arg6 = &temp6; | |
45835 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
45836 | } | |
45837 | } | |
45838 | if (obj6) { | |
45839 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
45840 | if (!SWIG_IsOK(ecode7)) { | |
45841 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'"); | |
45842 | } | |
45843 | arg7 = static_cast< long >(val7); | |
45844 | } | |
45845 | if (obj7) { | |
45846 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
45847 | if (!SWIG_IsOK(res8)) { | |
45848 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
45849 | } | |
45850 | if (!argp8) { | |
45851 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
45852 | } | |
45853 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
45854 | } | |
45855 | if (obj8) { | |
45856 | { | |
45857 | arg9 = wxString_in_helper(obj8); | |
45858 | if (arg9 == NULL) SWIG_fail; | |
45859 | temp9 = true; | |
45860 | } | |
45861 | } | |
45862 | { | |
45863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45864 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
45865 | wxPyEndAllowThreads(__tstate); | |
45866 | if (PyErr_Occurred()) SWIG_fail; | |
45867 | } | |
45868 | { | |
45869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
45870 | } | |
45871 | { | |
45872 | if (temp4) | |
45873 | delete arg4; | |
45874 | } | |
45875 | { | |
45876 | if (temp9) | |
45877 | delete arg9; | |
45878 | } | |
45879 | return resultobj; | |
45880 | fail: | |
45881 | { | |
45882 | if (temp4) | |
45883 | delete arg4; | |
45884 | } | |
45885 | { | |
45886 | if (temp9) | |
45887 | delete arg9; | |
45888 | } | |
45889 | return NULL; | |
45890 | } | |
45891 | ||
45892 | ||
45893 | SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45894 | PyObject *resultobj = 0; | |
45895 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
45896 | bool arg2 = (bool) true ; | |
45897 | void *argp1 = 0 ; | |
45898 | int res1 = 0 ; | |
45899 | bool val2 ; | |
45900 | int ecode2 = 0 ; | |
45901 | PyObject * obj0 = 0 ; | |
45902 | PyObject * obj1 = 0 ; | |
45903 | char * kwnames[] = { | |
45904 | (char *) "self",(char *) "collapse", NULL | |
45905 | }; | |
45906 | ||
45907 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail; | |
45908 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
45909 | if (!SWIG_IsOK(res1)) { | |
45910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'"); | |
45911 | } | |
45912 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
45913 | if (obj1) { | |
45914 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
45915 | if (!SWIG_IsOK(ecode2)) { | |
45916 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'"); | |
45917 | } | |
45918 | arg2 = static_cast< bool >(val2); | |
45919 | } | |
45920 | { | |
45921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45922 | (arg1)->Collapse(arg2); | |
45923 | wxPyEndAllowThreads(__tstate); | |
45924 | if (PyErr_Occurred()) SWIG_fail; | |
45925 | } | |
45926 | resultobj = SWIG_Py_Void(); | |
45927 | return resultobj; | |
45928 | fail: | |
45929 | return NULL; | |
45930 | } | |
45931 | ||
45932 | ||
45933 | SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45934 | PyObject *resultobj = 0; | |
45935 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
45936 | void *argp1 = 0 ; | |
45937 | int res1 = 0 ; | |
45938 | PyObject *swig_obj[1] ; | |
45939 | ||
45940 | if (!args) SWIG_fail; | |
45941 | swig_obj[0] = args; | |
45942 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
45943 | if (!SWIG_IsOK(res1)) { | |
45944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'"); | |
45945 | } | |
45946 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
45947 | { | |
45948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45949 | (arg1)->Expand(); | |
45950 | wxPyEndAllowThreads(__tstate); | |
45951 | if (PyErr_Occurred()) SWIG_fail; | |
45952 | } | |
45953 | resultobj = SWIG_Py_Void(); | |
45954 | return resultobj; | |
45955 | fail: | |
45956 | return NULL; | |
45957 | } | |
45958 | ||
45959 | ||
45960 | SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45961 | PyObject *resultobj = 0; | |
45962 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
45963 | bool result; | |
45964 | void *argp1 = 0 ; | |
45965 | int res1 = 0 ; | |
45966 | PyObject *swig_obj[1] ; | |
45967 | ||
45968 | if (!args) SWIG_fail; | |
45969 | swig_obj[0] = args; | |
45970 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
45971 | if (!SWIG_IsOK(res1)) { | |
45972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'"); | |
45973 | } | |
45974 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
45975 | { | |
45976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45977 | result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed(); | |
45978 | wxPyEndAllowThreads(__tstate); | |
45979 | if (PyErr_Occurred()) SWIG_fail; | |
45980 | } | |
45981 | { | |
45982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
45983 | } | |
45984 | return resultobj; | |
45985 | fail: | |
45986 | return NULL; | |
45987 | } | |
45988 | ||
45989 | ||
45990 | SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45991 | PyObject *resultobj = 0; | |
45992 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
45993 | bool result; | |
45994 | void *argp1 = 0 ; | |
45995 | int res1 = 0 ; | |
45996 | PyObject *swig_obj[1] ; | |
45997 | ||
45998 | if (!args) SWIG_fail; | |
45999 | swig_obj[0] = args; | |
46000 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
46001 | if (!SWIG_IsOK(res1)) { | |
46002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'"); | |
46003 | } | |
46004 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
46005 | { | |
46006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46007 | result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded(); | |
46008 | wxPyEndAllowThreads(__tstate); | |
46009 | if (PyErr_Occurred()) SWIG_fail; | |
46010 | } | |
46011 | { | |
46012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
46013 | } | |
46014 | return resultobj; | |
46015 | fail: | |
46016 | return NULL; | |
46017 | } | |
46018 | ||
46019 | ||
46020 | SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46021 | PyObject *resultobj = 0; | |
46022 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
46023 | wxWindow *result = 0 ; | |
46024 | void *argp1 = 0 ; | |
46025 | int res1 = 0 ; | |
46026 | PyObject *swig_obj[1] ; | |
46027 | ||
46028 | if (!args) SWIG_fail; | |
46029 | swig_obj[0] = args; | |
46030 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
46031 | if (!SWIG_IsOK(res1)) { | |
46032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'"); | |
46033 | } | |
46034 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
46035 | { | |
46036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46037 | result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane(); | |
46038 | wxPyEndAllowThreads(__tstate); | |
46039 | if (PyErr_Occurred()) SWIG_fail; | |
46040 | } | |
46041 | { | |
46042 | resultobj = wxPyMake_wxObject(result, 0); | |
46043 | } | |
46044 | return resultobj; | |
46045 | fail: | |
46046 | return NULL; | |
46047 | } | |
46048 | ||
46049 | ||
46050 | SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46051 | PyObject *obj; | |
46052 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
46053 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj)); | |
46054 | return SWIG_Py_Void(); | |
46055 | } | |
46056 | ||
46057 | SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46058 | return SWIG_Python_InitShadowInstance(args); | |
46059 | } | |
46060 | ||
46061 | SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
46062 | PyObject *resultobj = 0; | |
46063 | wxObject *arg1 = (wxObject *) 0 ; | |
46064 | int arg2 ; | |
46065 | bool arg3 ; | |
46066 | wxCollapsiblePaneEvent *result = 0 ; | |
46067 | void *argp1 = 0 ; | |
46068 | int res1 = 0 ; | |
46069 | int val2 ; | |
46070 | int ecode2 = 0 ; | |
46071 | bool val3 ; | |
46072 | int ecode3 = 0 ; | |
46073 | PyObject * obj0 = 0 ; | |
46074 | PyObject * obj1 = 0 ; | |
46075 | PyObject * obj2 = 0 ; | |
46076 | char * kwnames[] = { | |
46077 | (char *) "generator",(char *) "id",(char *) "collapsed", NULL | |
46078 | }; | |
46079 | ||
46080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
46081 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 ); | |
46082 | if (!SWIG_IsOK(res1)) { | |
46083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'"); | |
46084 | } | |
46085 | arg1 = reinterpret_cast< wxObject * >(argp1); | |
46086 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
46087 | if (!SWIG_IsOK(ecode2)) { | |
46088 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'"); | |
46089 | } | |
46090 | arg2 = static_cast< int >(val2); | |
46091 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
46092 | if (!SWIG_IsOK(ecode3)) { | |
46093 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'"); | |
46094 | } | |
46095 | arg3 = static_cast< bool >(val3); | |
46096 | { | |
46097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46098 | result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3); | |
46099 | wxPyEndAllowThreads(__tstate); | |
46100 | if (PyErr_Occurred()) SWIG_fail; | |
46101 | } | |
46102 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 ); | |
46103 | return resultobj; | |
46104 | fail: | |
46105 | return NULL; | |
46106 | } | |
46107 | ||
46108 | ||
46109 | SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46110 | PyObject *resultobj = 0; | |
46111 | wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ; | |
46112 | bool result; | |
46113 | void *argp1 = 0 ; | |
46114 | int res1 = 0 ; | |
46115 | PyObject *swig_obj[1] ; | |
46116 | ||
46117 | if (!args) SWIG_fail; | |
46118 | swig_obj[0] = args; | |
46119 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 ); | |
46120 | if (!SWIG_IsOK(res1)) { | |
46121 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'"); | |
46122 | } | |
46123 | arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1); | |
46124 | { | |
46125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46126 | result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed(); | |
46127 | wxPyEndAllowThreads(__tstate); | |
46128 | if (PyErr_Occurred()) SWIG_fail; | |
46129 | } | |
46130 | { | |
46131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
46132 | } | |
46133 | return resultobj; | |
46134 | fail: | |
46135 | return NULL; | |
46136 | } | |
46137 | ||
46138 | ||
46139 | SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
46140 | PyObject *resultobj = 0; | |
46141 | wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ; | |
46142 | bool arg2 ; | |
46143 | void *argp1 = 0 ; | |
46144 | int res1 = 0 ; | |
46145 | bool val2 ; | |
46146 | int ecode2 = 0 ; | |
46147 | PyObject * obj0 = 0 ; | |
46148 | PyObject * obj1 = 0 ; | |
46149 | char * kwnames[] = { | |
46150 | (char *) "self",(char *) "c", NULL | |
46151 | }; | |
46152 | ||
46153 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail; | |
46154 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 ); | |
46155 | if (!SWIG_IsOK(res1)) { | |
46156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'"); | |
46157 | } | |
46158 | arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1); | |
46159 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
46160 | if (!SWIG_IsOK(ecode2)) { | |
46161 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'"); | |
46162 | } | |
46163 | arg2 = static_cast< bool >(val2); | |
46164 | { | |
46165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46166 | (arg1)->SetCollapsed(arg2); | |
46167 | wxPyEndAllowThreads(__tstate); | |
46168 | if (PyErr_Occurred()) SWIG_fail; | |
46169 | } | |
46170 | resultobj = SWIG_Py_Void(); | |
46171 | return resultobj; | |
46172 | fail: | |
46173 | return NULL; | |
46174 | } | |
46175 | ||
46176 | ||
46177 | SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46178 | PyObject *obj; | |
46179 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
46180 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj)); | |
46181 | return SWIG_Py_Void(); | |
46182 | } | |
46183 | ||
46184 | SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46185 | return SWIG_Python_InitShadowInstance(args); | |
46186 | } | |
46187 | ||
3f7f284d RD |
46188 | SWIGINTERN int SearchCtrlNameStr_set(PyObject *) { |
46189 | SWIG_Error(SWIG_AttributeError,"Variable SearchCtrlNameStr is read-only."); | |
46190 | return 1; | |
46191 | } | |
46192 | ||
46193 | ||
46194 | SWIGINTERN PyObject *SearchCtrlNameStr_get(void) { | |
46195 | PyObject *pyobj = 0; | |
46196 | ||
46197 | { | |
46198 | #if wxUSE_UNICODE | |
46199 | pyobj = PyUnicode_FromWideChar((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len()); | |
46200 | #else | |
46201 | pyobj = PyString_FromStringAndSize((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len()); | |
46202 | #endif | |
46203 | } | |
46204 | return pyobj; | |
46205 | } | |
46206 | ||
46207 | ||
46208 | SWIGINTERN PyObject *_wrap_new_SearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
46209 | PyObject *resultobj = 0; | |
46210 | wxWindow *arg1 = (wxWindow *) 0 ; | |
46211 | int arg2 = (int) -1 ; | |
46212 | wxString const &arg3_defvalue = wxEmptyString ; | |
46213 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
46214 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
46215 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
46216 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
46217 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
46218 | long arg6 = (long) 0 ; | |
46219 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
46220 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
46221 | wxString const &arg8_defvalue = wxPySearchCtrlNameStr ; | |
46222 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
46223 | wxSearchCtrl *result = 0 ; | |
46224 | void *argp1 = 0 ; | |
46225 | int res1 = 0 ; | |
46226 | int val2 ; | |
46227 | int ecode2 = 0 ; | |
46228 | bool temp3 = false ; | |
46229 | wxPoint temp4 ; | |
46230 | wxSize temp5 ; | |
46231 | long val6 ; | |
46232 | int ecode6 = 0 ; | |
46233 | void *argp7 = 0 ; | |
46234 | int res7 = 0 ; | |
46235 | bool temp8 = false ; | |
46236 | PyObject * obj0 = 0 ; | |
46237 | PyObject * obj1 = 0 ; | |
46238 | PyObject * obj2 = 0 ; | |
46239 | PyObject * obj3 = 0 ; | |
46240 | PyObject * obj4 = 0 ; | |
46241 | PyObject * obj5 = 0 ; | |
46242 | PyObject * obj6 = 0 ; | |
46243 | PyObject * obj7 = 0 ; | |
46244 | char * kwnames[] = { | |
46245 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
46246 | }; | |
46247 | ||
46248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SearchCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
46249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
46250 | if (!SWIG_IsOK(res1)) { | |
46251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SearchCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
46252 | } | |
46253 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
46254 | if (obj1) { | |
46255 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
46256 | if (!SWIG_IsOK(ecode2)) { | |
46257 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SearchCtrl" "', expected argument " "2"" of type '" "int""'"); | |
46258 | } | |
46259 | arg2 = static_cast< int >(val2); | |
46260 | } | |
46261 | if (obj2) { | |
46262 | { | |
46263 | arg3 = wxString_in_helper(obj2); | |
46264 | if (arg3 == NULL) SWIG_fail; | |
46265 | temp3 = true; | |
46266 | } | |
46267 | } | |
46268 | if (obj3) { | |
46269 | { | |
46270 | arg4 = &temp4; | |
46271 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
46272 | } | |
46273 | } | |
46274 | if (obj4) { | |
46275 | { | |
46276 | arg5 = &temp5; | |
46277 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
46278 | } | |
46279 | } | |
46280 | if (obj5) { | |
46281 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
46282 | if (!SWIG_IsOK(ecode6)) { | |
46283 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SearchCtrl" "', expected argument " "6"" of type '" "long""'"); | |
46284 | } | |
46285 | arg6 = static_cast< long >(val6); | |
46286 | } | |
46287 | if (obj6) { | |
46288 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
46289 | if (!SWIG_IsOK(res7)) { | |
46290 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
46291 | } | |
46292 | if (!argp7) { | |
46293 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
46294 | } | |
46295 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
46296 | } | |
46297 | if (obj7) { | |
46298 | { | |
46299 | arg8 = wxString_in_helper(obj7); | |
46300 | if (arg8 == NULL) SWIG_fail; | |
46301 | temp8 = true; | |
46302 | } | |
46303 | } | |
46304 | { | |
46305 | if (!wxPyCheckForApp()) SWIG_fail; | |
46306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46307 | result = (wxSearchCtrl *)new wxSearchCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
46308 | wxPyEndAllowThreads(__tstate); | |
46309 | if (PyErr_Occurred()) SWIG_fail; | |
46310 | } | |
46311 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_NEW | 0 ); | |
46312 | { | |
46313 | if (temp3) | |
46314 | delete arg3; | |
46315 | } | |
46316 | { | |
46317 | if (temp8) | |
46318 | delete arg8; | |
46319 | } | |
46320 | return resultobj; | |
46321 | fail: | |
46322 | { | |
46323 | if (temp3) | |
46324 | delete arg3; | |
46325 | } | |
46326 | { | |
46327 | if (temp8) | |
46328 | delete arg8; | |
46329 | } | |
46330 | return NULL; | |
46331 | } | |
46332 | ||
46333 | ||
46334 | SWIGINTERN PyObject *_wrap_new_PreSearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46335 | PyObject *resultobj = 0; | |
46336 | wxSearchCtrl *result = 0 ; | |
46337 | ||
46338 | if (!SWIG_Python_UnpackTuple(args,"new_PreSearchCtrl",0,0,0)) SWIG_fail; | |
46339 | { | |
46340 | if (!wxPyCheckForApp()) SWIG_fail; | |
46341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46342 | result = (wxSearchCtrl *)new wxSearchCtrl(); | |
46343 | wxPyEndAllowThreads(__tstate); | |
46344 | if (PyErr_Occurred()) SWIG_fail; | |
46345 | } | |
46346 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_OWN | 0 ); | |
46347 | return resultobj; | |
46348 | fail: | |
46349 | return NULL; | |
46350 | } | |
46351 | ||
46352 | ||
46353 | SWIGINTERN PyObject *_wrap_SearchCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
46354 | PyObject *resultobj = 0; | |
46355 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46356 | wxWindow *arg2 = (wxWindow *) 0 ; | |
46357 | int arg3 = (int) -1 ; | |
46358 | wxString const &arg4_defvalue = wxEmptyString ; | |
46359 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
46360 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
46361 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
46362 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
46363 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
46364 | long arg7 = (long) 0 ; | |
46365 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
46366 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
46367 | wxString const &arg9_defvalue = wxPySearchCtrlNameStr ; | |
46368 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
46369 | bool result; | |
46370 | void *argp1 = 0 ; | |
46371 | int res1 = 0 ; | |
46372 | void *argp2 = 0 ; | |
46373 | int res2 = 0 ; | |
46374 | int val3 ; | |
46375 | int ecode3 = 0 ; | |
46376 | bool temp4 = false ; | |
46377 | wxPoint temp5 ; | |
46378 | wxSize temp6 ; | |
46379 | long val7 ; | |
46380 | int ecode7 = 0 ; | |
46381 | void *argp8 = 0 ; | |
46382 | int res8 = 0 ; | |
46383 | bool temp9 = false ; | |
46384 | PyObject * obj0 = 0 ; | |
46385 | PyObject * obj1 = 0 ; | |
46386 | PyObject * obj2 = 0 ; | |
46387 | PyObject * obj3 = 0 ; | |
46388 | PyObject * obj4 = 0 ; | |
46389 | PyObject * obj5 = 0 ; | |
46390 | PyObject * obj6 = 0 ; | |
46391 | PyObject * obj7 = 0 ; | |
46392 | PyObject * obj8 = 0 ; | |
46393 | char * kwnames[] = { | |
46394 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
46395 | }; | |
46396 | ||
46397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SearchCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
46398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46399 | if (!SWIG_IsOK(res1)) { | |
46400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_Create" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); | |
46401 | } | |
46402 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46403 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
46404 | if (!SWIG_IsOK(res2)) { | |
46405 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
46406 | } | |
46407 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
46408 | if (obj2) { | |
46409 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
46410 | if (!SWIG_IsOK(ecode3)) { | |
46411 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
46412 | } | |
46413 | arg3 = static_cast< int >(val3); | |
46414 | } | |
46415 | if (obj3) { | |
46416 | { | |
46417 | arg4 = wxString_in_helper(obj3); | |
46418 | if (arg4 == NULL) SWIG_fail; | |
46419 | temp4 = true; | |
46420 | } | |
46421 | } | |
46422 | if (obj4) { | |
46423 | { | |
46424 | arg5 = &temp5; | |
46425 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
46426 | } | |
46427 | } | |
46428 | if (obj5) { | |
46429 | { | |
46430 | arg6 = &temp6; | |
46431 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
46432 | } | |
46433 | } | |
46434 | if (obj6) { | |
46435 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
46436 | if (!SWIG_IsOK(ecode7)) { | |
46437 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SearchCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
46438 | } | |
46439 | arg7 = static_cast< long >(val7); | |
46440 | } | |
46441 | if (obj7) { | |
46442 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
46443 | if (!SWIG_IsOK(res8)) { | |
46444 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
46445 | } | |
46446 | if (!argp8) { | |
46447 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
46448 | } | |
46449 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
46450 | } | |
46451 | if (obj8) { | |
46452 | { | |
46453 | arg9 = wxString_in_helper(obj8); | |
46454 | if (arg9 == NULL) SWIG_fail; | |
46455 | temp9 = true; | |
46456 | } | |
46457 | } | |
46458 | { | |
46459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46460 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
46461 | wxPyEndAllowThreads(__tstate); | |
46462 | if (PyErr_Occurred()) SWIG_fail; | |
46463 | } | |
46464 | { | |
46465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
46466 | } | |
46467 | { | |
46468 | if (temp4) | |
46469 | delete arg4; | |
46470 | } | |
46471 | { | |
46472 | if (temp9) | |
46473 | delete arg9; | |
46474 | } | |
46475 | return resultobj; | |
46476 | fail: | |
46477 | { | |
46478 | if (temp4) | |
46479 | delete arg4; | |
46480 | } | |
46481 | { | |
46482 | if (temp9) | |
46483 | delete arg9; | |
46484 | } | |
46485 | return NULL; | |
46486 | } | |
46487 | ||
46488 | ||
46489 | SWIGINTERN PyObject *_wrap_SearchCtrl_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
46490 | PyObject *resultobj = 0; | |
46491 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46492 | wxMenu *arg2 = (wxMenu *) 0 ; | |
46493 | void *argp1 = 0 ; | |
46494 | int res1 = 0 ; | |
46495 | void *argp2 = 0 ; | |
46496 | int res2 = 0 ; | |
46497 | PyObject * obj0 = 0 ; | |
46498 | PyObject * obj1 = 0 ; | |
46499 | char * kwnames[] = { | |
46500 | (char *) "self",(char *) "menu", NULL | |
46501 | }; | |
46502 | ||
46503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail; | |
46504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46505 | if (!SWIG_IsOK(res1)) { | |
46506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); | |
46507 | } | |
46508 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46509 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
46510 | if (!SWIG_IsOK(res2)) { | |
46511 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
46512 | } | |
46513 | arg2 = reinterpret_cast< wxMenu * >(argp2); | |
46514 | { | |
46515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46516 | (arg1)->SetMenu(arg2); | |
46517 | wxPyEndAllowThreads(__tstate); | |
46518 | if (PyErr_Occurred()) SWIG_fail; | |
46519 | } | |
46520 | resultobj = SWIG_Py_Void(); | |
46521 | return resultobj; | |
46522 | fail: | |
46523 | return NULL; | |
46524 | } | |
46525 | ||
46526 | ||
46527 | SWIGINTERN PyObject *_wrap_SearchCtrl_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46528 | PyObject *resultobj = 0; | |
46529 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46530 | wxMenu *result = 0 ; | |
46531 | void *argp1 = 0 ; | |
46532 | int res1 = 0 ; | |
46533 | PyObject *swig_obj[1] ; | |
46534 | ||
46535 | if (!args) SWIG_fail; | |
46536 | swig_obj[0] = args; | |
46537 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46538 | if (!SWIG_IsOK(res1)) { | |
46539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); | |
46540 | } | |
46541 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46542 | { | |
46543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46544 | result = (wxMenu *)(arg1)->GetMenu(); | |
46545 | wxPyEndAllowThreads(__tstate); | |
46546 | if (PyErr_Occurred()) SWIG_fail; | |
46547 | } | |
46548 | { | |
46549 | resultobj = wxPyMake_wxObject(result, 0); | |
46550 | } | |
46551 | return resultobj; | |
46552 | fail: | |
46553 | return NULL; | |
46554 | } | |
46555 | ||
46556 | ||
70b63a99 | 46557 | SWIGINTERN PyObject *_wrap_SearchCtrl_ShowSearchButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3f7f284d RD |
46558 | PyObject *resultobj = 0; |
46559 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46560 | bool arg2 ; | |
46561 | void *argp1 = 0 ; | |
46562 | int res1 = 0 ; | |
46563 | bool val2 ; | |
46564 | int ecode2 = 0 ; | |
46565 | PyObject * obj0 = 0 ; | |
46566 | PyObject * obj1 = 0 ; | |
46567 | char * kwnames[] = { | |
46568 | (char *) "self",(char *) "show", NULL | |
46569 | }; | |
46570 | ||
70b63a99 | 46571 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowSearchButton",kwnames,&obj0,&obj1)) SWIG_fail; |
3f7f284d RD |
46572 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); |
46573 | if (!SWIG_IsOK(res1)) { | |
70b63a99 | 46574 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); |
3f7f284d RD |
46575 | } |
46576 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46577 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
46578 | if (!SWIG_IsOK(ecode2)) { | |
70b63a99 | 46579 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "2"" of type '" "bool""'"); |
3f7f284d RD |
46580 | } |
46581 | arg2 = static_cast< bool >(val2); | |
46582 | { | |
46583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
70b63a99 | 46584 | (arg1)->ShowSearchButton(arg2); |
3f7f284d RD |
46585 | wxPyEndAllowThreads(__tstate); |
46586 | if (PyErr_Occurred()) SWIG_fail; | |
46587 | } | |
46588 | resultobj = SWIG_Py_Void(); | |
46589 | return resultobj; | |
46590 | fail: | |
46591 | return NULL; | |
46592 | } | |
46593 | ||
46594 | ||
70b63a99 | 46595 | SWIGINTERN PyObject *_wrap_SearchCtrl_IsSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3f7f284d RD |
46596 | PyObject *resultobj = 0; |
46597 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46598 | bool result; | |
46599 | void *argp1 = 0 ; | |
46600 | int res1 = 0 ; | |
46601 | PyObject *swig_obj[1] ; | |
46602 | ||
46603 | if (!args) SWIG_fail; | |
46604 | swig_obj[0] = args; | |
46605 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46606 | if (!SWIG_IsOK(res1)) { | |
70b63a99 | 46607 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'"); |
3f7f284d RD |
46608 | } |
46609 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46610 | { | |
46611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
70b63a99 | 46612 | result = (bool)((wxSearchCtrl const *)arg1)->IsSearchButtonVisible(); |
3f7f284d RD |
46613 | wxPyEndAllowThreads(__tstate); |
46614 | if (PyErr_Occurred()) SWIG_fail; | |
46615 | } | |
46616 | { | |
46617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
46618 | } | |
46619 | return resultobj; | |
46620 | fail: | |
46621 | return NULL; | |
46622 | } | |
46623 | ||
46624 | ||
70b63a99 | 46625 | SWIGINTERN PyObject *_wrap_SearchCtrl_ShowCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3f7f284d RD |
46626 | PyObject *resultobj = 0; |
46627 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46628 | bool arg2 ; | |
46629 | void *argp1 = 0 ; | |
46630 | int res1 = 0 ; | |
46631 | bool val2 ; | |
46632 | int ecode2 = 0 ; | |
46633 | PyObject * obj0 = 0 ; | |
46634 | PyObject * obj1 = 0 ; | |
46635 | char * kwnames[] = { | |
46636 | (char *) "self",(char *) "show", NULL | |
46637 | }; | |
46638 | ||
70b63a99 | 46639 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowCancelButton",kwnames,&obj0,&obj1)) SWIG_fail; |
3f7f284d RD |
46640 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); |
46641 | if (!SWIG_IsOK(res1)) { | |
70b63a99 | 46642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); |
3f7f284d RD |
46643 | } |
46644 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46645 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
46646 | if (!SWIG_IsOK(ecode2)) { | |
70b63a99 | 46647 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "2"" of type '" "bool""'"); |
3f7f284d RD |
46648 | } |
46649 | arg2 = static_cast< bool >(val2); | |
46650 | { | |
46651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
70b63a99 | 46652 | (arg1)->ShowCancelButton(arg2); |
3f7f284d RD |
46653 | wxPyEndAllowThreads(__tstate); |
46654 | if (PyErr_Occurred()) SWIG_fail; | |
46655 | } | |
46656 | resultobj = SWIG_Py_Void(); | |
46657 | return resultobj; | |
46658 | fail: | |
46659 | return NULL; | |
46660 | } | |
46661 | ||
46662 | ||
70b63a99 | 46663 | SWIGINTERN PyObject *_wrap_SearchCtrl_IsCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3f7f284d RD |
46664 | PyObject *resultobj = 0; |
46665 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46666 | bool result; | |
46667 | void *argp1 = 0 ; | |
46668 | int res1 = 0 ; | |
46669 | PyObject *swig_obj[1] ; | |
46670 | ||
46671 | if (!args) SWIG_fail; | |
46672 | swig_obj[0] = args; | |
46673 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46674 | if (!SWIG_IsOK(res1)) { | |
70b63a99 | 46675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'"); |
3f7f284d RD |
46676 | } |
46677 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46678 | { | |
46679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
70b63a99 | 46680 | result = (bool)((wxSearchCtrl const *)arg1)->IsCancelButtonVisible(); |
3f7f284d RD |
46681 | wxPyEndAllowThreads(__tstate); |
46682 | if (PyErr_Occurred()) SWIG_fail; | |
46683 | } | |
46684 | { | |
46685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
46686 | } | |
46687 | return resultobj; | |
46688 | fail: | |
46689 | return NULL; | |
46690 | } | |
46691 | ||
46692 | ||
6646ca90 RD |
46693 | SWIGINTERN PyObject *_wrap_SearchCtrl_SetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
46694 | PyObject *resultobj = 0; | |
46695 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46696 | wxString *arg2 = 0 ; | |
46697 | void *argp1 = 0 ; | |
46698 | int res1 = 0 ; | |
46699 | bool temp2 = false ; | |
46700 | PyObject * obj0 = 0 ; | |
46701 | PyObject * obj1 = 0 ; | |
46702 | char * kwnames[] = { | |
46703 | (char *) "self",(char *) "text", NULL | |
46704 | }; | |
46705 | ||
46706 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetDescriptiveText",kwnames,&obj0,&obj1)) SWIG_fail; | |
46707 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46708 | if (!SWIG_IsOK(res1)) { | |
46709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); | |
46710 | } | |
46711 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46712 | { | |
46713 | arg2 = wxString_in_helper(obj1); | |
46714 | if (arg2 == NULL) SWIG_fail; | |
46715 | temp2 = true; | |
46716 | } | |
46717 | { | |
46718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46719 | (arg1)->SetDescriptiveText((wxString const &)*arg2); | |
46720 | wxPyEndAllowThreads(__tstate); | |
46721 | if (PyErr_Occurred()) SWIG_fail; | |
46722 | } | |
46723 | resultobj = SWIG_Py_Void(); | |
46724 | { | |
46725 | if (temp2) | |
46726 | delete arg2; | |
46727 | } | |
46728 | return resultobj; | |
46729 | fail: | |
46730 | { | |
46731 | if (temp2) | |
46732 | delete arg2; | |
46733 | } | |
46734 | return NULL; | |
46735 | } | |
46736 | ||
46737 | ||
46738 | SWIGINTERN PyObject *_wrap_SearchCtrl_GetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46739 | PyObject *resultobj = 0; | |
46740 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46741 | wxString result; | |
46742 | void *argp1 = 0 ; | |
46743 | int res1 = 0 ; | |
46744 | PyObject *swig_obj[1] ; | |
46745 | ||
46746 | if (!args) SWIG_fail; | |
46747 | swig_obj[0] = args; | |
46748 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46749 | if (!SWIG_IsOK(res1)) { | |
46750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'"); | |
46751 | } | |
46752 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46753 | { | |
46754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46755 | result = ((wxSearchCtrl const *)arg1)->GetDescriptiveText(); | |
46756 | wxPyEndAllowThreads(__tstate); | |
46757 | if (PyErr_Occurred()) SWIG_fail; | |
46758 | } | |
46759 | { | |
46760 | #if wxUSE_UNICODE | |
46761 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
46762 | #else | |
46763 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
46764 | #endif | |
46765 | } | |
46766 | return resultobj; | |
46767 | fail: | |
46768 | return NULL; | |
46769 | } | |
46770 | ||
46771 | ||
3f7f284d RD |
46772 | SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
46773 | PyObject *resultobj = 0; | |
46774 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46775 | wxBitmap *arg2 = 0 ; | |
46776 | void *argp1 = 0 ; | |
46777 | int res1 = 0 ; | |
46778 | void *argp2 = 0 ; | |
46779 | int res2 = 0 ; | |
46780 | PyObject * obj0 = 0 ; | |
46781 | PyObject * obj1 = 0 ; | |
46782 | char * kwnames[] = { | |
46783 | (char *) "self",(char *)"arg2", NULL | |
46784 | }; | |
46785 | ||
46786 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
46787 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46788 | if (!SWIG_IsOK(res1)) { | |
46789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); | |
46790 | } | |
46791 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46792 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
46793 | if (!SWIG_IsOK(res2)) { | |
46794 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
46795 | } | |
46796 | if (!argp2) { | |
46797 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
46798 | } | |
46799 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
46800 | { | |
46801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46802 | wxSearchCtrl_SetSearchBitmap(arg1,(wxBitmap const &)*arg2); | |
46803 | wxPyEndAllowThreads(__tstate); | |
46804 | if (PyErr_Occurred()) SWIG_fail; | |
46805 | } | |
46806 | resultobj = SWIG_Py_Void(); | |
46807 | return resultobj; | |
46808 | fail: | |
46809 | return NULL; | |
46810 | } | |
46811 | ||
46812 | ||
46813 | SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchMenuBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
46814 | PyObject *resultobj = 0; | |
46815 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46816 | wxBitmap *arg2 = 0 ; | |
46817 | void *argp1 = 0 ; | |
46818 | int res1 = 0 ; | |
46819 | void *argp2 = 0 ; | |
46820 | int res2 = 0 ; | |
46821 | PyObject * obj0 = 0 ; | |
46822 | PyObject * obj1 = 0 ; | |
46823 | char * kwnames[] = { | |
46824 | (char *) "self",(char *)"arg2", NULL | |
46825 | }; | |
46826 | ||
46827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchMenuBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
46828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46829 | if (!SWIG_IsOK(res1)) { | |
46830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); | |
46831 | } | |
46832 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46833 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
46834 | if (!SWIG_IsOK(res2)) { | |
46835 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
46836 | } | |
46837 | if (!argp2) { | |
46838 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
46839 | } | |
46840 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
46841 | { | |
46842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46843 | wxSearchCtrl_SetSearchMenuBitmap(arg1,(wxBitmap const &)*arg2); | |
46844 | wxPyEndAllowThreads(__tstate); | |
46845 | if (PyErr_Occurred()) SWIG_fail; | |
46846 | } | |
46847 | resultobj = SWIG_Py_Void(); | |
46848 | return resultobj; | |
46849 | fail: | |
46850 | return NULL; | |
46851 | } | |
46852 | ||
46853 | ||
46854 | SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
46855 | PyObject *resultobj = 0; | |
46856 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46857 | wxBitmap *arg2 = 0 ; | |
46858 | void *argp1 = 0 ; | |
46859 | int res1 = 0 ; | |
46860 | void *argp2 = 0 ; | |
46861 | int res2 = 0 ; | |
46862 | PyObject * obj0 = 0 ; | |
46863 | PyObject * obj1 = 0 ; | |
46864 | char * kwnames[] = { | |
46865 | (char *) "self",(char *)"arg2", NULL | |
46866 | }; | |
46867 | ||
46868 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
46869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46870 | if (!SWIG_IsOK(res1)) { | |
46871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); | |
46872 | } | |
46873 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46874 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
46875 | if (!SWIG_IsOK(res2)) { | |
46876 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
46877 | } | |
46878 | if (!argp2) { | |
46879 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
46880 | } | |
46881 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
46882 | { | |
46883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46884 | wxSearchCtrl_SetCancelBitmap(arg1,(wxBitmap const &)*arg2); | |
46885 | wxPyEndAllowThreads(__tstate); | |
46886 | if (PyErr_Occurred()) SWIG_fail; | |
46887 | } | |
46888 | resultobj = SWIG_Py_Void(); | |
46889 | return resultobj; | |
46890 | fail: | |
46891 | return NULL; | |
46892 | } | |
46893 | ||
46894 | ||
46895 | SWIGINTERN PyObject *SearchCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46896 | PyObject *obj; | |
46897 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
46898 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSearchCtrl, SWIG_NewClientData(obj)); | |
46899 | return SWIG_Py_Void(); | |
46900 | } | |
46901 | ||
46902 | SWIGINTERN PyObject *SearchCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46903 | return SWIG_Python_InitShadowInstance(args); | |
46904 | } | |
46905 | ||
b850e7f3 RD |
46906 | static PyMethodDef SwigMethods[] = { |
46907 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46908 | { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL}, | |
46909 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46910 | { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL}, | |
46911 | { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL}, | |
46912 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46913 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL}, | |
46914 | { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL}, | |
46915 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46916 | { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL}, | |
46917 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46918 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL}, | |
46919 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL}, | |
46920 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL}, | |
46921 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL}, | |
46922 | { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL}, | |
46923 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46924 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46925 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46926 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46927 | { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46928 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46929 | { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL}, | |
46930 | { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL}, | |
46931 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL}, | |
46932 | { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL}, | |
46933 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46934 | { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL}, | |
46935 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46936 | { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL}, | |
46937 | { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL}, | |
46938 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46939 | { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL}, | |
46940 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46941 | { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL}, | |
46942 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL}, | |
46943 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46944 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL}, | |
46945 | { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL}, | |
46946 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46947 | { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL}, | |
46948 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46949 | { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL}, | |
46950 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46951 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL}, | |
46952 | { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL}, | |
46953 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46954 | { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL}, | |
46955 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46956 | { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL}, | |
46957 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46958 | { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL}, | |
46959 | { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL}, | |
46960 | { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL}, | |
46961 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46962 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL}, | |
46963 | { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL}, | |
46964 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46965 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46966 | { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL}, | |
46967 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b850e7f3 RD |
46968 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, |
46969 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL}, | |
46970 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46971 | { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL}, | |
46972 | { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL}, | |
46973 | { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL}, | |
46974 | { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL}, | |
46975 | { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL}, | |
46976 | { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL}, | |
46977 | { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL}, | |
46978 | { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL}, | |
46979 | { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL}, | |
46980 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46981 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL}, | |
46982 | { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL}, | |
46983 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46984 | { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL}, | |
46985 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46986 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46987 | { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL}, | |
46988 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46989 | { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL}, | |
0d2c9713 | 46990 | { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL}, |
b850e7f3 RD |
46991 | { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL}, |
46992 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46993 | { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL}, | |
46994 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46995 | { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL}, | |
46996 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46997 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL}, | |
46998 | { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL}, | |
46999 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47000 | { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL}, | |
47001 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47002 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47003 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL}, | |
47004 | { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL}, | |
47005 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47006 | { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL}, | |
47007 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47008 | { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL}, | |
47009 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL}, | |
47010 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47011 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL}, | |
47012 | { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL}, | |
47013 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47014 | { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL}, | |
47015 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47016 | { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47017 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47018 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL}, | |
47019 | { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL}, | |
47020 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47021 | { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL}, | |
47022 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47023 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL}, | |
47024 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47025 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47026 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47027 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL}, | |
47028 | { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL}, | |
47029 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47030 | { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL}, | |
47031 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47032 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47033 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47034 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47035 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47036 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47037 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47038 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47039 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47040 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47041 | { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL}, | |
47042 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47043 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47044 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47045 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47046 | { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL}, | |
47047 | { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47048 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47049 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47050 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47051 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47052 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL}, | |
47053 | { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL}, | |
47054 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47055 | { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL}, | |
47056 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47057 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47058 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47059 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL}, | |
47060 | { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL}, | |
47061 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47062 | { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL}, | |
47063 | { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL}, | |
47064 | { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47065 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47066 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47067 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47068 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47069 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47070 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47071 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47072 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47073 | { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL}, | |
47074 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL}, | |
47075 | { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL}, | |
47076 | { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL}, | |
47077 | { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL}, | |
47078 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL}, | |
47079 | { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL}, | |
47080 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47081 | { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL}, | |
47082 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL}, | |
47083 | { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL}, | |
47084 | { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL}, | |
47085 | { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL}, | |
47086 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL}, | |
47087 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL}, | |
47088 | { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL}, | |
47089 | { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL}, | |
47090 | { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL}, | |
47091 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47092 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL}, | |
47093 | { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL}, | |
47094 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47095 | { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL}, | |
47096 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47097 | { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL}, | |
47098 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
47099 | { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL}, |
47100 | { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b850e7f3 RD |
47101 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, |
47102 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47103 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47104 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL}, | |
47105 | { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL}, | |
47106 | { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL}, | |
47107 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL}, | |
47108 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL}, | |
47109 | { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL}, | |
47110 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL}, | |
47111 | { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL}, | |
47112 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47113 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47114 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47115 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47116 | { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL}, | |
47117 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL}, | |
b02396e8 | 47118 | { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL}, |
b850e7f3 RD |
47119 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, |
47120 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47121 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47122 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47123 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47124 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47125 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47126 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL}, | |
47127 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47128 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47129 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47130 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47131 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47132 | { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL}, | |
47133 | { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL}, | |
47134 | { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL}, | |
47135 | { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL}, | |
47136 | { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL}, | |
47137 | { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL}, | |
47138 | { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL}, | |
47139 | { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL}, | |
47140 | { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL}, | |
47141 | { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL}, | |
47142 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47143 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL}, | |
47144 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL}, | |
47145 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL}, | |
47146 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47147 | { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL}, | |
47148 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
d7645bfd | 47149 | { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL}, |
b39fe951 | 47150 | { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL}, |
b850e7f3 RD |
47151 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL}, |
47152 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47153 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47154 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL}, | |
47155 | { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL}, | |
47156 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47157 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL}, | |
47158 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL}, | |
47159 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL}, | |
47160 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL}, | |
47161 | { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL}, | |
47162 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47163 | { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL}, | |
47164 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47165 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL}, | |
47166 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL}, | |
47167 | { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL}, | |
47168 | { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL}, | |
47169 | { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL}, | |
47170 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47171 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47172 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL}, | |
47173 | { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL}, | |
47174 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47175 | { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL}, | |
47176 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47177 | { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL}, | |
47178 | { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL}, | |
47179 | { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL}, | |
47180 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47181 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47182 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47183 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47184 | { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL}, | |
47185 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47186 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL}, | |
47187 | { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL}, | |
47188 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47189 | { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL}, | |
47190 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47191 | { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL}, | |
47192 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47193 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47194 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47195 | { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL}, | |
47196 | { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL}, | |
47197 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47198 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47199 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL}, | |
47200 | { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL}, | |
47201 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47202 | { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL}, | |
47203 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47204 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL}, | |
47205 | { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL}, | |
47206 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47207 | { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL}, | |
47208 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47209 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47210 | { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL}, | |
47211 | { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL}, | |
47212 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47213 | { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL}, | |
47214 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47215 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47216 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47217 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47218 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47219 | { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47220 | { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47221 | { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL}, | |
47222 | { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL}, | |
47223 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47224 | { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47225 | { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47226 | { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47227 | { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47228 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47229 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL}, | |
47230 | { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL}, | |
47231 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47232 | { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL}, | |
47233 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47234 | { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL}, | |
47235 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47236 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47237 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL}, | |
47238 | { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL}, | |
47239 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47240 | { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL}, | |
47241 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47242 | { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL}, | |
47243 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47244 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47245 | { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL}, | |
47246 | { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL}, | |
47247 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47248 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47249 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47250 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47251 | { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL}, | |
47252 | { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL}, | |
47253 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47254 | { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL}, | |
47255 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47256 | { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL}, | |
47257 | { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL}, | |
47258 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47259 | { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL}, | |
47260 | { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL}, | |
47261 | { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL}, | |
47262 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47263 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47264 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL}, | |
47265 | { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL}, | |
47266 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47267 | { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL}, | |
47268 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47269 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47270 | { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL}, | |
47271 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47272 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL}, | |
47273 | { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL}, | |
47274 | { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL}, | |
47275 | { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47276 | { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL}, | |
47277 | { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL}, | |
47278 | { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47279 | { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47280 | { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47281 | { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47282 | { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL}, | |
47283 | { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47284 | { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47285 | { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47286 | { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47287 | { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL}, | |
47288 | { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47289 | { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL}, | |
47290 | { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
e9d6f3a4 | 47291 | { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL}, |
1bd55598 RD |
47292 | { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
47293 | { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL}, | |
e9d6f3a4 | 47294 | { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL}, |
1bd55598 RD |
47295 | { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL}, |
47296 | { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47297 | { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL}, | |
47298 | { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47299 | { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47300 | { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 47301 | { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 47302 | { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
704eda0c | 47303 | { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
47304 | { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
47305 | { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL}, | |
47306 | { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47307 | { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL}, | |
47308 | { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47309 | { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL}, | |
47310 | { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47311 | { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL}, | |
47312 | { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL}, | |
47313 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47314 | { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL}, | |
47315 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47316 | { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL}, | |
47317 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47318 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
47319 | { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL}, |
47320 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
47321 | { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
47322 | { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
47323 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL}, |
47324 | { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL}, | |
47325 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47326 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL}, | |
47327 | { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL}, | |
47328 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47329 | { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL}, | |
47330 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47331 | { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL}, | |
47332 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL}, | |
47333 | { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL}, | |
47334 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47335 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL}, | |
47336 | { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL}, | |
47337 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47338 | { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL}, | |
47339 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47340 | { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL}, | |
47341 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL}, | |
47342 | { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL}, | |
47343 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47344 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL}, | |
47345 | { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL}, | |
47346 | { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47347 | { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL}, | |
47348 | { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47349 | { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47350 | { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47351 | { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47352 | { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47353 | { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47354 | { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47355 | { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL}, | |
47356 | { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL}, | |
47357 | { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL}, | |
47358 | { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47359 | { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL}, | |
47360 | { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL}, | |
47361 | { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47362 | { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL}, | |
47363 | { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47364 | { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL}, | |
47365 | { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL}, | |
47366 | { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL}, | |
47367 | { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL}, | |
47368 | { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47369 | { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL}, | |
47370 | { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL}, | |
47371 | { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL}, | |
47372 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL}, | |
47373 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL}, | |
47374 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL}, | |
47375 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL}, | |
47376 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL}, | |
47377 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL}, | |
47378 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL}, | |
47379 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL}, | |
47380 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL}, | |
47381 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL}, | |
47382 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL}, | |
47383 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL}, | |
47384 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL}, | |
47385 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL}, | |
47386 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL}, | |
47387 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL}, | |
47388 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47389 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL}, | |
47390 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47391 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47392 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47393 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47394 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47395 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47396 | { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL}, | |
47397 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47398 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL}, | |
47399 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47400 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL}, | |
47401 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47402 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47403 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47404 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47405 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47406 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47407 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47408 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL}, | |
47409 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47410 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47411 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47412 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47413 | { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL}, | |
47414 | { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL}, | |
47415 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47416 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47417 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47418 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47419 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47420 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47421 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47422 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47423 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47424 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47425 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47426 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47427 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47428 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47429 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47430 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47431 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL}, | |
47432 | { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL}, | |
47433 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL}, | |
47434 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL}, | |
47435 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47436 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47437 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL}, | |
47438 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL}, | |
47439 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47440 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL}, | |
47441 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL}, | |
47442 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47443 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47444 | { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL}, | |
47445 | { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL}, | |
47446 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL}, | |
47447 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47448 | { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL}, | |
47449 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4976f996 RD |
47450 | { (char *)"ToolBar_SetToolNormalBitmap", (PyCFunction) _wrap_ToolBar_SetToolNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
47451 | { (char *)"ToolBar_SetToolDisabledBitmap", (PyCFunction) _wrap_ToolBar_SetToolDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
47452 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
47453 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL}, | |
47454 | { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL}, | |
47455 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47456 | { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL}, | |
47457 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47458 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47459 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47460 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL}, | |
47461 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL}, | |
47462 | { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL}, | |
47463 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL}, | |
47464 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL}, | |
47465 | { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL}, | |
47466 | { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47467 | { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL}, | |
47468 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL}, | |
47469 | { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL}, | |
47470 | { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL}, | |
47471 | { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL}, | |
47472 | { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL}, | |
47473 | { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL}, | |
47474 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47475 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47476 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47477 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47478 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47479 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47480 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47481 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47482 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47483 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47484 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47485 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47486 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47487 | { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL}, | |
47488 | { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL}, | |
47489 | { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL}, | |
47490 | { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL}, | |
47491 | { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL}, | |
47492 | { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL}, | |
47493 | { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL}, | |
47494 | { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL}, | |
47495 | { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL}, | |
47496 | { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL}, | |
47497 | { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL}, | |
47498 | { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL}, | |
47499 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL}, | |
47500 | { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL}, | |
47501 | { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL}, | |
47502 | { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL}, | |
47503 | { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL}, | |
47504 | { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL}, | |
47505 | { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL}, | |
47506 | { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL}, | |
47507 | { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL}, | |
47508 | { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL}, | |
47509 | { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL}, | |
47510 | { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL}, | |
47511 | { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL}, | |
47512 | { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL}, | |
47513 | { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL}, | |
47514 | { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL}, | |
47515 | { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL}, | |
47516 | { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL}, | |
47517 | { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL}, | |
47518 | { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL}, | |
47519 | { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL}, | |
47520 | { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL}, | |
47521 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL}, | |
47522 | { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL}, | |
47523 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47524 | { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL}, | |
47525 | { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL}, | |
47526 | { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL}, | |
47527 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL}, | |
47528 | { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL}, | |
47529 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL}, | |
47530 | { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL}, | |
47531 | { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL}, | |
47532 | { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL}, | |
47533 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL}, | |
47534 | { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL}, | |
47535 | { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL}, | |
47536 | { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL}, | |
47537 | { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL}, | |
47538 | { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL}, | |
47539 | { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL}, | |
47540 | { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL}, | |
47541 | { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL}, | |
47542 | { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL}, | |
47543 | { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL}, | |
47544 | { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL}, | |
47545 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL}, | |
47546 | { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL}, | |
47547 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL}, | |
47548 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47549 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL}, | |
47550 | { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL}, | |
47551 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47552 | { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL}, | |
47553 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47554 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47555 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47556 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47557 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47558 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47559 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL}, | |
47560 | { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL}, | |
47561 | { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL}, | |
47562 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47563 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47564 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47565 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47566 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47567 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47568 | { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47569 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47570 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47571 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47572 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47573 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47574 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47575 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47576 | { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL}, | |
47577 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL}, | |
47578 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL}, | |
47579 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47580 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL}, | |
47581 | { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL}, | |
47582 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47583 | { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL}, | |
47584 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47585 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47586 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47587 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47588 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47589 | { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL}, | |
47590 | { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL}, | |
47591 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47592 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47593 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47594 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47595 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL}, | |
47596 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47597 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL}, | |
47598 | { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL}, | |
47599 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47600 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47601 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47602 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47603 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47604 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c | 47605 | { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
47606 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, |
47607 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47608 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47609 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47610 | { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47611 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47612 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47613 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47614 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47615 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47616 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47617 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47618 | { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47619 | { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47620 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47621 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL}, | |
47622 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47623 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL}, | |
47624 | { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL}, | |
47625 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47626 | { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL}, | |
47627 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47628 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47629 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47630 | { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL}, | |
47631 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47632 | { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL}, | |
47633 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47634 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47635 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47636 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL}, | |
47637 | { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL}, | |
47638 | { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL}, | |
47639 | { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL}, | |
47640 | { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL}, | |
47641 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47642 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47643 | { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL}, | |
47644 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL}, | |
47645 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL}, | |
47646 | { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL}, | |
47647 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47648 | { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL}, | |
47649 | { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL}, | |
47650 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47651 | { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL}, | |
47652 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47653 | { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL}, | |
47654 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL}, | |
47655 | { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL}, | |
b02396e8 | 47656 | { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL}, |
1bd55598 RD |
47657 | { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL}, |
47658 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47659 | { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL}, | |
47660 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47661 | { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL}, | |
47662 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47663 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL}, | |
47664 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL}, | |
47665 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47666 | { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL}, | |
47667 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47668 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL}, | |
47669 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47670 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47671 | { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL}, | |
47672 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL}, | |
47673 | { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL}, | |
47674 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47675 | { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL}, | |
47676 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47677 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47678 | { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL}, | |
47679 | { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL}, | |
47680 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47681 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL}, | |
47682 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47683 | { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL}, | |
47684 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL}, | |
47685 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47686 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47687 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47688 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47689 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47690 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47691 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47692 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47693 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47694 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47695 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47696 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47697 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47698 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47699 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47700 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47701 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47702 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47703 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47704 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47705 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47706 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47707 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47708 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47709 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47710 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1ceb4f4d | 47711 | { (char *)"TreeCtrl_IsEmpty", (PyCFunction)_wrap_TreeCtrl_IsEmpty, METH_O, NULL}, |
1bd55598 RD |
47712 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
47713 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL}, | |
47714 | { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL}, | |
47715 | { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL}, | |
47716 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47717 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47718 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47719 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47720 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47721 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47722 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL}, | |
47723 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47724 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47725 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47726 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47727 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47728 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47729 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47730 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47731 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47732 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL}, | |
47733 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3d6c9062 RD |
47734 | { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL}, |
47735 | { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL}, | |
1bd55598 | 47736 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, |
1ceb4f4d RD |
47737 | { (char *)"TreeCtrl_CollapseAllChildren", (PyCFunction) _wrap_TreeCtrl_CollapseAllChildren, METH_VARARGS | METH_KEYWORDS, NULL}, |
47738 | { (char *)"TreeCtrl_CollapseAll", (PyCFunction)_wrap_TreeCtrl_CollapseAll, METH_O, NULL}, | |
1bd55598 RD |
47739 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL}, |
47740 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47741 | { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL}, | |
47742 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47743 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL}, | |
47744 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47745 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47746 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47747 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47748 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47749 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL}, | |
47750 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47751 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47752 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47753 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2131d850 RD |
47754 | { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
47755 | { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL}, | |
1bd55598 RD |
47756 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL}, |
47757 | { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL}, | |
47758 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47759 | { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL}, | |
47760 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47761 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c | 47762 | { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
47763 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL}, |
47764 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47765 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL}, | |
47766 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL}, | |
47767 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47768 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47769 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL}, | |
47770 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL}, | |
47771 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47772 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL}, | |
47773 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47774 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL}, | |
47775 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL}, | |
47776 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL}, | |
47777 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47778 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL}, | |
47779 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL}, | |
47780 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL}, | |
47781 | { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL}, | |
47782 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47783 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL}, | |
47784 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47785 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47786 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL}, | |
47787 | { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL}, | |
47788 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47789 | { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL}, | |
47790 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
47791 | { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
47792 | { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47793 | { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47794 | { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47795 | { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47796 | { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL}, | |
47797 | { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL}, | |
47798 | { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL}, | |
47799 | { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL}, | |
47800 | { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL}, | |
47801 | { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL}, | |
47802 | { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL}, | |
47803 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL}, | |
47804 | { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL}, | |
47805 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47806 | { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL}, | |
47807 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47808 | { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL}, | |
47809 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47810 | { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL}, | |
47811 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
47812 | { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL}, |
47813 | { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
47814 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL}, |
47815 | { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL}, | |
47816 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47817 | { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL}, | |
47818 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47819 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL}, | |
47820 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL}, | |
47821 | { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL}, | |
47822 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47823 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL}, | |
47824 | { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL}, | |
f52cbe90 | 47825 | { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL}, |
1bd55598 RD |
47826 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
47827 | { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL}, | |
47828 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47829 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b850e7f3 | 47830 | { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
47831 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL}, |
47832 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47833 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47834 | { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL}, | |
47835 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL}, | |
47836 | { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL}, | |
47837 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL}, | |
47838 | { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL}, | |
47839 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47840 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47841 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47842 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47843 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47844 | { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL}, | |
47845 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47846 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47847 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47848 | { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL}, | |
47849 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47850 | { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL}, | |
47851 | { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL}, | |
47852 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47853 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47854 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47855 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47856 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL}, | |
47857 | { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL}, | |
47858 | { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47859 | { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL}, | |
47860 | { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47861 | { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47862 | { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL}, | |
47863 | { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47864 | { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL}, | |
47865 | { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL}, | |
47866 | { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL}, | |
47867 | { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL}, | |
704eda0c RD |
47868 | { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
47869 | { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL}, | |
47870 | { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47871 | { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL}, | |
47872 | { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47873 | { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL}, | |
47874 | { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47875 | { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL}, | |
47876 | { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47877 | { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL}, | |
47878 | { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47879 | { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47880 | { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL}, | |
47881 | { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL}, | |
47882 | { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL}, | |
47883 | { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47884 | { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL}, | |
47885 | { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47886 | { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL}, | |
47887 | { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL}, | |
b850e7f3 RD |
47888 | { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL}, |
47889 | { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47890 | { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL}, | |
47891 | { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47892 | { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL}, | |
1eeb270e RD |
47893 | { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL}, |
47894 | { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL}, | |
b02396e8 RD |
47895 | { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL}, |
47896 | { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47897 | { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL}, | |
47898 | { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b850e7f3 RD |
47899 | { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL}, |
47900 | { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL}, | |
47901 | { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL}, | |
47902 | { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL}, | |
47903 | { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47904 | { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL}, | |
47905 | { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47906 | { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL}, | |
47907 | { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47908 | { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL}, | |
47909 | { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL}, | |
47910 | { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47911 | { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL}, | |
47912 | { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47913 | { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL}, | |
47914 | { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL}, | |
47915 | { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47916 | { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL}, | |
47917 | { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47918 | { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL}, | |
47919 | { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b02396e8 RD |
47920 | { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL}, |
47921 | { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL}, | |
b850e7f3 RD |
47922 | { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL}, |
47923 | { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL}, | |
47924 | { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47925 | { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL}, | |
47926 | { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47927 | { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL}, | |
47928 | { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b02396e8 RD |
47929 | { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL}, |
47930 | { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL}, | |
b850e7f3 RD |
47931 | { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL}, |
47932 | { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL}, | |
47933 | { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47934 | { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL}, | |
47935 | { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47936 | { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL}, | |
47937 | { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL}, | |
47938 | { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47939 | { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL}, | |
47940 | { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47941 | { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL}, | |
47942 | { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47943 | { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47944 | { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL}, | |
47945 | { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL}, | |
47946 | { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL}, | |
47947 | { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47948 | { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL}, | |
47949 | { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47950 | { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL}, | |
47951 | { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL}, | |
5172800e RD |
47952 | { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL}, |
47953 | { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL}, | |
47954 | { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47955 | { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47956 | { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL}, | |
47957 | { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL}, | |
47958 | { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL}, | |
47959 | { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL}, | |
47960 | { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL}, | |
47961 | { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL}, | |
47962 | { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47963 | { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL}, | |
47964 | { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47965 | { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL}, | |
47966 | { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL}, | |
3f7f284d RD |
47967 | { (char *)"new_SearchCtrl", (PyCFunction) _wrap_new_SearchCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
47968 | { (char *)"new_PreSearchCtrl", (PyCFunction)_wrap_new_PreSearchCtrl, METH_NOARGS, NULL}, | |
47969 | { (char *)"SearchCtrl_Create", (PyCFunction) _wrap_SearchCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47970 | { (char *)"SearchCtrl_SetMenu", (PyCFunction) _wrap_SearchCtrl_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47971 | { (char *)"SearchCtrl_GetMenu", (PyCFunction)_wrap_SearchCtrl_GetMenu, METH_O, NULL}, | |
70b63a99 RD |
47972 | { (char *)"SearchCtrl_ShowSearchButton", (PyCFunction) _wrap_SearchCtrl_ShowSearchButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
47973 | { (char *)"SearchCtrl_IsSearchButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsSearchButtonVisible, METH_O, NULL}, | |
47974 | { (char *)"SearchCtrl_ShowCancelButton", (PyCFunction) _wrap_SearchCtrl_ShowCancelButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47975 | { (char *)"SearchCtrl_IsCancelButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsCancelButtonVisible, METH_O, NULL}, | |
6646ca90 RD |
47976 | { (char *)"SearchCtrl_SetDescriptiveText", (PyCFunction) _wrap_SearchCtrl_SetDescriptiveText, METH_VARARGS | METH_KEYWORDS, NULL}, |
47977 | { (char *)"SearchCtrl_GetDescriptiveText", (PyCFunction)_wrap_SearchCtrl_GetDescriptiveText, METH_O, NULL}, | |
3f7f284d RD |
47978 | { (char *)"SearchCtrl_SetSearchBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
47979 | { (char *)"SearchCtrl_SetSearchMenuBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchMenuBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47980 | { (char *)"SearchCtrl_SetCancelBitmap", (PyCFunction) _wrap_SearchCtrl_SetCancelBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47981 | { (char *)"SearchCtrl_swigregister", SearchCtrl_swigregister, METH_VARARGS, NULL}, | |
47982 | { (char *)"SearchCtrl_swiginit", SearchCtrl_swiginit, METH_VARARGS, NULL}, | |
1bd55598 RD |
47983 | { NULL, NULL, 0, NULL } |
47984 | }; | |
47985 | ||
47986 | ||
47987 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
47988 | ||
47989 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
47990 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
47991 | } | |
47992 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
47993 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
47994 | } | |
47995 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
47996 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
47997 | } | |
47998 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
47999 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
48000 | } | |
48001 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
48002 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
48003 | } | |
48004 | static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) { | |
48005 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
48006 | } | |
48007 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
48008 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
48009 | } | |
48010 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
48011 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
48012 | } | |
b850e7f3 RD |
48013 | static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) { |
48014 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x)); | |
48015 | } | |
48016 | static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) { | |
48017 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x)); | |
48018 | } | |
48019 | static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) { | |
48020 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x)); | |
48021 | } | |
1bd55598 RD |
48022 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { |
48023 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
48024 | } | |
48025 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
48026 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
48027 | } | |
48028 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
48029 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
48030 | } | |
1bd55598 RD |
48031 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { |
48032 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
48033 | } | |
34e0a3bb RD |
48034 | static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) { |
48035 | return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
48036 | } | |
2131d850 RD |
48037 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
48038 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
48039 | } | |
1bd55598 RD |
48040 | static void *_p_wxListEventTo_p_wxEvent(void *x) { |
48041 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
48042 | } | |
48043 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
48044 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
48045 | } | |
48046 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
48047 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
48048 | } | |
48049 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { | |
48050 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
48051 | } | |
48052 | static void *_p_wxTreebookEventTo_p_wxEvent(void *x) { | |
48053 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
48054 | } | |
48055 | static void *_p_wxToolbookEventTo_p_wxEvent(void *x) { | |
48056 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
48057 | } | |
48058 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
48059 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
48060 | } | |
48061 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
48062 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
48063 | } | |
48064 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
48065 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
48066 | } | |
48067 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
48068 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
48069 | } | |
48070 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
48071 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
48072 | } | |
48073 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
48074 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
48075 | } | |
48076 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
48077 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
48078 | } | |
48079 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
48080 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
48081 | } | |
48082 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
48083 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
48084 | } | |
48085 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { | |
48086 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
48087 | } | |
5172800e RD |
48088 | static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) { |
48089 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x)); | |
48090 | } | |
1bd55598 RD |
48091 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
48092 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
48093 | } | |
48094 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
48095 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
48096 | } | |
34e0a3bb RD |
48097 | static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) { |
48098 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
48099 | } | |
1bd55598 RD |
48100 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { |
48101 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
48102 | } | |
48103 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
48104 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
48105 | } | |
48106 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
48107 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
48108 | } | |
48109 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
48110 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
48111 | } | |
48112 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
48113 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
48114 | } | |
704eda0c RD |
48115 | static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) { |
48116 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x)); | |
48117 | } | |
1bd55598 RD |
48118 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { |
48119 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
48120 | } | |
48121 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
48122 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
48123 | } | |
48124 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
48125 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
48126 | } | |
48127 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
48128 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
48129 | } | |
48130 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
48131 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
48132 | } | |
48133 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
48134 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
48135 | } | |
48136 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
48137 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
48138 | } | |
48139 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
48140 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
48141 | } | |
48142 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
48143 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
48144 | } | |
48145 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
48146 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
48147 | } | |
48148 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
48149 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
48150 | } | |
b850e7f3 RD |
48151 | static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) { |
48152 | return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
48153 | } | |
48154 | static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) { | |
48155 | return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
48156 | } | |
48157 | static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) { | |
48158 | return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
48159 | } | |
48160 | static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) { | |
48161 | return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
48162 | } | |
1bd55598 RD |
48163 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
48164 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
48165 | } | |
48166 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
48167 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
48168 | } | |
48169 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
48170 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
48171 | } | |
48172 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
48173 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
48174 | } | |
48175 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
48176 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
48177 | } | |
48178 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
48179 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
48180 | } | |
48181 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
48182 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
48183 | } | |
5172800e RD |
48184 | static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) { |
48185 | return (void *)((wxControl *) ((wxCollapsiblePane *) x)); | |
48186 | } | |
1bd55598 RD |
48187 | static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) { |
48188 | return (void *)((wxControl *) ((wxBookCtrlBase *) x)); | |
48189 | } | |
48190 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
48191 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
48192 | } | |
b850e7f3 RD |
48193 | static void *_p_wxPickerBaseTo_p_wxControl(void *x) { |
48194 | return (void *)((wxControl *) ((wxPickerBase *) x)); | |
48195 | } | |
1bd55598 RD |
48196 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { |
48197 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
48198 | } | |
48199 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
48200 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
48201 | } | |
3f7f284d RD |
48202 | static void *_p_wxSearchCtrlTo_p_wxControl(void *x) { |
48203 | return (void *)((wxControl *) (wxTextCtrl *) ((wxSearchCtrl *) x)); | |
48204 | } | |
1bd55598 RD |
48205 | static void *_p_wxToolbookTo_p_wxControl(void *x) { |
48206 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x)); | |
48207 | } | |
48208 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
48209 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
48210 | } | |
48211 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
48212 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
48213 | } | |
48214 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
48215 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
48216 | } | |
48217 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
48218 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
48219 | } | |
48220 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
48221 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
48222 | } | |
48223 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
48224 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
48225 | } | |
48226 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
48227 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
48228 | } | |
48229 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
48230 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
48231 | } | |
48232 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
48233 | return (void *)((wxControl *) ((wxGauge *) x)); | |
48234 | } | |
48235 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
48236 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
48237 | } | |
48238 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { | |
48239 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x)); | |
48240 | } | |
48241 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
48242 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x)); | |
48243 | } | |
704eda0c RD |
48244 | static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) { |
48245 | return (void *)((wxControl *) ((wxHyperlinkCtrl *) x)); | |
48246 | } | |
1bd55598 RD |
48247 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { |
48248 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
48249 | } | |
48250 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
48251 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
48252 | } | |
48253 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
48254 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
48255 | } | |
48256 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
48257 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
48258 | } | |
48259 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
48260 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
48261 | } | |
48262 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
48263 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
48264 | } | |
48265 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
48266 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
48267 | } | |
48268 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
48269 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x)); | |
48270 | } | |
48271 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
48272 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
48273 | } | |
48274 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
48275 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
48276 | } | |
48277 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
48278 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
48279 | } | |
48280 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
48281 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
48282 | } | |
48283 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
48284 | return (void *)((wxControl *) ((wxSlider *) x)); | |
48285 | } | |
48286 | static void *_p_wxTreebookTo_p_wxControl(void *x) { | |
48287 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x)); | |
48288 | } | |
48289 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
48290 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
48291 | } | |
48292 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
48293 | return (void *)((wxControl *) ((wxButton *) x)); | |
48294 | } | |
48295 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
48296 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
48297 | } | |
48298 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
48299 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
48300 | } | |
48301 | static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) { | |
48302 | return (void *)((wxControl *) ((wxDatePickerCtrl *) x)); | |
48303 | } | |
b850e7f3 RD |
48304 | static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) { |
48305 | return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
48306 | } | |
48307 | static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) { | |
48308 | return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
48309 | } | |
48310 | static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) { | |
48311 | return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
48312 | } | |
48313 | static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) { | |
48314 | return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
48315 | } | |
1bd55598 RD |
48316 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { |
48317 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
48318 | } | |
48319 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
48320 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
48321 | } | |
48322 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
48323 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
48324 | } | |
3f7f284d RD |
48325 | static void *_p_wxSearchCtrlTo_p_wxTextCtrl(void *x) { |
48326 | return (void *)((wxTextCtrl *) ((wxSearchCtrl *) x)); | |
48327 | } | |
1bd55598 RD |
48328 | static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) { |
48329 | return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
48330 | } | |
48331 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
48332 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
48333 | } | |
48334 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
48335 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
48336 | } | |
48337 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
48338 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
48339 | } | |
48340 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
48341 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
48342 | } | |
48343 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
48344 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
48345 | } | |
48346 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { | |
48347 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
48348 | } | |
48349 | static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) { | |
48350 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
48351 | } | |
48352 | static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) { | |
48353 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
48354 | } | |
48355 | static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) { | |
48356 | return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x)); | |
48357 | } | |
48358 | static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) { | |
48359 | return (void *)((wxBookCtrlBase *) ((wxListbook *) x)); | |
48360 | } | |
48361 | static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) { | |
48362 | return (void *)((wxBookCtrlBase *) ((wxToolbook *) x)); | |
48363 | } | |
48364 | static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) { | |
48365 | return (void *)((wxBookCtrlBase *) ((wxTreebook *) x)); | |
48366 | } | |
48367 | static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) { | |
48368 | return (void *)((wxBookCtrlBase *) ((wxNotebook *) x)); | |
48369 | } | |
5172800e RD |
48370 | static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) { |
48371 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x)); | |
48372 | } | |
4976f996 RD |
48373 | static void *_p_wxEventBlockerTo_p_wxEvtHandler(void *x) { |
48374 | return (void *)((wxEvtHandler *) ((wxEventBlocker *) x)); | |
48375 | } | |
1bd55598 RD |
48376 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { |
48377 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
48378 | } | |
48379 | static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) { | |
48380 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
48381 | } | |
48382 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
48383 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
48384 | } | |
48385 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
48386 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
48387 | } | |
48388 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
48389 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
48390 | } | |
b850e7f3 RD |
48391 | static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) { |
48392 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x)); | |
48393 | } | |
1bd55598 RD |
48394 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { |
48395 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
48396 | } | |
48397 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
48398 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
48399 | } | |
48400 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
48401 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
48402 | } | |
3f7f284d RD |
48403 | static void *_p_wxSearchCtrlTo_p_wxEvtHandler(void *x) { |
48404 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x)); | |
48405 | } | |
1bd55598 RD |
48406 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { |
48407 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
48408 | } | |
4976f996 RD |
48409 | static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) { |
48410 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
48411 | } | |
1bd55598 RD |
48412 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { |
48413 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
48414 | } | |
48415 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
48416 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
48417 | } | |
48418 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
48419 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
48420 | } | |
48421 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
48422 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
48423 | } | |
48424 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
48425 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
48426 | } | |
48427 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
48428 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
48429 | } | |
48430 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
48431 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
48432 | } | |
48433 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
48434 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
48435 | } | |
48436 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
48437 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
48438 | } | |
48439 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
48440 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
48441 | } | |
48442 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
48443 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
48444 | } | |
48445 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
48446 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
48447 | } | |
48448 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { | |
48449 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
48450 | } | |
48451 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
48452 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
48453 | } | |
704eda0c RD |
48454 | static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) { |
48455 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x)); | |
48456 | } | |
1bd55598 RD |
48457 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { |
48458 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
48459 | } | |
48460 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
48461 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
48462 | } | |
48463 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
48464 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
48465 | } | |
48466 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
48467 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
48468 | } | |
48469 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
48470 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
48471 | } | |
48472 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
48473 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
48474 | } | |
48475 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
48476 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
48477 | } | |
48478 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
48479 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
48480 | } | |
48481 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
48482 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
48483 | } | |
48484 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
48485 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
48486 | } | |
48487 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
48488 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
48489 | } | |
48490 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
48491 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
48492 | } | |
48493 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
48494 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
48495 | } | |
48496 | static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) { | |
48497 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
48498 | } | |
48499 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
48500 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
48501 | } | |
48502 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
48503 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
48504 | } | |
48505 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
48506 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
48507 | } | |
48508 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
48509 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
48510 | } | |
48511 | static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) { | |
48512 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
48513 | } | |
b850e7f3 RD |
48514 | static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) { |
48515 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
48516 | } | |
48517 | static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) { | |
48518 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
48519 | } | |
48520 | static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) { | |
48521 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
48522 | } | |
48523 | static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) { | |
48524 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
48525 | } | |
1bd55598 RD |
48526 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { |
48527 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
48528 | } | |
48529 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
48530 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
48531 | } | |
48532 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
48533 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
48534 | } | |
48535 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
48536 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
48537 | } | |
48538 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
48539 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
48540 | } | |
48541 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
48542 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
48543 | } | |
48544 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
48545 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
48546 | } | |
48547 | static void *_p_wxToolbookTo_p_wxObject(void *x) { | |
48548 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
48549 | } | |
4976f996 RD |
48550 | static void *_p_wxEventBlockerTo_p_wxObject(void *x) { |
48551 | return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x)); | |
48552 | } | |
1bd55598 RD |
48553 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
48554 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
48555 | } | |
34e0a3bb RD |
48556 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
48557 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
48558 | } | |
1bd55598 RD |
48559 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
48560 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
48561 | } | |
48562 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
48563 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
48564 | } | |
48565 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
48566 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
48567 | } | |
48568 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
48569 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
48570 | } | |
48571 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
48572 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
48573 | } | |
48574 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
48575 | return (void *)((wxObject *) ((wxSizer *) x)); | |
48576 | } | |
48577 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
48578 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
48579 | } | |
48580 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
48581 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
48582 | } | |
48583 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
48584 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
48585 | } | |
48586 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
48587 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
48588 | } | |
48589 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
48590 | return (void *)((wxObject *) ((wxEvent *) x)); | |
48591 | } | |
1bd55598 RD |
48592 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
48593 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
48594 | } | |
4976f996 RD |
48595 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { |
48596 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
48597 | } | |
3f7f284d RD |
48598 | static void *_p_wxSearchCtrlTo_p_wxObject(void *x) { |
48599 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x)); | |
48600 | } | |
1bd55598 RD |
48601 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { |
48602 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
48603 | } | |
48604 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
48605 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
48606 | } | |
b850e7f3 RD |
48607 | static void *_p_wxPickerBaseTo_p_wxObject(void *x) { |
48608 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x)); | |
48609 | } | |
1bd55598 RD |
48610 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { |
48611 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
48612 | } | |
48613 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
48614 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
48615 | } | |
2131d850 RD |
48616 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
48617 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
48618 | } | |
1bd55598 RD |
48619 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
48620 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
48621 | } | |
48622 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
48623 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
48624 | } | |
48625 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
48626 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
48627 | } | |
48628 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
48629 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
48630 | } | |
48631 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
48632 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
48633 | } | |
48634 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
48635 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
48636 | } | |
48637 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
48638 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
48639 | } | |
48640 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
48641 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
48642 | } | |
48643 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
48644 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
48645 | } | |
48646 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
48647 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
48648 | } | |
48649 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
48650 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
48651 | } | |
48652 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
48653 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
48654 | } | |
48655 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
48656 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
48657 | } | |
48658 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
48659 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
48660 | } | |
b850e7f3 RD |
48661 | static void *_p_wxColourPickerEventTo_p_wxObject(void *x) { |
48662 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x)); | |
48663 | } | |
48664 | static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) { | |
48665 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x)); | |
48666 | } | |
48667 | static void *_p_wxFontPickerEventTo_p_wxObject(void *x) { | |
48668 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x)); | |
48669 | } | |
1bd55598 RD |
48670 | static void *_p_wxChoiceTo_p_wxObject(void *x) { |
48671 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
48672 | } | |
48673 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
48674 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
48675 | } | |
48676 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
48677 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
48678 | } | |
48679 | static void *_p_wxTreebookTo_p_wxObject(void *x) { | |
48680 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
48681 | } | |
48682 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
48683 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
48684 | } | |
704eda0c RD |
48685 | static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) { |
48686 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x)); | |
48687 | } | |
1bd55598 RD |
48688 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { |
48689 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
48690 | } | |
48691 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
48692 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
48693 | } | |
48694 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
48695 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
48696 | } | |
48697 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
48698 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
48699 | } | |
48700 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { | |
48701 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
48702 | } | |
48703 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
48704 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
48705 | } | |
48706 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
48707 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
48708 | } | |
48709 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
48710 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
48711 | } | |
48712 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
48713 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
48714 | } | |
48715 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
48716 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
48717 | } | |
48718 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
48719 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
48720 | } | |
48721 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
48722 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
48723 | } | |
48724 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
48725 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
48726 | } | |
48727 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
48728 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
48729 | } | |
48730 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
48731 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
48732 | } | |
48733 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
48734 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
48735 | } | |
48736 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
48737 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
48738 | } | |
48739 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
48740 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
48741 | } | |
48742 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
48743 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
48744 | } | |
48745 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
48746 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
48747 | } | |
48748 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
48749 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
48750 | } | |
5172800e RD |
48751 | static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) { |
48752 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x)); | |
48753 | } | |
1bd55598 RD |
48754 | static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) { |
48755 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
48756 | } | |
48757 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
48758 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
48759 | } | |
48760 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
48761 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
48762 | } | |
48763 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
48764 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
48765 | } | |
48766 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
48767 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
48768 | } | |
48769 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
48770 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
48771 | } | |
48772 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
48773 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
48774 | } | |
48775 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
48776 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
48777 | } | |
48778 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
48779 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
48780 | } | |
48781 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
48782 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
48783 | } | |
48784 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
48785 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
48786 | } | |
48787 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
48788 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
48789 | } | |
48790 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
48791 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
48792 | } | |
48793 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
48794 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
48795 | } | |
580080c5 RD |
48796 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { |
48797 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
48798 | } | |
1bd55598 RD |
48799 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
48800 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
48801 | } | |
34e0a3bb RD |
48802 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
48803 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
48804 | } | |
1bd55598 RD |
48805 | static void *_p_wxListEventTo_p_wxObject(void *x) { |
48806 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
48807 | } | |
48808 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
48809 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
48810 | } | |
48811 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
48812 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
48813 | } | |
48814 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
48815 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
48816 | } | |
48817 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
48818 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
48819 | } | |
48820 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
48821 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
48822 | } | |
48823 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
48824 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
48825 | } | |
1bd55598 RD |
48826 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
48827 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
48828 | } | |
580080c5 RD |
48829 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
48830 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
48831 | } | |
1bd55598 RD |
48832 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
48833 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
48834 | } | |
48835 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
48836 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
48837 | } | |
48838 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
48839 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
48840 | } | |
48841 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
48842 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
48843 | } | |
48844 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
48845 | return (void *)((wxObject *) ((wxListItem *) x)); | |
48846 | } | |
48847 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
48848 | return (void *)((wxObject *) ((wxImage *) x)); | |
48849 | } | |
48850 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
48851 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
48852 | } | |
48853 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
48854 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
48855 | } | |
48856 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
48857 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
48858 | } | |
48859 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
48860 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
48861 | } | |
48862 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
48863 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
48864 | } | |
48865 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
48866 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
48867 | } | |
48868 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { | |
48869 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
48870 | } | |
48871 | static void *_p_wxTreebookEventTo_p_wxObject(void *x) { | |
48872 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
48873 | } | |
48874 | static void *_p_wxToolbookEventTo_p_wxObject(void *x) { | |
48875 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
48876 | } | |
48877 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
48878 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
48879 | } | |
48880 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
48881 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
48882 | } | |
48883 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
48884 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
48885 | } | |
48886 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
48887 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
48888 | } | |
48889 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
48890 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
48891 | } | |
48892 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
48893 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
48894 | } | |
48895 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
48896 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
48897 | } | |
5172800e RD |
48898 | static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) { |
48899 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x)); | |
48900 | } | |
1bd55598 RD |
48901 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
48902 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
48903 | } | |
48904 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
48905 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
48906 | } | |
48907 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
48908 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
48909 | } | |
48910 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
48911 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
48912 | } | |
48913 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
48914 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
48915 | } | |
48916 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
48917 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
48918 | } | |
48919 | static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) { | |
48920 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
48921 | } | |
48922 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
48923 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
48924 | } | |
48925 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
48926 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
48927 | } | |
48928 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
48929 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
48930 | } | |
48931 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
48932 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
48933 | } | |
48934 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
48935 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
48936 | } | |
48937 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
48938 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
48939 | } | |
48940 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
48941 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
48942 | } | |
48943 | static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) { | |
48944 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
48945 | } | |
b850e7f3 RD |
48946 | static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) { |
48947 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
48948 | } | |
48949 | static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) { | |
48950 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
48951 | } | |
48952 | static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) { | |
48953 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
48954 | } | |
48955 | static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) { | |
48956 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
48957 | } | |
1bd55598 RD |
48958 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
48959 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
48960 | } | |
704eda0c RD |
48961 | static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) { |
48962 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x)); | |
48963 | } | |
1bd55598 RD |
48964 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { |
48965 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
48966 | } | |
48967 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
48968 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
48969 | } | |
48970 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
48971 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
48972 | } | |
48973 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
48974 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
48975 | } | |
5172800e RD |
48976 | static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) { |
48977 | return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x)); | |
48978 | } | |
1bd55598 RD |
48979 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { |
48980 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
48981 | } | |
48982 | static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) { | |
48983 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x)); | |
48984 | } | |
48985 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
48986 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
48987 | } | |
b850e7f3 RD |
48988 | static void *_p_wxPickerBaseTo_p_wxWindow(void *x) { |
48989 | return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x)); | |
48990 | } | |
1bd55598 RD |
48991 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { |
48992 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
48993 | } | |
48994 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
48995 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
48996 | } | |
3f7f284d RD |
48997 | static void *_p_wxSearchCtrlTo_p_wxWindow(void *x) { |
48998 | return (void *)((wxWindow *) (wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x)); | |
48999 | } | |
1bd55598 RD |
49000 | static void *_p_wxToolbookTo_p_wxWindow(void *x) { |
49001 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
49002 | } | |
49003 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
49004 | return (void *)((wxWindow *) ((wxControl *) x)); | |
49005 | } | |
49006 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
49007 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
49008 | } | |
49009 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
49010 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
49011 | } | |
49012 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
49013 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
49014 | } | |
49015 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
49016 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
49017 | } | |
49018 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
49019 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
49020 | } | |
49021 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
49022 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
49023 | } | |
49024 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
49025 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
49026 | } | |
49027 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
49028 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
49029 | } | |
49030 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
49031 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
49032 | } | |
49033 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
49034 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
49035 | } | |
49036 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { | |
49037 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
49038 | } | |
49039 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
49040 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
49041 | } | |
704eda0c RD |
49042 | static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) { |
49043 | return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x)); | |
49044 | } | |
1bd55598 RD |
49045 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { |
49046 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
49047 | } | |
49048 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
49049 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
49050 | } | |
49051 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
49052 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
49053 | } | |
49054 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
49055 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
49056 | } | |
49057 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
49058 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
49059 | } | |
49060 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
49061 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
49062 | } | |
49063 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
49064 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
49065 | } | |
49066 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
49067 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
49068 | } | |
49069 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
49070 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
49071 | } | |
49072 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
49073 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
49074 | } | |
49075 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
49076 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
49077 | } | |
49078 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
49079 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
49080 | } | |
49081 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
49082 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
49083 | } | |
49084 | static void *_p_wxTreebookTo_p_wxWindow(void *x) { | |
49085 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
49086 | } | |
49087 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
49088 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
49089 | } | |
49090 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
49091 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
49092 | } | |
49093 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
49094 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
49095 | } | |
49096 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
49097 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
49098 | } | |
49099 | static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) { | |
49100 | return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x)); | |
49101 | } | |
b850e7f3 RD |
49102 | static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) { |
49103 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
49104 | } | |
49105 | static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) { | |
49106 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
49107 | } | |
49108 | static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) { | |
49109 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
49110 | } | |
49111 | static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) { | |
49112 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
49113 | } | |
1bd55598 RD |
49114 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { |
49115 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
49116 | } | |
49117 | static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
49118 | return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
49119 | } | |
49120 | static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
49121 | return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
49122 | } | |
49123 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
49124 | return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
49125 | } | |
49126 | static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
49127 | return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
49128 | } | |
49129 | static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
49130 | return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
49131 | } | |
49132 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
49133 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
49134 | } | |
704eda0c RD |
49135 | static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) { |
49136 | return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x)); | |
49137 | } | |
2131d850 RD |
49138 | static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) { |
49139 | return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
49140 | } | |
b850e7f3 RD |
49141 | static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) { |
49142 | return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x)); | |
49143 | } | |
49144 | static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) { | |
49145 | return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x)); | |
49146 | } | |
49147 | static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) { | |
49148 | return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x)); | |
49149 | } | |
1bd55598 RD |
49150 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { |
49151 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
49152 | } | |
49153 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
49154 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
49155 | } | |
49156 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
49157 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
49158 | } | |
49159 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
49160 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
49161 | } | |
49162 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
49163 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
49164 | } | |
1bd55598 RD |
49165 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { |
49166 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
49167 | } | |
2131d850 RD |
49168 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { |
49169 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
49170 | } | |
1bd55598 RD |
49171 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { |
49172 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
49173 | } | |
49174 | static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) { | |
49175 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
49176 | } | |
49177 | static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) { | |
49178 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
49179 | } | |
49180 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
49181 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
49182 | } | |
49183 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
49184 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
49185 | } | |
49186 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
49187 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
49188 | } | |
5172800e RD |
49189 | static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) { |
49190 | return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x)); | |
49191 | } | |
1bd55598 RD |
49192 | static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) { |
49193 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
49194 | } | |
49195 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
49196 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
49197 | } | |
49198 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
49199 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
49200 | } | |
49201 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
49202 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
49203 | } | |
49204 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
49205 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
49206 | } | |
49207 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
49208 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
49209 | } | |
49210 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
49211 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
49212 | } | |
49213 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
49214 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
49215 | } | |
49216 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
49217 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
49218 | } | |
49219 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
49220 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
49221 | } | |
49222 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
49223 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
49224 | } | |
49225 | static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0}; | |
49226 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; | |
49227 | 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}; | |
49228 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
49229 | static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0}; | |
49230 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
49231 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
49232 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
49233 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; | |
49234 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
49235 | static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0}; | |
49236 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
49237 | static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0}; | |
49238 | static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0}; | |
49239 | static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0}; | |
49240 | static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0}; | |
49241 | static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0}; | |
49242 | static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0}; | |
49243 | static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0}; | |
49244 | static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0}; | |
49245 | static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0}; | |
5172800e RD |
49246 | static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0}; |
49247 | static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0}; | |
1bd55598 | 49248 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; |
b850e7f3 RD |
49249 | static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0}; |
49250 | static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0}; | |
1bd55598 RD |
49251 | static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0}; |
49252 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
49253 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 49254 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
1bd55598 RD |
49255 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
49256 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
49257 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
49258 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
49259 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
49260 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
49261 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
49262 | static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0}; | |
49263 | static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0}; | |
49264 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0}; | |
49265 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0}; | |
49266 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
49267 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
49268 | static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0}; | |
49269 | static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0}; | |
49270 | static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0}; | |
b850e7f3 | 49271 | static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0}; |
1bd55598 RD |
49272 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; |
49273 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
49274 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
49275 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
49276 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
49277 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
49278 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
49279 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
34e0a3bb | 49280 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
1bd55598 RD |
49281 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; |
49282 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
49283 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
49284 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
49285 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
49286 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
34e0a3bb | 49287 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; |
1bd55598 RD |
49288 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
49289 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
49290 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
49291 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
49292 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
49293 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
49294 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
49295 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
49296 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
49297 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
49298 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
49299 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
4976f996 | 49300 | static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0}; |
1bd55598 RD |
49301 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; |
49302 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
49303 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
b850e7f3 RD |
49304 | static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0}; |
49305 | static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0}; | |
1bd55598 | 49306 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; |
b850e7f3 RD |
49307 | static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0}; |
49308 | static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0}; | |
1bd55598 RD |
49309 | static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0}; |
49310 | static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0}; | |
49311 | static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0}; | |
49312 | static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0}; | |
49313 | static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0}; | |
704eda0c RD |
49314 | static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0}; |
49315 | static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0}; | |
1bd55598 RD |
49316 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
49317 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
49318 | static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0}; | |
49319 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0}; | |
49320 | static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0}; | |
49321 | static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0}; | |
49322 | static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0}; | |
49323 | static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0}; | |
49324 | static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0}; | |
49325 | static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0}; | |
49326 | static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0}; | |
49327 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
3f7f284d | 49328 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0}; |
1bd55598 RD |
49329 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0}; |
49330 | static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0}; | |
49331 | static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0}; | |
49332 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
49333 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
49334 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
1bd55598 | 49335 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 49336 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
1bd55598 RD |
49337 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; |
49338 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
49339 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
49340 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
49341 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
1bd55598 | 49342 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; |
4976f996 | 49343 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; |
1bd55598 RD |
49344 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; |
49345 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
49346 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
1bd55598 RD |
49347 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; |
49348 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
4976f996 | 49349 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; |
3f7f284d | 49350 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
5172800e | 49351 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
b850e7f3 RD |
49352 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
49353 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
49354 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
49355 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
704eda0c | 49356 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; |
2131d850 | 49357 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; |
1bd55598 RD |
49358 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; |
49359 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
580080c5 | 49360 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; |
1bd55598 | 49361 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; |
580080c5 | 49362 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
1bd55598 RD |
49363 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; |
49364 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
49365 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
b850e7f3 | 49366 | static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0}; |
1bd55598 RD |
49367 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
49368 | static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0}; | |
49369 | static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0}; | |
49370 | static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0}; | |
49371 | static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0}; | |
49372 | static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0}; | |
49373 | static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0}; | |
49374 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
49375 | static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0}; | |
3f7f284d | 49376 | static swig_type_info _swigt__p_wxSearchCtrl = {"_p_wxSearchCtrl", "wxSearchCtrl *", 0, 0, (void*)0, 0}; |
1bd55598 RD |
49377 | static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0}; |
49378 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
49379 | static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0}; | |
49380 | static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0}; | |
49381 | static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0}; | |
49382 | static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0}; | |
49383 | static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0}; | |
49384 | static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0}; | |
49385 | static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0}; | |
49386 | static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0}; | |
49387 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; | |
49388 | static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0}; | |
49389 | static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0}; | |
49390 | static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0}; | |
49391 | static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0}; | |
49392 | static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0}; | |
49393 | static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0}; | |
49394 | static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0}; | |
49395 | static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0}; | |
49396 | static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0}; | |
1bd55598 RD |
49397 | static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0}; |
49398 | static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0}; | |
49399 | static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0}; | |
49400 | static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0}; | |
49401 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0}; | |
49402 | static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0}; | |
49403 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
b850e7f3 | 49404 | static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0}; |
1bd55598 RD |
49405 | |
49406 | static swig_type_info *swig_type_initial[] = { | |
49407 | &_swigt__p_bool, | |
49408 | &_swigt__p_char, | |
49409 | &_swigt__p_form_ops_t, | |
49410 | &_swigt__p_int, | |
49411 | &_swigt__p_long, | |
49412 | &_swigt__p_unsigned_char, | |
49413 | &_swigt__p_unsigned_int, | |
49414 | &_swigt__p_unsigned_long, | |
49415 | &_swigt__p_void, | |
49416 | &_swigt__p_wxANIHandler, | |
49417 | &_swigt__p_wxAcceleratorTable, | |
49418 | &_swigt__p_wxActivateEvent, | |
49419 | &_swigt__p_wxArrayInt, | |
49420 | &_swigt__p_wxArrayString, | |
49421 | &_swigt__p_wxBMPHandler, | |
49422 | &_swigt__p_wxBitmap, | |
49423 | &_swigt__p_wxBitmapButton, | |
49424 | &_swigt__p_wxBookCtrlBase, | |
49425 | &_swigt__p_wxBookCtrlBaseEvent, | |
49426 | &_swigt__p_wxBoxSizer, | |
49427 | &_swigt__p_wxButton, | |
49428 | &_swigt__p_wxCURHandler, | |
49429 | &_swigt__p_wxCheckBox, | |
49430 | &_swigt__p_wxCheckListBox, | |
49431 | &_swigt__p_wxChildFocusEvent, | |
49432 | &_swigt__p_wxChoice, | |
49433 | &_swigt__p_wxChoicebook, | |
49434 | &_swigt__p_wxChoicebookEvent, | |
2131d850 | 49435 | &_swigt__p_wxClipboardTextEvent, |
1bd55598 | 49436 | &_swigt__p_wxCloseEvent, |
5172800e RD |
49437 | &_swigt__p_wxCollapsiblePane, |
49438 | &_swigt__p_wxCollapsiblePaneEvent, | |
1bd55598 | 49439 | &_swigt__p_wxColour, |
b850e7f3 RD |
49440 | &_swigt__p_wxColourPickerCtrl, |
49441 | &_swigt__p_wxColourPickerEvent, | |
1bd55598 RD |
49442 | &_swigt__p_wxComboBox, |
49443 | &_swigt__p_wxCommandEvent, | |
49444 | &_swigt__p_wxContextHelp, | |
49445 | &_swigt__p_wxContextHelpButton, | |
49446 | &_swigt__p_wxContextMenuEvent, | |
49447 | &_swigt__p_wxControl, | |
49448 | &_swigt__p_wxControlWithItems, | |
49449 | &_swigt__p_wxCursor, | |
49450 | &_swigt__p_wxDC, | |
49451 | &_swigt__p_wxDateEvent, | |
49452 | &_swigt__p_wxDatePickerCtrl, | |
49453 | &_swigt__p_wxDateTime, | |
49454 | &_swigt__p_wxDirFilterListCtrl, | |
b850e7f3 | 49455 | &_swigt__p_wxDirPickerCtrl, |
1bd55598 RD |
49456 | &_swigt__p_wxDisplayChangedEvent, |
49457 | &_swigt__p_wxDropFilesEvent, | |
49458 | &_swigt__p_wxDuplexMode, | |
49459 | &_swigt__p_wxEraseEvent, | |
49460 | &_swigt__p_wxEvent, | |
4976f996 | 49461 | &_swigt__p_wxEventBlocker, |
1bd55598 RD |
49462 | &_swigt__p_wxEvtHandler, |
49463 | &_swigt__p_wxFSFile, | |
b850e7f3 RD |
49464 | &_swigt__p_wxFileDirPickerEvent, |
49465 | &_swigt__p_wxFilePickerCtrl, | |
1bd55598 RD |
49466 | &_swigt__p_wxFileSystem, |
49467 | &_swigt__p_wxFlexGridSizer, | |
49468 | &_swigt__p_wxFocusEvent, | |
49469 | &_swigt__p_wxFont, | |
b850e7f3 RD |
49470 | &_swigt__p_wxFontPickerCtrl, |
49471 | &_swigt__p_wxFontPickerEvent, | |
1bd55598 RD |
49472 | &_swigt__p_wxGBSizerItem, |
49473 | &_swigt__p_wxGIFHandler, | |
49474 | &_swigt__p_wxGauge, | |
49475 | &_swigt__p_wxGenericDirCtrl, | |
49476 | &_swigt__p_wxGenericDragImage, | |
49477 | &_swigt__p_wxGridBagSizer, | |
49478 | &_swigt__p_wxGridSizer, | |
49479 | &_swigt__p_wxHelpEvent, | |
49480 | &_swigt__p_wxHelpProvider, | |
704eda0c RD |
49481 | &_swigt__p_wxHyperlinkCtrl, |
49482 | &_swigt__p_wxHyperlinkEvent, | |
1bd55598 RD |
49483 | &_swigt__p_wxICOHandler, |
49484 | &_swigt__p_wxIcon, | |
49485 | &_swigt__p_wxIconizeEvent, | |
49486 | &_swigt__p_wxIdleEvent, | |
49487 | &_swigt__p_wxImage, | |
49488 | &_swigt__p_wxImageHandler, | |
49489 | &_swigt__p_wxImageList, | |
49490 | &_swigt__p_wxIndividualLayoutConstraint, | |
49491 | &_swigt__p_wxInitDialogEvent, | |
49492 | &_swigt__p_wxItemContainer, | |
49493 | &_swigt__p_wxJPEGHandler, | |
49494 | &_swigt__p_wxKeyEvent, | |
49495 | &_swigt__p_wxLayoutConstraints, | |
49496 | &_swigt__p_wxListBox, | |
49497 | &_swigt__p_wxListEvent, | |
49498 | &_swigt__p_wxListItem, | |
49499 | &_swigt__p_wxListItemAttr, | |
49500 | &_swigt__p_wxListView, | |
49501 | &_swigt__p_wxListbook, | |
49502 | &_swigt__p_wxListbookEvent, | |
49503 | &_swigt__p_wxMaximizeEvent, | |
49504 | &_swigt__p_wxMemoryDC, | |
49505 | &_swigt__p_wxMenu, | |
49506 | &_swigt__p_wxMenuBar, | |
49507 | &_swigt__p_wxMenuEvent, | |
49508 | &_swigt__p_wxMenuItem, | |
49509 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 49510 | &_swigt__p_wxMouseCaptureLostEvent, |
1bd55598 RD |
49511 | &_swigt__p_wxMouseEvent, |
49512 | &_swigt__p_wxMoveEvent, | |
49513 | &_swigt__p_wxNavigationKeyEvent, | |
49514 | &_swigt__p_wxNcPaintEvent, | |
49515 | &_swigt__p_wxNotebook, | |
49516 | &_swigt__p_wxNotebookEvent, | |
49517 | &_swigt__p_wxNotifyEvent, | |
49518 | &_swigt__p_wxObject, | |
49519 | &_swigt__p_wxPCXHandler, | |
49520 | &_swigt__p_wxPNGHandler, | |
49521 | &_swigt__p_wxPNMHandler, | |
49522 | &_swigt__p_wxPaintEvent, | |
49523 | &_swigt__p_wxPaletteChangedEvent, | |
49524 | &_swigt__p_wxPaperSize, | |
b850e7f3 | 49525 | &_swigt__p_wxPickerBase, |
1bd55598 RD |
49526 | &_swigt__p_wxPoint, |
49527 | &_swigt__p_wxPyApp, | |
49528 | &_swigt__p_wxPyCommandEvent, | |
49529 | &_swigt__p_wxPyControl, | |
49530 | &_swigt__p_wxPyEvent, | |
49531 | &_swigt__p_wxPyImageHandler, | |
49532 | &_swigt__p_wxPyListCtrl, | |
49533 | &_swigt__p_wxPySizer, | |
49534 | &_swigt__p_wxPyTreeCtrl, | |
49535 | &_swigt__p_wxPyTreeItemData, | |
49536 | &_swigt__p_wxPyValidator, | |
49537 | &_swigt__p_wxQueryNewPaletteEvent, | |
49538 | &_swigt__p_wxRadioBox, | |
49539 | &_swigt__p_wxRadioButton, | |
49540 | &_swigt__p_wxRect, | |
49541 | &_swigt__p_wxScrollBar, | |
49542 | &_swigt__p_wxScrollEvent, | |
49543 | &_swigt__p_wxScrollWinEvent, | |
3f7f284d | 49544 | &_swigt__p_wxSearchCtrl, |
1bd55598 RD |
49545 | &_swigt__p_wxSetCursorEvent, |
49546 | &_swigt__p_wxShowEvent, | |
49547 | &_swigt__p_wxSimpleHelpProvider, | |
49548 | &_swigt__p_wxSize, | |
49549 | &_swigt__p_wxSizeEvent, | |
49550 | &_swigt__p_wxSizer, | |
49551 | &_swigt__p_wxSizerItem, | |
49552 | &_swigt__p_wxSlider, | |
49553 | &_swigt__p_wxSpinButton, | |
49554 | &_swigt__p_wxSpinCtrl, | |
49555 | &_swigt__p_wxSpinEvent, | |
49556 | &_swigt__p_wxStaticBitmap, | |
49557 | &_swigt__p_wxStaticBox, | |
49558 | &_swigt__p_wxStaticBoxSizer, | |
49559 | &_swigt__p_wxStaticLine, | |
49560 | &_swigt__p_wxStaticText, | |
49561 | &_swigt__p_wxStdDialogButtonSizer, | |
49562 | &_swigt__p_wxString, | |
49563 | &_swigt__p_wxSysColourChangedEvent, | |
580080c5 | 49564 | &_swigt__p_wxTGAHandler, |
1bd55598 RD |
49565 | &_swigt__p_wxTIFFHandler, |
49566 | &_swigt__p_wxTextAttr, | |
49567 | &_swigt__p_wxTextCtrl, | |
49568 | &_swigt__p_wxTextUrlEvent, | |
49569 | &_swigt__p_wxToggleButton, | |
49570 | &_swigt__p_wxToolBar, | |
49571 | &_swigt__p_wxToolBarBase, | |
49572 | &_swigt__p_wxToolBarToolBase, | |
49573 | &_swigt__p_wxToolbook, | |
49574 | &_swigt__p_wxToolbookEvent, | |
1bd55598 RD |
49575 | &_swigt__p_wxTreeEvent, |
49576 | &_swigt__p_wxTreeItemId, | |
49577 | &_swigt__p_wxTreebook, | |
49578 | &_swigt__p_wxTreebookEvent, | |
49579 | &_swigt__p_wxUpdateUIEvent, | |
49580 | &_swigt__p_wxValidator, | |
49581 | &_swigt__p_wxVisualAttributes, | |
49582 | &_swigt__p_wxWindow, | |
b850e7f3 | 49583 | &_swigt__p_wxWindowBase, |
1bd55598 RD |
49584 | &_swigt__p_wxWindowCreateEvent, |
49585 | &_swigt__p_wxWindowDestroyEvent, | |
49586 | &_swigt__p_wxXPMHandler, | |
49587 | }; | |
49588 | ||
49589 | static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; | |
49590 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
49591 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
49592 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
49593 | static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; | |
49594 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
49595 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
49596 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
49597 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; | |
49598 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
49599 | static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}}; | |
49600 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
49601 | 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}}; | |
49602 | 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}}; | |
49603 | 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}}; | |
49604 | 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}}; | |
49605 | static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}}; | |
49606 | static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
49607 | 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}}; | |
49608 | static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}}; | |
49609 | static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5172800e RD |
49610 | static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}}; |
49611 | static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 | 49612 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 RD |
49613 | static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
49614 | static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 RD |
49615 | static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}}; |
49616 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 49617 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
49618 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
49619 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49620 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49621 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49622 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49623 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49624 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5172800e | 49625 | 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 |
49626 | static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}}; |
49627 | static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}}; | |
3f7f284d | 49628 | 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_wxSearchCtrl, _p_wxSearchCtrlTo_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 |
49629 | 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}}; |
49630 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
49631 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; | |
49632 | static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
49633 | static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}}; | |
49634 | static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
b850e7f3 | 49635 | static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
49636 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; |
49637 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49638 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49639 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49640 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49641 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49642 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 49643 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
49644 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; |
49645 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49646 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49647 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49648 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49649 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 49650 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
49651 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
49652 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49653 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49654 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49655 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49656 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49657 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49658 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49659 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49660 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49661 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5172800e | 49662 | 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}}; |
4976f996 | 49663 | static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
49664 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; |
49665 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
49666 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
4976f996 | 49667 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEventBlocker, _p_wxEventBlockerTo_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_wxSearchCtrl, _p_wxSearchCtrlTo_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_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_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 |
49668 | static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}}; |
49669 | static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 | 49670 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 RD |
49671 | static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
49672 | static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 RD |
49673 | static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}}; |
49674 | static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
49675 | static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}}; | |
49676 | static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49677 | 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 |
49678 | static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
49679 | static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 RD |
49680 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
49681 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
49682 | 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}}; | |
49683 | static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49684 | 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}}; | |
49685 | static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49686 | static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}}; | |
49687 | static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
49688 | static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}}; | |
49689 | static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}}; | |
49690 | static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49691 | static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}}; | |
3f7f284d | 49692 | static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
49693 | static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; |
49694 | static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}}; | |
49695 | static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49696 | 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}}; | |
49697 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 | 49698 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 49699 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
49700 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; |
49701 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
49702 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
49703 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
49704 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 | 49705 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; |
4976f996 | 49706 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
49707 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; |
49708 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
49709 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 RD |
49710 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
49711 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
4976f996 | 49712 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; |
3f7f284d | 49713 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
5172800e | 49714 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 RD |
49715 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
49716 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
49717 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
49718 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
704eda0c | 49719 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 49720 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
49721 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; |
49722 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 49723 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 | 49724 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 49725 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
49726 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; |
49727 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
4976f996 | 49728 | 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_wxEventBlocker, _p_wxEventBlockerTo_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_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_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_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_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_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_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_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_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 | 49729 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 | 49730 | 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 |
49731 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
49732 | static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}}; | |
49733 | 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}}; | |
49734 | static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
49735 | static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}}; | |
49736 | static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}}; | |
49737 | static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}}; | |
49738 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
49739 | static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}}; | |
3f7f284d | 49740 | static swig_cast_info _swigc__p_wxSearchCtrl[] = { {&_swigt__p_wxSearchCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
49741 | static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}}; |
49742 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
49743 | static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}}; | |
49744 | static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}}; | |
49745 | static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
49746 | static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49747 | static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
49748 | static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}}; | |
49749 | static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}}; | |
49750 | static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}}; | |
49751 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
49752 | static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
3f7f284d | 49753 | static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxTextCtrl, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
49754 | static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}}; |
49755 | static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}}; | |
49756 | static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}}; | |
49757 | 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}}; | |
49758 | static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}}; | |
49759 | static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}}; | |
49760 | static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
1bd55598 RD |
49761 | static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}}; |
49762 | static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}}; | |
49763 | static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}}; | |
49764 | static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49765 | 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}}; | |
49766 | static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}}; | |
3f7f284d | 49767 | 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_wxSearchCtrl, _p_wxSearchCtrlTo_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 | 49768 | static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
49769 | |
49770 | static swig_cast_info *swig_cast_initial[] = { | |
49771 | _swigc__p_bool, | |
49772 | _swigc__p_char, | |
49773 | _swigc__p_form_ops_t, | |
49774 | _swigc__p_int, | |
49775 | _swigc__p_long, | |
49776 | _swigc__p_unsigned_char, | |
49777 | _swigc__p_unsigned_int, | |
49778 | _swigc__p_unsigned_long, | |
49779 | _swigc__p_void, | |
49780 | _swigc__p_wxANIHandler, | |
49781 | _swigc__p_wxAcceleratorTable, | |
49782 | _swigc__p_wxActivateEvent, | |
49783 | _swigc__p_wxArrayInt, | |
49784 | _swigc__p_wxArrayString, | |
49785 | _swigc__p_wxBMPHandler, | |
49786 | _swigc__p_wxBitmap, | |
49787 | _swigc__p_wxBitmapButton, | |
49788 | _swigc__p_wxBookCtrlBase, | |
49789 | _swigc__p_wxBookCtrlBaseEvent, | |
49790 | _swigc__p_wxBoxSizer, | |
49791 | _swigc__p_wxButton, | |
49792 | _swigc__p_wxCURHandler, | |
49793 | _swigc__p_wxCheckBox, | |
49794 | _swigc__p_wxCheckListBox, | |
49795 | _swigc__p_wxChildFocusEvent, | |
49796 | _swigc__p_wxChoice, | |
49797 | _swigc__p_wxChoicebook, | |
49798 | _swigc__p_wxChoicebookEvent, | |
2131d850 | 49799 | _swigc__p_wxClipboardTextEvent, |
1bd55598 | 49800 | _swigc__p_wxCloseEvent, |
5172800e RD |
49801 | _swigc__p_wxCollapsiblePane, |
49802 | _swigc__p_wxCollapsiblePaneEvent, | |
1bd55598 | 49803 | _swigc__p_wxColour, |
b850e7f3 RD |
49804 | _swigc__p_wxColourPickerCtrl, |
49805 | _swigc__p_wxColourPickerEvent, | |
1bd55598 RD |
49806 | _swigc__p_wxComboBox, |
49807 | _swigc__p_wxCommandEvent, | |
49808 | _swigc__p_wxContextHelp, | |
49809 | _swigc__p_wxContextHelpButton, | |
49810 | _swigc__p_wxContextMenuEvent, | |
49811 | _swigc__p_wxControl, | |
49812 | _swigc__p_wxControlWithItems, | |
49813 | _swigc__p_wxCursor, | |
49814 | _swigc__p_wxDC, | |
49815 | _swigc__p_wxDateEvent, | |
49816 | _swigc__p_wxDatePickerCtrl, | |
49817 | _swigc__p_wxDateTime, | |
49818 | _swigc__p_wxDirFilterListCtrl, | |
b850e7f3 | 49819 | _swigc__p_wxDirPickerCtrl, |
1bd55598 RD |
49820 | _swigc__p_wxDisplayChangedEvent, |
49821 | _swigc__p_wxDropFilesEvent, | |
49822 | _swigc__p_wxDuplexMode, | |
49823 | _swigc__p_wxEraseEvent, | |
49824 | _swigc__p_wxEvent, | |
4976f996 | 49825 | _swigc__p_wxEventBlocker, |
1bd55598 RD |
49826 | _swigc__p_wxEvtHandler, |
49827 | _swigc__p_wxFSFile, | |
b850e7f3 RD |
49828 | _swigc__p_wxFileDirPickerEvent, |
49829 | _swigc__p_wxFilePickerCtrl, | |
1bd55598 RD |
49830 | _swigc__p_wxFileSystem, |
49831 | _swigc__p_wxFlexGridSizer, | |
49832 | _swigc__p_wxFocusEvent, | |
49833 | _swigc__p_wxFont, | |
b850e7f3 RD |
49834 | _swigc__p_wxFontPickerCtrl, |
49835 | _swigc__p_wxFontPickerEvent, | |
1bd55598 RD |
49836 | _swigc__p_wxGBSizerItem, |
49837 | _swigc__p_wxGIFHandler, | |
49838 | _swigc__p_wxGauge, | |
49839 | _swigc__p_wxGenericDirCtrl, | |
49840 | _swigc__p_wxGenericDragImage, | |
49841 | _swigc__p_wxGridBagSizer, | |
49842 | _swigc__p_wxGridSizer, | |
49843 | _swigc__p_wxHelpEvent, | |
49844 | _swigc__p_wxHelpProvider, | |
704eda0c RD |
49845 | _swigc__p_wxHyperlinkCtrl, |
49846 | _swigc__p_wxHyperlinkEvent, | |
1bd55598 RD |
49847 | _swigc__p_wxICOHandler, |
49848 | _swigc__p_wxIcon, | |
49849 | _swigc__p_wxIconizeEvent, | |
49850 | _swigc__p_wxIdleEvent, | |
49851 | _swigc__p_wxImage, | |
49852 | _swigc__p_wxImageHandler, | |
49853 | _swigc__p_wxImageList, | |
49854 | _swigc__p_wxIndividualLayoutConstraint, | |
49855 | _swigc__p_wxInitDialogEvent, | |
49856 | _swigc__p_wxItemContainer, | |
49857 | _swigc__p_wxJPEGHandler, | |
49858 | _swigc__p_wxKeyEvent, | |
49859 | _swigc__p_wxLayoutConstraints, | |
49860 | _swigc__p_wxListBox, | |
49861 | _swigc__p_wxListEvent, | |
49862 | _swigc__p_wxListItem, | |
49863 | _swigc__p_wxListItemAttr, | |
49864 | _swigc__p_wxListView, | |
49865 | _swigc__p_wxListbook, | |
49866 | _swigc__p_wxListbookEvent, | |
49867 | _swigc__p_wxMaximizeEvent, | |
49868 | _swigc__p_wxMemoryDC, | |
49869 | _swigc__p_wxMenu, | |
49870 | _swigc__p_wxMenuBar, | |
49871 | _swigc__p_wxMenuEvent, | |
49872 | _swigc__p_wxMenuItem, | |
49873 | _swigc__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 49874 | _swigc__p_wxMouseCaptureLostEvent, |
1bd55598 RD |
49875 | _swigc__p_wxMouseEvent, |
49876 | _swigc__p_wxMoveEvent, | |
49877 | _swigc__p_wxNavigationKeyEvent, | |
49878 | _swigc__p_wxNcPaintEvent, | |
49879 | _swigc__p_wxNotebook, | |
49880 | _swigc__p_wxNotebookEvent, | |
49881 | _swigc__p_wxNotifyEvent, | |
49882 | _swigc__p_wxObject, | |
49883 | _swigc__p_wxPCXHandler, | |
49884 | _swigc__p_wxPNGHandler, | |
49885 | _swigc__p_wxPNMHandler, | |
49886 | _swigc__p_wxPaintEvent, | |
49887 | _swigc__p_wxPaletteChangedEvent, | |
49888 | _swigc__p_wxPaperSize, | |
b850e7f3 | 49889 | _swigc__p_wxPickerBase, |
1bd55598 RD |
49890 | _swigc__p_wxPoint, |
49891 | _swigc__p_wxPyApp, | |
49892 | _swigc__p_wxPyCommandEvent, | |
49893 | _swigc__p_wxPyControl, | |
49894 | _swigc__p_wxPyEvent, | |
49895 | _swigc__p_wxPyImageHandler, | |
49896 | _swigc__p_wxPyListCtrl, | |
49897 | _swigc__p_wxPySizer, | |
49898 | _swigc__p_wxPyTreeCtrl, | |
49899 | _swigc__p_wxPyTreeItemData, | |
49900 | _swigc__p_wxPyValidator, | |
49901 | _swigc__p_wxQueryNewPaletteEvent, | |
49902 | _swigc__p_wxRadioBox, | |
49903 | _swigc__p_wxRadioButton, | |
49904 | _swigc__p_wxRect, | |
49905 | _swigc__p_wxScrollBar, | |
49906 | _swigc__p_wxScrollEvent, | |
49907 | _swigc__p_wxScrollWinEvent, | |
3f7f284d | 49908 | _swigc__p_wxSearchCtrl, |
1bd55598 RD |
49909 | _swigc__p_wxSetCursorEvent, |
49910 | _swigc__p_wxShowEvent, | |
49911 | _swigc__p_wxSimpleHelpProvider, | |
49912 | _swigc__p_wxSize, | |
49913 | _swigc__p_wxSizeEvent, | |
49914 | _swigc__p_wxSizer, | |
49915 | _swigc__p_wxSizerItem, | |
49916 | _swigc__p_wxSlider, | |
49917 | _swigc__p_wxSpinButton, | |
49918 | _swigc__p_wxSpinCtrl, | |
49919 | _swigc__p_wxSpinEvent, | |
49920 | _swigc__p_wxStaticBitmap, | |
49921 | _swigc__p_wxStaticBox, | |
49922 | _swigc__p_wxStaticBoxSizer, | |
49923 | _swigc__p_wxStaticLine, | |
49924 | _swigc__p_wxStaticText, | |
49925 | _swigc__p_wxStdDialogButtonSizer, | |
49926 | _swigc__p_wxString, | |
49927 | _swigc__p_wxSysColourChangedEvent, | |
580080c5 | 49928 | _swigc__p_wxTGAHandler, |
1bd55598 RD |
49929 | _swigc__p_wxTIFFHandler, |
49930 | _swigc__p_wxTextAttr, | |
49931 | _swigc__p_wxTextCtrl, | |
49932 | _swigc__p_wxTextUrlEvent, | |
49933 | _swigc__p_wxToggleButton, | |
49934 | _swigc__p_wxToolBar, | |
49935 | _swigc__p_wxToolBarBase, | |
49936 | _swigc__p_wxToolBarToolBase, | |
49937 | _swigc__p_wxToolbook, | |
49938 | _swigc__p_wxToolbookEvent, | |
1bd55598 RD |
49939 | _swigc__p_wxTreeEvent, |
49940 | _swigc__p_wxTreeItemId, | |
49941 | _swigc__p_wxTreebook, | |
49942 | _swigc__p_wxTreebookEvent, | |
49943 | _swigc__p_wxUpdateUIEvent, | |
49944 | _swigc__p_wxValidator, | |
49945 | _swigc__p_wxVisualAttributes, | |
49946 | _swigc__p_wxWindow, | |
b850e7f3 | 49947 | _swigc__p_wxWindowBase, |
1bd55598 RD |
49948 | _swigc__p_wxWindowCreateEvent, |
49949 | _swigc__p_wxWindowDestroyEvent, | |
49950 | _swigc__p_wxXPMHandler, | |
49951 | }; | |
49952 | ||
49953 | ||
49954 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
49955 | ||
49956 | static swig_const_info swig_const_table[] = { | |
49957 | {0, 0, 0, 0.0, 0, 0}}; | |
49958 | ||
49959 | #ifdef __cplusplus | |
49960 | } | |
49961 | #endif | |
49962 | /* ----------------------------------------------------------------------------- | |
49963 | * Type initialization: | |
49964 | * This problem is tough by the requirement that no dynamic | |
49965 | * memory is used. Also, since swig_type_info structures store pointers to | |
49966 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
49967 | * to swig_type_info structures, we need some lookup code at initialization. | |
49968 | * The idea is that swig generates all the structures that are needed. | |
49969 | * The runtime then collects these partially filled structures. | |
49970 | * The SWIG_InitializeModule function takes these initial arrays out of | |
49971 | * swig_module, and does all the lookup, filling in the swig_module.types | |
49972 | * array with the correct data and linking the correct swig_cast_info | |
49973 | * structures together. | |
49974 | * | |
49975 | * The generated swig_type_info structures are assigned staticly to an initial | |
49976 | * array. We just loop though that array, and handle each type individually. | |
49977 | * First we lookup if this type has been already loaded, and if so, use the | |
49978 | * loaded structure instead of the generated one. Then we have to fill in the | |
49979 | * cast linked list. The cast data is initially stored in something like a | |
49980 | * two-dimensional array. Each row corresponds to a type (there are the same | |
49981 | * number of rows as there are in the swig_type_initial array). Each entry in | |
49982 | * a column is one of the swig_cast_info structures for that type. | |
49983 | * The cast_initial array is actually an array of arrays, because each row has | |
49984 | * a variable number of columns. So to actually build the cast linked list, | |
49985 | * we find the array of casts associated with the type, and loop through it | |
49986 | * adding the casts to the list. The one last trick we need to do is making | |
49987 | * sure the type pointer in the swig_cast_info struct is correct. | |
49988 | * | |
49989 | * First off, we lookup the cast->type name to see if it is already loaded. | |
49990 | * There are three cases to handle: | |
49991 | * 1) If the cast->type has already been loaded AND the type we are adding | |
49992 | * casting info to has not been loaded (it is in this module), THEN we | |
49993 | * replace the cast->type pointer with the type pointer that has already | |
49994 | * been loaded. | |
49995 | * 2) If BOTH types (the one we are adding casting info to, and the | |
49996 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
49997 | * the previous module so we just ignore it. | |
49998 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
49999 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
50000 | * be correct. | |
50001 | * ----------------------------------------------------------------------------- */ | |
50002 | ||
50003 | #ifdef __cplusplus | |
50004 | extern "C" { | |
50005 | #if 0 | |
50006 | } /* c-mode */ | |
50007 | #endif | |
50008 | #endif | |
50009 | ||
50010 | #if 0 | |
50011 | #define SWIGRUNTIME_DEBUG | |
50012 | #endif | |
50013 | ||
50014 | SWIGRUNTIME void | |
50015 | SWIG_InitializeModule(void *clientdata) { | |
50016 | size_t i; | |
50017 | swig_module_info *module_head; | |
50018 | static int init_run = 0; | |
50019 | ||
50020 | clientdata = clientdata; | |
50021 | ||
50022 | if (init_run) return; | |
50023 | init_run = 1; | |
50024 | ||
50025 | /* Initialize the swig_module */ | |
50026 | swig_module.type_initial = swig_type_initial; | |
50027 | swig_module.cast_initial = swig_cast_initial; | |
50028 | ||
50029 | /* Try and load any already created modules */ | |
50030 | module_head = SWIG_GetModule(clientdata); | |
50031 | if (module_head) { | |
50032 | swig_module.next = module_head->next; | |
50033 | module_head->next = &swig_module; | |
50034 | } else { | |
50035 | /* This is the first module loaded */ | |
50036 | swig_module.next = &swig_module; | |
50037 | SWIG_SetModule(clientdata, &swig_module); | |
50038 | } | |
50039 | ||
50040 | /* Now work on filling in swig_module.types */ | |
50041 | #ifdef SWIGRUNTIME_DEBUG | |
50042 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
50043 | #endif | |
50044 | for (i = 0; i < swig_module.size; ++i) { | |
50045 | swig_type_info *type = 0; | |
50046 | swig_type_info *ret; | |
50047 | swig_cast_info *cast; | |
d55e5bfc | 50048 | |
1bd55598 RD |
50049 | #ifdef SWIGRUNTIME_DEBUG |
50050 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
50051 | #endif | |
d55e5bfc | 50052 | |
1bd55598 RD |
50053 | /* if there is another module already loaded */ |
50054 | if (swig_module.next != &swig_module) { | |
50055 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
36ed4f51 | 50056 | } |
1bd55598 RD |
50057 | if (type) { |
50058 | /* Overwrite clientdata field */ | |
50059 | #ifdef SWIGRUNTIME_DEBUG | |
50060 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
50061 | #endif | |
50062 | if (swig_module.type_initial[i]->clientdata) { | |
50063 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
50064 | #ifdef SWIGRUNTIME_DEBUG | |
50065 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
50066 | #endif | |
50067 | } | |
50068 | } else { | |
50069 | type = swig_module.type_initial[i]; | |
36ed4f51 | 50070 | } |
d55e5bfc | 50071 | |
1bd55598 RD |
50072 | /* Insert casting types */ |
50073 | cast = swig_module.cast_initial[i]; | |
50074 | while (cast->type) { | |
50075 | /* Don't need to add information already in the list */ | |
50076 | ret = 0; | |
50077 | #ifdef SWIGRUNTIME_DEBUG | |
50078 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
50079 | #endif | |
50080 | if (swig_module.next != &swig_module) { | |
50081 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
50082 | #ifdef SWIGRUNTIME_DEBUG | |
50083 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
50084 | #endif | |
50085 | } | |
50086 | if (ret) { | |
50087 | if (type == swig_module.type_initial[i]) { | |
50088 | #ifdef SWIGRUNTIME_DEBUG | |
50089 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
50090 | #endif | |
50091 | cast->type = ret; | |
50092 | ret = 0; | |
50093 | } else { | |
50094 | /* Check for casting already in the list */ | |
50095 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
50096 | #ifdef SWIGRUNTIME_DEBUG | |
50097 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
50098 | #endif | |
50099 | if (!ocast) ret = 0; | |
50100 | } | |
50101 | } | |
50102 | ||
50103 | if (!ret) { | |
50104 | #ifdef SWIGRUNTIME_DEBUG | |
50105 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
50106 | #endif | |
50107 | if (type->cast) { | |
50108 | type->cast->prev = cast; | |
50109 | cast->next = type->cast; | |
50110 | } | |
50111 | type->cast = cast; | |
50112 | } | |
50113 | cast++; | |
36ed4f51 | 50114 | } |
1bd55598 RD |
50115 | /* Set entry in modules->types array equal to the type */ |
50116 | swig_module.types[i] = type; | |
50117 | } | |
50118 | swig_module.types[i] = 0; | |
50119 | ||
50120 | #ifdef SWIGRUNTIME_DEBUG | |
50121 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
50122 | for (i = 0; i < swig_module.size; ++i) { | |
50123 | int j = 0; | |
50124 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
50125 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
50126 | while (cast->type) { | |
50127 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
50128 | cast++; | |
50129 | ++j; | |
50130 | } | |
50131 | printf("---- Total casts: %d\n",j); | |
50132 | } | |
50133 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
50134 | #endif | |
50135 | } | |
50136 | ||
50137 | /* This function will propagate the clientdata field of type to | |
50138 | * any new swig_type_info structures that have been added into the list | |
50139 | * of equivalent types. It is like calling | |
50140 | * SWIG_TypeClientData(type, clientdata) a second time. | |
50141 | */ | |
50142 | SWIGRUNTIME void | |
50143 | SWIG_PropagateClientData(void) { | |
50144 | size_t i; | |
50145 | swig_cast_info *equiv; | |
50146 | static int init_run = 0; | |
50147 | ||
50148 | if (init_run) return; | |
50149 | init_run = 1; | |
50150 | ||
50151 | for (i = 0; i < swig_module.size; i++) { | |
50152 | if (swig_module.types[i]->clientdata) { | |
50153 | equiv = swig_module.types[i]->cast; | |
50154 | while (equiv) { | |
50155 | if (!equiv->converter) { | |
50156 | if (equiv->type && !equiv->type->clientdata) | |
50157 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
50158 | } | |
50159 | equiv = equiv->next; | |
50160 | } | |
36ed4f51 | 50161 | } |
1bd55598 RD |
50162 | } |
50163 | } | |
50164 | ||
50165 | #ifdef __cplusplus | |
50166 | #if 0 | |
50167 | { | |
50168 | /* c-mode */ | |
50169 | #endif | |
50170 | } | |
50171 | #endif | |
50172 | ||
50173 | ||
50174 | ||
50175 | #ifdef __cplusplus | |
50176 | extern "C" { | |
50177 | #endif | |
50178 | ||
50179 | /* Python-specific SWIG API */ | |
50180 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
50181 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
50182 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
50183 | ||
50184 | /* ----------------------------------------------------------------------------- | |
50185 | * global variable support code. | |
50186 | * ----------------------------------------------------------------------------- */ | |
50187 | ||
50188 | typedef struct swig_globalvar { | |
50189 | char *name; /* Name of global variable */ | |
50190 | PyObject *(*get_attr)(void); /* Return the current value */ | |
50191 | int (*set_attr)(PyObject *); /* Set the value */ | |
50192 | struct swig_globalvar *next; | |
50193 | } swig_globalvar; | |
50194 | ||
50195 | typedef struct swig_varlinkobject { | |
50196 | PyObject_HEAD | |
50197 | swig_globalvar *vars; | |
50198 | } swig_varlinkobject; | |
50199 | ||
50200 | SWIGINTERN PyObject * | |
50201 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
50202 | return PyString_FromString("<Swig global variables>"); | |
50203 | } | |
50204 | ||
50205 | SWIGINTERN PyObject * | |
50206 | swig_varlink_str(swig_varlinkobject *v) { | |
50207 | PyObject *str = PyString_FromString("("); | |
50208 | swig_globalvar *var; | |
50209 | for (var = v->vars; var; var=var->next) { | |
50210 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
50211 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
50212 | } | |
50213 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
50214 | return str; | |
50215 | } | |
50216 | ||
50217 | SWIGINTERN int | |
50218 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
50219 | PyObject *str = swig_varlink_str(v); | |
50220 | fprintf(fp,"Swig global variables "); | |
50221 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
50222 | Py_DECREF(str); | |
50223 | return 0; | |
50224 | } | |
50225 | ||
50226 | SWIGINTERN void | |
50227 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
50228 | swig_globalvar *var = v->vars; | |
50229 | while (var) { | |
50230 | swig_globalvar *n = var->next; | |
50231 | free(var->name); | |
50232 | free(var); | |
50233 | var = n; | |
36ed4f51 | 50234 | } |
1bd55598 RD |
50235 | } |
50236 | ||
50237 | SWIGINTERN PyObject * | |
50238 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
50239 | PyObject *res = NULL; | |
50240 | swig_globalvar *var = v->vars; | |
50241 | while (var) { | |
50242 | if (strcmp(var->name,n) == 0) { | |
50243 | res = (*var->get_attr)(); | |
50244 | break; | |
50245 | } | |
50246 | var = var->next; | |
36ed4f51 | 50247 | } |
1bd55598 RD |
50248 | if (res == NULL && !PyErr_Occurred()) { |
50249 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
36ed4f51 | 50250 | } |
1bd55598 RD |
50251 | return res; |
50252 | } | |
50253 | ||
50254 | SWIGINTERN int | |
50255 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
50256 | int res = 1; | |
50257 | swig_globalvar *var = v->vars; | |
50258 | while (var) { | |
50259 | if (strcmp(var->name,n) == 0) { | |
50260 | res = (*var->set_attr)(p); | |
50261 | break; | |
50262 | } | |
50263 | var = var->next; | |
36ed4f51 | 50264 | } |
1bd55598 RD |
50265 | if (res == 1 && !PyErr_Occurred()) { |
50266 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
53aa7709 | 50267 | } |
1bd55598 RD |
50268 | return res; |
50269 | } | |
50270 | ||
50271 | SWIGINTERN PyTypeObject* | |
50272 | swig_varlink_type(void) { | |
50273 | static char varlink__doc__[] = "Swig var link object"; | |
50274 | static PyTypeObject varlink_type; | |
50275 | static int type_init = 0; | |
50276 | if (!type_init) { | |
50277 | const PyTypeObject tmp | |
50278 | = { | |
50279 | PyObject_HEAD_INIT(NULL) | |
50280 | 0, /* Number of items in variable part (ob_size) */ | |
50281 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
50282 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
50283 | 0, /* Itemsize (tp_itemsize) */ | |
50284 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
50285 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
50286 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
50287 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
50288 | 0, /* tp_compare */ | |
50289 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
50290 | 0, /* tp_as_number */ | |
50291 | 0, /* tp_as_sequence */ | |
50292 | 0, /* tp_as_mapping */ | |
50293 | 0, /* tp_hash */ | |
50294 | 0, /* tp_call */ | |
50295 | (reprfunc)swig_varlink_str, /* tp_str */ | |
50296 | 0, /* tp_getattro */ | |
50297 | 0, /* tp_setattro */ | |
50298 | 0, /* tp_as_buffer */ | |
50299 | 0, /* tp_flags */ | |
50300 | varlink__doc__, /* tp_doc */ | |
50301 | 0, /* tp_traverse */ | |
50302 | 0, /* tp_clear */ | |
50303 | 0, /* tp_richcompare */ | |
50304 | 0, /* tp_weaklistoffset */ | |
50305 | #if PY_VERSION_HEX >= 0x02020000 | |
50306 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
50307 | #endif | |
50308 | #if PY_VERSION_HEX >= 0x02030000 | |
50309 | 0, /* tp_del */ | |
50310 | #endif | |
50311 | #ifdef COUNT_ALLOCS | |
50312 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
50313 | #endif | |
50314 | }; | |
50315 | varlink_type = tmp; | |
50316 | varlink_type.ob_type = &PyType_Type; | |
50317 | type_init = 1; | |
53aa7709 | 50318 | } |
1bd55598 RD |
50319 | return &varlink_type; |
50320 | } | |
50321 | ||
50322 | /* Create a variable linking object for use later */ | |
50323 | SWIGINTERN PyObject * | |
50324 | SWIG_Python_newvarlink(void) { | |
50325 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
50326 | if (result) { | |
50327 | result->vars = 0; | |
50328 | } | |
50329 | return ((PyObject*) result); | |
50330 | } | |
50331 | ||
50332 | SWIGINTERN void | |
50333 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
50334 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
50335 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
50336 | if (gv) { | |
50337 | size_t size = strlen(name)+1; | |
50338 | gv->name = (char *)malloc(size); | |
50339 | if (gv->name) { | |
50340 | strncpy(gv->name,name,size); | |
50341 | gv->get_attr = get_attr; | |
50342 | gv->set_attr = set_attr; | |
50343 | gv->next = v->vars; | |
50344 | } | |
53aa7709 | 50345 | } |
1bd55598 RD |
50346 | v->vars = gv; |
50347 | } | |
50348 | ||
50349 | SWIGINTERN PyObject * | |
50350 | SWIG_globals() { | |
50351 | static PyObject *_SWIG_globals = 0; | |
50352 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
50353 | return _SWIG_globals; | |
50354 | } | |
50355 | ||
50356 | /* ----------------------------------------------------------------------------- | |
50357 | * constants/methods manipulation | |
50358 | * ----------------------------------------------------------------------------- */ | |
50359 | ||
50360 | /* Install Constants */ | |
50361 | SWIGINTERN void | |
50362 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
50363 | PyObject *obj = 0; | |
50364 | size_t i; | |
50365 | for (i = 0; constants[i].type; ++i) { | |
50366 | switch(constants[i].type) { | |
50367 | case SWIG_PY_POINTER: | |
50368 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
50369 | break; | |
50370 | case SWIG_PY_BINARY: | |
50371 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
50372 | break; | |
50373 | default: | |
50374 | obj = 0; | |
50375 | break; | |
50376 | } | |
50377 | if (obj) { | |
50378 | PyDict_SetItemString(d, constants[i].name, obj); | |
50379 | Py_DECREF(obj); | |
50380 | } | |
53aa7709 | 50381 | } |
1bd55598 RD |
50382 | } |
50383 | ||
50384 | /* -----------------------------------------------------------------------------*/ | |
50385 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
50386 | /* -----------------------------------------------------------------------------*/ | |
50387 | ||
50388 | SWIGINTERN void | |
50389 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
50390 | swig_const_info *const_table, | |
50391 | swig_type_info **types, | |
50392 | swig_type_info **types_initial) { | |
50393 | size_t i; | |
50394 | for (i = 0; methods[i].ml_name; ++i) { | |
3d6c9062 | 50395 | const char *c = methods[i].ml_doc; |
1bd55598 RD |
50396 | if (c && (c = strstr(c, "swig_ptr: "))) { |
50397 | int j; | |
50398 | swig_const_info *ci = 0; | |
3d6c9062 | 50399 | const char *name = c + 10; |
1bd55598 RD |
50400 | for (j = 0; const_table[j].type; ++j) { |
50401 | if (strncmp(const_table[j].name, name, | |
50402 | strlen(const_table[j].name)) == 0) { | |
50403 | ci = &(const_table[j]); | |
50404 | break; | |
50405 | } | |
50406 | } | |
50407 | if (ci) { | |
50408 | size_t shift = (ci->ptype) - types; | |
50409 | swig_type_info *ty = types_initial[shift]; | |
50410 | size_t ldoc = (c - methods[i].ml_doc); | |
50411 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
50412 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
50413 | if (ndoc) { | |
50414 | char *buff = ndoc; | |
50415 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
50416 | if (ptr) { | |
50417 | strncpy(buff, methods[i].ml_doc, ldoc); | |
50418 | buff += ldoc; | |
50419 | strncpy(buff, "swig_ptr: ", 10); | |
50420 | buff += 10; | |
50421 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
50422 | methods[i].ml_doc = ndoc; | |
50423 | } | |
50424 | } | |
50425 | } | |
50426 | } | |
53aa7709 | 50427 | } |
1bd55598 RD |
50428 | } |
50429 | ||
50430 | #ifdef __cplusplus | |
50431 | } | |
50432 | #endif | |
50433 | ||
50434 | /* -----------------------------------------------------------------------------* | |
50435 | * Partial Init method | |
50436 | * -----------------------------------------------------------------------------*/ | |
50437 | ||
50438 | #ifdef __cplusplus | |
50439 | extern "C" | |
50440 | #endif | |
50441 | SWIGEXPORT void SWIG_init(void) { | |
50442 | PyObject *m, *d; | |
50443 | ||
50444 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
50445 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
50446 | ||
50447 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
50448 | d = PyModule_GetDict(m); | |
50449 | ||
50450 | SWIG_InitializeModule(0); | |
50451 | SWIG_InstallConstants(d,swig_const_table); | |
50452 | ||
50453 | ||
50454 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
50455 | SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set); | |
50456 | SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT))); | |
50457 | SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP))); | |
50458 | SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT))); | |
50459 | SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM))); | |
50460 | SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK))); | |
50461 | SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT))); | |
50462 | SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW))); | |
50463 | SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set); | |
50464 | SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE))); | |
50465 | SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE))); | |
50466 | SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER))); | |
50467 | SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED))); | |
50468 | SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED))); | |
50469 | SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED))); | |
50470 | SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set); | |
50471 | SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set); | |
50472 | SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set); | |
50473 | SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL))); | |
50474 | SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL))); | |
50475 | SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH))); | |
1bd55598 RD |
50476 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set); |
50477 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set); | |
50478 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set); | |
3f7f284d | 50479 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set); |
1bd55598 RD |
50480 | SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set); |
50481 | SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set); | |
50482 | SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL))); | |
50483 | SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL))); | |
50484 | SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY))); | |
50485 | SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE))); | |
50486 | SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB))); | |
50487 | SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT))); | |
50488 | SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER))); | |
50489 | SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT))); | |
50490 | SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE))); | |
50491 | SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH))); | |
50492 | SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER))); | |
50493 | SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD))); | |
50494 | SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL))); | |
50495 | SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL))); | |
50496 | SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP))); | |
50497 | SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP))); | |
50498 | SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP))); | |
50499 | SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP))); | |
1bd55598 RD |
50500 | SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2))); |
50501 | SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE))); | |
50502 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT))); | |
50503 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT))); | |
50504 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE))); | |
50505 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER))); | |
50506 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT))); | |
50507 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED))); | |
50508 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR))); | |
50509 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR))); | |
50510 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE))); | |
50511 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE))); | |
50512 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT))); | |
50513 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC))); | |
50514 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE))); | |
50515 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT))); | |
50516 | SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT))); | |
50517 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT))); | |
50518 | SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT))); | |
50519 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS))); | |
50520 | SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN))); | |
50521 | SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE))); | |
50522 | SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT))); | |
50523 | SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW))); | |
50524 | SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND))); | |
50525 | SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord))); | |
50526 | SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord))); | |
f5263701 | 50527 | SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY))); |
1bd55598 RD |
50528 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
50529 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
50530 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
50531 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
50532 | SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set); | |
50533 | SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set); | |
50534 | SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set); | |
50535 | SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL))); | |
50536 | SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL))); | |
50537 | SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS))); | |
50538 | SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP))); | |
50539 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); | |
50540 | SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set); | |
50541 | SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set); | |
50542 | SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set); | |
50543 | SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL))); | |
50544 | SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL))); | |
50545 | SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS))); | |
50546 | SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS))); | |
50547 | SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS))); | |
50548 | SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT))); | |
50549 | SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP))); | |
50550 | SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT))); | |
50551 | SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM))); | |
50552 | SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH))); | |
50553 | SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE))); | |
50554 | SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE))); | |
50555 | SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set); | |
50556 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
50557 | SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set); | |
50558 | SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT))); | |
50559 | SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP))); | |
50560 | SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM))); | |
50561 | SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT))); | |
50562 | SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT))); | |
50563 | SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK))); | |
e9d6f3a4 | 50564 | SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR))); |
110fa173 RD |
50565 | SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE))); |
50566 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON))); | |
50567 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL))); | |
50568 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM))); | |
50569 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE))); | |
1bd55598 RD |
50570 | SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH))); |
50571 | SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP))); | |
50572 | SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT))); | |
50573 | SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT))); | |
50574 | SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM))); | |
50575 | SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE))); | |
50576 | SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME))); | |
50577 | SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE))); | |
50578 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON))); | |
50579 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL))); | |
50580 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM))); | |
b02396e8 | 50581 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE))); |
1bd55598 RD |
50582 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
50583 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
50584 | SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT))); | |
50585 | SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP))); | |
50586 | SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM))); | |
50587 | SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT))); | |
50588 | SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT))); | |
50589 | SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK))); | |
50590 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
50591 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
50592 | SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT))); | |
50593 | SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP))); | |
50594 | SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM))); | |
50595 | SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT))); | |
50596 | SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT))); | |
50597 | SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK))); | |
50598 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); | |
50599 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
50600 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED)); | |
50601 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING)); | |
50602 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED)); | |
50603 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED)); | |
50604 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED)); | |
50605 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING)); | |
50606 | SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON))); | |
50607 | SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR))); | |
50608 | SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL))); | |
50609 | SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL))); | |
50610 | SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL))); | |
8f514ab4 RD |
50611 | SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP))); |
50612 | SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT))); | |
50613 | SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM))); | |
50614 | SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT))); | |
1bd55598 RD |
50615 | SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS))); |
50616 | SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT))); | |
50617 | SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE))); | |
50618 | SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS))); | |
50619 | SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT))); | |
50620 | SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER))); | |
50621 | SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN))); | |
50622 | SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT))); | |
50623 | SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT))); | |
704eda0c | 50624 | SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS))); |
1bd55598 RD |
50625 | SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set); |
50626 | SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES))); | |
50627 | SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES))); | |
50628 | SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON))); | |
50629 | SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON))); | |
50630 | SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST))); | |
50631 | SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT))); | |
50632 | SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP))); | |
50633 | SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT))); | |
50634 | SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE))); | |
50635 | SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL))); | |
50636 | SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS))); | |
50637 | SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER))); | |
50638 | SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER))); | |
50639 | SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL))); | |
50640 | SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING))); | |
50641 | SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING))); | |
50642 | SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE))); | |
50643 | SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN))); | |
50644 | SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT))); | |
50645 | SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE))); | |
50646 | SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT))); | |
50647 | SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE))); | |
50648 | SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA))); | |
50649 | SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM))); | |
50650 | SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH))); | |
50651 | SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT))); | |
50652 | SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE))); | |
50653 | SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED))); | |
50654 | SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED))); | |
50655 | SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED))); | |
50656 | SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT))); | |
50657 | SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED))); | |
50658 | SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED))); | |
50659 | SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE))); | |
50660 | SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED))); | |
50661 | SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE))); | |
50662 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE))); | |
50663 | SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW))); | |
50664 | SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE))); | |
50665 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON))); | |
50666 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL))); | |
50667 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT))); | |
50668 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON))); | |
50669 | SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT))); | |
50670 | SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT))); | |
50671 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM))); | |
704eda0c | 50672 | SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM))); |
1bd55598 RD |
50673 | SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE))); |
50674 | SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL))); | |
50675 | SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW))); | |
50676 | SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT))); | |
50677 | SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT))); | |
50678 | SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT))); | |
50679 | SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT))); | |
50680 | SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP))); | |
50681 | SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID))); | |
50682 | SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT))); | |
50683 | SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT))); | |
50684 | SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE))); | |
50685 | SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER))); | |
50686 | SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE))); | |
50687 | SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER))); | |
50688 | SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS))); | |
50689 | SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON))); | |
50690 | SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL))); | |
50691 | SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP))); | |
50692 | SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN))); | |
50693 | SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT))); | |
50694 | SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT))); | |
50695 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
50696 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
50697 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
50698 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
50699 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
50700 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
50701 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
50702 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
50703 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
50704 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
50705 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
50706 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
50707 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
50708 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
50709 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
50710 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
50711 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
50712 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
50713 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
50714 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
50715 | ||
50716 | // Map renamed classes back to their common name for OOR | |
50717 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
50718 | ||
50719 | SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set); | |
50720 | SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS))); | |
50721 | SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS))); | |
50722 | SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES))); | |
50723 | SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT))); | |
50724 | SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE))); | |
50725 | SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE))); | |
50726 | SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED))); | |
50727 | SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT))); | |
50728 | SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS))); | |
50729 | SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT))); | |
50730 | SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES))); | |
50731 | SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT))); | |
50732 | SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE))); | |
50733 | SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS))); | |
1bd55598 RD |
50734 | SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal))); |
50735 | SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected))); | |
50736 | SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded))); | |
50737 | SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded))); | |
50738 | SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max))); | |
50739 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE))); | |
50740 | SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW))); | |
50741 | SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE))); | |
50742 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON))); | |
50743 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON))); | |
50744 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT))); | |
50745 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL))); | |
50746 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT))); | |
50747 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON))); | |
50748 | SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT))); | |
50749 | SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT))); | |
50750 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART))); | |
50751 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART))); | |
50752 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM))); | |
50753 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
50754 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
50755 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
50756 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
50757 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
50758 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
50759 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
50760 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
50761 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
50762 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
50763 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
50764 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
50765 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
50766 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
50767 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
50768 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
50769 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
50770 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
50771 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
50772 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
50773 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU)); | |
b02396e8 | 50774 | SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set); |
1bd55598 RD |
50775 | |
50776 | // Map renamed classes back to their common name for OOR | |
50777 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
50778 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
50779 | ||
50780 | SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set); | |
50781 | SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY))); | |
50782 | SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST))); | |
50783 | SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS))); | |
50784 | SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL))); | |
50785 | SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS))); | |
1bd55598 RD |
50786 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
50787 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
704eda0c RD |
50788 | SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown))); |
50789 | SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard))); | |
50790 | SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton))); | |
1bd55598 RD |
50791 | |
50792 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
50793 | ||
50794 | SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set); | |
50795 | SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT))); | |
50796 | SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN))); | |
50797 | SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN))); | |
50798 | SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY))); | |
50799 | SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE))); | |
704eda0c RD |
50800 | SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set); |
50801 | SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU))); | |
33d6fd3b RD |
50802 | SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT))); |
50803 | SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT))); | |
50804 | SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE))); | |
704eda0c RD |
50805 | SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE))); |
50806 | PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK)); | |
b850e7f3 RD |
50807 | SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL))); |
50808 | SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set); | |
50809 | SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL))); | |
50810 | SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL))); | |
50811 | SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE))); | |
50812 | PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED)); | |
50813 | SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set); | |
50814 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set); | |
50815 | SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set); | |
50816 | SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set); | |
50817 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set); | |
50818 | SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN))); | |
50819 | SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE))); | |
50820 | SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT))); | |
50821 | SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST))); | |
50822 | SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR))); | |
50823 | SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST))); | |
50824 | SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR))); | |
50825 | SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL))); | |
50826 | SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE))); | |
50827 | SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL))); | |
50828 | SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE))); | |
50829 | PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED)); | |
50830 | PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED)); | |
50831 | SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set); | |
50832 | SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL))); | |
50833 | SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL))); | |
50834 | SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL))); | |
50835 | SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE))); | |
50836 | PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED)); | |
5172800e RD |
50837 | SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set); |
50838 | SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE))); | |
50839 | SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE))); | |
50840 | PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED)); | |
3f7f284d | 50841 | SWIG_addvarlink(SWIG_globals(),(char*)"SearchCtrlNameStr",SearchCtrlNameStr_get, SearchCtrlNameStr_set); |
4ed51f4d RD |
50842 | PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN)); |
50843 | PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN)); | |
d55e5bfc RD |
50844 | } |
50845 |