]>
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 | |
1bd55598 RD |
988 | /* for raw pointers */ |
989 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
990 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
991 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
992 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
993 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
994 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
995 | #define swig_owntype int | |
d55e5bfc | 996 | |
1bd55598 RD |
997 | /* for raw packed data */ |
998 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
999 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
d55e5bfc | 1000 | |
1bd55598 RD |
1001 | /* for class or struct pointers */ |
1002 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1003 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
d55e5bfc | 1004 | |
1bd55598 RD |
1005 | /* for C or C++ function pointers */ |
1006 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1007 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
d55e5bfc | 1008 | |
1bd55598 RD |
1009 | /* for C++ member pointers, ie, member methods */ |
1010 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1011 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
32fe5131 | 1012 | |
d55e5bfc | 1013 | |
1bd55598 | 1014 | /* Runtime API */ |
d55e5bfc | 1015 | |
1bd55598 RD |
1016 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1017 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1018 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
32fe5131 | 1019 | |
1bd55598 RD |
1020 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1021 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1022 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1023 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1024 | #define SWIG_fail goto fail | |
32fe5131 | 1025 | |
d55e5bfc | 1026 | |
1bd55598 | 1027 | /* Runtime API implementation */ |
36ed4f51 | 1028 | |
1bd55598 | 1029 | /* Error manipulation */ |
36ed4f51 | 1030 | |
1bd55598 RD |
1031 | SWIGINTERN void |
1032 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1033 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1034 | PyErr_SetObject(errtype, obj); | |
1035 | Py_DECREF(obj); | |
1036 | SWIG_PYTHON_THREAD_END_BLOCK; | |
d55e5bfc RD |
1037 | } |
1038 | ||
1bd55598 RD |
1039 | SWIGINTERN void |
1040 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1041 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1042 | PyErr_SetString(errtype, (char *) msg); | |
1043 | SWIG_PYTHON_THREAD_END_BLOCK; | |
36ed4f51 | 1044 | } |
d55e5bfc | 1045 | |
1bd55598 | 1046 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1047 | |
1bd55598 | 1048 | /* Set a constant value */ |
36ed4f51 | 1049 | |
1bd55598 RD |
1050 | SWIGINTERN void |
1051 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1052 | PyDict_SetItemString(d, (char*) name, obj); | |
1053 | Py_DECREF(obj); | |
d55e5bfc RD |
1054 | } |
1055 | ||
1bd55598 | 1056 | /* Append a value to the result obj */ |
d55e5bfc | 1057 | |
1bd55598 RD |
1058 | SWIGINTERN PyObject* |
1059 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1060 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1061 | if (!result) { | |
1062 | result = obj; | |
1063 | } else if (result == Py_None) { | |
1064 | Py_DECREF(result); | |
1065 | result = obj; | |
1066 | } else { | |
1067 | if (!PyList_Check(result)) { | |
1068 | PyObject *o2 = result; | |
1069 | result = PyList_New(1); | |
1070 | PyList_SetItem(result, 0, o2); | |
1071 | } | |
1072 | PyList_Append(result,obj); | |
1073 | Py_DECREF(obj); | |
1074 | } | |
1075 | return result; | |
1076 | #else | |
1077 | PyObject* o2; | |
1078 | PyObject* o3; | |
1079 | if (!result) { | |
1080 | result = obj; | |
1081 | } else if (result == Py_None) { | |
1082 | Py_DECREF(result); | |
1083 | result = obj; | |
c370783e | 1084 | } else { |
1bd55598 RD |
1085 | if (!PyTuple_Check(result)) { |
1086 | o2 = result; | |
1087 | result = PyTuple_New(1); | |
1088 | PyTuple_SET_ITEM(result, 0, o2); | |
1089 | } | |
1090 | o3 = PyTuple_New(1); | |
1091 | PyTuple_SET_ITEM(o3, 0, obj); | |
1092 | o2 = result; | |
1093 | result = PySequence_Concat(o2, o3); | |
1094 | Py_DECREF(o2); | |
1095 | Py_DECREF(o3); | |
c370783e | 1096 | } |
1bd55598 RD |
1097 | return result; |
1098 | #endif | |
d55e5bfc | 1099 | } |
36ed4f51 | 1100 | |
1bd55598 | 1101 | /* Unpack the argument tuple */ |
36ed4f51 | 1102 | |
1bd55598 RD |
1103 | SWIGINTERN int |
1104 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1105 | { | |
1106 | if (!args) { | |
1107 | if (!min && !max) { | |
1108 | return 1; | |
1109 | } else { | |
1110 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1111 | name, (min == max ? "" : "at least "), min); | |
1112 | return 0; | |
1113 | } | |
1114 | } | |
1115 | if (!PyTuple_Check(args)) { | |
1116 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1117 | return 0; | |
1118 | } else { | |
1119 | register int l = PyTuple_GET_SIZE(args); | |
1120 | if (l < min) { | |
1121 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1122 | name, (min == max ? "" : "at least "), min, l); | |
1123 | return 0; | |
1124 | } else if (l > max) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at most "), max, l); | |
1127 | return 0; | |
1128 | } else { | |
1129 | register int i; | |
1130 | for (i = 0; i < l; ++i) { | |
1131 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1132 | } | |
1133 | for (; l < max; ++l) { | |
1134 | objs[l] = 0; | |
1135 | } | |
1136 | return i + 1; | |
1137 | } | |
1138 | } | |
1139 | } | |
1140 | ||
1141 | /* A functor is a function object with one single object argument */ | |
1142 | #if PY_VERSION_HEX >= 0x02020000 | |
1143 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1144 | #else | |
1145 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1146 | #endif | |
1147 | ||
1148 | /* | |
1149 | Helper for static pointer initialization for both C and C++ code, for example | |
1150 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1151 | */ | |
1152 | #ifdef __cplusplus | |
1153 | #define SWIG_STATIC_POINTER(var) var | |
1154 | #else | |
1155 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1156 | #endif | |
1157 | ||
1158 | /* ----------------------------------------------------------------------------- | |
1159 | * Pointer declarations | |
1160 | * ----------------------------------------------------------------------------- */ | |
1161 | ||
1162 | /* Flags for new pointer objects */ | |
1163 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1164 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1165 | ||
1166 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1167 | ||
1168 | #ifdef __cplusplus | |
1169 | extern "C" { | |
1170 | #if 0 | |
1171 | } /* cc-mode */ | |
1172 | #endif | |
1173 | #endif | |
1174 | ||
1175 | /* How to access Py_None */ | |
1176 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1177 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1178 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1179 | # define SWIG_PYTHON_BUILD_NONE | |
1180 | # endif | |
1181 | # endif | |
1182 | #endif | |
1183 | ||
1184 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1185 | # ifdef Py_None | |
1186 | # undef Py_None | |
1187 | # define Py_None SWIG_Py_None() | |
1188 | # endif | |
1189 | SWIGRUNTIMEINLINE PyObject * | |
1190 | _SWIG_Py_None(void) | |
1191 | { | |
1192 | PyObject *none = Py_BuildValue(""); | |
1193 | Py_DECREF(none); | |
1194 | return none; | |
1195 | } | |
1196 | SWIGRUNTIME PyObject * | |
1197 | SWIG_Py_None(void) | |
1198 | { | |
1199 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1200 | return none; | |
1201 | } | |
1202 | #endif | |
1203 | ||
1204 | /* The python void return value */ | |
1205 | ||
1206 | SWIGRUNTIMEINLINE PyObject * | |
1207 | SWIG_Py_Void(void) | |
1208 | { | |
1209 | PyObject *none = Py_None; | |
1210 | Py_INCREF(none); | |
1211 | return none; | |
1212 | } | |
1213 | ||
1214 | /* PySwigClientData */ | |
1215 | ||
1216 | typedef struct { | |
1217 | PyObject *klass; | |
1218 | PyObject *newraw; | |
1219 | PyObject *newargs; | |
1220 | PyObject *destroy; | |
1221 | int delargs; | |
1222 | int implicitconv; | |
1223 | } PySwigClientData; | |
1224 | ||
1225 | SWIGRUNTIMEINLINE int | |
1226 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1227 | { | |
1228 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1229 | return data ? data->implicitconv : 0; | |
1230 | } | |
1231 | ||
1232 | SWIGRUNTIMEINLINE PyObject * | |
1233 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1234 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1235 | PyObject *klass = data ? data->klass : 0; | |
1236 | return (klass ? klass : PyExc_RuntimeError); | |
1237 | } | |
1238 | ||
1239 | ||
1240 | SWIGRUNTIME PySwigClientData * | |
1241 | PySwigClientData_New(PyObject* obj) | |
1242 | { | |
1243 | if (!obj) { | |
1244 | return 0; | |
1245 | } else { | |
1246 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1247 | /* the klass element */ | |
1248 | data->klass = obj; | |
1249 | Py_INCREF(data->klass); | |
1250 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1251 | if (PyClass_Check(obj)) { | |
1252 | data->newraw = 0; | |
1253 | data->newargs = obj; | |
1254 | Py_INCREF(obj); | |
1255 | } else { | |
1256 | #if (PY_VERSION_HEX < 0x02020000) | |
1257 | data->newraw = 0; | |
1258 | #else | |
1259 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1260 | #endif | |
1261 | if (data->newraw) { | |
1262 | Py_INCREF(data->newraw); | |
1263 | data->newargs = PyTuple_New(1); | |
1264 | PyTuple_SetItem(data->newargs, 0, obj); | |
1265 | } else { | |
1266 | data->newargs = obj; | |
1267 | } | |
1268 | Py_INCREF(data->newargs); | |
1269 | } | |
1270 | /* the destroy method, aka as the C++ delete method */ | |
1271 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1272 | if (PyErr_Occurred()) { | |
1273 | PyErr_Clear(); | |
1274 | data->destroy = 0; | |
1275 | } | |
1276 | if (data->destroy) { | |
1277 | int flags; | |
1278 | Py_INCREF(data->destroy); | |
1279 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1280 | #ifdef METH_O | |
1281 | data->delargs = !(flags & (METH_O)); | |
1282 | #else | |
1283 | data->delargs = 0; | |
1284 | #endif | |
1285 | } else { | |
1286 | data->delargs = 0; | |
1287 | } | |
1288 | data->implicitconv = 0; | |
1289 | return data; | |
1290 | } | |
1291 | } | |
1292 | ||
1293 | SWIGRUNTIME void | |
1294 | PySwigClientData_Del(PySwigClientData* data) | |
1295 | { | |
1296 | Py_XDECREF(data->newraw); | |
1297 | Py_XDECREF(data->newargs); | |
1298 | Py_XDECREF(data->destroy); | |
1299 | } | |
1300 | ||
1301 | /* =============== PySwigObject =====================*/ | |
1302 | ||
1303 | typedef struct { | |
1304 | PyObject_HEAD | |
1305 | void *ptr; | |
1306 | swig_type_info *ty; | |
1307 | int own; | |
1308 | PyObject *next; | |
1309 | } PySwigObject; | |
1310 | ||
1311 | SWIGRUNTIME PyObject * | |
1312 | PySwigObject_long(PySwigObject *v) | |
1313 | { | |
1314 | return PyLong_FromVoidPtr(v->ptr); | |
1315 | } | |
1316 | ||
1317 | SWIGRUNTIME PyObject * | |
1318 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1319 | { | |
1320 | PyObject *res = NULL; | |
1321 | PyObject *args = PyTuple_New(1); | |
1322 | if (args) { | |
1323 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1324 | PyObject *ofmt = PyString_FromString(fmt); | |
1325 | if (ofmt) { | |
1326 | res = PyString_Format(ofmt,args); | |
1327 | Py_DECREF(ofmt); | |
1328 | } | |
1329 | Py_DECREF(args); | |
1330 | } | |
1331 | } | |
1332 | return res; | |
1333 | } | |
1334 | ||
1335 | SWIGRUNTIME PyObject * | |
1336 | PySwigObject_oct(PySwigObject *v) | |
1337 | { | |
1338 | return PySwigObject_format("%o",v); | |
1339 | } | |
1340 | ||
1341 | SWIGRUNTIME PyObject * | |
1342 | PySwigObject_hex(PySwigObject *v) | |
1343 | { | |
1344 | return PySwigObject_format("%x",v); | |
1345 | } | |
1346 | ||
1347 | SWIGRUNTIME PyObject * | |
1348 | #ifdef METH_NOARGS | |
1349 | PySwigObject_repr(PySwigObject *v) | |
1350 | #else | |
1351 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1352 | #endif | |
1353 | { | |
1354 | const char *name = SWIG_TypePrettyName(v->ty); | |
1355 | PyObject *hex = PySwigObject_hex(v); | |
1356 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1357 | Py_DECREF(hex); | |
1358 | if (v->next) { | |
1359 | #ifdef METH_NOARGS | |
1360 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1361 | #else | |
1362 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1363 | #endif | |
1364 | PyString_ConcatAndDel(&repr,nrep); | |
1365 | } | |
1366 | return repr; | |
1367 | } | |
1368 | ||
1369 | SWIGRUNTIME int | |
1370 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1371 | { | |
1372 | #ifdef METH_NOARGS | |
1373 | PyObject *repr = PySwigObject_repr(v); | |
1374 | #else | |
1375 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1376 | #endif | |
1377 | if (repr) { | |
1378 | fputs(PyString_AsString(repr), fp); | |
1379 | Py_DECREF(repr); | |
1380 | return 0; | |
1381 | } else { | |
1382 | return 1; | |
1383 | } | |
1384 | } | |
1385 | ||
1386 | SWIGRUNTIME PyObject * | |
1387 | PySwigObject_str(PySwigObject *v) | |
1388 | { | |
1389 | char result[SWIG_BUFFER_SIZE]; | |
1390 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1391 | PyString_FromString(result) : 0; | |
1392 | } | |
1393 | ||
1394 | SWIGRUNTIME int | |
1395 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1396 | { | |
1397 | void *i = v->ptr; | |
1398 | void *j = w->ptr; | |
1399 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1400 | } | |
1401 | ||
1402 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1403 | ||
1404 | SWIGRUNTIME PyTypeObject* | |
1405 | PySwigObject_type(void) { | |
1406 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1407 | return type; | |
1408 | } | |
1409 | ||
1410 | SWIGRUNTIMEINLINE int | |
1411 | PySwigObject_Check(PyObject *op) { | |
1412 | return ((op)->ob_type == PySwigObject_type()) | |
1413 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1414 | } | |
1415 | ||
1416 | SWIGRUNTIME PyObject * | |
1417 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1418 | ||
1419 | SWIGRUNTIME void | |
1420 | PySwigObject_dealloc(PyObject *v) | |
1421 | { | |
1422 | PySwigObject *sobj = (PySwigObject *) v; | |
1423 | PyObject *next = sobj->next; | |
1424 | if (sobj->own) { | |
1425 | swig_type_info *ty = sobj->ty; | |
1426 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1427 | PyObject *destroy = data ? data->destroy : 0; | |
1428 | if (destroy) { | |
1429 | /* destroy is always a VARARGS method */ | |
1430 | PyObject *res; | |
1431 | if (data->delargs) { | |
1432 | /* we need to create a temporal object to carry the destroy operation */ | |
1433 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1434 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1435 | Py_DECREF(tmp); | |
1436 | } else { | |
1437 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1438 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1439 | res = ((*meth)(mself, v)); | |
1440 | } | |
1441 | Py_XDECREF(res); | |
1442 | } else { | |
1443 | const char *name = SWIG_TypePrettyName(ty); | |
1444 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1445 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1446 | #endif | |
1447 | } | |
1448 | } | |
1449 | Py_XDECREF(next); | |
1450 | PyObject_DEL(v); | |
1451 | } | |
1452 | ||
1453 | SWIGRUNTIME PyObject* | |
1454 | PySwigObject_append(PyObject* v, PyObject* next) | |
1455 | { | |
1456 | PySwigObject *sobj = (PySwigObject *) v; | |
1457 | #ifndef METH_O | |
1458 | PyObject *tmp = 0; | |
1459 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1460 | next = tmp; | |
1461 | #endif | |
1462 | if (!PySwigObject_Check(next)) { | |
1463 | return NULL; | |
1464 | } | |
1465 | sobj->next = next; | |
1466 | Py_INCREF(next); | |
1467 | return SWIG_Py_Void(); | |
1468 | } | |
1469 | ||
1470 | SWIGRUNTIME PyObject* | |
1471 | #ifdef METH_NOARGS | |
1472 | PySwigObject_next(PyObject* v) | |
1473 | #else | |
1474 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1475 | #endif | |
1476 | { | |
1477 | PySwigObject *sobj = (PySwigObject *) v; | |
1478 | if (sobj->next) { | |
1479 | Py_INCREF(sobj->next); | |
1480 | return sobj->next; | |
1481 | } else { | |
1482 | return SWIG_Py_Void(); | |
1483 | } | |
1484 | } | |
1485 | ||
1486 | SWIGINTERN PyObject* | |
1487 | #ifdef METH_NOARGS | |
1488 | PySwigObject_disown(PyObject *v) | |
1489 | #else | |
1490 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1491 | #endif | |
1492 | { | |
1493 | PySwigObject *sobj = (PySwigObject *)v; | |
1494 | sobj->own = 0; | |
1495 | return SWIG_Py_Void(); | |
1496 | } | |
1497 | ||
1498 | SWIGINTERN PyObject* | |
1499 | #ifdef METH_NOARGS | |
1500 | PySwigObject_acquire(PyObject *v) | |
1501 | #else | |
1502 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1503 | #endif | |
1504 | { | |
1505 | PySwigObject *sobj = (PySwigObject *)v; | |
1506 | sobj->own = SWIG_POINTER_OWN; | |
1507 | return SWIG_Py_Void(); | |
1508 | } | |
1509 | ||
1510 | SWIGINTERN PyObject* | |
1511 | PySwigObject_own(PyObject *v, PyObject *args) | |
1512 | { | |
1513 | PyObject *val = 0; | |
1514 | #if (PY_VERSION_HEX < 0x02020000) | |
1515 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1516 | #else | |
1517 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1518 | #endif | |
1519 | { | |
1520 | return NULL; | |
1521 | } | |
1522 | else | |
1523 | { | |
1524 | PySwigObject *sobj = (PySwigObject *)v; | |
1525 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1526 | if (val) { | |
1527 | #ifdef METH_NOARGS | |
1528 | if (PyObject_IsTrue(val)) { | |
1529 | PySwigObject_acquire(v); | |
1530 | } else { | |
1531 | PySwigObject_disown(v); | |
1532 | } | |
1533 | #else | |
1534 | if (PyObject_IsTrue(val)) { | |
1535 | PySwigObject_acquire(v,args); | |
1536 | } else { | |
1537 | PySwigObject_disown(v,args); | |
1538 | } | |
1539 | #endif | |
1540 | } | |
1541 | return obj; | |
1542 | } | |
1543 | } | |
1544 | ||
1545 | #ifdef METH_O | |
1546 | static PyMethodDef | |
1547 | swigobject_methods[] = { | |
1548 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1549 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1550 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1551 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1552 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1553 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1554 | {0, 0, 0, 0} | |
1555 | }; | |
1556 | #else | |
1557 | static PyMethodDef | |
1558 | swigobject_methods[] = { | |
1559 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1560 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1561 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1562 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1563 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1564 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1565 | {0, 0, 0, 0} | |
1566 | }; | |
1567 | #endif | |
1568 | ||
1569 | #if PY_VERSION_HEX < 0x02020000 | |
1570 | SWIGINTERN PyObject * | |
1571 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1572 | { | |
1573 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1574 | } | |
1575 | #endif | |
1576 | ||
1577 | SWIGRUNTIME PyTypeObject* | |
1578 | _PySwigObject_type(void) { | |
1579 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1580 | ||
1581 | static PyNumberMethods PySwigObject_as_number = { | |
1582 | (binaryfunc)0, /*nb_add*/ | |
1583 | (binaryfunc)0, /*nb_subtract*/ | |
1584 | (binaryfunc)0, /*nb_multiply*/ | |
1585 | (binaryfunc)0, /*nb_divide*/ | |
1586 | (binaryfunc)0, /*nb_remainder*/ | |
36ed4f51 RD |
1587 | (binaryfunc)0, /*nb_divmod*/ |
1588 | (ternaryfunc)0,/*nb_power*/ | |
1589 | (unaryfunc)0, /*nb_negative*/ | |
1590 | (unaryfunc)0, /*nb_positive*/ | |
1591 | (unaryfunc)0, /*nb_absolute*/ | |
1592 | (inquiry)0, /*nb_nonzero*/ | |
1593 | 0, /*nb_invert*/ | |
1594 | 0, /*nb_lshift*/ | |
1595 | 0, /*nb_rshift*/ | |
1596 | 0, /*nb_and*/ | |
1597 | 0, /*nb_xor*/ | |
1598 | 0, /*nb_or*/ | |
1599 | (coercion)0, /*nb_coerce*/ | |
1600 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1601 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1602 | (unaryfunc)0, /*nb_float*/ | |
1603 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1604 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 1605 | #if PY_VERSION_HEX >= 0x02020000 |
36ed4f51 | 1606 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
1607 | #elif PY_VERSION_HEX >= 0x02000000 |
1608 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
36ed4f51 RD |
1609 | #endif |
1610 | }; | |
1611 | ||
1bd55598 | 1612 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1613 | static int type_init = 0; |
36ed4f51 | 1614 | if (!type_init) { |
1bd55598 RD |
1615 | const PyTypeObject tmp |
1616 | = { | |
1617 | PyObject_HEAD_INIT(NULL) | |
1618 | 0, /* ob_size */ | |
1619 | (char *)"PySwigObject", /* tp_name */ | |
1620 | sizeof(PySwigObject), /* tp_basicsize */ | |
1621 | 0, /* tp_itemsize */ | |
1622 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1623 | (printfunc)PySwigObject_print, /* tp_print */ | |
1624 | #if PY_VERSION_HEX < 0x02020000 | |
1625 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1626 | #else | |
1627 | (getattrfunc)0, /* tp_getattr */ | |
36ed4f51 | 1628 | #endif |
1bd55598 RD |
1629 | (setattrfunc)0, /* tp_setattr */ |
1630 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1631 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1632 | &PySwigObject_as_number, /* tp_as_number */ | |
1633 | 0, /* tp_as_sequence */ | |
1634 | 0, /* tp_as_mapping */ | |
1635 | (hashfunc)0, /* tp_hash */ | |
1636 | (ternaryfunc)0, /* tp_call */ | |
1637 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1638 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1639 | 0, /* tp_setattro */ | |
1640 | 0, /* tp_as_buffer */ | |
1641 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1642 | swigobject_doc, /* tp_doc */ | |
1643 | 0, /* tp_traverse */ | |
1644 | 0, /* tp_clear */ | |
1645 | 0, /* tp_richcompare */ | |
1646 | 0, /* tp_weaklistoffset */ | |
36ed4f51 | 1647 | #if PY_VERSION_HEX >= 0x02020000 |
1bd55598 RD |
1648 | 0, /* tp_iter */ |
1649 | 0, /* tp_iternext */ | |
1650 | swigobject_methods, /* tp_methods */ | |
1651 | 0, /* tp_members */ | |
1652 | 0, /* tp_getset */ | |
1653 | 0, /* tp_base */ | |
1654 | 0, /* tp_dict */ | |
1655 | 0, /* tp_descr_get */ | |
1656 | 0, /* tp_descr_set */ | |
1657 | 0, /* tp_dictoffset */ | |
1658 | 0, /* tp_init */ | |
1659 | 0, /* tp_alloc */ | |
1660 | 0, /* tp_new */ | |
1661 | 0, /* tp_free */ | |
1662 | 0, /* tp_is_gc */ | |
1663 | 0, /* tp_bases */ | |
1664 | 0, /* tp_mro */ | |
1665 | 0, /* tp_cache */ | |
1666 | 0, /* tp_subclasses */ | |
1667 | 0, /* tp_weaklist */ | |
d55e5bfc | 1668 | #endif |
36ed4f51 | 1669 | #if PY_VERSION_HEX >= 0x02030000 |
1bd55598 | 1670 | 0, /* tp_del */ |
36ed4f51 RD |
1671 | #endif |
1672 | #ifdef COUNT_ALLOCS | |
1bd55598 | 1673 | 0,0,0,0 /* tp_alloc -> tp_next */ |
36ed4f51 | 1674 | #endif |
1bd55598 | 1675 | }; |
32fe5131 | 1676 | pyswigobject_type = tmp; |
1bd55598 | 1677 | pyswigobject_type.ob_type = &PyType_Type; |
36ed4f51 RD |
1678 | type_init = 1; |
1679 | } | |
32fe5131 | 1680 | return &pyswigobject_type; |
36ed4f51 RD |
1681 | } |
1682 | ||
1683 | SWIGRUNTIME PyObject * | |
1bd55598 | 1684 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
36ed4f51 | 1685 | { |
1bd55598 RD |
1686 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1687 | if (sobj) { | |
1688 | sobj->ptr = ptr; | |
1689 | sobj->ty = ty; | |
1690 | sobj->own = own; | |
1691 | sobj->next = 0; | |
32fe5131 | 1692 | } |
1bd55598 | 1693 | return (PyObject *)sobj; |
36ed4f51 RD |
1694 | } |
1695 | ||
1696 | /* ----------------------------------------------------------------------------- | |
1697 | * Implements a simple Swig Packed type, and use it instead of string | |
1698 | * ----------------------------------------------------------------------------- */ | |
1699 | ||
1700 | typedef struct { | |
1701 | PyObject_HEAD | |
1702 | void *pack; | |
1bd55598 | 1703 | swig_type_info *ty; |
36ed4f51 RD |
1704 | size_t size; |
1705 | } PySwigPacked; | |
1706 | ||
1707 | SWIGRUNTIME int | |
1bd55598 | 1708 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
36ed4f51 RD |
1709 | { |
1710 | char result[SWIG_BUFFER_SIZE]; | |
1711 | fputs("<Swig Packed ", fp); | |
1712 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1713 | fputs("at ", fp); | |
1714 | fputs(result, fp); | |
1715 | } | |
1bd55598 | 1716 | fputs(v->ty->name,fp); |
36ed4f51 RD |
1717 | fputs(">", fp); |
1718 | return 0; | |
1719 | } | |
1720 | ||
1721 | SWIGRUNTIME PyObject * | |
1722 | PySwigPacked_repr(PySwigPacked *v) | |
1723 | { | |
1724 | char result[SWIG_BUFFER_SIZE]; | |
1725 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1bd55598 | 1726 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
36ed4f51 | 1727 | } else { |
1bd55598 | 1728 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
36ed4f51 RD |
1729 | } |
1730 | } | |
1731 | ||
1732 | SWIGRUNTIME PyObject * | |
1733 | PySwigPacked_str(PySwigPacked *v) | |
1734 | { | |
1735 | char result[SWIG_BUFFER_SIZE]; | |
1736 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
1bd55598 | 1737 | return PyString_FromFormat("%s%s", result, v->ty->name); |
36ed4f51 | 1738 | } else { |
1bd55598 | 1739 | return PyString_FromString(v->ty->name); |
36ed4f51 RD |
1740 | } |
1741 | } | |
1742 | ||
1743 | SWIGRUNTIME int | |
1744 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
1745 | { | |
1bd55598 RD |
1746 | size_t i = v->size; |
1747 | size_t j = w->size; | |
1748 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1749 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
36ed4f51 RD |
1750 | } |
1751 | ||
1bd55598 | 1752 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
36ed4f51 RD |
1753 | |
1754 | SWIGRUNTIME PyTypeObject* | |
32fe5131 | 1755 | PySwigPacked_type(void) { |
1bd55598 RD |
1756 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1757 | return type; | |
1758 | } | |
1759 | ||
1760 | SWIGRUNTIMEINLINE int | |
1761 | PySwigPacked_Check(PyObject *op) { | |
1762 | return ((op)->ob_type == _PySwigPacked_type()) | |
1763 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1764 | } | |
1765 | ||
1766 | SWIGRUNTIME void | |
1767 | PySwigPacked_dealloc(PyObject *v) | |
1768 | { | |
1769 | if (PySwigPacked_Check(v)) { | |
1770 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1771 | free(sobj->pack); | |
1772 | } | |
1773 | PyObject_DEL(v); | |
1774 | } | |
1775 | ||
1776 | SWIGRUNTIME PyTypeObject* | |
1777 | _PySwigPacked_type(void) { | |
1778 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1779 | static PyTypeObject pyswigpacked_type; | |
1780 | static int type_init = 0; | |
1781 | if (!type_init) { | |
1782 | const PyTypeObject tmp | |
1783 | = { | |
1784 | PyObject_HEAD_INIT(NULL) | |
1785 | 0, /* ob_size */ | |
1786 | (char *)"PySwigPacked", /* tp_name */ | |
1787 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1788 | 0, /* tp_itemsize */ | |
1789 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1790 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1791 | (getattrfunc)0, /* tp_getattr */ | |
1792 | (setattrfunc)0, /* tp_setattr */ | |
1793 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1794 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1795 | 0, /* tp_as_number */ | |
1796 | 0, /* tp_as_sequence */ | |
1797 | 0, /* tp_as_mapping */ | |
1798 | (hashfunc)0, /* tp_hash */ | |
1799 | (ternaryfunc)0, /* tp_call */ | |
1800 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1801 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1802 | 0, /* tp_setattro */ | |
1803 | 0, /* tp_as_buffer */ | |
1804 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1805 | swigpacked_doc, /* tp_doc */ | |
1806 | 0, /* tp_traverse */ | |
1807 | 0, /* tp_clear */ | |
1808 | 0, /* tp_richcompare */ | |
1809 | 0, /* tp_weaklistoffset */ | |
1810 | #if PY_VERSION_HEX >= 0x02020000 | |
1811 | 0, /* tp_iter */ | |
1812 | 0, /* tp_iternext */ | |
1813 | 0, /* tp_methods */ | |
1814 | 0, /* tp_members */ | |
1815 | 0, /* tp_getset */ | |
1816 | 0, /* tp_base */ | |
1817 | 0, /* tp_dict */ | |
1818 | 0, /* tp_descr_get */ | |
1819 | 0, /* tp_descr_set */ | |
1820 | 0, /* tp_dictoffset */ | |
1821 | 0, /* tp_init */ | |
1822 | 0, /* tp_alloc */ | |
1823 | 0, /* tp_new */ | |
1824 | 0, /* tp_free */ | |
1825 | 0, /* tp_is_gc */ | |
1826 | 0, /* tp_bases */ | |
1827 | 0, /* tp_mro */ | |
1828 | 0, /* tp_cache */ | |
1829 | 0, /* tp_subclasses */ | |
1830 | 0, /* tp_weaklist */ | |
36ed4f51 RD |
1831 | #endif |
1832 | #if PY_VERSION_HEX >= 0x02030000 | |
1bd55598 | 1833 | 0, /* tp_del */ |
36ed4f51 RD |
1834 | #endif |
1835 | #ifdef COUNT_ALLOCS | |
1bd55598 | 1836 | 0,0,0,0 /* tp_alloc -> tp_next */ |
36ed4f51 | 1837 | #endif |
1bd55598 | 1838 | }; |
32fe5131 | 1839 | pyswigpacked_type = tmp; |
1bd55598 | 1840 | pyswigpacked_type.ob_type = &PyType_Type; |
36ed4f51 RD |
1841 | type_init = 1; |
1842 | } | |
32fe5131 | 1843 | return &pyswigpacked_type; |
36ed4f51 RD |
1844 | } |
1845 | ||
1846 | SWIGRUNTIME PyObject * | |
1bd55598 | 1847 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
36ed4f51 | 1848 | { |
1bd55598 RD |
1849 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1850 | if (sobj) { | |
36ed4f51 | 1851 | void *pack = malloc(size); |
32fe5131 RD |
1852 | if (pack) { |
1853 | memcpy(pack, ptr, size); | |
1bd55598 RD |
1854 | sobj->pack = pack; |
1855 | sobj->ty = ty; | |
1856 | sobj->size = size; | |
1857 | } else { | |
1858 | PyObject_DEL((PyObject *) sobj); | |
1859 | sobj = 0; | |
32fe5131 | 1860 | } |
36ed4f51 | 1861 | } |
1bd55598 | 1862 | return (PyObject *) sobj; |
36ed4f51 RD |
1863 | } |
1864 | ||
1bd55598 | 1865 | SWIGRUNTIME swig_type_info * |
36ed4f51 RD |
1866 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1867 | { | |
1bd55598 RD |
1868 | if (PySwigPacked_Check(obj)) { |
1869 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1870 | if (sobj->size != size) return 0; | |
1871 | memcpy(ptr, sobj->pack, size); | |
1872 | return sobj->ty; | |
1873 | } else { | |
1874 | return 0; | |
1875 | } | |
36ed4f51 RD |
1876 | } |
1877 | ||
36ed4f51 | 1878 | /* ----------------------------------------------------------------------------- |
1bd55598 | 1879 | * pointers/data manipulation |
36ed4f51 RD |
1880 | * ----------------------------------------------------------------------------- */ |
1881 | ||
1bd55598 RD |
1882 | SWIGRUNTIMEINLINE PyObject * |
1883 | _SWIG_This(void) | |
1884 | { | |
1885 | return PyString_FromString("this"); | |
1886 | } | |
36ed4f51 | 1887 | |
1bd55598 RD |
1888 | SWIGRUNTIME PyObject * |
1889 | SWIG_This(void) | |
1890 | { | |
1891 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1892 | return swig_this; | |
1893 | } | |
36ed4f51 | 1894 | |
1bd55598 | 1895 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
36ed4f51 | 1896 | |
1bd55598 RD |
1897 | SWIGRUNTIME PySwigObject * |
1898 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
36ed4f51 | 1899 | { |
1bd55598 RD |
1900 | if (PySwigObject_Check(pyobj)) { |
1901 | return (PySwigObject *) pyobj; | |
1902 | } else { | |
1903 | PyObject *obj = 0; | |
1904 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1905 | if (PyInstance_Check(pyobj)) { | |
1906 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1907 | } else { | |
1908 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1909 | if (dictptr != NULL) { | |
1910 | PyObject *dict = *dictptr; | |
1911 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1912 | } else { | |
1913 | #ifdef PyWeakref_CheckProxy | |
1914 | if (PyWeakref_CheckProxy(pyobj)) { | |
1915 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1916 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1917 | } | |
1918 | #endif | |
1919 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1920 | if (obj) { | |
1921 | Py_DECREF(obj); | |
36ed4f51 | 1922 | } else { |
1bd55598 RD |
1923 | if (PyErr_Occurred()) PyErr_Clear(); |
1924 | return 0; | |
36ed4f51 | 1925 | } |
36ed4f51 | 1926 | } |
1bd55598 RD |
1927 | } |
1928 | #else | |
1929 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1930 | if (obj) { | |
1931 | Py_DECREF(obj); | |
1932 | } else { | |
1933 | if (PyErr_Occurred()) PyErr_Clear(); | |
1934 | return 0; | |
1935 | } | |
1936 | #endif | |
1937 | if (obj && !PySwigObject_Check(obj)) { | |
1938 | /* a PyObject is called 'this', try to get the 'real this' | |
1939 | PySwigObject from it */ | |
1940 | return SWIG_Python_GetSwigThis(obj); | |
1941 | } | |
1942 | return (PySwigObject *)obj; | |
36ed4f51 RD |
1943 | } |
1944 | } | |
1945 | ||
1bd55598 RD |
1946 | /* Acquire a pointer value */ |
1947 | ||
1948 | SWIGRUNTIME int | |
1949 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1950 | if (own) { | |
1951 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1952 | if (sobj) { | |
1953 | int oldown = sobj->own; | |
1954 | sobj->own = own; | |
1955 | return oldown; | |
1956 | } | |
36ed4f51 | 1957 | } |
1bd55598 | 1958 | return 0; |
36ed4f51 RD |
1959 | } |
1960 | ||
1bd55598 RD |
1961 | /* Convert a pointer value */ |
1962 | ||
36ed4f51 | 1963 | SWIGRUNTIME int |
1bd55598 RD |
1964 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1965 | if (!obj) return SWIG_ERROR; | |
1966 | if (obj == Py_None) { | |
1967 | if (ptr) *ptr = 0; | |
1968 | return SWIG_OK; | |
1969 | } else { | |
1970 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1971 | while (sobj) { | |
1972 | void *vptr = sobj->ptr; | |
1973 | if (ty) { | |
1974 | swig_type_info *to = sobj->ty; | |
1975 | if (to == ty) { | |
1976 | /* no type cast needed */ | |
1977 | if (ptr) *ptr = vptr; | |
1978 | break; | |
1979 | } else { | |
1980 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1981 | if (!tc) { | |
1982 | sobj = (PySwigObject *)sobj->next; | |
1983 | } else { | |
1984 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1985 | break; | |
1986 | } | |
1987 | } | |
36ed4f51 | 1988 | } else { |
1bd55598 RD |
1989 | if (ptr) *ptr = vptr; |
1990 | break; | |
36ed4f51 | 1991 | } |
36ed4f51 | 1992 | } |
1bd55598 RD |
1993 | if (sobj) { |
1994 | if (own) *own = sobj->own; | |
1995 | if (flags & SWIG_POINTER_DISOWN) { | |
1996 | sobj->own = 0; | |
1997 | } | |
1998 | return SWIG_OK; | |
1999 | } else { | |
2000 | int res = SWIG_ERROR; | |
2001 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2002 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2003 | if (data && !data->implicitconv) { | |
2004 | PyObject *klass = data->klass; | |
2005 | if (klass) { | |
2006 | PyObject *impconv; | |
2007 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2008 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2009 | data->implicitconv = 0; | |
2010 | if (PyErr_Occurred()) { | |
2011 | PyErr_Clear(); | |
2012 | impconv = 0; | |
2013 | } | |
2014 | if (impconv) { | |
2015 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2016 | if (iobj) { | |
2017 | void *vptr; | |
2018 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2019 | if (SWIG_IsOK(res)) { | |
2020 | if (ptr) { | |
2021 | *ptr = vptr; | |
2022 | /* transfer the ownership to 'ptr' */ | |
2023 | iobj->own = 0; | |
2024 | res = SWIG_AddCast(res); | |
2025 | res = SWIG_AddNewMask(res); | |
2026 | } else { | |
2027 | res = SWIG_AddCast(res); | |
2028 | } | |
2029 | } | |
2030 | } | |
2031 | Py_DECREF(impconv); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | } | |
2036 | return res; | |
2037 | } | |
36ed4f51 RD |
2038 | } |
2039 | } | |
2040 | ||
1bd55598 RD |
2041 | /* Convert a function ptr value */ |
2042 | ||
36ed4f51 | 2043 | SWIGRUNTIME int |
1bd55598 RD |
2044 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2045 | if (!PyCFunction_Check(obj)) { | |
2046 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
36ed4f51 | 2047 | } else { |
1bd55598 RD |
2048 | void *vptr = 0; |
2049 | ||
2050 | /* here we get the method pointer for callbacks */ | |
2051 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
2052 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; | |
2053 | if (desc) { | |
2054 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2055 | if (!desc) return SWIG_ERROR; | |
2056 | } | |
2057 | if (ty) { | |
2058 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2059 | if (!tc) return SWIG_ERROR; | |
2060 | *ptr = SWIG_TypeCast(tc,vptr); | |
2061 | } else { | |
2062 | *ptr = vptr; | |
2063 | } | |
2064 | return SWIG_OK; | |
36ed4f51 RD |
2065 | } |
2066 | } | |
2067 | ||
1bd55598 | 2068 | /* Convert a packed value value */ |
36ed4f51 | 2069 | |
36ed4f51 | 2070 | SWIGRUNTIME int |
1bd55598 RD |
2071 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2072 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2073 | if (!to) return SWIG_ERROR; | |
2074 | if (ty) { | |
2075 | if (to != ty) { | |
2076 | /* check type cast? */ | |
2077 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2078 | if (!tc) return SWIG_ERROR; | |
2079 | } | |
36ed4f51 | 2080 | } |
1bd55598 RD |
2081 | return SWIG_OK; |
2082 | } | |
36ed4f51 | 2083 | |
1bd55598 RD |
2084 | /* ----------------------------------------------------------------------------- |
2085 | * Create a new pointer object | |
2086 | * ----------------------------------------------------------------------------- */ | |
36ed4f51 | 2087 | |
1bd55598 RD |
2088 | /* |
2089 | Create a new instance object, whitout calling __init__, and set the | |
2090 | 'this' attribute. | |
2091 | */ | |
36ed4f51 | 2092 | |
1bd55598 RD |
2093 | SWIGRUNTIME PyObject* |
2094 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2095 | { | |
2096 | #if (PY_VERSION_HEX >= 0x02020000) | |
2097 | PyObject *inst = 0; | |
2098 | PyObject *newraw = data->newraw; | |
2099 | if (newraw) { | |
2100 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2101 | if (inst) { | |
2102 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2103 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2104 | if (dictptr != NULL) { | |
2105 | PyObject *dict = *dictptr; | |
2106 | if (dict == NULL) { | |
2107 | dict = PyDict_New(); | |
2108 | *dictptr = dict; | |
2109 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2110 | } | |
36ed4f51 | 2111 | } |
1bd55598 RD |
2112 | #else |
2113 | PyObject *key = SWIG_This(); | |
2114 | PyObject_SetAttr(inst, key, swig_this); | |
2115 | #endif | |
36ed4f51 | 2116 | } |
1bd55598 RD |
2117 | } else { |
2118 | PyObject *dict = PyDict_New(); | |
2119 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2120 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2121 | Py_DECREF(dict); | |
36ed4f51 | 2122 | } |
1bd55598 RD |
2123 | return inst; |
2124 | #else | |
2125 | #if (PY_VERSION_HEX >= 0x02010000) | |
2126 | PyObject *inst; | |
2127 | PyObject *dict = PyDict_New(); | |
2128 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2129 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2130 | Py_DECREF(dict); | |
2131 | return (PyObject *) inst; | |
2132 | #else | |
2133 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2134 | if (inst == NULL) { | |
2135 | return NULL; | |
36ed4f51 | 2136 | } |
1bd55598 RD |
2137 | inst->in_class = (PyClassObject *)data->newargs; |
2138 | Py_INCREF(inst->in_class); | |
2139 | inst->in_dict = PyDict_New(); | |
2140 | if (inst->in_dict == NULL) { | |
2141 | Py_DECREF(inst); | |
2142 | return NULL; | |
36ed4f51 | 2143 | } |
1bd55598 RD |
2144 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2145 | inst->in_weakreflist = NULL; | |
2146 | #endif | |
2147 | #ifdef Py_TPFLAGS_GC | |
2148 | PyObject_GC_Init(inst); | |
2149 | #endif | |
2150 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2151 | return (PyObject *) inst; | |
2152 | #endif | |
2153 | #endif | |
36ed4f51 RD |
2154 | } |
2155 | ||
1bd55598 RD |
2156 | SWIGRUNTIME void |
2157 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2158 | { | |
2159 | PyObject *dict; | |
2160 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2161 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2162 | if (dictptr != NULL) { | |
2163 | dict = *dictptr; | |
2164 | if (dict == NULL) { | |
2165 | dict = PyDict_New(); | |
2166 | *dictptr = dict; | |
2167 | } | |
2168 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2169 | return; | |
2170 | } | |
36ed4f51 | 2171 | #endif |
1bd55598 RD |
2172 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2173 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2174 | Py_DECREF(dict); | |
2175 | } | |
36ed4f51 | 2176 | |
1bd55598 RD |
2177 | |
2178 | SWIGINTERN PyObject * | |
2179 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2180 | PyObject *obj[2]; | |
2181 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2182 | return NULL; | |
2183 | } else { | |
2184 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2185 | if (sthis) { | |
2186 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
36ed4f51 | 2187 | } else { |
1bd55598 | 2188 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
36ed4f51 | 2189 | } |
1bd55598 | 2190 | return SWIG_Py_Void(); |
36ed4f51 | 2191 | } |
1bd55598 RD |
2192 | } |
2193 | ||
2194 | /* Create a new pointer object */ | |
36ed4f51 | 2195 | |
36ed4f51 | 2196 | SWIGRUNTIME PyObject * |
1bd55598 | 2197 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
36ed4f51 | 2198 | if (!ptr) { |
1bd55598 RD |
2199 | return SWIG_Py_Void(); |
2200 | } else { | |
2201 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2202 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2203 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2204 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2205 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2206 | if (inst) { | |
2207 | Py_DECREF(robj); | |
2208 | robj = inst; | |
36ed4f51 | 2209 | } |
36ed4f51 | 2210 | } |
1bd55598 | 2211 | return robj; |
36ed4f51 | 2212 | } |
36ed4f51 RD |
2213 | } |
2214 | ||
1bd55598 RD |
2215 | /* Create a new packed object */ |
2216 | ||
2217 | SWIGRUNTIMEINLINE PyObject * | |
36ed4f51 | 2218 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
1bd55598 | 2219 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
36ed4f51 RD |
2220 | } |
2221 | ||
2222 | /* -----------------------------------------------------------------------------* | |
2223 | * Get type list | |
2224 | * -----------------------------------------------------------------------------*/ | |
2225 | ||
2226 | #ifdef SWIG_LINK_RUNTIME | |
2227 | void *SWIG_ReturnGlobalTypeList(void *); | |
2228 | #endif | |
2229 | ||
32fe5131 RD |
2230 | SWIGRUNTIME swig_module_info * |
2231 | SWIG_Python_GetModule(void) { | |
36ed4f51 RD |
2232 | static void *type_pointer = (void *)0; |
2233 | /* first check if module already created */ | |
2234 | if (!type_pointer) { | |
2235 | #ifdef SWIG_LINK_RUNTIME | |
2236 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
2237 | #else | |
2238 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2239 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2240 | if (PyErr_Occurred()) { | |
2241 | PyErr_Clear(); | |
2242 | type_pointer = (void *)0; | |
2243 | } | |
36ed4f51 | 2244 | #endif |
32fe5131 RD |
2245 | } |
2246 | return (swig_module_info *) type_pointer; | |
36ed4f51 RD |
2247 | } |
2248 | ||
32fe5131 RD |
2249 | #if PY_MAJOR_VERSION < 2 |
2250 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
1bd55598 | 2251 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 RD |
2252 | SWIGINTERN int |
2253 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2254 | { | |
2255 | PyObject *dict; | |
2256 | if (!PyModule_Check(m)) { | |
2257 | PyErr_SetString(PyExc_TypeError, | |
2258 | "PyModule_AddObject() needs module as first arg"); | |
1bd55598 | 2259 | return SWIG_ERROR; |
32fe5131 RD |
2260 | } |
2261 | if (!o) { | |
2262 | PyErr_SetString(PyExc_TypeError, | |
2263 | "PyModule_AddObject() needs non-NULL value"); | |
1bd55598 | 2264 | return SWIG_ERROR; |
32fe5131 RD |
2265 | } |
2266 | ||
2267 | dict = PyModule_GetDict(m); | |
2268 | if (dict == NULL) { | |
2269 | /* Internal error -- modules must have a dict! */ | |
2270 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2271 | PyModule_GetName(m)); | |
1bd55598 | 2272 | return SWIG_ERROR; |
32fe5131 RD |
2273 | } |
2274 | if (PyDict_SetItemString(dict, name, o)) | |
1bd55598 | 2275 | return SWIG_ERROR; |
32fe5131 | 2276 | Py_DECREF(o); |
1bd55598 | 2277 | return SWIG_OK; |
36ed4f51 | 2278 | } |
32fe5131 | 2279 | #endif |
36ed4f51 | 2280 | |
1bd55598 RD |
2281 | SWIGRUNTIME void |
2282 | SWIG_Python_DestroyModule(void *vptr) | |
2283 | { | |
2284 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2285 | swig_type_info **types = swig_module->types; | |
2286 | size_t i; | |
2287 | for (i =0; i < swig_module->size; ++i) { | |
2288 | swig_type_info *ty = types[i]; | |
2289 | if (ty->owndata) { | |
2290 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2291 | if (data) PySwigClientData_Del(data); | |
2292 | } | |
2293 | } | |
2294 | Py_DECREF(SWIG_This()); | |
2295 | } | |
2296 | ||
32fe5131 RD |
2297 | SWIGRUNTIME void |
2298 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2299 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2300 | ||
2301 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2302 | swig_empty_runtime_method_table); | |
1bd55598 | 2303 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2304 | if (pointer && module) { |
2305 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
1bd55598 RD |
2306 | } else { |
2307 | Py_XDECREF(pointer); | |
32fe5131 RD |
2308 | } |
2309 | } | |
36ed4f51 | 2310 | |
1bd55598 RD |
2311 | /* The python cached type query */ |
2312 | SWIGRUNTIME PyObject * | |
2313 | SWIG_Python_TypeCache() { | |
2314 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2315 | return cache; | |
36ed4f51 | 2316 | } |
36ed4f51 | 2317 | |
1bd55598 RD |
2318 | SWIGRUNTIME swig_type_info * |
2319 | SWIG_Python_TypeQuery(const char *type) | |
2320 | { | |
2321 | PyObject *cache = SWIG_Python_TypeCache(); | |
2322 | PyObject *key = PyString_FromString(type); | |
2323 | PyObject *obj = PyDict_GetItem(cache, key); | |
2324 | swig_type_info *descriptor; | |
2325 | if (obj) { | |
2326 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2327 | } else { | |
2328 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2329 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2330 | if (descriptor) { | |
2331 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2332 | PyDict_SetItem(cache, key, obj); | |
2333 | Py_DECREF(obj); | |
2334 | } | |
2335 | } | |
2336 | Py_DECREF(key); | |
2337 | return descriptor; | |
2338 | } | |
2339 | ||
2340 | /* | |
2341 | For backward compatibility only | |
2342 | */ | |
2343 | #define SWIG_POINTER_EXCEPTION 0 | |
2344 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2345 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2346 | ||
2347 | SWIGRUNTIME int | |
2348 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2349 | { | |
2350 | if (PyErr_Occurred()) { | |
2351 | PyObject *type = 0; | |
2352 | PyObject *value = 0; | |
2353 | PyObject *traceback = 0; | |
2354 | PyErr_Fetch(&type, &value, &traceback); | |
2355 | if (value) { | |
2356 | PyObject *old_str = PyObject_Str(value); | |
2357 | Py_XINCREF(type); | |
2358 | PyErr_Clear(); | |
2359 | if (infront) { | |
2360 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2361 | } else { | |
2362 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2363 | } | |
2364 | Py_DECREF(old_str); | |
2365 | } | |
2366 | return 1; | |
2367 | } else { | |
2368 | return 0; | |
2369 | } | |
2370 | } | |
2371 | ||
2372 | SWIGRUNTIME int | |
2373 | SWIG_Python_ArgFail(int argnum) | |
2374 | { | |
2375 | if (PyErr_Occurred()) { | |
2376 | /* add information about failing argument */ | |
2377 | char mesg[256]; | |
2378 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2379 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2380 | } else { | |
2381 | return 0; | |
2382 | } | |
2383 | } | |
2384 | ||
2385 | SWIGRUNTIMEINLINE const char * | |
2386 | PySwigObject_GetDesc(PyObject *self) | |
2387 | { | |
2388 | PySwigObject *v = (PySwigObject *)self; | |
2389 | swig_type_info *ty = v ? v->ty : 0; | |
2390 | return ty ? ty->str : (char*)""; | |
2391 | } | |
2392 | ||
2393 | SWIGRUNTIME void | |
2394 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2395 | { | |
2396 | if (type) { | |
2397 | #if defined(SWIG_COBJECT_TYPES) | |
2398 | if (obj && PySwigObject_Check(obj)) { | |
2399 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2400 | if (otype) { | |
2401 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2402 | type, otype); | |
2403 | return; | |
2404 | } | |
2405 | } else | |
2406 | #endif | |
2407 | { | |
2408 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2409 | if (otype) { | |
2410 | PyObject *str = PyObject_Str(obj); | |
2411 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2412 | if (cstr) { | |
2413 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2414 | type, otype, cstr); | |
2415 | } else { | |
2416 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2417 | type, otype); | |
2418 | } | |
2419 | Py_XDECREF(str); | |
2420 | return; | |
2421 | } | |
2422 | } | |
2423 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2424 | } else { | |
2425 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2426 | } | |
2427 | } | |
2428 | ||
2429 | ||
2430 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2431 | SWIGRUNTIME void * | |
2432 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2433 | void *result; | |
2434 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2435 | PyErr_Clear(); | |
2436 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2437 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2438 | SWIG_Python_ArgFail(argnum); | |
2439 | } | |
2440 | } | |
2441 | return result; | |
2442 | } | |
2443 | ||
2444 | ||
2445 | #ifdef __cplusplus | |
2446 | #if 0 | |
2447 | { /* cc-mode */ | |
2448 | #endif | |
2449 | } | |
2450 | #endif | |
2451 | ||
2452 | ||
2453 | ||
2454 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2455 | ||
2456 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2457 | ||
2458 | ||
2459 | ||
2460 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2461 | ||
2462 | #define SWIGTYPE_p_bool swig_types[0] | |
2463 | #define SWIGTYPE_p_char swig_types[1] | |
32fe5131 RD |
2464 | #define SWIGTYPE_p_form_ops_t swig_types[2] |
2465 | #define SWIGTYPE_p_int swig_types[3] | |
2466 | #define SWIGTYPE_p_long swig_types[4] | |
2467 | #define SWIGTYPE_p_unsigned_char swig_types[5] | |
2468 | #define SWIGTYPE_p_unsigned_int swig_types[6] | |
2469 | #define SWIGTYPE_p_unsigned_long swig_types[7] | |
2470 | #define SWIGTYPE_p_void swig_types[8] | |
2471 | #define SWIGTYPE_p_wxANIHandler swig_types[9] | |
2472 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[10] | |
2473 | #define SWIGTYPE_p_wxActivateEvent swig_types[11] | |
2474 | #define SWIGTYPE_p_wxArrayInt swig_types[12] | |
2475 | #define SWIGTYPE_p_wxArrayString swig_types[13] | |
2476 | #define SWIGTYPE_p_wxBMPHandler swig_types[14] | |
2477 | #define SWIGTYPE_p_wxBitmap swig_types[15] | |
2478 | #define SWIGTYPE_p_wxBitmapButton swig_types[16] | |
2479 | #define SWIGTYPE_p_wxBookCtrlBase swig_types[17] | |
2480 | #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18] | |
2481 | #define SWIGTYPE_p_wxBoxSizer swig_types[19] | |
2482 | #define SWIGTYPE_p_wxButton swig_types[20] | |
2483 | #define SWIGTYPE_p_wxCURHandler swig_types[21] | |
2484 | #define SWIGTYPE_p_wxCheckBox swig_types[22] | |
2485 | #define SWIGTYPE_p_wxCheckListBox swig_types[23] | |
2486 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[24] | |
2487 | #define SWIGTYPE_p_wxChoice swig_types[25] | |
2488 | #define SWIGTYPE_p_wxChoicebook swig_types[26] | |
2489 | #define SWIGTYPE_p_wxChoicebookEvent swig_types[27] | |
2490 | #define SWIGTYPE_p_wxCloseEvent swig_types[28] | |
2491 | #define SWIGTYPE_p_wxColour swig_types[29] | |
2492 | #define SWIGTYPE_p_wxComboBox swig_types[30] | |
2493 | #define SWIGTYPE_p_wxCommandEvent swig_types[31] | |
2494 | #define SWIGTYPE_p_wxContextHelp swig_types[32] | |
2495 | #define SWIGTYPE_p_wxContextHelpButton swig_types[33] | |
2496 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[34] | |
2497 | #define SWIGTYPE_p_wxControl swig_types[35] | |
2498 | #define SWIGTYPE_p_wxControlWithItems swig_types[36] | |
2499 | #define SWIGTYPE_p_wxCursor swig_types[37] | |
2500 | #define SWIGTYPE_p_wxDC swig_types[38] | |
2501 | #define SWIGTYPE_p_wxDateEvent swig_types[39] | |
2502 | #define SWIGTYPE_p_wxDatePickerCtrl swig_types[40] | |
2503 | #define SWIGTYPE_p_wxDateTime swig_types[41] | |
2504 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[42] | |
2505 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[43] | |
2506 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[44] | |
2507 | #define SWIGTYPE_p_wxDuplexMode swig_types[45] | |
2508 | #define SWIGTYPE_p_wxEraseEvent swig_types[46] | |
2509 | #define SWIGTYPE_p_wxEvent swig_types[47] | |
2510 | #define SWIGTYPE_p_wxEvtHandler swig_types[48] | |
2511 | #define SWIGTYPE_p_wxFSFile swig_types[49] | |
2512 | #define SWIGTYPE_p_wxFileSystem swig_types[50] | |
2513 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[51] | |
2514 | #define SWIGTYPE_p_wxFocusEvent swig_types[52] | |
2515 | #define SWIGTYPE_p_wxFont swig_types[53] | |
2516 | #define SWIGTYPE_p_wxGBSizerItem swig_types[54] | |
2517 | #define SWIGTYPE_p_wxGIFHandler swig_types[55] | |
2518 | #define SWIGTYPE_p_wxGauge swig_types[56] | |
2519 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[57] | |
2520 | #define SWIGTYPE_p_wxGenericDragImage swig_types[58] | |
2521 | #define SWIGTYPE_p_wxGridBagSizer swig_types[59] | |
2522 | #define SWIGTYPE_p_wxGridSizer swig_types[60] | |
2523 | #define SWIGTYPE_p_wxHelpEvent swig_types[61] | |
2524 | #define SWIGTYPE_p_wxHelpProvider swig_types[62] | |
2525 | #define SWIGTYPE_p_wxICOHandler swig_types[63] | |
2526 | #define SWIGTYPE_p_wxIcon swig_types[64] | |
2527 | #define SWIGTYPE_p_wxIconizeEvent swig_types[65] | |
2528 | #define SWIGTYPE_p_wxIdleEvent swig_types[66] | |
2529 | #define SWIGTYPE_p_wxImage swig_types[67] | |
2530 | #define SWIGTYPE_p_wxImageHandler swig_types[68] | |
2531 | #define SWIGTYPE_p_wxImageList swig_types[69] | |
2532 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[70] | |
2533 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[71] | |
2534 | #define SWIGTYPE_p_wxItemContainer swig_types[72] | |
2535 | #define SWIGTYPE_p_wxJPEGHandler swig_types[73] | |
2536 | #define SWIGTYPE_p_wxKeyEvent swig_types[74] | |
2537 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[75] | |
2538 | #define SWIGTYPE_p_wxListBox swig_types[76] | |
2539 | #define SWIGTYPE_p_wxListEvent swig_types[77] | |
2540 | #define SWIGTYPE_p_wxListItem swig_types[78] | |
2541 | #define SWIGTYPE_p_wxListItemAttr swig_types[79] | |
2542 | #define SWIGTYPE_p_wxListView swig_types[80] | |
2543 | #define SWIGTYPE_p_wxListbook swig_types[81] | |
2544 | #define SWIGTYPE_p_wxListbookEvent swig_types[82] | |
2545 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[83] | |
2546 | #define SWIGTYPE_p_wxMemoryDC swig_types[84] | |
2547 | #define SWIGTYPE_p_wxMenu swig_types[85] | |
2548 | #define SWIGTYPE_p_wxMenuBar swig_types[86] | |
2549 | #define SWIGTYPE_p_wxMenuEvent swig_types[87] | |
2550 | #define SWIGTYPE_p_wxMenuItem swig_types[88] | |
2551 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89] | |
2552 | #define SWIGTYPE_p_wxMouseEvent swig_types[90] | |
2553 | #define SWIGTYPE_p_wxMoveEvent swig_types[91] | |
2554 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92] | |
2555 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[93] | |
2556 | #define SWIGTYPE_p_wxNotebook swig_types[94] | |
2557 | #define SWIGTYPE_p_wxNotebookEvent swig_types[95] | |
2558 | #define SWIGTYPE_p_wxNotifyEvent swig_types[96] | |
2559 | #define SWIGTYPE_p_wxObject swig_types[97] | |
2560 | #define SWIGTYPE_p_wxPCXHandler swig_types[98] | |
2561 | #define SWIGTYPE_p_wxPNGHandler swig_types[99] | |
2562 | #define SWIGTYPE_p_wxPNMHandler swig_types[100] | |
2563 | #define SWIGTYPE_p_wxPaintEvent swig_types[101] | |
2564 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[102] | |
2565 | #define SWIGTYPE_p_wxPaperSize swig_types[103] | |
2566 | #define SWIGTYPE_p_wxPoint swig_types[104] | |
2567 | #define SWIGTYPE_p_wxPyApp swig_types[105] | |
2568 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[106] | |
2569 | #define SWIGTYPE_p_wxPyControl swig_types[107] | |
2570 | #define SWIGTYPE_p_wxPyEvent swig_types[108] | |
2571 | #define SWIGTYPE_p_wxPyImageHandler swig_types[109] | |
2572 | #define SWIGTYPE_p_wxPyListCtrl swig_types[110] | |
2573 | #define SWIGTYPE_p_wxPySizer swig_types[111] | |
2574 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[112] | |
2575 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[113] | |
2576 | #define SWIGTYPE_p_wxPyValidator swig_types[114] | |
2577 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[115] | |
2578 | #define SWIGTYPE_p_wxRadioBox swig_types[116] | |
2579 | #define SWIGTYPE_p_wxRadioButton swig_types[117] | |
2580 | #define SWIGTYPE_p_wxRect swig_types[118] | |
2581 | #define SWIGTYPE_p_wxScrollBar swig_types[119] | |
2582 | #define SWIGTYPE_p_wxScrollEvent swig_types[120] | |
2583 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[121] | |
2584 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[122] | |
2585 | #define SWIGTYPE_p_wxShowEvent swig_types[123] | |
2586 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[124] | |
2587 | #define SWIGTYPE_p_wxSize swig_types[125] | |
2588 | #define SWIGTYPE_p_wxSizeEvent swig_types[126] | |
2589 | #define SWIGTYPE_p_wxSizer swig_types[127] | |
2590 | #define SWIGTYPE_p_wxSizerItem swig_types[128] | |
2591 | #define SWIGTYPE_p_wxSlider swig_types[129] | |
2592 | #define SWIGTYPE_p_wxSpinButton swig_types[130] | |
2593 | #define SWIGTYPE_p_wxSpinCtrl swig_types[131] | |
2594 | #define SWIGTYPE_p_wxSpinEvent swig_types[132] | |
2595 | #define SWIGTYPE_p_wxStaticBitmap swig_types[133] | |
2596 | #define SWIGTYPE_p_wxStaticBox swig_types[134] | |
2597 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[135] | |
2598 | #define SWIGTYPE_p_wxStaticLine swig_types[136] | |
2599 | #define SWIGTYPE_p_wxStaticText swig_types[137] | |
2600 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[138] | |
2601 | #define SWIGTYPE_p_wxString swig_types[139] | |
2602 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[140] | |
2603 | #define SWIGTYPE_p_wxTIFFHandler swig_types[141] | |
2604 | #define SWIGTYPE_p_wxTextAttr swig_types[142] | |
2605 | #define SWIGTYPE_p_wxTextCtrl swig_types[143] | |
2606 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[144] | |
2607 | #define SWIGTYPE_p_wxToggleButton swig_types[145] | |
2608 | #define SWIGTYPE_p_wxToolBar swig_types[146] | |
2609 | #define SWIGTYPE_p_wxToolBarBase swig_types[147] | |
2610 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[148] | |
7e08d4ef RD |
2611 | #define SWIGTYPE_p_wxToolbook swig_types[149] |
2612 | #define SWIGTYPE_p_wxToolbookEvent swig_types[150] | |
2613 | #define SWIGTYPE_p_wxTreeCtrl swig_types[151] | |
2614 | #define SWIGTYPE_p_wxTreeEvent swig_types[152] | |
2615 | #define SWIGTYPE_p_wxTreeItemId swig_types[153] | |
2616 | #define SWIGTYPE_p_wxTreebook swig_types[154] | |
2617 | #define SWIGTYPE_p_wxTreebookEvent swig_types[155] | |
2618 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[156] | |
2619 | #define SWIGTYPE_p_wxValidator swig_types[157] | |
2620 | #define SWIGTYPE_p_wxVisualAttributes swig_types[158] | |
2621 | #define SWIGTYPE_p_wxWindow swig_types[159] | |
2622 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[160] | |
2623 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[161] | |
2624 | #define SWIGTYPE_p_wxXPMHandler swig_types[162] | |
1bd55598 RD |
2625 | static swig_type_info *swig_types[164]; |
2626 | static swig_module_info swig_module = {swig_types, 163, 0, 0, 0, 0}; | |
32fe5131 RD |
2627 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2628 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
36ed4f51 RD |
2629 | |
2630 | /* -------- TYPES TABLE (END) -------- */ | |
2631 | ||
1bd55598 RD |
2632 | #if (PY_VERSION_HEX <= 0x02000000) |
2633 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2634 | # error "This python version requires to use swig with the '-classic' option" | |
2635 | # endif | |
2636 | #endif | |
2637 | #if (PY_VERSION_HEX <= 0x02020000) | |
2638 | # error "This python version requires to use swig with the '-nomodern' option" | |
2639 | #endif | |
2640 | #if (PY_VERSION_HEX <= 0x02020000) | |
2641 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2642 | #endif | |
2643 | #ifndef METH_O | |
2644 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2645 | #endif | |
36ed4f51 RD |
2646 | |
2647 | /*----------------------------------------------- | |
2648 | @(target):= _controls_.so | |
2649 | ------------------------------------------------*/ | |
2650 | #define SWIG_init init_controls_ | |
2651 | ||
2652 | #define SWIG_name "_controls_" | |
2653 | ||
1bd55598 RD |
2654 | #define SWIGVERSION 0x010329 |
2655 | ||
2656 | ||
2657 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) | |
2658 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
2659 | ||
2660 | ||
2661 | #include <stdexcept> | |
2662 | ||
2663 | ||
2664 | namespace swig { | |
2665 | class PyObject_ptr { | |
2666 | protected: | |
2667 | PyObject *_obj; | |
2668 | ||
2669 | public: | |
2670 | PyObject_ptr() :_obj(0) | |
2671 | { | |
2672 | } | |
2673 | ||
2674 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2675 | { | |
2676 | Py_XINCREF(_obj); | |
2677 | } | |
2678 | ||
2679 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2680 | { | |
2681 | if (initial_ref) Py_XINCREF(_obj); | |
2682 | } | |
2683 | ||
2684 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2685 | { | |
2686 | Py_XINCREF(item._obj); | |
2687 | Py_XDECREF(_obj); | |
2688 | _obj = item._obj; | |
2689 | return *this; | |
2690 | } | |
2691 | ||
2692 | ~PyObject_ptr() | |
2693 | { | |
2694 | Py_XDECREF(_obj); | |
2695 | } | |
2696 | ||
2697 | operator PyObject *() const | |
2698 | { | |
2699 | return _obj; | |
2700 | } | |
2701 | ||
2702 | PyObject *operator->() const | |
2703 | { | |
2704 | return _obj; | |
2705 | } | |
2706 | }; | |
2707 | } | |
2708 | ||
2709 | ||
2710 | namespace swig { | |
2711 | struct PyObject_var : PyObject_ptr { | |
2712 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2713 | ||
2714 | PyObject_var & operator = (PyObject* obj) | |
2715 | { | |
2716 | Py_XDECREF(_obj); | |
2717 | _obj = obj; | |
2718 | return *this; | |
2719 | } | |
2720 | }; | |
2721 | } | |
2722 | ||
2723 | ||
36ed4f51 RD |
2724 | #include "wx/wxPython/wxPython.h" |
2725 | #include "wx/wxPython/pyclasses.h" | |
2726 | ||
2727 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
2728 | static const wxString wxPyEmptyString(wxEmptyString); | |
2729 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
2730 | ||
2731 | const wxArrayString wxPyEmptyStringArray; | |
2732 | ||
2733 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
2734 | ||
1bd55598 | 2735 | #define SWIG_From_long PyInt_FromLong |
36ed4f51 RD |
2736 | |
2737 | ||
1bd55598 RD |
2738 | SWIGINTERNINLINE PyObject * |
2739 | SWIG_From_int (int value) | |
2740 | { | |
2741 | return SWIG_From_long (value); | |
2742 | } | |
36ed4f51 RD |
2743 | |
2744 | ||
1bd55598 RD |
2745 | #include <limits.h> |
2746 | #ifndef LLONG_MIN | |
2747 | # define LLONG_MIN LONG_LONG_MIN | |
2748 | #endif | |
2749 | #ifndef LLONG_MAX | |
2750 | # define LLONG_MAX LONG_LONG_MAX | |
2751 | #endif | |
2752 | #ifndef ULLONG_MAX | |
2753 | # define ULLONG_MAX ULONG_LONG_MAX | |
2754 | #endif | |
36ed4f51 RD |
2755 | |
2756 | ||
2757 | SWIGINTERN int | |
1bd55598 | 2758 | SWIG_AsVal_long (PyObject* obj, long* val) |
36ed4f51 RD |
2759 | { |
2760 | if (PyNumber_Check(obj)) { | |
2761 | if (val) *val = PyInt_AsLong(obj); | |
1bd55598 | 2762 | return SWIG_OK; |
36ed4f51 | 2763 | } |
1bd55598 | 2764 | return SWIG_TypeError; |
36ed4f51 RD |
2765 | } |
2766 | ||
2767 | ||
36ed4f51 | 2768 | SWIGINTERN int |
1bd55598 RD |
2769 | SWIG_AsVal_int (PyObject * obj, int *val) |
2770 | { | |
36ed4f51 | 2771 | long v; |
1bd55598 RD |
2772 | int res = SWIG_AsVal_long (obj, &v); |
2773 | if (SWIG_IsOK(res)) { | |
2774 | if ((v < INT_MIN || v > INT_MAX)) { | |
2775 | return SWIG_OverflowError; | |
36ed4f51 | 2776 | } else { |
1bd55598 | 2777 | if (val) *val = static_cast< int >(v); |
36ed4f51 | 2778 | } |
1bd55598 RD |
2779 | } |
2780 | return res; | |
d55e5bfc RD |
2781 | } |
2782 | ||
c370783e | 2783 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
d55e5bfc | 2784 | |
36ed4f51 | 2785 | SWIGINTERN int |
1bd55598 | 2786 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
d55e5bfc | 2787 | { |
c370783e RD |
2788 | if (obj == Py_True) { |
2789 | if (val) *val = true; | |
1bd55598 RD |
2790 | return SWIG_OK; |
2791 | } else if (obj == Py_False) { | |
c370783e | 2792 | if (val) *val = false; |
1bd55598 | 2793 | return SWIG_OK; |
36ed4f51 | 2794 | } else { |
1bd55598 RD |
2795 | long v = 0; |
2796 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2797 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2798 | return res; | |
c370783e | 2799 | } |
d55e5bfc RD |
2800 | } |
2801 | ||
2802 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); | |
2803 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
2804 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
2805 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
2806 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
2807 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
2808 | ||
2809 | #include <wx/checklst.h> | |
2810 | ||
2811 | ||
2812 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); | |
1bd55598 | 2813 | SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){ |
d55e5bfc RD |
2814 | if (clientData) { |
2815 | wxPyClientData* data = new wxPyClientData(clientData); | |
2816 | self->Insert(item, pos, data); | |
2817 | } else | |
2818 | self->Insert(item, pos); | |
2819 | } | |
50f151d7 RD |
2820 | |
2821 | SWIGINTERN int | |
2822 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) | |
2823 | { | |
2824 | long v = 0; | |
2825 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
2826 | return SWIG_TypeError; | |
2827 | } | |
2828 | else if (val) | |
2829 | *val = (unsigned long)v; | |
2830 | return SWIG_OK; | |
2831 | } | |
2832 | ||
2833 | ||
2834 | SWIGINTERN int | |
2835 | SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) | |
2836 | { | |
2837 | unsigned long v; | |
2838 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); | |
2839 | if (SWIG_IsOK(res)) { | |
2840 | if ((v > UINT_MAX)) { | |
2841 | return SWIG_OverflowError; | |
2842 | } else { | |
2843 | if (val) *val = static_cast< unsigned int >(v); | |
2844 | } | |
2845 | } | |
2846 | return res; | |
2847 | } | |
2848 | ||
1bd55598 | 2849 | SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){ |
7e08d4ef RD |
2850 | wxArrayInt lst; |
2851 | self->GetSelections(lst); | |
2852 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
2853 | for(size_t i=0; i<lst.GetCount(); i++) { | |
2854 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
2855 | } | |
2856 | return tup; | |
2857 | } | |
1bd55598 | 2858 | SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
d55e5bfc RD |
2859 | #ifdef __WXMSW__ |
2860 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2861 | self->GetItem(item)->SetTextColour(c); | |
2862 | #endif | |
2863 | } | |
1bd55598 | 2864 | SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ |
d55e5bfc RD |
2865 | #ifdef __WXMSW__ |
2866 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2867 | self->GetItem(item)->SetBackgroundColour(c); | |
2868 | #endif | |
2869 | } | |
1bd55598 | 2870 | SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ |
d55e5bfc RD |
2871 | #ifdef __WXMSW__ |
2872 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2873 | self->GetItem(item)->SetFont(f); | |
2874 | #endif | |
2875 | } | |
2876 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); | |
1bd55598 | 2877 | SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
d55e5bfc RD |
2878 | self->AppendText(text); |
2879 | } | |
1bd55598 | 2880 | SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ |
d55e5bfc RD |
2881 | return self->GetValue().Mid(from, to - from); |
2882 | } | |
2883 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); | |
2884 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
2885 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); | |
2886 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); | |
2887 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
2888 | ||
1c71765a RD |
2889 | SWIGINTERNINLINE PyObject* |
2890 | SWIG_From_unsigned_SS_long (unsigned long value) | |
2891 | { | |
2892 | return (value > LONG_MAX) ? | |
2893 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
2894 | } | |
2895 | ||
2896 | ||
2897 | SWIGINTERNINLINE PyObject * | |
2898 | SWIG_From_size_t (size_t value) | |
2899 | { | |
2900 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
2901 | } | |
2902 | ||
2903 | ||
50f151d7 RD |
2904 | SWIGINTERNINLINE PyObject * |
2905 | SWIG_From_unsigned_SS_int (unsigned int value) | |
2906 | { | |
2907 | return SWIG_From_unsigned_SS_long (value); | |
2908 | } | |
2909 | ||
2910 | ||
d55e5bfc RD |
2911 | #include <wx/slider.h> |
2912 | ||
2913 | ||
2914 | static const wxString wxPySliderNameStr(wxSliderNameStr); | |
2915 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); | |
2916 | ||
2917 | #if !wxUSE_TOGGLEBTN | |
2918 | // implement dummy items for platforms that don't have this class | |
2919 | ||
2920 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
2921 | ||
2922 | class wxToggleButton : public wxControl | |
2923 | { | |
2924 | public: | |
2925 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
2926 | const wxPoint&, const wxSize&, long, | |
2927 | const wxValidator&, const wxString&) | |
2928 | { wxPyRaiseNotImplemented(); } | |
2929 | ||
2930 | wxToggleButton() | |
2931 | { wxPyRaiseNotImplemented(); } | |
2932 | }; | |
2933 | #endif | |
2934 | ||
51b83b37 | 2935 | static const wxString wxPyNotebookNameStr(wxNotebookNameStr); |
d55e5bfc | 2936 | |
7e08d4ef | 2937 | SWIGINTERNINLINE int |
1bd55598 | 2938 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
7e08d4ef | 2939 | { |
7e08d4ef | 2940 | unsigned long v; |
1bd55598 RD |
2941 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); |
2942 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
2943 | return res; | |
7e08d4ef | 2944 | } |
7e08d4ef | 2945 | |
d55e5bfc | 2946 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
1bd55598 | 2947 | SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
d55e5bfc RD |
2948 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); |
2949 | if (udata) { | |
2950 | Py_INCREF(udata->m_obj); | |
2951 | return udata->m_obj; | |
2952 | } else { | |
2953 | Py_INCREF(Py_None); | |
2954 | return Py_None; | |
2955 | } | |
2956 | } | |
1bd55598 | 2957 | SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ |
d55e5bfc RD |
2958 | self->SetClientData(new wxPyUserData(clientData)); |
2959 | } | |
1bd55598 | 2960 | 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 |
2961 | wxPyUserData* udata = NULL; |
2962 | if (clientData && clientData != Py_None) | |
2963 | udata = new wxPyUserData(clientData); | |
2964 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
2965 | shortHelp, longHelp, udata); | |
2966 | } | |
1bd55598 | 2967 | 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 |
2968 | wxPyUserData* udata = NULL; |
2969 | if (clientData && clientData != Py_None) | |
2970 | udata = new wxPyUserData(clientData); | |
2971 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
2972 | shortHelp, longHelp, udata); | |
2973 | } | |
1bd55598 | 2974 | SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ |
d55e5bfc RD |
2975 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); |
2976 | if (udata) { | |
2977 | Py_INCREF(udata->m_obj); | |
2978 | return udata->m_obj; | |
2979 | } else { | |
2980 | Py_INCREF(Py_None); | |
2981 | return Py_None; | |
2982 | } | |
2983 | } | |
1bd55598 | 2984 | SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ |
d55e5bfc RD |
2985 | self->SetToolClientData(id, new wxPyUserData(clientData)); |
2986 | } | |
2987 | ||
2988 | #include <wx/listctrl.h> | |
2989 | ||
fef4c27a | 2990 | static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr); |
1bd55598 | 2991 | SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
d55e5bfc RD |
2992 | // Python aware sorting function for wxPyListCtrl |
2993 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
2994 | int retval = 0; | |
2995 | PyObject* func = (PyObject*)funcPtr; | |
5a446332 | 2996 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
2997 | |
2998 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
2999 | PyObject* result = PyEval_CallObject(func, args); | |
3000 | Py_DECREF(args); | |
3001 | if (result) { | |
3002 | retval = PyInt_AsLong(result); | |
3003 | Py_DECREF(result); | |
3004 | } | |
3005 | ||
3006 | wxPyEndBlockThreads(blocked); | |
3007 | return retval; | |
3008 | } | |
3009 | ||
3010 | // C++ Version of a Python aware class | |
3011 | class wxPyListCtrl : public wxListCtrl { | |
32fe5131 | 3012 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl) |
d55e5bfc RD |
3013 | public: |
3014 | wxPyListCtrl() : wxListCtrl() {} | |
3015 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
3016 | const wxPoint& pos, | |
3017 | const wxSize& size, | |
3018 | long style, | |
3019 | const wxValidator& validator, | |
3020 | const wxString& name) : | |
3021 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
3022 | ||
3023 | bool Create(wxWindow* parent, wxWindowID id, | |
3024 | const wxPoint& pos, | |
3025 | const wxSize& size, | |
3026 | long style, | |
3027 | const wxValidator& validator, | |
3028 | const wxString& name) { | |
3029 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
3030 | } | |
3031 | ||
3032 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
d55e5bfc RD |
3033 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); |
3034 | ||
84f85550 RD |
3035 | // use the virtual version to avoid a confusing assert in the base class |
3036 | DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage); | |
7e08d4ef | 3037 | DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage); |
84f85550 | 3038 | |
d55e5bfc RD |
3039 | PYPRIVATE; |
3040 | }; | |
3041 | ||
3042 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
3043 | ||
3044 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
d55e5bfc | 3045 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); |
84f85550 | 3046 | IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage); |
7e08d4ef RD |
3047 | IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage); |
3048 | ||
d55e5bfc | 3049 | |
1bd55598 | 3050 | SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ |
d55e5bfc RD |
3051 | wxListItem item; |
3052 | item.SetMask( wxLIST_MASK_STATE | | |
3053 | wxLIST_MASK_TEXT | | |
3054 | wxLIST_MASK_IMAGE | | |
3055 | wxLIST_MASK_DATA | | |
3056 | wxLIST_SET_ITEM | | |
3057 | wxLIST_MASK_WIDTH | | |
3058 | wxLIST_MASK_FORMAT | |
3059 | ); | |
3060 | if (self->GetColumn(col, item)) | |
3061 | return new wxListItem(item); | |
3062 | else | |
3063 | return NULL; | |
3064 | } | |
1bd55598 | 3065 | SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){ |
d55e5bfc RD |
3066 | wxListItem* info = new wxListItem; |
3067 | info->m_itemId = itemId; | |
3068 | info->m_col = col; | |
3069 | info->m_mask = 0xFFFF; | |
3070 | self->GetItem(*info); | |
3071 | return info; | |
3072 | } | |
1bd55598 | 3073 | SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ |
d55e5bfc RD |
3074 | wxPoint pos; |
3075 | self->GetItemPosition(item, pos); | |
3076 | return pos; | |
3077 | } | |
1bd55598 | 3078 | SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){ |
d55e5bfc RD |
3079 | wxRect rect; |
3080 | self->GetItemRect(item, rect, code); | |
3081 | return rect; | |
3082 | } | |
1bd55598 | 3083 | SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
d55e5bfc | 3084 | if (!PyCallable_Check(func)) |
b411df4a | 3085 | return false; |
d55e5bfc RD |
3086 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
3087 | } | |
1bd55598 | 3088 | SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ |
d55e5bfc RD |
3089 | |
3090 | ||
3091 | ||
3092 | return (wxWindow*)self->m_mainWin; | |
3093 | ||
3094 | } | |
3095 | ||
3096 | #include <wx/treectrl.h> | |
3097 | #include "wx/wxPython/pytree.h" | |
3098 | ||
3099 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); | |
1bd55598 RD |
3100 | SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; } |
3101 | SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; } | |
3102 | SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
d55e5bfc RD |
3103 | // C++ version of Python aware wxTreeCtrl |
3104 | class wxPyTreeCtrl : public wxTreeCtrl { | |
32fe5131 | 3105 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl) |
d55e5bfc RD |
3106 | public: |
3107 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
3108 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
3109 | const wxPoint& pos, | |
3110 | const wxSize& size, | |
3111 | long style, | |
3112 | const wxValidator& validator, | |
3113 | const wxString& name) : | |
3114 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
3115 | ||
3116 | bool Create(wxWindow *parent, wxWindowID id, | |
3117 | const wxPoint& pos, | |
3118 | const wxSize& size, | |
3119 | long style, | |
3120 | const wxValidator& validator, | |
3121 | const wxString& name) { | |
3122 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
3123 | } | |
3124 | ||
3125 | ||
3126 | int OnCompareItems(const wxTreeItemId& item1, | |
3127 | const wxTreeItemId& item2) { | |
3128 | int rval = 0; | |
3129 | bool found; | |
5a446332 | 3130 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 3131 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
b411df4a RD |
3132 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false); |
3133 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false); | |
d55e5bfc RD |
3134 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
3135 | Py_DECREF(o1); | |
3136 | Py_DECREF(o2); | |
3137 | } | |
3138 | wxPyEndBlockThreads(blocked); | |
3139 | if (! found) | |
3140 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
3141 | return rval; | |
3142 | } | |
3143 | PYPRIVATE; | |
3144 | }; | |
3145 | ||
3146 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
3147 | ||
3148 | ||
1bd55598 | 3149 | SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d55e5bfc RD |
3150 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3151 | if (data == NULL) { | |
3152 | data = new wxPyTreeItemData(); | |
3153 | data->SetId(item); // set the id | |
3154 | self->SetItemData(item, data); | |
3155 | } | |
3156 | return data; | |
3157 | } | |
1bd55598 | 3158 | SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d55e5bfc RD |
3159 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3160 | if (data == NULL) { | |
3161 | data = new wxPyTreeItemData(); | |
3162 | data->SetId(item); // set the id | |
3163 | self->SetItemData(item, data); | |
3164 | } | |
3165 | return data->GetData(); | |
3166 | } | |
1bd55598 | 3167 | SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ |
d55e5bfc RD |
3168 | data->SetId(item); // set the id |
3169 | self->SetItemData(item, data); | |
3170 | } | |
1bd55598 | 3171 | SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ |
d55e5bfc RD |
3172 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3173 | if (data == NULL) { | |
3174 | data = new wxPyTreeItemData(obj); | |
3175 | data->SetId(item); // set the id | |
3176 | self->SetItemData(item, data); | |
3177 | } else | |
3178 | data->SetData(obj); | |
3179 | } | |
1bd55598 | 3180 | SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ |
5a446332 | 3181 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
3182 | PyObject* rval = PyList_New(0); |
3183 | wxArrayTreeItemIds array; | |
3184 | size_t num, x; | |
3185 | num = self->GetSelections(array); | |
3186 | for (x=0; x < num; x++) { | |
3187 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
b411df4a | 3188 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); |
d55e5bfc | 3189 | PyList_Append(rval, item); |
68e533f8 | 3190 | Py_DECREF(item); |
d55e5bfc RD |
3191 | } |
3192 | wxPyEndBlockThreads(blocked); | |
3193 | return rval; | |
3194 | } | |
1bd55598 | 3195 | SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d55e5bfc RD |
3196 | void* cookie = 0; |
3197 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
5a446332 | 3198 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 3199 | PyObject* tup = PyTuple_New(2); |
b411df4a | 3200 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
d55e5bfc RD |
3201 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
3202 | wxPyEndBlockThreads(blocked); | |
3203 | return tup; | |
3204 | } | |
1bd55598 | 3205 | SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
d55e5bfc | 3206 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); |
5a446332 | 3207 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 3208 | PyObject* tup = PyTuple_New(2); |
b411df4a | 3209 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
d55e5bfc RD |
3210 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
3211 | wxPyEndBlockThreads(blocked); | |
3212 | return tup; | |
3213 | } | |
1bd55598 | 3214 | SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){ |
d55e5bfc RD |
3215 | wxRect rect; |
3216 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
5a446332 | 3217 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 3218 | wxRect* r = new wxRect(rect); |
b411df4a | 3219 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true); |
d55e5bfc RD |
3220 | wxPyEndBlockThreads(blocked); |
3221 | return val; | |
3222 | } | |
3223 | else | |
3224 | RETURN_NONE(); | |
3225 | } | |
3226 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); | |
c370783e | 3227 | |
32fe5131 | 3228 | SWIGINTERNINLINE PyObject* |
1bd55598 | 3229 | SWIG_From_bool (bool value) |
c370783e | 3230 | { |
1bd55598 | 3231 | return PyBool_FromLong(value ? 1 : 0); |
c370783e RD |
3232 | } |
3233 | ||
d55e5bfc RD |
3234 | // C++ version of Python aware wxControl |
3235 | class wxPyControl : public wxControl | |
3236 | { | |
3237 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
3238 | public: | |
3239 | wxPyControl() : wxControl() {} | |
3240 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
3241 | const wxPoint& pos = wxDefaultPosition, | |
3242 | const wxSize& size = wxDefaultSize, | |
3243 | long style = 0, | |
3244 | const wxValidator& validator=wxDefaultValidator, | |
3245 | const wxString& name = wxPyControlNameStr) | |
3246 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
3247 | ||
a5ee0656 | 3248 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d55e5bfc | 3249 | |
976dbff5 RD |
3250 | bool DoEraseBackground(wxDC* dc) { |
3251 | #ifdef __WXMSW__ | |
3252 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3253 | #else | |
3254 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3255 | dc->Clear(); | |
3256 | return true; | |
3257 | #endif | |
3258 | } | |
3259 | ||
d55e5bfc RD |
3260 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); |
3261 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3262 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3263 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3264 | ||
3265 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3266 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3267 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3268 | ||
3269 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3270 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3271 | ||
3272 | DEC_PYCALLBACK__(InitDialog); | |
3273 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3274 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3275 | DEC_PYCALLBACK_BOOL_(Validate); | |
3276 | ||
3277 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3278 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3279 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3280 | ||
3281 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3282 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3283 | ||
a5ee0656 | 3284 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
a5ee0656 | 3285 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 3286 | |
51b83b37 RD |
3287 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3288 | ||
8d38bd1d RD |
3289 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3290 | ||
d55e5bfc RD |
3291 | PYPRIVATE; |
3292 | }; | |
3293 | ||
3294 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
3295 | ||
3296 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
3297 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
3298 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
3299 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
3300 | ||
3301 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
3302 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
3303 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
3304 | ||
3305 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
3306 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
3307 | ||
3308 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
3309 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
3310 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
3311 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
3312 | ||
3313 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
3314 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
3315 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
3316 | ||
3317 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
3318 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
3319 | ||
a5ee0656 | 3320 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
a5ee0656 | 3321 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d55e5bfc | 3322 | |
51b83b37 | 3323 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground); |
8d38bd1d RD |
3324 | |
3325 | IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle); | |
3326 | ||
d55e5bfc RD |
3327 | |
3328 | ||
1bd55598 | 3329 | SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } |
d55e5bfc RD |
3330 | |
3331 | #include <wx/generic/dragimgg.h> | |
3332 | ||
53aa7709 | 3333 | static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr); |
1bd55598 | 3334 | SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){ |
53aa7709 RD |
3335 | wxDateTime rv; |
3336 | self->GetRange(&rv, NULL); | |
3337 | return rv; | |
3338 | } | |
1bd55598 | 3339 | SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){ |
53aa7709 RD |
3340 | wxDateTime rv; |
3341 | self->GetRange(NULL, &rv); | |
3342 | return rv; | |
3343 | } | |
d55e5bfc RD |
3344 | #ifdef __cplusplus |
3345 | extern "C" { | |
3346 | #endif | |
1bd55598 RD |
3347 | SWIGINTERN int ButtonNameStr_set(PyObject *) { |
3348 | SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only."); | |
3349 | return 1; | |
d55e5bfc RD |
3350 | } |
3351 | ||
3352 | ||
1bd55598 RD |
3353 | SWIGINTERN PyObject *ButtonNameStr_get(void) { |
3354 | PyObject *pyobj = 0; | |
3355 | ||
3356 | { | |
d55e5bfc | 3357 | #if wxUSE_UNICODE |
1bd55598 | 3358 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); |
d55e5bfc | 3359 | #else |
1bd55598 | 3360 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); |
d55e5bfc | 3361 | #endif |
1bd55598 RD |
3362 | } |
3363 | return pyobj; | |
3364 | } | |
3365 | ||
3366 | ||
3367 | SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3368 | PyObject *resultobj = 0; | |
3369 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3370 | int arg2 = (int) -1 ; | |
3371 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3372 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3373 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3374 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3375 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3376 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3377 | long arg6 = (long) 0 ; | |
3378 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3379 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3380 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
3381 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3382 | wxButton *result = 0 ; | |
3383 | void *argp1 = 0 ; | |
3384 | int res1 = 0 ; | |
3385 | int val2 ; | |
3386 | int ecode2 = 0 ; | |
3387 | bool temp3 = false ; | |
3388 | wxPoint temp4 ; | |
3389 | wxSize temp5 ; | |
3390 | long val6 ; | |
3391 | int ecode6 = 0 ; | |
3392 | void *argp7 = 0 ; | |
3393 | int res7 = 0 ; | |
3394 | bool temp8 = false ; | |
3395 | PyObject * obj0 = 0 ; | |
3396 | PyObject * obj1 = 0 ; | |
3397 | PyObject * obj2 = 0 ; | |
3398 | PyObject * obj3 = 0 ; | |
3399 | PyObject * obj4 = 0 ; | |
3400 | PyObject * obj5 = 0 ; | |
3401 | PyObject * obj6 = 0 ; | |
3402 | PyObject * obj7 = 0 ; | |
3403 | char * kwnames[] = { | |
3404 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3405 | }; | |
3406 | ||
3407 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
3408 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3409 | if (!SWIG_IsOK(res1)) { | |
3410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3411 | } | |
3412 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3413 | if (obj1) { | |
3414 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3415 | if (!SWIG_IsOK(ecode2)) { | |
3416 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'"); | |
3417 | } | |
3418 | arg2 = static_cast< int >(val2); | |
3419 | } | |
3420 | if (obj2) { | |
d55e5bfc | 3421 | { |
1bd55598 RD |
3422 | arg3 = wxString_in_helper(obj2); |
3423 | if (arg3 == NULL) SWIG_fail; | |
3424 | temp3 = true; | |
d55e5bfc | 3425 | } |
1bd55598 RD |
3426 | } |
3427 | if (obj3) { | |
d55e5bfc | 3428 | { |
1bd55598 RD |
3429 | arg4 = &temp4; |
3430 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 3431 | } |
1bd55598 RD |
3432 | } |
3433 | if (obj4) { | |
d55e5bfc | 3434 | { |
1bd55598 RD |
3435 | arg5 = &temp5; |
3436 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 3437 | } |
1bd55598 RD |
3438 | } |
3439 | if (obj5) { | |
3440 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3441 | if (!SWIG_IsOK(ecode6)) { | |
3442 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'"); | |
3443 | } | |
3444 | arg6 = static_cast< long >(val6); | |
3445 | } | |
3446 | if (obj6) { | |
3447 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
3448 | if (!SWIG_IsOK(res7)) { | |
3449 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 3450 | } |
1bd55598 RD |
3451 | if (!argp7) { |
3452 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 3453 | } |
1bd55598 RD |
3454 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
3455 | } | |
3456 | if (obj7) { | |
d55e5bfc | 3457 | { |
1bd55598 RD |
3458 | arg8 = wxString_in_helper(obj7); |
3459 | if (arg8 == NULL) SWIG_fail; | |
3460 | temp8 = true; | |
d55e5bfc | 3461 | } |
1bd55598 RD |
3462 | } |
3463 | { | |
3464 | if (!wxPyCheckForApp()) SWIG_fail; | |
3465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3466 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3467 | wxPyEndAllowThreads(__tstate); | |
3468 | if (PyErr_Occurred()) SWIG_fail; | |
3469 | } | |
3470 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 ); | |
3471 | { | |
3472 | if (temp3) | |
3473 | delete arg3; | |
3474 | } | |
3475 | { | |
3476 | if (temp8) | |
3477 | delete arg8; | |
3478 | } | |
3479 | return resultobj; | |
3480 | fail: | |
3481 | { | |
3482 | if (temp3) | |
3483 | delete arg3; | |
3484 | } | |
3485 | { | |
3486 | if (temp8) | |
3487 | delete arg8; | |
3488 | } | |
3489 | return NULL; | |
d55e5bfc RD |
3490 | } |
3491 | ||
3492 | ||
1bd55598 RD |
3493 | SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3494 | PyObject *resultobj = 0; | |
3495 | wxButton *result = 0 ; | |
3496 | ||
3497 | if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail; | |
3498 | { | |
3499 | if (!wxPyCheckForApp()) SWIG_fail; | |
3500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3501 | result = (wxButton *)new wxButton(); | |
3502 | wxPyEndAllowThreads(__tstate); | |
3503 | if (PyErr_Occurred()) SWIG_fail; | |
3504 | } | |
3505 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 ); | |
3506 | return resultobj; | |
3507 | fail: | |
3508 | return NULL; | |
3509 | } | |
3510 | ||
3511 | ||
3512 | SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3513 | PyObject *resultobj = 0; | |
3514 | wxButton *arg1 = (wxButton *) 0 ; | |
3515 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3516 | int arg3 = (int) -1 ; | |
3517 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3518 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3519 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3520 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3521 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3522 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3523 | long arg7 = (long) 0 ; | |
3524 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3525 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3526 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
3527 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3528 | bool result; | |
3529 | void *argp1 = 0 ; | |
3530 | int res1 = 0 ; | |
3531 | void *argp2 = 0 ; | |
3532 | int res2 = 0 ; | |
3533 | int val3 ; | |
3534 | int ecode3 = 0 ; | |
3535 | bool temp4 = false ; | |
3536 | wxPoint temp5 ; | |
3537 | wxSize temp6 ; | |
3538 | long val7 ; | |
3539 | int ecode7 = 0 ; | |
3540 | void *argp8 = 0 ; | |
3541 | int res8 = 0 ; | |
3542 | bool temp9 = false ; | |
3543 | PyObject * obj0 = 0 ; | |
3544 | PyObject * obj1 = 0 ; | |
3545 | PyObject * obj2 = 0 ; | |
3546 | PyObject * obj3 = 0 ; | |
3547 | PyObject * obj4 = 0 ; | |
3548 | PyObject * obj5 = 0 ; | |
3549 | PyObject * obj6 = 0 ; | |
3550 | PyObject * obj7 = 0 ; | |
3551 | PyObject * obj8 = 0 ; | |
3552 | char * kwnames[] = { | |
3553 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3554 | }; | |
3555 | ||
3556 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
3557 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 ); | |
3558 | if (!SWIG_IsOK(res1)) { | |
3559 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'"); | |
3560 | } | |
3561 | arg1 = reinterpret_cast< wxButton * >(argp1); | |
3562 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3563 | if (!SWIG_IsOK(res2)) { | |
3564 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3565 | } | |
3566 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3567 | if (obj2) { | |
3568 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3569 | if (!SWIG_IsOK(ecode3)) { | |
3570 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'"); | |
3571 | } | |
3572 | arg3 = static_cast< int >(val3); | |
3573 | } | |
3574 | if (obj3) { | |
d55e5bfc | 3575 | { |
1bd55598 RD |
3576 | arg4 = wxString_in_helper(obj3); |
3577 | if (arg4 == NULL) SWIG_fail; | |
3578 | temp4 = true; | |
d55e5bfc | 3579 | } |
1bd55598 RD |
3580 | } |
3581 | if (obj4) { | |
d55e5bfc | 3582 | { |
1bd55598 RD |
3583 | arg5 = &temp5; |
3584 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 3585 | } |
1bd55598 RD |
3586 | } |
3587 | if (obj5) { | |
d55e5bfc | 3588 | { |
1bd55598 RD |
3589 | arg6 = &temp6; |
3590 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 3591 | } |
1bd55598 RD |
3592 | } |
3593 | if (obj6) { | |
3594 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
3595 | if (!SWIG_IsOK(ecode7)) { | |
3596 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'"); | |
3597 | } | |
3598 | arg7 = static_cast< long >(val7); | |
3599 | } | |
3600 | if (obj7) { | |
3601 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
3602 | if (!SWIG_IsOK(res8)) { | |
3603 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 3604 | } |
1bd55598 RD |
3605 | if (!argp8) { |
3606 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 3607 | } |
1bd55598 RD |
3608 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
3609 | } | |
3610 | if (obj8) { | |
d55e5bfc | 3611 | { |
1bd55598 RD |
3612 | arg9 = wxString_in_helper(obj8); |
3613 | if (arg9 == NULL) SWIG_fail; | |
3614 | temp9 = true; | |
d55e5bfc | 3615 | } |
1bd55598 RD |
3616 | } |
3617 | { | |
3618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3619 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3620 | wxPyEndAllowThreads(__tstate); | |
3621 | if (PyErr_Occurred()) SWIG_fail; | |
3622 | } | |
3623 | { | |
3624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3625 | } | |
3626 | { | |
3627 | if (temp4) | |
3628 | delete arg4; | |
3629 | } | |
3630 | { | |
3631 | if (temp9) | |
3632 | delete arg9; | |
3633 | } | |
3634 | return resultobj; | |
3635 | fail: | |
3636 | { | |
3637 | if (temp4) | |
3638 | delete arg4; | |
3639 | } | |
3640 | { | |
3641 | if (temp9) | |
3642 | delete arg9; | |
3643 | } | |
3644 | return NULL; | |
d55e5bfc RD |
3645 | } |
3646 | ||
3647 | ||
1bd55598 RD |
3648 | SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3649 | PyObject *resultobj = 0; | |
3650 | wxButton *arg1 = (wxButton *) 0 ; | |
3651 | void *argp1 = 0 ; | |
3652 | int res1 = 0 ; | |
3653 | PyObject *swig_obj[1] ; | |
3654 | ||
3655 | if (!args) SWIG_fail; | |
3656 | swig_obj[0] = args; | |
3657 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 ); | |
3658 | if (!SWIG_IsOK(res1)) { | |
3659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'"); | |
3660 | } | |
3661 | arg1 = reinterpret_cast< wxButton * >(argp1); | |
3662 | { | |
3663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3664 | (arg1)->SetDefault(); | |
3665 | wxPyEndAllowThreads(__tstate); | |
3666 | if (PyErr_Occurred()) SWIG_fail; | |
3667 | } | |
3668 | resultobj = SWIG_Py_Void(); | |
3669 | return resultobj; | |
3670 | fail: | |
3671 | return NULL; | |
d55e5bfc RD |
3672 | } |
3673 | ||
3674 | ||
1bd55598 RD |
3675 | SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3676 | PyObject *resultobj = 0; | |
3677 | wxSize result; | |
3678 | ||
3679 | if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail; | |
3680 | { | |
3681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3682 | result = wxButton::GetDefaultSize(); | |
3683 | wxPyEndAllowThreads(__tstate); | |
3684 | if (PyErr_Occurred()) SWIG_fail; | |
3685 | } | |
3686 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
3687 | return resultobj; | |
3688 | fail: | |
3689 | return NULL; | |
3690 | } | |
3691 | ||
3692 | ||
3693 | SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3694 | PyObject *resultobj = 0; | |
3695 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
3696 | SwigValueWrapper<wxVisualAttributes > result; | |
3697 | int val1 ; | |
3698 | int ecode1 = 0 ; | |
3699 | PyObject * obj0 = 0 ; | |
3700 | char * kwnames[] = { | |
3701 | (char *) "variant", NULL | |
3702 | }; | |
3703 | ||
3704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
3705 | if (obj0) { | |
3706 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
3707 | if (!SWIG_IsOK(ecode1)) { | |
3708 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
3709 | } | |
3710 | arg1 = static_cast< wxWindowVariant >(val1); | |
3711 | } | |
3712 | { | |
3713 | if (!wxPyCheckForApp()) SWIG_fail; | |
3714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3715 | result = wxButton::GetClassDefaultAttributes(arg1); | |
3716 | wxPyEndAllowThreads(__tstate); | |
3717 | if (PyErr_Occurred()) SWIG_fail; | |
3718 | } | |
3719 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
3720 | return resultobj; | |
3721 | fail: | |
3722 | return NULL; | |
3723 | } | |
3724 | ||
3725 | ||
3726 | SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3727 | PyObject *obj; | |
3728 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3729 | SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj)); | |
3730 | return SWIG_Py_Void(); | |
3731 | } | |
3732 | ||
3733 | SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3734 | return SWIG_Python_InitShadowInstance(args); | |
3735 | } | |
3736 | ||
3737 | SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3738 | PyObject *resultobj = 0; | |
3739 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3740 | int arg2 = (int) -1 ; | |
3741 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
3742 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
3743 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3744 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3745 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3746 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3747 | long arg6 = (long) wxBU_AUTODRAW ; | |
3748 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3749 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3750 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
3751 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3752 | wxBitmapButton *result = 0 ; | |
3753 | void *argp1 = 0 ; | |
3754 | int res1 = 0 ; | |
3755 | int val2 ; | |
3756 | int ecode2 = 0 ; | |
3757 | void *argp3 = 0 ; | |
3758 | int res3 = 0 ; | |
3759 | wxPoint temp4 ; | |
3760 | wxSize temp5 ; | |
3761 | long val6 ; | |
3762 | int ecode6 = 0 ; | |
3763 | void *argp7 = 0 ; | |
3764 | int res7 = 0 ; | |
3765 | bool temp8 = false ; | |
3766 | PyObject * obj0 = 0 ; | |
3767 | PyObject * obj1 = 0 ; | |
3768 | PyObject * obj2 = 0 ; | |
3769 | PyObject * obj3 = 0 ; | |
3770 | PyObject * obj4 = 0 ; | |
3771 | PyObject * obj5 = 0 ; | |
3772 | PyObject * obj6 = 0 ; | |
3773 | PyObject * obj7 = 0 ; | |
3774 | char * kwnames[] = { | |
3775 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3776 | }; | |
3777 | ||
3778 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
3779 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3780 | if (!SWIG_IsOK(res1)) { | |
3781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3782 | } | |
3783 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3784 | if (obj1) { | |
3785 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3786 | if (!SWIG_IsOK(ecode2)) { | |
3787 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'"); | |
3788 | } | |
3789 | arg2 = static_cast< int >(val2); | |
3790 | } | |
3791 | if (obj2) { | |
3792 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
3793 | if (!SWIG_IsOK(res3)) { | |
3794 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
3795 | } | |
3796 | if (!argp3) { | |
3797 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
3798 | } | |
3799 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
3800 | } | |
3801 | if (obj3) { | |
d55e5bfc | 3802 | { |
1bd55598 RD |
3803 | arg4 = &temp4; |
3804 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 3805 | } |
1bd55598 RD |
3806 | } |
3807 | if (obj4) { | |
d55e5bfc | 3808 | { |
1bd55598 RD |
3809 | arg5 = &temp5; |
3810 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 3811 | } |
1bd55598 RD |
3812 | } |
3813 | if (obj5) { | |
3814 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3815 | if (!SWIG_IsOK(ecode6)) { | |
3816 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'"); | |
3817 | } | |
3818 | arg6 = static_cast< long >(val6); | |
3819 | } | |
3820 | if (obj6) { | |
3821 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
3822 | if (!SWIG_IsOK(res7)) { | |
3823 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
f20a2e1f | 3824 | } |
1bd55598 RD |
3825 | if (!argp7) { |
3826 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
f20a2e1f | 3827 | } |
1bd55598 RD |
3828 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
3829 | } | |
3830 | if (obj7) { | |
f20a2e1f | 3831 | { |
1bd55598 RD |
3832 | arg8 = wxString_in_helper(obj7); |
3833 | if (arg8 == NULL) SWIG_fail; | |
3834 | temp8 = true; | |
f20a2e1f | 3835 | } |
1bd55598 RD |
3836 | } |
3837 | { | |
3838 | if (!wxPyCheckForApp()) SWIG_fail; | |
3839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3840 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3841 | wxPyEndAllowThreads(__tstate); | |
3842 | if (PyErr_Occurred()) SWIG_fail; | |
3843 | } | |
3844 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 ); | |
3845 | { | |
3846 | if (temp8) | |
3847 | delete arg8; | |
3848 | } | |
3849 | return resultobj; | |
3850 | fail: | |
3851 | { | |
3852 | if (temp8) | |
3853 | delete arg8; | |
3854 | } | |
3855 | return NULL; | |
f20a2e1f RD |
3856 | } |
3857 | ||
3858 | ||
1bd55598 RD |
3859 | SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3860 | PyObject *resultobj = 0; | |
3861 | wxBitmapButton *result = 0 ; | |
3862 | ||
3863 | if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail; | |
3864 | { | |
3865 | if (!wxPyCheckForApp()) SWIG_fail; | |
3866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3867 | result = (wxBitmapButton *)new wxBitmapButton(); | |
3868 | wxPyEndAllowThreads(__tstate); | |
3869 | if (PyErr_Occurred()) SWIG_fail; | |
3870 | } | |
3871 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 ); | |
3872 | return resultobj; | |
3873 | fail: | |
3874 | return NULL; | |
3875 | } | |
3876 | ||
3877 | ||
3878 | SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3879 | PyObject *resultobj = 0; | |
3880 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3881 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3882 | int arg3 = (int) -1 ; | |
3883 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
3884 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
3885 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3886 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3887 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3888 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3889 | long arg7 = (long) wxBU_AUTODRAW ; | |
3890 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3891 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3892 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
3893 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3894 | bool result; | |
3895 | void *argp1 = 0 ; | |
3896 | int res1 = 0 ; | |
3897 | void *argp2 = 0 ; | |
3898 | int res2 = 0 ; | |
3899 | int val3 ; | |
3900 | int ecode3 = 0 ; | |
3901 | void *argp4 = 0 ; | |
3902 | int res4 = 0 ; | |
3903 | wxPoint temp5 ; | |
3904 | wxSize temp6 ; | |
3905 | long val7 ; | |
3906 | int ecode7 = 0 ; | |
3907 | void *argp8 = 0 ; | |
3908 | int res8 = 0 ; | |
3909 | bool temp9 = false ; | |
3910 | PyObject * obj0 = 0 ; | |
3911 | PyObject * obj1 = 0 ; | |
3912 | PyObject * obj2 = 0 ; | |
3913 | PyObject * obj3 = 0 ; | |
3914 | PyObject * obj4 = 0 ; | |
3915 | PyObject * obj5 = 0 ; | |
3916 | PyObject * obj6 = 0 ; | |
3917 | PyObject * obj7 = 0 ; | |
3918 | PyObject * obj8 = 0 ; | |
3919 | char * kwnames[] = { | |
3920 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3921 | }; | |
3922 | ||
3923 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
3924 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
3925 | if (!SWIG_IsOK(res1)) { | |
3926 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
3927 | } | |
3928 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
3929 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3930 | if (!SWIG_IsOK(res2)) { | |
3931 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3932 | } | |
3933 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3934 | if (obj2) { | |
3935 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3936 | if (!SWIG_IsOK(ecode3)) { | |
3937 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
3938 | } | |
3939 | arg3 = static_cast< int >(val3); | |
3940 | } | |
3941 | if (obj3) { | |
3942 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
3943 | if (!SWIG_IsOK(res4)) { | |
3944 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 3945 | } |
1bd55598 RD |
3946 | if (!argp4) { |
3947 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 3948 | } |
1bd55598 RD |
3949 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
3950 | } | |
3951 | if (obj4) { | |
d55e5bfc | 3952 | { |
1bd55598 RD |
3953 | arg5 = &temp5; |
3954 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 3955 | } |
1bd55598 RD |
3956 | } |
3957 | if (obj5) { | |
d55e5bfc | 3958 | { |
1bd55598 RD |
3959 | arg6 = &temp6; |
3960 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3961 | } | |
3962 | } | |
3963 | if (obj6) { | |
3964 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
3965 | if (!SWIG_IsOK(ecode7)) { | |
3966 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
3967 | } | |
3968 | arg7 = static_cast< long >(val7); | |
3969 | } | |
3970 | if (obj7) { | |
3971 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
3972 | if (!SWIG_IsOK(res8)) { | |
3973 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
3974 | } | |
3975 | if (!argp8) { | |
3976 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 3977 | } |
1bd55598 RD |
3978 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
3979 | } | |
3980 | if (obj8) { | |
d55e5bfc | 3981 | { |
1bd55598 RD |
3982 | arg9 = wxString_in_helper(obj8); |
3983 | if (arg9 == NULL) SWIG_fail; | |
3984 | temp9 = true; | |
d55e5bfc | 3985 | } |
1bd55598 RD |
3986 | } |
3987 | { | |
3988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3989 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3990 | wxPyEndAllowThreads(__tstate); | |
3991 | if (PyErr_Occurred()) SWIG_fail; | |
3992 | } | |
3993 | { | |
3994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3995 | } | |
3996 | { | |
3997 | if (temp9) | |
3998 | delete arg9; | |
3999 | } | |
4000 | return resultobj; | |
4001 | fail: | |
4002 | { | |
4003 | if (temp9) | |
4004 | delete arg9; | |
4005 | } | |
4006 | return NULL; | |
d55e5bfc RD |
4007 | } |
4008 | ||
4009 | ||
1bd55598 RD |
4010 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4011 | PyObject *resultobj = 0; | |
4012 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4013 | wxBitmap result; | |
4014 | void *argp1 = 0 ; | |
4015 | int res1 = 0 ; | |
4016 | PyObject *swig_obj[1] ; | |
4017 | ||
4018 | if (!args) SWIG_fail; | |
4019 | swig_obj[0] = args; | |
4020 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4021 | if (!SWIG_IsOK(res1)) { | |
4022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4023 | } | |
4024 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4025 | { | |
4026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4027 | result = (arg1)->GetBitmapLabel(); | |
4028 | wxPyEndAllowThreads(__tstate); | |
4029 | if (PyErr_Occurred()) SWIG_fail; | |
4030 | } | |
4031 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4032 | return resultobj; | |
4033 | fail: | |
4034 | return NULL; | |
d55e5bfc RD |
4035 | } |
4036 | ||
4037 | ||
1bd55598 RD |
4038 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4039 | PyObject *resultobj = 0; | |
4040 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4041 | wxBitmap result; | |
4042 | void *argp1 = 0 ; | |
4043 | int res1 = 0 ; | |
4044 | PyObject *swig_obj[1] ; | |
4045 | ||
4046 | if (!args) SWIG_fail; | |
4047 | swig_obj[0] = args; | |
4048 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4049 | if (!SWIG_IsOK(res1)) { | |
4050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4051 | } | |
4052 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4053 | { | |
4054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4055 | result = (arg1)->GetBitmapDisabled(); | |
4056 | wxPyEndAllowThreads(__tstate); | |
4057 | if (PyErr_Occurred()) SWIG_fail; | |
4058 | } | |
4059 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4060 | return resultobj; | |
4061 | fail: | |
4062 | return NULL; | |
d55e5bfc RD |
4063 | } |
4064 | ||
4065 | ||
1bd55598 RD |
4066 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4067 | PyObject *resultobj = 0; | |
4068 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4069 | wxBitmap result; | |
4070 | void *argp1 = 0 ; | |
4071 | int res1 = 0 ; | |
4072 | PyObject *swig_obj[1] ; | |
4073 | ||
4074 | if (!args) SWIG_fail; | |
4075 | swig_obj[0] = args; | |
4076 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4077 | if (!SWIG_IsOK(res1)) { | |
4078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4079 | } | |
4080 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4081 | { | |
4082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4083 | result = (arg1)->GetBitmapFocus(); | |
4084 | wxPyEndAllowThreads(__tstate); | |
4085 | if (PyErr_Occurred()) SWIG_fail; | |
4086 | } | |
4087 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4088 | return resultobj; | |
4089 | fail: | |
4090 | return NULL; | |
d55e5bfc RD |
4091 | } |
4092 | ||
4093 | ||
1bd55598 RD |
4094 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4095 | PyObject *resultobj = 0; | |
4096 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4097 | wxBitmap result; | |
4098 | void *argp1 = 0 ; | |
4099 | int res1 = 0 ; | |
4100 | PyObject *swig_obj[1] ; | |
4101 | ||
4102 | if (!args) SWIG_fail; | |
4103 | swig_obj[0] = args; | |
4104 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4105 | if (!SWIG_IsOK(res1)) { | |
4106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4107 | } | |
4108 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4109 | { | |
4110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4111 | result = (arg1)->GetBitmapSelected(); | |
4112 | wxPyEndAllowThreads(__tstate); | |
4113 | if (PyErr_Occurred()) SWIG_fail; | |
4114 | } | |
4115 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4116 | return resultobj; | |
4117 | fail: | |
4118 | return NULL; | |
d55e5bfc RD |
4119 | } |
4120 | ||
4121 | ||
1bd55598 RD |
4122 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4123 | PyObject *resultobj = 0; | |
4124 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4125 | wxBitmap result; | |
4126 | void *argp1 = 0 ; | |
4127 | int res1 = 0 ; | |
4128 | PyObject *swig_obj[1] ; | |
4129 | ||
4130 | if (!args) SWIG_fail; | |
4131 | swig_obj[0] = args; | |
4132 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4133 | if (!SWIG_IsOK(res1)) { | |
4134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4135 | } | |
4136 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4137 | { | |
4138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4139 | result = (arg1)->GetBitmapHover(); | |
4140 | wxPyEndAllowThreads(__tstate); | |
4141 | if (PyErr_Occurred()) SWIG_fail; | |
4142 | } | |
4143 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4144 | return resultobj; | |
4145 | fail: | |
4146 | return NULL; | |
4147 | } | |
4148 | ||
4149 | ||
4150 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4151 | PyObject *resultobj = 0; | |
4152 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4153 | wxBitmap *arg2 = 0 ; | |
4154 | void *argp1 = 0 ; | |
4155 | int res1 = 0 ; | |
4156 | void *argp2 = 0 ; | |
4157 | int res2 = 0 ; | |
4158 | PyObject * obj0 = 0 ; | |
4159 | PyObject * obj1 = 0 ; | |
4160 | char * kwnames[] = { | |
4161 | (char *) "self",(char *) "bitmap", NULL | |
4162 | }; | |
4163 | ||
4164 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
4165 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4166 | if (!SWIG_IsOK(res1)) { | |
4167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4168 | } | |
4169 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4170 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4171 | if (!SWIG_IsOK(res2)) { | |
4172 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4173 | } | |
4174 | if (!argp2) { | |
4175 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4176 | } | |
4177 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4178 | { | |
4179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4180 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
4181 | wxPyEndAllowThreads(__tstate); | |
4182 | if (PyErr_Occurred()) SWIG_fail; | |
4183 | } | |
4184 | resultobj = SWIG_Py_Void(); | |
4185 | return resultobj; | |
4186 | fail: | |
4187 | return NULL; | |
4188 | } | |
4189 | ||
4190 | ||
4191 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4192 | PyObject *resultobj = 0; | |
4193 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4194 | wxBitmap *arg2 = 0 ; | |
4195 | void *argp1 = 0 ; | |
4196 | int res1 = 0 ; | |
4197 | void *argp2 = 0 ; | |
4198 | int res2 = 0 ; | |
4199 | PyObject * obj0 = 0 ; | |
4200 | PyObject * obj1 = 0 ; | |
4201 | char * kwnames[] = { | |
4202 | (char *) "self",(char *) "bitmap", NULL | |
4203 | }; | |
4204 | ||
4205 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail; | |
4206 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4207 | if (!SWIG_IsOK(res1)) { | |
4208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4209 | } | |
4210 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4211 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4212 | if (!SWIG_IsOK(res2)) { | |
4213 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4214 | } | |
4215 | if (!argp2) { | |
4216 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4217 | } | |
4218 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4219 | { | |
4220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4221 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
4222 | wxPyEndAllowThreads(__tstate); | |
4223 | if (PyErr_Occurred()) SWIG_fail; | |
4224 | } | |
4225 | resultobj = SWIG_Py_Void(); | |
4226 | return resultobj; | |
4227 | fail: | |
4228 | return NULL; | |
4229 | } | |
4230 | ||
4231 | ||
4232 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4233 | PyObject *resultobj = 0; | |
4234 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4235 | wxBitmap *arg2 = 0 ; | |
4236 | void *argp1 = 0 ; | |
4237 | int res1 = 0 ; | |
4238 | void *argp2 = 0 ; | |
4239 | int res2 = 0 ; | |
4240 | PyObject * obj0 = 0 ; | |
4241 | PyObject * obj1 = 0 ; | |
4242 | char * kwnames[] = { | |
4243 | (char *) "self",(char *) "bitmap", NULL | |
4244 | }; | |
4245 | ||
4246 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
4247 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4248 | if (!SWIG_IsOK(res1)) { | |
4249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4250 | } | |
4251 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4252 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4253 | if (!SWIG_IsOK(res2)) { | |
4254 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4255 | } | |
4256 | if (!argp2) { | |
4257 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4258 | } | |
4259 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4260 | { | |
4261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4262 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
4263 | wxPyEndAllowThreads(__tstate); | |
4264 | if (PyErr_Occurred()) SWIG_fail; | |
4265 | } | |
4266 | resultobj = SWIG_Py_Void(); | |
4267 | return resultobj; | |
4268 | fail: | |
4269 | return NULL; | |
4270 | } | |
4271 | ||
4272 | ||
4273 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4274 | PyObject *resultobj = 0; | |
4275 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4276 | wxBitmap *arg2 = 0 ; | |
4277 | void *argp1 = 0 ; | |
4278 | int res1 = 0 ; | |
4279 | void *argp2 = 0 ; | |
4280 | int res2 = 0 ; | |
4281 | PyObject * obj0 = 0 ; | |
4282 | PyObject * obj1 = 0 ; | |
4283 | char * kwnames[] = { | |
4284 | (char *) "self",(char *) "bitmap", NULL | |
4285 | }; | |
4286 | ||
4287 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
4288 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4289 | if (!SWIG_IsOK(res1)) { | |
4290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4291 | } | |
4292 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4293 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4294 | if (!SWIG_IsOK(res2)) { | |
4295 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4296 | } | |
4297 | if (!argp2) { | |
4298 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4299 | } | |
4300 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4301 | { | |
4302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4303 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
4304 | wxPyEndAllowThreads(__tstate); | |
4305 | if (PyErr_Occurred()) SWIG_fail; | |
4306 | } | |
4307 | resultobj = SWIG_Py_Void(); | |
4308 | return resultobj; | |
4309 | fail: | |
4310 | return NULL; | |
4311 | } | |
4312 | ||
4313 | ||
4314 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4315 | PyObject *resultobj = 0; | |
4316 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4317 | wxBitmap *arg2 = 0 ; | |
4318 | void *argp1 = 0 ; | |
4319 | int res1 = 0 ; | |
4320 | void *argp2 = 0 ; | |
4321 | int res2 = 0 ; | |
4322 | PyObject * obj0 = 0 ; | |
4323 | PyObject * obj1 = 0 ; | |
4324 | char * kwnames[] = { | |
4325 | (char *) "self",(char *) "hover", NULL | |
4326 | }; | |
4327 | ||
4328 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail; | |
4329 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4330 | if (!SWIG_IsOK(res1)) { | |
4331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4332 | } | |
4333 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4334 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4335 | if (!SWIG_IsOK(res2)) { | |
4336 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4337 | } | |
4338 | if (!argp2) { | |
4339 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4340 | } | |
4341 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4342 | { | |
4343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4344 | (arg1)->SetBitmapHover((wxBitmap const &)*arg2); | |
4345 | wxPyEndAllowThreads(__tstate); | |
4346 | if (PyErr_Occurred()) SWIG_fail; | |
4347 | } | |
4348 | resultobj = SWIG_Py_Void(); | |
4349 | return resultobj; | |
4350 | fail: | |
4351 | return NULL; | |
4352 | } | |
4353 | ||
4354 | ||
4355 | SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4356 | PyObject *resultobj = 0; | |
4357 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4358 | int arg2 ; | |
4359 | int arg3 ; | |
4360 | void *argp1 = 0 ; | |
4361 | int res1 = 0 ; | |
4362 | int val2 ; | |
4363 | int ecode2 = 0 ; | |
4364 | int val3 ; | |
4365 | int ecode3 = 0 ; | |
4366 | PyObject * obj0 = 0 ; | |
4367 | PyObject * obj1 = 0 ; | |
4368 | PyObject * obj2 = 0 ; | |
4369 | char * kwnames[] = { | |
4370 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4371 | }; | |
4372 | ||
4373 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4374 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4375 | if (!SWIG_IsOK(res1)) { | |
4376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4377 | } | |
4378 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4379 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4380 | if (!SWIG_IsOK(ecode2)) { | |
4381 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'"); | |
4382 | } | |
4383 | arg2 = static_cast< int >(val2); | |
4384 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4385 | if (!SWIG_IsOK(ecode3)) { | |
4386 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'"); | |
4387 | } | |
4388 | arg3 = static_cast< int >(val3); | |
4389 | { | |
4390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4391 | (arg1)->SetMargins(arg2,arg3); | |
4392 | wxPyEndAllowThreads(__tstate); | |
4393 | if (PyErr_Occurred()) SWIG_fail; | |
4394 | } | |
4395 | resultobj = SWIG_Py_Void(); | |
4396 | return resultobj; | |
4397 | fail: | |
4398 | return NULL; | |
d55e5bfc RD |
4399 | } |
4400 | ||
4401 | ||
1bd55598 RD |
4402 | SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4403 | PyObject *resultobj = 0; | |
4404 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4405 | int result; | |
4406 | void *argp1 = 0 ; | |
4407 | int res1 = 0 ; | |
4408 | PyObject *swig_obj[1] ; | |
4409 | ||
4410 | if (!args) SWIG_fail; | |
4411 | swig_obj[0] = args; | |
4412 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4413 | if (!SWIG_IsOK(res1)) { | |
4414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'"); | |
4415 | } | |
4416 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4417 | { | |
4418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4419 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
4420 | wxPyEndAllowThreads(__tstate); | |
4421 | if (PyErr_Occurred()) SWIG_fail; | |
4422 | } | |
4423 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4424 | return resultobj; | |
4425 | fail: | |
4426 | return NULL; | |
d55e5bfc RD |
4427 | } |
4428 | ||
4429 | ||
1bd55598 RD |
4430 | SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4431 | PyObject *resultobj = 0; | |
4432 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4433 | int result; | |
4434 | void *argp1 = 0 ; | |
4435 | int res1 = 0 ; | |
4436 | PyObject *swig_obj[1] ; | |
4437 | ||
4438 | if (!args) SWIG_fail; | |
4439 | swig_obj[0] = args; | |
4440 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4441 | if (!SWIG_IsOK(res1)) { | |
4442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'"); | |
4443 | } | |
4444 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4445 | { | |
4446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4447 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
4448 | wxPyEndAllowThreads(__tstate); | |
4449 | if (PyErr_Occurred()) SWIG_fail; | |
4450 | } | |
4451 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4452 | return resultobj; | |
4453 | fail: | |
4454 | return NULL; | |
b1fcee84 RD |
4455 | } |
4456 | ||
4457 | ||
1bd55598 RD |
4458 | SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4459 | PyObject *obj; | |
4460 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4461 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj)); | |
4462 | return SWIG_Py_Void(); | |
d55e5bfc RD |
4463 | } |
4464 | ||
1bd55598 RD |
4465 | SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4466 | return SWIG_Python_InitShadowInstance(args); | |
4467 | } | |
d55e5bfc | 4468 | |
1bd55598 RD |
4469 | SWIGINTERN int CheckBoxNameStr_set(PyObject *) { |
4470 | SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only."); | |
4471 | return 1; | |
d55e5bfc RD |
4472 | } |
4473 | ||
4474 | ||
1bd55598 RD |
4475 | SWIGINTERN PyObject *CheckBoxNameStr_get(void) { |
4476 | PyObject *pyobj = 0; | |
4477 | ||
4478 | { | |
4479 | #if wxUSE_UNICODE | |
4480 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
4481 | #else | |
4482 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
4483 | #endif | |
4484 | } | |
4485 | return pyobj; | |
4486 | } | |
4487 | ||
4488 | ||
4489 | SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4490 | PyObject *resultobj = 0; | |
4491 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4492 | int arg2 = (int) -1 ; | |
4493 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4494 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4495 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4496 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4497 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4498 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4499 | long arg6 = (long) 0 ; | |
4500 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
4501 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
4502 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
4503 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4504 | wxCheckBox *result = 0 ; | |
4505 | void *argp1 = 0 ; | |
4506 | int res1 = 0 ; | |
4507 | int val2 ; | |
4508 | int ecode2 = 0 ; | |
4509 | bool temp3 = false ; | |
4510 | wxPoint temp4 ; | |
4511 | wxSize temp5 ; | |
4512 | long val6 ; | |
4513 | int ecode6 = 0 ; | |
4514 | void *argp7 = 0 ; | |
4515 | int res7 = 0 ; | |
4516 | bool temp8 = false ; | |
4517 | PyObject * obj0 = 0 ; | |
4518 | PyObject * obj1 = 0 ; | |
4519 | PyObject * obj2 = 0 ; | |
4520 | PyObject * obj3 = 0 ; | |
4521 | PyObject * obj4 = 0 ; | |
4522 | PyObject * obj5 = 0 ; | |
4523 | PyObject * obj6 = 0 ; | |
4524 | PyObject * obj7 = 0 ; | |
4525 | char * kwnames[] = { | |
4526 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4527 | }; | |
4528 | ||
4529 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
4530 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4531 | if (!SWIG_IsOK(res1)) { | |
4532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
4533 | } | |
4534 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
4535 | if (obj1) { | |
4536 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4537 | if (!SWIG_IsOK(ecode2)) { | |
4538 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'"); | |
4539 | } | |
4540 | arg2 = static_cast< int >(val2); | |
4541 | } | |
4542 | if (obj2) { | |
d55e5bfc | 4543 | { |
1bd55598 RD |
4544 | arg3 = wxString_in_helper(obj2); |
4545 | if (arg3 == NULL) SWIG_fail; | |
4546 | temp3 = true; | |
d55e5bfc | 4547 | } |
1bd55598 RD |
4548 | } |
4549 | if (obj3) { | |
4550 | { | |
4551 | arg4 = &temp4; | |
4552 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 4553 | } |
1bd55598 RD |
4554 | } |
4555 | if (obj4) { | |
d55e5bfc | 4556 | { |
1bd55598 RD |
4557 | arg5 = &temp5; |
4558 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 4559 | } |
1bd55598 RD |
4560 | } |
4561 | if (obj5) { | |
4562 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
4563 | if (!SWIG_IsOK(ecode6)) { | |
4564 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'"); | |
4565 | } | |
4566 | arg6 = static_cast< long >(val6); | |
4567 | } | |
4568 | if (obj6) { | |
4569 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
4570 | if (!SWIG_IsOK(res7)) { | |
4571 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
b1fcee84 | 4572 | } |
1bd55598 RD |
4573 | if (!argp7) { |
4574 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
4575 | } | |
4576 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
4577 | } | |
4578 | if (obj7) { | |
b1fcee84 | 4579 | { |
1bd55598 RD |
4580 | arg8 = wxString_in_helper(obj7); |
4581 | if (arg8 == NULL) SWIG_fail; | |
4582 | temp8 = true; | |
b1fcee84 | 4583 | } |
1bd55598 RD |
4584 | } |
4585 | { | |
4586 | if (!wxPyCheckForApp()) SWIG_fail; | |
4587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4588 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
4589 | wxPyEndAllowThreads(__tstate); | |
4590 | if (PyErr_Occurred()) SWIG_fail; | |
4591 | } | |
4592 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 ); | |
4593 | { | |
4594 | if (temp3) | |
4595 | delete arg3; | |
4596 | } | |
4597 | { | |
4598 | if (temp8) | |
4599 | delete arg8; | |
4600 | } | |
4601 | return resultobj; | |
4602 | fail: | |
4603 | { | |
4604 | if (temp3) | |
4605 | delete arg3; | |
4606 | } | |
4607 | { | |
4608 | if (temp8) | |
4609 | delete arg8; | |
4610 | } | |
4611 | return NULL; | |
b1fcee84 RD |
4612 | } |
4613 | ||
4614 | ||
1bd55598 RD |
4615 | SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4616 | PyObject *resultobj = 0; | |
4617 | wxCheckBox *result = 0 ; | |
4618 | ||
4619 | if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail; | |
4620 | { | |
4621 | if (!wxPyCheckForApp()) SWIG_fail; | |
4622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4623 | result = (wxCheckBox *)new wxCheckBox(); | |
4624 | wxPyEndAllowThreads(__tstate); | |
4625 | if (PyErr_Occurred()) SWIG_fail; | |
4626 | } | |
4627 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 ); | |
4628 | return resultobj; | |
4629 | fail: | |
4630 | return NULL; | |
4631 | } | |
4632 | ||
4633 | ||
4634 | SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4635 | PyObject *resultobj = 0; | |
4636 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4637 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4638 | int arg3 = (int) -1 ; | |
4639 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4640 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4641 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4642 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4643 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4644 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4645 | long arg7 = (long) 0 ; | |
4646 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4647 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4648 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
4649 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4650 | bool result; | |
4651 | void *argp1 = 0 ; | |
4652 | int res1 = 0 ; | |
4653 | void *argp2 = 0 ; | |
4654 | int res2 = 0 ; | |
4655 | int val3 ; | |
4656 | int ecode3 = 0 ; | |
4657 | bool temp4 = false ; | |
4658 | wxPoint temp5 ; | |
4659 | wxSize temp6 ; | |
4660 | long val7 ; | |
4661 | int ecode7 = 0 ; | |
4662 | void *argp8 = 0 ; | |
4663 | int res8 = 0 ; | |
4664 | bool temp9 = false ; | |
4665 | PyObject * obj0 = 0 ; | |
4666 | PyObject * obj1 = 0 ; | |
4667 | PyObject * obj2 = 0 ; | |
4668 | PyObject * obj3 = 0 ; | |
4669 | PyObject * obj4 = 0 ; | |
4670 | PyObject * obj5 = 0 ; | |
4671 | PyObject * obj6 = 0 ; | |
4672 | PyObject * obj7 = 0 ; | |
4673 | PyObject * obj8 = 0 ; | |
4674 | char * kwnames[] = { | |
4675 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4676 | }; | |
4677 | ||
4678 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
4679 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4680 | if (!SWIG_IsOK(res1)) { | |
4681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4682 | } | |
4683 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4684 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4685 | if (!SWIG_IsOK(res2)) { | |
4686 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4687 | } | |
4688 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4689 | if (obj2) { | |
4690 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4691 | if (!SWIG_IsOK(ecode3)) { | |
4692 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
4693 | } | |
4694 | arg3 = static_cast< int >(val3); | |
4695 | } | |
4696 | if (obj3) { | |
36ed4f51 | 4697 | { |
1bd55598 RD |
4698 | arg4 = wxString_in_helper(obj3); |
4699 | if (arg4 == NULL) SWIG_fail; | |
4700 | temp4 = true; | |
36ed4f51 | 4701 | } |
1bd55598 RD |
4702 | } |
4703 | if (obj4) { | |
36ed4f51 | 4704 | { |
1bd55598 RD |
4705 | arg5 = &temp5; |
4706 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 4707 | } |
1bd55598 RD |
4708 | } |
4709 | if (obj5) { | |
d55e5bfc | 4710 | { |
1bd55598 RD |
4711 | arg6 = &temp6; |
4712 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 4713 | } |
1bd55598 RD |
4714 | } |
4715 | if (obj6) { | |
4716 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
4717 | if (!SWIG_IsOK(ecode7)) { | |
4718 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
4719 | } | |
4720 | arg7 = static_cast< long >(val7); | |
4721 | } | |
4722 | if (obj7) { | |
4723 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
4724 | if (!SWIG_IsOK(res8)) { | |
4725 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 4726 | } |
1bd55598 RD |
4727 | if (!argp8) { |
4728 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
4729 | } | |
4730 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
4731 | } | |
4732 | if (obj8) { | |
36ed4f51 | 4733 | { |
1bd55598 RD |
4734 | arg9 = wxString_in_helper(obj8); |
4735 | if (arg9 == NULL) SWIG_fail; | |
4736 | temp9 = true; | |
36ed4f51 | 4737 | } |
1bd55598 RD |
4738 | } |
4739 | { | |
4740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4741 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4742 | wxPyEndAllowThreads(__tstate); | |
4743 | if (PyErr_Occurred()) SWIG_fail; | |
4744 | } | |
4745 | { | |
4746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4747 | } | |
4748 | { | |
4749 | if (temp4) | |
4750 | delete arg4; | |
4751 | } | |
4752 | { | |
4753 | if (temp9) | |
4754 | delete arg9; | |
4755 | } | |
4756 | return resultobj; | |
4757 | fail: | |
4758 | { | |
4759 | if (temp4) | |
4760 | delete arg4; | |
4761 | } | |
4762 | { | |
4763 | if (temp9) | |
4764 | delete arg9; | |
4765 | } | |
4766 | return NULL; | |
d55e5bfc RD |
4767 | } |
4768 | ||
4769 | ||
1bd55598 RD |
4770 | SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4771 | PyObject *resultobj = 0; | |
4772 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4773 | bool result; | |
4774 | void *argp1 = 0 ; | |
4775 | int res1 = 0 ; | |
4776 | PyObject *swig_obj[1] ; | |
4777 | ||
4778 | if (!args) SWIG_fail; | |
4779 | swig_obj[0] = args; | |
4780 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4781 | if (!SWIG_IsOK(res1)) { | |
4782 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4783 | } | |
4784 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4785 | { | |
4786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4787 | result = (bool)(arg1)->GetValue(); | |
4788 | wxPyEndAllowThreads(__tstate); | |
4789 | if (PyErr_Occurred()) SWIG_fail; | |
4790 | } | |
4791 | { | |
4792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4793 | } | |
4794 | return resultobj; | |
4795 | fail: | |
4796 | return NULL; | |
d55e5bfc RD |
4797 | } |
4798 | ||
4799 | ||
1bd55598 RD |
4800 | SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4801 | PyObject *resultobj = 0; | |
4802 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4803 | bool result; | |
4804 | void *argp1 = 0 ; | |
4805 | int res1 = 0 ; | |
4806 | PyObject *swig_obj[1] ; | |
4807 | ||
4808 | if (!args) SWIG_fail; | |
4809 | swig_obj[0] = args; | |
4810 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4811 | if (!SWIG_IsOK(res1)) { | |
4812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4813 | } | |
4814 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4815 | { | |
4816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4817 | result = (bool)(arg1)->IsChecked(); | |
4818 | wxPyEndAllowThreads(__tstate); | |
4819 | if (PyErr_Occurred()) SWIG_fail; | |
4820 | } | |
4821 | { | |
4822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4823 | } | |
4824 | return resultobj; | |
4825 | fail: | |
4826 | return NULL; | |
4827 | } | |
4828 | ||
4829 | ||
4830 | SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4831 | PyObject *resultobj = 0; | |
4832 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4833 | bool arg2 ; | |
4834 | void *argp1 = 0 ; | |
4835 | int res1 = 0 ; | |
4836 | bool val2 ; | |
4837 | int ecode2 = 0 ; | |
4838 | PyObject * obj0 = 0 ; | |
4839 | PyObject * obj1 = 0 ; | |
4840 | char * kwnames[] = { | |
4841 | (char *) "self",(char *) "state", NULL | |
4842 | }; | |
4843 | ||
4844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
4845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4846 | if (!SWIG_IsOK(res1)) { | |
4847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4848 | } | |
4849 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4850 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4851 | if (!SWIG_IsOK(ecode2)) { | |
4852 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
4853 | } | |
4854 | arg2 = static_cast< bool >(val2); | |
4855 | { | |
4856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4857 | (arg1)->SetValue(arg2); | |
4858 | wxPyEndAllowThreads(__tstate); | |
4859 | if (PyErr_Occurred()) SWIG_fail; | |
4860 | } | |
4861 | resultobj = SWIG_Py_Void(); | |
4862 | return resultobj; | |
4863 | fail: | |
4864 | return NULL; | |
d55e5bfc | 4865 | } |
1bd55598 RD |
4866 | |
4867 | ||
4868 | SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4869 | PyObject *resultobj = 0; | |
4870 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4871 | wxCheckBoxState result; | |
4872 | void *argp1 = 0 ; | |
4873 | int res1 = 0 ; | |
4874 | PyObject *swig_obj[1] ; | |
4875 | ||
4876 | if (!args) SWIG_fail; | |
4877 | swig_obj[0] = args; | |
4878 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4879 | if (!SWIG_IsOK(res1)) { | |
4880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
4881 | } | |
4882 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4883 | { | |
4884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4885 | result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue(); | |
4886 | wxPyEndAllowThreads(__tstate); | |
4887 | if (PyErr_Occurred()) SWIG_fail; | |
4888 | } | |
4889 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4890 | return resultobj; | |
4891 | fail: | |
4892 | return NULL; | |
4893 | } | |
4894 | ||
4895 | ||
4896 | SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4897 | PyObject *resultobj = 0; | |
4898 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4899 | wxCheckBoxState arg2 ; | |
4900 | void *argp1 = 0 ; | |
4901 | int res1 = 0 ; | |
4902 | int val2 ; | |
4903 | int ecode2 = 0 ; | |
4904 | PyObject * obj0 = 0 ; | |
4905 | PyObject * obj1 = 0 ; | |
4906 | char * kwnames[] = { | |
4907 | (char *) "self",(char *) "state", NULL | |
4908 | }; | |
4909 | ||
4910 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
4911 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4912 | if (!SWIG_IsOK(res1)) { | |
4913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4914 | } | |
4915 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4916 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4917 | if (!SWIG_IsOK(ecode2)) { | |
4918 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'"); | |
4919 | } | |
4920 | arg2 = static_cast< wxCheckBoxState >(val2); | |
4921 | { | |
4922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4923 | (arg1)->Set3StateValue(arg2); | |
4924 | wxPyEndAllowThreads(__tstate); | |
4925 | if (PyErr_Occurred()) SWIG_fail; | |
4926 | } | |
4927 | resultobj = SWIG_Py_Void(); | |
4928 | return resultobj; | |
4929 | fail: | |
4930 | return NULL; | |
d55e5bfc RD |
4931 | } |
4932 | ||
4933 | ||
1bd55598 RD |
4934 | SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4935 | PyObject *resultobj = 0; | |
4936 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4937 | bool result; | |
4938 | void *argp1 = 0 ; | |
4939 | int res1 = 0 ; | |
4940 | PyObject *swig_obj[1] ; | |
4941 | ||
4942 | if (!args) SWIG_fail; | |
4943 | swig_obj[0] = args; | |
4944 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4945 | if (!SWIG_IsOK(res1)) { | |
4946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
4947 | } | |
4948 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4949 | { | |
4950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4951 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
4952 | wxPyEndAllowThreads(__tstate); | |
4953 | if (PyErr_Occurred()) SWIG_fail; | |
4954 | } | |
4955 | { | |
4956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4957 | } | |
4958 | return resultobj; | |
4959 | fail: | |
4960 | return NULL; | |
d55e5bfc RD |
4961 | } |
4962 | ||
4963 | ||
1bd55598 RD |
4964 | SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4965 | PyObject *resultobj = 0; | |
4966 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4967 | bool result; | |
4968 | void *argp1 = 0 ; | |
4969 | int res1 = 0 ; | |
4970 | PyObject *swig_obj[1] ; | |
4971 | ||
4972 | if (!args) SWIG_fail; | |
4973 | swig_obj[0] = args; | |
4974 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4975 | if (!SWIG_IsOK(res1)) { | |
4976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
4977 | } | |
4978 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4979 | { | |
4980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4981 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
4982 | wxPyEndAllowThreads(__tstate); | |
4983 | if (PyErr_Occurred()) SWIG_fail; | |
4984 | } | |
4985 | { | |
4986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4987 | } | |
4988 | return resultobj; | |
4989 | fail: | |
4990 | return NULL; | |
d55e5bfc RD |
4991 | } |
4992 | ||
4993 | ||
1bd55598 RD |
4994 | SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4995 | PyObject *resultobj = 0; | |
4996 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
4997 | SwigValueWrapper<wxVisualAttributes > result; | |
4998 | int val1 ; | |
4999 | int ecode1 = 0 ; | |
5000 | PyObject * obj0 = 0 ; | |
5001 | char * kwnames[] = { | |
5002 | (char *) "variant", NULL | |
5003 | }; | |
5004 | ||
5005 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5006 | if (obj0) { | |
5007 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5008 | if (!SWIG_IsOK(ecode1)) { | |
5009 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5010 | } | |
5011 | arg1 = static_cast< wxWindowVariant >(val1); | |
5012 | } | |
5013 | { | |
5014 | if (!wxPyCheckForApp()) SWIG_fail; | |
5015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5016 | result = wxCheckBox::GetClassDefaultAttributes(arg1); | |
5017 | wxPyEndAllowThreads(__tstate); | |
5018 | if (PyErr_Occurred()) SWIG_fail; | |
5019 | } | |
5020 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5021 | return resultobj; | |
5022 | fail: | |
5023 | return NULL; | |
d55e5bfc RD |
5024 | } |
5025 | ||
5026 | ||
1bd55598 RD |
5027 | SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5028 | PyObject *obj; | |
5029 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5030 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj)); | |
5031 | return SWIG_Py_Void(); | |
d55e5bfc RD |
5032 | } |
5033 | ||
1bd55598 RD |
5034 | SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5035 | return SWIG_Python_InitShadowInstance(args); | |
5036 | } | |
d55e5bfc | 5037 | |
1bd55598 RD |
5038 | SWIGINTERN int ChoiceNameStr_set(PyObject *) { |
5039 | SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only."); | |
5040 | return 1; | |
d55e5bfc RD |
5041 | } |
5042 | ||
5043 | ||
1bd55598 RD |
5044 | SWIGINTERN PyObject *ChoiceNameStr_get(void) { |
5045 | PyObject *pyobj = 0; | |
5046 | ||
5047 | { | |
5048 | #if wxUSE_UNICODE | |
5049 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
5050 | #else | |
5051 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
5052 | #endif | |
5053 | } | |
5054 | return pyobj; | |
5055 | } | |
5056 | ||
5057 | ||
5058 | SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5059 | PyObject *resultobj = 0; | |
5060 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5061 | int arg2 = (int) -1 ; | |
5062 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5063 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5064 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5065 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5066 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
5067 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5068 | long arg6 = (long) 0 ; | |
5069 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5070 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5071 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
5072 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5073 | wxChoice *result = 0 ; | |
5074 | void *argp1 = 0 ; | |
5075 | int res1 = 0 ; | |
5076 | int val2 ; | |
5077 | int ecode2 = 0 ; | |
5078 | wxPoint temp3 ; | |
5079 | wxSize temp4 ; | |
5080 | bool temp5 = false ; | |
5081 | long val6 ; | |
5082 | int ecode6 = 0 ; | |
5083 | void *argp7 = 0 ; | |
5084 | int res7 = 0 ; | |
5085 | bool temp8 = false ; | |
5086 | PyObject * obj0 = 0 ; | |
5087 | PyObject * obj1 = 0 ; | |
5088 | PyObject * obj2 = 0 ; | |
5089 | PyObject * obj3 = 0 ; | |
5090 | PyObject * obj4 = 0 ; | |
5091 | PyObject * obj5 = 0 ; | |
5092 | PyObject * obj6 = 0 ; | |
5093 | PyObject * obj7 = 0 ; | |
5094 | char * kwnames[] = { | |
5095 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5096 | }; | |
5097 | ||
5098 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
5099 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5100 | if (!SWIG_IsOK(res1)) { | |
5101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5102 | } | |
5103 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5104 | if (obj1) { | |
5105 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5106 | if (!SWIG_IsOK(ecode2)) { | |
5107 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'"); | |
5108 | } | |
5109 | arg2 = static_cast< int >(val2); | |
5110 | } | |
5111 | if (obj2) { | |
36ed4f51 | 5112 | { |
1bd55598 RD |
5113 | arg3 = &temp3; |
5114 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 5115 | } |
1bd55598 RD |
5116 | } |
5117 | if (obj3) { | |
d55e5bfc | 5118 | { |
1bd55598 RD |
5119 | arg4 = &temp4; |
5120 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 5121 | } |
1bd55598 RD |
5122 | } |
5123 | if (obj4) { | |
d55e5bfc | 5124 | { |
1bd55598 RD |
5125 | if (! PySequence_Check(obj4)) { |
5126 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5127 | SWIG_fail; | |
5128 | } | |
5129 | arg5 = new wxArrayString; | |
5130 | temp5 = true; | |
5131 | int i, len=PySequence_Length(obj4); | |
5132 | for (i=0; i<len; i++) { | |
5133 | PyObject* item = PySequence_GetItem(obj4, i); | |
5134 | wxString* s = wxString_in_helper(item); | |
5135 | if (PyErr_Occurred()) SWIG_fail; | |
5136 | arg5->Add(*s); | |
5137 | delete s; | |
5138 | Py_DECREF(item); | |
5139 | } | |
d55e5bfc | 5140 | } |
1bd55598 RD |
5141 | } |
5142 | if (obj5) { | |
5143 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
5144 | if (!SWIG_IsOK(ecode6)) { | |
5145 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'"); | |
5146 | } | |
5147 | arg6 = static_cast< long >(val6); | |
5148 | } | |
5149 | if (obj6) { | |
5150 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
5151 | if (!SWIG_IsOK(res7)) { | |
5152 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 5153 | } |
1bd55598 RD |
5154 | if (!argp7) { |
5155 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
5156 | } | |
5157 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
5158 | } | |
5159 | if (obj7) { | |
d55e5bfc | 5160 | { |
1bd55598 RD |
5161 | arg8 = wxString_in_helper(obj7); |
5162 | if (arg8 == NULL) SWIG_fail; | |
5163 | temp8 = true; | |
d55e5bfc | 5164 | } |
1bd55598 RD |
5165 | } |
5166 | { | |
5167 | if (!wxPyCheckForApp()) SWIG_fail; | |
5168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5169 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5170 | wxPyEndAllowThreads(__tstate); | |
5171 | if (PyErr_Occurred()) SWIG_fail; | |
5172 | } | |
5173 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 ); | |
5174 | { | |
5175 | if (temp5) delete arg5; | |
5176 | } | |
5177 | { | |
5178 | if (temp8) | |
5179 | delete arg8; | |
5180 | } | |
5181 | return resultobj; | |
5182 | fail: | |
5183 | { | |
5184 | if (temp5) delete arg5; | |
5185 | } | |
5186 | { | |
5187 | if (temp8) | |
5188 | delete arg8; | |
5189 | } | |
5190 | return NULL; | |
d55e5bfc RD |
5191 | } |
5192 | ||
5193 | ||
1bd55598 RD |
5194 | SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5195 | PyObject *resultobj = 0; | |
5196 | wxChoice *result = 0 ; | |
5197 | ||
5198 | if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail; | |
5199 | { | |
5200 | if (!wxPyCheckForApp()) SWIG_fail; | |
5201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5202 | result = (wxChoice *)new wxChoice(); | |
5203 | wxPyEndAllowThreads(__tstate); | |
5204 | if (PyErr_Occurred()) SWIG_fail; | |
5205 | } | |
5206 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 ); | |
5207 | return resultobj; | |
5208 | fail: | |
5209 | return NULL; | |
5210 | } | |
5211 | ||
5212 | ||
5213 | SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5214 | PyObject *resultobj = 0; | |
5215 | wxChoice *arg1 = (wxChoice *) 0 ; | |
5216 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5217 | int arg3 = (int) -1 ; | |
5218 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5219 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5220 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5221 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5222 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5223 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5224 | long arg7 = (long) 0 ; | |
5225 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5226 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5227 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
5228 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5229 | bool result; | |
5230 | void *argp1 = 0 ; | |
5231 | int res1 = 0 ; | |
5232 | void *argp2 = 0 ; | |
5233 | int res2 = 0 ; | |
5234 | int val3 ; | |
5235 | int ecode3 = 0 ; | |
5236 | wxPoint temp4 ; | |
5237 | wxSize temp5 ; | |
5238 | bool temp6 = false ; | |
5239 | long val7 ; | |
5240 | int ecode7 = 0 ; | |
5241 | void *argp8 = 0 ; | |
5242 | int res8 = 0 ; | |
5243 | bool temp9 = false ; | |
5244 | PyObject * obj0 = 0 ; | |
5245 | PyObject * obj1 = 0 ; | |
5246 | PyObject * obj2 = 0 ; | |
5247 | PyObject * obj3 = 0 ; | |
5248 | PyObject * obj4 = 0 ; | |
5249 | PyObject * obj5 = 0 ; | |
5250 | PyObject * obj6 = 0 ; | |
5251 | PyObject * obj7 = 0 ; | |
5252 | PyObject * obj8 = 0 ; | |
5253 | char * kwnames[] = { | |
5254 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5255 | }; | |
5256 | ||
5257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
5258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 ); | |
5259 | if (!SWIG_IsOK(res1)) { | |
5260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'"); | |
5261 | } | |
5262 | arg1 = reinterpret_cast< wxChoice * >(argp1); | |
5263 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5264 | if (!SWIG_IsOK(res2)) { | |
5265 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5266 | } | |
5267 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5268 | if (obj2) { | |
5269 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5270 | if (!SWIG_IsOK(ecode3)) { | |
5271 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'"); | |
5272 | } | |
5273 | arg3 = static_cast< int >(val3); | |
5274 | } | |
5275 | if (obj3) { | |
d55e5bfc | 5276 | { |
1bd55598 RD |
5277 | arg4 = &temp4; |
5278 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 5279 | } |
1bd55598 RD |
5280 | } |
5281 | if (obj4) { | |
d55e5bfc | 5282 | { |
1bd55598 RD |
5283 | arg5 = &temp5; |
5284 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 5285 | } |
1bd55598 RD |
5286 | } |
5287 | if (obj5) { | |
d55e5bfc | 5288 | { |
1bd55598 RD |
5289 | if (! PySequence_Check(obj5)) { |
5290 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5291 | SWIG_fail; | |
5292 | } | |
5293 | arg6 = new wxArrayString; | |
5294 | temp6 = true; | |
5295 | int i, len=PySequence_Length(obj5); | |
5296 | for (i=0; i<len; i++) { | |
5297 | PyObject* item = PySequence_GetItem(obj5, i); | |
5298 | wxString* s = wxString_in_helper(item); | |
5299 | if (PyErr_Occurred()) SWIG_fail; | |
5300 | arg6->Add(*s); | |
5301 | delete s; | |
5302 | Py_DECREF(item); | |
5303 | } | |
5304 | } | |
5305 | } | |
5306 | if (obj6) { | |
5307 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
5308 | if (!SWIG_IsOK(ecode7)) { | |
5309 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'"); | |
5310 | } | |
5311 | arg7 = static_cast< long >(val7); | |
5312 | } | |
5313 | if (obj7) { | |
5314 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
5315 | if (!SWIG_IsOK(res8)) { | |
5316 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 5317 | } |
1bd55598 RD |
5318 | if (!argp8) { |
5319 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5320 | } | |
5321 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
5322 | } | |
5323 | if (obj8) { | |
d55e5bfc | 5324 | { |
1bd55598 RD |
5325 | arg9 = wxString_in_helper(obj8); |
5326 | if (arg9 == NULL) SWIG_fail; | |
5327 | temp9 = true; | |
d55e5bfc | 5328 | } |
1bd55598 RD |
5329 | } |
5330 | { | |
5331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5332 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5333 | wxPyEndAllowThreads(__tstate); | |
5334 | if (PyErr_Occurred()) SWIG_fail; | |
5335 | } | |
5336 | { | |
5337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5338 | } | |
5339 | { | |
5340 | if (temp6) delete arg6; | |
5341 | } | |
5342 | { | |
5343 | if (temp9) | |
5344 | delete arg9; | |
5345 | } | |
5346 | return resultobj; | |
5347 | fail: | |
5348 | { | |
5349 | if (temp6) delete arg6; | |
5350 | } | |
5351 | { | |
5352 | if (temp9) | |
5353 | delete arg9; | |
5354 | } | |
5355 | return NULL; | |
d55e5bfc RD |
5356 | } |
5357 | ||
5358 | ||
1bd55598 RD |
5359 | SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5360 | PyObject *resultobj = 0; | |
5361 | wxChoice *arg1 = (wxChoice *) 0 ; | |
5362 | int result; | |
5363 | void *argp1 = 0 ; | |
5364 | int res1 = 0 ; | |
5365 | PyObject *swig_obj[1] ; | |
5366 | ||
5367 | if (!args) SWIG_fail; | |
5368 | swig_obj[0] = args; | |
5369 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 ); | |
5370 | if (!SWIG_IsOK(res1)) { | |
5371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'"); | |
5372 | } | |
5373 | arg1 = reinterpret_cast< wxChoice * >(argp1); | |
5374 | { | |
5375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5376 | result = (int)((wxChoice const *)arg1)->GetCurrentSelection(); | |
5377 | wxPyEndAllowThreads(__tstate); | |
5378 | if (PyErr_Occurred()) SWIG_fail; | |
5379 | } | |
5380 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5381 | return resultobj; | |
5382 | fail: | |
5383 | return NULL; | |
5384 | } | |
5385 | ||
5386 | ||
5387 | SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5388 | PyObject *resultobj = 0; | |
5389 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5390 | SwigValueWrapper<wxVisualAttributes > result; | |
5391 | int val1 ; | |
5392 | int ecode1 = 0 ; | |
5393 | PyObject * obj0 = 0 ; | |
5394 | char * kwnames[] = { | |
5395 | (char *) "variant", NULL | |
5396 | }; | |
5397 | ||
5398 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5399 | if (obj0) { | |
5400 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5401 | if (!SWIG_IsOK(ecode1)) { | |
5402 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5403 | } | |
5404 | arg1 = static_cast< wxWindowVariant >(val1); | |
5405 | } | |
5406 | { | |
5407 | if (!wxPyCheckForApp()) SWIG_fail; | |
5408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5409 | result = wxChoice::GetClassDefaultAttributes(arg1); | |
5410 | wxPyEndAllowThreads(__tstate); | |
5411 | if (PyErr_Occurred()) SWIG_fail; | |
5412 | } | |
5413 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5414 | return resultobj; | |
5415 | fail: | |
5416 | return NULL; | |
f20a2e1f RD |
5417 | } |
5418 | ||
5419 | ||
1bd55598 RD |
5420 | SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5421 | PyObject *obj; | |
5422 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5423 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj)); | |
5424 | return SWIG_Py_Void(); | |
d55e5bfc | 5425 | } |
1bd55598 RD |
5426 | |
5427 | SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5428 | return SWIG_Python_InitShadowInstance(args); | |
5429 | } | |
5430 | ||
5431 | SWIGINTERN int ComboBoxNameStr_set(PyObject *) { | |
5432 | SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only."); | |
5433 | return 1; | |
d55e5bfc RD |
5434 | } |
5435 | ||
5436 | ||
1bd55598 RD |
5437 | SWIGINTERN PyObject *ComboBoxNameStr_get(void) { |
5438 | PyObject *pyobj = 0; | |
5439 | ||
5440 | { | |
d55e5bfc | 5441 | #if wxUSE_UNICODE |
1bd55598 | 5442 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); |
d55e5bfc | 5443 | #else |
1bd55598 | 5444 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); |
d55e5bfc | 5445 | #endif |
1bd55598 RD |
5446 | } |
5447 | return pyobj; | |
5448 | } | |
5449 | ||
5450 | ||
5451 | SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5452 | PyObject *resultobj = 0; | |
5453 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5454 | int arg2 = (int) -1 ; | |
5455 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5456 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5457 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5458 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5459 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5460 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5461 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5462 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5463 | long arg7 = (long) 0 ; | |
5464 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5465 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5466 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
5467 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5468 | wxComboBox *result = 0 ; | |
5469 | void *argp1 = 0 ; | |
5470 | int res1 = 0 ; | |
5471 | int val2 ; | |
5472 | int ecode2 = 0 ; | |
5473 | bool temp3 = false ; | |
5474 | wxPoint temp4 ; | |
5475 | wxSize temp5 ; | |
5476 | bool temp6 = false ; | |
5477 | long val7 ; | |
5478 | int ecode7 = 0 ; | |
5479 | void *argp8 = 0 ; | |
5480 | int res8 = 0 ; | |
5481 | bool temp9 = false ; | |
5482 | PyObject * obj0 = 0 ; | |
5483 | PyObject * obj1 = 0 ; | |
5484 | PyObject * obj2 = 0 ; | |
5485 | PyObject * obj3 = 0 ; | |
5486 | PyObject * obj4 = 0 ; | |
5487 | PyObject * obj5 = 0 ; | |
5488 | PyObject * obj6 = 0 ; | |
5489 | PyObject * obj7 = 0 ; | |
5490 | PyObject * obj8 = 0 ; | |
5491 | char * kwnames[] = { | |
5492 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5493 | }; | |
5494 | ||
5495 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
5496 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5497 | if (!SWIG_IsOK(res1)) { | |
5498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5499 | } | |
5500 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5501 | if (obj1) { | |
5502 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5503 | if (!SWIG_IsOK(ecode2)) { | |
5504 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'"); | |
5505 | } | |
5506 | arg2 = static_cast< int >(val2); | |
5507 | } | |
5508 | if (obj2) { | |
d55e5bfc | 5509 | { |
1bd55598 RD |
5510 | arg3 = wxString_in_helper(obj2); |
5511 | if (arg3 == NULL) SWIG_fail; | |
5512 | temp3 = true; | |
d55e5bfc | 5513 | } |
1bd55598 RD |
5514 | } |
5515 | if (obj3) { | |
d55e5bfc | 5516 | { |
1bd55598 RD |
5517 | arg4 = &temp4; |
5518 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 5519 | } |
1bd55598 RD |
5520 | } |
5521 | if (obj4) { | |
d55e5bfc | 5522 | { |
1bd55598 RD |
5523 | arg5 = &temp5; |
5524 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 5525 | } |
1bd55598 RD |
5526 | } |
5527 | if (obj5) { | |
d55e5bfc | 5528 | { |
1bd55598 RD |
5529 | if (! PySequence_Check(obj5)) { |
5530 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5531 | SWIG_fail; | |
5532 | } | |
5533 | arg6 = new wxArrayString; | |
5534 | temp6 = true; | |
5535 | int i, len=PySequence_Length(obj5); | |
5536 | for (i=0; i<len; i++) { | |
5537 | PyObject* item = PySequence_GetItem(obj5, i); | |
5538 | wxString* s = wxString_in_helper(item); | |
5539 | if (PyErr_Occurred()) SWIG_fail; | |
5540 | arg6->Add(*s); | |
5541 | delete s; | |
5542 | Py_DECREF(item); | |
5543 | } | |
d55e5bfc | 5544 | } |
1bd55598 RD |
5545 | } |
5546 | if (obj6) { | |
5547 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
5548 | if (!SWIG_IsOK(ecode7)) { | |
5549 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'"); | |
5550 | } | |
5551 | arg7 = static_cast< long >(val7); | |
5552 | } | |
5553 | if (obj7) { | |
5554 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
5555 | if (!SWIG_IsOK(res8)) { | |
5556 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5557 | } | |
5558 | if (!argp8) { | |
5559 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5560 | } | |
5561 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
5562 | } | |
5563 | if (obj8) { | |
d55e5bfc | 5564 | { |
1bd55598 RD |
5565 | arg9 = wxString_in_helper(obj8); |
5566 | if (arg9 == NULL) SWIG_fail; | |
5567 | temp9 = true; | |
d55e5bfc | 5568 | } |
1bd55598 RD |
5569 | } |
5570 | { | |
5571 | if (!wxPyCheckForApp()) SWIG_fail; | |
5572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5573 | 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); | |
5574 | wxPyEndAllowThreads(__tstate); | |
5575 | if (PyErr_Occurred()) SWIG_fail; | |
5576 | } | |
5577 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 ); | |
5578 | { | |
5579 | if (temp3) | |
5580 | delete arg3; | |
5581 | } | |
5582 | { | |
5583 | if (temp6) delete arg6; | |
5584 | } | |
5585 | { | |
5586 | if (temp9) | |
5587 | delete arg9; | |
5588 | } | |
5589 | return resultobj; | |
5590 | fail: | |
5591 | { | |
5592 | if (temp3) | |
5593 | delete arg3; | |
5594 | } | |
5595 | { | |
5596 | if (temp6) delete arg6; | |
5597 | } | |
5598 | { | |
5599 | if (temp9) | |
5600 | delete arg9; | |
5601 | } | |
5602 | return NULL; | |
d55e5bfc RD |
5603 | } |
5604 | ||
5605 | ||
1bd55598 RD |
5606 | SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5607 | PyObject *resultobj = 0; | |
5608 | wxComboBox *result = 0 ; | |
5609 | ||
5610 | if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail; | |
5611 | { | |
5612 | if (!wxPyCheckForApp()) SWIG_fail; | |
5613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5614 | result = (wxComboBox *)new wxComboBox(); | |
5615 | wxPyEndAllowThreads(__tstate); | |
5616 | if (PyErr_Occurred()) SWIG_fail; | |
5617 | } | |
5618 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 ); | |
5619 | return resultobj; | |
5620 | fail: | |
5621 | return NULL; | |
5622 | } | |
5623 | ||
5624 | ||
5625 | SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5626 | PyObject *resultobj = 0; | |
5627 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5628 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5629 | int arg3 = (int) -1 ; | |
5630 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5631 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
5632 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
5633 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5634 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5635 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5636 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
5637 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
5638 | long arg8 = (long) 0 ; | |
5639 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
5640 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
5641 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
5642 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
5643 | bool result; | |
5644 | void *argp1 = 0 ; | |
5645 | int res1 = 0 ; | |
5646 | void *argp2 = 0 ; | |
5647 | int res2 = 0 ; | |
5648 | int val3 ; | |
5649 | int ecode3 = 0 ; | |
5650 | bool temp4 = false ; | |
5651 | wxPoint temp5 ; | |
5652 | wxSize temp6 ; | |
5653 | bool temp7 = false ; | |
5654 | long val8 ; | |
5655 | int ecode8 = 0 ; | |
5656 | void *argp9 = 0 ; | |
5657 | int res9 = 0 ; | |
5658 | bool temp10 = false ; | |
5659 | PyObject * obj0 = 0 ; | |
5660 | PyObject * obj1 = 0 ; | |
5661 | PyObject * obj2 = 0 ; | |
5662 | PyObject * obj3 = 0 ; | |
5663 | PyObject * obj4 = 0 ; | |
5664 | PyObject * obj5 = 0 ; | |
5665 | PyObject * obj6 = 0 ; | |
5666 | PyObject * obj7 = 0 ; | |
5667 | PyObject * obj8 = 0 ; | |
5668 | PyObject * obj9 = 0 ; | |
5669 | char * kwnames[] = { | |
5670 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5671 | }; | |
5672 | ||
5673 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
5674 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5675 | if (!SWIG_IsOK(res1)) { | |
5676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5677 | } | |
5678 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5679 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5680 | if (!SWIG_IsOK(res2)) { | |
5681 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5682 | } | |
5683 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5684 | if (obj2) { | |
5685 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5686 | if (!SWIG_IsOK(ecode3)) { | |
5687 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
5688 | } | |
5689 | arg3 = static_cast< int >(val3); | |
5690 | } | |
5691 | if (obj3) { | |
d55e5bfc | 5692 | { |
1bd55598 RD |
5693 | arg4 = wxString_in_helper(obj3); |
5694 | if (arg4 == NULL) SWIG_fail; | |
5695 | temp4 = true; | |
d55e5bfc | 5696 | } |
1bd55598 RD |
5697 | } |
5698 | if (obj4) { | |
d55e5bfc | 5699 | { |
1bd55598 RD |
5700 | arg5 = &temp5; |
5701 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 5702 | } |
1bd55598 RD |
5703 | } |
5704 | if (obj5) { | |
d55e5bfc | 5705 | { |
1bd55598 RD |
5706 | arg6 = &temp6; |
5707 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 5708 | } |
1bd55598 RD |
5709 | } |
5710 | if (obj6) { | |
d55e5bfc | 5711 | { |
1bd55598 RD |
5712 | if (! PySequence_Check(obj6)) { |
5713 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5714 | SWIG_fail; | |
5715 | } | |
5716 | arg7 = new wxArrayString; | |
5717 | temp7 = true; | |
5718 | int i, len=PySequence_Length(obj6); | |
5719 | for (i=0; i<len; i++) { | |
5720 | PyObject* item = PySequence_GetItem(obj6, i); | |
5721 | wxString* s = wxString_in_helper(item); | |
5722 | if (PyErr_Occurred()) SWIG_fail; | |
5723 | arg7->Add(*s); | |
5724 | delete s; | |
5725 | Py_DECREF(item); | |
5726 | } | |
d55e5bfc | 5727 | } |
1bd55598 RD |
5728 | } |
5729 | if (obj7) { | |
5730 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
5731 | if (!SWIG_IsOK(ecode8)) { | |
5732 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'"); | |
5733 | } | |
5734 | arg8 = static_cast< long >(val8); | |
5735 | } | |
5736 | if (obj8) { | |
5737 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
5738 | if (!SWIG_IsOK(res9)) { | |
5739 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 5740 | } |
1bd55598 RD |
5741 | if (!argp9) { |
5742 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 5743 | } |
1bd55598 RD |
5744 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
5745 | } | |
5746 | if (obj9) { | |
d55e5bfc | 5747 | { |
1bd55598 RD |
5748 | arg10 = wxString_in_helper(obj9); |
5749 | if (arg10 == NULL) SWIG_fail; | |
5750 | temp10 = true; | |
d55e5bfc | 5751 | } |
1bd55598 RD |
5752 | } |
5753 | { | |
5754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5755 | 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); | |
5756 | wxPyEndAllowThreads(__tstate); | |
5757 | if (PyErr_Occurred()) SWIG_fail; | |
5758 | } | |
5759 | { | |
5760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5761 | } | |
5762 | { | |
5763 | if (temp4) | |
5764 | delete arg4; | |
5765 | } | |
5766 | { | |
5767 | if (temp7) delete arg7; | |
5768 | } | |
5769 | { | |
5770 | if (temp10) | |
5771 | delete arg10; | |
5772 | } | |
5773 | return resultobj; | |
5774 | fail: | |
5775 | { | |
5776 | if (temp4) | |
5777 | delete arg4; | |
5778 | } | |
5779 | { | |
5780 | if (temp7) delete arg7; | |
5781 | } | |
5782 | { | |
5783 | if (temp10) | |
5784 | delete arg10; | |
5785 | } | |
5786 | return NULL; | |
d55e5bfc RD |
5787 | } |
5788 | ||
5789 | ||
1bd55598 RD |
5790 | SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5791 | PyObject *resultobj = 0; | |
5792 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5793 | wxString result; | |
5794 | void *argp1 = 0 ; | |
5795 | int res1 = 0 ; | |
5796 | PyObject *swig_obj[1] ; | |
5797 | ||
5798 | if (!args) SWIG_fail; | |
5799 | swig_obj[0] = args; | |
5800 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5801 | if (!SWIG_IsOK(res1)) { | |
5802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
5803 | } | |
5804 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5805 | { | |
5806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5807 | result = ((wxComboBox const *)arg1)->GetValue(); | |
5808 | wxPyEndAllowThreads(__tstate); | |
5809 | if (PyErr_Occurred()) SWIG_fail; | |
5810 | } | |
5811 | { | |
d55e5bfc | 5812 | #if wxUSE_UNICODE |
1bd55598 | 5813 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 5814 | #else |
1bd55598 | 5815 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 5816 | #endif |
1bd55598 RD |
5817 | } |
5818 | return resultobj; | |
5819 | fail: | |
5820 | return NULL; | |
5821 | } | |
5822 | ||
5823 | ||
5824 | SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5825 | PyObject *resultobj = 0; | |
5826 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5827 | wxString *arg2 = 0 ; | |
5828 | void *argp1 = 0 ; | |
5829 | int res1 = 0 ; | |
5830 | bool temp2 = false ; | |
5831 | PyObject * obj0 = 0 ; | |
5832 | PyObject * obj1 = 0 ; | |
5833 | char * kwnames[] = { | |
5834 | (char *) "self",(char *) "value", NULL | |
5835 | }; | |
5836 | ||
5837 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
5838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5839 | if (!SWIG_IsOK(res1)) { | |
5840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5841 | } | |
5842 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5843 | { | |
5844 | arg2 = wxString_in_helper(obj1); | |
5845 | if (arg2 == NULL) SWIG_fail; | |
5846 | temp2 = true; | |
5847 | } | |
5848 | { | |
5849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5850 | (arg1)->SetValue((wxString const &)*arg2); | |
5851 | wxPyEndAllowThreads(__tstate); | |
5852 | if (PyErr_Occurred()) SWIG_fail; | |
5853 | } | |
5854 | resultobj = SWIG_Py_Void(); | |
5855 | { | |
5856 | if (temp2) | |
5857 | delete arg2; | |
5858 | } | |
5859 | return resultobj; | |
5860 | fail: | |
5861 | { | |
5862 | if (temp2) | |
5863 | delete arg2; | |
5864 | } | |
5865 | return NULL; | |
d55e5bfc RD |
5866 | } |
5867 | ||
5868 | ||
1bd55598 RD |
5869 | SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5870 | PyObject *resultobj = 0; | |
5871 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5872 | void *argp1 = 0 ; | |
5873 | int res1 = 0 ; | |
5874 | PyObject *swig_obj[1] ; | |
5875 | ||
5876 | if (!args) SWIG_fail; | |
5877 | swig_obj[0] = args; | |
5878 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5879 | if (!SWIG_IsOK(res1)) { | |
5880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5881 | } | |
5882 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5883 | { | |
5884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5885 | (arg1)->Copy(); | |
5886 | wxPyEndAllowThreads(__tstate); | |
5887 | if (PyErr_Occurred()) SWIG_fail; | |
5888 | } | |
5889 | resultobj = SWIG_Py_Void(); | |
5890 | return resultobj; | |
5891 | fail: | |
5892 | return NULL; | |
d55e5bfc RD |
5893 | } |
5894 | ||
5895 | ||
1bd55598 RD |
5896 | SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5897 | PyObject *resultobj = 0; | |
5898 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5899 | void *argp1 = 0 ; | |
5900 | int res1 = 0 ; | |
5901 | PyObject *swig_obj[1] ; | |
5902 | ||
5903 | if (!args) SWIG_fail; | |
5904 | swig_obj[0] = args; | |
5905 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5906 | if (!SWIG_IsOK(res1)) { | |
5907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5908 | } | |
5909 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5910 | { | |
5911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5912 | (arg1)->Cut(); | |
5913 | wxPyEndAllowThreads(__tstate); | |
5914 | if (PyErr_Occurred()) SWIG_fail; | |
5915 | } | |
5916 | resultobj = SWIG_Py_Void(); | |
5917 | return resultobj; | |
5918 | fail: | |
5919 | return NULL; | |
d55e5bfc RD |
5920 | } |
5921 | ||
5922 | ||
1bd55598 RD |
5923 | SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5924 | PyObject *resultobj = 0; | |
5925 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5926 | void *argp1 = 0 ; | |
5927 | int res1 = 0 ; | |
5928 | PyObject *swig_obj[1] ; | |
5929 | ||
5930 | if (!args) SWIG_fail; | |
5931 | swig_obj[0] = args; | |
5932 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5933 | if (!SWIG_IsOK(res1)) { | |
5934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5935 | } | |
5936 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5937 | { | |
5938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5939 | (arg1)->Paste(); | |
5940 | wxPyEndAllowThreads(__tstate); | |
5941 | if (PyErr_Occurred()) SWIG_fail; | |
5942 | } | |
5943 | resultobj = SWIG_Py_Void(); | |
5944 | return resultobj; | |
5945 | fail: | |
5946 | return NULL; | |
5947 | } | |
5948 | ||
5949 | ||
5950 | SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5951 | PyObject *resultobj = 0; | |
5952 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5953 | long arg2 ; | |
5954 | void *argp1 = 0 ; | |
5955 | int res1 = 0 ; | |
5956 | long val2 ; | |
5957 | int ecode2 = 0 ; | |
5958 | PyObject * obj0 = 0 ; | |
5959 | PyObject * obj1 = 0 ; | |
5960 | char * kwnames[] = { | |
5961 | (char *) "self",(char *) "pos", NULL | |
5962 | }; | |
5963 | ||
5964 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
5965 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5966 | if (!SWIG_IsOK(res1)) { | |
5967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5968 | } | |
5969 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5970 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
5971 | if (!SWIG_IsOK(ecode2)) { | |
5972 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
5973 | } | |
5974 | arg2 = static_cast< long >(val2); | |
5975 | { | |
5976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5977 | (arg1)->SetInsertionPoint(arg2); | |
5978 | wxPyEndAllowThreads(__tstate); | |
5979 | if (PyErr_Occurred()) SWIG_fail; | |
5980 | } | |
5981 | resultobj = SWIG_Py_Void(); | |
5982 | return resultobj; | |
5983 | fail: | |
5984 | return NULL; | |
d55e5bfc RD |
5985 | } |
5986 | ||
5987 | ||
1bd55598 RD |
5988 | SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5989 | PyObject *resultobj = 0; | |
5990 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5991 | long result; | |
5992 | void *argp1 = 0 ; | |
5993 | int res1 = 0 ; | |
5994 | PyObject *swig_obj[1] ; | |
5995 | ||
5996 | if (!args) SWIG_fail; | |
5997 | swig_obj[0] = args; | |
5998 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5999 | if (!SWIG_IsOK(res1)) { | |
6000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6001 | } | |
6002 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6003 | { | |
6004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6005 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
6006 | wxPyEndAllowThreads(__tstate); | |
6007 | if (PyErr_Occurred()) SWIG_fail; | |
6008 | } | |
6009 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6010 | return resultobj; | |
6011 | fail: | |
6012 | return NULL; | |
d55e5bfc RD |
6013 | } |
6014 | ||
6015 | ||
1bd55598 RD |
6016 | SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6017 | PyObject *resultobj = 0; | |
6018 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6019 | long result; | |
6020 | void *argp1 = 0 ; | |
6021 | int res1 = 0 ; | |
6022 | PyObject *swig_obj[1] ; | |
6023 | ||
6024 | if (!args) SWIG_fail; | |
6025 | swig_obj[0] = args; | |
6026 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6027 | if (!SWIG_IsOK(res1)) { | |
6028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6029 | } | |
6030 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6031 | { | |
6032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6033 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
6034 | wxPyEndAllowThreads(__tstate); | |
6035 | if (PyErr_Occurred()) SWIG_fail; | |
6036 | } | |
6037 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6038 | return resultobj; | |
6039 | fail: | |
6040 | return NULL; | |
6041 | } | |
6042 | ||
6043 | ||
6044 | SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6045 | PyObject *resultobj = 0; | |
6046 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6047 | long arg2 ; | |
6048 | long arg3 ; | |
6049 | wxString *arg4 = 0 ; | |
6050 | void *argp1 = 0 ; | |
6051 | int res1 = 0 ; | |
6052 | long val2 ; | |
6053 | int ecode2 = 0 ; | |
6054 | long val3 ; | |
6055 | int ecode3 = 0 ; | |
6056 | bool temp4 = false ; | |
6057 | PyObject * obj0 = 0 ; | |
6058 | PyObject * obj1 = 0 ; | |
6059 | PyObject * obj2 = 0 ; | |
6060 | PyObject * obj3 = 0 ; | |
6061 | char * kwnames[] = { | |
6062 | (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL | |
6063 | }; | |
6064 | ||
6065 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6066 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6067 | if (!SWIG_IsOK(res1)) { | |
6068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6069 | } | |
6070 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6071 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6072 | if (!SWIG_IsOK(ecode2)) { | |
6073 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'"); | |
6074 | } | |
6075 | arg2 = static_cast< long >(val2); | |
6076 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6077 | if (!SWIG_IsOK(ecode3)) { | |
6078 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'"); | |
6079 | } | |
6080 | arg3 = static_cast< long >(val3); | |
6081 | { | |
6082 | arg4 = wxString_in_helper(obj3); | |
6083 | if (arg4 == NULL) SWIG_fail; | |
6084 | temp4 = true; | |
6085 | } | |
6086 | { | |
6087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6088 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
6089 | wxPyEndAllowThreads(__tstate); | |
6090 | if (PyErr_Occurred()) SWIG_fail; | |
6091 | } | |
6092 | resultobj = SWIG_Py_Void(); | |
6093 | { | |
6094 | if (temp4) | |
6095 | delete arg4; | |
6096 | } | |
6097 | return resultobj; | |
6098 | fail: | |
6099 | { | |
6100 | if (temp4) | |
6101 | delete arg4; | |
6102 | } | |
6103 | return NULL; | |
6104 | } | |
6105 | ||
6106 | ||
6107 | SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6108 | PyObject *resultobj = 0; | |
6109 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6110 | long arg2 ; | |
6111 | long arg3 ; | |
6112 | void *argp1 = 0 ; | |
6113 | int res1 = 0 ; | |
6114 | long val2 ; | |
6115 | int ecode2 = 0 ; | |
6116 | long val3 ; | |
6117 | int ecode3 = 0 ; | |
6118 | PyObject * obj0 = 0 ; | |
6119 | PyObject * obj1 = 0 ; | |
6120 | PyObject * obj2 = 0 ; | |
6121 | char * kwnames[] = { | |
6122 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
6123 | }; | |
6124 | ||
6125 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6126 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6127 | if (!SWIG_IsOK(res1)) { | |
6128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6129 | } | |
6130 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6131 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6132 | if (!SWIG_IsOK(ecode2)) { | |
6133 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'"); | |
6134 | } | |
6135 | arg2 = static_cast< long >(val2); | |
6136 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6137 | if (!SWIG_IsOK(ecode3)) { | |
6138 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'"); | |
6139 | } | |
6140 | arg3 = static_cast< long >(val3); | |
6141 | { | |
6142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6143 | (arg1)->SetSelection(arg2,arg3); | |
6144 | wxPyEndAllowThreads(__tstate); | |
6145 | if (PyErr_Occurred()) SWIG_fail; | |
6146 | } | |
6147 | resultobj = SWIG_Py_Void(); | |
6148 | return resultobj; | |
6149 | fail: | |
6150 | return NULL; | |
d55e5bfc RD |
6151 | } |
6152 | ||
6153 | ||
1bd55598 RD |
6154 | SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6155 | PyObject *resultobj = 0; | |
6156 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6157 | int result; | |
6158 | void *argp1 = 0 ; | |
6159 | int res1 = 0 ; | |
6160 | PyObject *swig_obj[1] ; | |
6161 | ||
6162 | if (!args) SWIG_fail; | |
6163 | swig_obj[0] = args; | |
6164 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6165 | if (!SWIG_IsOK(res1)) { | |
6166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6167 | } | |
6168 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6169 | { | |
6170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6171 | result = (int)((wxComboBox const *)arg1)->GetCurrentSelection(); | |
6172 | wxPyEndAllowThreads(__tstate); | |
6173 | if (PyErr_Occurred()) SWIG_fail; | |
6174 | } | |
6175 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6176 | return resultobj; | |
6177 | fail: | |
6178 | return NULL; | |
6179 | } | |
6180 | ||
6181 | ||
6182 | SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6183 | PyObject *resultobj = 0; | |
6184 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6185 | wxString *arg2 = 0 ; | |
6186 | bool result; | |
6187 | void *argp1 = 0 ; | |
6188 | int res1 = 0 ; | |
6189 | bool temp2 = false ; | |
6190 | PyObject * obj0 = 0 ; | |
6191 | PyObject * obj1 = 0 ; | |
6192 | char * kwnames[] = { | |
6193 | (char *) "self",(char *) "string", NULL | |
6194 | }; | |
6195 | ||
6196 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
6197 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6198 | if (!SWIG_IsOK(res1)) { | |
6199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6200 | } | |
6201 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6202 | { | |
6203 | arg2 = wxString_in_helper(obj1); | |
6204 | if (arg2 == NULL) SWIG_fail; | |
6205 | temp2 = true; | |
6206 | } | |
6207 | { | |
6208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6209 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
6210 | wxPyEndAllowThreads(__tstate); | |
6211 | if (PyErr_Occurred()) SWIG_fail; | |
6212 | } | |
6213 | { | |
6214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6215 | } | |
6216 | { | |
6217 | if (temp2) | |
6218 | delete arg2; | |
6219 | } | |
6220 | return resultobj; | |
6221 | fail: | |
6222 | { | |
6223 | if (temp2) | |
6224 | delete arg2; | |
6225 | } | |
6226 | return NULL; | |
6227 | } | |
6228 | ||
6229 | ||
50f151d7 RD |
6230 | SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6231 | PyObject *resultobj = 0; | |
6232 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6233 | int arg2 ; | |
6234 | wxString *arg3 = 0 ; | |
6235 | void *argp1 = 0 ; | |
6236 | int res1 = 0 ; | |
6237 | int val2 ; | |
6238 | int ecode2 = 0 ; | |
6239 | bool temp3 = false ; | |
6240 | PyObject * obj0 = 0 ; | |
6241 | PyObject * obj1 = 0 ; | |
6242 | PyObject * obj2 = 0 ; | |
6243 | char * kwnames[] = { | |
6244 | (char *) "self",(char *) "n",(char *) "string", NULL | |
6245 | }; | |
6246 | ||
6247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6249 | if (!SWIG_IsOK(res1)) { | |
6250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6251 | } | |
6252 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6253 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6254 | if (!SWIG_IsOK(ecode2)) { | |
6255 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'"); | |
6256 | } | |
6257 | arg2 = static_cast< int >(val2); | |
6258 | { | |
6259 | arg3 = wxString_in_helper(obj2); | |
6260 | if (arg3 == NULL) SWIG_fail; | |
6261 | temp3 = true; | |
6262 | } | |
6263 | { | |
6264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6265 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
6266 | wxPyEndAllowThreads(__tstate); | |
6267 | if (PyErr_Occurred()) SWIG_fail; | |
6268 | } | |
6269 | resultobj = SWIG_Py_Void(); | |
6270 | { | |
6271 | if (temp3) | |
6272 | delete arg3; | |
6273 | } | |
6274 | return resultobj; | |
6275 | fail: | |
6276 | { | |
6277 | if (temp3) | |
6278 | delete arg3; | |
6279 | } | |
6280 | return NULL; | |
6281 | } | |
6282 | ||
6283 | ||
1bd55598 RD |
6284 | SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6285 | PyObject *resultobj = 0; | |
6286 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6287 | bool arg2 ; | |
6288 | void *argp1 = 0 ; | |
6289 | int res1 = 0 ; | |
6290 | bool val2 ; | |
6291 | int ecode2 = 0 ; | |
6292 | PyObject * obj0 = 0 ; | |
6293 | PyObject * obj1 = 0 ; | |
6294 | char * kwnames[] = { | |
6295 | (char *) "self",(char *) "editable", NULL | |
6296 | }; | |
6297 | ||
6298 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail; | |
6299 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6300 | if (!SWIG_IsOK(res1)) { | |
6301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6302 | } | |
6303 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6304 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
6305 | if (!SWIG_IsOK(ecode2)) { | |
6306 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'"); | |
6307 | } | |
6308 | arg2 = static_cast< bool >(val2); | |
6309 | { | |
6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6311 | (arg1)->SetEditable(arg2); | |
6312 | wxPyEndAllowThreads(__tstate); | |
6313 | if (PyErr_Occurred()) SWIG_fail; | |
6314 | } | |
6315 | resultobj = SWIG_Py_Void(); | |
6316 | return resultobj; | |
6317 | fail: | |
6318 | return NULL; | |
d55e5bfc RD |
6319 | } |
6320 | ||
6321 | ||
1bd55598 RD |
6322 | SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6323 | PyObject *resultobj = 0; | |
6324 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6325 | void *argp1 = 0 ; | |
6326 | int res1 = 0 ; | |
6327 | PyObject *swig_obj[1] ; | |
6328 | ||
6329 | if (!args) SWIG_fail; | |
6330 | swig_obj[0] = args; | |
6331 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6332 | if (!SWIG_IsOK(res1)) { | |
6333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6334 | } | |
6335 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6336 | { | |
6337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6338 | (arg1)->SetInsertionPointEnd(); | |
6339 | wxPyEndAllowThreads(__tstate); | |
6340 | if (PyErr_Occurred()) SWIG_fail; | |
6341 | } | |
6342 | resultobj = SWIG_Py_Void(); | |
6343 | return resultobj; | |
6344 | fail: | |
6345 | return NULL; | |
6346 | } | |
6347 | ||
6348 | ||
6349 | SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6350 | PyObject *resultobj = 0; | |
6351 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6352 | long arg2 ; | |
6353 | long arg3 ; | |
6354 | void *argp1 = 0 ; | |
6355 | int res1 = 0 ; | |
6356 | long val2 ; | |
6357 | int ecode2 = 0 ; | |
6358 | long val3 ; | |
6359 | int ecode3 = 0 ; | |
6360 | PyObject * obj0 = 0 ; | |
6361 | PyObject * obj1 = 0 ; | |
6362 | PyObject * obj2 = 0 ; | |
6363 | char * kwnames[] = { | |
6364 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
6365 | }; | |
6366 | ||
6367 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6368 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6369 | if (!SWIG_IsOK(res1)) { | |
6370 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6371 | } | |
6372 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6373 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6374 | if (!SWIG_IsOK(ecode2)) { | |
6375 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'"); | |
6376 | } | |
6377 | arg2 = static_cast< long >(val2); | |
6378 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6379 | if (!SWIG_IsOK(ecode3)) { | |
6380 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'"); | |
6381 | } | |
6382 | arg3 = static_cast< long >(val3); | |
6383 | { | |
6384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6385 | (arg1)->Remove(arg2,arg3); | |
6386 | wxPyEndAllowThreads(__tstate); | |
6387 | if (PyErr_Occurred()) SWIG_fail; | |
6388 | } | |
6389 | resultobj = SWIG_Py_Void(); | |
6390 | return resultobj; | |
6391 | fail: | |
6392 | return NULL; | |
d55e5bfc RD |
6393 | } |
6394 | ||
6395 | ||
1bd55598 RD |
6396 | SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6397 | PyObject *resultobj = 0; | |
6398 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6399 | bool result; | |
6400 | void *argp1 = 0 ; | |
6401 | int res1 = 0 ; | |
6402 | PyObject *swig_obj[1] ; | |
6403 | ||
6404 | if (!args) SWIG_fail; | |
6405 | swig_obj[0] = args; | |
6406 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6407 | if (!SWIG_IsOK(res1)) { | |
6408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6409 | } | |
6410 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6411 | { | |
6412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6413 | result = (bool)((wxComboBox const *)arg1)->IsEditable(); | |
6414 | wxPyEndAllowThreads(__tstate); | |
6415 | if (PyErr_Occurred()) SWIG_fail; | |
6416 | } | |
6417 | { | |
6418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6419 | } | |
6420 | return resultobj; | |
6421 | fail: | |
6422 | return NULL; | |
d55e5bfc RD |
6423 | } |
6424 | ||
6425 | ||
1bd55598 RD |
6426 | SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6427 | PyObject *resultobj = 0; | |
6428 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6429 | void *argp1 = 0 ; | |
6430 | int res1 = 0 ; | |
6431 | PyObject *swig_obj[1] ; | |
6432 | ||
6433 | if (!args) SWIG_fail; | |
6434 | swig_obj[0] = args; | |
6435 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6436 | if (!SWIG_IsOK(res1)) { | |
6437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6438 | } | |
6439 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6440 | { | |
6441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6442 | (arg1)->Undo(); | |
6443 | wxPyEndAllowThreads(__tstate); | |
6444 | if (PyErr_Occurred()) SWIG_fail; | |
6445 | } | |
6446 | resultobj = SWIG_Py_Void(); | |
6447 | return resultobj; | |
6448 | fail: | |
6449 | return NULL; | |
d55e5bfc RD |
6450 | } |
6451 | ||
6452 | ||
1bd55598 RD |
6453 | SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6454 | PyObject *resultobj = 0; | |
6455 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6456 | void *argp1 = 0 ; | |
6457 | int res1 = 0 ; | |
6458 | PyObject *swig_obj[1] ; | |
6459 | ||
6460 | if (!args) SWIG_fail; | |
6461 | swig_obj[0] = args; | |
6462 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6463 | if (!SWIG_IsOK(res1)) { | |
6464 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6465 | } | |
6466 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6467 | { | |
6468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6469 | (arg1)->Redo(); | |
6470 | wxPyEndAllowThreads(__tstate); | |
6471 | if (PyErr_Occurred()) SWIG_fail; | |
6472 | } | |
6473 | resultobj = SWIG_Py_Void(); | |
6474 | return resultobj; | |
6475 | fail: | |
6476 | return NULL; | |
d55e5bfc RD |
6477 | } |
6478 | ||
6479 | ||
1bd55598 RD |
6480 | SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6481 | PyObject *resultobj = 0; | |
6482 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6483 | void *argp1 = 0 ; | |
6484 | int res1 = 0 ; | |
6485 | PyObject *swig_obj[1] ; | |
6486 | ||
6487 | if (!args) SWIG_fail; | |
6488 | swig_obj[0] = args; | |
6489 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6490 | if (!SWIG_IsOK(res1)) { | |
6491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6492 | } | |
6493 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6494 | { | |
6495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6496 | (arg1)->SelectAll(); | |
6497 | wxPyEndAllowThreads(__tstate); | |
6498 | if (PyErr_Occurred()) SWIG_fail; | |
6499 | } | |
6500 | resultobj = SWIG_Py_Void(); | |
6501 | return resultobj; | |
6502 | fail: | |
6503 | return NULL; | |
943e8dfd RD |
6504 | } |
6505 | ||
6506 | ||
1bd55598 RD |
6507 | SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6508 | PyObject *resultobj = 0; | |
6509 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6510 | bool result; | |
6511 | void *argp1 = 0 ; | |
6512 | int res1 = 0 ; | |
6513 | PyObject *swig_obj[1] ; | |
6514 | ||
6515 | if (!args) SWIG_fail; | |
6516 | swig_obj[0] = args; | |
6517 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6518 | if (!SWIG_IsOK(res1)) { | |
6519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6520 | } | |
6521 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6522 | { | |
6523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6524 | result = (bool)((wxComboBox const *)arg1)->CanCopy(); | |
6525 | wxPyEndAllowThreads(__tstate); | |
6526 | if (PyErr_Occurred()) SWIG_fail; | |
6527 | } | |
6528 | { | |
6529 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6530 | } | |
6531 | return resultobj; | |
6532 | fail: | |
6533 | return NULL; | |
121b9a67 RD |
6534 | } |
6535 | ||
6536 | ||
1bd55598 RD |
6537 | SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6538 | PyObject *resultobj = 0; | |
6539 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6540 | bool result; | |
6541 | void *argp1 = 0 ; | |
6542 | int res1 = 0 ; | |
6543 | PyObject *swig_obj[1] ; | |
6544 | ||
6545 | if (!args) SWIG_fail; | |
6546 | swig_obj[0] = args; | |
6547 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6548 | if (!SWIG_IsOK(res1)) { | |
6549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6550 | } | |
6551 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6552 | { | |
6553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6554 | result = (bool)((wxComboBox const *)arg1)->CanCut(); | |
6555 | wxPyEndAllowThreads(__tstate); | |
6556 | if (PyErr_Occurred()) SWIG_fail; | |
6557 | } | |
6558 | { | |
6559 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6560 | } | |
6561 | return resultobj; | |
6562 | fail: | |
6563 | return NULL; | |
121b9a67 RD |
6564 | } |
6565 | ||
6566 | ||
1bd55598 RD |
6567 | SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6568 | PyObject *resultobj = 0; | |
6569 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6570 | bool result; | |
6571 | void *argp1 = 0 ; | |
6572 | int res1 = 0 ; | |
6573 | PyObject *swig_obj[1] ; | |
6574 | ||
6575 | if (!args) SWIG_fail; | |
6576 | swig_obj[0] = args; | |
6577 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6578 | if (!SWIG_IsOK(res1)) { | |
6579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6580 | } | |
6581 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6582 | { | |
6583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6584 | result = (bool)((wxComboBox const *)arg1)->CanPaste(); | |
6585 | wxPyEndAllowThreads(__tstate); | |
6586 | if (PyErr_Occurred()) SWIG_fail; | |
6587 | } | |
6588 | { | |
6589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6590 | } | |
6591 | return resultobj; | |
6592 | fail: | |
6593 | return NULL; | |
d55e5bfc RD |
6594 | } |
6595 | ||
6596 | ||
1bd55598 RD |
6597 | SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6598 | PyObject *resultobj = 0; | |
6599 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6600 | bool result; | |
6601 | void *argp1 = 0 ; | |
6602 | int res1 = 0 ; | |
6603 | PyObject *swig_obj[1] ; | |
6604 | ||
6605 | if (!args) SWIG_fail; | |
6606 | swig_obj[0] = args; | |
6607 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6608 | if (!SWIG_IsOK(res1)) { | |
6609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6610 | } | |
6611 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6612 | { | |
6613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6614 | result = (bool)((wxComboBox const *)arg1)->CanUndo(); | |
6615 | wxPyEndAllowThreads(__tstate); | |
6616 | if (PyErr_Occurred()) SWIG_fail; | |
6617 | } | |
6618 | { | |
6619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6620 | } | |
6621 | return resultobj; | |
6622 | fail: | |
6623 | return NULL; | |
d55e5bfc RD |
6624 | } |
6625 | ||
6626 | ||
1bd55598 RD |
6627 | SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6628 | PyObject *resultobj = 0; | |
6629 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6630 | bool result; | |
6631 | void *argp1 = 0 ; | |
6632 | int res1 = 0 ; | |
6633 | PyObject *swig_obj[1] ; | |
6634 | ||
6635 | if (!args) SWIG_fail; | |
6636 | swig_obj[0] = args; | |
6637 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6638 | if (!SWIG_IsOK(res1)) { | |
6639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6640 | } | |
6641 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6642 | { | |
6643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6644 | result = (bool)((wxComboBox const *)arg1)->CanRedo(); | |
6645 | wxPyEndAllowThreads(__tstate); | |
6646 | if (PyErr_Occurred()) SWIG_fail; | |
6647 | } | |
6648 | { | |
6649 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6650 | } | |
6651 | return resultobj; | |
6652 | fail: | |
6653 | return NULL; | |
d55e5bfc RD |
6654 | } |
6655 | ||
6656 | ||
1bd55598 RD |
6657 | SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6658 | PyObject *resultobj = 0; | |
6659 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
6660 | SwigValueWrapper<wxVisualAttributes > result; | |
6661 | int val1 ; | |
6662 | int ecode1 = 0 ; | |
6663 | PyObject * obj0 = 0 ; | |
6664 | char * kwnames[] = { | |
6665 | (char *) "variant", NULL | |
6666 | }; | |
6667 | ||
6668 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
6669 | if (obj0) { | |
6670 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6671 | if (!SWIG_IsOK(ecode1)) { | |
6672 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
6673 | } | |
6674 | arg1 = static_cast< wxWindowVariant >(val1); | |
6675 | } | |
6676 | { | |
6677 | if (!wxPyCheckForApp()) SWIG_fail; | |
6678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6679 | result = wxComboBox::GetClassDefaultAttributes(arg1); | |
6680 | wxPyEndAllowThreads(__tstate); | |
6681 | if (PyErr_Occurred()) SWIG_fail; | |
6682 | } | |
6683 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
6684 | return resultobj; | |
6685 | fail: | |
6686 | return NULL; | |
5cbf236d RD |
6687 | } |
6688 | ||
6689 | ||
1bd55598 RD |
6690 | SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6691 | PyObject *obj; | |
6692 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6693 | SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj)); | |
6694 | return SWIG_Py_Void(); | |
5cbf236d RD |
6695 | } |
6696 | ||
1bd55598 RD |
6697 | SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6698 | return SWIG_Python_InitShadowInstance(args); | |
5cbf236d RD |
6699 | } |
6700 | ||
1bd55598 RD |
6701 | SWIGINTERN int GaugeNameStr_set(PyObject *) { |
6702 | SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only."); | |
6703 | return 1; | |
5cbf236d RD |
6704 | } |
6705 | ||
6706 | ||
1bd55598 RD |
6707 | SWIGINTERN PyObject *GaugeNameStr_get(void) { |
6708 | PyObject *pyobj = 0; | |
6709 | ||
6710 | { | |
6711 | #if wxUSE_UNICODE | |
6712 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
6713 | #else | |
6714 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
6715 | #endif | |
6716 | } | |
6717 | return pyobj; | |
6718 | } | |
6719 | ||
6720 | ||
6721 | SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6722 | PyObject *resultobj = 0; | |
6723 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6724 | int arg2 = (int) -1 ; | |
6725 | int arg3 = (int) 100 ; | |
6726 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6727 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6728 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6729 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6730 | long arg6 = (long) wxGA_HORIZONTAL ; | |
6731 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6732 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6733 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
6734 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6735 | wxGauge *result = 0 ; | |
6736 | void *argp1 = 0 ; | |
6737 | int res1 = 0 ; | |
6738 | int val2 ; | |
6739 | int ecode2 = 0 ; | |
6740 | int val3 ; | |
6741 | int ecode3 = 0 ; | |
6742 | wxPoint temp4 ; | |
6743 | wxSize temp5 ; | |
6744 | long val6 ; | |
6745 | int ecode6 = 0 ; | |
6746 | void *argp7 = 0 ; | |
6747 | int res7 = 0 ; | |
6748 | bool temp8 = false ; | |
6749 | PyObject * obj0 = 0 ; | |
6750 | PyObject * obj1 = 0 ; | |
6751 | PyObject * obj2 = 0 ; | |
6752 | PyObject * obj3 = 0 ; | |
6753 | PyObject * obj4 = 0 ; | |
6754 | PyObject * obj5 = 0 ; | |
6755 | PyObject * obj6 = 0 ; | |
6756 | PyObject * obj7 = 0 ; | |
6757 | char * kwnames[] = { | |
6758 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6759 | }; | |
6760 | ||
6761 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
6762 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6763 | if (!SWIG_IsOK(res1)) { | |
6764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
6765 | } | |
6766 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
6767 | if (obj1) { | |
6768 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6769 | if (!SWIG_IsOK(ecode2)) { | |
6770 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'"); | |
6771 | } | |
6772 | arg2 = static_cast< int >(val2); | |
6773 | } | |
6774 | if (obj2) { | |
6775 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6776 | if (!SWIG_IsOK(ecode3)) { | |
6777 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'"); | |
6778 | } | |
6779 | arg3 = static_cast< int >(val3); | |
6780 | } | |
6781 | if (obj3) { | |
5cbf236d | 6782 | { |
1bd55598 RD |
6783 | arg4 = &temp4; |
6784 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5cbf236d | 6785 | } |
1bd55598 RD |
6786 | } |
6787 | if (obj4) { | |
5cbf236d | 6788 | { |
1bd55598 RD |
6789 | arg5 = &temp5; |
6790 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5cbf236d | 6791 | } |
1bd55598 RD |
6792 | } |
6793 | if (obj5) { | |
6794 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
6795 | if (!SWIG_IsOK(ecode6)) { | |
6796 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'"); | |
6797 | } | |
6798 | arg6 = static_cast< long >(val6); | |
6799 | } | |
6800 | if (obj6) { | |
6801 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
6802 | if (!SWIG_IsOK(res7)) { | |
6803 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
6804 | } | |
6805 | if (!argp7) { | |
6806 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
5cbf236d | 6807 | } |
1bd55598 RD |
6808 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
6809 | } | |
6810 | if (obj7) { | |
5cbf236d | 6811 | { |
1bd55598 RD |
6812 | arg8 = wxString_in_helper(obj7); |
6813 | if (arg8 == NULL) SWIG_fail; | |
6814 | temp8 = true; | |
5cbf236d | 6815 | } |
1bd55598 RD |
6816 | } |
6817 | { | |
6818 | if (!wxPyCheckForApp()) SWIG_fail; | |
6819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6820 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6821 | wxPyEndAllowThreads(__tstate); | |
6822 | if (PyErr_Occurred()) SWIG_fail; | |
6823 | } | |
6824 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 ); | |
6825 | { | |
6826 | if (temp8) | |
6827 | delete arg8; | |
6828 | } | |
6829 | return resultobj; | |
6830 | fail: | |
6831 | { | |
6832 | if (temp8) | |
6833 | delete arg8; | |
6834 | } | |
6835 | return NULL; | |
5cbf236d RD |
6836 | } |
6837 | ||
6838 | ||
1bd55598 RD |
6839 | SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6840 | PyObject *resultobj = 0; | |
6841 | wxGauge *result = 0 ; | |
6842 | ||
6843 | if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail; | |
6844 | { | |
6845 | if (!wxPyCheckForApp()) SWIG_fail; | |
6846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6847 | result = (wxGauge *)new wxGauge(); | |
6848 | wxPyEndAllowThreads(__tstate); | |
6849 | if (PyErr_Occurred()) SWIG_fail; | |
6850 | } | |
6851 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 ); | |
6852 | return resultobj; | |
6853 | fail: | |
6854 | return NULL; | |
6855 | } | |
6856 | ||
6857 | ||
6858 | SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6859 | PyObject *resultobj = 0; | |
6860 | wxGauge *arg1 = (wxGauge *) 0 ; | |
6861 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6862 | int arg3 = (int) -1 ; | |
6863 | int arg4 = (int) 100 ; | |
6864 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6865 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6866 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6867 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6868 | long arg7 = (long) wxGA_HORIZONTAL ; | |
6869 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6870 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6871 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
6872 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6873 | bool result; | |
6874 | void *argp1 = 0 ; | |
6875 | int res1 = 0 ; | |
6876 | void *argp2 = 0 ; | |
6877 | int res2 = 0 ; | |
6878 | int val3 ; | |
6879 | int ecode3 = 0 ; | |
6880 | int val4 ; | |
6881 | int ecode4 = 0 ; | |
6882 | wxPoint temp5 ; | |
6883 | wxSize temp6 ; | |
6884 | long val7 ; | |
6885 | int ecode7 = 0 ; | |
6886 | void *argp8 = 0 ; | |
6887 | int res8 = 0 ; | |
6888 | bool temp9 = false ; | |
6889 | PyObject * obj0 = 0 ; | |
6890 | PyObject * obj1 = 0 ; | |
6891 | PyObject * obj2 = 0 ; | |
6892 | PyObject * obj3 = 0 ; | |
6893 | PyObject * obj4 = 0 ; | |
6894 | PyObject * obj5 = 0 ; | |
6895 | PyObject * obj6 = 0 ; | |
6896 | PyObject * obj7 = 0 ; | |
6897 | PyObject * obj8 = 0 ; | |
6898 | char * kwnames[] = { | |
6899 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6900 | }; | |
6901 | ||
6902 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
6903 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
6904 | if (!SWIG_IsOK(res1)) { | |
6905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
6906 | } | |
6907 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
6908 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6909 | if (!SWIG_IsOK(res2)) { | |
6910 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6911 | } | |
6912 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6913 | if (obj2) { | |
6914 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6915 | if (!SWIG_IsOK(ecode3)) { | |
6916 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'"); | |
6917 | } | |
6918 | arg3 = static_cast< int >(val3); | |
6919 | } | |
6920 | if (obj3) { | |
6921 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6922 | if (!SWIG_IsOK(ecode4)) { | |
6923 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'"); | |
6924 | } | |
6925 | arg4 = static_cast< int >(val4); | |
6926 | } | |
6927 | if (obj4) { | |
5cbf236d | 6928 | { |
1bd55598 RD |
6929 | arg5 = &temp5; |
6930 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5cbf236d | 6931 | } |
1bd55598 RD |
6932 | } |
6933 | if (obj5) { | |
5cbf236d | 6934 | { |
1bd55598 RD |
6935 | arg6 = &temp6; |
6936 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5cbf236d | 6937 | } |
1bd55598 RD |
6938 | } |
6939 | if (obj6) { | |
6940 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
6941 | if (!SWIG_IsOK(ecode7)) { | |
6942 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'"); | |
6943 | } | |
6944 | arg7 = static_cast< long >(val7); | |
6945 | } | |
6946 | if (obj7) { | |
6947 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
6948 | if (!SWIG_IsOK(res8)) { | |
6949 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5cbf236d | 6950 | } |
1bd55598 RD |
6951 | if (!argp8) { |
6952 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
6953 | } | |
6954 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
6955 | } | |
6956 | if (obj8) { | |
5cbf236d | 6957 | { |
1bd55598 RD |
6958 | arg9 = wxString_in_helper(obj8); |
6959 | if (arg9 == NULL) SWIG_fail; | |
6960 | temp9 = true; | |
5cbf236d | 6961 | } |
1bd55598 RD |
6962 | } |
6963 | { | |
6964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6965 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
6966 | wxPyEndAllowThreads(__tstate); | |
6967 | if (PyErr_Occurred()) SWIG_fail; | |
6968 | } | |
6969 | { | |
6970 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6971 | } | |
6972 | { | |
6973 | if (temp9) | |
6974 | delete arg9; | |
6975 | } | |
6976 | return resultobj; | |
6977 | fail: | |
6978 | { | |
6979 | if (temp9) | |
6980 | delete arg9; | |
6981 | } | |
6982 | return NULL; | |
6983 | } | |
6984 | ||
6985 | ||
6986 | SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6987 | PyObject *resultobj = 0; | |
6988 | wxGauge *arg1 = (wxGauge *) 0 ; | |
6989 | int arg2 ; | |
6990 | void *argp1 = 0 ; | |
6991 | int res1 = 0 ; | |
6992 | int val2 ; | |
6993 | int ecode2 = 0 ; | |
6994 | PyObject * obj0 = 0 ; | |
6995 | PyObject * obj1 = 0 ; | |
6996 | char * kwnames[] = { | |
6997 | (char *) "self",(char *) "range", NULL | |
6998 | }; | |
6999 | ||
7000 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
7001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7002 | if (!SWIG_IsOK(res1)) { | |
7003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7004 | } | |
7005 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7006 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7007 | if (!SWIG_IsOK(ecode2)) { | |
7008 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
7009 | } | |
7010 | arg2 = static_cast< int >(val2); | |
7011 | { | |
7012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7013 | (arg1)->SetRange(arg2); | |
7014 | wxPyEndAllowThreads(__tstate); | |
7015 | if (PyErr_Occurred()) SWIG_fail; | |
7016 | } | |
7017 | resultobj = SWIG_Py_Void(); | |
7018 | return resultobj; | |
7019 | fail: | |
7020 | return NULL; | |
5cbf236d RD |
7021 | } |
7022 | ||
7023 | ||
1bd55598 RD |
7024 | SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7025 | PyObject *resultobj = 0; | |
7026 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7027 | int result; | |
7028 | void *argp1 = 0 ; | |
7029 | int res1 = 0 ; | |
7030 | PyObject *swig_obj[1] ; | |
7031 | ||
7032 | if (!args) SWIG_fail; | |
7033 | swig_obj[0] = args; | |
7034 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7035 | if (!SWIG_IsOK(res1)) { | |
7036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7037 | } | |
7038 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7039 | { | |
7040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7041 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
7042 | wxPyEndAllowThreads(__tstate); | |
7043 | if (PyErr_Occurred()) SWIG_fail; | |
7044 | } | |
7045 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7046 | return resultobj; | |
7047 | fail: | |
7048 | return NULL; | |
7049 | } | |
7050 | ||
7051 | ||
7052 | SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7053 | PyObject *resultobj = 0; | |
7054 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7055 | int arg2 ; | |
7056 | void *argp1 = 0 ; | |
7057 | int res1 = 0 ; | |
7058 | int val2 ; | |
7059 | int ecode2 = 0 ; | |
7060 | PyObject * obj0 = 0 ; | |
7061 | PyObject * obj1 = 0 ; | |
7062 | char * kwnames[] = { | |
7063 | (char *) "self",(char *) "pos", NULL | |
7064 | }; | |
7065 | ||
7066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
7067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7068 | if (!SWIG_IsOK(res1)) { | |
7069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7070 | } | |
7071 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7072 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7073 | if (!SWIG_IsOK(ecode2)) { | |
7074 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
7075 | } | |
7076 | arg2 = static_cast< int >(val2); | |
7077 | { | |
7078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7079 | (arg1)->SetValue(arg2); | |
7080 | wxPyEndAllowThreads(__tstate); | |
7081 | if (PyErr_Occurred()) SWIG_fail; | |
7082 | } | |
7083 | resultobj = SWIG_Py_Void(); | |
7084 | return resultobj; | |
7085 | fail: | |
7086 | return NULL; | |
5cbf236d RD |
7087 | } |
7088 | ||
7089 | ||
1bd55598 RD |
7090 | SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7091 | PyObject *resultobj = 0; | |
7092 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7093 | int result; | |
7094 | void *argp1 = 0 ; | |
7095 | int res1 = 0 ; | |
7096 | PyObject *swig_obj[1] ; | |
7097 | ||
7098 | if (!args) SWIG_fail; | |
7099 | swig_obj[0] = args; | |
7100 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7101 | if (!SWIG_IsOK(res1)) { | |
7102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7103 | } | |
7104 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7105 | { | |
7106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7107 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
7108 | wxPyEndAllowThreads(__tstate); | |
7109 | if (PyErr_Occurred()) SWIG_fail; | |
7110 | } | |
7111 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7112 | return resultobj; | |
7113 | fail: | |
7114 | return NULL; | |
f20a2e1f RD |
7115 | } |
7116 | ||
7117 | ||
1bd55598 RD |
7118 | SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7119 | PyObject *resultobj = 0; | |
7120 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7121 | bool result; | |
7122 | void *argp1 = 0 ; | |
7123 | int res1 = 0 ; | |
7124 | PyObject *swig_obj[1] ; | |
7125 | ||
7126 | if (!args) SWIG_fail; | |
7127 | swig_obj[0] = args; | |
7128 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7129 | if (!SWIG_IsOK(res1)) { | |
7130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7131 | } | |
7132 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7133 | { | |
7134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7135 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
7136 | wxPyEndAllowThreads(__tstate); | |
7137 | if (PyErr_Occurred()) SWIG_fail; | |
7138 | } | |
7139 | { | |
7140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7141 | } | |
7142 | return resultobj; | |
7143 | fail: | |
7144 | return NULL; | |
7145 | } | |
7146 | ||
7147 | ||
7148 | SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7149 | PyObject *resultobj = 0; | |
7150 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7151 | int arg2 ; | |
7152 | void *argp1 = 0 ; | |
7153 | int res1 = 0 ; | |
7154 | int val2 ; | |
7155 | int ecode2 = 0 ; | |
7156 | PyObject * obj0 = 0 ; | |
7157 | PyObject * obj1 = 0 ; | |
7158 | char * kwnames[] = { | |
7159 | (char *) "self",(char *) "w", NULL | |
7160 | }; | |
7161 | ||
7162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
7163 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7164 | if (!SWIG_IsOK(res1)) { | |
7165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7166 | } | |
7167 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7168 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7169 | if (!SWIG_IsOK(ecode2)) { | |
7170 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'"); | |
7171 | } | |
7172 | arg2 = static_cast< int >(val2); | |
7173 | { | |
7174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7175 | (arg1)->SetShadowWidth(arg2); | |
7176 | wxPyEndAllowThreads(__tstate); | |
7177 | if (PyErr_Occurred()) SWIG_fail; | |
7178 | } | |
7179 | resultobj = SWIG_Py_Void(); | |
7180 | return resultobj; | |
7181 | fail: | |
7182 | return NULL; | |
d55e5bfc RD |
7183 | } |
7184 | ||
7185 | ||
1bd55598 RD |
7186 | SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7187 | PyObject *resultobj = 0; | |
7188 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7189 | int result; | |
7190 | void *argp1 = 0 ; | |
7191 | int res1 = 0 ; | |
7192 | PyObject *swig_obj[1] ; | |
7193 | ||
7194 | if (!args) SWIG_fail; | |
7195 | swig_obj[0] = args; | |
7196 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7197 | if (!SWIG_IsOK(res1)) { | |
7198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7199 | } | |
7200 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7201 | { | |
7202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7203 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
7204 | wxPyEndAllowThreads(__tstate); | |
7205 | if (PyErr_Occurred()) SWIG_fail; | |
7206 | } | |
7207 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7208 | return resultobj; | |
7209 | fail: | |
7210 | return NULL; | |
7211 | } | |
7212 | ||
7213 | ||
7214 | SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7215 | PyObject *resultobj = 0; | |
7216 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7217 | int arg2 ; | |
7218 | void *argp1 = 0 ; | |
7219 | int res1 = 0 ; | |
7220 | int val2 ; | |
7221 | int ecode2 = 0 ; | |
7222 | PyObject * obj0 = 0 ; | |
7223 | PyObject * obj1 = 0 ; | |
7224 | char * kwnames[] = { | |
7225 | (char *) "self",(char *) "w", NULL | |
7226 | }; | |
7227 | ||
7228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail; | |
7229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7230 | if (!SWIG_IsOK(res1)) { | |
7231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7232 | } | |
7233 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7234 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7235 | if (!SWIG_IsOK(ecode2)) { | |
7236 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'"); | |
7237 | } | |
7238 | arg2 = static_cast< int >(val2); | |
7239 | { | |
7240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7241 | (arg1)->SetBezelFace(arg2); | |
7242 | wxPyEndAllowThreads(__tstate); | |
7243 | if (PyErr_Occurred()) SWIG_fail; | |
7244 | } | |
7245 | resultobj = SWIG_Py_Void(); | |
7246 | return resultobj; | |
7247 | fail: | |
7248 | return NULL; | |
d55e5bfc RD |
7249 | } |
7250 | ||
7251 | ||
1bd55598 RD |
7252 | SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7253 | PyObject *resultobj = 0; | |
7254 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7255 | int result; | |
7256 | void *argp1 = 0 ; | |
7257 | int res1 = 0 ; | |
7258 | PyObject *swig_obj[1] ; | |
7259 | ||
7260 | if (!args) SWIG_fail; | |
7261 | swig_obj[0] = args; | |
7262 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7263 | if (!SWIG_IsOK(res1)) { | |
7264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7265 | } | |
7266 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7267 | { | |
7268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7269 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
7270 | wxPyEndAllowThreads(__tstate); | |
7271 | if (PyErr_Occurred()) SWIG_fail; | |
7272 | } | |
7273 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7274 | return resultobj; | |
7275 | fail: | |
7276 | return NULL; | |
7277 | } | |
7278 | ||
7279 | ||
7280 | SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7281 | PyObject *resultobj = 0; | |
7282 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7283 | SwigValueWrapper<wxVisualAttributes > result; | |
7284 | int val1 ; | |
7285 | int ecode1 = 0 ; | |
7286 | PyObject * obj0 = 0 ; | |
7287 | char * kwnames[] = { | |
7288 | (char *) "variant", NULL | |
7289 | }; | |
7290 | ||
7291 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7292 | if (obj0) { | |
7293 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7294 | if (!SWIG_IsOK(ecode1)) { | |
7295 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7296 | } | |
7297 | arg1 = static_cast< wxWindowVariant >(val1); | |
7298 | } | |
7299 | { | |
7300 | if (!wxPyCheckForApp()) SWIG_fail; | |
7301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7302 | result = wxGauge::GetClassDefaultAttributes(arg1); | |
7303 | wxPyEndAllowThreads(__tstate); | |
7304 | if (PyErr_Occurred()) SWIG_fail; | |
7305 | } | |
7306 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7307 | return resultobj; | |
7308 | fail: | |
7309 | return NULL; | |
d55e5bfc RD |
7310 | } |
7311 | ||
7312 | ||
1bd55598 RD |
7313 | SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7314 | PyObject *obj; | |
7315 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7316 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj)); | |
7317 | return SWIG_Py_Void(); | |
d55e5bfc RD |
7318 | } |
7319 | ||
1bd55598 RD |
7320 | SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7321 | return SWIG_Python_InitShadowInstance(args); | |
7322 | } | |
d55e5bfc | 7323 | |
1bd55598 RD |
7324 | SWIGINTERN int StaticBitmapNameStr_set(PyObject *) { |
7325 | SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only."); | |
7326 | return 1; | |
d55e5bfc RD |
7327 | } |
7328 | ||
7329 | ||
1bd55598 RD |
7330 | SWIGINTERN PyObject *StaticBitmapNameStr_get(void) { |
7331 | PyObject *pyobj = 0; | |
7332 | ||
7333 | { | |
7334 | #if wxUSE_UNICODE | |
7335 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
7336 | #else | |
7337 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
7338 | #endif | |
7339 | } | |
7340 | return pyobj; | |
d55e5bfc RD |
7341 | } |
7342 | ||
7343 | ||
1bd55598 RD |
7344 | SWIGINTERN int StaticBoxNameStr_set(PyObject *) { |
7345 | SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only."); | |
7346 | return 1; | |
d55e5bfc RD |
7347 | } |
7348 | ||
7349 | ||
1bd55598 RD |
7350 | SWIGINTERN PyObject *StaticBoxNameStr_get(void) { |
7351 | PyObject *pyobj = 0; | |
7352 | ||
7353 | { | |
7354 | #if wxUSE_UNICODE | |
7355 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
7356 | #else | |
7357 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
7358 | #endif | |
7359 | } | |
7360 | return pyobj; | |
d55e5bfc RD |
7361 | } |
7362 | ||
7363 | ||
1bd55598 RD |
7364 | SWIGINTERN int StaticTextNameStr_set(PyObject *) { |
7365 | SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only."); | |
7366 | return 1; | |
d55e5bfc RD |
7367 | } |
7368 | ||
7369 | ||
1bd55598 RD |
7370 | SWIGINTERN PyObject *StaticTextNameStr_get(void) { |
7371 | PyObject *pyobj = 0; | |
7372 | ||
7373 | { | |
7374 | #if wxUSE_UNICODE | |
7375 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
7376 | #else | |
7377 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
7378 | #endif | |
7379 | } | |
7380 | return pyobj; | |
7381 | } | |
7382 | ||
7383 | ||
7384 | SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7385 | PyObject *resultobj = 0; | |
7386 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7387 | int arg2 = (int) -1 ; | |
7388 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7389 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7390 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7391 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7392 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7393 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7394 | long arg6 = (long) 0 ; | |
7395 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
7396 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7397 | wxStaticBox *result = 0 ; | |
7398 | void *argp1 = 0 ; | |
7399 | int res1 = 0 ; | |
7400 | int val2 ; | |
7401 | int ecode2 = 0 ; | |
7402 | bool temp3 = false ; | |
7403 | wxPoint temp4 ; | |
7404 | wxSize temp5 ; | |
7405 | long val6 ; | |
7406 | int ecode6 = 0 ; | |
7407 | bool temp7 = false ; | |
7408 | PyObject * obj0 = 0 ; | |
7409 | PyObject * obj1 = 0 ; | |
7410 | PyObject * obj2 = 0 ; | |
7411 | PyObject * obj3 = 0 ; | |
7412 | PyObject * obj4 = 0 ; | |
7413 | PyObject * obj5 = 0 ; | |
7414 | PyObject * obj6 = 0 ; | |
7415 | char * kwnames[] = { | |
7416 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7417 | }; | |
7418 | ||
7419 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7420 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7421 | if (!SWIG_IsOK(res1)) { | |
7422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7423 | } | |
7424 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7425 | if (obj1) { | |
7426 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7427 | if (!SWIG_IsOK(ecode2)) { | |
7428 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'"); | |
7429 | } | |
7430 | arg2 = static_cast< int >(val2); | |
7431 | } | |
7432 | if (obj2) { | |
36ed4f51 | 7433 | { |
1bd55598 RD |
7434 | arg3 = wxString_in_helper(obj2); |
7435 | if (arg3 == NULL) SWIG_fail; | |
7436 | temp3 = true; | |
36ed4f51 | 7437 | } |
1bd55598 RD |
7438 | } |
7439 | if (obj3) { | |
d55e5bfc | 7440 | { |
1bd55598 RD |
7441 | arg4 = &temp4; |
7442 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 7443 | } |
1bd55598 RD |
7444 | } |
7445 | if (obj4) { | |
d55e5bfc | 7446 | { |
1bd55598 RD |
7447 | arg5 = &temp5; |
7448 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 7449 | } |
1bd55598 RD |
7450 | } |
7451 | if (obj5) { | |
7452 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7453 | if (!SWIG_IsOK(ecode6)) { | |
7454 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'"); | |
7455 | } | |
7456 | arg6 = static_cast< long >(val6); | |
7457 | } | |
7458 | if (obj6) { | |
36ed4f51 | 7459 | { |
1bd55598 RD |
7460 | arg7 = wxString_in_helper(obj6); |
7461 | if (arg7 == NULL) SWIG_fail; | |
7462 | temp7 = true; | |
36ed4f51 | 7463 | } |
1bd55598 RD |
7464 | } |
7465 | { | |
7466 | if (!wxPyCheckForApp()) SWIG_fail; | |
7467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7468 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7469 | wxPyEndAllowThreads(__tstate); | |
7470 | if (PyErr_Occurred()) SWIG_fail; | |
7471 | } | |
7472 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 ); | |
7473 | { | |
7474 | if (temp3) | |
7475 | delete arg3; | |
7476 | } | |
7477 | { | |
7478 | if (temp7) | |
7479 | delete arg7; | |
7480 | } | |
7481 | return resultobj; | |
7482 | fail: | |
7483 | { | |
7484 | if (temp3) | |
7485 | delete arg3; | |
7486 | } | |
7487 | { | |
7488 | if (temp7) | |
7489 | delete arg7; | |
7490 | } | |
7491 | return NULL; | |
7492 | } | |
d55e5bfc | 7493 | |
1bd55598 RD |
7494 | |
7495 | SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7496 | PyObject *resultobj = 0; | |
7497 | wxStaticBox *result = 0 ; | |
7498 | ||
7499 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail; | |
7500 | { | |
7501 | if (!wxPyCheckForApp()) SWIG_fail; | |
7502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7503 | result = (wxStaticBox *)new wxStaticBox(); | |
7504 | wxPyEndAllowThreads(__tstate); | |
7505 | if (PyErr_Occurred()) SWIG_fail; | |
7506 | } | |
7507 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 ); | |
7508 | return resultobj; | |
7509 | fail: | |
7510 | return NULL; | |
7511 | } | |
7512 | ||
7513 | ||
7514 | SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7515 | PyObject *resultobj = 0; | |
7516 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
7517 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7518 | int arg3 = (int) -1 ; | |
7519 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7520 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7521 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7522 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7523 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7524 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7525 | long arg7 = (long) 0 ; | |
7526 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
7527 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7528 | bool result; | |
7529 | void *argp1 = 0 ; | |
7530 | int res1 = 0 ; | |
7531 | void *argp2 = 0 ; | |
7532 | int res2 = 0 ; | |
7533 | int val3 ; | |
7534 | int ecode3 = 0 ; | |
7535 | bool temp4 = false ; | |
7536 | wxPoint temp5 ; | |
7537 | wxSize temp6 ; | |
7538 | long val7 ; | |
7539 | int ecode7 = 0 ; | |
7540 | bool temp8 = false ; | |
7541 | PyObject * obj0 = 0 ; | |
7542 | PyObject * obj1 = 0 ; | |
7543 | PyObject * obj2 = 0 ; | |
7544 | PyObject * obj3 = 0 ; | |
7545 | PyObject * obj4 = 0 ; | |
7546 | PyObject * obj5 = 0 ; | |
7547 | PyObject * obj6 = 0 ; | |
7548 | PyObject * obj7 = 0 ; | |
7549 | char * kwnames[] = { | |
7550 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7551 | }; | |
7552 | ||
7553 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
7554 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 ); | |
7555 | if (!SWIG_IsOK(res1)) { | |
7556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'"); | |
7557 | } | |
7558 | arg1 = reinterpret_cast< wxStaticBox * >(argp1); | |
7559 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7560 | if (!SWIG_IsOK(res2)) { | |
7561 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7562 | } | |
7563 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7564 | if (obj2) { | |
7565 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7566 | if (!SWIG_IsOK(ecode3)) { | |
7567 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
7568 | } | |
7569 | arg3 = static_cast< int >(val3); | |
7570 | } | |
7571 | if (obj3) { | |
36ed4f51 | 7572 | { |
1bd55598 RD |
7573 | arg4 = wxString_in_helper(obj3); |
7574 | if (arg4 == NULL) SWIG_fail; | |
7575 | temp4 = true; | |
36ed4f51 | 7576 | } |
1bd55598 RD |
7577 | } |
7578 | if (obj4) { | |
d55e5bfc | 7579 | { |
1bd55598 RD |
7580 | arg5 = &temp5; |
7581 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 7582 | } |
1bd55598 RD |
7583 | } |
7584 | if (obj5) { | |
d55e5bfc | 7585 | { |
1bd55598 RD |
7586 | arg6 = &temp6; |
7587 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 7588 | } |
1bd55598 RD |
7589 | } |
7590 | if (obj6) { | |
7591 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
7592 | if (!SWIG_IsOK(ecode7)) { | |
7593 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
7594 | } | |
7595 | arg7 = static_cast< long >(val7); | |
7596 | } | |
7597 | if (obj7) { | |
36ed4f51 | 7598 | { |
1bd55598 RD |
7599 | arg8 = wxString_in_helper(obj7); |
7600 | if (arg8 == NULL) SWIG_fail; | |
7601 | temp8 = true; | |
36ed4f51 | 7602 | } |
1bd55598 RD |
7603 | } |
7604 | { | |
7605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7606 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7607 | wxPyEndAllowThreads(__tstate); | |
7608 | if (PyErr_Occurred()) SWIG_fail; | |
7609 | } | |
7610 | { | |
7611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7612 | } | |
7613 | { | |
7614 | if (temp4) | |
7615 | delete arg4; | |
7616 | } | |
7617 | { | |
7618 | if (temp8) | |
7619 | delete arg8; | |
7620 | } | |
7621 | return resultobj; | |
7622 | fail: | |
7623 | { | |
7624 | if (temp4) | |
7625 | delete arg4; | |
7626 | } | |
7627 | { | |
7628 | if (temp8) | |
7629 | delete arg8; | |
7630 | } | |
7631 | return NULL; | |
d55e5bfc RD |
7632 | } |
7633 | ||
7634 | ||
1bd55598 RD |
7635 | SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7636 | PyObject *resultobj = 0; | |
7637 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7638 | SwigValueWrapper<wxVisualAttributes > result; | |
7639 | int val1 ; | |
7640 | int ecode1 = 0 ; | |
7641 | PyObject * obj0 = 0 ; | |
7642 | char * kwnames[] = { | |
7643 | (char *) "variant", NULL | |
7644 | }; | |
7645 | ||
7646 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7647 | if (obj0) { | |
7648 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7649 | if (!SWIG_IsOK(ecode1)) { | |
7650 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7651 | } | |
7652 | arg1 = static_cast< wxWindowVariant >(val1); | |
7653 | } | |
7654 | { | |
7655 | if (!wxPyCheckForApp()) SWIG_fail; | |
7656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7657 | result = wxStaticBox::GetClassDefaultAttributes(arg1); | |
7658 | wxPyEndAllowThreads(__tstate); | |
7659 | if (PyErr_Occurred()) SWIG_fail; | |
7660 | } | |
7661 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7662 | return resultobj; | |
7663 | fail: | |
7664 | return NULL; | |
7665 | } | |
7666 | ||
7667 | ||
7668 | SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7669 | PyObject *obj; | |
7670 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7671 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj)); | |
7672 | return SWIG_Py_Void(); | |
7673 | } | |
7674 | ||
7675 | SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7676 | return SWIG_Python_InitShadowInstance(args); | |
7677 | } | |
7678 | ||
7679 | SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7680 | PyObject *resultobj = 0; | |
7681 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7682 | int arg2 = (int) -1 ; | |
7683 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
7684 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7685 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7686 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7687 | long arg5 = (long) wxLI_HORIZONTAL ; | |
7688 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
7689 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7690 | wxStaticLine *result = 0 ; | |
7691 | void *argp1 = 0 ; | |
7692 | int res1 = 0 ; | |
7693 | int val2 ; | |
7694 | int ecode2 = 0 ; | |
7695 | wxPoint temp3 ; | |
7696 | wxSize temp4 ; | |
7697 | long val5 ; | |
7698 | int ecode5 = 0 ; | |
7699 | bool temp6 = false ; | |
7700 | PyObject * obj0 = 0 ; | |
7701 | PyObject * obj1 = 0 ; | |
7702 | PyObject * obj2 = 0 ; | |
7703 | PyObject * obj3 = 0 ; | |
7704 | PyObject * obj4 = 0 ; | |
7705 | PyObject * obj5 = 0 ; | |
7706 | char * kwnames[] = { | |
7707 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7708 | }; | |
7709 | ||
7710 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
7711 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7712 | if (!SWIG_IsOK(res1)) { | |
7713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7714 | } | |
7715 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7716 | if (obj1) { | |
7717 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7718 | if (!SWIG_IsOK(ecode2)) { | |
7719 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'"); | |
7720 | } | |
7721 | arg2 = static_cast< int >(val2); | |
7722 | } | |
7723 | if (obj2) { | |
7724 | { | |
7725 | arg3 = &temp3; | |
7726 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
f20a2e1f | 7727 | } |
1bd55598 RD |
7728 | } |
7729 | if (obj3) { | |
f20a2e1f | 7730 | { |
1bd55598 RD |
7731 | arg4 = &temp4; |
7732 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
f20a2e1f | 7733 | } |
1bd55598 RD |
7734 | } |
7735 | if (obj4) { | |
7736 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
7737 | if (!SWIG_IsOK(ecode5)) { | |
7738 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'"); | |
7739 | } | |
7740 | arg5 = static_cast< long >(val5); | |
7741 | } | |
7742 | if (obj5) { | |
f20a2e1f | 7743 | { |
1bd55598 RD |
7744 | arg6 = wxString_in_helper(obj5); |
7745 | if (arg6 == NULL) SWIG_fail; | |
7746 | temp6 = true; | |
f20a2e1f | 7747 | } |
1bd55598 RD |
7748 | } |
7749 | { | |
7750 | if (!wxPyCheckForApp()) SWIG_fail; | |
7751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7752 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
7753 | wxPyEndAllowThreads(__tstate); | |
7754 | if (PyErr_Occurred()) SWIG_fail; | |
7755 | } | |
7756 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 ); | |
7757 | { | |
7758 | if (temp6) | |
7759 | delete arg6; | |
7760 | } | |
7761 | return resultobj; | |
7762 | fail: | |
7763 | { | |
7764 | if (temp6) | |
7765 | delete arg6; | |
7766 | } | |
7767 | return NULL; | |
d55e5bfc RD |
7768 | } |
7769 | ||
7770 | ||
1bd55598 RD |
7771 | SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7772 | PyObject *resultobj = 0; | |
7773 | wxStaticLine *result = 0 ; | |
7774 | ||
7775 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail; | |
7776 | { | |
7777 | if (!wxPyCheckForApp()) SWIG_fail; | |
7778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7779 | result = (wxStaticLine *)new wxStaticLine(); | |
7780 | wxPyEndAllowThreads(__tstate); | |
7781 | if (PyErr_Occurred()) SWIG_fail; | |
7782 | } | |
7783 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 ); | |
7784 | return resultobj; | |
7785 | fail: | |
7786 | return NULL; | |
7787 | } | |
7788 | ||
7789 | ||
7790 | SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7791 | PyObject *resultobj = 0; | |
7792 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
7793 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7794 | int arg3 = (int) -1 ; | |
7795 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7796 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7797 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7798 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7799 | long arg6 = (long) wxLI_HORIZONTAL ; | |
7800 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
7801 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7802 | bool result; | |
7803 | void *argp1 = 0 ; | |
7804 | int res1 = 0 ; | |
7805 | void *argp2 = 0 ; | |
7806 | int res2 = 0 ; | |
7807 | int val3 ; | |
7808 | int ecode3 = 0 ; | |
7809 | wxPoint temp4 ; | |
7810 | wxSize temp5 ; | |
7811 | long val6 ; | |
7812 | int ecode6 = 0 ; | |
7813 | bool temp7 = false ; | |
7814 | PyObject * obj0 = 0 ; | |
7815 | PyObject * obj1 = 0 ; | |
7816 | PyObject * obj2 = 0 ; | |
7817 | PyObject * obj3 = 0 ; | |
7818 | PyObject * obj4 = 0 ; | |
7819 | PyObject * obj5 = 0 ; | |
7820 | PyObject * obj6 = 0 ; | |
7821 | char * kwnames[] = { | |
7822 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7823 | }; | |
7824 | ||
7825 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7826 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 ); | |
7827 | if (!SWIG_IsOK(res1)) { | |
7828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'"); | |
7829 | } | |
7830 | arg1 = reinterpret_cast< wxStaticLine * >(argp1); | |
7831 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7832 | if (!SWIG_IsOK(res2)) { | |
7833 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7834 | } | |
7835 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7836 | if (obj2) { | |
7837 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7838 | if (!SWIG_IsOK(ecode3)) { | |
7839 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'"); | |
7840 | } | |
7841 | arg3 = static_cast< int >(val3); | |
7842 | } | |
7843 | if (obj3) { | |
d55e5bfc | 7844 | { |
1bd55598 RD |
7845 | arg4 = &temp4; |
7846 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 7847 | } |
1bd55598 RD |
7848 | } |
7849 | if (obj4) { | |
d55e5bfc | 7850 | { |
1bd55598 RD |
7851 | arg5 = &temp5; |
7852 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7853 | } | |
7854 | } | |
7855 | if (obj5) { | |
7856 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7857 | if (!SWIG_IsOK(ecode6)) { | |
7858 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'"); | |
7859 | } | |
7860 | arg6 = static_cast< long >(val6); | |
7861 | } | |
7862 | if (obj6) { | |
7863 | { | |
7864 | arg7 = wxString_in_helper(obj6); | |
7865 | if (arg7 == NULL) SWIG_fail; | |
7866 | temp7 = true; | |
d55e5bfc | 7867 | } |
1bd55598 RD |
7868 | } |
7869 | { | |
7870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7871 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7872 | wxPyEndAllowThreads(__tstate); | |
7873 | if (PyErr_Occurred()) SWIG_fail; | |
7874 | } | |
7875 | { | |
7876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7877 | } | |
7878 | { | |
7879 | if (temp7) | |
7880 | delete arg7; | |
7881 | } | |
7882 | return resultobj; | |
7883 | fail: | |
7884 | { | |
7885 | if (temp7) | |
7886 | delete arg7; | |
7887 | } | |
7888 | return NULL; | |
d55e5bfc RD |
7889 | } |
7890 | ||
7891 | ||
1bd55598 RD |
7892 | SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7893 | PyObject *resultobj = 0; | |
7894 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
7895 | bool result; | |
7896 | void *argp1 = 0 ; | |
7897 | int res1 = 0 ; | |
7898 | PyObject *swig_obj[1] ; | |
7899 | ||
7900 | if (!args) SWIG_fail; | |
7901 | swig_obj[0] = args; | |
7902 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 ); | |
7903 | if (!SWIG_IsOK(res1)) { | |
7904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'"); | |
7905 | } | |
7906 | arg1 = reinterpret_cast< wxStaticLine * >(argp1); | |
7907 | { | |
7908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7909 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
7910 | wxPyEndAllowThreads(__tstate); | |
7911 | if (PyErr_Occurred()) SWIG_fail; | |
7912 | } | |
7913 | { | |
7914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7915 | } | |
7916 | return resultobj; | |
7917 | fail: | |
7918 | return NULL; | |
d55e5bfc RD |
7919 | } |
7920 | ||
7921 | ||
1bd55598 RD |
7922 | SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7923 | PyObject *resultobj = 0; | |
7924 | int result; | |
7925 | ||
7926 | if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail; | |
7927 | { | |
7928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7929 | result = (int)wxStaticLine::GetDefaultSize(); | |
7930 | wxPyEndAllowThreads(__tstate); | |
7931 | if (PyErr_Occurred()) SWIG_fail; | |
7932 | } | |
7933 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7934 | return resultobj; | |
7935 | fail: | |
7936 | return NULL; | |
7937 | } | |
7938 | ||
7939 | ||
7940 | SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7941 | PyObject *resultobj = 0; | |
7942 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7943 | SwigValueWrapper<wxVisualAttributes > result; | |
7944 | int val1 ; | |
7945 | int ecode1 = 0 ; | |
7946 | PyObject * obj0 = 0 ; | |
7947 | char * kwnames[] = { | |
7948 | (char *) "variant", NULL | |
7949 | }; | |
7950 | ||
7951 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7952 | if (obj0) { | |
7953 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7954 | if (!SWIG_IsOK(ecode1)) { | |
7955 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7956 | } | |
7957 | arg1 = static_cast< wxWindowVariant >(val1); | |
7958 | } | |
7959 | { | |
7960 | if (!wxPyCheckForApp()) SWIG_fail; | |
7961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7962 | result = wxStaticLine::GetClassDefaultAttributes(arg1); | |
7963 | wxPyEndAllowThreads(__tstate); | |
7964 | if (PyErr_Occurred()) SWIG_fail; | |
7965 | } | |
7966 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7967 | return resultobj; | |
7968 | fail: | |
7969 | return NULL; | |
7970 | } | |
7971 | ||
7972 | ||
7973 | SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7974 | PyObject *obj; | |
7975 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7976 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj)); | |
7977 | return SWIG_Py_Void(); | |
7978 | } | |
7979 | ||
7980 | SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7981 | return SWIG_Python_InitShadowInstance(args); | |
7982 | } | |
7983 | ||
7984 | SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7985 | PyObject *resultobj = 0; | |
7986 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7987 | int arg2 = (int) -1 ; | |
7988 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7989 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7990 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7991 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7992 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7993 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7994 | long arg6 = (long) 0 ; | |
7995 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
7996 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7997 | wxStaticText *result = 0 ; | |
7998 | void *argp1 = 0 ; | |
7999 | int res1 = 0 ; | |
8000 | int val2 ; | |
8001 | int ecode2 = 0 ; | |
8002 | bool temp3 = false ; | |
8003 | wxPoint temp4 ; | |
8004 | wxSize temp5 ; | |
8005 | long val6 ; | |
8006 | int ecode6 = 0 ; | |
8007 | bool temp7 = false ; | |
8008 | PyObject * obj0 = 0 ; | |
8009 | PyObject * obj1 = 0 ; | |
8010 | PyObject * obj2 = 0 ; | |
8011 | PyObject * obj3 = 0 ; | |
8012 | PyObject * obj4 = 0 ; | |
8013 | PyObject * obj5 = 0 ; | |
8014 | PyObject * obj6 = 0 ; | |
8015 | char * kwnames[] = { | |
8016 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8017 | }; | |
8018 | ||
8019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8021 | if (!SWIG_IsOK(res1)) { | |
8022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8023 | } | |
8024 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8025 | if (obj1) { | |
8026 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8027 | if (!SWIG_IsOK(ecode2)) { | |
8028 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'"); | |
8029 | } | |
8030 | arg2 = static_cast< int >(val2); | |
8031 | } | |
8032 | if (obj2) { | |
d55e5bfc | 8033 | { |
1bd55598 RD |
8034 | arg3 = wxString_in_helper(obj2); |
8035 | if (arg3 == NULL) SWIG_fail; | |
8036 | temp3 = true; | |
d55e5bfc | 8037 | } |
1bd55598 RD |
8038 | } |
8039 | if (obj3) { | |
d55e5bfc | 8040 | { |
1bd55598 RD |
8041 | arg4 = &temp4; |
8042 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 8043 | } |
1bd55598 RD |
8044 | } |
8045 | if (obj4) { | |
d55e5bfc | 8046 | { |
1bd55598 RD |
8047 | arg5 = &temp5; |
8048 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8049 | } |
1bd55598 RD |
8050 | } |
8051 | if (obj5) { | |
8052 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8053 | if (!SWIG_IsOK(ecode6)) { | |
8054 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'"); | |
8055 | } | |
8056 | arg6 = static_cast< long >(val6); | |
8057 | } | |
8058 | if (obj6) { | |
d55e5bfc | 8059 | { |
1bd55598 RD |
8060 | arg7 = wxString_in_helper(obj6); |
8061 | if (arg7 == NULL) SWIG_fail; | |
8062 | temp7 = true; | |
d55e5bfc | 8063 | } |
1bd55598 RD |
8064 | } |
8065 | { | |
8066 | if (!wxPyCheckForApp()) SWIG_fail; | |
8067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8068 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8069 | wxPyEndAllowThreads(__tstate); | |
8070 | if (PyErr_Occurred()) SWIG_fail; | |
8071 | } | |
8072 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 ); | |
8073 | { | |
8074 | if (temp3) | |
8075 | delete arg3; | |
8076 | } | |
8077 | { | |
8078 | if (temp7) | |
8079 | delete arg7; | |
8080 | } | |
8081 | return resultobj; | |
8082 | fail: | |
8083 | { | |
8084 | if (temp3) | |
8085 | delete arg3; | |
8086 | } | |
8087 | { | |
8088 | if (temp7) | |
8089 | delete arg7; | |
8090 | } | |
8091 | return NULL; | |
d55e5bfc RD |
8092 | } |
8093 | ||
8094 | ||
1bd55598 RD |
8095 | SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8096 | PyObject *resultobj = 0; | |
8097 | wxStaticText *result = 0 ; | |
8098 | ||
8099 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail; | |
8100 | { | |
8101 | if (!wxPyCheckForApp()) SWIG_fail; | |
8102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8103 | result = (wxStaticText *)new wxStaticText(); | |
8104 | wxPyEndAllowThreads(__tstate); | |
8105 | if (PyErr_Occurred()) SWIG_fail; | |
8106 | } | |
8107 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 ); | |
8108 | return resultobj; | |
8109 | fail: | |
8110 | return NULL; | |
8111 | } | |
8112 | ||
8113 | ||
8114 | SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8115 | PyObject *resultobj = 0; | |
8116 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
8117 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8118 | int arg3 = (int) -1 ; | |
8119 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8120 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8121 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8122 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8123 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8124 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8125 | long arg7 = (long) 0 ; | |
8126 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
8127 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8128 | bool result; | |
8129 | void *argp1 = 0 ; | |
8130 | int res1 = 0 ; | |
8131 | void *argp2 = 0 ; | |
8132 | int res2 = 0 ; | |
8133 | int val3 ; | |
8134 | int ecode3 = 0 ; | |
8135 | bool temp4 = false ; | |
8136 | wxPoint temp5 ; | |
8137 | wxSize temp6 ; | |
8138 | long val7 ; | |
8139 | int ecode7 = 0 ; | |
8140 | bool temp8 = false ; | |
8141 | PyObject * obj0 = 0 ; | |
8142 | PyObject * obj1 = 0 ; | |
8143 | PyObject * obj2 = 0 ; | |
8144 | PyObject * obj3 = 0 ; | |
8145 | PyObject * obj4 = 0 ; | |
8146 | PyObject * obj5 = 0 ; | |
8147 | PyObject * obj6 = 0 ; | |
8148 | PyObject * obj7 = 0 ; | |
8149 | char * kwnames[] = { | |
8150 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8151 | }; | |
8152 | ||
8153 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8154 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 ); | |
8155 | if (!SWIG_IsOK(res1)) { | |
8156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'"); | |
8157 | } | |
8158 | arg1 = reinterpret_cast< wxStaticText * >(argp1); | |
8159 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8160 | if (!SWIG_IsOK(res2)) { | |
8161 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8162 | } | |
8163 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8164 | if (obj2) { | |
8165 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8166 | if (!SWIG_IsOK(ecode3)) { | |
8167 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'"); | |
8168 | } | |
8169 | arg3 = static_cast< int >(val3); | |
8170 | } | |
8171 | if (obj3) { | |
d55e5bfc | 8172 | { |
1bd55598 RD |
8173 | arg4 = wxString_in_helper(obj3); |
8174 | if (arg4 == NULL) SWIG_fail; | |
8175 | temp4 = true; | |
d55e5bfc | 8176 | } |
1bd55598 RD |
8177 | } |
8178 | if (obj4) { | |
d55e5bfc | 8179 | { |
1bd55598 RD |
8180 | arg5 = &temp5; |
8181 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8182 | } |
1bd55598 RD |
8183 | } |
8184 | if (obj5) { | |
d55e5bfc | 8185 | { |
1bd55598 RD |
8186 | arg6 = &temp6; |
8187 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 8188 | } |
1bd55598 RD |
8189 | } |
8190 | if (obj6) { | |
8191 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8192 | if (!SWIG_IsOK(ecode7)) { | |
8193 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'"); | |
8194 | } | |
8195 | arg7 = static_cast< long >(val7); | |
8196 | } | |
8197 | if (obj7) { | |
d55e5bfc | 8198 | { |
1bd55598 RD |
8199 | arg8 = wxString_in_helper(obj7); |
8200 | if (arg8 == NULL) SWIG_fail; | |
8201 | temp8 = true; | |
d55e5bfc | 8202 | } |
1bd55598 RD |
8203 | } |
8204 | { | |
8205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8206 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8207 | wxPyEndAllowThreads(__tstate); | |
8208 | if (PyErr_Occurred()) SWIG_fail; | |
8209 | } | |
8210 | { | |
8211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8212 | } | |
8213 | { | |
8214 | if (temp4) | |
8215 | delete arg4; | |
8216 | } | |
8217 | { | |
8218 | if (temp8) | |
8219 | delete arg8; | |
8220 | } | |
8221 | return resultobj; | |
8222 | fail: | |
8223 | { | |
8224 | if (temp4) | |
8225 | delete arg4; | |
8226 | } | |
8227 | { | |
8228 | if (temp8) | |
8229 | delete arg8; | |
8230 | } | |
8231 | return NULL; | |
8232 | } | |
8233 | ||
8234 | ||
8235 | SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8236 | PyObject *resultobj = 0; | |
8237 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
8238 | int arg2 ; | |
8239 | void *argp1 = 0 ; | |
8240 | int res1 = 0 ; | |
8241 | int val2 ; | |
8242 | int ecode2 = 0 ; | |
8243 | PyObject * obj0 = 0 ; | |
8244 | PyObject * obj1 = 0 ; | |
8245 | char * kwnames[] = { | |
8246 | (char *) "self",(char *) "width", NULL | |
8247 | }; | |
8248 | ||
8249 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8250 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 ); | |
8251 | if (!SWIG_IsOK(res1)) { | |
8252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'"); | |
8253 | } | |
8254 | arg1 = reinterpret_cast< wxStaticText * >(argp1); | |
8255 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8256 | if (!SWIG_IsOK(ecode2)) { | |
8257 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'"); | |
8258 | } | |
8259 | arg2 = static_cast< int >(val2); | |
8260 | { | |
8261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8262 | (arg1)->Wrap(arg2); | |
8263 | wxPyEndAllowThreads(__tstate); | |
8264 | if (PyErr_Occurred()) SWIG_fail; | |
8265 | } | |
8266 | resultobj = SWIG_Py_Void(); | |
8267 | return resultobj; | |
8268 | fail: | |
8269 | return NULL; | |
8270 | } | |
8271 | ||
8272 | ||
8273 | SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8274 | PyObject *resultobj = 0; | |
8275 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8276 | SwigValueWrapper<wxVisualAttributes > result; | |
8277 | int val1 ; | |
8278 | int ecode1 = 0 ; | |
8279 | PyObject * obj0 = 0 ; | |
8280 | char * kwnames[] = { | |
8281 | (char *) "variant", NULL | |
8282 | }; | |
8283 | ||
8284 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8285 | if (obj0) { | |
8286 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8287 | if (!SWIG_IsOK(ecode1)) { | |
8288 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8289 | } | |
8290 | arg1 = static_cast< wxWindowVariant >(val1); | |
8291 | } | |
8292 | { | |
8293 | if (!wxPyCheckForApp()) SWIG_fail; | |
8294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8295 | result = wxStaticText::GetClassDefaultAttributes(arg1); | |
8296 | wxPyEndAllowThreads(__tstate); | |
8297 | if (PyErr_Occurred()) SWIG_fail; | |
8298 | } | |
8299 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8300 | return resultobj; | |
8301 | fail: | |
8302 | return NULL; | |
8303 | } | |
8304 | ||
8305 | ||
8306 | SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8307 | PyObject *obj; | |
8308 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8309 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj)); | |
8310 | return SWIG_Py_Void(); | |
8311 | } | |
8312 | ||
8313 | SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8314 | return SWIG_Python_InitShadowInstance(args); | |
8315 | } | |
8316 | ||
8317 | SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8318 | PyObject *resultobj = 0; | |
8319 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8320 | int arg2 = (int) -1 ; | |
8321 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
8322 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
8323 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8324 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8325 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8326 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8327 | long arg6 = (long) 0 ; | |
8328 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
8329 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8330 | wxStaticBitmap *result = 0 ; | |
8331 | void *argp1 = 0 ; | |
8332 | int res1 = 0 ; | |
8333 | int val2 ; | |
8334 | int ecode2 = 0 ; | |
8335 | void *argp3 = 0 ; | |
8336 | int res3 = 0 ; | |
8337 | wxPoint temp4 ; | |
8338 | wxSize temp5 ; | |
8339 | long val6 ; | |
8340 | int ecode6 = 0 ; | |
8341 | bool temp7 = false ; | |
8342 | PyObject * obj0 = 0 ; | |
8343 | PyObject * obj1 = 0 ; | |
8344 | PyObject * obj2 = 0 ; | |
8345 | PyObject * obj3 = 0 ; | |
8346 | PyObject * obj4 = 0 ; | |
8347 | PyObject * obj5 = 0 ; | |
8348 | PyObject * obj6 = 0 ; | |
8349 | char * kwnames[] = { | |
8350 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8351 | }; | |
8352 | ||
8353 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8354 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8355 | if (!SWIG_IsOK(res1)) { | |
8356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8357 | } | |
8358 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8359 | if (obj1) { | |
8360 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8361 | if (!SWIG_IsOK(ecode2)) { | |
8362 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'"); | |
8363 | } | |
8364 | arg2 = static_cast< int >(val2); | |
8365 | } | |
8366 | if (obj2) { | |
8367 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8368 | if (!SWIG_IsOK(res3)) { | |
8369 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 8370 | } |
1bd55598 RD |
8371 | if (!argp3) { |
8372 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 8373 | } |
1bd55598 RD |
8374 | arg3 = reinterpret_cast< wxBitmap * >(argp3); |
8375 | } | |
8376 | if (obj3) { | |
d55e5bfc | 8377 | { |
1bd55598 RD |
8378 | arg4 = &temp4; |
8379 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
f20a2e1f | 8380 | } |
1bd55598 RD |
8381 | } |
8382 | if (obj4) { | |
f20a2e1f | 8383 | { |
1bd55598 RD |
8384 | arg5 = &temp5; |
8385 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
f20a2e1f | 8386 | } |
1bd55598 RD |
8387 | } |
8388 | if (obj5) { | |
8389 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8390 | if (!SWIG_IsOK(ecode6)) { | |
8391 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'"); | |
8392 | } | |
8393 | arg6 = static_cast< long >(val6); | |
8394 | } | |
8395 | if (obj6) { | |
f20a2e1f | 8396 | { |
1bd55598 RD |
8397 | arg7 = wxString_in_helper(obj6); |
8398 | if (arg7 == NULL) SWIG_fail; | |
8399 | temp7 = true; | |
f20a2e1f | 8400 | } |
1bd55598 RD |
8401 | } |
8402 | { | |
8403 | if (!wxPyCheckForApp()) SWIG_fail; | |
8404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8405 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8406 | wxPyEndAllowThreads(__tstate); | |
8407 | if (PyErr_Occurred()) SWIG_fail; | |
8408 | } | |
8409 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 ); | |
8410 | { | |
8411 | if (temp7) | |
8412 | delete arg7; | |
8413 | } | |
8414 | return resultobj; | |
8415 | fail: | |
8416 | { | |
8417 | if (temp7) | |
8418 | delete arg7; | |
8419 | } | |
8420 | return NULL; | |
f20a2e1f RD |
8421 | } |
8422 | ||
8423 | ||
1bd55598 RD |
8424 | SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8425 | PyObject *resultobj = 0; | |
8426 | wxStaticBitmap *result = 0 ; | |
8427 | ||
8428 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail; | |
8429 | { | |
8430 | if (!wxPyCheckForApp()) SWIG_fail; | |
8431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8432 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
8433 | wxPyEndAllowThreads(__tstate); | |
8434 | if (PyErr_Occurred()) SWIG_fail; | |
8435 | } | |
8436 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 ); | |
8437 | return resultobj; | |
8438 | fail: | |
8439 | return NULL; | |
8440 | } | |
8441 | ||
8442 | ||
8443 | SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8444 | PyObject *resultobj = 0; | |
8445 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8446 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8447 | int arg3 = (int) -1 ; | |
8448 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
8449 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
8450 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8451 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8452 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8453 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8454 | long arg7 = (long) 0 ; | |
8455 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
8456 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8457 | bool result; | |
8458 | void *argp1 = 0 ; | |
8459 | int res1 = 0 ; | |
8460 | void *argp2 = 0 ; | |
8461 | int res2 = 0 ; | |
8462 | int val3 ; | |
8463 | int ecode3 = 0 ; | |
8464 | void *argp4 = 0 ; | |
8465 | int res4 = 0 ; | |
8466 | wxPoint temp5 ; | |
8467 | wxSize temp6 ; | |
8468 | long val7 ; | |
8469 | int ecode7 = 0 ; | |
8470 | bool temp8 = false ; | |
8471 | PyObject * obj0 = 0 ; | |
8472 | PyObject * obj1 = 0 ; | |
8473 | PyObject * obj2 = 0 ; | |
8474 | PyObject * obj3 = 0 ; | |
8475 | PyObject * obj4 = 0 ; | |
8476 | PyObject * obj5 = 0 ; | |
8477 | PyObject * obj6 = 0 ; | |
8478 | PyObject * obj7 = 0 ; | |
8479 | char * kwnames[] = { | |
8480 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8481 | }; | |
8482 | ||
8483 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8484 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8485 | if (!SWIG_IsOK(res1)) { | |
8486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8487 | } | |
8488 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8489 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8490 | if (!SWIG_IsOK(res2)) { | |
8491 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8492 | } | |
8493 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8494 | if (obj2) { | |
8495 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8496 | if (!SWIG_IsOK(ecode3)) { | |
8497 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'"); | |
8498 | } | |
8499 | arg3 = static_cast< int >(val3); | |
8500 | } | |
8501 | if (obj3) { | |
8502 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8503 | if (!SWIG_IsOK(res4)) { | |
8504 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 8505 | } |
1bd55598 RD |
8506 | if (!argp4) { |
8507 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 8508 | } |
1bd55598 RD |
8509 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
8510 | } | |
8511 | if (obj4) { | |
d55e5bfc | 8512 | { |
1bd55598 RD |
8513 | arg5 = &temp5; |
8514 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8515 | } |
1bd55598 RD |
8516 | } |
8517 | if (obj5) { | |
d55e5bfc | 8518 | { |
1bd55598 RD |
8519 | arg6 = &temp6; |
8520 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 8521 | } |
1bd55598 RD |
8522 | } |
8523 | if (obj6) { | |
8524 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8525 | if (!SWIG_IsOK(ecode7)) { | |
8526 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'"); | |
8527 | } | |
8528 | arg7 = static_cast< long >(val7); | |
8529 | } | |
8530 | if (obj7) { | |
d55e5bfc | 8531 | { |
1bd55598 RD |
8532 | arg8 = wxString_in_helper(obj7); |
8533 | if (arg8 == NULL) SWIG_fail; | |
8534 | temp8 = true; | |
d55e5bfc | 8535 | } |
1bd55598 RD |
8536 | } |
8537 | { | |
8538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8539 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8540 | wxPyEndAllowThreads(__tstate); | |
8541 | if (PyErr_Occurred()) SWIG_fail; | |
8542 | } | |
8543 | { | |
8544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8545 | } | |
8546 | { | |
8547 | if (temp8) | |
8548 | delete arg8; | |
8549 | } | |
8550 | return resultobj; | |
8551 | fail: | |
8552 | { | |
8553 | if (temp8) | |
8554 | delete arg8; | |
8555 | } | |
8556 | return NULL; | |
d55e5bfc RD |
8557 | } |
8558 | ||
8559 | ||
1bd55598 RD |
8560 | SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8561 | PyObject *resultobj = 0; | |
8562 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8563 | wxBitmap result; | |
8564 | void *argp1 = 0 ; | |
8565 | int res1 = 0 ; | |
8566 | PyObject *swig_obj[1] ; | |
8567 | ||
8568 | if (!args) SWIG_fail; | |
8569 | swig_obj[0] = args; | |
8570 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8571 | if (!SWIG_IsOK(res1)) { | |
8572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8573 | } | |
8574 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8575 | { | |
8576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8577 | result = (arg1)->GetBitmap(); | |
8578 | wxPyEndAllowThreads(__tstate); | |
8579 | if (PyErr_Occurred()) SWIG_fail; | |
8580 | } | |
8581 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
8582 | return resultobj; | |
8583 | fail: | |
8584 | return NULL; | |
8585 | } | |
8586 | ||
8587 | ||
8588 | SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8589 | PyObject *resultobj = 0; | |
8590 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8591 | wxBitmap *arg2 = 0 ; | |
8592 | void *argp1 = 0 ; | |
8593 | int res1 = 0 ; | |
8594 | void *argp2 = 0 ; | |
8595 | int res2 = 0 ; | |
8596 | PyObject * obj0 = 0 ; | |
8597 | PyObject * obj1 = 0 ; | |
8598 | char * kwnames[] = { | |
8599 | (char *) "self",(char *) "bitmap", NULL | |
8600 | }; | |
8601 | ||
8602 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8603 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8604 | if (!SWIG_IsOK(res1)) { | |
8605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8606 | } | |
8607 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8608 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8609 | if (!SWIG_IsOK(res2)) { | |
8610 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8611 | } | |
8612 | if (!argp2) { | |
8613 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8614 | } | |
8615 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8616 | { | |
8617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8618 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
8619 | wxPyEndAllowThreads(__tstate); | |
8620 | if (PyErr_Occurred()) SWIG_fail; | |
8621 | } | |
8622 | resultobj = SWIG_Py_Void(); | |
8623 | return resultobj; | |
8624 | fail: | |
8625 | return NULL; | |
8626 | } | |
8627 | ||
8628 | ||
8629 | SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8630 | PyObject *resultobj = 0; | |
8631 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8632 | wxIcon *arg2 = 0 ; | |
8633 | void *argp1 = 0 ; | |
8634 | int res1 = 0 ; | |
8635 | void *argp2 = 0 ; | |
8636 | int res2 = 0 ; | |
8637 | PyObject * obj0 = 0 ; | |
8638 | PyObject * obj1 = 0 ; | |
8639 | char * kwnames[] = { | |
8640 | (char *) "self",(char *) "icon", NULL | |
8641 | }; | |
8642 | ||
8643 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
8644 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8645 | if (!SWIG_IsOK(res1)) { | |
8646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8647 | } | |
8648 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8649 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
8650 | if (!SWIG_IsOK(res2)) { | |
8651 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
8652 | } | |
8653 | if (!argp2) { | |
8654 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
8655 | } | |
8656 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
8657 | { | |
8658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8659 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
8660 | wxPyEndAllowThreads(__tstate); | |
8661 | if (PyErr_Occurred()) SWIG_fail; | |
8662 | } | |
8663 | resultobj = SWIG_Py_Void(); | |
8664 | return resultobj; | |
8665 | fail: | |
8666 | return NULL; | |
8667 | } | |
8668 | ||
8669 | ||
8670 | SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8671 | PyObject *resultobj = 0; | |
8672 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8673 | SwigValueWrapper<wxVisualAttributes > result; | |
8674 | int val1 ; | |
8675 | int ecode1 = 0 ; | |
8676 | PyObject * obj0 = 0 ; | |
8677 | char * kwnames[] = { | |
8678 | (char *) "variant", NULL | |
8679 | }; | |
8680 | ||
8681 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8682 | if (obj0) { | |
8683 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8684 | if (!SWIG_IsOK(ecode1)) { | |
8685 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8686 | } | |
8687 | arg1 = static_cast< wxWindowVariant >(val1); | |
8688 | } | |
8689 | { | |
8690 | if (!wxPyCheckForApp()) SWIG_fail; | |
8691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8692 | result = wxStaticBitmap::GetClassDefaultAttributes(arg1); | |
8693 | wxPyEndAllowThreads(__tstate); | |
8694 | if (PyErr_Occurred()) SWIG_fail; | |
8695 | } | |
8696 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8697 | return resultobj; | |
8698 | fail: | |
8699 | return NULL; | |
d55e5bfc RD |
8700 | } |
8701 | ||
8702 | ||
1bd55598 RD |
8703 | SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8704 | PyObject *obj; | |
8705 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8706 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj)); | |
8707 | return SWIG_Py_Void(); | |
d55e5bfc RD |
8708 | } |
8709 | ||
1bd55598 RD |
8710 | SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8711 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
8712 | } |
8713 | ||
1bd55598 RD |
8714 | SWIGINTERN int ListBoxNameStr_set(PyObject *) { |
8715 | SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only."); | |
8716 | return 1; | |
f20a2e1f RD |
8717 | } |
8718 | ||
8719 | ||
1bd55598 RD |
8720 | SWIGINTERN PyObject *ListBoxNameStr_get(void) { |
8721 | PyObject *pyobj = 0; | |
8722 | ||
8723 | { | |
8724 | #if wxUSE_UNICODE | |
8725 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
8726 | #else | |
8727 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
8728 | #endif | |
8729 | } | |
8730 | return pyobj; | |
8731 | } | |
8732 | ||
8733 | ||
8734 | SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8735 | PyObject *resultobj = 0; | |
8736 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8737 | int arg2 = (int) -1 ; | |
8738 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8739 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8740 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8741 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8742 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
8743 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
8744 | long arg6 = (long) 0 ; | |
8745 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8746 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8747 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
8748 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8749 | wxListBox *result = 0 ; | |
8750 | void *argp1 = 0 ; | |
8751 | int res1 = 0 ; | |
8752 | int val2 ; | |
8753 | int ecode2 = 0 ; | |
8754 | wxPoint temp3 ; | |
8755 | wxSize temp4 ; | |
8756 | bool temp5 = false ; | |
8757 | long val6 ; | |
8758 | int ecode6 = 0 ; | |
8759 | void *argp7 = 0 ; | |
8760 | int res7 = 0 ; | |
8761 | bool temp8 = false ; | |
8762 | PyObject * obj0 = 0 ; | |
8763 | PyObject * obj1 = 0 ; | |
8764 | PyObject * obj2 = 0 ; | |
8765 | PyObject * obj3 = 0 ; | |
8766 | PyObject * obj4 = 0 ; | |
8767 | PyObject * obj5 = 0 ; | |
8768 | PyObject * obj6 = 0 ; | |
8769 | PyObject * obj7 = 0 ; | |
8770 | char * kwnames[] = { | |
8771 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8772 | }; | |
8773 | ||
8774 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8775 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8776 | if (!SWIG_IsOK(res1)) { | |
8777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8778 | } | |
8779 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8780 | if (obj1) { | |
8781 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8782 | if (!SWIG_IsOK(ecode2)) { | |
8783 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'"); | |
8784 | } | |
8785 | arg2 = static_cast< int >(val2); | |
8786 | } | |
8787 | if (obj2) { | |
d55e5bfc | 8788 | { |
1bd55598 RD |
8789 | arg3 = &temp3; |
8790 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 8791 | } |
1bd55598 RD |
8792 | } |
8793 | if (obj3) { | |
d55e5bfc | 8794 | { |
1bd55598 RD |
8795 | arg4 = &temp4; |
8796 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 8797 | } |
1bd55598 RD |
8798 | } |
8799 | if (obj4) { | |
d55e5bfc | 8800 | { |
1bd55598 RD |
8801 | if (! PySequence_Check(obj4)) { |
8802 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8803 | SWIG_fail; | |
8804 | } | |
8805 | arg5 = new wxArrayString; | |
8806 | temp5 = true; | |
8807 | int i, len=PySequence_Length(obj4); | |
8808 | for (i=0; i<len; i++) { | |
8809 | PyObject* item = PySequence_GetItem(obj4, i); | |
8810 | wxString* s = wxString_in_helper(item); | |
8811 | if (PyErr_Occurred()) SWIG_fail; | |
8812 | arg5->Add(*s); | |
8813 | delete s; | |
8814 | Py_DECREF(item); | |
8815 | } | |
d55e5bfc | 8816 | } |
1bd55598 RD |
8817 | } |
8818 | if (obj5) { | |
8819 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8820 | if (!SWIG_IsOK(ecode6)) { | |
8821 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'"); | |
8822 | } | |
8823 | arg6 = static_cast< long >(val6); | |
8824 | } | |
8825 | if (obj6) { | |
8826 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
8827 | if (!SWIG_IsOK(res7)) { | |
8828 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 8829 | } |
1bd55598 RD |
8830 | if (!argp7) { |
8831 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 8832 | } |
1bd55598 RD |
8833 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
8834 | } | |
8835 | if (obj7) { | |
d55e5bfc | 8836 | { |
1bd55598 RD |
8837 | arg8 = wxString_in_helper(obj7); |
8838 | if (arg8 == NULL) SWIG_fail; | |
8839 | temp8 = true; | |
d55e5bfc | 8840 | } |
1bd55598 RD |
8841 | } |
8842 | { | |
8843 | if (!wxPyCheckForApp()) SWIG_fail; | |
8844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8845 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8846 | wxPyEndAllowThreads(__tstate); | |
8847 | if (PyErr_Occurred()) SWIG_fail; | |
8848 | } | |
8849 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 ); | |
8850 | { | |
8851 | if (temp5) delete arg5; | |
8852 | } | |
8853 | { | |
8854 | if (temp8) | |
8855 | delete arg8; | |
8856 | } | |
8857 | return resultobj; | |
8858 | fail: | |
8859 | { | |
8860 | if (temp5) delete arg5; | |
8861 | } | |
8862 | { | |
8863 | if (temp8) | |
8864 | delete arg8; | |
8865 | } | |
8866 | return NULL; | |
d55e5bfc RD |
8867 | } |
8868 | ||
8869 | ||
1bd55598 RD |
8870 | SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8871 | PyObject *resultobj = 0; | |
8872 | wxListBox *result = 0 ; | |
8873 | ||
8874 | if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail; | |
8875 | { | |
8876 | if (!wxPyCheckForApp()) SWIG_fail; | |
8877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8878 | result = (wxListBox *)new wxListBox(); | |
8879 | wxPyEndAllowThreads(__tstate); | |
8880 | if (PyErr_Occurred()) SWIG_fail; | |
8881 | } | |
8882 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 ); | |
8883 | return resultobj; | |
8884 | fail: | |
8885 | return NULL; | |
8886 | } | |
8887 | ||
8888 | ||
8889 | SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8890 | PyObject *resultobj = 0; | |
8891 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8892 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8893 | int arg3 = (int) -1 ; | |
8894 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8895 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8896 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8897 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8898 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
8899 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
8900 | long arg7 = (long) 0 ; | |
8901 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8902 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8903 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
8904 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8905 | bool result; | |
8906 | void *argp1 = 0 ; | |
8907 | int res1 = 0 ; | |
8908 | void *argp2 = 0 ; | |
8909 | int res2 = 0 ; | |
8910 | int val3 ; | |
8911 | int ecode3 = 0 ; | |
8912 | wxPoint temp4 ; | |
8913 | wxSize temp5 ; | |
8914 | bool temp6 = false ; | |
8915 | long val7 ; | |
8916 | int ecode7 = 0 ; | |
8917 | void *argp8 = 0 ; | |
8918 | int res8 = 0 ; | |
8919 | bool temp9 = false ; | |
8920 | PyObject * obj0 = 0 ; | |
8921 | PyObject * obj1 = 0 ; | |
8922 | PyObject * obj2 = 0 ; | |
8923 | PyObject * obj3 = 0 ; | |
8924 | PyObject * obj4 = 0 ; | |
8925 | PyObject * obj5 = 0 ; | |
8926 | PyObject * obj6 = 0 ; | |
8927 | PyObject * obj7 = 0 ; | |
8928 | PyObject * obj8 = 0 ; | |
8929 | char * kwnames[] = { | |
8930 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8931 | }; | |
8932 | ||
8933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
8934 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
8935 | if (!SWIG_IsOK(res1)) { | |
8936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
8937 | } | |
8938 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
8939 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8940 | if (!SWIG_IsOK(res2)) { | |
8941 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8942 | } | |
8943 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8944 | if (obj2) { | |
8945 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8946 | if (!SWIG_IsOK(ecode3)) { | |
8947 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
8948 | } | |
8949 | arg3 = static_cast< int >(val3); | |
8950 | } | |
8951 | if (obj3) { | |
d55e5bfc | 8952 | { |
1bd55598 RD |
8953 | arg4 = &temp4; |
8954 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 8955 | } |
1bd55598 RD |
8956 | } |
8957 | if (obj4) { | |
d55e5bfc | 8958 | { |
1bd55598 RD |
8959 | arg5 = &temp5; |
8960 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8961 | } |
1bd55598 RD |
8962 | } |
8963 | if (obj5) { | |
943e8dfd | 8964 | { |
1bd55598 RD |
8965 | if (! PySequence_Check(obj5)) { |
8966 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8967 | SWIG_fail; | |
8968 | } | |
8969 | arg6 = new wxArrayString; | |
8970 | temp6 = true; | |
8971 | int i, len=PySequence_Length(obj5); | |
8972 | for (i=0; i<len; i++) { | |
8973 | PyObject* item = PySequence_GetItem(obj5, i); | |
8974 | wxString* s = wxString_in_helper(item); | |
8975 | if (PyErr_Occurred()) SWIG_fail; | |
8976 | arg6->Add(*s); | |
8977 | delete s; | |
8978 | Py_DECREF(item); | |
8979 | } | |
943e8dfd | 8980 | } |
1bd55598 RD |
8981 | } |
8982 | if (obj6) { | |
8983 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8984 | if (!SWIG_IsOK(ecode7)) { | |
8985 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
8986 | } | |
8987 | arg7 = static_cast< long >(val7); | |
8988 | } | |
8989 | if (obj7) { | |
8990 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
8991 | if (!SWIG_IsOK(res8)) { | |
8992 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
943e8dfd | 8993 | } |
1bd55598 RD |
8994 | if (!argp8) { |
8995 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
f20a2e1f | 8996 | } |
1bd55598 RD |
8997 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
8998 | } | |
8999 | if (obj8) { | |
f20a2e1f | 9000 | { |
1bd55598 RD |
9001 | arg9 = wxString_in_helper(obj8); |
9002 | if (arg9 == NULL) SWIG_fail; | |
9003 | temp9 = true; | |
f20a2e1f | 9004 | } |
1bd55598 RD |
9005 | } |
9006 | { | |
9007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9008 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
9009 | wxPyEndAllowThreads(__tstate); | |
9010 | if (PyErr_Occurred()) SWIG_fail; | |
9011 | } | |
9012 | { | |
9013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9014 | } | |
9015 | { | |
9016 | if (temp6) delete arg6; | |
9017 | } | |
9018 | { | |
9019 | if (temp9) | |
9020 | delete arg9; | |
9021 | } | |
9022 | return resultobj; | |
9023 | fail: | |
9024 | { | |
9025 | if (temp6) delete arg6; | |
9026 | } | |
9027 | { | |
9028 | if (temp9) | |
9029 | delete arg9; | |
9030 | } | |
9031 | return NULL; | |
9032 | } | |
9033 | ||
9034 | ||
9035 | SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9036 | PyObject *resultobj = 0; | |
9037 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9038 | wxString *arg2 = 0 ; | |
9039 | int arg3 ; | |
9040 | PyObject *arg4 = (PyObject *) NULL ; | |
9041 | void *argp1 = 0 ; | |
9042 | int res1 = 0 ; | |
9043 | bool temp2 = false ; | |
9044 | int val3 ; | |
9045 | int ecode3 = 0 ; | |
9046 | PyObject * obj0 = 0 ; | |
9047 | PyObject * obj1 = 0 ; | |
9048 | PyObject * obj2 = 0 ; | |
9049 | PyObject * obj3 = 0 ; | |
9050 | char * kwnames[] = { | |
9051 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
9052 | }; | |
9053 | ||
9054 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9055 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9056 | if (!SWIG_IsOK(res1)) { | |
9057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9058 | } | |
9059 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9060 | { | |
9061 | arg2 = wxString_in_helper(obj1); | |
9062 | if (arg2 == NULL) SWIG_fail; | |
9063 | temp2 = true; | |
9064 | } | |
9065 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9066 | if (!SWIG_IsOK(ecode3)) { | |
9067 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'"); | |
9068 | } | |
9069 | arg3 = static_cast< int >(val3); | |
9070 | if (obj3) { | |
9071 | arg4 = obj3; | |
9072 | } | |
9073 | { | |
9074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9075 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
9076 | wxPyEndAllowThreads(__tstate); | |
9077 | if (PyErr_Occurred()) SWIG_fail; | |
9078 | } | |
9079 | resultobj = SWIG_Py_Void(); | |
9080 | { | |
9081 | if (temp2) | |
9082 | delete arg2; | |
9083 | } | |
9084 | return resultobj; | |
9085 | fail: | |
9086 | { | |
9087 | if (temp2) | |
9088 | delete arg2; | |
9089 | } | |
9090 | return NULL; | |
9091 | } | |
9092 | ||
9093 | ||
9094 | SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9095 | PyObject *resultobj = 0; | |
9096 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9097 | wxArrayString *arg2 = 0 ; | |
50f151d7 | 9098 | unsigned int arg3 ; |
1bd55598 RD |
9099 | void *argp1 = 0 ; |
9100 | int res1 = 0 ; | |
9101 | bool temp2 = false ; | |
50f151d7 | 9102 | unsigned int val3 ; |
1bd55598 RD |
9103 | int ecode3 = 0 ; |
9104 | PyObject * obj0 = 0 ; | |
9105 | PyObject * obj1 = 0 ; | |
9106 | PyObject * obj2 = 0 ; | |
9107 | char * kwnames[] = { | |
9108 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
9109 | }; | |
9110 | ||
9111 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9112 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9113 | if (!SWIG_IsOK(res1)) { | |
9114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9115 | } | |
9116 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9117 | { | |
9118 | if (! PySequence_Check(obj1)) { | |
9119 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9120 | SWIG_fail; | |
9121 | } | |
9122 | arg2 = new wxArrayString; | |
9123 | temp2 = true; | |
9124 | int i, len=PySequence_Length(obj1); | |
9125 | for (i=0; i<len; i++) { | |
9126 | PyObject* item = PySequence_GetItem(obj1, i); | |
9127 | wxString* s = wxString_in_helper(item); | |
9128 | if (PyErr_Occurred()) SWIG_fail; | |
9129 | arg2->Add(*s); | |
9130 | delete s; | |
9131 | Py_DECREF(item); | |
f20a2e1f | 9132 | } |
1bd55598 | 9133 | } |
50f151d7 | 9134 | ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); |
1bd55598 | 9135 | if (!SWIG_IsOK(ecode3)) { |
50f151d7 | 9136 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'"); |
1bd55598 | 9137 | } |
50f151d7 | 9138 | arg3 = static_cast< unsigned int >(val3); |
1bd55598 RD |
9139 | { |
9140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9141 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
9142 | wxPyEndAllowThreads(__tstate); | |
9143 | if (PyErr_Occurred()) SWIG_fail; | |
9144 | } | |
9145 | resultobj = SWIG_Py_Void(); | |
9146 | { | |
9147 | if (temp2) delete arg2; | |
9148 | } | |
9149 | return resultobj; | |
9150 | fail: | |
9151 | { | |
9152 | if (temp2) delete arg2; | |
9153 | } | |
9154 | return NULL; | |
f20a2e1f RD |
9155 | } |
9156 | ||
9157 | ||
1bd55598 RD |
9158 | SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9159 | PyObject *resultobj = 0; | |
9160 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9161 | wxArrayString *arg2 = 0 ; | |
9162 | void *argp1 = 0 ; | |
9163 | int res1 = 0 ; | |
9164 | bool temp2 = false ; | |
9165 | PyObject * obj0 = 0 ; | |
9166 | PyObject * obj1 = 0 ; | |
9167 | char * kwnames[] = { | |
9168 | (char *) "self",(char *) "items", NULL | |
9169 | }; | |
9170 | ||
9171 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail; | |
9172 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9173 | if (!SWIG_IsOK(res1)) { | |
9174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9175 | } | |
9176 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9177 | { | |
9178 | if (! PySequence_Check(obj1)) { | |
9179 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9180 | SWIG_fail; | |
9181 | } | |
9182 | arg2 = new wxArrayString; | |
9183 | temp2 = true; | |
9184 | int i, len=PySequence_Length(obj1); | |
9185 | for (i=0; i<len; i++) { | |
9186 | PyObject* item = PySequence_GetItem(obj1, i); | |
9187 | wxString* s = wxString_in_helper(item); | |
9188 | if (PyErr_Occurred()) SWIG_fail; | |
9189 | arg2->Add(*s); | |
9190 | delete s; | |
9191 | Py_DECREF(item); | |
bfddbb17 | 9192 | } |
1bd55598 RD |
9193 | } |
9194 | { | |
9195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9196 | (arg1)->Set((wxArrayString const &)*arg2); | |
9197 | wxPyEndAllowThreads(__tstate); | |
9198 | if (PyErr_Occurred()) SWIG_fail; | |
9199 | } | |
9200 | resultobj = SWIG_Py_Void(); | |
9201 | { | |
9202 | if (temp2) delete arg2; | |
9203 | } | |
9204 | return resultobj; | |
9205 | fail: | |
9206 | { | |
9207 | if (temp2) delete arg2; | |
9208 | } | |
9209 | return NULL; | |
9210 | } | |
9211 | ||
9212 | ||
9213 | SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9214 | PyObject *resultobj = 0; | |
9215 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9216 | int arg2 ; | |
9217 | bool result; | |
9218 | void *argp1 = 0 ; | |
9219 | int res1 = 0 ; | |
9220 | int val2 ; | |
9221 | int ecode2 = 0 ; | |
9222 | PyObject * obj0 = 0 ; | |
9223 | PyObject * obj1 = 0 ; | |
9224 | char * kwnames[] = { | |
9225 | (char *) "self",(char *) "n", NULL | |
9226 | }; | |
9227 | ||
9228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
9229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9230 | if (!SWIG_IsOK(res1)) { | |
9231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9232 | } | |
9233 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9234 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9235 | if (!SWIG_IsOK(ecode2)) { | |
9236 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'"); | |
9237 | } | |
9238 | arg2 = static_cast< int >(val2); | |
9239 | { | |
9240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9241 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
9242 | wxPyEndAllowThreads(__tstate); | |
9243 | if (PyErr_Occurred()) SWIG_fail; | |
9244 | } | |
9245 | { | |
9246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9247 | } | |
9248 | return resultobj; | |
9249 | fail: | |
9250 | return NULL; | |
9251 | } | |
9252 | ||
9253 | ||
9254 | SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9255 | PyObject *resultobj = 0; | |
9256 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9257 | int arg2 ; | |
9258 | bool arg3 = (bool) true ; | |
9259 | void *argp1 = 0 ; | |
9260 | int res1 = 0 ; | |
9261 | int val2 ; | |
9262 | int ecode2 = 0 ; | |
9263 | bool val3 ; | |
9264 | int ecode3 = 0 ; | |
9265 | PyObject * obj0 = 0 ; | |
9266 | PyObject * obj1 = 0 ; | |
9267 | PyObject * obj2 = 0 ; | |
9268 | char * kwnames[] = { | |
9269 | (char *) "self",(char *) "n",(char *) "select", NULL | |
9270 | }; | |
9271 | ||
9272 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9273 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9274 | if (!SWIG_IsOK(res1)) { | |
9275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9276 | } | |
9277 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9278 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9279 | if (!SWIG_IsOK(ecode2)) { | |
9280 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
9281 | } | |
9282 | arg2 = static_cast< int >(val2); | |
9283 | if (obj2) { | |
9284 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
9285 | if (!SWIG_IsOK(ecode3)) { | |
9286 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'"); | |
9287 | } | |
9288 | arg3 = static_cast< bool >(val3); | |
9289 | } | |
9290 | { | |
9291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9292 | (arg1)->SetSelection(arg2,arg3); | |
9293 | wxPyEndAllowThreads(__tstate); | |
9294 | if (PyErr_Occurred()) SWIG_fail; | |
9295 | } | |
9296 | resultobj = SWIG_Py_Void(); | |
9297 | return resultobj; | |
9298 | fail: | |
9299 | return NULL; | |
9300 | } | |
9301 | ||
9302 | ||
9303 | SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9304 | PyObject *resultobj = 0; | |
9305 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9306 | int arg2 ; | |
9307 | void *argp1 = 0 ; | |
9308 | int res1 = 0 ; | |
9309 | int val2 ; | |
9310 | int ecode2 = 0 ; | |
9311 | PyObject * obj0 = 0 ; | |
9312 | PyObject * obj1 = 0 ; | |
9313 | char * kwnames[] = { | |
9314 | (char *) "self",(char *) "n", NULL | |
9315 | }; | |
9316 | ||
9317 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail; | |
9318 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9319 | if (!SWIG_IsOK(res1)) { | |
9320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9321 | } | |
9322 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9323 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9324 | if (!SWIG_IsOK(ecode2)) { | |
9325 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'"); | |
9326 | } | |
9327 | arg2 = static_cast< int >(val2); | |
9328 | { | |
9329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9330 | (arg1)->Select(arg2); | |
9331 | wxPyEndAllowThreads(__tstate); | |
9332 | if (PyErr_Occurred()) SWIG_fail; | |
9333 | } | |
9334 | resultobj = SWIG_Py_Void(); | |
9335 | return resultobj; | |
9336 | fail: | |
9337 | return NULL; | |
9338 | } | |
9339 | ||
9340 | ||
9341 | SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9342 | PyObject *resultobj = 0; | |
9343 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9344 | int arg2 ; | |
9345 | void *argp1 = 0 ; | |
9346 | int res1 = 0 ; | |
9347 | int val2 ; | |
9348 | int ecode2 = 0 ; | |
9349 | PyObject * obj0 = 0 ; | |
9350 | PyObject * obj1 = 0 ; | |
9351 | char * kwnames[] = { | |
9352 | (char *) "self",(char *) "n", NULL | |
9353 | }; | |
9354 | ||
9355 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9356 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9357 | if (!SWIG_IsOK(res1)) { | |
9358 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9359 | } | |
9360 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9361 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9362 | if (!SWIG_IsOK(ecode2)) { | |
9363 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'"); | |
9364 | } | |
9365 | arg2 = static_cast< int >(val2); | |
9366 | { | |
9367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9368 | (arg1)->Deselect(arg2); | |
9369 | wxPyEndAllowThreads(__tstate); | |
9370 | if (PyErr_Occurred()) SWIG_fail; | |
9371 | } | |
9372 | resultobj = SWIG_Py_Void(); | |
9373 | return resultobj; | |
9374 | fail: | |
9375 | return NULL; | |
9376 | } | |
9377 | ||
9378 | ||
9379 | SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9380 | PyObject *resultobj = 0; | |
9381 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9382 | int arg2 = (int) -1 ; | |
9383 | void *argp1 = 0 ; | |
9384 | int res1 = 0 ; | |
9385 | int val2 ; | |
9386 | int ecode2 = 0 ; | |
9387 | PyObject * obj0 = 0 ; | |
9388 | PyObject * obj1 = 0 ; | |
9389 | char * kwnames[] = { | |
9390 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
9391 | }; | |
9392 | ||
9393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail; | |
9394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9395 | if (!SWIG_IsOK(res1)) { | |
9396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9397 | } | |
9398 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9399 | if (obj1) { | |
9400 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9401 | if (!SWIG_IsOK(ecode2)) { | |
9402 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'"); | |
9403 | } | |
9404 | arg2 = static_cast< int >(val2); | |
9405 | } | |
9406 | { | |
9407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9408 | (arg1)->DeselectAll(arg2); | |
9409 | wxPyEndAllowThreads(__tstate); | |
9410 | if (PyErr_Occurred()) SWIG_fail; | |
9411 | } | |
9412 | resultobj = SWIG_Py_Void(); | |
9413 | return resultobj; | |
9414 | fail: | |
9415 | return NULL; | |
9416 | } | |
9417 | ||
9418 | ||
9419 | SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9420 | PyObject *resultobj = 0; | |
9421 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9422 | wxString *arg2 = 0 ; | |
9423 | bool arg3 = (bool) true ; | |
9424 | bool result; | |
9425 | void *argp1 = 0 ; | |
9426 | int res1 = 0 ; | |
9427 | bool temp2 = false ; | |
9428 | bool val3 ; | |
9429 | int ecode3 = 0 ; | |
9430 | PyObject * obj0 = 0 ; | |
9431 | PyObject * obj1 = 0 ; | |
9432 | PyObject * obj2 = 0 ; | |
9433 | char * kwnames[] = { | |
9434 | (char *) "self",(char *) "s",(char *) "select", NULL | |
9435 | }; | |
9436 | ||
9437 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9439 | if (!SWIG_IsOK(res1)) { | |
9440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9441 | } | |
9442 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9443 | { | |
9444 | arg2 = wxString_in_helper(obj1); | |
9445 | if (arg2 == NULL) SWIG_fail; | |
9446 | temp2 = true; | |
9447 | } | |
9448 | if (obj2) { | |
9449 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
9450 | if (!SWIG_IsOK(ecode3)) { | |
9451 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'"); | |
9452 | } | |
9453 | arg3 = static_cast< bool >(val3); | |
9454 | } | |
9455 | { | |
9456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9457 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
9458 | wxPyEndAllowThreads(__tstate); | |
9459 | if (PyErr_Occurred()) SWIG_fail; | |
9460 | } | |
9461 | { | |
9462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9463 | } | |
9464 | { | |
9465 | if (temp2) | |
9466 | delete arg2; | |
9467 | } | |
9468 | return resultobj; | |
9469 | fail: | |
9470 | { | |
9471 | if (temp2) | |
9472 | delete arg2; | |
9473 | } | |
9474 | return NULL; | |
d55e5bfc RD |
9475 | } |
9476 | ||
9477 | ||
1bd55598 RD |
9478 | SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9479 | PyObject *resultobj = 0; | |
9480 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9481 | PyObject *result = 0 ; | |
9482 | void *argp1 = 0 ; | |
9483 | int res1 = 0 ; | |
9484 | PyObject *swig_obj[1] ; | |
9485 | ||
9486 | if (!args) SWIG_fail; | |
9487 | swig_obj[0] = args; | |
9488 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9489 | if (!SWIG_IsOK(res1)) { | |
9490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9491 | } | |
9492 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9493 | { | |
9494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9495 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
9496 | wxPyEndAllowThreads(__tstate); | |
9497 | if (PyErr_Occurred()) SWIG_fail; | |
9498 | } | |
9499 | resultobj = result; | |
9500 | return resultobj; | |
9501 | fail: | |
9502 | return NULL; | |
9503 | } | |
9504 | ||
9505 | ||
9506 | SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9507 | PyObject *resultobj = 0; | |
9508 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9509 | int arg2 ; | |
9510 | void *argp1 = 0 ; | |
9511 | int res1 = 0 ; | |
9512 | int val2 ; | |
9513 | int ecode2 = 0 ; | |
9514 | PyObject * obj0 = 0 ; | |
9515 | PyObject * obj1 = 0 ; | |
9516 | char * kwnames[] = { | |
9517 | (char *) "self",(char *) "n", NULL | |
9518 | }; | |
9519 | ||
9520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
9521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9522 | if (!SWIG_IsOK(res1)) { | |
9523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9524 | } | |
9525 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9526 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9527 | if (!SWIG_IsOK(ecode2)) { | |
9528 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'"); | |
9529 | } | |
9530 | arg2 = static_cast< int >(val2); | |
9531 | { | |
9532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9533 | (arg1)->SetFirstItem(arg2); | |
9534 | wxPyEndAllowThreads(__tstate); | |
9535 | if (PyErr_Occurred()) SWIG_fail; | |
9536 | } | |
9537 | resultobj = SWIG_Py_Void(); | |
9538 | return resultobj; | |
9539 | fail: | |
9540 | return NULL; | |
9541 | } | |
9542 | ||
9543 | ||
9544 | SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9545 | PyObject *resultobj = 0; | |
9546 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9547 | wxString *arg2 = 0 ; | |
9548 | void *argp1 = 0 ; | |
9549 | int res1 = 0 ; | |
9550 | bool temp2 = false ; | |
9551 | PyObject * obj0 = 0 ; | |
9552 | PyObject * obj1 = 0 ; | |
9553 | char * kwnames[] = { | |
9554 | (char *) "self",(char *) "s", NULL | |
9555 | }; | |
9556 | ||
9557 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail; | |
9558 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9559 | if (!SWIG_IsOK(res1)) { | |
9560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9561 | } | |
9562 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9563 | { | |
9564 | arg2 = wxString_in_helper(obj1); | |
9565 | if (arg2 == NULL) SWIG_fail; | |
9566 | temp2 = true; | |
9567 | } | |
9568 | { | |
9569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9570 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
9571 | wxPyEndAllowThreads(__tstate); | |
9572 | if (PyErr_Occurred()) SWIG_fail; | |
9573 | } | |
9574 | resultobj = SWIG_Py_Void(); | |
9575 | { | |
9576 | if (temp2) | |
9577 | delete arg2; | |
9578 | } | |
9579 | return resultobj; | |
9580 | fail: | |
9581 | { | |
9582 | if (temp2) | |
9583 | delete arg2; | |
9584 | } | |
9585 | return NULL; | |
9586 | } | |
9587 | ||
9588 | ||
9589 | SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9590 | PyObject *resultobj = 0; | |
9591 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9592 | int arg2 ; | |
9593 | void *argp1 = 0 ; | |
9594 | int res1 = 0 ; | |
9595 | int val2 ; | |
9596 | int ecode2 = 0 ; | |
9597 | PyObject * obj0 = 0 ; | |
9598 | PyObject * obj1 = 0 ; | |
9599 | char * kwnames[] = { | |
9600 | (char *) "self",(char *) "n", NULL | |
9601 | }; | |
9602 | ||
9603 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
9604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9605 | if (!SWIG_IsOK(res1)) { | |
9606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9607 | } | |
9608 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9609 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9610 | if (!SWIG_IsOK(ecode2)) { | |
9611 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'"); | |
9612 | } | |
9613 | arg2 = static_cast< int >(val2); | |
9614 | { | |
9615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9616 | (arg1)->EnsureVisible(arg2); | |
9617 | wxPyEndAllowThreads(__tstate); | |
9618 | if (PyErr_Occurred()) SWIG_fail; | |
9619 | } | |
9620 | resultobj = SWIG_Py_Void(); | |
9621 | return resultobj; | |
9622 | fail: | |
9623 | return NULL; | |
9624 | } | |
9625 | ||
9626 | ||
9627 | SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9628 | PyObject *resultobj = 0; | |
9629 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9630 | wxString *arg2 = 0 ; | |
9631 | void *argp1 = 0 ; | |
9632 | int res1 = 0 ; | |
9633 | bool temp2 = false ; | |
9634 | PyObject * obj0 = 0 ; | |
9635 | PyObject * obj1 = 0 ; | |
9636 | char * kwnames[] = { | |
9637 | (char *) "self",(char *) "s", NULL | |
9638 | }; | |
9639 | ||
9640 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
9641 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9642 | if (!SWIG_IsOK(res1)) { | |
9643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9644 | } | |
9645 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9646 | { | |
9647 | arg2 = wxString_in_helper(obj1); | |
9648 | if (arg2 == NULL) SWIG_fail; | |
9649 | temp2 = true; | |
9650 | } | |
9651 | { | |
9652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9653 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
9654 | wxPyEndAllowThreads(__tstate); | |
9655 | if (PyErr_Occurred()) SWIG_fail; | |
9656 | } | |
9657 | resultobj = SWIG_Py_Void(); | |
9658 | { | |
9659 | if (temp2) | |
9660 | delete arg2; | |
9661 | } | |
9662 | return resultobj; | |
9663 | fail: | |
9664 | { | |
9665 | if (temp2) | |
9666 | delete arg2; | |
9667 | } | |
9668 | return NULL; | |
d55e5bfc RD |
9669 | } |
9670 | ||
9671 | ||
1bd55598 RD |
9672 | SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9673 | PyObject *resultobj = 0; | |
9674 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9675 | bool result; | |
9676 | void *argp1 = 0 ; | |
9677 | int res1 = 0 ; | |
9678 | PyObject *swig_obj[1] ; | |
9679 | ||
9680 | if (!args) SWIG_fail; | |
9681 | swig_obj[0] = args; | |
9682 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9683 | if (!SWIG_IsOK(res1)) { | |
9684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9685 | } | |
9686 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9687 | { | |
9688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9689 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
9690 | wxPyEndAllowThreads(__tstate); | |
9691 | if (PyErr_Occurred()) SWIG_fail; | |
9692 | } | |
9693 | { | |
9694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9695 | } | |
9696 | return resultobj; | |
9697 | fail: | |
9698 | return NULL; | |
9699 | } | |
9700 | ||
9701 | ||
9702 | SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9703 | PyObject *resultobj = 0; | |
9704 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9705 | wxPoint *arg2 = 0 ; | |
9706 | int result; | |
9707 | void *argp1 = 0 ; | |
9708 | int res1 = 0 ; | |
9709 | wxPoint temp2 ; | |
9710 | PyObject * obj0 = 0 ; | |
9711 | PyObject * obj1 = 0 ; | |
9712 | char * kwnames[] = { | |
9713 | (char *) "self",(char *) "pt", NULL | |
9714 | }; | |
9715 | ||
9716 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
9717 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9718 | if (!SWIG_IsOK(res1)) { | |
9719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9720 | } | |
9721 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9722 | { | |
9723 | arg2 = &temp2; | |
9724 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9725 | } | |
9726 | { | |
9727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9728 | result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9729 | wxPyEndAllowThreads(__tstate); | |
9730 | if (PyErr_Occurred()) SWIG_fail; | |
9731 | } | |
9732 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9733 | return resultobj; | |
9734 | fail: | |
9735 | return NULL; | |
9736 | } | |
9737 | ||
9738 | ||
9739 | SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9740 | PyObject *resultobj = 0; | |
9741 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9742 | int arg2 ; | |
9743 | wxColour *arg3 = 0 ; | |
9744 | void *argp1 = 0 ; | |
9745 | int res1 = 0 ; | |
9746 | int val2 ; | |
9747 | int ecode2 = 0 ; | |
9748 | wxColour temp3 ; | |
9749 | PyObject * obj0 = 0 ; | |
9750 | PyObject * obj1 = 0 ; | |
9751 | PyObject * obj2 = 0 ; | |
9752 | char * kwnames[] = { | |
9753 | (char *) "self",(char *) "item",(char *) "c", NULL | |
9754 | }; | |
9755 | ||
9756 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9757 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9758 | if (!SWIG_IsOK(res1)) { | |
9759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9760 | } | |
9761 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9762 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9763 | if (!SWIG_IsOK(ecode2)) { | |
9764 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'"); | |
9765 | } | |
9766 | arg2 = static_cast< int >(val2); | |
9767 | { | |
9768 | arg3 = &temp3; | |
9769 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9770 | } | |
9771 | { | |
9772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9773 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
9774 | wxPyEndAllowThreads(__tstate); | |
9775 | if (PyErr_Occurred()) SWIG_fail; | |
9776 | } | |
9777 | resultobj = SWIG_Py_Void(); | |
9778 | return resultobj; | |
9779 | fail: | |
9780 | return NULL; | |
9781 | } | |
9782 | ||
9783 | ||
9784 | SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9785 | PyObject *resultobj = 0; | |
9786 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9787 | int arg2 ; | |
9788 | wxColour *arg3 = 0 ; | |
9789 | void *argp1 = 0 ; | |
9790 | int res1 = 0 ; | |
9791 | int val2 ; | |
9792 | int ecode2 = 0 ; | |
9793 | wxColour temp3 ; | |
9794 | PyObject * obj0 = 0 ; | |
9795 | PyObject * obj1 = 0 ; | |
9796 | PyObject * obj2 = 0 ; | |
9797 | char * kwnames[] = { | |
9798 | (char *) "self",(char *) "item",(char *) "c", NULL | |
9799 | }; | |
9800 | ||
9801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9802 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9803 | if (!SWIG_IsOK(res1)) { | |
9804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9805 | } | |
9806 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9807 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9808 | if (!SWIG_IsOK(ecode2)) { | |
9809 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'"); | |
9810 | } | |
9811 | arg2 = static_cast< int >(val2); | |
9812 | { | |
9813 | arg3 = &temp3; | |
9814 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9815 | } | |
9816 | { | |
9817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9818 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
9819 | wxPyEndAllowThreads(__tstate); | |
9820 | if (PyErr_Occurred()) SWIG_fail; | |
9821 | } | |
9822 | resultobj = SWIG_Py_Void(); | |
9823 | return resultobj; | |
9824 | fail: | |
9825 | return NULL; | |
9826 | } | |
9827 | ||
9828 | ||
9829 | SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9830 | PyObject *resultobj = 0; | |
9831 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9832 | int arg2 ; | |
9833 | wxFont *arg3 = 0 ; | |
9834 | void *argp1 = 0 ; | |
9835 | int res1 = 0 ; | |
9836 | int val2 ; | |
9837 | int ecode2 = 0 ; | |
9838 | void *argp3 = 0 ; | |
9839 | int res3 = 0 ; | |
9840 | PyObject * obj0 = 0 ; | |
9841 | PyObject * obj1 = 0 ; | |
9842 | PyObject * obj2 = 0 ; | |
9843 | char * kwnames[] = { | |
9844 | (char *) "self",(char *) "item",(char *) "f", NULL | |
9845 | }; | |
9846 | ||
9847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9849 | if (!SWIG_IsOK(res1)) { | |
9850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9851 | } | |
9852 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9853 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9854 | if (!SWIG_IsOK(ecode2)) { | |
9855 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'"); | |
9856 | } | |
9857 | arg2 = static_cast< int >(val2); | |
9858 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
9859 | if (!SWIG_IsOK(res3)) { | |
9860 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
9861 | } | |
9862 | if (!argp3) { | |
9863 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
9864 | } | |
9865 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
9866 | { | |
9867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9868 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
9869 | wxPyEndAllowThreads(__tstate); | |
9870 | if (PyErr_Occurred()) SWIG_fail; | |
9871 | } | |
9872 | resultobj = SWIG_Py_Void(); | |
9873 | return resultobj; | |
9874 | fail: | |
9875 | return NULL; | |
9876 | } | |
9877 | ||
9878 | ||
9879 | SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9880 | PyObject *resultobj = 0; | |
9881 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
9882 | SwigValueWrapper<wxVisualAttributes > result; | |
9883 | int val1 ; | |
9884 | int ecode1 = 0 ; | |
9885 | PyObject * obj0 = 0 ; | |
9886 | char * kwnames[] = { | |
9887 | (char *) "variant", NULL | |
9888 | }; | |
9889 | ||
9890 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
9891 | if (obj0) { | |
9892 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
9893 | if (!SWIG_IsOK(ecode1)) { | |
9894 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
9895 | } | |
9896 | arg1 = static_cast< wxWindowVariant >(val1); | |
9897 | } | |
9898 | { | |
9899 | if (!wxPyCheckForApp()) SWIG_fail; | |
9900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9901 | result = wxListBox::GetClassDefaultAttributes(arg1); | |
9902 | wxPyEndAllowThreads(__tstate); | |
9903 | if (PyErr_Occurred()) SWIG_fail; | |
9904 | } | |
9905 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
9906 | return resultobj; | |
9907 | fail: | |
9908 | return NULL; | |
9909 | } | |
9910 | ||
9911 | ||
9912 | SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9913 | PyObject *obj; | |
9914 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9915 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj)); | |
9916 | return SWIG_Py_Void(); | |
9917 | } | |
9918 | ||
9919 | SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9920 | return SWIG_Python_InitShadowInstance(args); | |
9921 | } | |
9922 | ||
9923 | SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9924 | PyObject *resultobj = 0; | |
9925 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9926 | int arg2 = (int) -1 ; | |
9927 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9928 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9929 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9930 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9931 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
9932 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
9933 | long arg6 = (long) 0 ; | |
9934 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9935 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9936 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
9937 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9938 | wxCheckListBox *result = 0 ; | |
9939 | void *argp1 = 0 ; | |
9940 | int res1 = 0 ; | |
9941 | int val2 ; | |
9942 | int ecode2 = 0 ; | |
9943 | wxPoint temp3 ; | |
9944 | wxSize temp4 ; | |
9945 | bool temp5 = false ; | |
9946 | long val6 ; | |
9947 | int ecode6 = 0 ; | |
9948 | void *argp7 = 0 ; | |
9949 | int res7 = 0 ; | |
9950 | bool temp8 = false ; | |
9951 | PyObject * obj0 = 0 ; | |
9952 | PyObject * obj1 = 0 ; | |
9953 | PyObject * obj2 = 0 ; | |
9954 | PyObject * obj3 = 0 ; | |
9955 | PyObject * obj4 = 0 ; | |
9956 | PyObject * obj5 = 0 ; | |
9957 | PyObject * obj6 = 0 ; | |
9958 | PyObject * obj7 = 0 ; | |
9959 | char * kwnames[] = { | |
9960 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9961 | }; | |
9962 | ||
9963 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
9964 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9965 | if (!SWIG_IsOK(res1)) { | |
9966 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
9967 | } | |
9968 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
9969 | if (obj1) { | |
9970 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9971 | if (!SWIG_IsOK(ecode2)) { | |
9972 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'"); | |
9973 | } | |
9974 | arg2 = static_cast< int >(val2); | |
9975 | } | |
9976 | if (obj2) { | |
9977 | { | |
9978 | arg3 = &temp3; | |
9979 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
bfddbb17 | 9980 | } |
1bd55598 RD |
9981 | } |
9982 | if (obj3) { | |
9983 | { | |
9984 | arg4 = &temp4; | |
9985 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 9986 | } |
1bd55598 RD |
9987 | } |
9988 | if (obj4) { | |
9989 | { | |
9990 | if (! PySequence_Check(obj4)) { | |
9991 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9992 | SWIG_fail; | |
9993 | } | |
9994 | arg5 = new wxArrayString; | |
9995 | temp5 = true; | |
9996 | int i, len=PySequence_Length(obj4); | |
9997 | for (i=0; i<len; i++) { | |
9998 | PyObject* item = PySequence_GetItem(obj4, i); | |
9999 | wxString* s = wxString_in_helper(item); | |
10000 | if (PyErr_Occurred()) SWIG_fail; | |
10001 | arg5->Add(*s); | |
10002 | delete s; | |
10003 | Py_DECREF(item); | |
10004 | } | |
d55e5bfc | 10005 | } |
1bd55598 RD |
10006 | } |
10007 | if (obj5) { | |
10008 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
10009 | if (!SWIG_IsOK(ecode6)) { | |
10010 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'"); | |
10011 | } | |
10012 | arg6 = static_cast< long >(val6); | |
10013 | } | |
10014 | if (obj6) { | |
10015 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
10016 | if (!SWIG_IsOK(res7)) { | |
10017 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 10018 | } |
1bd55598 RD |
10019 | if (!argp7) { |
10020 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 10021 | } |
1bd55598 RD |
10022 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
10023 | } | |
10024 | if (obj7) { | |
10025 | { | |
10026 | arg8 = wxString_in_helper(obj7); | |
10027 | if (arg8 == NULL) SWIG_fail; | |
10028 | temp8 = true; | |
d55e5bfc | 10029 | } |
1bd55598 RD |
10030 | } |
10031 | { | |
10032 | if (!wxPyCheckForApp()) SWIG_fail; | |
10033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10034 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10035 | wxPyEndAllowThreads(__tstate); | |
10036 | if (PyErr_Occurred()) SWIG_fail; | |
10037 | } | |
10038 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 ); | |
10039 | { | |
10040 | if (temp5) delete arg5; | |
10041 | } | |
10042 | { | |
10043 | if (temp8) | |
10044 | delete arg8; | |
10045 | } | |
10046 | return resultobj; | |
10047 | fail: | |
10048 | { | |
10049 | if (temp5) delete arg5; | |
10050 | } | |
10051 | { | |
10052 | if (temp8) | |
10053 | delete arg8; | |
10054 | } | |
10055 | return NULL; | |
10056 | } | |
10057 | ||
10058 | ||
10059 | SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10060 | PyObject *resultobj = 0; | |
10061 | wxCheckListBox *result = 0 ; | |
10062 | ||
10063 | if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail; | |
10064 | { | |
10065 | if (!wxPyCheckForApp()) SWIG_fail; | |
10066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10067 | result = (wxCheckListBox *)new wxCheckListBox(); | |
10068 | wxPyEndAllowThreads(__tstate); | |
10069 | if (PyErr_Occurred()) SWIG_fail; | |
10070 | } | |
10071 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 ); | |
10072 | return resultobj; | |
10073 | fail: | |
10074 | return NULL; | |
10075 | } | |
10076 | ||
10077 | ||
10078 | SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10079 | PyObject *resultobj = 0; | |
10080 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
10081 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10082 | int arg3 = (int) -1 ; | |
10083 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10084 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10085 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10086 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10087 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
10088 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
10089 | long arg7 = (long) 0 ; | |
10090 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
10091 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
10092 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
10093 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
10094 | bool result; | |
10095 | void *argp1 = 0 ; | |
10096 | int res1 = 0 ; | |
10097 | void *argp2 = 0 ; | |
10098 | int res2 = 0 ; | |
10099 | int val3 ; | |
10100 | int ecode3 = 0 ; | |
10101 | wxPoint temp4 ; | |
10102 | wxSize temp5 ; | |
10103 | bool temp6 = false ; | |
10104 | long val7 ; | |
10105 | int ecode7 = 0 ; | |
10106 | void *argp8 = 0 ; | |
10107 | int res8 = 0 ; | |
10108 | bool temp9 = false ; | |
10109 | PyObject * obj0 = 0 ; | |
10110 | PyObject * obj1 = 0 ; | |
10111 | PyObject * obj2 = 0 ; | |
10112 | PyObject * obj3 = 0 ; | |
10113 | PyObject * obj4 = 0 ; | |
10114 | PyObject * obj5 = 0 ; | |
10115 | PyObject * obj6 = 0 ; | |
10116 | PyObject * obj7 = 0 ; | |
10117 | PyObject * obj8 = 0 ; | |
10118 | char * kwnames[] = { | |
10119 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10120 | }; | |
10121 | ||
10122 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
10123 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10124 | if (!SWIG_IsOK(res1)) { | |
10125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10126 | } | |
10127 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
10128 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10129 | if (!SWIG_IsOK(res2)) { | |
10130 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
10131 | } | |
10132 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
10133 | if (obj2) { | |
10134 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10135 | if (!SWIG_IsOK(ecode3)) { | |
10136 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
10137 | } | |
10138 | arg3 = static_cast< int >(val3); | |
10139 | } | |
10140 | if (obj3) { | |
d55e5bfc | 10141 | { |
1bd55598 RD |
10142 | arg4 = &temp4; |
10143 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 10144 | } |
1bd55598 RD |
10145 | } |
10146 | if (obj4) { | |
d55e5bfc | 10147 | { |
1bd55598 RD |
10148 | arg5 = &temp5; |
10149 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 10150 | } |
1bd55598 RD |
10151 | } |
10152 | if (obj5) { | |
d55e5bfc | 10153 | { |
1bd55598 RD |
10154 | if (! PySequence_Check(obj5)) { |
10155 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10156 | SWIG_fail; | |
10157 | } | |
10158 | arg6 = new wxArrayString; | |
10159 | temp6 = true; | |
10160 | int i, len=PySequence_Length(obj5); | |
10161 | for (i=0; i<len; i++) { | |
10162 | PyObject* item = PySequence_GetItem(obj5, i); | |
10163 | wxString* s = wxString_in_helper(item); | |
10164 | if (PyErr_Occurred()) SWIG_fail; | |
10165 | arg6->Add(*s); | |
10166 | delete s; | |
10167 | Py_DECREF(item); | |
10168 | } | |
10169 | } | |
10170 | } | |
10171 | if (obj6) { | |
10172 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
10173 | if (!SWIG_IsOK(ecode7)) { | |
10174 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
10175 | } | |
10176 | arg7 = static_cast< long >(val7); | |
10177 | } | |
10178 | if (obj7) { | |
10179 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
10180 | if (!SWIG_IsOK(res8)) { | |
10181 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
10182 | } | |
10183 | if (!argp8) { | |
10184 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 10185 | } |
1bd55598 RD |
10186 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
10187 | } | |
10188 | if (obj8) { | |
d55e5bfc | 10189 | { |
1bd55598 RD |
10190 | arg9 = wxString_in_helper(obj8); |
10191 | if (arg9 == NULL) SWIG_fail; | |
10192 | temp9 = true; | |
d55e5bfc | 10193 | } |
1bd55598 RD |
10194 | } |
10195 | { | |
10196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10197 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
10198 | wxPyEndAllowThreads(__tstate); | |
10199 | if (PyErr_Occurred()) SWIG_fail; | |
10200 | } | |
10201 | { | |
10202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10203 | } | |
10204 | { | |
10205 | if (temp6) delete arg6; | |
10206 | } | |
10207 | { | |
10208 | if (temp9) | |
10209 | delete arg9; | |
10210 | } | |
10211 | return resultobj; | |
10212 | fail: | |
10213 | { | |
10214 | if (temp6) delete arg6; | |
10215 | } | |
10216 | { | |
10217 | if (temp9) | |
10218 | delete arg9; | |
10219 | } | |
10220 | return NULL; | |
10221 | } | |
10222 | ||
10223 | ||
10224 | SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10225 | PyObject *resultobj = 0; | |
10226 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
50f151d7 | 10227 | unsigned int arg2 ; |
1bd55598 RD |
10228 | bool result; |
10229 | void *argp1 = 0 ; | |
10230 | int res1 = 0 ; | |
50f151d7 | 10231 | unsigned int val2 ; |
1bd55598 RD |
10232 | int ecode2 = 0 ; |
10233 | PyObject * obj0 = 0 ; | |
10234 | PyObject * obj1 = 0 ; | |
10235 | char * kwnames[] = { | |
10236 | (char *) "self",(char *) "index", NULL | |
10237 | }; | |
10238 | ||
10239 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail; | |
10240 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10241 | if (!SWIG_IsOK(res1)) { | |
10242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10243 | } | |
10244 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
50f151d7 | 10245 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
1bd55598 | 10246 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 10247 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'"); |
1bd55598 | 10248 | } |
50f151d7 | 10249 | arg2 = static_cast< unsigned int >(val2); |
1bd55598 RD |
10250 | { |
10251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10252 | result = (bool)(arg1)->IsChecked(arg2); | |
10253 | wxPyEndAllowThreads(__tstate); | |
10254 | if (PyErr_Occurred()) SWIG_fail; | |
10255 | } | |
10256 | { | |
10257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10258 | } | |
10259 | return resultobj; | |
10260 | fail: | |
10261 | return NULL; | |
10262 | } | |
10263 | ||
10264 | ||
10265 | SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10266 | PyObject *resultobj = 0; | |
10267 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
50f151d7 | 10268 | unsigned int arg2 ; |
1bd55598 RD |
10269 | int arg3 = (int) true ; |
10270 | void *argp1 = 0 ; | |
10271 | int res1 = 0 ; | |
50f151d7 | 10272 | unsigned int val2 ; |
1bd55598 RD |
10273 | int ecode2 = 0 ; |
10274 | int val3 ; | |
10275 | int ecode3 = 0 ; | |
10276 | PyObject * obj0 = 0 ; | |
10277 | PyObject * obj1 = 0 ; | |
10278 | PyObject * obj2 = 0 ; | |
10279 | char * kwnames[] = { | |
10280 | (char *) "self",(char *) "index",(char *) "check", NULL | |
10281 | }; | |
10282 | ||
10283 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10285 | if (!SWIG_IsOK(res1)) { | |
10286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10287 | } | |
10288 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
50f151d7 | 10289 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
1bd55598 | 10290 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 10291 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'"); |
1bd55598 | 10292 | } |
50f151d7 | 10293 | arg2 = static_cast< unsigned int >(val2); |
1bd55598 RD |
10294 | if (obj2) { |
10295 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10296 | if (!SWIG_IsOK(ecode3)) { | |
10297 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'"); | |
10298 | } | |
10299 | arg3 = static_cast< int >(val3); | |
10300 | } | |
10301 | { | |
10302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10303 | (arg1)->Check(arg2,arg3); | |
10304 | wxPyEndAllowThreads(__tstate); | |
10305 | if (PyErr_Occurred()) SWIG_fail; | |
10306 | } | |
10307 | resultobj = SWIG_Py_Void(); | |
10308 | return resultobj; | |
10309 | fail: | |
10310 | return NULL; | |
d55e5bfc RD |
10311 | } |
10312 | ||
10313 | ||
1bd55598 RD |
10314 | SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10315 | PyObject *obj; | |
10316 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10317 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj)); | |
10318 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10319 | } |
10320 | ||
1bd55598 RD |
10321 | SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10322 | return SWIG_Python_InitShadowInstance(args); | |
10323 | } | |
d55e5bfc | 10324 | |
1bd55598 RD |
10325 | SWIGINTERN int TextCtrlNameStr_set(PyObject *) { |
10326 | SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only."); | |
10327 | return 1; | |
d55e5bfc RD |
10328 | } |
10329 | ||
10330 | ||
1bd55598 RD |
10331 | SWIGINTERN PyObject *TextCtrlNameStr_get(void) { |
10332 | PyObject *pyobj = 0; | |
10333 | ||
10334 | { | |
d55e5bfc | 10335 | #if wxUSE_UNICODE |
1bd55598 | 10336 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); |
d55e5bfc | 10337 | #else |
1bd55598 | 10338 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); |
d55e5bfc | 10339 | #endif |
1bd55598 RD |
10340 | } |
10341 | return pyobj; | |
10342 | } | |
10343 | ||
10344 | ||
10345 | SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10346 | PyObject *resultobj = 0; | |
10347 | wxColour const &arg1_defvalue = wxNullColour ; | |
10348 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
10349 | wxColour const &arg2_defvalue = wxNullColour ; | |
10350 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
10351 | wxFont const &arg3_defvalue = wxNullFont ; | |
10352 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
10353 | wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; | |
10354 | wxTextAttr *result = 0 ; | |
10355 | wxColour temp1 ; | |
10356 | wxColour temp2 ; | |
10357 | void *argp3 = 0 ; | |
10358 | int res3 = 0 ; | |
10359 | int val4 ; | |
10360 | int ecode4 = 0 ; | |
10361 | PyObject * obj0 = 0 ; | |
10362 | PyObject * obj1 = 0 ; | |
10363 | PyObject * obj2 = 0 ; | |
10364 | PyObject * obj3 = 0 ; | |
10365 | char * kwnames[] = { | |
10366 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
10367 | }; | |
10368 | ||
10369 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10370 | if (obj0) { | |
d55e5bfc | 10371 | { |
1bd55598 RD |
10372 | arg1 = &temp1; |
10373 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
d55e5bfc | 10374 | } |
1bd55598 RD |
10375 | } |
10376 | if (obj1) { | |
d55e5bfc | 10377 | { |
1bd55598 RD |
10378 | arg2 = &temp2; |
10379 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 10380 | } |
1bd55598 RD |
10381 | } |
10382 | if (obj2) { | |
10383 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
10384 | if (!SWIG_IsOK(res3)) { | |
10385 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d55e5bfc | 10386 | } |
1bd55598 RD |
10387 | if (!argp3) { |
10388 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d55e5bfc | 10389 | } |
1bd55598 RD |
10390 | arg3 = reinterpret_cast< wxFont * >(argp3); |
10391 | } | |
10392 | if (obj3) { | |
10393 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10394 | if (!SWIG_IsOK(ecode4)) { | |
10395 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'"); | |
10396 | } | |
10397 | arg4 = static_cast< wxTextAttrAlignment >(val4); | |
10398 | } | |
10399 | { | |
10400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10401 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4); | |
10402 | wxPyEndAllowThreads(__tstate); | |
10403 | if (PyErr_Occurred()) SWIG_fail; | |
10404 | } | |
10405 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 ); | |
10406 | return resultobj; | |
10407 | fail: | |
10408 | return NULL; | |
d55e5bfc RD |
10409 | } |
10410 | ||
10411 | ||
1bd55598 RD |
10412 | SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10413 | PyObject *resultobj = 0; | |
10414 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10415 | void *argp1 = 0 ; | |
10416 | int res1 = 0 ; | |
10417 | PyObject *swig_obj[1] ; | |
10418 | ||
10419 | if (!args) SWIG_fail; | |
10420 | swig_obj[0] = args; | |
10421 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 ); | |
10422 | if (!SWIG_IsOK(res1)) { | |
10423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10424 | } | |
10425 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10426 | { | |
10427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10428 | delete arg1; | |
d55e5bfc | 10429 | |
1bd55598 RD |
10430 | wxPyEndAllowThreads(__tstate); |
10431 | if (PyErr_Occurred()) SWIG_fail; | |
10432 | } | |
10433 | resultobj = SWIG_Py_Void(); | |
10434 | return resultobj; | |
10435 | fail: | |
10436 | return NULL; | |
d55e5bfc RD |
10437 | } |
10438 | ||
10439 | ||
1bd55598 RD |
10440 | SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10441 | PyObject *resultobj = 0; | |
10442 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10443 | void *argp1 = 0 ; | |
10444 | int res1 = 0 ; | |
10445 | PyObject *swig_obj[1] ; | |
10446 | ||
10447 | if (!args) SWIG_fail; | |
10448 | swig_obj[0] = args; | |
10449 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10450 | if (!SWIG_IsOK(res1)) { | |
10451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10452 | } | |
10453 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10454 | { | |
10455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10456 | (arg1)->Init(); | |
10457 | wxPyEndAllowThreads(__tstate); | |
10458 | if (PyErr_Occurred()) SWIG_fail; | |
10459 | } | |
10460 | resultobj = SWIG_Py_Void(); | |
10461 | return resultobj; | |
10462 | fail: | |
10463 | return NULL; | |
10464 | } | |
10465 | ||
10466 | ||
10467 | SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10468 | PyObject *resultobj = 0; | |
10469 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10470 | wxColour *arg2 = 0 ; | |
10471 | void *argp1 = 0 ; | |
10472 | int res1 = 0 ; | |
10473 | wxColour temp2 ; | |
10474 | PyObject * obj0 = 0 ; | |
10475 | PyObject * obj1 = 0 ; | |
10476 | char * kwnames[] = { | |
10477 | (char *) "self",(char *) "colText", NULL | |
10478 | }; | |
10479 | ||
10480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
10481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10482 | if (!SWIG_IsOK(res1)) { | |
10483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10484 | } | |
10485 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10486 | { | |
10487 | arg2 = &temp2; | |
10488 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10489 | } | |
10490 | { | |
10491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10492 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
10493 | wxPyEndAllowThreads(__tstate); | |
10494 | if (PyErr_Occurred()) SWIG_fail; | |
10495 | } | |
10496 | resultobj = SWIG_Py_Void(); | |
10497 | return resultobj; | |
10498 | fail: | |
10499 | return NULL; | |
10500 | } | |
10501 | ||
10502 | ||
10503 | SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10504 | PyObject *resultobj = 0; | |
10505 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10506 | wxColour *arg2 = 0 ; | |
10507 | void *argp1 = 0 ; | |
10508 | int res1 = 0 ; | |
10509 | wxColour temp2 ; | |
10510 | PyObject * obj0 = 0 ; | |
10511 | PyObject * obj1 = 0 ; | |
10512 | char * kwnames[] = { | |
10513 | (char *) "self",(char *) "colBack", NULL | |
10514 | }; | |
10515 | ||
10516 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
10517 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10518 | if (!SWIG_IsOK(res1)) { | |
10519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10520 | } | |
10521 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10522 | { | |
10523 | arg2 = &temp2; | |
10524 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10525 | } | |
10526 | { | |
10527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10528 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
10529 | wxPyEndAllowThreads(__tstate); | |
10530 | if (PyErr_Occurred()) SWIG_fail; | |
10531 | } | |
10532 | resultobj = SWIG_Py_Void(); | |
10533 | return resultobj; | |
10534 | fail: | |
10535 | return NULL; | |
10536 | } | |
10537 | ||
10538 | ||
10539 | SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10540 | PyObject *resultobj = 0; | |
10541 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10542 | wxFont *arg2 = 0 ; | |
10543 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
10544 | void *argp1 = 0 ; | |
10545 | int res1 = 0 ; | |
10546 | void *argp2 = 0 ; | |
10547 | int res2 = 0 ; | |
10548 | long val3 ; | |
10549 | int ecode3 = 0 ; | |
10550 | PyObject * obj0 = 0 ; | |
10551 | PyObject * obj1 = 0 ; | |
10552 | PyObject * obj2 = 0 ; | |
10553 | char * kwnames[] = { | |
10554 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
10555 | }; | |
10556 | ||
10557 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10558 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10559 | if (!SWIG_IsOK(res1)) { | |
10560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10561 | } | |
10562 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10563 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
10564 | if (!SWIG_IsOK(res2)) { | |
10565 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10566 | } | |
10567 | if (!argp2) { | |
10568 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10569 | } | |
10570 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
10571 | if (obj2) { | |
10572 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
10573 | if (!SWIG_IsOK(ecode3)) { | |
10574 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'"); | |
10575 | } | |
10576 | arg3 = static_cast< long >(val3); | |
10577 | } | |
10578 | { | |
10579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10580 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
10581 | wxPyEndAllowThreads(__tstate); | |
10582 | if (PyErr_Occurred()) SWIG_fail; | |
10583 | } | |
10584 | resultobj = SWIG_Py_Void(); | |
10585 | return resultobj; | |
10586 | fail: | |
10587 | return NULL; | |
10588 | } | |
10589 | ||
10590 | ||
10591 | SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10592 | PyObject *resultobj = 0; | |
10593 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10594 | wxTextAttrAlignment arg2 ; | |
10595 | void *argp1 = 0 ; | |
10596 | int res1 = 0 ; | |
10597 | int val2 ; | |
10598 | int ecode2 = 0 ; | |
10599 | PyObject * obj0 = 0 ; | |
10600 | PyObject * obj1 = 0 ; | |
10601 | char * kwnames[] = { | |
10602 | (char *) "self",(char *) "alignment", NULL | |
10603 | }; | |
10604 | ||
10605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",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_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10609 | } | |
10610 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10611 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10612 | if (!SWIG_IsOK(ecode2)) { | |
10613 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
10614 | } | |
10615 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
10616 | { | |
10617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10618 | (arg1)->SetAlignment(arg2); | |
10619 | wxPyEndAllowThreads(__tstate); | |
10620 | if (PyErr_Occurred()) SWIG_fail; | |
10621 | } | |
10622 | resultobj = SWIG_Py_Void(); | |
10623 | return resultobj; | |
10624 | fail: | |
10625 | return NULL; | |
10626 | } | |
10627 | ||
10628 | ||
10629 | SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10630 | PyObject *resultobj = 0; | |
10631 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10632 | wxArrayInt *arg2 = 0 ; | |
10633 | void *argp1 = 0 ; | |
10634 | int res1 = 0 ; | |
10635 | bool temp2 = false ; | |
10636 | PyObject * obj0 = 0 ; | |
10637 | PyObject * obj1 = 0 ; | |
10638 | char * kwnames[] = { | |
10639 | (char *) "self",(char *) "tabs", NULL | |
10640 | }; | |
10641 | ||
10642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail; | |
10643 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10644 | if (!SWIG_IsOK(res1)) { | |
10645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10646 | } | |
10647 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10648 | { | |
10649 | if (! PySequence_Check(obj1)) { | |
10650 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
10651 | SWIG_fail; | |
10652 | } | |
10653 | arg2 = new wxArrayInt; | |
10654 | temp2 = true; | |
10655 | int i, len=PySequence_Length(obj1); | |
10656 | for (i=0; i<len; i++) { | |
10657 | PyObject* item = PySequence_GetItem(obj1, i); | |
10658 | PyObject* number = PyNumber_Int(item); | |
10659 | arg2->Add(PyInt_AS_LONG(number)); | |
10660 | Py_DECREF(item); | |
10661 | Py_DECREF(number); | |
d55e5bfc | 10662 | } |
1bd55598 RD |
10663 | } |
10664 | { | |
10665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10666 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
10667 | wxPyEndAllowThreads(__tstate); | |
10668 | if (PyErr_Occurred()) SWIG_fail; | |
10669 | } | |
10670 | resultobj = SWIG_Py_Void(); | |
10671 | { | |
10672 | if (temp2) delete arg2; | |
10673 | } | |
10674 | return resultobj; | |
10675 | fail: | |
10676 | { | |
10677 | if (temp2) delete arg2; | |
10678 | } | |
10679 | return NULL; | |
10680 | } | |
10681 | ||
10682 | ||
10683 | SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10684 | PyObject *resultobj = 0; | |
10685 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10686 | int arg2 ; | |
10687 | int arg3 = (int) 0 ; | |
10688 | void *argp1 = 0 ; | |
10689 | int res1 = 0 ; | |
10690 | int val2 ; | |
10691 | int ecode2 = 0 ; | |
10692 | int val3 ; | |
10693 | int ecode3 = 0 ; | |
10694 | PyObject * obj0 = 0 ; | |
10695 | PyObject * obj1 = 0 ; | |
10696 | PyObject * obj2 = 0 ; | |
10697 | char * kwnames[] = { | |
10698 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL | |
10699 | }; | |
10700 | ||
10701 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10702 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10703 | if (!SWIG_IsOK(res1)) { | |
10704 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10705 | } | |
10706 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10707 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10708 | if (!SWIG_IsOK(ecode2)) { | |
10709 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'"); | |
10710 | } | |
10711 | arg2 = static_cast< int >(val2); | |
10712 | if (obj2) { | |
10713 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10714 | if (!SWIG_IsOK(ecode3)) { | |
10715 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'"); | |
10716 | } | |
10717 | arg3 = static_cast< int >(val3); | |
10718 | } | |
10719 | { | |
10720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10721 | (arg1)->SetLeftIndent(arg2,arg3); | |
10722 | wxPyEndAllowThreads(__tstate); | |
10723 | if (PyErr_Occurred()) SWIG_fail; | |
10724 | } | |
10725 | resultobj = SWIG_Py_Void(); | |
10726 | return resultobj; | |
10727 | fail: | |
10728 | return NULL; | |
10729 | } | |
10730 | ||
10731 | ||
10732 | SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10733 | PyObject *resultobj = 0; | |
10734 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10735 | int arg2 ; | |
10736 | void *argp1 = 0 ; | |
10737 | int res1 = 0 ; | |
10738 | int val2 ; | |
10739 | int ecode2 = 0 ; | |
10740 | PyObject * obj0 = 0 ; | |
10741 | PyObject * obj1 = 0 ; | |
10742 | char * kwnames[] = { | |
10743 | (char *) "self",(char *) "indent", NULL | |
10744 | }; | |
10745 | ||
10746 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10747 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10748 | if (!SWIG_IsOK(res1)) { | |
10749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10750 | } | |
10751 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10752 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10753 | if (!SWIG_IsOK(ecode2)) { | |
10754 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'"); | |
10755 | } | |
10756 | arg2 = static_cast< int >(val2); | |
10757 | { | |
10758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10759 | (arg1)->SetRightIndent(arg2); | |
10760 | wxPyEndAllowThreads(__tstate); | |
10761 | if (PyErr_Occurred()) SWIG_fail; | |
10762 | } | |
10763 | resultobj = SWIG_Py_Void(); | |
10764 | return resultobj; | |
10765 | fail: | |
10766 | return NULL; | |
10767 | } | |
10768 | ||
10769 | ||
10770 | SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10771 | PyObject *resultobj = 0; | |
10772 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10773 | long arg2 ; | |
10774 | void *argp1 = 0 ; | |
10775 | int res1 = 0 ; | |
10776 | long val2 ; | |
10777 | int ecode2 = 0 ; | |
10778 | PyObject * obj0 = 0 ; | |
10779 | PyObject * obj1 = 0 ; | |
10780 | char * kwnames[] = { | |
10781 | (char *) "self",(char *) "flags", NULL | |
10782 | }; | |
10783 | ||
10784 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
10785 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10786 | if (!SWIG_IsOK(res1)) { | |
10787 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10788 | } | |
10789 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10790 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10791 | if (!SWIG_IsOK(ecode2)) { | |
10792 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'"); | |
10793 | } | |
10794 | arg2 = static_cast< long >(val2); | |
10795 | { | |
10796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10797 | (arg1)->SetFlags(arg2); | |
10798 | wxPyEndAllowThreads(__tstate); | |
10799 | if (PyErr_Occurred()) SWIG_fail; | |
10800 | } | |
10801 | resultobj = SWIG_Py_Void(); | |
10802 | return resultobj; | |
10803 | fail: | |
10804 | return NULL; | |
d55e5bfc RD |
10805 | } |
10806 | ||
10807 | ||
1bd55598 RD |
10808 | SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10809 | PyObject *resultobj = 0; | |
10810 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10811 | bool result; | |
10812 | void *argp1 = 0 ; | |
10813 | int res1 = 0 ; | |
10814 | PyObject *swig_obj[1] ; | |
10815 | ||
10816 | if (!args) SWIG_fail; | |
10817 | swig_obj[0] = args; | |
10818 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10819 | if (!SWIG_IsOK(res1)) { | |
10820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10821 | } | |
10822 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10823 | { | |
10824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10825 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
10826 | wxPyEndAllowThreads(__tstate); | |
10827 | if (PyErr_Occurred()) SWIG_fail; | |
10828 | } | |
10829 | { | |
10830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10831 | } | |
10832 | return resultobj; | |
10833 | fail: | |
10834 | return NULL; | |
d55e5bfc RD |
10835 | } |
10836 | ||
10837 | ||
1bd55598 RD |
10838 | SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10839 | PyObject *resultobj = 0; | |
10840 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10841 | bool result; | |
10842 | void *argp1 = 0 ; | |
10843 | int res1 = 0 ; | |
10844 | PyObject *swig_obj[1] ; | |
10845 | ||
10846 | if (!args) SWIG_fail; | |
10847 | swig_obj[0] = args; | |
10848 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10849 | if (!SWIG_IsOK(res1)) { | |
10850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10851 | } | |
10852 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10853 | { | |
10854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10855 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
10856 | wxPyEndAllowThreads(__tstate); | |
10857 | if (PyErr_Occurred()) SWIG_fail; | |
10858 | } | |
10859 | { | |
10860 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10861 | } | |
10862 | return resultobj; | |
10863 | fail: | |
10864 | return NULL; | |
d55e5bfc RD |
10865 | } |
10866 | ||
10867 | ||
1bd55598 RD |
10868 | SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10869 | PyObject *resultobj = 0; | |
10870 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10871 | bool result; | |
10872 | void *argp1 = 0 ; | |
10873 | int res1 = 0 ; | |
10874 | PyObject *swig_obj[1] ; | |
10875 | ||
10876 | if (!args) SWIG_fail; | |
10877 | swig_obj[0] = args; | |
10878 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10879 | if (!SWIG_IsOK(res1)) { | |
10880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10881 | } | |
10882 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10883 | { | |
10884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10885 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
10886 | wxPyEndAllowThreads(__tstate); | |
10887 | if (PyErr_Occurred()) SWIG_fail; | |
10888 | } | |
10889 | { | |
10890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10891 | } | |
10892 | return resultobj; | |
10893 | fail: | |
10894 | return NULL; | |
d55e5bfc RD |
10895 | } |
10896 | ||
10897 | ||
1bd55598 RD |
10898 | SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10899 | PyObject *resultobj = 0; | |
10900 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10901 | bool result; | |
10902 | void *argp1 = 0 ; | |
10903 | int res1 = 0 ; | |
10904 | PyObject *swig_obj[1] ; | |
10905 | ||
10906 | if (!args) SWIG_fail; | |
10907 | swig_obj[0] = args; | |
10908 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10909 | if (!SWIG_IsOK(res1)) { | |
10910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10911 | } | |
10912 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10913 | { | |
10914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10915 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
10916 | wxPyEndAllowThreads(__tstate); | |
10917 | if (PyErr_Occurred()) SWIG_fail; | |
10918 | } | |
10919 | { | |
10920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10921 | } | |
10922 | return resultobj; | |
10923 | fail: | |
10924 | return NULL; | |
d55e5bfc RD |
10925 | } |
10926 | ||
10927 | ||
1bd55598 RD |
10928 | SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10929 | PyObject *resultobj = 0; | |
10930 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10931 | bool result; | |
10932 | void *argp1 = 0 ; | |
10933 | int res1 = 0 ; | |
10934 | PyObject *swig_obj[1] ; | |
10935 | ||
10936 | if (!args) SWIG_fail; | |
10937 | swig_obj[0] = args; | |
10938 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10939 | if (!SWIG_IsOK(res1)) { | |
10940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10941 | } | |
10942 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10943 | { | |
10944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10945 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
10946 | wxPyEndAllowThreads(__tstate); | |
10947 | if (PyErr_Occurred()) SWIG_fail; | |
10948 | } | |
10949 | { | |
10950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10951 | } | |
10952 | return resultobj; | |
10953 | fail: | |
10954 | return NULL; | |
d55e5bfc RD |
10955 | } |
10956 | ||
10957 | ||
1bd55598 RD |
10958 | SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10959 | PyObject *resultobj = 0; | |
10960 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10961 | bool result; | |
10962 | void *argp1 = 0 ; | |
10963 | int res1 = 0 ; | |
10964 | PyObject *swig_obj[1] ; | |
10965 | ||
10966 | if (!args) SWIG_fail; | |
10967 | swig_obj[0] = args; | |
10968 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10969 | if (!SWIG_IsOK(res1)) { | |
10970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10971 | } | |
10972 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10973 | { | |
10974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10975 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
10976 | wxPyEndAllowThreads(__tstate); | |
10977 | if (PyErr_Occurred()) SWIG_fail; | |
10978 | } | |
10979 | { | |
10980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10981 | } | |
10982 | return resultobj; | |
10983 | fail: | |
10984 | return NULL; | |
d55e5bfc RD |
10985 | } |
10986 | ||
10987 | ||
1bd55598 RD |
10988 | SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10989 | PyObject *resultobj = 0; | |
10990 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10991 | bool result; | |
10992 | void *argp1 = 0 ; | |
10993 | int res1 = 0 ; | |
10994 | PyObject *swig_obj[1] ; | |
10995 | ||
10996 | if (!args) SWIG_fail; | |
10997 | swig_obj[0] = args; | |
10998 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10999 | if (!SWIG_IsOK(res1)) { | |
11000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11001 | } | |
11002 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11003 | { | |
11004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11005 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
11006 | wxPyEndAllowThreads(__tstate); | |
11007 | if (PyErr_Occurred()) SWIG_fail; | |
11008 | } | |
11009 | { | |
11010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11011 | } | |
11012 | return resultobj; | |
11013 | fail: | |
11014 | return NULL; | |
11015 | } | |
11016 | ||
11017 | ||
11018 | SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11019 | PyObject *resultobj = 0; | |
11020 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11021 | long arg2 ; | |
11022 | bool result; | |
11023 | void *argp1 = 0 ; | |
11024 | int res1 = 0 ; | |
11025 | long val2 ; | |
11026 | int ecode2 = 0 ; | |
11027 | PyObject * obj0 = 0 ; | |
11028 | PyObject * obj1 = 0 ; | |
11029 | char * kwnames[] = { | |
11030 | (char *) "self",(char *) "flag", NULL | |
11031 | }; | |
11032 | ||
11033 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail; | |
11034 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11035 | if (!SWIG_IsOK(res1)) { | |
11036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11037 | } | |
11038 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11039 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
11040 | if (!SWIG_IsOK(ecode2)) { | |
11041 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'"); | |
11042 | } | |
11043 | arg2 = static_cast< long >(val2); | |
11044 | { | |
11045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11046 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
11047 | wxPyEndAllowThreads(__tstate); | |
11048 | if (PyErr_Occurred()) SWIG_fail; | |
11049 | } | |
11050 | { | |
11051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11052 | } | |
11053 | return resultobj; | |
11054 | fail: | |
11055 | return NULL; | |
d55e5bfc RD |
11056 | } |
11057 | ||
11058 | ||
1bd55598 RD |
11059 | SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11060 | PyObject *resultobj = 0; | |
11061 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11062 | wxColour *result = 0 ; | |
11063 | void *argp1 = 0 ; | |
11064 | int res1 = 0 ; | |
11065 | PyObject *swig_obj[1] ; | |
11066 | ||
11067 | if (!args) SWIG_fail; | |
11068 | swig_obj[0] = args; | |
11069 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11070 | if (!SWIG_IsOK(res1)) { | |
11071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11072 | } | |
11073 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11074 | { | |
11075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 11076 | { |
1bd55598 RD |
11077 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); |
11078 | result = (wxColour *) &_result_ref; | |
d55e5bfc | 11079 | } |
1bd55598 RD |
11080 | wxPyEndAllowThreads(__tstate); |
11081 | if (PyErr_Occurred()) SWIG_fail; | |
11082 | } | |
11083 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
11084 | return resultobj; | |
11085 | fail: | |
11086 | return NULL; | |
d55e5bfc RD |
11087 | } |
11088 | ||
11089 | ||
1bd55598 RD |
11090 | SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11091 | PyObject *resultobj = 0; | |
11092 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11093 | wxColour *result = 0 ; | |
11094 | void *argp1 = 0 ; | |
11095 | int res1 = 0 ; | |
11096 | PyObject *swig_obj[1] ; | |
11097 | ||
11098 | if (!args) SWIG_fail; | |
11099 | swig_obj[0] = args; | |
11100 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11101 | if (!SWIG_IsOK(res1)) { | |
11102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11103 | } | |
11104 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11105 | { | |
11106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 11107 | { |
1bd55598 RD |
11108 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); |
11109 | result = (wxColour *) &_result_ref; | |
d55e5bfc | 11110 | } |
1bd55598 RD |
11111 | wxPyEndAllowThreads(__tstate); |
11112 | if (PyErr_Occurred()) SWIG_fail; | |
11113 | } | |
11114 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
11115 | return resultobj; | |
11116 | fail: | |
11117 | return NULL; | |
d55e5bfc RD |
11118 | } |
11119 | ||
11120 | ||
1bd55598 RD |
11121 | SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11122 | PyObject *resultobj = 0; | |
11123 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11124 | wxFont *result = 0 ; | |
11125 | void *argp1 = 0 ; | |
11126 | int res1 = 0 ; | |
11127 | PyObject *swig_obj[1] ; | |
11128 | ||
11129 | if (!args) SWIG_fail; | |
11130 | swig_obj[0] = args; | |
11131 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11132 | if (!SWIG_IsOK(res1)) { | |
11133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11134 | } | |
11135 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11136 | { | |
11137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 11138 | { |
1bd55598 RD |
11139 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); |
11140 | result = (wxFont *) &_result_ref; | |
d55e5bfc | 11141 | } |
1bd55598 RD |
11142 | wxPyEndAllowThreads(__tstate); |
11143 | if (PyErr_Occurred()) SWIG_fail; | |
11144 | } | |
11145 | { | |
11146 | wxFont* resultptr = new wxFont(*result); | |
11147 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
11148 | } | |
11149 | return resultobj; | |
11150 | fail: | |
11151 | return NULL; | |
d55e5bfc RD |
11152 | } |
11153 | ||
11154 | ||
1bd55598 RD |
11155 | SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11156 | PyObject *resultobj = 0; | |
11157 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11158 | wxTextAttrAlignment result; | |
11159 | void *argp1 = 0 ; | |
11160 | int res1 = 0 ; | |
11161 | PyObject *swig_obj[1] ; | |
11162 | ||
11163 | if (!args) SWIG_fail; | |
11164 | swig_obj[0] = args; | |
11165 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11166 | if (!SWIG_IsOK(res1)) { | |
11167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11168 | } | |
11169 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11170 | { | |
11171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11172 | result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment(); | |
11173 | wxPyEndAllowThreads(__tstate); | |
11174 | if (PyErr_Occurred()) SWIG_fail; | |
11175 | } | |
11176 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11177 | return resultobj; | |
11178 | fail: | |
11179 | return NULL; | |
d55e5bfc RD |
11180 | } |
11181 | ||
11182 | ||
1bd55598 RD |
11183 | SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11184 | PyObject *resultobj = 0; | |
11185 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11186 | wxArrayInt *result = 0 ; | |
11187 | void *argp1 = 0 ; | |
11188 | int res1 = 0 ; | |
11189 | PyObject *swig_obj[1] ; | |
11190 | ||
11191 | if (!args) SWIG_fail; | |
11192 | swig_obj[0] = args; | |
11193 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11194 | if (!SWIG_IsOK(res1)) { | |
11195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11196 | } | |
11197 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11198 | { | |
11199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11200 | { |
1bd55598 RD |
11201 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); |
11202 | result = (wxArrayInt *) &_result_ref; | |
36ed4f51 | 11203 | } |
1bd55598 RD |
11204 | wxPyEndAllowThreads(__tstate); |
11205 | if (PyErr_Occurred()) SWIG_fail; | |
11206 | } | |
11207 | { | |
11208 | resultobj = PyList_New(0); | |
11209 | size_t idx; | |
11210 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
11211 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
11212 | PyList_Append(resultobj, val); | |
11213 | Py_DECREF(val); | |
d55e5bfc | 11214 | } |
1bd55598 RD |
11215 | } |
11216 | return resultobj; | |
11217 | fail: | |
11218 | return NULL; | |
d55e5bfc RD |
11219 | } |
11220 | ||
11221 | ||
1bd55598 RD |
11222 | SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11223 | PyObject *resultobj = 0; | |
11224 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11225 | long result; | |
11226 | void *argp1 = 0 ; | |
11227 | int res1 = 0 ; | |
11228 | PyObject *swig_obj[1] ; | |
11229 | ||
11230 | if (!args) SWIG_fail; | |
11231 | swig_obj[0] = args; | |
11232 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11233 | if (!SWIG_IsOK(res1)) { | |
11234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11235 | } | |
11236 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11237 | { | |
11238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11239 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
11240 | wxPyEndAllowThreads(__tstate); | |
11241 | if (PyErr_Occurred()) SWIG_fail; | |
11242 | } | |
11243 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11244 | return resultobj; | |
11245 | fail: | |
11246 | return NULL; | |
d55e5bfc RD |
11247 | } |
11248 | ||
11249 | ||
1bd55598 RD |
11250 | SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11251 | PyObject *resultobj = 0; | |
11252 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11253 | long result; | |
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_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11263 | } | |
11264 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11265 | { | |
11266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11267 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
11268 | wxPyEndAllowThreads(__tstate); | |
11269 | if (PyErr_Occurred()) SWIG_fail; | |
11270 | } | |
11271 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11272 | return resultobj; | |
11273 | fail: | |
11274 | return NULL; | |
d55e5bfc RD |
11275 | } |
11276 | ||
11277 | ||
1bd55598 RD |
11278 | SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11279 | PyObject *resultobj = 0; | |
11280 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11281 | long result; | |
11282 | void *argp1 = 0 ; | |
11283 | int res1 = 0 ; | |
11284 | PyObject *swig_obj[1] ; | |
11285 | ||
11286 | if (!args) SWIG_fail; | |
11287 | swig_obj[0] = args; | |
11288 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11289 | if (!SWIG_IsOK(res1)) { | |
11290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11291 | } | |
11292 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11293 | { | |
11294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11295 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
11296 | wxPyEndAllowThreads(__tstate); | |
11297 | if (PyErr_Occurred()) SWIG_fail; | |
11298 | } | |
11299 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11300 | return resultobj; | |
11301 | fail: | |
11302 | return NULL; | |
d55e5bfc RD |
11303 | } |
11304 | ||
11305 | ||
1bd55598 RD |
11306 | SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11307 | PyObject *resultobj = 0; | |
11308 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11309 | long result; | |
11310 | void *argp1 = 0 ; | |
11311 | int res1 = 0 ; | |
11312 | PyObject *swig_obj[1] ; | |
11313 | ||
11314 | if (!args) SWIG_fail; | |
11315 | swig_obj[0] = args; | |
11316 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11317 | if (!SWIG_IsOK(res1)) { | |
11318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11319 | } | |
11320 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11321 | { | |
11322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11323 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
11324 | wxPyEndAllowThreads(__tstate); | |
11325 | if (PyErr_Occurred()) SWIG_fail; | |
11326 | } | |
11327 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11328 | return resultobj; | |
11329 | fail: | |
11330 | return NULL; | |
d55e5bfc RD |
11331 | } |
11332 | ||
11333 | ||
1bd55598 RD |
11334 | SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11335 | PyObject *resultobj = 0; | |
11336 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11337 | bool result; | |
11338 | void *argp1 = 0 ; | |
11339 | int res1 = 0 ; | |
11340 | PyObject *swig_obj[1] ; | |
11341 | ||
11342 | if (!args) SWIG_fail; | |
11343 | swig_obj[0] = args; | |
11344 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11345 | if (!SWIG_IsOK(res1)) { | |
11346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11347 | } | |
11348 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11349 | { | |
11350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11351 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
11352 | wxPyEndAllowThreads(__tstate); | |
11353 | if (PyErr_Occurred()) SWIG_fail; | |
11354 | } | |
11355 | { | |
11356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11357 | } | |
11358 | return resultobj; | |
11359 | fail: | |
11360 | return NULL; | |
11361 | } | |
11362 | ||
11363 | ||
11364 | SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11365 | PyObject *resultobj = 0; | |
11366 | wxTextAttr *arg1 = 0 ; | |
11367 | wxTextAttr *arg2 = 0 ; | |
11368 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
11369 | wxTextAttr result; | |
11370 | void *argp1 = 0 ; | |
11371 | int res1 = 0 ; | |
11372 | void *argp2 = 0 ; | |
11373 | int res2 = 0 ; | |
11374 | void *argp3 = 0 ; | |
11375 | int res3 = 0 ; | |
11376 | PyObject * obj0 = 0 ; | |
11377 | PyObject * obj1 = 0 ; | |
11378 | PyObject * obj2 = 0 ; | |
11379 | char * kwnames[] = { | |
11380 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
11381 | }; | |
11382 | ||
11383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11384 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
11385 | if (!SWIG_IsOK(res1)) { | |
11386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
11387 | } | |
11388 | if (!argp1) { | |
11389 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
11390 | } | |
11391 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11392 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
11393 | if (!SWIG_IsOK(res2)) { | |
11394 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
11395 | } | |
11396 | if (!argp2) { | |
11397 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
11398 | } | |
11399 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
11400 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11401 | if (!SWIG_IsOK(res3)) { | |
11402 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'"); | |
11403 | } | |
11404 | arg3 = reinterpret_cast< wxTextCtrl * >(argp3); | |
11405 | { | |
11406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11407 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
11408 | wxPyEndAllowThreads(__tstate); | |
11409 | if (PyErr_Occurred()) SWIG_fail; | |
11410 | } | |
11411 | resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 ); | |
11412 | return resultobj; | |
11413 | fail: | |
11414 | return NULL; | |
11415 | } | |
11416 | ||
11417 | ||
11418 | SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11419 | PyObject *obj; | |
11420 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11421 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj)); | |
11422 | return SWIG_Py_Void(); | |
11423 | } | |
11424 | ||
11425 | SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11426 | return SWIG_Python_InitShadowInstance(args); | |
11427 | } | |
11428 | ||
11429 | SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11430 | PyObject *resultobj = 0; | |
11431 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11432 | int arg2 = (int) -1 ; | |
11433 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11434 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11435 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11436 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11437 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11438 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11439 | long arg6 = (long) 0 ; | |
11440 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11441 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11442 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
11443 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11444 | wxTextCtrl *result = 0 ; | |
11445 | void *argp1 = 0 ; | |
11446 | int res1 = 0 ; | |
11447 | int val2 ; | |
11448 | int ecode2 = 0 ; | |
11449 | bool temp3 = false ; | |
11450 | wxPoint temp4 ; | |
11451 | wxSize temp5 ; | |
11452 | long val6 ; | |
11453 | int ecode6 = 0 ; | |
11454 | void *argp7 = 0 ; | |
11455 | int res7 = 0 ; | |
11456 | bool temp8 = false ; | |
11457 | PyObject * obj0 = 0 ; | |
11458 | PyObject * obj1 = 0 ; | |
11459 | PyObject * obj2 = 0 ; | |
11460 | PyObject * obj3 = 0 ; | |
11461 | PyObject * obj4 = 0 ; | |
11462 | PyObject * obj5 = 0 ; | |
11463 | PyObject * obj6 = 0 ; | |
11464 | PyObject * obj7 = 0 ; | |
11465 | char * kwnames[] = { | |
11466 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11467 | }; | |
11468 | ||
11469 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
11470 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
11471 | if (!SWIG_IsOK(res1)) { | |
11472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
11473 | } | |
11474 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
11475 | if (obj1) { | |
11476 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11477 | if (!SWIG_IsOK(ecode2)) { | |
11478 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'"); | |
11479 | } | |
11480 | arg2 = static_cast< int >(val2); | |
11481 | } | |
11482 | if (obj2) { | |
36ed4f51 | 11483 | { |
1bd55598 RD |
11484 | arg3 = wxString_in_helper(obj2); |
11485 | if (arg3 == NULL) SWIG_fail; | |
11486 | temp3 = true; | |
36ed4f51 | 11487 | } |
1bd55598 RD |
11488 | } |
11489 | if (obj3) { | |
36ed4f51 | 11490 | { |
1bd55598 RD |
11491 | arg4 = &temp4; |
11492 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 11493 | } |
1bd55598 RD |
11494 | } |
11495 | if (obj4) { | |
d55e5bfc | 11496 | { |
1bd55598 RD |
11497 | arg5 = &temp5; |
11498 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 11499 | } |
1bd55598 RD |
11500 | } |
11501 | if (obj5) { | |
11502 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
11503 | if (!SWIG_IsOK(ecode6)) { | |
11504 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'"); | |
11505 | } | |
11506 | arg6 = static_cast< long >(val6); | |
11507 | } | |
11508 | if (obj6) { | |
11509 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
11510 | if (!SWIG_IsOK(res7)) { | |
11511 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 11512 | } |
1bd55598 RD |
11513 | if (!argp7) { |
11514 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 11515 | } |
1bd55598 RD |
11516 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
11517 | } | |
11518 | if (obj7) { | |
d55e5bfc | 11519 | { |
1bd55598 RD |
11520 | arg8 = wxString_in_helper(obj7); |
11521 | if (arg8 == NULL) SWIG_fail; | |
11522 | temp8 = true; | |
d55e5bfc | 11523 | } |
1bd55598 RD |
11524 | } |
11525 | { | |
11526 | if (!wxPyCheckForApp()) SWIG_fail; | |
11527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11528 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11529 | wxPyEndAllowThreads(__tstate); | |
11530 | if (PyErr_Occurred()) SWIG_fail; | |
11531 | } | |
11532 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 ); | |
11533 | { | |
11534 | if (temp3) | |
11535 | delete arg3; | |
11536 | } | |
11537 | { | |
11538 | if (temp8) | |
11539 | delete arg8; | |
11540 | } | |
11541 | return resultobj; | |
11542 | fail: | |
11543 | { | |
11544 | if (temp3) | |
11545 | delete arg3; | |
11546 | } | |
11547 | { | |
11548 | if (temp8) | |
11549 | delete arg8; | |
11550 | } | |
11551 | return NULL; | |
d55e5bfc RD |
11552 | } |
11553 | ||
11554 | ||
1bd55598 RD |
11555 | SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11556 | PyObject *resultobj = 0; | |
11557 | wxTextCtrl *result = 0 ; | |
11558 | ||
11559 | if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail; | |
11560 | { | |
11561 | if (!wxPyCheckForApp()) SWIG_fail; | |
11562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11563 | result = (wxTextCtrl *)new wxTextCtrl(); | |
11564 | wxPyEndAllowThreads(__tstate); | |
11565 | if (PyErr_Occurred()) SWIG_fail; | |
11566 | } | |
11567 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 ); | |
11568 | return resultobj; | |
11569 | fail: | |
11570 | return NULL; | |
11571 | } | |
11572 | ||
11573 | ||
11574 | SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11575 | PyObject *resultobj = 0; | |
11576 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11577 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11578 | int arg3 = (int) -1 ; | |
11579 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11580 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11581 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11582 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11583 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11584 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11585 | long arg7 = (long) 0 ; | |
11586 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11587 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11588 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
11589 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11590 | bool result; | |
11591 | void *argp1 = 0 ; | |
11592 | int res1 = 0 ; | |
11593 | void *argp2 = 0 ; | |
11594 | int res2 = 0 ; | |
11595 | int val3 ; | |
11596 | int ecode3 = 0 ; | |
11597 | bool temp4 = false ; | |
11598 | wxPoint temp5 ; | |
11599 | wxSize temp6 ; | |
11600 | long val7 ; | |
11601 | int ecode7 = 0 ; | |
11602 | void *argp8 = 0 ; | |
11603 | int res8 = 0 ; | |
11604 | bool temp9 = false ; | |
11605 | PyObject * obj0 = 0 ; | |
11606 | PyObject * obj1 = 0 ; | |
11607 | PyObject * obj2 = 0 ; | |
11608 | PyObject * obj3 = 0 ; | |
11609 | PyObject * obj4 = 0 ; | |
11610 | PyObject * obj5 = 0 ; | |
11611 | PyObject * obj6 = 0 ; | |
11612 | PyObject * obj7 = 0 ; | |
11613 | PyObject * obj8 = 0 ; | |
11614 | char * kwnames[] = { | |
11615 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11616 | }; | |
11617 | ||
11618 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
11619 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11620 | if (!SWIG_IsOK(res1)) { | |
11621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
11622 | } | |
11623 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11624 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
11625 | if (!SWIG_IsOK(res2)) { | |
11626 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
11627 | } | |
11628 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
11629 | if (obj2) { | |
11630 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11631 | if (!SWIG_IsOK(ecode3)) { | |
11632 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
11633 | } | |
11634 | arg3 = static_cast< int >(val3); | |
11635 | } | |
11636 | if (obj3) { | |
d55e5bfc | 11637 | { |
1bd55598 RD |
11638 | arg4 = wxString_in_helper(obj3); |
11639 | if (arg4 == NULL) SWIG_fail; | |
11640 | temp4 = true; | |
d55e5bfc | 11641 | } |
1bd55598 RD |
11642 | } |
11643 | if (obj4) { | |
d55e5bfc | 11644 | { |
1bd55598 RD |
11645 | arg5 = &temp5; |
11646 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 11647 | } |
1bd55598 RD |
11648 | } |
11649 | if (obj5) { | |
d55e5bfc | 11650 | { |
1bd55598 RD |
11651 | arg6 = &temp6; |
11652 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 11653 | } |
1bd55598 RD |
11654 | } |
11655 | if (obj6) { | |
11656 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
11657 | if (!SWIG_IsOK(ecode7)) { | |
11658 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
11659 | } | |
11660 | arg7 = static_cast< long >(val7); | |
11661 | } | |
11662 | if (obj7) { | |
11663 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
11664 | if (!SWIG_IsOK(res8)) { | |
11665 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 11666 | } |
1bd55598 RD |
11667 | if (!argp8) { |
11668 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
11669 | } | |
11670 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
11671 | } | |
11672 | if (obj8) { | |
d55e5bfc | 11673 | { |
1bd55598 RD |
11674 | arg9 = wxString_in_helper(obj8); |
11675 | if (arg9 == NULL) SWIG_fail; | |
11676 | temp9 = true; | |
d55e5bfc | 11677 | } |
1bd55598 RD |
11678 | } |
11679 | { | |
11680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11681 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11682 | wxPyEndAllowThreads(__tstate); | |
11683 | if (PyErr_Occurred()) SWIG_fail; | |
11684 | } | |
11685 | { | |
11686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11687 | } | |
11688 | { | |
11689 | if (temp4) | |
11690 | delete arg4; | |
11691 | } | |
11692 | { | |
11693 | if (temp9) | |
11694 | delete arg9; | |
11695 | } | |
11696 | return resultobj; | |
11697 | fail: | |
11698 | { | |
11699 | if (temp4) | |
11700 | delete arg4; | |
11701 | } | |
11702 | { | |
11703 | if (temp9) | |
11704 | delete arg9; | |
11705 | } | |
11706 | return NULL; | |
d55e5bfc RD |
11707 | } |
11708 | ||
11709 | ||
1bd55598 RD |
11710 | SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11711 | PyObject *resultobj = 0; | |
11712 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11713 | wxString result; | |
11714 | void *argp1 = 0 ; | |
11715 | int res1 = 0 ; | |
11716 | PyObject *swig_obj[1] ; | |
11717 | ||
11718 | if (!args) SWIG_fail; | |
11719 | swig_obj[0] = args; | |
11720 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11721 | if (!SWIG_IsOK(res1)) { | |
11722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11723 | } | |
11724 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11725 | { | |
11726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11727 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
11728 | wxPyEndAllowThreads(__tstate); | |
11729 | if (PyErr_Occurred()) SWIG_fail; | |
11730 | } | |
11731 | { | |
11732 | #if wxUSE_UNICODE | |
11733 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11734 | #else | |
11735 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11736 | #endif | |
11737 | } | |
11738 | return resultobj; | |
11739 | fail: | |
11740 | return NULL; | |
11741 | } | |
11742 | ||
11743 | ||
11744 | SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11745 | PyObject *resultobj = 0; | |
11746 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11747 | wxString *arg2 = 0 ; | |
11748 | void *argp1 = 0 ; | |
11749 | int res1 = 0 ; | |
11750 | bool temp2 = false ; | |
11751 | PyObject * obj0 = 0 ; | |
11752 | PyObject * obj1 = 0 ; | |
11753 | char * kwnames[] = { | |
11754 | (char *) "self",(char *) "value", NULL | |
11755 | }; | |
11756 | ||
11757 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
11758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11759 | if (!SWIG_IsOK(res1)) { | |
11760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
11761 | } | |
11762 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11763 | { | |
11764 | arg2 = wxString_in_helper(obj1); | |
11765 | if (arg2 == NULL) SWIG_fail; | |
11766 | temp2 = true; | |
11767 | } | |
11768 | { | |
11769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11770 | (arg1)->SetValue((wxString const &)*arg2); | |
11771 | wxPyEndAllowThreads(__tstate); | |
11772 | if (PyErr_Occurred()) SWIG_fail; | |
11773 | } | |
11774 | resultobj = SWIG_Py_Void(); | |
11775 | { | |
11776 | if (temp2) | |
11777 | delete arg2; | |
11778 | } | |
11779 | return resultobj; | |
11780 | fail: | |
11781 | { | |
11782 | if (temp2) | |
11783 | delete arg2; | |
11784 | } | |
11785 | return NULL; | |
11786 | } | |
11787 | ||
11788 | ||
11789 | SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11790 | PyObject *resultobj = 0; | |
11791 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11792 | long arg2 ; | |
11793 | long arg3 ; | |
11794 | wxString result; | |
11795 | void *argp1 = 0 ; | |
11796 | int res1 = 0 ; | |
11797 | long val2 ; | |
11798 | int ecode2 = 0 ; | |
11799 | long val3 ; | |
11800 | int ecode3 = 0 ; | |
11801 | PyObject * obj0 = 0 ; | |
11802 | PyObject * obj1 = 0 ; | |
11803 | PyObject * obj2 = 0 ; | |
11804 | char * kwnames[] = { | |
11805 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
11806 | }; | |
11807 | ||
11808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11810 | if (!SWIG_IsOK(res1)) { | |
11811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11812 | } | |
11813 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11814 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
11815 | if (!SWIG_IsOK(ecode2)) { | |
11816 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'"); | |
11817 | } | |
11818 | arg2 = static_cast< long >(val2); | |
11819 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
11820 | if (!SWIG_IsOK(ecode3)) { | |
11821 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'"); | |
11822 | } | |
11823 | arg3 = static_cast< long >(val3); | |
11824 | { | |
11825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11826 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
11827 | wxPyEndAllowThreads(__tstate); | |
11828 | if (PyErr_Occurred()) SWIG_fail; | |
11829 | } | |
11830 | { | |
11831 | #if wxUSE_UNICODE | |
11832 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11833 | #else | |
11834 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11835 | #endif | |
11836 | } | |
11837 | return resultobj; | |
11838 | fail: | |
11839 | return NULL; | |
11840 | } | |
11841 | ||
11842 | ||
11843 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11844 | PyObject *resultobj = 0; | |
11845 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11846 | long arg2 ; | |
11847 | int result; | |
11848 | void *argp1 = 0 ; | |
11849 | int res1 = 0 ; | |
11850 | long val2 ; | |
11851 | int ecode2 = 0 ; | |
11852 | PyObject * obj0 = 0 ; | |
11853 | PyObject * obj1 = 0 ; | |
11854 | char * kwnames[] = { | |
11855 | (char *) "self",(char *) "lineNo", NULL | |
11856 | }; | |
11857 | ||
11858 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
11859 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11860 | if (!SWIG_IsOK(res1)) { | |
11861 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11862 | } | |
11863 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11864 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
11865 | if (!SWIG_IsOK(ecode2)) { | |
11866 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'"); | |
11867 | } | |
11868 | arg2 = static_cast< long >(val2); | |
11869 | { | |
11870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11871 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
11872 | wxPyEndAllowThreads(__tstate); | |
11873 | if (PyErr_Occurred()) SWIG_fail; | |
11874 | } | |
11875 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11876 | return resultobj; | |
11877 | fail: | |
11878 | return NULL; | |
11879 | } | |
11880 | ||
11881 | ||
11882 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11883 | PyObject *resultobj = 0; | |
11884 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11885 | long arg2 ; | |
11886 | wxString result; | |
11887 | void *argp1 = 0 ; | |
11888 | int res1 = 0 ; | |
11889 | long val2 ; | |
11890 | int ecode2 = 0 ; | |
11891 | PyObject * obj0 = 0 ; | |
11892 | PyObject * obj1 = 0 ; | |
11893 | char * kwnames[] = { | |
11894 | (char *) "self",(char *) "lineNo", NULL | |
11895 | }; | |
11896 | ||
11897 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail; | |
11898 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11899 | if (!SWIG_IsOK(res1)) { | |
11900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11901 | } | |
11902 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11903 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
11904 | if (!SWIG_IsOK(ecode2)) { | |
11905 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'"); | |
11906 | } | |
11907 | arg2 = static_cast< long >(val2); | |
11908 | { | |
11909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11910 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
11911 | wxPyEndAllowThreads(__tstate); | |
11912 | if (PyErr_Occurred()) SWIG_fail; | |
11913 | } | |
11914 | { | |
11915 | #if wxUSE_UNICODE | |
11916 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11917 | #else | |
11918 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11919 | #endif | |
11920 | } | |
11921 | return resultobj; | |
11922 | fail: | |
11923 | return NULL; | |
d55e5bfc RD |
11924 | } |
11925 | ||
11926 | ||
1bd55598 RD |
11927 | SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11928 | PyObject *resultobj = 0; | |
11929 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11930 | int result; | |
11931 | void *argp1 = 0 ; | |
11932 | int res1 = 0 ; | |
11933 | PyObject *swig_obj[1] ; | |
11934 | ||
11935 | if (!args) SWIG_fail; | |
11936 | swig_obj[0] = args; | |
11937 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11938 | if (!SWIG_IsOK(res1)) { | |
11939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11940 | } | |
11941 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11942 | { | |
11943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11944 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
11945 | wxPyEndAllowThreads(__tstate); | |
11946 | if (PyErr_Occurred()) SWIG_fail; | |
11947 | } | |
11948 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11949 | return resultobj; | |
11950 | fail: | |
11951 | return NULL; | |
d55e5bfc RD |
11952 | } |
11953 | ||
11954 | ||
1bd55598 RD |
11955 | SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11956 | PyObject *resultobj = 0; | |
11957 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11958 | bool result; | |
11959 | void *argp1 = 0 ; | |
11960 | int res1 = 0 ; | |
11961 | PyObject *swig_obj[1] ; | |
11962 | ||
11963 | if (!args) SWIG_fail; | |
11964 | swig_obj[0] = args; | |
11965 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11966 | if (!SWIG_IsOK(res1)) { | |
11967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11968 | } | |
11969 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11970 | { | |
11971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11972 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
11973 | wxPyEndAllowThreads(__tstate); | |
11974 | if (PyErr_Occurred()) SWIG_fail; | |
11975 | } | |
11976 | { | |
11977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11978 | } | |
11979 | return resultobj; | |
11980 | fail: | |
11981 | return NULL; | |
d55e5bfc RD |
11982 | } |
11983 | ||
11984 | ||
1bd55598 RD |
11985 | SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11986 | PyObject *resultobj = 0; | |
11987 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11988 | bool result; | |
11989 | void *argp1 = 0 ; | |
11990 | int res1 = 0 ; | |
11991 | PyObject *swig_obj[1] ; | |
11992 | ||
11993 | if (!args) SWIG_fail; | |
11994 | swig_obj[0] = args; | |
11995 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11996 | if (!SWIG_IsOK(res1)) { | |
11997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11998 | } | |
11999 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12000 | { | |
12001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12002 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
12003 | wxPyEndAllowThreads(__tstate); | |
12004 | if (PyErr_Occurred()) SWIG_fail; | |
12005 | } | |
12006 | { | |
12007 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12008 | } | |
12009 | return resultobj; | |
12010 | fail: | |
12011 | return NULL; | |
d55e5bfc RD |
12012 | } |
12013 | ||
12014 | ||
1bd55598 RD |
12015 | SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12016 | PyObject *resultobj = 0; | |
12017 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12018 | bool result; | |
12019 | void *argp1 = 0 ; | |
12020 | int res1 = 0 ; | |
12021 | PyObject *swig_obj[1] ; | |
12022 | ||
12023 | if (!args) SWIG_fail; | |
12024 | swig_obj[0] = args; | |
12025 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12026 | if (!SWIG_IsOK(res1)) { | |
12027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12028 | } | |
12029 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12030 | { | |
12031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12032 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
12033 | wxPyEndAllowThreads(__tstate); | |
12034 | if (PyErr_Occurred()) SWIG_fail; | |
12035 | } | |
12036 | { | |
12037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12038 | } | |
12039 | return resultobj; | |
12040 | fail: | |
12041 | return NULL; | |
d55e5bfc RD |
12042 | } |
12043 | ||
12044 | ||
1bd55598 RD |
12045 | SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12046 | PyObject *resultobj = 0; | |
12047 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12048 | bool result; | |
12049 | void *argp1 = 0 ; | |
12050 | int res1 = 0 ; | |
12051 | PyObject *swig_obj[1] ; | |
12052 | ||
12053 | if (!args) SWIG_fail; | |
12054 | swig_obj[0] = args; | |
12055 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12056 | if (!SWIG_IsOK(res1)) { | |
12057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12058 | } | |
12059 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12060 | { | |
12061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12062 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
12063 | wxPyEndAllowThreads(__tstate); | |
12064 | if (PyErr_Occurred()) SWIG_fail; | |
12065 | } | |
12066 | { | |
12067 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12068 | } | |
12069 | return resultobj; | |
12070 | fail: | |
12071 | return NULL; | |
12072 | } | |
12073 | ||
12074 | ||
12075 | SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12076 | PyObject *resultobj = 0; | |
12077 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12078 | long *arg2 = (long *) 0 ; | |
12079 | long *arg3 = (long *) 0 ; | |
12080 | void *argp1 = 0 ; | |
12081 | int res1 = 0 ; | |
12082 | long temp2 ; | |
12083 | int res2 = SWIG_TMPOBJ ; | |
12084 | long temp3 ; | |
12085 | int res3 = SWIG_TMPOBJ ; | |
12086 | PyObject *swig_obj[1] ; | |
12087 | ||
12088 | arg2 = &temp2; | |
12089 | arg3 = &temp3; | |
12090 | if (!args) SWIG_fail; | |
12091 | swig_obj[0] = args; | |
12092 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12093 | if (!SWIG_IsOK(res1)) { | |
12094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12095 | } | |
12096 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12097 | { | |
12098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12099 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
12100 | wxPyEndAllowThreads(__tstate); | |
12101 | if (PyErr_Occurred()) SWIG_fail; | |
12102 | } | |
12103 | resultobj = SWIG_Py_Void(); | |
12104 | if (SWIG_IsTmpObj(res2)) { | |
12105 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2))); | |
12106 | } else { | |
12107 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12108 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags)); | |
12109 | } | |
12110 | if (SWIG_IsTmpObj(res3)) { | |
12111 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
12112 | } else { | |
12113 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12114 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
12115 | } | |
12116 | return resultobj; | |
12117 | fail: | |
12118 | return NULL; | |
d55e5bfc RD |
12119 | } |
12120 | ||
12121 | ||
1bd55598 RD |
12122 | SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12123 | PyObject *resultobj = 0; | |
12124 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12125 | wxString result; | |
12126 | void *argp1 = 0 ; | |
12127 | int res1 = 0 ; | |
12128 | PyObject *swig_obj[1] ; | |
12129 | ||
12130 | if (!args) SWIG_fail; | |
12131 | swig_obj[0] = args; | |
12132 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12133 | if (!SWIG_IsOK(res1)) { | |
12134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12135 | } | |
12136 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12137 | { | |
12138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12139 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
12140 | wxPyEndAllowThreads(__tstate); | |
12141 | if (PyErr_Occurred()) SWIG_fail; | |
12142 | } | |
12143 | { | |
d55e5bfc | 12144 | #if wxUSE_UNICODE |
1bd55598 | 12145 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 12146 | #else |
1bd55598 | 12147 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 12148 | #endif |
1bd55598 RD |
12149 | } |
12150 | return resultobj; | |
12151 | fail: | |
12152 | return NULL; | |
d55e5bfc RD |
12153 | } |
12154 | ||
12155 | ||
1bd55598 RD |
12156 | SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12157 | PyObject *resultobj = 0; | |
12158 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12159 | void *argp1 = 0 ; | |
12160 | int res1 = 0 ; | |
12161 | PyObject *swig_obj[1] ; | |
12162 | ||
12163 | if (!args) SWIG_fail; | |
12164 | swig_obj[0] = args; | |
12165 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12166 | if (!SWIG_IsOK(res1)) { | |
12167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12168 | } | |
12169 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12170 | { | |
12171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12172 | (arg1)->Clear(); | |
12173 | wxPyEndAllowThreads(__tstate); | |
12174 | if (PyErr_Occurred()) SWIG_fail; | |
12175 | } | |
12176 | resultobj = SWIG_Py_Void(); | |
12177 | return resultobj; | |
12178 | fail: | |
12179 | return NULL; | |
12180 | } | |
12181 | ||
12182 | ||
12183 | SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12184 | PyObject *resultobj = 0; | |
12185 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12186 | long arg2 ; | |
12187 | long arg3 ; | |
12188 | wxString *arg4 = 0 ; | |
12189 | void *argp1 = 0 ; | |
12190 | int res1 = 0 ; | |
12191 | long val2 ; | |
12192 | int ecode2 = 0 ; | |
12193 | long val3 ; | |
12194 | int ecode3 = 0 ; | |
12195 | bool temp4 = false ; | |
12196 | PyObject * obj0 = 0 ; | |
12197 | PyObject * obj1 = 0 ; | |
12198 | PyObject * obj2 = 0 ; | |
12199 | PyObject * obj3 = 0 ; | |
12200 | char * kwnames[] = { | |
12201 | (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL | |
12202 | }; | |
12203 | ||
12204 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12205 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12206 | if (!SWIG_IsOK(res1)) { | |
12207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12208 | } | |
12209 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12210 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12211 | if (!SWIG_IsOK(ecode2)) { | |
12212 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'"); | |
12213 | } | |
12214 | arg2 = static_cast< long >(val2); | |
12215 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12216 | if (!SWIG_IsOK(ecode3)) { | |
12217 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'"); | |
12218 | } | |
12219 | arg3 = static_cast< long >(val3); | |
12220 | { | |
12221 | arg4 = wxString_in_helper(obj3); | |
12222 | if (arg4 == NULL) SWIG_fail; | |
12223 | temp4 = true; | |
12224 | } | |
12225 | { | |
12226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12227 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
12228 | wxPyEndAllowThreads(__tstate); | |
12229 | if (PyErr_Occurred()) SWIG_fail; | |
12230 | } | |
12231 | resultobj = SWIG_Py_Void(); | |
12232 | { | |
12233 | if (temp4) | |
12234 | delete arg4; | |
12235 | } | |
12236 | return resultobj; | |
12237 | fail: | |
12238 | { | |
12239 | if (temp4) | |
12240 | delete arg4; | |
12241 | } | |
12242 | return NULL; | |
12243 | } | |
12244 | ||
12245 | ||
12246 | SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12247 | PyObject *resultobj = 0; | |
12248 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12249 | long arg2 ; | |
12250 | long arg3 ; | |
12251 | void *argp1 = 0 ; | |
12252 | int res1 = 0 ; | |
12253 | long val2 ; | |
12254 | int ecode2 = 0 ; | |
12255 | long val3 ; | |
12256 | int ecode3 = 0 ; | |
12257 | PyObject * obj0 = 0 ; | |
12258 | PyObject * obj1 = 0 ; | |
12259 | PyObject * obj2 = 0 ; | |
12260 | char * kwnames[] = { | |
12261 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
12262 | }; | |
12263 | ||
12264 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12265 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12266 | if (!SWIG_IsOK(res1)) { | |
12267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12268 | } | |
12269 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12270 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12271 | if (!SWIG_IsOK(ecode2)) { | |
12272 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'"); | |
12273 | } | |
12274 | arg2 = static_cast< long >(val2); | |
12275 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12276 | if (!SWIG_IsOK(ecode3)) { | |
12277 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'"); | |
12278 | } | |
12279 | arg3 = static_cast< long >(val3); | |
12280 | { | |
12281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12282 | (arg1)->Remove(arg2,arg3); | |
12283 | wxPyEndAllowThreads(__tstate); | |
12284 | if (PyErr_Occurred()) SWIG_fail; | |
12285 | } | |
12286 | resultobj = SWIG_Py_Void(); | |
12287 | return resultobj; | |
12288 | fail: | |
12289 | return NULL; | |
12290 | } | |
12291 | ||
12292 | ||
12293 | SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12294 | PyObject *resultobj = 0; | |
12295 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12296 | wxString *arg2 = 0 ; | |
12297 | bool result; | |
12298 | void *argp1 = 0 ; | |
12299 | int res1 = 0 ; | |
12300 | bool temp2 = false ; | |
12301 | PyObject * obj0 = 0 ; | |
12302 | PyObject * obj1 = 0 ; | |
12303 | char * kwnames[] = { | |
12304 | (char *) "self",(char *) "file", NULL | |
12305 | }; | |
12306 | ||
12307 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
12308 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12309 | if (!SWIG_IsOK(res1)) { | |
12310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12311 | } | |
12312 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12313 | { | |
12314 | arg2 = wxString_in_helper(obj1); | |
12315 | if (arg2 == NULL) SWIG_fail; | |
12316 | temp2 = true; | |
12317 | } | |
12318 | { | |
12319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12320 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
12321 | wxPyEndAllowThreads(__tstate); | |
12322 | if (PyErr_Occurred()) SWIG_fail; | |
12323 | } | |
12324 | { | |
12325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12326 | } | |
12327 | { | |
12328 | if (temp2) | |
12329 | delete arg2; | |
12330 | } | |
12331 | return resultobj; | |
12332 | fail: | |
12333 | { | |
12334 | if (temp2) | |
12335 | delete arg2; | |
12336 | } | |
12337 | return NULL; | |
12338 | } | |
12339 | ||
12340 | ||
12341 | SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12342 | PyObject *resultobj = 0; | |
12343 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12344 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12345 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12346 | bool result; | |
12347 | void *argp1 = 0 ; | |
12348 | int res1 = 0 ; | |
12349 | bool temp2 = false ; | |
12350 | PyObject * obj0 = 0 ; | |
12351 | PyObject * obj1 = 0 ; | |
12352 | char * kwnames[] = { | |
12353 | (char *) "self",(char *) "file", NULL | |
12354 | }; | |
12355 | ||
12356 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
12357 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12358 | if (!SWIG_IsOK(res1)) { | |
12359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12360 | } | |
12361 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12362 | if (obj1) { | |
d55e5bfc | 12363 | { |
1bd55598 RD |
12364 | arg2 = wxString_in_helper(obj1); |
12365 | if (arg2 == NULL) SWIG_fail; | |
12366 | temp2 = true; | |
d55e5bfc | 12367 | } |
1bd55598 RD |
12368 | } |
12369 | { | |
12370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12371 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
12372 | wxPyEndAllowThreads(__tstate); | |
12373 | if (PyErr_Occurred()) SWIG_fail; | |
12374 | } | |
12375 | { | |
12376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12377 | } | |
12378 | { | |
12379 | if (temp2) | |
12380 | delete arg2; | |
12381 | } | |
12382 | return resultobj; | |
12383 | fail: | |
12384 | { | |
12385 | if (temp2) | |
12386 | delete arg2; | |
12387 | } | |
12388 | return NULL; | |
d55e5bfc RD |
12389 | } |
12390 | ||
12391 | ||
1bd55598 RD |
12392 | SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12393 | PyObject *resultobj = 0; | |
12394 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12395 | void *argp1 = 0 ; | |
12396 | int res1 = 0 ; | |
12397 | PyObject *swig_obj[1] ; | |
12398 | ||
12399 | if (!args) SWIG_fail; | |
12400 | swig_obj[0] = args; | |
12401 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12402 | if (!SWIG_IsOK(res1)) { | |
12403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12404 | } | |
12405 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12406 | { | |
12407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12408 | (arg1)->MarkDirty(); | |
12409 | wxPyEndAllowThreads(__tstate); | |
12410 | if (PyErr_Occurred()) SWIG_fail; | |
12411 | } | |
12412 | resultobj = SWIG_Py_Void(); | |
12413 | return resultobj; | |
12414 | fail: | |
12415 | return NULL; | |
d55e5bfc RD |
12416 | } |
12417 | ||
12418 | ||
1bd55598 RD |
12419 | SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12420 | PyObject *resultobj = 0; | |
12421 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12422 | void *argp1 = 0 ; | |
12423 | int res1 = 0 ; | |
12424 | PyObject *swig_obj[1] ; | |
12425 | ||
12426 | if (!args) SWIG_fail; | |
12427 | swig_obj[0] = args; | |
12428 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12429 | if (!SWIG_IsOK(res1)) { | |
12430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12431 | } | |
12432 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12433 | { | |
12434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12435 | (arg1)->DiscardEdits(); | |
12436 | wxPyEndAllowThreads(__tstate); | |
12437 | if (PyErr_Occurred()) SWIG_fail; | |
12438 | } | |
12439 | resultobj = SWIG_Py_Void(); | |
12440 | return resultobj; | |
12441 | fail: | |
12442 | return NULL; | |
12443 | } | |
12444 | ||
12445 | ||
12446 | SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12447 | PyObject *resultobj = 0; | |
12448 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12449 | unsigned long arg2 ; | |
12450 | void *argp1 = 0 ; | |
12451 | int res1 = 0 ; | |
12452 | unsigned long val2 ; | |
12453 | int ecode2 = 0 ; | |
12454 | PyObject * obj0 = 0 ; | |
12455 | PyObject * obj1 = 0 ; | |
12456 | char * kwnames[] = { | |
12457 | (char *) "self",(char *) "len", NULL | |
12458 | }; | |
12459 | ||
12460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
12461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12462 | if (!SWIG_IsOK(res1)) { | |
12463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12464 | } | |
12465 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12466 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
12467 | if (!SWIG_IsOK(ecode2)) { | |
12468 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'"); | |
12469 | } | |
12470 | arg2 = static_cast< unsigned long >(val2); | |
12471 | { | |
12472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12473 | (arg1)->SetMaxLength(arg2); | |
12474 | wxPyEndAllowThreads(__tstate); | |
12475 | if (PyErr_Occurred()) SWIG_fail; | |
12476 | } | |
12477 | resultobj = SWIG_Py_Void(); | |
12478 | return resultobj; | |
12479 | fail: | |
12480 | return NULL; | |
12481 | } | |
12482 | ||
12483 | ||
12484 | SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12485 | PyObject *resultobj = 0; | |
12486 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12487 | wxString *arg2 = 0 ; | |
12488 | void *argp1 = 0 ; | |
12489 | int res1 = 0 ; | |
12490 | bool temp2 = false ; | |
12491 | PyObject * obj0 = 0 ; | |
12492 | PyObject * obj1 = 0 ; | |
12493 | char * kwnames[] = { | |
12494 | (char *) "self",(char *) "text", NULL | |
12495 | }; | |
12496 | ||
12497 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12498 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12499 | if (!SWIG_IsOK(res1)) { | |
12500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12501 | } | |
12502 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12503 | { | |
12504 | arg2 = wxString_in_helper(obj1); | |
12505 | if (arg2 == NULL) SWIG_fail; | |
12506 | temp2 = true; | |
12507 | } | |
12508 | { | |
12509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12510 | (arg1)->WriteText((wxString const &)*arg2); | |
12511 | wxPyEndAllowThreads(__tstate); | |
12512 | if (PyErr_Occurred()) SWIG_fail; | |
12513 | } | |
12514 | resultobj = SWIG_Py_Void(); | |
12515 | { | |
12516 | if (temp2) | |
12517 | delete arg2; | |
12518 | } | |
12519 | return resultobj; | |
12520 | fail: | |
12521 | { | |
12522 | if (temp2) | |
12523 | delete arg2; | |
12524 | } | |
12525 | return NULL; | |
d55e5bfc RD |
12526 | } |
12527 | ||
12528 | ||
1bd55598 RD |
12529 | SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12530 | PyObject *resultobj = 0; | |
12531 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12532 | wxString *arg2 = 0 ; | |
12533 | void *argp1 = 0 ; | |
12534 | int res1 = 0 ; | |
12535 | bool temp2 = false ; | |
12536 | PyObject * obj0 = 0 ; | |
12537 | PyObject * obj1 = 0 ; | |
12538 | char * kwnames[] = { | |
12539 | (char *) "self",(char *) "text", NULL | |
12540 | }; | |
12541 | ||
12542 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12543 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12544 | if (!SWIG_IsOK(res1)) { | |
12545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12546 | } | |
12547 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12548 | { | |
12549 | arg2 = wxString_in_helper(obj1); | |
12550 | if (arg2 == NULL) SWIG_fail; | |
12551 | temp2 = true; | |
12552 | } | |
12553 | { | |
12554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12555 | (arg1)->AppendText((wxString const &)*arg2); | |
12556 | wxPyEndAllowThreads(__tstate); | |
12557 | if (PyErr_Occurred()) SWIG_fail; | |
12558 | } | |
12559 | resultobj = SWIG_Py_Void(); | |
12560 | { | |
12561 | if (temp2) | |
12562 | delete arg2; | |
12563 | } | |
12564 | return resultobj; | |
12565 | fail: | |
12566 | { | |
12567 | if (temp2) | |
12568 | delete arg2; | |
12569 | } | |
12570 | return NULL; | |
12571 | } | |
12572 | ||
12573 | ||
12574 | SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12575 | PyObject *resultobj = 0; | |
12576 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12577 | wxKeyEvent *arg2 = 0 ; | |
12578 | bool result; | |
12579 | void *argp1 = 0 ; | |
12580 | int res1 = 0 ; | |
12581 | void *argp2 = 0 ; | |
12582 | int res2 = 0 ; | |
12583 | PyObject * obj0 = 0 ; | |
12584 | PyObject * obj1 = 0 ; | |
12585 | char * kwnames[] = { | |
12586 | (char *) "self",(char *) "event", NULL | |
12587 | }; | |
12588 | ||
12589 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail; | |
12590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12591 | if (!SWIG_IsOK(res1)) { | |
12592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12593 | } | |
12594 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12595 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0); | |
12596 | if (!SWIG_IsOK(res2)) { | |
12597 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
12598 | } | |
12599 | if (!argp2) { | |
12600 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
12601 | } | |
12602 | arg2 = reinterpret_cast< wxKeyEvent * >(argp2); | |
12603 | { | |
12604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12605 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
12606 | wxPyEndAllowThreads(__tstate); | |
12607 | if (PyErr_Occurred()) SWIG_fail; | |
12608 | } | |
12609 | { | |
12610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12611 | } | |
12612 | return resultobj; | |
12613 | fail: | |
12614 | return NULL; | |
12615 | } | |
12616 | ||
12617 | ||
12618 | SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12619 | PyObject *resultobj = 0; | |
12620 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12621 | long arg2 ; | |
12622 | long arg3 ; | |
12623 | wxTextAttr *arg4 = 0 ; | |
12624 | bool result; | |
12625 | void *argp1 = 0 ; | |
12626 | int res1 = 0 ; | |
12627 | long val2 ; | |
12628 | int ecode2 = 0 ; | |
12629 | long val3 ; | |
12630 | int ecode3 = 0 ; | |
12631 | void *argp4 = 0 ; | |
12632 | int res4 = 0 ; | |
12633 | PyObject * obj0 = 0 ; | |
12634 | PyObject * obj1 = 0 ; | |
12635 | PyObject * obj2 = 0 ; | |
12636 | PyObject * obj3 = 0 ; | |
12637 | char * kwnames[] = { | |
12638 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
12639 | }; | |
12640 | ||
12641 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12642 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12643 | if (!SWIG_IsOK(res1)) { | |
12644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12645 | } | |
12646 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12647 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12648 | if (!SWIG_IsOK(ecode2)) { | |
12649 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'"); | |
12650 | } | |
12651 | arg2 = static_cast< long >(val2); | |
12652 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12653 | if (!SWIG_IsOK(ecode3)) { | |
12654 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'"); | |
12655 | } | |
12656 | arg3 = static_cast< long >(val3); | |
12657 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
12658 | if (!SWIG_IsOK(res4)) { | |
12659 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'"); | |
12660 | } | |
12661 | if (!argp4) { | |
12662 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'"); | |
12663 | } | |
12664 | arg4 = reinterpret_cast< wxTextAttr * >(argp4); | |
12665 | { | |
12666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12667 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
12668 | wxPyEndAllowThreads(__tstate); | |
12669 | if (PyErr_Occurred()) SWIG_fail; | |
12670 | } | |
12671 | { | |
12672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12673 | } | |
12674 | return resultobj; | |
12675 | fail: | |
12676 | return NULL; | |
12677 | } | |
12678 | ||
12679 | ||
12680 | SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12681 | PyObject *resultobj = 0; | |
12682 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12683 | long arg2 ; | |
12684 | wxTextAttr *arg3 = 0 ; | |
12685 | bool result; | |
12686 | void *argp1 = 0 ; | |
12687 | int res1 = 0 ; | |
12688 | long val2 ; | |
12689 | int ecode2 = 0 ; | |
12690 | void *argp3 = 0 ; | |
12691 | int res3 = 0 ; | |
12692 | PyObject * obj0 = 0 ; | |
12693 | PyObject * obj1 = 0 ; | |
12694 | PyObject * obj2 = 0 ; | |
12695 | char * kwnames[] = { | |
12696 | (char *) "self",(char *) "position",(char *) "style", NULL | |
12697 | }; | |
12698 | ||
12699 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12700 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12701 | if (!SWIG_IsOK(res1)) { | |
12702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12703 | } | |
12704 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12705 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12706 | if (!SWIG_IsOK(ecode2)) { | |
12707 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'"); | |
12708 | } | |
12709 | arg2 = static_cast< long >(val2); | |
12710 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 ); | |
12711 | if (!SWIG_IsOK(res3)) { | |
12712 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'"); | |
12713 | } | |
12714 | if (!argp3) { | |
12715 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'"); | |
12716 | } | |
12717 | arg3 = reinterpret_cast< wxTextAttr * >(argp3); | |
12718 | { | |
12719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12720 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
12721 | wxPyEndAllowThreads(__tstate); | |
12722 | if (PyErr_Occurred()) SWIG_fail; | |
12723 | } | |
12724 | { | |
12725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12726 | } | |
12727 | return resultobj; | |
12728 | fail: | |
12729 | return NULL; | |
12730 | } | |
12731 | ||
12732 | ||
12733 | SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12734 | PyObject *resultobj = 0; | |
12735 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12736 | wxTextAttr *arg2 = 0 ; | |
12737 | bool result; | |
12738 | void *argp1 = 0 ; | |
12739 | int res1 = 0 ; | |
12740 | void *argp2 = 0 ; | |
12741 | int res2 = 0 ; | |
12742 | PyObject * obj0 = 0 ; | |
12743 | PyObject * obj1 = 0 ; | |
12744 | char * kwnames[] = { | |
12745 | (char *) "self",(char *) "style", NULL | |
12746 | }; | |
12747 | ||
12748 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
12749 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12750 | if (!SWIG_IsOK(res1)) { | |
12751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12752 | } | |
12753 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12754 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
12755 | if (!SWIG_IsOK(res2)) { | |
12756 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
12757 | } | |
12758 | if (!argp2) { | |
12759 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
12760 | } | |
12761 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
12762 | { | |
12763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12764 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
12765 | wxPyEndAllowThreads(__tstate); | |
12766 | if (PyErr_Occurred()) SWIG_fail; | |
12767 | } | |
12768 | { | |
12769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12770 | } | |
12771 | return resultobj; | |
12772 | fail: | |
12773 | return NULL; | |
d55e5bfc RD |
12774 | } |
12775 | ||
12776 | ||
1bd55598 RD |
12777 | SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12778 | PyObject *resultobj = 0; | |
12779 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12780 | wxTextAttr *result = 0 ; | |
12781 | void *argp1 = 0 ; | |
12782 | int res1 = 0 ; | |
12783 | PyObject *swig_obj[1] ; | |
12784 | ||
12785 | if (!args) SWIG_fail; | |
12786 | swig_obj[0] = args; | |
12787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12788 | if (!SWIG_IsOK(res1)) { | |
12789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12790 | } | |
12791 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12792 | { | |
12793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 12794 | { |
1bd55598 RD |
12795 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); |
12796 | result = (wxTextAttr *) &_result_ref; | |
d55e5bfc | 12797 | } |
1bd55598 RD |
12798 | wxPyEndAllowThreads(__tstate); |
12799 | if (PyErr_Occurred()) SWIG_fail; | |
12800 | } | |
12801 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
12802 | return resultobj; | |
12803 | fail: | |
12804 | return NULL; | |
12805 | } | |
12806 | ||
12807 | ||
12808 | SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12809 | PyObject *resultobj = 0; | |
12810 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12811 | long arg2 ; | |
12812 | long arg3 ; | |
12813 | long result; | |
12814 | void *argp1 = 0 ; | |
12815 | int res1 = 0 ; | |
12816 | long val2 ; | |
12817 | int ecode2 = 0 ; | |
12818 | long val3 ; | |
12819 | int ecode3 = 0 ; | |
12820 | PyObject * obj0 = 0 ; | |
12821 | PyObject * obj1 = 0 ; | |
12822 | PyObject * obj2 = 0 ; | |
12823 | char * kwnames[] = { | |
12824 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12825 | }; | |
12826 | ||
12827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12829 | if (!SWIG_IsOK(res1)) { | |
12830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12831 | } | |
12832 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12833 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12834 | if (!SWIG_IsOK(ecode2)) { | |
12835 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'"); | |
12836 | } | |
12837 | arg2 = static_cast< long >(val2); | |
12838 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12839 | if (!SWIG_IsOK(ecode3)) { | |
12840 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'"); | |
12841 | } | |
12842 | arg3 = static_cast< long >(val3); | |
12843 | { | |
12844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12845 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
12846 | wxPyEndAllowThreads(__tstate); | |
12847 | if (PyErr_Occurred()) SWIG_fail; | |
12848 | } | |
12849 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
12850 | return resultobj; | |
12851 | fail: | |
12852 | return NULL; | |
12853 | } | |
12854 | ||
12855 | ||
12856 | SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12857 | PyObject *resultobj = 0; | |
12858 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12859 | long arg2 ; | |
12860 | long *arg3 = (long *) 0 ; | |
12861 | long *arg4 = (long *) 0 ; | |
12862 | void *argp1 = 0 ; | |
12863 | int res1 = 0 ; | |
12864 | long val2 ; | |
12865 | int ecode2 = 0 ; | |
12866 | long temp3 ; | |
12867 | int res3 = SWIG_TMPOBJ ; | |
12868 | long temp4 ; | |
12869 | int res4 = SWIG_TMPOBJ ; | |
12870 | PyObject * obj0 = 0 ; | |
12871 | PyObject * obj1 = 0 ; | |
12872 | char * kwnames[] = { | |
12873 | (char *) "self",(char *) "pos", NULL | |
12874 | }; | |
12875 | ||
12876 | arg3 = &temp3; | |
12877 | arg4 = &temp4; | |
12878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail; | |
12879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12880 | if (!SWIG_IsOK(res1)) { | |
12881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12882 | } | |
12883 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12884 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12885 | if (!SWIG_IsOK(ecode2)) { | |
12886 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'"); | |
12887 | } | |
12888 | arg2 = static_cast< long >(val2); | |
12889 | { | |
12890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12891 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
12892 | wxPyEndAllowThreads(__tstate); | |
12893 | if (PyErr_Occurred()) SWIG_fail; | |
12894 | } | |
12895 | resultobj = SWIG_Py_Void(); | |
12896 | if (SWIG_IsTmpObj(res3)) { | |
12897 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
12898 | } else { | |
12899 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12900 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
12901 | } | |
12902 | if (SWIG_IsTmpObj(res4)) { | |
12903 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
12904 | } else { | |
12905 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12906 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
12907 | } | |
12908 | return resultobj; | |
12909 | fail: | |
12910 | return NULL; | |
12911 | } | |
12912 | ||
12913 | ||
12914 | SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12915 | PyObject *resultobj = 0; | |
12916 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12917 | long arg2 ; | |
12918 | void *argp1 = 0 ; | |
12919 | int res1 = 0 ; | |
12920 | long val2 ; | |
12921 | int ecode2 = 0 ; | |
12922 | PyObject * obj0 = 0 ; | |
12923 | PyObject * obj1 = 0 ; | |
12924 | char * kwnames[] = { | |
12925 | (char *) "self",(char *) "pos", NULL | |
12926 | }; | |
12927 | ||
12928 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
12929 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12930 | if (!SWIG_IsOK(res1)) { | |
12931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12932 | } | |
12933 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12934 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12935 | if (!SWIG_IsOK(ecode2)) { | |
12936 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'"); | |
12937 | } | |
12938 | arg2 = static_cast< long >(val2); | |
12939 | { | |
12940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12941 | (arg1)->ShowPosition(arg2); | |
12942 | wxPyEndAllowThreads(__tstate); | |
12943 | if (PyErr_Occurred()) SWIG_fail; | |
12944 | } | |
12945 | resultobj = SWIG_Py_Void(); | |
12946 | return resultobj; | |
12947 | fail: | |
12948 | return NULL; | |
12949 | } | |
12950 | ||
12951 | ||
12952 | SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12953 | PyObject *resultobj = 0; | |
12954 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12955 | wxPoint *arg2 = 0 ; | |
12956 | long *arg3 = (long *) 0 ; | |
12957 | long *arg4 = (long *) 0 ; | |
12958 | wxTextCtrlHitTestResult result; | |
12959 | void *argp1 = 0 ; | |
12960 | int res1 = 0 ; | |
12961 | wxPoint temp2 ; | |
12962 | long temp3 ; | |
12963 | int res3 = SWIG_TMPOBJ ; | |
12964 | long temp4 ; | |
12965 | int res4 = SWIG_TMPOBJ ; | |
12966 | PyObject * obj0 = 0 ; | |
12967 | PyObject * obj1 = 0 ; | |
12968 | char * kwnames[] = { | |
12969 | (char *) "self",(char *) "pt", NULL | |
12970 | }; | |
12971 | ||
12972 | arg3 = &temp3; | |
12973 | arg4 = &temp4; | |
12974 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
12975 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12976 | if (!SWIG_IsOK(res1)) { | |
12977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12978 | } | |
12979 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12980 | { | |
12981 | arg2 = &temp2; | |
12982 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12983 | } | |
12984 | { | |
12985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12986 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
12987 | wxPyEndAllowThreads(__tstate); | |
12988 | if (PyErr_Occurred()) SWIG_fail; | |
12989 | } | |
12990 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12991 | if (SWIG_IsTmpObj(res3)) { | |
12992 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
12993 | } else { | |
12994 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12995 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
12996 | } | |
12997 | if (SWIG_IsTmpObj(res4)) { | |
12998 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
12999 | } else { | |
13000 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13001 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
13002 | } | |
13003 | return resultobj; | |
13004 | fail: | |
13005 | return NULL; | |
13006 | } | |
13007 | ||
13008 | ||
13009 | SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13010 | PyObject *resultobj = 0; | |
13011 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13012 | wxPoint *arg2 = 0 ; | |
13013 | long *arg3 = (long *) 0 ; | |
13014 | wxTextCtrlHitTestResult result; | |
13015 | void *argp1 = 0 ; | |
13016 | int res1 = 0 ; | |
13017 | wxPoint temp2 ; | |
13018 | long temp3 ; | |
13019 | int res3 = SWIG_TMPOBJ ; | |
13020 | PyObject * obj0 = 0 ; | |
13021 | PyObject * obj1 = 0 ; | |
13022 | char * kwnames[] = { | |
13023 | (char *) "self",(char *) "pt", NULL | |
13024 | }; | |
13025 | ||
13026 | arg3 = &temp3; | |
13027 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
13028 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13029 | if (!SWIG_IsOK(res1)) { | |
13030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13031 | } | |
13032 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13033 | { | |
13034 | arg2 = &temp2; | |
13035 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13036 | } | |
13037 | { | |
13038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13039 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
13040 | wxPyEndAllowThreads(__tstate); | |
13041 | if (PyErr_Occurred()) SWIG_fail; | |
13042 | } | |
13043 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13044 | if (SWIG_IsTmpObj(res3)) { | |
13045 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
13046 | } else { | |
13047 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13048 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
13049 | } | |
13050 | return resultobj; | |
13051 | fail: | |
13052 | return NULL; | |
d55e5bfc RD |
13053 | } |
13054 | ||
13055 | ||
1bd55598 RD |
13056 | SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13057 | PyObject *resultobj = 0; | |
13058 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13059 | void *argp1 = 0 ; | |
13060 | int res1 = 0 ; | |
13061 | PyObject *swig_obj[1] ; | |
13062 | ||
13063 | if (!args) SWIG_fail; | |
13064 | swig_obj[0] = args; | |
13065 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13066 | if (!SWIG_IsOK(res1)) { | |
13067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13068 | } | |
13069 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13070 | { | |
13071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13072 | (arg1)->Copy(); | |
13073 | wxPyEndAllowThreads(__tstate); | |
13074 | if (PyErr_Occurred()) SWIG_fail; | |
13075 | } | |
13076 | resultobj = SWIG_Py_Void(); | |
13077 | return resultobj; | |
13078 | fail: | |
13079 | return NULL; | |
d55e5bfc RD |
13080 | } |
13081 | ||
13082 | ||
1bd55598 RD |
13083 | SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13084 | PyObject *resultobj = 0; | |
13085 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13086 | void *argp1 = 0 ; | |
13087 | int res1 = 0 ; | |
13088 | PyObject *swig_obj[1] ; | |
13089 | ||
13090 | if (!args) SWIG_fail; | |
13091 | swig_obj[0] = args; | |
13092 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13093 | if (!SWIG_IsOK(res1)) { | |
13094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13095 | } | |
13096 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13097 | { | |
13098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13099 | (arg1)->Cut(); | |
13100 | wxPyEndAllowThreads(__tstate); | |
13101 | if (PyErr_Occurred()) SWIG_fail; | |
13102 | } | |
13103 | resultobj = SWIG_Py_Void(); | |
13104 | return resultobj; | |
13105 | fail: | |
13106 | return NULL; | |
d55e5bfc RD |
13107 | } |
13108 | ||
13109 | ||
1bd55598 RD |
13110 | SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13111 | PyObject *resultobj = 0; | |
13112 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13113 | void *argp1 = 0 ; | |
13114 | int res1 = 0 ; | |
13115 | PyObject *swig_obj[1] ; | |
13116 | ||
13117 | if (!args) SWIG_fail; | |
13118 | swig_obj[0] = args; | |
13119 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13120 | if (!SWIG_IsOK(res1)) { | |
13121 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13122 | } | |
13123 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13124 | { | |
13125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13126 | (arg1)->Paste(); | |
13127 | wxPyEndAllowThreads(__tstate); | |
13128 | if (PyErr_Occurred()) SWIG_fail; | |
13129 | } | |
13130 | resultobj = SWIG_Py_Void(); | |
13131 | return resultobj; | |
13132 | fail: | |
13133 | return NULL; | |
d55e5bfc RD |
13134 | } |
13135 | ||
13136 | ||
1bd55598 RD |
13137 | SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13138 | PyObject *resultobj = 0; | |
13139 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13140 | bool result; | |
13141 | void *argp1 = 0 ; | |
13142 | int res1 = 0 ; | |
13143 | PyObject *swig_obj[1] ; | |
13144 | ||
13145 | if (!args) SWIG_fail; | |
13146 | swig_obj[0] = args; | |
13147 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13148 | if (!SWIG_IsOK(res1)) { | |
13149 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13150 | } | |
13151 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13152 | { | |
13153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13154 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
13155 | wxPyEndAllowThreads(__tstate); | |
13156 | if (PyErr_Occurred()) SWIG_fail; | |
13157 | } | |
13158 | { | |
13159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13160 | } | |
13161 | return resultobj; | |
13162 | fail: | |
13163 | return NULL; | |
d55e5bfc RD |
13164 | } |
13165 | ||
13166 | ||
1bd55598 RD |
13167 | SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13168 | PyObject *resultobj = 0; | |
13169 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13170 | bool result; | |
13171 | void *argp1 = 0 ; | |
13172 | int res1 = 0 ; | |
13173 | PyObject *swig_obj[1] ; | |
13174 | ||
13175 | if (!args) SWIG_fail; | |
13176 | swig_obj[0] = args; | |
13177 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13178 | if (!SWIG_IsOK(res1)) { | |
13179 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13180 | } | |
13181 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13182 | { | |
13183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13184 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
13185 | wxPyEndAllowThreads(__tstate); | |
13186 | if (PyErr_Occurred()) SWIG_fail; | |
13187 | } | |
13188 | { | |
13189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13190 | } | |
13191 | return resultobj; | |
13192 | fail: | |
13193 | return NULL; | |
d55e5bfc RD |
13194 | } |
13195 | ||
13196 | ||
1bd55598 RD |
13197 | SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13198 | PyObject *resultobj = 0; | |
13199 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13200 | bool result; | |
13201 | void *argp1 = 0 ; | |
13202 | int res1 = 0 ; | |
13203 | PyObject *swig_obj[1] ; | |
13204 | ||
13205 | if (!args) SWIG_fail; | |
13206 | swig_obj[0] = args; | |
13207 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13208 | if (!SWIG_IsOK(res1)) { | |
13209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13210 | } | |
13211 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13212 | { | |
13213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13214 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
13215 | wxPyEndAllowThreads(__tstate); | |
13216 | if (PyErr_Occurred()) SWIG_fail; | |
13217 | } | |
13218 | { | |
13219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13220 | } | |
13221 | return resultobj; | |
13222 | fail: | |
13223 | return NULL; | |
d55e5bfc RD |
13224 | } |
13225 | ||
13226 | ||
1bd55598 RD |
13227 | SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13228 | PyObject *resultobj = 0; | |
13229 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13230 | void *argp1 = 0 ; | |
13231 | int res1 = 0 ; | |
13232 | PyObject *swig_obj[1] ; | |
13233 | ||
13234 | if (!args) SWIG_fail; | |
13235 | swig_obj[0] = args; | |
13236 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13237 | if (!SWIG_IsOK(res1)) { | |
13238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13239 | } | |
13240 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13241 | { | |
13242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13243 | (arg1)->Undo(); | |
13244 | wxPyEndAllowThreads(__tstate); | |
13245 | if (PyErr_Occurred()) SWIG_fail; | |
13246 | } | |
13247 | resultobj = SWIG_Py_Void(); | |
13248 | return resultobj; | |
13249 | fail: | |
13250 | return NULL; | |
d55e5bfc RD |
13251 | } |
13252 | ||
13253 | ||
1bd55598 RD |
13254 | SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13255 | PyObject *resultobj = 0; | |
13256 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13257 | void *argp1 = 0 ; | |
13258 | int res1 = 0 ; | |
13259 | PyObject *swig_obj[1] ; | |
13260 | ||
13261 | if (!args) SWIG_fail; | |
13262 | swig_obj[0] = args; | |
13263 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13264 | if (!SWIG_IsOK(res1)) { | |
13265 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13266 | } | |
13267 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13268 | { | |
13269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13270 | (arg1)->Redo(); | |
13271 | wxPyEndAllowThreads(__tstate); | |
13272 | if (PyErr_Occurred()) SWIG_fail; | |
13273 | } | |
13274 | resultobj = SWIG_Py_Void(); | |
13275 | return resultobj; | |
13276 | fail: | |
13277 | return NULL; | |
d55e5bfc RD |
13278 | } |
13279 | ||
13280 | ||
1bd55598 RD |
13281 | SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13282 | PyObject *resultobj = 0; | |
13283 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13284 | bool result; | |
13285 | void *argp1 = 0 ; | |
13286 | int res1 = 0 ; | |
13287 | PyObject *swig_obj[1] ; | |
13288 | ||
13289 | if (!args) SWIG_fail; | |
13290 | swig_obj[0] = args; | |
13291 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13292 | if (!SWIG_IsOK(res1)) { | |
13293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13294 | } | |
13295 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13296 | { | |
13297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13298 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
13299 | wxPyEndAllowThreads(__tstate); | |
13300 | if (PyErr_Occurred()) SWIG_fail; | |
13301 | } | |
13302 | { | |
13303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13304 | } | |
13305 | return resultobj; | |
13306 | fail: | |
13307 | return NULL; | |
d55e5bfc RD |
13308 | } |
13309 | ||
13310 | ||
1bd55598 RD |
13311 | SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13312 | PyObject *resultobj = 0; | |
13313 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13314 | bool result; | |
13315 | void *argp1 = 0 ; | |
13316 | int res1 = 0 ; | |
13317 | PyObject *swig_obj[1] ; | |
13318 | ||
13319 | if (!args) SWIG_fail; | |
13320 | swig_obj[0] = args; | |
13321 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13322 | if (!SWIG_IsOK(res1)) { | |
13323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13324 | } | |
13325 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13326 | { | |
13327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13328 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
13329 | wxPyEndAllowThreads(__tstate); | |
13330 | if (PyErr_Occurred()) SWIG_fail; | |
13331 | } | |
13332 | { | |
13333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13334 | } | |
13335 | return resultobj; | |
13336 | fail: | |
13337 | return NULL; | |
13338 | } | |
13339 | ||
13340 | ||
13341 | SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13342 | PyObject *resultobj = 0; | |
13343 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13344 | long arg2 ; | |
13345 | void *argp1 = 0 ; | |
13346 | int res1 = 0 ; | |
13347 | long val2 ; | |
13348 | int ecode2 = 0 ; | |
13349 | PyObject * obj0 = 0 ; | |
13350 | PyObject * obj1 = 0 ; | |
13351 | char * kwnames[] = { | |
13352 | (char *) "self",(char *) "pos", NULL | |
13353 | }; | |
13354 | ||
13355 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
13356 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13357 | if (!SWIG_IsOK(res1)) { | |
13358 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13359 | } | |
13360 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13361 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13362 | if (!SWIG_IsOK(ecode2)) { | |
13363 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
13364 | } | |
13365 | arg2 = static_cast< long >(val2); | |
13366 | { | |
13367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13368 | (arg1)->SetInsertionPoint(arg2); | |
13369 | wxPyEndAllowThreads(__tstate); | |
13370 | if (PyErr_Occurred()) SWIG_fail; | |
13371 | } | |
13372 | resultobj = SWIG_Py_Void(); | |
13373 | return resultobj; | |
13374 | fail: | |
13375 | return NULL; | |
d55e5bfc RD |
13376 | } |
13377 | ||
13378 | ||
1bd55598 RD |
13379 | SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13380 | PyObject *resultobj = 0; | |
13381 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13382 | void *argp1 = 0 ; | |
13383 | int res1 = 0 ; | |
13384 | PyObject *swig_obj[1] ; | |
13385 | ||
13386 | if (!args) SWIG_fail; | |
13387 | swig_obj[0] = args; | |
13388 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13389 | if (!SWIG_IsOK(res1)) { | |
13390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13391 | } | |
13392 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13393 | { | |
13394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13395 | (arg1)->SetInsertionPointEnd(); | |
13396 | wxPyEndAllowThreads(__tstate); | |
13397 | if (PyErr_Occurred()) SWIG_fail; | |
13398 | } | |
13399 | resultobj = SWIG_Py_Void(); | |
13400 | return resultobj; | |
13401 | fail: | |
13402 | return NULL; | |
d55e5bfc RD |
13403 | } |
13404 | ||
13405 | ||
1bd55598 RD |
13406 | SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13407 | PyObject *resultobj = 0; | |
13408 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13409 | long result; | |
13410 | void *argp1 = 0 ; | |
13411 | int res1 = 0 ; | |
13412 | PyObject *swig_obj[1] ; | |
13413 | ||
13414 | if (!args) SWIG_fail; | |
13415 | swig_obj[0] = args; | |
13416 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13417 | if (!SWIG_IsOK(res1)) { | |
13418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13419 | } | |
13420 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13421 | { | |
13422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13423 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
13424 | wxPyEndAllowThreads(__tstate); | |
13425 | if (PyErr_Occurred()) SWIG_fail; | |
13426 | } | |
13427 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13428 | return resultobj; | |
13429 | fail: | |
13430 | return NULL; | |
d55e5bfc RD |
13431 | } |
13432 | ||
13433 | ||
1bd55598 RD |
13434 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13435 | PyObject *resultobj = 0; | |
13436 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13437 | long result; | |
13438 | void *argp1 = 0 ; | |
13439 | int res1 = 0 ; | |
13440 | PyObject *swig_obj[1] ; | |
13441 | ||
13442 | if (!args) SWIG_fail; | |
13443 | swig_obj[0] = args; | |
13444 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13445 | if (!SWIG_IsOK(res1)) { | |
13446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13447 | } | |
13448 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13449 | { | |
13450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13451 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
13452 | wxPyEndAllowThreads(__tstate); | |
13453 | if (PyErr_Occurred()) SWIG_fail; | |
13454 | } | |
13455 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13456 | return resultobj; | |
13457 | fail: | |
13458 | return NULL; | |
13459 | } | |
13460 | ||
13461 | ||
13462 | SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13463 | PyObject *resultobj = 0; | |
13464 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13465 | long arg2 ; | |
13466 | long arg3 ; | |
13467 | void *argp1 = 0 ; | |
13468 | int res1 = 0 ; | |
13469 | long val2 ; | |
13470 | int ecode2 = 0 ; | |
13471 | long val3 ; | |
13472 | int ecode3 = 0 ; | |
13473 | PyObject * obj0 = 0 ; | |
13474 | PyObject * obj1 = 0 ; | |
13475 | PyObject * obj2 = 0 ; | |
13476 | char * kwnames[] = { | |
13477 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
13478 | }; | |
13479 | ||
13480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13482 | if (!SWIG_IsOK(res1)) { | |
13483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13484 | } | |
13485 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13486 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13487 | if (!SWIG_IsOK(ecode2)) { | |
13488 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
13489 | } | |
13490 | arg2 = static_cast< long >(val2); | |
13491 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13492 | if (!SWIG_IsOK(ecode3)) { | |
13493 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
13494 | } | |
13495 | arg3 = static_cast< long >(val3); | |
13496 | { | |
13497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13498 | (arg1)->SetSelection(arg2,arg3); | |
13499 | wxPyEndAllowThreads(__tstate); | |
13500 | if (PyErr_Occurred()) SWIG_fail; | |
13501 | } | |
13502 | resultobj = SWIG_Py_Void(); | |
13503 | return resultobj; | |
13504 | fail: | |
13505 | return NULL; | |
d55e5bfc RD |
13506 | } |
13507 | ||
13508 | ||
1bd55598 RD |
13509 | SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13510 | PyObject *resultobj = 0; | |
13511 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13512 | void *argp1 = 0 ; | |
13513 | int res1 = 0 ; | |
13514 | PyObject *swig_obj[1] ; | |
13515 | ||
13516 | if (!args) SWIG_fail; | |
13517 | swig_obj[0] = args; | |
13518 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13519 | if (!SWIG_IsOK(res1)) { | |
13520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13521 | } | |
13522 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13523 | { | |
13524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13525 | (arg1)->SelectAll(); | |
13526 | wxPyEndAllowThreads(__tstate); | |
13527 | if (PyErr_Occurred()) SWIG_fail; | |
13528 | } | |
13529 | resultobj = SWIG_Py_Void(); | |
13530 | return resultobj; | |
13531 | fail: | |
13532 | return NULL; | |
13533 | } | |
13534 | ||
13535 | ||
13536 | SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13537 | PyObject *resultobj = 0; | |
13538 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13539 | bool arg2 ; | |
13540 | void *argp1 = 0 ; | |
13541 | int res1 = 0 ; | |
13542 | bool val2 ; | |
13543 | int ecode2 = 0 ; | |
13544 | PyObject * obj0 = 0 ; | |
13545 | PyObject * obj1 = 0 ; | |
13546 | char * kwnames[] = { | |
13547 | (char *) "self",(char *) "editable", NULL | |
13548 | }; | |
13549 | ||
13550 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail; | |
13551 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13552 | if (!SWIG_IsOK(res1)) { | |
13553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13554 | } | |
13555 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13556 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
13557 | if (!SWIG_IsOK(ecode2)) { | |
13558 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'"); | |
13559 | } | |
13560 | arg2 = static_cast< bool >(val2); | |
13561 | { | |
13562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13563 | (arg1)->SetEditable(arg2); | |
13564 | wxPyEndAllowThreads(__tstate); | |
13565 | if (PyErr_Occurred()) SWIG_fail; | |
13566 | } | |
13567 | resultobj = SWIG_Py_Void(); | |
13568 | return resultobj; | |
13569 | fail: | |
13570 | return NULL; | |
13571 | } | |
13572 | ||
13573 | ||
13574 | SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13575 | PyObject *resultobj = 0; | |
13576 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13577 | wxString *arg2 = 0 ; | |
13578 | void *argp1 = 0 ; | |
13579 | int res1 = 0 ; | |
13580 | bool temp2 = false ; | |
13581 | PyObject * obj0 = 0 ; | |
13582 | PyObject * obj1 = 0 ; | |
13583 | char * kwnames[] = { | |
13584 | (char *) "self",(char *) "text", NULL | |
13585 | }; | |
13586 | ||
13587 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail; | |
13588 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13589 | if (!SWIG_IsOK(res1)) { | |
13590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13591 | } | |
13592 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13593 | { | |
13594 | arg2 = wxString_in_helper(obj1); | |
13595 | if (arg2 == NULL) SWIG_fail; | |
13596 | temp2 = true; | |
13597 | } | |
13598 | { | |
13599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13600 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
13601 | wxPyEndAllowThreads(__tstate); | |
13602 | if (PyErr_Occurred()) SWIG_fail; | |
13603 | } | |
13604 | resultobj = SWIG_Py_Void(); | |
13605 | { | |
13606 | if (temp2) | |
13607 | delete arg2; | |
13608 | } | |
13609 | return resultobj; | |
13610 | fail: | |
13611 | { | |
13612 | if (temp2) | |
13613 | delete arg2; | |
13614 | } | |
13615 | return NULL; | |
13616 | } | |
13617 | ||
13618 | ||
13619 | SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13620 | PyObject *resultobj = 0; | |
13621 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13622 | long arg2 ; | |
13623 | long arg3 ; | |
13624 | wxString result; | |
13625 | void *argp1 = 0 ; | |
13626 | int res1 = 0 ; | |
13627 | long val2 ; | |
13628 | int ecode2 = 0 ; | |
13629 | long val3 ; | |
13630 | int ecode3 = 0 ; | |
13631 | PyObject * obj0 = 0 ; | |
13632 | PyObject * obj1 = 0 ; | |
13633 | PyObject * obj2 = 0 ; | |
13634 | char * kwnames[] = { | |
13635 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
13636 | }; | |
13637 | ||
13638 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13639 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13640 | if (!SWIG_IsOK(res1)) { | |
13641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13642 | } | |
13643 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13644 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13645 | if (!SWIG_IsOK(ecode2)) { | |
13646 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'"); | |
13647 | } | |
13648 | arg2 = static_cast< long >(val2); | |
13649 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13650 | if (!SWIG_IsOK(ecode3)) { | |
13651 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'"); | |
13652 | } | |
13653 | arg3 = static_cast< long >(val3); | |
13654 | { | |
13655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13656 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
13657 | wxPyEndAllowThreads(__tstate); | |
13658 | if (PyErr_Occurred()) SWIG_fail; | |
13659 | } | |
13660 | { | |
13661 | #if wxUSE_UNICODE | |
13662 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13663 | #else | |
13664 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13665 | #endif | |
13666 | } | |
13667 | return resultobj; | |
13668 | fail: | |
13669 | return NULL; | |
d55e5bfc RD |
13670 | } |
13671 | ||
13672 | ||
1bd55598 RD |
13673 | SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13674 | PyObject *resultobj = 0; | |
13675 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
13676 | SwigValueWrapper<wxVisualAttributes > result; | |
13677 | int val1 ; | |
13678 | int ecode1 = 0 ; | |
13679 | PyObject * obj0 = 0 ; | |
13680 | char * kwnames[] = { | |
13681 | (char *) "variant", NULL | |
13682 | }; | |
13683 | ||
13684 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
13685 | if (obj0) { | |
13686 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13687 | if (!SWIG_IsOK(ecode1)) { | |
13688 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
13689 | } | |
13690 | arg1 = static_cast< wxWindowVariant >(val1); | |
13691 | } | |
13692 | { | |
13693 | if (!wxPyCheckForApp()) SWIG_fail; | |
13694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13695 | result = wxTextCtrl::GetClassDefaultAttributes(arg1); | |
13696 | wxPyEndAllowThreads(__tstate); | |
13697 | if (PyErr_Occurred()) SWIG_fail; | |
13698 | } | |
13699 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
13700 | return resultobj; | |
13701 | fail: | |
13702 | return NULL; | |
13703 | } | |
13704 | ||
13705 | ||
13706 | SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13707 | PyObject *obj; | |
13708 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13709 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj)); | |
13710 | return SWIG_Py_Void(); | |
13711 | } | |
13712 | ||
13713 | SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13714 | return SWIG_Python_InitShadowInstance(args); | |
13715 | } | |
13716 | ||
13717 | SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13718 | PyObject *resultobj = 0; | |
13719 | int arg1 ; | |
13720 | wxMouseEvent *arg2 = 0 ; | |
13721 | long arg3 ; | |
13722 | long arg4 ; | |
13723 | wxTextUrlEvent *result = 0 ; | |
13724 | int val1 ; | |
13725 | int ecode1 = 0 ; | |
13726 | void *argp2 = 0 ; | |
13727 | int res2 = 0 ; | |
13728 | long val3 ; | |
13729 | int ecode3 = 0 ; | |
13730 | long val4 ; | |
13731 | int ecode4 = 0 ; | |
13732 | PyObject * obj0 = 0 ; | |
13733 | PyObject * obj1 = 0 ; | |
13734 | PyObject * obj2 = 0 ; | |
13735 | PyObject * obj3 = 0 ; | |
13736 | char * kwnames[] = { | |
13737 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
13738 | }; | |
13739 | ||
13740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13741 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13742 | if (!SWIG_IsOK(ecode1)) { | |
13743 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'"); | |
13744 | } | |
13745 | arg1 = static_cast< int >(val1); | |
13746 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0); | |
13747 | if (!SWIG_IsOK(res2)) { | |
13748 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'"); | |
13749 | } | |
13750 | if (!argp2) { | |
13751 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'"); | |
13752 | } | |
13753 | arg2 = reinterpret_cast< wxMouseEvent * >(argp2); | |
13754 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13755 | if (!SWIG_IsOK(ecode3)) { | |
13756 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'"); | |
13757 | } | |
13758 | arg3 = static_cast< long >(val3); | |
13759 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
13760 | if (!SWIG_IsOK(ecode4)) { | |
13761 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'"); | |
13762 | } | |
13763 | arg4 = static_cast< long >(val4); | |
13764 | { | |
13765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13766 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
13767 | wxPyEndAllowThreads(__tstate); | |
13768 | if (PyErr_Occurred()) SWIG_fail; | |
13769 | } | |
13770 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 ); | |
13771 | return resultobj; | |
13772 | fail: | |
13773 | return NULL; | |
d55e5bfc RD |
13774 | } |
13775 | ||
13776 | ||
1bd55598 RD |
13777 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13778 | PyObject *resultobj = 0; | |
13779 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
13780 | wxMouseEvent *result = 0 ; | |
13781 | void *argp1 = 0 ; | |
13782 | int res1 = 0 ; | |
13783 | PyObject *swig_obj[1] ; | |
13784 | ||
13785 | if (!args) SWIG_fail; | |
13786 | swig_obj[0] = args; | |
13787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
13788 | if (!SWIG_IsOK(res1)) { | |
13789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'"); | |
13790 | } | |
13791 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
13792 | { | |
13793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 13794 | { |
1bd55598 RD |
13795 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); |
13796 | result = (wxMouseEvent *) &_result_ref; | |
d55e5bfc | 13797 | } |
1bd55598 RD |
13798 | wxPyEndAllowThreads(__tstate); |
13799 | if (PyErr_Occurred()) SWIG_fail; | |
13800 | } | |
13801 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 ); | |
13802 | return resultobj; | |
13803 | fail: | |
13804 | return NULL; | |
d55e5bfc RD |
13805 | } |
13806 | ||
13807 | ||
1bd55598 RD |
13808 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13809 | PyObject *resultobj = 0; | |
13810 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
13811 | long result; | |
13812 | void *argp1 = 0 ; | |
13813 | int res1 = 0 ; | |
13814 | PyObject *swig_obj[1] ; | |
13815 | ||
13816 | if (!args) SWIG_fail; | |
13817 | swig_obj[0] = args; | |
13818 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
13819 | if (!SWIG_IsOK(res1)) { | |
13820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'"); | |
13821 | } | |
13822 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
13823 | { | |
13824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13825 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
13826 | wxPyEndAllowThreads(__tstate); | |
13827 | if (PyErr_Occurred()) SWIG_fail; | |
13828 | } | |
13829 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13830 | return resultobj; | |
13831 | fail: | |
13832 | return NULL; | |
d55e5bfc RD |
13833 | } |
13834 | ||
13835 | ||
1bd55598 RD |
13836 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13837 | PyObject *resultobj = 0; | |
13838 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
13839 | long result; | |
13840 | void *argp1 = 0 ; | |
13841 | int res1 = 0 ; | |
13842 | PyObject *swig_obj[1] ; | |
13843 | ||
13844 | if (!args) SWIG_fail; | |
13845 | swig_obj[0] = args; | |
13846 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
13847 | if (!SWIG_IsOK(res1)) { | |
13848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'"); | |
13849 | } | |
13850 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
13851 | { | |
13852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13853 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
13854 | wxPyEndAllowThreads(__tstate); | |
13855 | if (PyErr_Occurred()) SWIG_fail; | |
13856 | } | |
13857 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13858 | return resultobj; | |
13859 | fail: | |
13860 | return NULL; | |
d55e5bfc RD |
13861 | } |
13862 | ||
13863 | ||
1bd55598 RD |
13864 | SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13865 | PyObject *obj; | |
13866 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13867 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj)); | |
13868 | return SWIG_Py_Void(); | |
68e533f8 RD |
13869 | } |
13870 | ||
1bd55598 RD |
13871 | SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13872 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
13873 | } |
13874 | ||
1bd55598 RD |
13875 | SWIGINTERN int ScrollBarNameStr_set(PyObject *) { |
13876 | SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only."); | |
13877 | return 1; | |
d55e5bfc RD |
13878 | } |
13879 | ||
13880 | ||
1bd55598 RD |
13881 | SWIGINTERN PyObject *ScrollBarNameStr_get(void) { |
13882 | PyObject *pyobj = 0; | |
13883 | ||
13884 | { | |
13885 | #if wxUSE_UNICODE | |
13886 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
13887 | #else | |
13888 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
13889 | #endif | |
13890 | } | |
13891 | return pyobj; | |
13892 | } | |
13893 | ||
13894 | ||
13895 | SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13896 | PyObject *resultobj = 0; | |
13897 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13898 | int arg2 = (int) -1 ; | |
13899 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
13900 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13901 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13902 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13903 | long arg5 = (long) wxSB_HORIZONTAL ; | |
13904 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
13905 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
13906 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
13907 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13908 | wxScrollBar *result = 0 ; | |
13909 | void *argp1 = 0 ; | |
13910 | int res1 = 0 ; | |
13911 | int val2 ; | |
13912 | int ecode2 = 0 ; | |
13913 | wxPoint temp3 ; | |
13914 | wxSize temp4 ; | |
13915 | long val5 ; | |
13916 | int ecode5 = 0 ; | |
13917 | void *argp6 = 0 ; | |
13918 | int res6 = 0 ; | |
13919 | bool temp7 = false ; | |
13920 | PyObject * obj0 = 0 ; | |
13921 | PyObject * obj1 = 0 ; | |
13922 | PyObject * obj2 = 0 ; | |
13923 | PyObject * obj3 = 0 ; | |
13924 | PyObject * obj4 = 0 ; | |
13925 | PyObject * obj5 = 0 ; | |
13926 | PyObject * obj6 = 0 ; | |
13927 | char * kwnames[] = { | |
13928 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13929 | }; | |
13930 | ||
13931 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13933 | if (!SWIG_IsOK(res1)) { | |
13934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13935 | } | |
13936 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13937 | if (obj1) { | |
13938 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13939 | if (!SWIG_IsOK(ecode2)) { | |
13940 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'"); | |
13941 | } | |
13942 | arg2 = static_cast< int >(val2); | |
13943 | } | |
13944 | if (obj2) { | |
d55e5bfc | 13945 | { |
1bd55598 RD |
13946 | arg3 = &temp3; |
13947 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 13948 | } |
1bd55598 RD |
13949 | } |
13950 | if (obj3) { | |
36ed4f51 | 13951 | { |
1bd55598 RD |
13952 | arg4 = &temp4; |
13953 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 13954 | } |
1bd55598 RD |
13955 | } |
13956 | if (obj4) { | |
13957 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
13958 | if (!SWIG_IsOK(ecode5)) { | |
13959 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'"); | |
13960 | } | |
13961 | arg5 = static_cast< long >(val5); | |
13962 | } | |
13963 | if (obj5) { | |
13964 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
13965 | if (!SWIG_IsOK(res6)) { | |
13966 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 13967 | } |
1bd55598 RD |
13968 | if (!argp6) { |
13969 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 13970 | } |
1bd55598 RD |
13971 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
13972 | } | |
13973 | if (obj6) { | |
d55e5bfc | 13974 | { |
1bd55598 RD |
13975 | arg7 = wxString_in_helper(obj6); |
13976 | if (arg7 == NULL) SWIG_fail; | |
13977 | temp7 = true; | |
d55e5bfc | 13978 | } |
1bd55598 RD |
13979 | } |
13980 | { | |
13981 | if (!wxPyCheckForApp()) SWIG_fail; | |
13982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13983 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
13984 | wxPyEndAllowThreads(__tstate); | |
13985 | if (PyErr_Occurred()) SWIG_fail; | |
13986 | } | |
13987 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 ); | |
13988 | { | |
13989 | if (temp7) | |
13990 | delete arg7; | |
13991 | } | |
13992 | return resultobj; | |
13993 | fail: | |
13994 | { | |
13995 | if (temp7) | |
13996 | delete arg7; | |
13997 | } | |
13998 | return NULL; | |
d55e5bfc RD |
13999 | } |
14000 | ||
14001 | ||
1bd55598 RD |
14002 | SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14003 | PyObject *resultobj = 0; | |
14004 | wxScrollBar *result = 0 ; | |
14005 | ||
14006 | if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail; | |
14007 | { | |
14008 | if (!wxPyCheckForApp()) SWIG_fail; | |
14009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14010 | result = (wxScrollBar *)new wxScrollBar(); | |
14011 | wxPyEndAllowThreads(__tstate); | |
14012 | if (PyErr_Occurred()) SWIG_fail; | |
14013 | } | |
14014 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 ); | |
14015 | return resultobj; | |
14016 | fail: | |
14017 | return NULL; | |
14018 | } | |
14019 | ||
14020 | ||
14021 | SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14022 | PyObject *resultobj = 0; | |
14023 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14024 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14025 | int arg3 = (int) -1 ; | |
14026 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14027 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14028 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14029 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14030 | long arg6 = (long) wxSB_HORIZONTAL ; | |
14031 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
14032 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
14033 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
14034 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14035 | bool result; | |
14036 | void *argp1 = 0 ; | |
14037 | int res1 = 0 ; | |
14038 | void *argp2 = 0 ; | |
14039 | int res2 = 0 ; | |
14040 | int val3 ; | |
14041 | int ecode3 = 0 ; | |
14042 | wxPoint temp4 ; | |
14043 | wxSize temp5 ; | |
14044 | long val6 ; | |
14045 | int ecode6 = 0 ; | |
14046 | void *argp7 = 0 ; | |
14047 | int res7 = 0 ; | |
14048 | bool temp8 = false ; | |
14049 | PyObject * obj0 = 0 ; | |
14050 | PyObject * obj1 = 0 ; | |
14051 | PyObject * obj2 = 0 ; | |
14052 | PyObject * obj3 = 0 ; | |
14053 | PyObject * obj4 = 0 ; | |
14054 | PyObject * obj5 = 0 ; | |
14055 | PyObject * obj6 = 0 ; | |
14056 | PyObject * obj7 = 0 ; | |
14057 | char * kwnames[] = { | |
14058 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14059 | }; | |
14060 | ||
14061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
14062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14063 | if (!SWIG_IsOK(res1)) { | |
14064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'"); | |
14065 | } | |
14066 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14067 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14068 | if (!SWIG_IsOK(res2)) { | |
14069 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14070 | } | |
14071 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14072 | if (obj2) { | |
14073 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14074 | if (!SWIG_IsOK(ecode3)) { | |
14075 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
14076 | } | |
14077 | arg3 = static_cast< int >(val3); | |
14078 | } | |
14079 | if (obj3) { | |
d55e5bfc | 14080 | { |
1bd55598 RD |
14081 | arg4 = &temp4; |
14082 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14083 | } |
1bd55598 RD |
14084 | } |
14085 | if (obj4) { | |
d55e5bfc | 14086 | { |
1bd55598 RD |
14087 | arg5 = &temp5; |
14088 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 14089 | } |
1bd55598 RD |
14090 | } |
14091 | if (obj5) { | |
14092 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14093 | if (!SWIG_IsOK(ecode6)) { | |
14094 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'"); | |
14095 | } | |
14096 | arg6 = static_cast< long >(val6); | |
14097 | } | |
14098 | if (obj6) { | |
14099 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
14100 | if (!SWIG_IsOK(res7)) { | |
14101 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 14102 | } |
1bd55598 RD |
14103 | if (!argp7) { |
14104 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 14105 | } |
1bd55598 RD |
14106 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
14107 | } | |
14108 | if (obj7) { | |
d55e5bfc | 14109 | { |
1bd55598 RD |
14110 | arg8 = wxString_in_helper(obj7); |
14111 | if (arg8 == NULL) SWIG_fail; | |
14112 | temp8 = true; | |
d55e5bfc | 14113 | } |
1bd55598 RD |
14114 | } |
14115 | { | |
14116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14117 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
14118 | wxPyEndAllowThreads(__tstate); | |
14119 | if (PyErr_Occurred()) SWIG_fail; | |
14120 | } | |
14121 | { | |
14122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14123 | } | |
14124 | { | |
14125 | if (temp8) | |
14126 | delete arg8; | |
14127 | } | |
14128 | return resultobj; | |
14129 | fail: | |
14130 | { | |
14131 | if (temp8) | |
14132 | delete arg8; | |
14133 | } | |
14134 | return NULL; | |
d55e5bfc RD |
14135 | } |
14136 | ||
14137 | ||
1bd55598 RD |
14138 | SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14139 | PyObject *resultobj = 0; | |
14140 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14141 | int result; | |
14142 | void *argp1 = 0 ; | |
14143 | int res1 = 0 ; | |
14144 | PyObject *swig_obj[1] ; | |
14145 | ||
14146 | if (!args) SWIG_fail; | |
14147 | swig_obj[0] = args; | |
14148 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14149 | if (!SWIG_IsOK(res1)) { | |
14150 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14151 | } | |
14152 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14153 | { | |
14154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14155 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
14156 | wxPyEndAllowThreads(__tstate); | |
14157 | if (PyErr_Occurred()) SWIG_fail; | |
14158 | } | |
14159 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14160 | return resultobj; | |
14161 | fail: | |
14162 | return NULL; | |
d55e5bfc RD |
14163 | } |
14164 | ||
14165 | ||
1bd55598 RD |
14166 | SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14167 | PyObject *resultobj = 0; | |
14168 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14169 | int result; | |
14170 | void *argp1 = 0 ; | |
14171 | int res1 = 0 ; | |
14172 | PyObject *swig_obj[1] ; | |
14173 | ||
14174 | if (!args) SWIG_fail; | |
14175 | swig_obj[0] = args; | |
14176 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14177 | if (!SWIG_IsOK(res1)) { | |
14178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14179 | } | |
14180 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14181 | { | |
14182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14183 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
14184 | wxPyEndAllowThreads(__tstate); | |
14185 | if (PyErr_Occurred()) SWIG_fail; | |
14186 | } | |
14187 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14188 | return resultobj; | |
14189 | fail: | |
14190 | return NULL; | |
d55e5bfc RD |
14191 | } |
14192 | ||
14193 | ||
1bd55598 RD |
14194 | SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14195 | PyObject *resultobj = 0; | |
14196 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14197 | int result; | |
14198 | void *argp1 = 0 ; | |
14199 | int res1 = 0 ; | |
14200 | PyObject *swig_obj[1] ; | |
14201 | ||
14202 | if (!args) SWIG_fail; | |
14203 | swig_obj[0] = args; | |
14204 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14205 | if (!SWIG_IsOK(res1)) { | |
14206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14207 | } | |
14208 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14209 | { | |
14210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14211 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
14212 | wxPyEndAllowThreads(__tstate); | |
14213 | if (PyErr_Occurred()) SWIG_fail; | |
14214 | } | |
14215 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14216 | return resultobj; | |
14217 | fail: | |
14218 | return NULL; | |
d55e5bfc RD |
14219 | } |
14220 | ||
14221 | ||
1bd55598 RD |
14222 | SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14223 | PyObject *resultobj = 0; | |
14224 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14225 | int result; | |
14226 | void *argp1 = 0 ; | |
14227 | int res1 = 0 ; | |
14228 | PyObject *swig_obj[1] ; | |
14229 | ||
14230 | if (!args) SWIG_fail; | |
14231 | swig_obj[0] = args; | |
14232 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14233 | if (!SWIG_IsOK(res1)) { | |
14234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14235 | } | |
14236 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14237 | { | |
14238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14239 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
14240 | wxPyEndAllowThreads(__tstate); | |
14241 | if (PyErr_Occurred()) SWIG_fail; | |
14242 | } | |
14243 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14244 | return resultobj; | |
14245 | fail: | |
14246 | return NULL; | |
d55e5bfc RD |
14247 | } |
14248 | ||
14249 | ||
1bd55598 RD |
14250 | SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14251 | PyObject *resultobj = 0; | |
14252 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14253 | bool result; | |
14254 | void *argp1 = 0 ; | |
14255 | int res1 = 0 ; | |
14256 | PyObject *swig_obj[1] ; | |
14257 | ||
14258 | if (!args) SWIG_fail; | |
14259 | swig_obj[0] = args; | |
14260 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14261 | if (!SWIG_IsOK(res1)) { | |
14262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14263 | } | |
14264 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14265 | { | |
14266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14267 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
14268 | wxPyEndAllowThreads(__tstate); | |
14269 | if (PyErr_Occurred()) SWIG_fail; | |
14270 | } | |
14271 | { | |
14272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14273 | } | |
14274 | return resultobj; | |
14275 | fail: | |
14276 | return NULL; | |
14277 | } | |
14278 | ||
14279 | ||
14280 | SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14281 | PyObject *resultobj = 0; | |
14282 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14283 | int arg2 ; | |
14284 | void *argp1 = 0 ; | |
14285 | int res1 = 0 ; | |
14286 | int val2 ; | |
14287 | int ecode2 = 0 ; | |
14288 | PyObject * obj0 = 0 ; | |
14289 | PyObject * obj1 = 0 ; | |
14290 | char * kwnames[] = { | |
14291 | (char *) "self",(char *) "viewStart", NULL | |
14292 | }; | |
14293 | ||
14294 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
14295 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14296 | if (!SWIG_IsOK(res1)) { | |
14297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'"); | |
14298 | } | |
14299 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14300 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14301 | if (!SWIG_IsOK(ecode2)) { | |
14302 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'"); | |
14303 | } | |
14304 | arg2 = static_cast< int >(val2); | |
14305 | { | |
14306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14307 | (arg1)->SetThumbPosition(arg2); | |
14308 | wxPyEndAllowThreads(__tstate); | |
14309 | if (PyErr_Occurred()) SWIG_fail; | |
14310 | } | |
14311 | resultobj = SWIG_Py_Void(); | |
14312 | return resultobj; | |
14313 | fail: | |
14314 | return NULL; | |
14315 | } | |
14316 | ||
14317 | ||
14318 | SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14319 | PyObject *resultobj = 0; | |
14320 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
14321 | SwigValueWrapper<wxVisualAttributes > result; | |
14322 | int val1 ; | |
14323 | int ecode1 = 0 ; | |
14324 | PyObject * obj0 = 0 ; | |
14325 | char * kwnames[] = { | |
14326 | (char *) "variant", NULL | |
14327 | }; | |
14328 | ||
14329 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
14330 | if (obj0) { | |
14331 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14332 | if (!SWIG_IsOK(ecode1)) { | |
14333 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
14334 | } | |
14335 | arg1 = static_cast< wxWindowVariant >(val1); | |
14336 | } | |
14337 | { | |
14338 | if (!wxPyCheckForApp()) SWIG_fail; | |
14339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14340 | result = wxScrollBar::GetClassDefaultAttributes(arg1); | |
14341 | wxPyEndAllowThreads(__tstate); | |
14342 | if (PyErr_Occurred()) SWIG_fail; | |
14343 | } | |
14344 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
14345 | return resultobj; | |
14346 | fail: | |
14347 | return NULL; | |
d55e5bfc RD |
14348 | } |
14349 | ||
14350 | ||
1bd55598 RD |
14351 | SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14352 | PyObject *obj; | |
14353 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14354 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj)); | |
14355 | return SWIG_Py_Void(); | |
d55e5bfc RD |
14356 | } |
14357 | ||
1bd55598 RD |
14358 | SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14359 | return SWIG_Python_InitShadowInstance(args); | |
14360 | } | |
d55e5bfc | 14361 | |
1bd55598 RD |
14362 | SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) { |
14363 | SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
14364 | return 1; | |
14365 | } | |
14366 | ||
14367 | ||
14368 | SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) { | |
14369 | PyObject *pyobj = 0; | |
14370 | ||
14371 | { | |
d55e5bfc | 14372 | #if wxUSE_UNICODE |
1bd55598 | 14373 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); |
d55e5bfc | 14374 | #else |
1bd55598 | 14375 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); |
d55e5bfc | 14376 | #endif |
1bd55598 RD |
14377 | } |
14378 | return pyobj; | |
d55e5bfc RD |
14379 | } |
14380 | ||
14381 | ||
1bd55598 RD |
14382 | SWIGINTERN int SpinCtrlNameStr_set(PyObject *) { |
14383 | SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only."); | |
14384 | return 1; | |
d55e5bfc RD |
14385 | } |
14386 | ||
14387 | ||
1bd55598 RD |
14388 | SWIGINTERN PyObject *SpinCtrlNameStr_get(void) { |
14389 | PyObject *pyobj = 0; | |
14390 | ||
14391 | { | |
14392 | #if wxUSE_UNICODE | |
14393 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
14394 | #else | |
14395 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
14396 | #endif | |
14397 | } | |
14398 | return pyobj; | |
14399 | } | |
14400 | ||
14401 | ||
14402 | SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14403 | PyObject *resultobj = 0; | |
14404 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14405 | int arg2 = (int) -1 ; | |
14406 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14407 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14408 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14409 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14410 | long arg5 = (long) wxSP_HORIZONTAL ; | |
14411 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
14412 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14413 | wxSpinButton *result = 0 ; | |
14414 | void *argp1 = 0 ; | |
14415 | int res1 = 0 ; | |
14416 | int val2 ; | |
14417 | int ecode2 = 0 ; | |
14418 | wxPoint temp3 ; | |
14419 | wxSize temp4 ; | |
14420 | long val5 ; | |
14421 | int ecode5 = 0 ; | |
14422 | bool temp6 = false ; | |
14423 | PyObject * obj0 = 0 ; | |
14424 | PyObject * obj1 = 0 ; | |
14425 | PyObject * obj2 = 0 ; | |
14426 | PyObject * obj3 = 0 ; | |
14427 | PyObject * obj4 = 0 ; | |
14428 | PyObject * obj5 = 0 ; | |
14429 | char * kwnames[] = { | |
14430 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14431 | }; | |
14432 | ||
14433 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
14434 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14435 | if (!SWIG_IsOK(res1)) { | |
14436 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14437 | } | |
14438 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14439 | if (obj1) { | |
14440 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14441 | if (!SWIG_IsOK(ecode2)) { | |
14442 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'"); | |
14443 | } | |
14444 | arg2 = static_cast< int >(val2); | |
14445 | } | |
14446 | if (obj2) { | |
d55e5bfc | 14447 | { |
1bd55598 RD |
14448 | arg3 = &temp3; |
14449 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 14450 | } |
1bd55598 RD |
14451 | } |
14452 | if (obj3) { | |
d55e5bfc | 14453 | { |
1bd55598 RD |
14454 | arg4 = &temp4; |
14455 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14456 | } |
1bd55598 RD |
14457 | } |
14458 | if (obj4) { | |
14459 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14460 | if (!SWIG_IsOK(ecode5)) { | |
14461 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'"); | |
14462 | } | |
14463 | arg5 = static_cast< long >(val5); | |
14464 | } | |
14465 | if (obj5) { | |
d55e5bfc | 14466 | { |
1bd55598 RD |
14467 | arg6 = wxString_in_helper(obj5); |
14468 | if (arg6 == NULL) SWIG_fail; | |
14469 | temp6 = true; | |
d55e5bfc | 14470 | } |
1bd55598 RD |
14471 | } |
14472 | { | |
14473 | if (!wxPyCheckForApp()) SWIG_fail; | |
14474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14475 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14476 | wxPyEndAllowThreads(__tstate); | |
14477 | if (PyErr_Occurred()) SWIG_fail; | |
14478 | } | |
14479 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 ); | |
14480 | { | |
14481 | if (temp6) | |
14482 | delete arg6; | |
14483 | } | |
14484 | return resultobj; | |
14485 | fail: | |
14486 | { | |
14487 | if (temp6) | |
14488 | delete arg6; | |
14489 | } | |
14490 | return NULL; | |
d55e5bfc RD |
14491 | } |
14492 | ||
14493 | ||
1bd55598 RD |
14494 | SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14495 | PyObject *resultobj = 0; | |
14496 | wxSpinButton *result = 0 ; | |
14497 | ||
14498 | if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail; | |
14499 | { | |
14500 | if (!wxPyCheckForApp()) SWIG_fail; | |
14501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14502 | result = (wxSpinButton *)new wxSpinButton(); | |
14503 | wxPyEndAllowThreads(__tstate); | |
14504 | if (PyErr_Occurred()) SWIG_fail; | |
14505 | } | |
14506 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 ); | |
14507 | return resultobj; | |
14508 | fail: | |
14509 | return NULL; | |
14510 | } | |
14511 | ||
14512 | ||
14513 | SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14514 | PyObject *resultobj = 0; | |
14515 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14516 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14517 | int arg3 = (int) -1 ; | |
14518 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14519 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14520 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14521 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14522 | long arg6 = (long) wxSP_HORIZONTAL ; | |
14523 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
14524 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14525 | bool result; | |
14526 | void *argp1 = 0 ; | |
14527 | int res1 = 0 ; | |
14528 | void *argp2 = 0 ; | |
14529 | int res2 = 0 ; | |
14530 | int val3 ; | |
14531 | int ecode3 = 0 ; | |
14532 | wxPoint temp4 ; | |
14533 | wxSize temp5 ; | |
14534 | long val6 ; | |
14535 | int ecode6 = 0 ; | |
14536 | bool temp7 = false ; | |
14537 | PyObject * obj0 = 0 ; | |
14538 | PyObject * obj1 = 0 ; | |
14539 | PyObject * obj2 = 0 ; | |
14540 | PyObject * obj3 = 0 ; | |
14541 | PyObject * obj4 = 0 ; | |
14542 | PyObject * obj5 = 0 ; | |
14543 | PyObject * obj6 = 0 ; | |
14544 | char * kwnames[] = { | |
14545 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14546 | }; | |
14547 | ||
14548 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14549 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14550 | if (!SWIG_IsOK(res1)) { | |
14551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
14552 | } | |
14553 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14554 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14555 | if (!SWIG_IsOK(res2)) { | |
14556 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14557 | } | |
14558 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14559 | if (obj2) { | |
14560 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14561 | if (!SWIG_IsOK(ecode3)) { | |
14562 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
14563 | } | |
14564 | arg3 = static_cast< int >(val3); | |
14565 | } | |
14566 | if (obj3) { | |
d55e5bfc | 14567 | { |
1bd55598 RD |
14568 | arg4 = &temp4; |
14569 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14570 | } |
1bd55598 RD |
14571 | } |
14572 | if (obj4) { | |
d55e5bfc | 14573 | { |
1bd55598 RD |
14574 | arg5 = &temp5; |
14575 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 14576 | } |
1bd55598 RD |
14577 | } |
14578 | if (obj5) { | |
14579 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14580 | if (!SWIG_IsOK(ecode6)) { | |
14581 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'"); | |
14582 | } | |
14583 | arg6 = static_cast< long >(val6); | |
14584 | } | |
14585 | if (obj6) { | |
14586 | { | |
14587 | arg7 = wxString_in_helper(obj6); | |
14588 | if (arg7 == NULL) SWIG_fail; | |
14589 | temp7 = true; | |
14590 | } | |
14591 | } | |
14592 | { | |
14593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14594 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14595 | wxPyEndAllowThreads(__tstate); | |
14596 | if (PyErr_Occurred()) SWIG_fail; | |
14597 | } | |
14598 | { | |
14599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14600 | } | |
14601 | { | |
14602 | if (temp7) | |
14603 | delete arg7; | |
14604 | } | |
14605 | return resultobj; | |
14606 | fail: | |
14607 | { | |
14608 | if (temp7) | |
14609 | delete arg7; | |
14610 | } | |
14611 | return NULL; | |
d55e5bfc RD |
14612 | } |
14613 | ||
14614 | ||
1bd55598 RD |
14615 | SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14616 | PyObject *resultobj = 0; | |
14617 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14618 | int result; | |
14619 | void *argp1 = 0 ; | |
14620 | int res1 = 0 ; | |
14621 | PyObject *swig_obj[1] ; | |
14622 | ||
14623 | if (!args) SWIG_fail; | |
14624 | swig_obj[0] = args; | |
14625 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14626 | if (!SWIG_IsOK(res1)) { | |
14627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
14628 | } | |
14629 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14630 | { | |
14631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14632 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
14633 | wxPyEndAllowThreads(__tstate); | |
14634 | if (PyErr_Occurred()) SWIG_fail; | |
14635 | } | |
14636 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14637 | return resultobj; | |
14638 | fail: | |
14639 | return NULL; | |
d55e5bfc RD |
14640 | } |
14641 | ||
14642 | ||
1bd55598 RD |
14643 | SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14644 | PyObject *resultobj = 0; | |
14645 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14646 | int result; | |
14647 | void *argp1 = 0 ; | |
14648 | int res1 = 0 ; | |
14649 | PyObject *swig_obj[1] ; | |
14650 | ||
14651 | if (!args) SWIG_fail; | |
14652 | swig_obj[0] = args; | |
14653 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14654 | if (!SWIG_IsOK(res1)) { | |
14655 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
14656 | } | |
14657 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14658 | { | |
14659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14660 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
14661 | wxPyEndAllowThreads(__tstate); | |
14662 | if (PyErr_Occurred()) SWIG_fail; | |
14663 | } | |
14664 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14665 | return resultobj; | |
14666 | fail: | |
14667 | return NULL; | |
d55e5bfc RD |
14668 | } |
14669 | ||
14670 | ||
1bd55598 RD |
14671 | SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14672 | PyObject *resultobj = 0; | |
14673 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14674 | int result; | |
14675 | void *argp1 = 0 ; | |
14676 | int res1 = 0 ; | |
14677 | PyObject *swig_obj[1] ; | |
14678 | ||
14679 | if (!args) SWIG_fail; | |
14680 | swig_obj[0] = args; | |
14681 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14682 | if (!SWIG_IsOK(res1)) { | |
14683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
14684 | } | |
14685 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14686 | { | |
14687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14688 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
14689 | wxPyEndAllowThreads(__tstate); | |
14690 | if (PyErr_Occurred()) SWIG_fail; | |
14691 | } | |
14692 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14693 | return resultobj; | |
14694 | fail: | |
14695 | return NULL; | |
14696 | } | |
14697 | ||
14698 | ||
14699 | SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14700 | PyObject *resultobj = 0; | |
14701 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14702 | int arg2 ; | |
14703 | void *argp1 = 0 ; | |
14704 | int res1 = 0 ; | |
14705 | int val2 ; | |
14706 | int ecode2 = 0 ; | |
14707 | PyObject * obj0 = 0 ; | |
14708 | PyObject * obj1 = 0 ; | |
14709 | char * kwnames[] = { | |
14710 | (char *) "self",(char *) "val", NULL | |
14711 | }; | |
14712 | ||
14713 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
14714 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14715 | if (!SWIG_IsOK(res1)) { | |
14716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
14717 | } | |
14718 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14719 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14720 | if (!SWIG_IsOK(ecode2)) { | |
14721 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
14722 | } | |
14723 | arg2 = static_cast< int >(val2); | |
14724 | { | |
14725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14726 | (arg1)->SetValue(arg2); | |
14727 | wxPyEndAllowThreads(__tstate); | |
14728 | if (PyErr_Occurred()) SWIG_fail; | |
14729 | } | |
14730 | resultobj = SWIG_Py_Void(); | |
14731 | return resultobj; | |
14732 | fail: | |
14733 | return NULL; | |
14734 | } | |
14735 | ||
14736 | ||
14737 | SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14738 | PyObject *resultobj = 0; | |
14739 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14740 | int arg2 ; | |
14741 | void *argp1 = 0 ; | |
14742 | int res1 = 0 ; | |
14743 | int val2 ; | |
14744 | int ecode2 = 0 ; | |
14745 | PyObject * obj0 = 0 ; | |
14746 | PyObject * obj1 = 0 ; | |
14747 | char * kwnames[] = { | |
14748 | (char *) "self",(char *) "minVal", NULL | |
14749 | }; | |
14750 | ||
14751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail; | |
14752 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14753 | if (!SWIG_IsOK(res1)) { | |
14754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
14755 | } | |
14756 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14757 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14758 | if (!SWIG_IsOK(ecode2)) { | |
14759 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'"); | |
14760 | } | |
14761 | arg2 = static_cast< int >(val2); | |
14762 | { | |
14763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14764 | (arg1)->SetMin(arg2); | |
14765 | wxPyEndAllowThreads(__tstate); | |
14766 | if (PyErr_Occurred()) SWIG_fail; | |
14767 | } | |
14768 | resultobj = SWIG_Py_Void(); | |
14769 | return resultobj; | |
14770 | fail: | |
14771 | return NULL; | |
14772 | } | |
14773 | ||
14774 | ||
14775 | SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14776 | PyObject *resultobj = 0; | |
14777 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14778 | int arg2 ; | |
14779 | void *argp1 = 0 ; | |
14780 | int res1 = 0 ; | |
14781 | int val2 ; | |
14782 | int ecode2 = 0 ; | |
14783 | PyObject * obj0 = 0 ; | |
14784 | PyObject * obj1 = 0 ; | |
14785 | char * kwnames[] = { | |
14786 | (char *) "self",(char *) "maxVal", NULL | |
14787 | }; | |
14788 | ||
14789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail; | |
14790 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14791 | if (!SWIG_IsOK(res1)) { | |
14792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
14793 | } | |
14794 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14795 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14796 | if (!SWIG_IsOK(ecode2)) { | |
14797 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'"); | |
14798 | } | |
14799 | arg2 = static_cast< int >(val2); | |
14800 | { | |
14801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14802 | (arg1)->SetMax(arg2); | |
14803 | wxPyEndAllowThreads(__tstate); | |
14804 | if (PyErr_Occurred()) SWIG_fail; | |
14805 | } | |
14806 | resultobj = SWIG_Py_Void(); | |
14807 | return resultobj; | |
14808 | fail: | |
14809 | return NULL; | |
14810 | } | |
14811 | ||
14812 | ||
14813 | SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14814 | PyObject *resultobj = 0; | |
14815 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14816 | int arg2 ; | |
14817 | int arg3 ; | |
14818 | void *argp1 = 0 ; | |
14819 | int res1 = 0 ; | |
14820 | int val2 ; | |
14821 | int ecode2 = 0 ; | |
14822 | int val3 ; | |
14823 | int ecode3 = 0 ; | |
14824 | PyObject * obj0 = 0 ; | |
14825 | PyObject * obj1 = 0 ; | |
14826 | PyObject * obj2 = 0 ; | |
14827 | char * kwnames[] = { | |
14828 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
14829 | }; | |
14830 | ||
14831 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14832 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14833 | if (!SWIG_IsOK(res1)) { | |
14834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
14835 | } | |
14836 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14837 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14838 | if (!SWIG_IsOK(ecode2)) { | |
14839 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
14840 | } | |
14841 | arg2 = static_cast< int >(val2); | |
14842 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14843 | if (!SWIG_IsOK(ecode3)) { | |
14844 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
14845 | } | |
14846 | arg3 = static_cast< int >(val3); | |
14847 | { | |
14848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14849 | (arg1)->SetRange(arg2,arg3); | |
14850 | wxPyEndAllowThreads(__tstate); | |
14851 | if (PyErr_Occurred()) SWIG_fail; | |
14852 | } | |
14853 | resultobj = SWIG_Py_Void(); | |
14854 | return resultobj; | |
14855 | fail: | |
14856 | return NULL; | |
d55e5bfc RD |
14857 | } |
14858 | ||
14859 | ||
1bd55598 RD |
14860 | SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14861 | PyObject *resultobj = 0; | |
14862 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14863 | bool result; | |
14864 | void *argp1 = 0 ; | |
14865 | int res1 = 0 ; | |
14866 | PyObject *swig_obj[1] ; | |
14867 | ||
14868 | if (!args) SWIG_fail; | |
14869 | swig_obj[0] = args; | |
14870 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14871 | if (!SWIG_IsOK(res1)) { | |
14872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
14873 | } | |
14874 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14875 | { | |
14876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14877 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
14878 | wxPyEndAllowThreads(__tstate); | |
14879 | if (PyErr_Occurred()) SWIG_fail; | |
14880 | } | |
14881 | { | |
14882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14883 | } | |
14884 | return resultobj; | |
14885 | fail: | |
14886 | return NULL; | |
d55e5bfc RD |
14887 | } |
14888 | ||
14889 | ||
1bd55598 RD |
14890 | SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14891 | PyObject *resultobj = 0; | |
14892 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
14893 | SwigValueWrapper<wxVisualAttributes > result; | |
14894 | int val1 ; | |
14895 | int ecode1 = 0 ; | |
14896 | PyObject * obj0 = 0 ; | |
14897 | char * kwnames[] = { | |
14898 | (char *) "variant", NULL | |
14899 | }; | |
14900 | ||
14901 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
14902 | if (obj0) { | |
14903 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14904 | if (!SWIG_IsOK(ecode1)) { | |
14905 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
14906 | } | |
14907 | arg1 = static_cast< wxWindowVariant >(val1); | |
14908 | } | |
14909 | { | |
14910 | if (!wxPyCheckForApp()) SWIG_fail; | |
14911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14912 | result = wxSpinButton::GetClassDefaultAttributes(arg1); | |
14913 | wxPyEndAllowThreads(__tstate); | |
14914 | if (PyErr_Occurred()) SWIG_fail; | |
14915 | } | |
14916 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
14917 | return resultobj; | |
14918 | fail: | |
14919 | return NULL; | |
14920 | } | |
14921 | ||
14922 | ||
14923 | SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14924 | PyObject *obj; | |
14925 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14926 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj)); | |
14927 | return SWIG_Py_Void(); | |
14928 | } | |
14929 | ||
14930 | SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14931 | return SWIG_Python_InitShadowInstance(args); | |
14932 | } | |
14933 | ||
14934 | SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14935 | PyObject *resultobj = 0; | |
14936 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14937 | int arg2 = (int) -1 ; | |
14938 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14939 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14940 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14941 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14942 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14943 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14944 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
14945 | int arg7 = (int) 0 ; | |
14946 | int arg8 = (int) 100 ; | |
14947 | int arg9 = (int) 0 ; | |
14948 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
14949 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
14950 | wxSpinCtrl *result = 0 ; | |
14951 | void *argp1 = 0 ; | |
14952 | int res1 = 0 ; | |
14953 | int val2 ; | |
14954 | int ecode2 = 0 ; | |
14955 | bool temp3 = false ; | |
14956 | wxPoint temp4 ; | |
14957 | wxSize temp5 ; | |
14958 | long val6 ; | |
14959 | int ecode6 = 0 ; | |
14960 | int val7 ; | |
14961 | int ecode7 = 0 ; | |
14962 | int val8 ; | |
14963 | int ecode8 = 0 ; | |
14964 | int val9 ; | |
14965 | int ecode9 = 0 ; | |
14966 | bool temp10 = false ; | |
14967 | PyObject * obj0 = 0 ; | |
14968 | PyObject * obj1 = 0 ; | |
14969 | PyObject * obj2 = 0 ; | |
14970 | PyObject * obj3 = 0 ; | |
14971 | PyObject * obj4 = 0 ; | |
14972 | PyObject * obj5 = 0 ; | |
14973 | PyObject * obj6 = 0 ; | |
14974 | PyObject * obj7 = 0 ; | |
14975 | PyObject * obj8 = 0 ; | |
14976 | PyObject * obj9 = 0 ; | |
14977 | char * kwnames[] = { | |
14978 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
14979 | }; | |
14980 | ||
14981 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
14982 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14983 | if (!SWIG_IsOK(res1)) { | |
14984 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14985 | } | |
14986 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14987 | if (obj1) { | |
14988 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14989 | if (!SWIG_IsOK(ecode2)) { | |
14990 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'"); | |
14991 | } | |
14992 | arg2 = static_cast< int >(val2); | |
14993 | } | |
14994 | if (obj2) { | |
d55e5bfc | 14995 | { |
1bd55598 RD |
14996 | arg3 = wxString_in_helper(obj2); |
14997 | if (arg3 == NULL) SWIG_fail; | |
14998 | temp3 = true; | |
d55e5bfc | 14999 | } |
1bd55598 RD |
15000 | } |
15001 | if (obj3) { | |
d55e5bfc | 15002 | { |
1bd55598 RD |
15003 | arg4 = &temp4; |
15004 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 15005 | } |
1bd55598 RD |
15006 | } |
15007 | if (obj4) { | |
d55e5bfc | 15008 | { |
1bd55598 RD |
15009 | arg5 = &temp5; |
15010 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 15011 | } |
1bd55598 RD |
15012 | } |
15013 | if (obj5) { | |
15014 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
15015 | if (!SWIG_IsOK(ecode6)) { | |
15016 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'"); | |
15017 | } | |
15018 | arg6 = static_cast< long >(val6); | |
15019 | } | |
15020 | if (obj6) { | |
15021 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
15022 | if (!SWIG_IsOK(ecode7)) { | |
15023 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'"); | |
15024 | } | |
15025 | arg7 = static_cast< int >(val7); | |
15026 | } | |
15027 | if (obj7) { | |
15028 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
15029 | if (!SWIG_IsOK(ecode8)) { | |
15030 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'"); | |
15031 | } | |
15032 | arg8 = static_cast< int >(val8); | |
15033 | } | |
15034 | if (obj8) { | |
15035 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
15036 | if (!SWIG_IsOK(ecode9)) { | |
15037 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'"); | |
15038 | } | |
15039 | arg9 = static_cast< int >(val9); | |
15040 | } | |
15041 | if (obj9) { | |
d55e5bfc | 15042 | { |
1bd55598 RD |
15043 | arg10 = wxString_in_helper(obj9); |
15044 | if (arg10 == NULL) SWIG_fail; | |
15045 | temp10 = true; | |
d55e5bfc | 15046 | } |
1bd55598 RD |
15047 | } |
15048 | { | |
15049 | if (!wxPyCheckForApp()) SWIG_fail; | |
15050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15051 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
15052 | wxPyEndAllowThreads(__tstate); | |
15053 | if (PyErr_Occurred()) SWIG_fail; | |
15054 | } | |
15055 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 ); | |
15056 | { | |
15057 | if (temp3) | |
15058 | delete arg3; | |
15059 | } | |
15060 | { | |
15061 | if (temp10) | |
15062 | delete arg10; | |
15063 | } | |
15064 | return resultobj; | |
15065 | fail: | |
15066 | { | |
15067 | if (temp3) | |
15068 | delete arg3; | |
15069 | } | |
15070 | { | |
15071 | if (temp10) | |
15072 | delete arg10; | |
15073 | } | |
15074 | return NULL; | |
d55e5bfc RD |
15075 | } |
15076 | ||
15077 | ||
1bd55598 RD |
15078 | SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15079 | PyObject *resultobj = 0; | |
15080 | wxSpinCtrl *result = 0 ; | |
15081 | ||
15082 | if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail; | |
15083 | { | |
15084 | if (!wxPyCheckForApp()) SWIG_fail; | |
15085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15086 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
15087 | wxPyEndAllowThreads(__tstate); | |
15088 | if (PyErr_Occurred()) SWIG_fail; | |
15089 | } | |
15090 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 ); | |
15091 | return resultobj; | |
15092 | fail: | |
15093 | return NULL; | |
15094 | } | |
15095 | ||
15096 | ||
15097 | SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15098 | PyObject *resultobj = 0; | |
15099 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15100 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15101 | int arg3 = (int) -1 ; | |
15102 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15103 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15104 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
15105 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15106 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15107 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15108 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
15109 | int arg8 = (int) 0 ; | |
15110 | int arg9 = (int) 100 ; | |
15111 | int arg10 = (int) 0 ; | |
15112 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
15113 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
15114 | bool result; | |
15115 | void *argp1 = 0 ; | |
15116 | int res1 = 0 ; | |
15117 | void *argp2 = 0 ; | |
15118 | int res2 = 0 ; | |
15119 | int val3 ; | |
15120 | int ecode3 = 0 ; | |
15121 | bool temp4 = false ; | |
15122 | wxPoint temp5 ; | |
15123 | wxSize temp6 ; | |
15124 | long val7 ; | |
15125 | int ecode7 = 0 ; | |
15126 | int val8 ; | |
15127 | int ecode8 = 0 ; | |
15128 | int val9 ; | |
15129 | int ecode9 = 0 ; | |
15130 | int val10 ; | |
15131 | int ecode10 = 0 ; | |
15132 | bool temp11 = false ; | |
15133 | PyObject * obj0 = 0 ; | |
15134 | PyObject * obj1 = 0 ; | |
15135 | PyObject * obj2 = 0 ; | |
15136 | PyObject * obj3 = 0 ; | |
15137 | PyObject * obj4 = 0 ; | |
15138 | PyObject * obj5 = 0 ; | |
15139 | PyObject * obj6 = 0 ; | |
15140 | PyObject * obj7 = 0 ; | |
15141 | PyObject * obj8 = 0 ; | |
15142 | PyObject * obj9 = 0 ; | |
15143 | PyObject * obj10 = 0 ; | |
15144 | char * kwnames[] = { | |
15145 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
15146 | }; | |
15147 | ||
15148 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
15149 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15150 | if (!SWIG_IsOK(res1)) { | |
15151 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15152 | } | |
15153 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15154 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15155 | if (!SWIG_IsOK(res2)) { | |
15156 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
15157 | } | |
15158 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
15159 | if (obj2) { | |
15160 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15161 | if (!SWIG_IsOK(ecode3)) { | |
15162 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
15163 | } | |
15164 | arg3 = static_cast< int >(val3); | |
15165 | } | |
15166 | if (obj3) { | |
36ed4f51 | 15167 | { |
1bd55598 RD |
15168 | arg4 = wxString_in_helper(obj3); |
15169 | if (arg4 == NULL) SWIG_fail; | |
15170 | temp4 = true; | |
36ed4f51 | 15171 | } |
1bd55598 RD |
15172 | } |
15173 | if (obj4) { | |
36ed4f51 | 15174 | { |
1bd55598 RD |
15175 | arg5 = &temp5; |
15176 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 15177 | } |
1bd55598 RD |
15178 | } |
15179 | if (obj5) { | |
d55e5bfc | 15180 | { |
1bd55598 RD |
15181 | arg6 = &temp6; |
15182 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 15183 | } |
1bd55598 RD |
15184 | } |
15185 | if (obj6) { | |
15186 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
15187 | if (!SWIG_IsOK(ecode7)) { | |
15188 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
15189 | } | |
15190 | arg7 = static_cast< long >(val7); | |
15191 | } | |
15192 | if (obj7) { | |
15193 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
15194 | if (!SWIG_IsOK(ecode8)) { | |
15195 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'"); | |
15196 | } | |
15197 | arg8 = static_cast< int >(val8); | |
15198 | } | |
15199 | if (obj8) { | |
15200 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
15201 | if (!SWIG_IsOK(ecode9)) { | |
15202 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'"); | |
15203 | } | |
15204 | arg9 = static_cast< int >(val9); | |
15205 | } | |
15206 | if (obj9) { | |
15207 | ecode10 = SWIG_AsVal_int(obj9, &val10); | |
15208 | if (!SWIG_IsOK(ecode10)) { | |
15209 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'"); | |
15210 | } | |
15211 | arg10 = static_cast< int >(val10); | |
15212 | } | |
15213 | if (obj10) { | |
15214 | { | |
15215 | arg11 = wxString_in_helper(obj10); | |
15216 | if (arg11 == NULL) SWIG_fail; | |
15217 | temp11 = true; | |
15218 | } | |
15219 | } | |
15220 | { | |
15221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15222 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
15223 | wxPyEndAllowThreads(__tstate); | |
15224 | if (PyErr_Occurred()) SWIG_fail; | |
15225 | } | |
15226 | { | |
15227 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15228 | } | |
15229 | { | |
15230 | if (temp4) | |
15231 | delete arg4; | |
15232 | } | |
15233 | { | |
15234 | if (temp11) | |
15235 | delete arg11; | |
15236 | } | |
15237 | return resultobj; | |
15238 | fail: | |
15239 | { | |
15240 | if (temp4) | |
15241 | delete arg4; | |
15242 | } | |
15243 | { | |
15244 | if (temp11) | |
15245 | delete arg11; | |
15246 | } | |
15247 | return NULL; | |
d55e5bfc RD |
15248 | } |
15249 | ||
15250 | ||
1bd55598 RD |
15251 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15252 | PyObject *resultobj = 0; | |
15253 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15254 | int result; | |
15255 | void *argp1 = 0 ; | |
15256 | int res1 = 0 ; | |
15257 | PyObject *swig_obj[1] ; | |
15258 | ||
15259 | if (!args) SWIG_fail; | |
15260 | swig_obj[0] = args; | |
15261 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15262 | if (!SWIG_IsOK(res1)) { | |
15263 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15264 | } | |
15265 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15266 | { | |
15267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15268 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
15269 | wxPyEndAllowThreads(__tstate); | |
15270 | if (PyErr_Occurred()) SWIG_fail; | |
15271 | } | |
15272 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15273 | return resultobj; | |
15274 | fail: | |
15275 | return NULL; | |
15276 | } | |
15277 | ||
15278 | ||
15279 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15280 | PyObject *resultobj = 0; | |
15281 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15282 | int arg2 ; | |
15283 | void *argp1 = 0 ; | |
15284 | int res1 = 0 ; | |
15285 | int val2 ; | |
15286 | int ecode2 = 0 ; | |
15287 | PyObject * obj0 = 0 ; | |
15288 | PyObject * obj1 = 0 ; | |
15289 | char * kwnames[] = { | |
15290 | (char *) "self",(char *) "value", NULL | |
15291 | }; | |
15292 | ||
15293 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
15294 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15295 | if (!SWIG_IsOK(res1)) { | |
15296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15297 | } | |
15298 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15299 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15300 | if (!SWIG_IsOK(ecode2)) { | |
15301 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
15302 | } | |
15303 | arg2 = static_cast< int >(val2); | |
15304 | { | |
15305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15306 | (arg1)->SetValue(arg2); | |
15307 | wxPyEndAllowThreads(__tstate); | |
15308 | if (PyErr_Occurred()) SWIG_fail; | |
15309 | } | |
15310 | resultobj = SWIG_Py_Void(); | |
15311 | return resultobj; | |
15312 | fail: | |
15313 | return NULL; | |
15314 | } | |
15315 | ||
15316 | ||
15317 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15318 | PyObject *resultobj = 0; | |
15319 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15320 | wxString *arg2 = 0 ; | |
15321 | void *argp1 = 0 ; | |
15322 | int res1 = 0 ; | |
15323 | bool temp2 = false ; | |
15324 | PyObject * obj0 = 0 ; | |
15325 | PyObject * obj1 = 0 ; | |
15326 | char * kwnames[] = { | |
15327 | (char *) "self",(char *) "text", NULL | |
15328 | }; | |
15329 | ||
15330 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail; | |
15331 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15332 | if (!SWIG_IsOK(res1)) { | |
15333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15334 | } | |
15335 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15336 | { | |
15337 | arg2 = wxString_in_helper(obj1); | |
15338 | if (arg2 == NULL) SWIG_fail; | |
15339 | temp2 = true; | |
15340 | } | |
15341 | { | |
15342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15343 | (arg1)->SetValue((wxString const &)*arg2); | |
15344 | wxPyEndAllowThreads(__tstate); | |
15345 | if (PyErr_Occurred()) SWIG_fail; | |
15346 | } | |
15347 | resultobj = SWIG_Py_Void(); | |
15348 | { | |
15349 | if (temp2) | |
15350 | delete arg2; | |
15351 | } | |
15352 | return resultobj; | |
15353 | fail: | |
15354 | { | |
15355 | if (temp2) | |
15356 | delete arg2; | |
15357 | } | |
15358 | return NULL; | |
15359 | } | |
15360 | ||
15361 | ||
15362 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15363 | PyObject *resultobj = 0; | |
15364 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15365 | int arg2 ; | |
15366 | int arg3 ; | |
15367 | void *argp1 = 0 ; | |
15368 | int res1 = 0 ; | |
15369 | int val2 ; | |
15370 | int ecode2 = 0 ; | |
15371 | int val3 ; | |
15372 | int ecode3 = 0 ; | |
15373 | PyObject * obj0 = 0 ; | |
15374 | PyObject * obj1 = 0 ; | |
15375 | PyObject * obj2 = 0 ; | |
15376 | char * kwnames[] = { | |
15377 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
15378 | }; | |
15379 | ||
15380 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15381 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15382 | if (!SWIG_IsOK(res1)) { | |
15383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15384 | } | |
15385 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15386 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15387 | if (!SWIG_IsOK(ecode2)) { | |
15388 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
15389 | } | |
15390 | arg2 = static_cast< int >(val2); | |
15391 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15392 | if (!SWIG_IsOK(ecode3)) { | |
15393 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
15394 | } | |
15395 | arg3 = static_cast< int >(val3); | |
15396 | { | |
15397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15398 | (arg1)->SetRange(arg2,arg3); | |
15399 | wxPyEndAllowThreads(__tstate); | |
15400 | if (PyErr_Occurred()) SWIG_fail; | |
15401 | } | |
15402 | resultobj = SWIG_Py_Void(); | |
15403 | return resultobj; | |
15404 | fail: | |
15405 | return NULL; | |
d55e5bfc RD |
15406 | } |
15407 | ||
15408 | ||
1bd55598 RD |
15409 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15410 | PyObject *resultobj = 0; | |
15411 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15412 | int result; | |
15413 | void *argp1 = 0 ; | |
15414 | int res1 = 0 ; | |
15415 | PyObject *swig_obj[1] ; | |
15416 | ||
15417 | if (!args) SWIG_fail; | |
15418 | swig_obj[0] = args; | |
15419 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15420 | if (!SWIG_IsOK(res1)) { | |
15421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15422 | } | |
15423 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15424 | { | |
15425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15426 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
15427 | wxPyEndAllowThreads(__tstate); | |
15428 | if (PyErr_Occurred()) SWIG_fail; | |
15429 | } | |
15430 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15431 | return resultobj; | |
15432 | fail: | |
15433 | return NULL; | |
d55e5bfc RD |
15434 | } |
15435 | ||
15436 | ||
1bd55598 RD |
15437 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15438 | PyObject *resultobj = 0; | |
15439 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15440 | int result; | |
15441 | void *argp1 = 0 ; | |
15442 | int res1 = 0 ; | |
15443 | PyObject *swig_obj[1] ; | |
15444 | ||
15445 | if (!args) SWIG_fail; | |
15446 | swig_obj[0] = args; | |
15447 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15448 | if (!SWIG_IsOK(res1)) { | |
15449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15450 | } | |
15451 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15452 | { | |
15453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15454 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
15455 | wxPyEndAllowThreads(__tstate); | |
15456 | if (PyErr_Occurred()) SWIG_fail; | |
15457 | } | |
15458 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15459 | return resultobj; | |
15460 | fail: | |
15461 | return NULL; | |
15462 | } | |
15463 | ||
15464 | ||
15465 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15466 | PyObject *resultobj = 0; | |
15467 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15468 | long arg2 ; | |
15469 | long arg3 ; | |
15470 | void *argp1 = 0 ; | |
15471 | int res1 = 0 ; | |
15472 | long val2 ; | |
15473 | int ecode2 = 0 ; | |
15474 | long val3 ; | |
15475 | int ecode3 = 0 ; | |
15476 | PyObject * obj0 = 0 ; | |
15477 | PyObject * obj1 = 0 ; | |
15478 | PyObject * obj2 = 0 ; | |
15479 | char * kwnames[] = { | |
15480 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
15481 | }; | |
15482 | ||
15483 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15484 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15485 | if (!SWIG_IsOK(res1)) { | |
15486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15487 | } | |
15488 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15489 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
15490 | if (!SWIG_IsOK(ecode2)) { | |
15491 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
15492 | } | |
15493 | arg2 = static_cast< long >(val2); | |
15494 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
15495 | if (!SWIG_IsOK(ecode3)) { | |
15496 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
15497 | } | |
15498 | arg3 = static_cast< long >(val3); | |
15499 | { | |
15500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15501 | (arg1)->SetSelection(arg2,arg3); | |
15502 | wxPyEndAllowThreads(__tstate); | |
15503 | if (PyErr_Occurred()) SWIG_fail; | |
15504 | } | |
15505 | resultobj = SWIG_Py_Void(); | |
15506 | return resultobj; | |
15507 | fail: | |
15508 | return NULL; | |
15509 | } | |
15510 | ||
15511 | ||
15512 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15513 | PyObject *resultobj = 0; | |
15514 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
15515 | SwigValueWrapper<wxVisualAttributes > result; | |
15516 | int val1 ; | |
15517 | int ecode1 = 0 ; | |
15518 | PyObject * obj0 = 0 ; | |
15519 | char * kwnames[] = { | |
15520 | (char *) "variant", NULL | |
15521 | }; | |
15522 | ||
15523 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
15524 | if (obj0) { | |
15525 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15526 | if (!SWIG_IsOK(ecode1)) { | |
15527 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
15528 | } | |
15529 | arg1 = static_cast< wxWindowVariant >(val1); | |
15530 | } | |
15531 | { | |
15532 | if (!wxPyCheckForApp()) SWIG_fail; | |
15533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15534 | result = wxSpinCtrl::GetClassDefaultAttributes(arg1); | |
15535 | wxPyEndAllowThreads(__tstate); | |
15536 | if (PyErr_Occurred()) SWIG_fail; | |
15537 | } | |
15538 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
15539 | return resultobj; | |
15540 | fail: | |
15541 | return NULL; | |
d55e5bfc RD |
15542 | } |
15543 | ||
15544 | ||
1bd55598 RD |
15545 | SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15546 | PyObject *obj; | |
15547 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15548 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj)); | |
15549 | return SWIG_Py_Void(); | |
d55e5bfc RD |
15550 | } |
15551 | ||
1bd55598 RD |
15552 | SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15553 | return SWIG_Python_InitShadowInstance(args); | |
15554 | } | |
d55e5bfc | 15555 | |
1bd55598 RD |
15556 | SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15557 | PyObject *resultobj = 0; | |
15558 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15559 | int arg2 = (int) 0 ; | |
15560 | wxSpinEvent *result = 0 ; | |
15561 | int val1 ; | |
15562 | int ecode1 = 0 ; | |
15563 | int val2 ; | |
15564 | int ecode2 = 0 ; | |
15565 | PyObject * obj0 = 0 ; | |
15566 | PyObject * obj1 = 0 ; | |
15567 | char * kwnames[] = { | |
15568 | (char *) "commandType",(char *) "winid", NULL | |
15569 | }; | |
15570 | ||
15571 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
15572 | if (obj0) { | |
15573 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15574 | if (!SWIG_IsOK(ecode1)) { | |
15575 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
15576 | } | |
15577 | arg1 = static_cast< wxEventType >(val1); | |
15578 | } | |
15579 | if (obj1) { | |
15580 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15581 | if (!SWIG_IsOK(ecode2)) { | |
15582 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'"); | |
15583 | } | |
15584 | arg2 = static_cast< int >(val2); | |
15585 | } | |
15586 | { | |
15587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15588 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
15589 | wxPyEndAllowThreads(__tstate); | |
15590 | if (PyErr_Occurred()) SWIG_fail; | |
15591 | } | |
15592 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 ); | |
15593 | return resultobj; | |
15594 | fail: | |
15595 | return NULL; | |
d55e5bfc RD |
15596 | } |
15597 | ||
15598 | ||
1bd55598 RD |
15599 | SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15600 | PyObject *resultobj = 0; | |
15601 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
15602 | int result; | |
15603 | void *argp1 = 0 ; | |
15604 | int res1 = 0 ; | |
15605 | PyObject *swig_obj[1] ; | |
15606 | ||
15607 | if (!args) SWIG_fail; | |
15608 | swig_obj[0] = args; | |
15609 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 ); | |
15610 | if (!SWIG_IsOK(res1)) { | |
15611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'"); | |
15612 | } | |
15613 | arg1 = reinterpret_cast< wxSpinEvent * >(argp1); | |
15614 | { | |
15615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15616 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
15617 | wxPyEndAllowThreads(__tstate); | |
15618 | if (PyErr_Occurred()) SWIG_fail; | |
15619 | } | |
15620 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15621 | return resultobj; | |
15622 | fail: | |
15623 | return NULL; | |
15624 | } | |
15625 | ||
15626 | ||
15627 | SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15628 | PyObject *resultobj = 0; | |
15629 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
15630 | int arg2 ; | |
15631 | void *argp1 = 0 ; | |
15632 | int res1 = 0 ; | |
15633 | int val2 ; | |
15634 | int ecode2 = 0 ; | |
15635 | PyObject * obj0 = 0 ; | |
15636 | PyObject * obj1 = 0 ; | |
15637 | char * kwnames[] = { | |
15638 | (char *) "self",(char *) "pos", NULL | |
15639 | }; | |
15640 | ||
15641 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
15642 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 ); | |
15643 | if (!SWIG_IsOK(res1)) { | |
15644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'"); | |
15645 | } | |
15646 | arg1 = reinterpret_cast< wxSpinEvent * >(argp1); | |
15647 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15648 | if (!SWIG_IsOK(ecode2)) { | |
15649 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'"); | |
15650 | } | |
15651 | arg2 = static_cast< int >(val2); | |
15652 | { | |
15653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15654 | (arg1)->SetPosition(arg2); | |
15655 | wxPyEndAllowThreads(__tstate); | |
15656 | if (PyErr_Occurred()) SWIG_fail; | |
15657 | } | |
15658 | resultobj = SWIG_Py_Void(); | |
15659 | return resultobj; | |
15660 | fail: | |
15661 | return NULL; | |
d55e5bfc RD |
15662 | } |
15663 | ||
15664 | ||
1bd55598 RD |
15665 | SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15666 | PyObject *obj; | |
15667 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15668 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj)); | |
15669 | return SWIG_Py_Void(); | |
d55e5bfc RD |
15670 | } |
15671 | ||
1bd55598 RD |
15672 | SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15673 | return SWIG_Python_InitShadowInstance(args); | |
15674 | } | |
d55e5bfc | 15675 | |
1bd55598 RD |
15676 | SWIGINTERN int RadioBoxNameStr_set(PyObject *) { |
15677 | SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only."); | |
15678 | return 1; | |
d55e5bfc RD |
15679 | } |
15680 | ||
15681 | ||
1bd55598 RD |
15682 | SWIGINTERN PyObject *RadioBoxNameStr_get(void) { |
15683 | PyObject *pyobj = 0; | |
15684 | ||
15685 | { | |
15686 | #if wxUSE_UNICODE | |
15687 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
15688 | #else | |
15689 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
15690 | #endif | |
15691 | } | |
15692 | return pyobj; | |
d55e5bfc RD |
15693 | } |
15694 | ||
15695 | ||
1bd55598 RD |
15696 | SWIGINTERN int RadioButtonNameStr_set(PyObject *) { |
15697 | SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only."); | |
15698 | return 1; | |
15699 | } | |
15700 | ||
15701 | ||
15702 | SWIGINTERN PyObject *RadioButtonNameStr_get(void) { | |
15703 | PyObject *pyobj = 0; | |
15704 | ||
15705 | { | |
15706 | #if wxUSE_UNICODE | |
15707 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
15708 | #else | |
15709 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
15710 | #endif | |
15711 | } | |
15712 | return pyobj; | |
15713 | } | |
15714 | ||
15715 | ||
15716 | SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15717 | PyObject *resultobj = 0; | |
15718 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15719 | int arg2 = (int) -1 ; | |
15720 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15721 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15722 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15723 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15724 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15725 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15726 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
15727 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
15728 | int arg7 = (int) 0 ; | |
15729 | long arg8 = (long) wxRA_HORIZONTAL ; | |
15730 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
15731 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
15732 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
15733 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
15734 | wxRadioBox *result = 0 ; | |
15735 | void *argp1 = 0 ; | |
15736 | int res1 = 0 ; | |
15737 | int val2 ; | |
15738 | int ecode2 = 0 ; | |
15739 | bool temp3 = false ; | |
15740 | wxPoint temp4 ; | |
15741 | wxSize temp5 ; | |
15742 | bool temp6 = false ; | |
15743 | int val7 ; | |
15744 | int ecode7 = 0 ; | |
15745 | long val8 ; | |
15746 | int ecode8 = 0 ; | |
15747 | void *argp9 = 0 ; | |
15748 | int res9 = 0 ; | |
15749 | bool temp10 = false ; | |
15750 | PyObject * obj0 = 0 ; | |
15751 | PyObject * obj1 = 0 ; | |
15752 | PyObject * obj2 = 0 ; | |
15753 | PyObject * obj3 = 0 ; | |
15754 | PyObject * obj4 = 0 ; | |
15755 | PyObject * obj5 = 0 ; | |
15756 | PyObject * obj6 = 0 ; | |
15757 | PyObject * obj7 = 0 ; | |
15758 | PyObject * obj8 = 0 ; | |
15759 | PyObject * obj9 = 0 ; | |
15760 | char * kwnames[] = { | |
15761 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15762 | }; | |
15763 | ||
15764 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
15765 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15766 | if (!SWIG_IsOK(res1)) { | |
15767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
15768 | } | |
15769 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
15770 | if (obj1) { | |
15771 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15772 | if (!SWIG_IsOK(ecode2)) { | |
15773 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'"); | |
15774 | } | |
15775 | arg2 = static_cast< int >(val2); | |
15776 | } | |
15777 | if (obj2) { | |
36ed4f51 | 15778 | { |
1bd55598 RD |
15779 | arg3 = wxString_in_helper(obj2); |
15780 | if (arg3 == NULL) SWIG_fail; | |
15781 | temp3 = true; | |
36ed4f51 | 15782 | } |
1bd55598 RD |
15783 | } |
15784 | if (obj3) { | |
36ed4f51 | 15785 | { |
1bd55598 RD |
15786 | arg4 = &temp4; |
15787 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 15788 | } |
1bd55598 RD |
15789 | } |
15790 | if (obj4) { | |
d55e5bfc | 15791 | { |
1bd55598 RD |
15792 | arg5 = &temp5; |
15793 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 15794 | } |
1bd55598 RD |
15795 | } |
15796 | if (obj5) { | |
d55e5bfc | 15797 | { |
1bd55598 RD |
15798 | if (! PySequence_Check(obj5)) { |
15799 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
15800 | SWIG_fail; | |
15801 | } | |
15802 | arg6 = new wxArrayString; | |
15803 | temp6 = true; | |
15804 | int i, len=PySequence_Length(obj5); | |
15805 | for (i=0; i<len; i++) { | |
15806 | PyObject* item = PySequence_GetItem(obj5, i); | |
15807 | wxString* s = wxString_in_helper(item); | |
15808 | if (PyErr_Occurred()) SWIG_fail; | |
15809 | arg6->Add(*s); | |
15810 | delete s; | |
15811 | Py_DECREF(item); | |
15812 | } | |
d55e5bfc | 15813 | } |
1bd55598 RD |
15814 | } |
15815 | if (obj6) { | |
15816 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
15817 | if (!SWIG_IsOK(ecode7)) { | |
15818 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'"); | |
15819 | } | |
15820 | arg7 = static_cast< int >(val7); | |
15821 | } | |
15822 | if (obj7) { | |
15823 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
15824 | if (!SWIG_IsOK(ecode8)) { | |
15825 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'"); | |
15826 | } | |
15827 | arg8 = static_cast< long >(val8); | |
15828 | } | |
15829 | if (obj8) { | |
15830 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
15831 | if (!SWIG_IsOK(res9)) { | |
15832 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 15833 | } |
1bd55598 RD |
15834 | if (!argp9) { |
15835 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 15836 | } |
1bd55598 RD |
15837 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
15838 | } | |
15839 | if (obj9) { | |
d55e5bfc | 15840 | { |
1bd55598 RD |
15841 | arg10 = wxString_in_helper(obj9); |
15842 | if (arg10 == NULL) SWIG_fail; | |
15843 | temp10 = true; | |
d55e5bfc | 15844 | } |
1bd55598 RD |
15845 | } |
15846 | { | |
15847 | if (!wxPyCheckForApp()) SWIG_fail; | |
15848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15849 | 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); | |
15850 | wxPyEndAllowThreads(__tstate); | |
15851 | if (PyErr_Occurred()) SWIG_fail; | |
15852 | } | |
15853 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 ); | |
15854 | { | |
15855 | if (temp3) | |
15856 | delete arg3; | |
15857 | } | |
15858 | { | |
15859 | if (temp6) delete arg6; | |
15860 | } | |
15861 | { | |
15862 | if (temp10) | |
15863 | delete arg10; | |
15864 | } | |
15865 | return resultobj; | |
15866 | fail: | |
15867 | { | |
15868 | if (temp3) | |
15869 | delete arg3; | |
15870 | } | |
15871 | { | |
15872 | if (temp6) delete arg6; | |
15873 | } | |
15874 | { | |
15875 | if (temp10) | |
15876 | delete arg10; | |
15877 | } | |
15878 | return NULL; | |
d55e5bfc RD |
15879 | } |
15880 | ||
15881 | ||
1bd55598 RD |
15882 | SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15883 | PyObject *resultobj = 0; | |
15884 | wxRadioBox *result = 0 ; | |
15885 | ||
15886 | if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail; | |
15887 | { | |
15888 | if (!wxPyCheckForApp()) SWIG_fail; | |
15889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15890 | result = (wxRadioBox *)new wxRadioBox(); | |
15891 | wxPyEndAllowThreads(__tstate); | |
15892 | if (PyErr_Occurred()) SWIG_fail; | |
15893 | } | |
15894 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 ); | |
15895 | return resultobj; | |
15896 | fail: | |
15897 | return NULL; | |
15898 | } | |
15899 | ||
15900 | ||
15901 | SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15902 | PyObject *resultobj = 0; | |
15903 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
15904 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15905 | int arg3 = (int) -1 ; | |
15906 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15907 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15908 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
15909 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15910 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15911 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15912 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
15913 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
15914 | int arg8 = (int) 0 ; | |
15915 | long arg9 = (long) wxRA_HORIZONTAL ; | |
15916 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
15917 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
15918 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
15919 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
15920 | bool result; | |
15921 | void *argp1 = 0 ; | |
15922 | int res1 = 0 ; | |
15923 | void *argp2 = 0 ; | |
15924 | int res2 = 0 ; | |
15925 | int val3 ; | |
15926 | int ecode3 = 0 ; | |
15927 | bool temp4 = false ; | |
15928 | wxPoint temp5 ; | |
15929 | wxSize temp6 ; | |
15930 | bool temp7 = false ; | |
15931 | int val8 ; | |
15932 | int ecode8 = 0 ; | |
15933 | long val9 ; | |
15934 | int ecode9 = 0 ; | |
15935 | void *argp10 = 0 ; | |
15936 | int res10 = 0 ; | |
15937 | bool temp11 = false ; | |
15938 | PyObject * obj0 = 0 ; | |
15939 | PyObject * obj1 = 0 ; | |
15940 | PyObject * obj2 = 0 ; | |
15941 | PyObject * obj3 = 0 ; | |
15942 | PyObject * obj4 = 0 ; | |
15943 | PyObject * obj5 = 0 ; | |
15944 | PyObject * obj6 = 0 ; | |
15945 | PyObject * obj7 = 0 ; | |
15946 | PyObject * obj8 = 0 ; | |
15947 | PyObject * obj9 = 0 ; | |
15948 | PyObject * obj10 = 0 ; | |
15949 | char * kwnames[] = { | |
15950 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15951 | }; | |
15952 | ||
15953 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
15954 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
15955 | if (!SWIG_IsOK(res1)) { | |
15956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
15957 | } | |
15958 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
15959 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15960 | if (!SWIG_IsOK(res2)) { | |
15961 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
15962 | } | |
15963 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
15964 | if (obj2) { | |
15965 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15966 | if (!SWIG_IsOK(ecode3)) { | |
15967 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
15968 | } | |
15969 | arg3 = static_cast< int >(val3); | |
15970 | } | |
15971 | if (obj3) { | |
36ed4f51 | 15972 | { |
1bd55598 RD |
15973 | arg4 = wxString_in_helper(obj3); |
15974 | if (arg4 == NULL) SWIG_fail; | |
15975 | temp4 = true; | |
36ed4f51 | 15976 | } |
1bd55598 RD |
15977 | } |
15978 | if (obj4) { | |
36ed4f51 | 15979 | { |
1bd55598 RD |
15980 | arg5 = &temp5; |
15981 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 15982 | } |
1bd55598 RD |
15983 | } |
15984 | if (obj5) { | |
d55e5bfc | 15985 | { |
1bd55598 RD |
15986 | arg6 = &temp6; |
15987 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 15988 | } |
1bd55598 RD |
15989 | } |
15990 | if (obj6) { | |
36ed4f51 | 15991 | { |
1bd55598 RD |
15992 | if (! PySequence_Check(obj6)) { |
15993 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
15994 | SWIG_fail; | |
15995 | } | |
15996 | arg7 = new wxArrayString; | |
15997 | temp7 = true; | |
15998 | int i, len=PySequence_Length(obj6); | |
15999 | for (i=0; i<len; i++) { | |
16000 | PyObject* item = PySequence_GetItem(obj6, i); | |
16001 | wxString* s = wxString_in_helper(item); | |
16002 | if (PyErr_Occurred()) SWIG_fail; | |
16003 | arg7->Add(*s); | |
16004 | delete s; | |
16005 | Py_DECREF(item); | |
16006 | } | |
36ed4f51 | 16007 | } |
1bd55598 RD |
16008 | } |
16009 | if (obj7) { | |
16010 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
16011 | if (!SWIG_IsOK(ecode8)) { | |
16012 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'"); | |
16013 | } | |
16014 | arg8 = static_cast< int >(val8); | |
16015 | } | |
16016 | if (obj8) { | |
16017 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
16018 | if (!SWIG_IsOK(ecode9)) { | |
16019 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'"); | |
16020 | } | |
16021 | arg9 = static_cast< long >(val9); | |
16022 | } | |
16023 | if (obj9) { | |
16024 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
16025 | if (!SWIG_IsOK(res10)) { | |
16026 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 16027 | } |
1bd55598 RD |
16028 | if (!argp10) { |
16029 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 16030 | } |
1bd55598 RD |
16031 | arg10 = reinterpret_cast< wxValidator * >(argp10); |
16032 | } | |
16033 | if (obj10) { | |
d55e5bfc | 16034 | { |
1bd55598 RD |
16035 | arg11 = wxString_in_helper(obj10); |
16036 | if (arg11 == NULL) SWIG_fail; | |
16037 | temp11 = true; | |
d55e5bfc | 16038 | } |
1bd55598 RD |
16039 | } |
16040 | { | |
16041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16042 | 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); | |
16043 | wxPyEndAllowThreads(__tstate); | |
16044 | if (PyErr_Occurred()) SWIG_fail; | |
16045 | } | |
16046 | { | |
16047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16048 | } | |
16049 | { | |
16050 | if (temp4) | |
16051 | delete arg4; | |
16052 | } | |
16053 | { | |
16054 | if (temp7) delete arg7; | |
16055 | } | |
16056 | { | |
16057 | if (temp11) | |
16058 | delete arg11; | |
16059 | } | |
16060 | return resultobj; | |
16061 | fail: | |
16062 | { | |
16063 | if (temp4) | |
16064 | delete arg4; | |
16065 | } | |
16066 | { | |
16067 | if (temp7) delete arg7; | |
16068 | } | |
16069 | { | |
16070 | if (temp11) | |
16071 | delete arg11; | |
16072 | } | |
16073 | return NULL; | |
16074 | } | |
16075 | ||
16076 | ||
16077 | SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16078 | PyObject *resultobj = 0; | |
16079 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16080 | int arg2 ; | |
16081 | void *argp1 = 0 ; | |
16082 | int res1 = 0 ; | |
16083 | int val2 ; | |
16084 | int ecode2 = 0 ; | |
16085 | PyObject * obj0 = 0 ; | |
16086 | PyObject * obj1 = 0 ; | |
16087 | char * kwnames[] = { | |
16088 | (char *) "self",(char *) "n", NULL | |
16089 | }; | |
16090 | ||
16091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
16092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16093 | if (!SWIG_IsOK(res1)) { | |
16094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16095 | } | |
16096 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16097 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16098 | if (!SWIG_IsOK(ecode2)) { | |
16099 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
16100 | } | |
16101 | arg2 = static_cast< int >(val2); | |
16102 | { | |
16103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16104 | (arg1)->SetSelection(arg2); | |
16105 | wxPyEndAllowThreads(__tstate); | |
16106 | if (PyErr_Occurred()) SWIG_fail; | |
16107 | } | |
16108 | resultobj = SWIG_Py_Void(); | |
16109 | return resultobj; | |
16110 | fail: | |
16111 | return NULL; | |
d55e5bfc RD |
16112 | } |
16113 | ||
16114 | ||
1bd55598 RD |
16115 | SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16116 | PyObject *resultobj = 0; | |
16117 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16118 | int result; | |
16119 | void *argp1 = 0 ; | |
16120 | int res1 = 0 ; | |
16121 | PyObject *swig_obj[1] ; | |
16122 | ||
16123 | if (!args) SWIG_fail; | |
16124 | swig_obj[0] = args; | |
16125 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16126 | if (!SWIG_IsOK(res1)) { | |
16127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16128 | } | |
16129 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16130 | { | |
16131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16132 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
16133 | wxPyEndAllowThreads(__tstate); | |
16134 | if (PyErr_Occurred()) SWIG_fail; | |
16135 | } | |
16136 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16137 | return resultobj; | |
16138 | fail: | |
16139 | return NULL; | |
d55e5bfc RD |
16140 | } |
16141 | ||
16142 | ||
1bd55598 RD |
16143 | SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16144 | PyObject *resultobj = 0; | |
16145 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16146 | wxString result; | |
16147 | void *argp1 = 0 ; | |
16148 | int res1 = 0 ; | |
16149 | PyObject *swig_obj[1] ; | |
16150 | ||
16151 | if (!args) SWIG_fail; | |
16152 | swig_obj[0] = args; | |
16153 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16154 | if (!SWIG_IsOK(res1)) { | |
16155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16156 | } | |
16157 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16158 | { | |
16159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16160 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
16161 | wxPyEndAllowThreads(__tstate); | |
16162 | if (PyErr_Occurred()) SWIG_fail; | |
16163 | } | |
16164 | { | |
16165 | #if wxUSE_UNICODE | |
16166 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16167 | #else | |
16168 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16169 | #endif | |
16170 | } | |
16171 | return resultobj; | |
16172 | fail: | |
16173 | return NULL; | |
16174 | } | |
16175 | ||
16176 | ||
16177 | SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16178 | PyObject *resultobj = 0; | |
16179 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16180 | wxString *arg2 = 0 ; | |
16181 | bool result; | |
16182 | void *argp1 = 0 ; | |
16183 | int res1 = 0 ; | |
16184 | bool temp2 = false ; | |
16185 | PyObject * obj0 = 0 ; | |
16186 | PyObject * obj1 = 0 ; | |
16187 | char * kwnames[] = { | |
16188 | (char *) "self",(char *) "s", NULL | |
16189 | }; | |
16190 | ||
16191 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
16192 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16193 | if (!SWIG_IsOK(res1)) { | |
16194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16195 | } | |
16196 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16197 | { | |
16198 | arg2 = wxString_in_helper(obj1); | |
16199 | if (arg2 == NULL) SWIG_fail; | |
16200 | temp2 = true; | |
16201 | } | |
16202 | { | |
16203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16204 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
16205 | wxPyEndAllowThreads(__tstate); | |
16206 | if (PyErr_Occurred()) SWIG_fail; | |
16207 | } | |
16208 | { | |
16209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16210 | } | |
16211 | { | |
16212 | if (temp2) | |
16213 | delete arg2; | |
16214 | } | |
16215 | return resultobj; | |
16216 | fail: | |
16217 | { | |
16218 | if (temp2) | |
16219 | delete arg2; | |
16220 | } | |
16221 | return NULL; | |
4896ac9e RD |
16222 | } |
16223 | ||
16224 | ||
1bd55598 RD |
16225 | SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16226 | PyObject *resultobj = 0; | |
16227 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
1c71765a | 16228 | size_t result; |
1bd55598 RD |
16229 | void *argp1 = 0 ; |
16230 | int res1 = 0 ; | |
16231 | PyObject *swig_obj[1] ; | |
16232 | ||
16233 | if (!args) SWIG_fail; | |
16234 | swig_obj[0] = args; | |
16235 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16236 | if (!SWIG_IsOK(res1)) { | |
16237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16238 | } | |
16239 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16240 | { | |
16241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1c71765a | 16242 | result = (size_t)((wxRadioBox const *)arg1)->GetCount(); |
1bd55598 RD |
16243 | wxPyEndAllowThreads(__tstate); |
16244 | if (PyErr_Occurred()) SWIG_fail; | |
16245 | } | |
1c71765a | 16246 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); |
1bd55598 RD |
16247 | return resultobj; |
16248 | fail: | |
16249 | return NULL; | |
16250 | } | |
16251 | ||
16252 | ||
16253 | SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16254 | PyObject *resultobj = 0; | |
16255 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16256 | wxString *arg2 = 0 ; | |
16257 | int result; | |
16258 | void *argp1 = 0 ; | |
16259 | int res1 = 0 ; | |
16260 | bool temp2 = false ; | |
16261 | PyObject * obj0 = 0 ; | |
16262 | PyObject * obj1 = 0 ; | |
16263 | char * kwnames[] = { | |
16264 | (char *) "self",(char *) "s", NULL | |
16265 | }; | |
16266 | ||
16267 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
16268 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16269 | if (!SWIG_IsOK(res1)) { | |
16270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16271 | } | |
16272 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16273 | { | |
16274 | arg2 = wxString_in_helper(obj1); | |
16275 | if (arg2 == NULL) SWIG_fail; | |
16276 | temp2 = true; | |
16277 | } | |
16278 | { | |
16279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16280 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
16281 | wxPyEndAllowThreads(__tstate); | |
16282 | if (PyErr_Occurred()) SWIG_fail; | |
16283 | } | |
16284 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16285 | { | |
16286 | if (temp2) | |
16287 | delete arg2; | |
16288 | } | |
16289 | return resultobj; | |
16290 | fail: | |
16291 | { | |
16292 | if (temp2) | |
16293 | delete arg2; | |
16294 | } | |
16295 | return NULL; | |
16296 | } | |
16297 | ||
16298 | ||
16299 | SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16300 | PyObject *resultobj = 0; | |
16301 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16302 | int arg2 ; | |
16303 | wxString result; | |
16304 | void *argp1 = 0 ; | |
16305 | int res1 = 0 ; | |
16306 | int val2 ; | |
16307 | int ecode2 = 0 ; | |
16308 | PyObject * obj0 = 0 ; | |
16309 | PyObject * obj1 = 0 ; | |
16310 | char * kwnames[] = { | |
16311 | (char *) "self",(char *) "n", NULL | |
16312 | }; | |
16313 | ||
16314 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail; | |
16315 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16316 | if (!SWIG_IsOK(res1)) { | |
16317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16318 | } | |
16319 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16320 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16321 | if (!SWIG_IsOK(ecode2)) { | |
16322 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'"); | |
16323 | } | |
16324 | arg2 = static_cast< int >(val2); | |
16325 | { | |
16326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16327 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
16328 | wxPyEndAllowThreads(__tstate); | |
16329 | if (PyErr_Occurred()) SWIG_fail; | |
16330 | } | |
16331 | { | |
16332 | #if wxUSE_UNICODE | |
16333 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16334 | #else | |
16335 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16336 | #endif | |
16337 | } | |
16338 | return resultobj; | |
16339 | fail: | |
16340 | return NULL; | |
16341 | } | |
16342 | ||
16343 | ||
16344 | SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16345 | PyObject *resultobj = 0; | |
16346 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16347 | int arg2 ; | |
16348 | wxString *arg3 = 0 ; | |
16349 | void *argp1 = 0 ; | |
16350 | int res1 = 0 ; | |
16351 | int val2 ; | |
16352 | int ecode2 = 0 ; | |
16353 | bool temp3 = false ; | |
16354 | PyObject * obj0 = 0 ; | |
16355 | PyObject * obj1 = 0 ; | |
16356 | PyObject * obj2 = 0 ; | |
16357 | char * kwnames[] = { | |
16358 | (char *) "self",(char *) "n",(char *) "label", NULL | |
16359 | }; | |
16360 | ||
16361 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16362 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16363 | if (!SWIG_IsOK(res1)) { | |
16364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16365 | } | |
16366 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16367 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16368 | if (!SWIG_IsOK(ecode2)) { | |
16369 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'"); | |
16370 | } | |
16371 | arg2 = static_cast< int >(val2); | |
16372 | { | |
16373 | arg3 = wxString_in_helper(obj2); | |
16374 | if (arg3 == NULL) SWIG_fail; | |
16375 | temp3 = true; | |
16376 | } | |
16377 | { | |
16378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16379 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
16380 | wxPyEndAllowThreads(__tstate); | |
16381 | if (PyErr_Occurred()) SWIG_fail; | |
16382 | } | |
16383 | resultobj = SWIG_Py_Void(); | |
16384 | { | |
16385 | if (temp3) | |
16386 | delete arg3; | |
16387 | } | |
16388 | return resultobj; | |
16389 | fail: | |
16390 | { | |
16391 | if (temp3) | |
16392 | delete arg3; | |
16393 | } | |
16394 | return NULL; | |
16395 | } | |
16396 | ||
16397 | ||
16398 | SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16399 | PyObject *resultobj = 0; | |
16400 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16401 | unsigned int arg2 ; |
1bd55598 RD |
16402 | bool arg3 = (bool) true ; |
16403 | void *argp1 = 0 ; | |
16404 | int res1 = 0 ; | |
50f151d7 | 16405 | unsigned int val2 ; |
1bd55598 RD |
16406 | int ecode2 = 0 ; |
16407 | bool val3 ; | |
16408 | int ecode3 = 0 ; | |
16409 | PyObject * obj0 = 0 ; | |
16410 | PyObject * obj1 = 0 ; | |
16411 | PyObject * obj2 = 0 ; | |
16412 | char * kwnames[] = { | |
16413 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
16414 | }; | |
16415 | ||
16416 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16417 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16418 | if (!SWIG_IsOK(res1)) { | |
16419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16420 | } | |
16421 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
50f151d7 | 16422 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
1bd55598 | 16423 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 16424 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'"); |
1bd55598 | 16425 | } |
50f151d7 | 16426 | arg2 = static_cast< unsigned int >(val2); |
1bd55598 RD |
16427 | if (obj2) { |
16428 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
16429 | if (!SWIG_IsOK(ecode3)) { | |
16430 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'"); | |
16431 | } | |
16432 | arg3 = static_cast< bool >(val3); | |
16433 | } | |
16434 | { | |
16435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16436 | (arg1)->Enable(arg2,arg3); | |
16437 | wxPyEndAllowThreads(__tstate); | |
16438 | if (PyErr_Occurred()) SWIG_fail; | |
16439 | } | |
16440 | resultobj = SWIG_Py_Void(); | |
16441 | return resultobj; | |
16442 | fail: | |
16443 | return NULL; | |
16444 | } | |
16445 | ||
16446 | ||
16447 | SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16448 | PyObject *resultobj = 0; | |
16449 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16450 | unsigned int arg2 ; |
1bd55598 RD |
16451 | bool arg3 = (bool) true ; |
16452 | void *argp1 = 0 ; | |
16453 | int res1 = 0 ; | |
50f151d7 | 16454 | unsigned int val2 ; |
1bd55598 RD |
16455 | int ecode2 = 0 ; |
16456 | bool val3 ; | |
16457 | int ecode3 = 0 ; | |
16458 | PyObject * obj0 = 0 ; | |
16459 | PyObject * obj1 = 0 ; | |
16460 | PyObject * obj2 = 0 ; | |
16461 | char * kwnames[] = { | |
16462 | (char *) "self",(char *) "n",(char *) "show", NULL | |
16463 | }; | |
16464 | ||
16465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16467 | if (!SWIG_IsOK(res1)) { | |
16468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16469 | } | |
16470 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
50f151d7 | 16471 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
1bd55598 | 16472 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 16473 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'"); |
1bd55598 | 16474 | } |
50f151d7 | 16475 | arg2 = static_cast< unsigned int >(val2); |
1bd55598 RD |
16476 | if (obj2) { |
16477 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
16478 | if (!SWIG_IsOK(ecode3)) { | |
16479 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'"); | |
16480 | } | |
16481 | arg3 = static_cast< bool >(val3); | |
16482 | } | |
16483 | { | |
16484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16485 | (arg1)->Show(arg2,arg3); | |
16486 | wxPyEndAllowThreads(__tstate); | |
16487 | if (PyErr_Occurred()) SWIG_fail; | |
16488 | } | |
16489 | resultobj = SWIG_Py_Void(); | |
16490 | return resultobj; | |
16491 | fail: | |
16492 | return NULL; | |
d55e5bfc RD |
16493 | } |
16494 | ||
16495 | ||
50f151d7 RD |
16496 | SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16497 | PyObject *resultobj = 0; | |
16498 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16499 | unsigned int arg2 ; | |
16500 | bool result; | |
16501 | void *argp1 = 0 ; | |
16502 | int res1 = 0 ; | |
16503 | unsigned int val2 ; | |
16504 | int ecode2 = 0 ; | |
16505 | PyObject * obj0 = 0 ; | |
16506 | PyObject * obj1 = 0 ; | |
16507 | char * kwnames[] = { | |
16508 | (char *) "self",(char *) "n", NULL | |
16509 | }; | |
16510 | ||
16511 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
16512 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16513 | if (!SWIG_IsOK(res1)) { | |
16514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16515 | } | |
16516 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16517 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
16518 | if (!SWIG_IsOK(ecode2)) { | |
16519 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'"); | |
16520 | } | |
16521 | arg2 = static_cast< unsigned int >(val2); | |
16522 | { | |
16523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16524 | result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2); | |
16525 | wxPyEndAllowThreads(__tstate); | |
16526 | if (PyErr_Occurred()) SWIG_fail; | |
16527 | } | |
16528 | { | |
16529 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16530 | } | |
16531 | return resultobj; | |
16532 | fail: | |
16533 | return NULL; | |
16534 | } | |
16535 | ||
16536 | ||
16537 | SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16538 | PyObject *resultobj = 0; | |
16539 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16540 | unsigned int arg2 ; | |
16541 | bool result; | |
16542 | void *argp1 = 0 ; | |
16543 | int res1 = 0 ; | |
16544 | unsigned int val2 ; | |
16545 | int ecode2 = 0 ; | |
16546 | PyObject * obj0 = 0 ; | |
16547 | PyObject * obj1 = 0 ; | |
16548 | char * kwnames[] = { | |
16549 | (char *) "self",(char *) "n", NULL | |
16550 | }; | |
16551 | ||
16552 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail; | |
16553 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16554 | if (!SWIG_IsOK(res1)) { | |
16555 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16556 | } | |
16557 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16558 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
16559 | if (!SWIG_IsOK(ecode2)) { | |
16560 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'"); | |
16561 | } | |
16562 | arg2 = static_cast< unsigned int >(val2); | |
16563 | { | |
16564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16565 | result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2); | |
16566 | wxPyEndAllowThreads(__tstate); | |
16567 | if (PyErr_Occurred()) SWIG_fail; | |
16568 | } | |
16569 | { | |
16570 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16571 | } | |
16572 | return resultobj; | |
16573 | fail: | |
16574 | return NULL; | |
16575 | } | |
16576 | ||
16577 | ||
1bd55598 RD |
16578 | SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16579 | PyObject *resultobj = 0; | |
16580 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16581 | unsigned int result; |
1bd55598 RD |
16582 | void *argp1 = 0 ; |
16583 | int res1 = 0 ; | |
16584 | PyObject *swig_obj[1] ; | |
16585 | ||
16586 | if (!args) SWIG_fail; | |
16587 | swig_obj[0] = args; | |
16588 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16589 | if (!SWIG_IsOK(res1)) { | |
16590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16591 | } | |
16592 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16593 | { | |
16594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50f151d7 | 16595 | result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount(); |
1bd55598 RD |
16596 | wxPyEndAllowThreads(__tstate); |
16597 | if (PyErr_Occurred()) SWIG_fail; | |
16598 | } | |
50f151d7 | 16599 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
1bd55598 RD |
16600 | return resultobj; |
16601 | fail: | |
16602 | return NULL; | |
d55e5bfc RD |
16603 | } |
16604 | ||
16605 | ||
1bd55598 RD |
16606 | SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16607 | PyObject *resultobj = 0; | |
16608 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16609 | unsigned int result; |
1bd55598 RD |
16610 | void *argp1 = 0 ; |
16611 | int res1 = 0 ; | |
16612 | PyObject *swig_obj[1] ; | |
16613 | ||
16614 | if (!args) SWIG_fail; | |
16615 | swig_obj[0] = args; | |
16616 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16617 | if (!SWIG_IsOK(res1)) { | |
16618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16619 | } | |
16620 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16621 | { | |
16622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50f151d7 | 16623 | result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount(); |
1bd55598 RD |
16624 | wxPyEndAllowThreads(__tstate); |
16625 | if (PyErr_Occurred()) SWIG_fail; | |
16626 | } | |
50f151d7 | 16627 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
1bd55598 RD |
16628 | return resultobj; |
16629 | fail: | |
16630 | return NULL; | |
16631 | } | |
16632 | ||
16633 | ||
16634 | SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16635 | PyObject *resultobj = 0; | |
16636 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16637 | int arg2 ; | |
16638 | wxDirection arg3 ; | |
16639 | long arg4 ; | |
16640 | int result; | |
16641 | void *argp1 = 0 ; | |
16642 | int res1 = 0 ; | |
16643 | int val2 ; | |
16644 | int ecode2 = 0 ; | |
16645 | int val3 ; | |
16646 | int ecode3 = 0 ; | |
16647 | long val4 ; | |
16648 | int ecode4 = 0 ; | |
16649 | PyObject * obj0 = 0 ; | |
16650 | PyObject * obj1 = 0 ; | |
16651 | PyObject * obj2 = 0 ; | |
16652 | PyObject * obj3 = 0 ; | |
16653 | char * kwnames[] = { | |
16654 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
16655 | }; | |
16656 | ||
16657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16659 | if (!SWIG_IsOK(res1)) { | |
16660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16661 | } | |
16662 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16663 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16664 | if (!SWIG_IsOK(ecode2)) { | |
16665 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'"); | |
16666 | } | |
16667 | arg2 = static_cast< int >(val2); | |
16668 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16669 | if (!SWIG_IsOK(ecode3)) { | |
16670 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'"); | |
16671 | } | |
16672 | arg3 = static_cast< wxDirection >(val3); | |
16673 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
16674 | if (!SWIG_IsOK(ecode4)) { | |
16675 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'"); | |
16676 | } | |
16677 | arg4 = static_cast< long >(val4); | |
16678 | { | |
16679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16680 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
16681 | wxPyEndAllowThreads(__tstate); | |
16682 | if (PyErr_Occurred()) SWIG_fail; | |
16683 | } | |
16684 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16685 | return resultobj; | |
16686 | fail: | |
16687 | return NULL; | |
16688 | } | |
16689 | ||
16690 | ||
16691 | SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16692 | PyObject *resultobj = 0; | |
16693 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
16694 | SwigValueWrapper<wxVisualAttributes > result; | |
16695 | int val1 ; | |
16696 | int ecode1 = 0 ; | |
16697 | PyObject * obj0 = 0 ; | |
16698 | char * kwnames[] = { | |
16699 | (char *) "variant", NULL | |
16700 | }; | |
16701 | ||
16702 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
16703 | if (obj0) { | |
16704 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16705 | if (!SWIG_IsOK(ecode1)) { | |
16706 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
16707 | } | |
16708 | arg1 = static_cast< wxWindowVariant >(val1); | |
16709 | } | |
16710 | { | |
16711 | if (!wxPyCheckForApp()) SWIG_fail; | |
16712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16713 | result = wxRadioBox::GetClassDefaultAttributes(arg1); | |
16714 | wxPyEndAllowThreads(__tstate); | |
16715 | if (PyErr_Occurred()) SWIG_fail; | |
16716 | } | |
16717 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
16718 | return resultobj; | |
16719 | fail: | |
16720 | return NULL; | |
16721 | } | |
16722 | ||
16723 | ||
16724 | SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16725 | PyObject *obj; | |
16726 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16727 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj)); | |
16728 | return SWIG_Py_Void(); | |
16729 | } | |
16730 | ||
16731 | SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16732 | return SWIG_Python_InitShadowInstance(args); | |
16733 | } | |
16734 | ||
16735 | SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16736 | PyObject *resultobj = 0; | |
16737 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16738 | int arg2 = (int) -1 ; | |
16739 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16740 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16741 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
16742 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
16743 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
16744 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
16745 | long arg6 = (long) 0 ; | |
16746 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
16747 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
16748 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
16749 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16750 | wxRadioButton *result = 0 ; | |
16751 | void *argp1 = 0 ; | |
16752 | int res1 = 0 ; | |
16753 | int val2 ; | |
16754 | int ecode2 = 0 ; | |
16755 | bool temp3 = false ; | |
16756 | wxPoint temp4 ; | |
16757 | wxSize temp5 ; | |
16758 | long val6 ; | |
16759 | int ecode6 = 0 ; | |
16760 | void *argp7 = 0 ; | |
16761 | int res7 = 0 ; | |
16762 | bool temp8 = false ; | |
16763 | PyObject * obj0 = 0 ; | |
16764 | PyObject * obj1 = 0 ; | |
16765 | PyObject * obj2 = 0 ; | |
16766 | PyObject * obj3 = 0 ; | |
16767 | PyObject * obj4 = 0 ; | |
16768 | PyObject * obj5 = 0 ; | |
16769 | PyObject * obj6 = 0 ; | |
16770 | PyObject * obj7 = 0 ; | |
16771 | char * kwnames[] = { | |
16772 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
16773 | }; | |
16774 | ||
16775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
16776 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16777 | if (!SWIG_IsOK(res1)) { | |
16778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16779 | } | |
16780 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16781 | if (obj1) { | |
16782 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16783 | if (!SWIG_IsOK(ecode2)) { | |
16784 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'"); | |
16785 | } | |
16786 | arg2 = static_cast< int >(val2); | |
16787 | } | |
16788 | if (obj2) { | |
d55e5bfc | 16789 | { |
1bd55598 RD |
16790 | arg3 = wxString_in_helper(obj2); |
16791 | if (arg3 == NULL) SWIG_fail; | |
16792 | temp3 = true; | |
d55e5bfc | 16793 | } |
1bd55598 RD |
16794 | } |
16795 | if (obj3) { | |
d55e5bfc | 16796 | { |
1bd55598 RD |
16797 | arg4 = &temp4; |
16798 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 16799 | } |
1bd55598 RD |
16800 | } |
16801 | if (obj4) { | |
d55e5bfc | 16802 | { |
1bd55598 RD |
16803 | arg5 = &temp5; |
16804 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 16805 | } |
1bd55598 RD |
16806 | } |
16807 | if (obj5) { | |
16808 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
16809 | if (!SWIG_IsOK(ecode6)) { | |
16810 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'"); | |
16811 | } | |
16812 | arg6 = static_cast< long >(val6); | |
16813 | } | |
16814 | if (obj6) { | |
16815 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
16816 | if (!SWIG_IsOK(res7)) { | |
16817 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 16818 | } |
1bd55598 RD |
16819 | if (!argp7) { |
16820 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
16821 | } | |
16822 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
16823 | } | |
16824 | if (obj7) { | |
d55e5bfc | 16825 | { |
1bd55598 RD |
16826 | arg8 = wxString_in_helper(obj7); |
16827 | if (arg8 == NULL) SWIG_fail; | |
16828 | temp8 = true; | |
d55e5bfc | 16829 | } |
1bd55598 RD |
16830 | } |
16831 | { | |
16832 | if (!wxPyCheckForApp()) SWIG_fail; | |
16833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16834 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
16835 | wxPyEndAllowThreads(__tstate); | |
16836 | if (PyErr_Occurred()) SWIG_fail; | |
16837 | } | |
16838 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 ); | |
16839 | { | |
16840 | if (temp3) | |
16841 | delete arg3; | |
16842 | } | |
16843 | { | |
16844 | if (temp8) | |
16845 | delete arg8; | |
16846 | } | |
16847 | return resultobj; | |
16848 | fail: | |
16849 | { | |
16850 | if (temp3) | |
16851 | delete arg3; | |
16852 | } | |
16853 | { | |
16854 | if (temp8) | |
16855 | delete arg8; | |
16856 | } | |
16857 | return NULL; | |
d55e5bfc RD |
16858 | } |
16859 | ||
16860 | ||
1bd55598 RD |
16861 | SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16862 | PyObject *resultobj = 0; | |
16863 | wxRadioButton *result = 0 ; | |
16864 | ||
16865 | if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail; | |
16866 | { | |
16867 | if (!wxPyCheckForApp()) SWIG_fail; | |
16868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16869 | result = (wxRadioButton *)new wxRadioButton(); | |
16870 | wxPyEndAllowThreads(__tstate); | |
16871 | if (PyErr_Occurred()) SWIG_fail; | |
16872 | } | |
16873 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 ); | |
16874 | return resultobj; | |
16875 | fail: | |
16876 | return NULL; | |
16877 | } | |
16878 | ||
16879 | ||
16880 | SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16881 | PyObject *resultobj = 0; | |
16882 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
16883 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16884 | int arg3 = (int) -1 ; | |
16885 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16886 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16887 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
16888 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
16889 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
16890 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
16891 | long arg7 = (long) 0 ; | |
16892 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
16893 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
16894 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
16895 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
16896 | bool result; | |
16897 | void *argp1 = 0 ; | |
16898 | int res1 = 0 ; | |
16899 | void *argp2 = 0 ; | |
16900 | int res2 = 0 ; | |
16901 | int val3 ; | |
16902 | int ecode3 = 0 ; | |
16903 | bool temp4 = false ; | |
16904 | wxPoint temp5 ; | |
16905 | wxSize temp6 ; | |
16906 | long val7 ; | |
16907 | int ecode7 = 0 ; | |
16908 | void *argp8 = 0 ; | |
16909 | int res8 = 0 ; | |
16910 | bool temp9 = false ; | |
16911 | PyObject * obj0 = 0 ; | |
16912 | PyObject * obj1 = 0 ; | |
16913 | PyObject * obj2 = 0 ; | |
16914 | PyObject * obj3 = 0 ; | |
16915 | PyObject * obj4 = 0 ; | |
16916 | PyObject * obj5 = 0 ; | |
16917 | PyObject * obj6 = 0 ; | |
16918 | PyObject * obj7 = 0 ; | |
16919 | PyObject * obj8 = 0 ; | |
16920 | char * kwnames[] = { | |
16921 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
16922 | }; | |
16923 | ||
16924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
16925 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
16926 | if (!SWIG_IsOK(res1)) { | |
16927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
16928 | } | |
16929 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
16930 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16931 | if (!SWIG_IsOK(res2)) { | |
16932 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
16933 | } | |
16934 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
16935 | if (obj2) { | |
16936 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16937 | if (!SWIG_IsOK(ecode3)) { | |
16938 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
16939 | } | |
16940 | arg3 = static_cast< int >(val3); | |
16941 | } | |
16942 | if (obj3) { | |
d55e5bfc | 16943 | { |
1bd55598 RD |
16944 | arg4 = wxString_in_helper(obj3); |
16945 | if (arg4 == NULL) SWIG_fail; | |
16946 | temp4 = true; | |
d55e5bfc | 16947 | } |
1bd55598 RD |
16948 | } |
16949 | if (obj4) { | |
d55e5bfc | 16950 | { |
1bd55598 RD |
16951 | arg5 = &temp5; |
16952 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 16953 | } |
1bd55598 RD |
16954 | } |
16955 | if (obj5) { | |
d55e5bfc | 16956 | { |
1bd55598 RD |
16957 | arg6 = &temp6; |
16958 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 16959 | } |
1bd55598 RD |
16960 | } |
16961 | if (obj6) { | |
16962 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
16963 | if (!SWIG_IsOK(ecode7)) { | |
16964 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
16965 | } | |
16966 | arg7 = static_cast< long >(val7); | |
16967 | } | |
16968 | if (obj7) { | |
16969 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
16970 | if (!SWIG_IsOK(res8)) { | |
16971 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 16972 | } |
1bd55598 RD |
16973 | if (!argp8) { |
16974 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 16975 | } |
1bd55598 RD |
16976 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
16977 | } | |
16978 | if (obj8) { | |
d55e5bfc | 16979 | { |
1bd55598 RD |
16980 | arg9 = wxString_in_helper(obj8); |
16981 | if (arg9 == NULL) SWIG_fail; | |
16982 | temp9 = true; | |
d55e5bfc | 16983 | } |
1bd55598 RD |
16984 | } |
16985 | { | |
16986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16987 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
16988 | wxPyEndAllowThreads(__tstate); | |
16989 | if (PyErr_Occurred()) SWIG_fail; | |
16990 | } | |
16991 | { | |
16992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16993 | } | |
16994 | { | |
16995 | if (temp4) | |
16996 | delete arg4; | |
16997 | } | |
16998 | { | |
16999 | if (temp9) | |
17000 | delete arg9; | |
17001 | } | |
17002 | return resultobj; | |
17003 | fail: | |
17004 | { | |
17005 | if (temp4) | |
17006 | delete arg4; | |
17007 | } | |
17008 | { | |
17009 | if (temp9) | |
17010 | delete arg9; | |
17011 | } | |
17012 | return NULL; | |
d55e5bfc RD |
17013 | } |
17014 | ||
17015 | ||
1bd55598 RD |
17016 | SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17017 | PyObject *resultobj = 0; | |
17018 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17019 | bool result; | |
17020 | void *argp1 = 0 ; | |
17021 | int res1 = 0 ; | |
17022 | PyObject *swig_obj[1] ; | |
17023 | ||
17024 | if (!args) SWIG_fail; | |
17025 | swig_obj[0] = args; | |
17026 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17027 | if (!SWIG_IsOK(res1)) { | |
17028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17029 | } | |
17030 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17031 | { | |
17032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17033 | result = (bool)(arg1)->GetValue(); | |
17034 | wxPyEndAllowThreads(__tstate); | |
17035 | if (PyErr_Occurred()) SWIG_fail; | |
17036 | } | |
17037 | { | |
17038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17039 | } | |
17040 | return resultobj; | |
17041 | fail: | |
17042 | return NULL; | |
17043 | } | |
17044 | ||
17045 | ||
17046 | SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17047 | PyObject *resultobj = 0; | |
17048 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17049 | bool arg2 ; | |
17050 | void *argp1 = 0 ; | |
17051 | int res1 = 0 ; | |
17052 | bool val2 ; | |
17053 | int ecode2 = 0 ; | |
17054 | PyObject * obj0 = 0 ; | |
17055 | PyObject * obj1 = 0 ; | |
17056 | char * kwnames[] = { | |
17057 | (char *) "self",(char *) "value", NULL | |
17058 | }; | |
17059 | ||
17060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
17061 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17062 | if (!SWIG_IsOK(res1)) { | |
17063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17064 | } | |
17065 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17066 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
17067 | if (!SWIG_IsOK(ecode2)) { | |
17068 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
17069 | } | |
17070 | arg2 = static_cast< bool >(val2); | |
17071 | { | |
17072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17073 | (arg1)->SetValue(arg2); | |
17074 | wxPyEndAllowThreads(__tstate); | |
17075 | if (PyErr_Occurred()) SWIG_fail; | |
17076 | } | |
17077 | resultobj = SWIG_Py_Void(); | |
17078 | return resultobj; | |
17079 | fail: | |
17080 | return NULL; | |
17081 | } | |
17082 | ||
17083 | ||
17084 | SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17085 | PyObject *resultobj = 0; | |
17086 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
17087 | SwigValueWrapper<wxVisualAttributes > result; | |
17088 | int val1 ; | |
17089 | int ecode1 = 0 ; | |
17090 | PyObject * obj0 = 0 ; | |
17091 | char * kwnames[] = { | |
17092 | (char *) "variant", NULL | |
17093 | }; | |
17094 | ||
17095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
17096 | if (obj0) { | |
17097 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17098 | if (!SWIG_IsOK(ecode1)) { | |
17099 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
17100 | } | |
17101 | arg1 = static_cast< wxWindowVariant >(val1); | |
17102 | } | |
17103 | { | |
17104 | if (!wxPyCheckForApp()) SWIG_fail; | |
17105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17106 | result = wxRadioButton::GetClassDefaultAttributes(arg1); | |
17107 | wxPyEndAllowThreads(__tstate); | |
17108 | if (PyErr_Occurred()) SWIG_fail; | |
17109 | } | |
17110 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
17111 | return resultobj; | |
17112 | fail: | |
17113 | return NULL; | |
d55e5bfc RD |
17114 | } |
17115 | ||
17116 | ||
1bd55598 RD |
17117 | SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17118 | PyObject *obj; | |
17119 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17120 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj)); | |
17121 | return SWIG_Py_Void(); | |
d55e5bfc RD |
17122 | } |
17123 | ||
1bd55598 RD |
17124 | SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17125 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
17126 | } |
17127 | ||
1bd55598 RD |
17128 | SWIGINTERN int SliderNameStr_set(PyObject *) { |
17129 | SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only."); | |
17130 | return 1; | |
d55e5bfc RD |
17131 | } |
17132 | ||
17133 | ||
1bd55598 RD |
17134 | SWIGINTERN PyObject *SliderNameStr_get(void) { |
17135 | PyObject *pyobj = 0; | |
17136 | ||
17137 | { | |
17138 | #if wxUSE_UNICODE | |
17139 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
17140 | #else | |
17141 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
17142 | #endif | |
17143 | } | |
17144 | return pyobj; | |
17145 | } | |
17146 | ||
17147 | ||
17148 | SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17149 | PyObject *resultobj = 0; | |
17150 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17151 | int arg2 = (int) -1 ; | |
17152 | int arg3 = (int) 0 ; | |
17153 | int arg4 = (int) 0 ; | |
17154 | int arg5 = (int) 100 ; | |
17155 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
17156 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
17157 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
17158 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
17159 | long arg8 = (long) wxSL_HORIZONTAL ; | |
17160 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
17161 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
17162 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
17163 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
17164 | wxSlider *result = 0 ; | |
17165 | void *argp1 = 0 ; | |
17166 | int res1 = 0 ; | |
17167 | int val2 ; | |
17168 | int ecode2 = 0 ; | |
17169 | int val3 ; | |
17170 | int ecode3 = 0 ; | |
17171 | int val4 ; | |
17172 | int ecode4 = 0 ; | |
17173 | int val5 ; | |
17174 | int ecode5 = 0 ; | |
17175 | wxPoint temp6 ; | |
17176 | wxSize temp7 ; | |
17177 | long val8 ; | |
17178 | int ecode8 = 0 ; | |
17179 | void *argp9 = 0 ; | |
17180 | int res9 = 0 ; | |
17181 | bool temp10 = false ; | |
17182 | PyObject * obj0 = 0 ; | |
17183 | PyObject * obj1 = 0 ; | |
17184 | PyObject * obj2 = 0 ; | |
17185 | PyObject * obj3 = 0 ; | |
17186 | PyObject * obj4 = 0 ; | |
17187 | PyObject * obj5 = 0 ; | |
17188 | PyObject * obj6 = 0 ; | |
17189 | PyObject * obj7 = 0 ; | |
17190 | PyObject * obj8 = 0 ; | |
17191 | PyObject * obj9 = 0 ; | |
17192 | char * kwnames[] = { | |
17193 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17194 | }; | |
17195 | ||
17196 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
17197 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17198 | if (!SWIG_IsOK(res1)) { | |
17199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17200 | } | |
17201 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17202 | if (obj1) { | |
17203 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17204 | if (!SWIG_IsOK(ecode2)) { | |
17205 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'"); | |
17206 | } | |
17207 | arg2 = static_cast< int >(val2); | |
17208 | } | |
17209 | if (obj2) { | |
17210 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17211 | if (!SWIG_IsOK(ecode3)) { | |
17212 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'"); | |
17213 | } | |
17214 | arg3 = static_cast< int >(val3); | |
17215 | } | |
17216 | if (obj3) { | |
17217 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17218 | if (!SWIG_IsOK(ecode4)) { | |
17219 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'"); | |
17220 | } | |
17221 | arg4 = static_cast< int >(val4); | |
17222 | } | |
17223 | if (obj4) { | |
17224 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17225 | if (!SWIG_IsOK(ecode5)) { | |
17226 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'"); | |
17227 | } | |
17228 | arg5 = static_cast< int >(val5); | |
17229 | } | |
17230 | if (obj5) { | |
36ed4f51 | 17231 | { |
1bd55598 RD |
17232 | arg6 = &temp6; |
17233 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
36ed4f51 | 17234 | } |
1bd55598 RD |
17235 | } |
17236 | if (obj6) { | |
36ed4f51 | 17237 | { |
1bd55598 RD |
17238 | arg7 = &temp7; |
17239 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
36ed4f51 | 17240 | } |
1bd55598 RD |
17241 | } |
17242 | if (obj7) { | |
17243 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
17244 | if (!SWIG_IsOK(ecode8)) { | |
17245 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'"); | |
17246 | } | |
17247 | arg8 = static_cast< long >(val8); | |
17248 | } | |
17249 | if (obj8) { | |
17250 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
17251 | if (!SWIG_IsOK(res9)) { | |
17252 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 17253 | } |
1bd55598 RD |
17254 | if (!argp9) { |
17255 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 17256 | } |
1bd55598 RD |
17257 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
17258 | } | |
17259 | if (obj9) { | |
d55e5bfc | 17260 | { |
1bd55598 RD |
17261 | arg10 = wxString_in_helper(obj9); |
17262 | if (arg10 == NULL) SWIG_fail; | |
17263 | temp10 = true; | |
d55e5bfc | 17264 | } |
1bd55598 RD |
17265 | } |
17266 | { | |
17267 | if (!wxPyCheckForApp()) SWIG_fail; | |
17268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17269 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
17270 | wxPyEndAllowThreads(__tstate); | |
17271 | if (PyErr_Occurred()) SWIG_fail; | |
17272 | } | |
17273 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 ); | |
17274 | { | |
17275 | if (temp10) | |
17276 | delete arg10; | |
17277 | } | |
17278 | return resultobj; | |
17279 | fail: | |
17280 | { | |
17281 | if (temp10) | |
17282 | delete arg10; | |
17283 | } | |
17284 | return NULL; | |
d55e5bfc RD |
17285 | } |
17286 | ||
17287 | ||
1bd55598 RD |
17288 | SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17289 | PyObject *resultobj = 0; | |
17290 | wxSlider *result = 0 ; | |
17291 | ||
17292 | if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail; | |
17293 | { | |
17294 | if (!wxPyCheckForApp()) SWIG_fail; | |
17295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17296 | result = (wxSlider *)new wxSlider(); | |
17297 | wxPyEndAllowThreads(__tstate); | |
17298 | if (PyErr_Occurred()) SWIG_fail; | |
17299 | } | |
17300 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 ); | |
17301 | return resultobj; | |
17302 | fail: | |
17303 | return NULL; | |
17304 | } | |
17305 | ||
17306 | ||
17307 | SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17308 | PyObject *resultobj = 0; | |
17309 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17310 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17311 | int arg3 = (int) -1 ; | |
17312 | int arg4 = (int) 0 ; | |
17313 | int arg5 = (int) 0 ; | |
17314 | int arg6 = (int) 100 ; | |
17315 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17316 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17317 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
17318 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
17319 | long arg9 = (long) wxSL_HORIZONTAL ; | |
17320 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
17321 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
17322 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
17323 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
17324 | bool result; | |
17325 | void *argp1 = 0 ; | |
17326 | int res1 = 0 ; | |
17327 | void *argp2 = 0 ; | |
17328 | int res2 = 0 ; | |
17329 | int val3 ; | |
17330 | int ecode3 = 0 ; | |
17331 | int val4 ; | |
17332 | int ecode4 = 0 ; | |
17333 | int val5 ; | |
17334 | int ecode5 = 0 ; | |
17335 | int val6 ; | |
17336 | int ecode6 = 0 ; | |
17337 | wxPoint temp7 ; | |
17338 | wxSize temp8 ; | |
17339 | long val9 ; | |
17340 | int ecode9 = 0 ; | |
17341 | void *argp10 = 0 ; | |
17342 | int res10 = 0 ; | |
17343 | bool temp11 = false ; | |
17344 | PyObject * obj0 = 0 ; | |
17345 | PyObject * obj1 = 0 ; | |
17346 | PyObject * obj2 = 0 ; | |
17347 | PyObject * obj3 = 0 ; | |
17348 | PyObject * obj4 = 0 ; | |
17349 | PyObject * obj5 = 0 ; | |
17350 | PyObject * obj6 = 0 ; | |
17351 | PyObject * obj7 = 0 ; | |
17352 | PyObject * obj8 = 0 ; | |
17353 | PyObject * obj9 = 0 ; | |
17354 | PyObject * obj10 = 0 ; | |
17355 | char * kwnames[] = { | |
17356 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17357 | }; | |
17358 | ||
17359 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
17360 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17361 | if (!SWIG_IsOK(res1)) { | |
17362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17363 | } | |
17364 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17365 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17366 | if (!SWIG_IsOK(res2)) { | |
17367 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
17368 | } | |
17369 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
17370 | if (obj2) { | |
17371 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17372 | if (!SWIG_IsOK(ecode3)) { | |
17373 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'"); | |
17374 | } | |
17375 | arg3 = static_cast< int >(val3); | |
17376 | } | |
17377 | if (obj3) { | |
17378 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17379 | if (!SWIG_IsOK(ecode4)) { | |
17380 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'"); | |
17381 | } | |
17382 | arg4 = static_cast< int >(val4); | |
17383 | } | |
17384 | if (obj4) { | |
17385 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17386 | if (!SWIG_IsOK(ecode5)) { | |
17387 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'"); | |
17388 | } | |
17389 | arg5 = static_cast< int >(val5); | |
17390 | } | |
17391 | if (obj5) { | |
17392 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
17393 | if (!SWIG_IsOK(ecode6)) { | |
17394 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'"); | |
17395 | } | |
17396 | arg6 = static_cast< int >(val6); | |
17397 | } | |
17398 | if (obj6) { | |
d55e5bfc | 17399 | { |
1bd55598 RD |
17400 | arg7 = &temp7; |
17401 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
d55e5bfc | 17402 | } |
1bd55598 RD |
17403 | } |
17404 | if (obj7) { | |
d55e5bfc | 17405 | { |
1bd55598 RD |
17406 | arg8 = &temp8; |
17407 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
d55e5bfc | 17408 | } |
1bd55598 RD |
17409 | } |
17410 | if (obj8) { | |
17411 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
17412 | if (!SWIG_IsOK(ecode9)) { | |
17413 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'"); | |
17414 | } | |
17415 | arg9 = static_cast< long >(val9); | |
17416 | } | |
17417 | if (obj9) { | |
17418 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
17419 | if (!SWIG_IsOK(res10)) { | |
17420 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 17421 | } |
1bd55598 RD |
17422 | if (!argp10) { |
17423 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 17424 | } |
1bd55598 RD |
17425 | arg10 = reinterpret_cast< wxValidator * >(argp10); |
17426 | } | |
17427 | if (obj10) { | |
d55e5bfc | 17428 | { |
1bd55598 RD |
17429 | arg11 = wxString_in_helper(obj10); |
17430 | if (arg11 == NULL) SWIG_fail; | |
17431 | temp11 = true; | |
d55e5bfc | 17432 | } |
1bd55598 RD |
17433 | } |
17434 | { | |
17435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17436 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
17437 | wxPyEndAllowThreads(__tstate); | |
17438 | if (PyErr_Occurred()) SWIG_fail; | |
17439 | } | |
17440 | { | |
17441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17442 | } | |
17443 | { | |
17444 | if (temp11) | |
17445 | delete arg11; | |
17446 | } | |
17447 | return resultobj; | |
17448 | fail: | |
17449 | { | |
17450 | if (temp11) | |
17451 | delete arg11; | |
17452 | } | |
17453 | return NULL; | |
d55e5bfc RD |
17454 | } |
17455 | ||
17456 | ||
1bd55598 RD |
17457 | SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17458 | PyObject *resultobj = 0; | |
17459 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17460 | int result; | |
17461 | void *argp1 = 0 ; | |
17462 | int res1 = 0 ; | |
17463 | PyObject *swig_obj[1] ; | |
17464 | ||
17465 | if (!args) SWIG_fail; | |
17466 | swig_obj[0] = args; | |
17467 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17468 | if (!SWIG_IsOK(res1)) { | |
17469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17470 | } | |
17471 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17472 | { | |
17473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17474 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
17475 | wxPyEndAllowThreads(__tstate); | |
17476 | if (PyErr_Occurred()) SWIG_fail; | |
17477 | } | |
17478 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17479 | return resultobj; | |
17480 | fail: | |
17481 | return NULL; | |
17482 | } | |
17483 | ||
17484 | ||
17485 | SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17486 | PyObject *resultobj = 0; | |
17487 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17488 | int arg2 ; | |
17489 | void *argp1 = 0 ; | |
17490 | int res1 = 0 ; | |
17491 | int val2 ; | |
17492 | int ecode2 = 0 ; | |
17493 | PyObject * obj0 = 0 ; | |
17494 | PyObject * obj1 = 0 ; | |
17495 | char * kwnames[] = { | |
17496 | (char *) "self",(char *) "value", NULL | |
17497 | }; | |
17498 | ||
17499 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
17500 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17501 | if (!SWIG_IsOK(res1)) { | |
17502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17503 | } | |
17504 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17505 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17506 | if (!SWIG_IsOK(ecode2)) { | |
17507 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
17508 | } | |
17509 | arg2 = static_cast< int >(val2); | |
17510 | { | |
17511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17512 | (arg1)->SetValue(arg2); | |
17513 | wxPyEndAllowThreads(__tstate); | |
17514 | if (PyErr_Occurred()) SWIG_fail; | |
17515 | } | |
17516 | resultobj = SWIG_Py_Void(); | |
17517 | return resultobj; | |
17518 | fail: | |
17519 | return NULL; | |
17520 | } | |
17521 | ||
17522 | ||
17523 | SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17524 | PyObject *resultobj = 0; | |
17525 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17526 | int arg2 ; | |
17527 | int arg3 ; | |
17528 | void *argp1 = 0 ; | |
17529 | int res1 = 0 ; | |
17530 | int val2 ; | |
17531 | int ecode2 = 0 ; | |
17532 | int val3 ; | |
17533 | int ecode3 = 0 ; | |
17534 | PyObject * obj0 = 0 ; | |
17535 | PyObject * obj1 = 0 ; | |
17536 | PyObject * obj2 = 0 ; | |
17537 | char * kwnames[] = { | |
17538 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
17539 | }; | |
17540 | ||
17541 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17542 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17543 | if (!SWIG_IsOK(res1)) { | |
17544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17545 | } | |
17546 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17547 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17548 | if (!SWIG_IsOK(ecode2)) { | |
17549 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
17550 | } | |
17551 | arg2 = static_cast< int >(val2); | |
17552 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17553 | if (!SWIG_IsOK(ecode3)) { | |
17554 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
17555 | } | |
17556 | arg3 = static_cast< int >(val3); | |
17557 | { | |
17558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17559 | (arg1)->SetRange(arg2,arg3); | |
17560 | wxPyEndAllowThreads(__tstate); | |
17561 | if (PyErr_Occurred()) SWIG_fail; | |
17562 | } | |
17563 | resultobj = SWIG_Py_Void(); | |
17564 | return resultobj; | |
17565 | fail: | |
17566 | return NULL; | |
d55e5bfc RD |
17567 | } |
17568 | ||
17569 | ||
1bd55598 RD |
17570 | SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17571 | PyObject *resultobj = 0; | |
17572 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17573 | int result; | |
17574 | void *argp1 = 0 ; | |
17575 | int res1 = 0 ; | |
17576 | PyObject *swig_obj[1] ; | |
17577 | ||
17578 | if (!args) SWIG_fail; | |
17579 | swig_obj[0] = args; | |
17580 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17581 | if (!SWIG_IsOK(res1)) { | |
17582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17583 | } | |
17584 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17585 | { | |
17586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17587 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
17588 | wxPyEndAllowThreads(__tstate); | |
17589 | if (PyErr_Occurred()) SWIG_fail; | |
17590 | } | |
17591 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17592 | return resultobj; | |
17593 | fail: | |
17594 | return NULL; | |
f20a2e1f RD |
17595 | } |
17596 | ||
17597 | ||
1bd55598 RD |
17598 | SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17599 | PyObject *resultobj = 0; | |
17600 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17601 | int result; | |
17602 | void *argp1 = 0 ; | |
17603 | int res1 = 0 ; | |
17604 | PyObject *swig_obj[1] ; | |
17605 | ||
17606 | if (!args) SWIG_fail; | |
17607 | swig_obj[0] = args; | |
17608 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17609 | if (!SWIG_IsOK(res1)) { | |
17610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17611 | } | |
17612 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17613 | { | |
17614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17615 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
17616 | wxPyEndAllowThreads(__tstate); | |
17617 | if (PyErr_Occurred()) SWIG_fail; | |
17618 | } | |
17619 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17620 | return resultobj; | |
17621 | fail: | |
17622 | return NULL; | |
17623 | } | |
17624 | ||
17625 | ||
17626 | SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17627 | PyObject *resultobj = 0; | |
17628 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17629 | int arg2 ; | |
17630 | void *argp1 = 0 ; | |
17631 | int res1 = 0 ; | |
17632 | int val2 ; | |
17633 | int ecode2 = 0 ; | |
17634 | PyObject * obj0 = 0 ; | |
17635 | PyObject * obj1 = 0 ; | |
17636 | char * kwnames[] = { | |
17637 | (char *) "self",(char *) "minValue", NULL | |
17638 | }; | |
17639 | ||
17640 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail; | |
17641 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17642 | if (!SWIG_IsOK(res1)) { | |
17643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17644 | } | |
17645 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17646 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17647 | if (!SWIG_IsOK(ecode2)) { | |
17648 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'"); | |
17649 | } | |
17650 | arg2 = static_cast< int >(val2); | |
17651 | { | |
17652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17653 | (arg1)->SetMin(arg2); | |
17654 | wxPyEndAllowThreads(__tstate); | |
17655 | if (PyErr_Occurred()) SWIG_fail; | |
17656 | } | |
17657 | resultobj = SWIG_Py_Void(); | |
17658 | return resultobj; | |
17659 | fail: | |
17660 | return NULL; | |
17661 | } | |
17662 | ||
17663 | ||
17664 | SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17665 | PyObject *resultobj = 0; | |
17666 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17667 | int arg2 ; | |
17668 | void *argp1 = 0 ; | |
17669 | int res1 = 0 ; | |
17670 | int val2 ; | |
17671 | int ecode2 = 0 ; | |
17672 | PyObject * obj0 = 0 ; | |
17673 | PyObject * obj1 = 0 ; | |
17674 | char * kwnames[] = { | |
17675 | (char *) "self",(char *) "maxValue", NULL | |
17676 | }; | |
17677 | ||
17678 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail; | |
17679 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17680 | if (!SWIG_IsOK(res1)) { | |
17681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17682 | } | |
17683 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17684 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17685 | if (!SWIG_IsOK(ecode2)) { | |
17686 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'"); | |
17687 | } | |
17688 | arg2 = static_cast< int >(val2); | |
17689 | { | |
17690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17691 | (arg1)->SetMax(arg2); | |
17692 | wxPyEndAllowThreads(__tstate); | |
17693 | if (PyErr_Occurred()) SWIG_fail; | |
17694 | } | |
17695 | resultobj = SWIG_Py_Void(); | |
17696 | return resultobj; | |
17697 | fail: | |
17698 | return NULL; | |
17699 | } | |
17700 | ||
17701 | ||
17702 | SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17703 | PyObject *resultobj = 0; | |
17704 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17705 | int arg2 ; | |
17706 | void *argp1 = 0 ; | |
17707 | int res1 = 0 ; | |
17708 | int val2 ; | |
17709 | int ecode2 = 0 ; | |
17710 | PyObject * obj0 = 0 ; | |
17711 | PyObject * obj1 = 0 ; | |
17712 | char * kwnames[] = { | |
17713 | (char *) "self",(char *) "lineSize", NULL | |
17714 | }; | |
17715 | ||
17716 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
17717 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17718 | if (!SWIG_IsOK(res1)) { | |
17719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17720 | } | |
17721 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17722 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17723 | if (!SWIG_IsOK(ecode2)) { | |
17724 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'"); | |
17725 | } | |
17726 | arg2 = static_cast< int >(val2); | |
17727 | { | |
17728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17729 | (arg1)->SetLineSize(arg2); | |
17730 | wxPyEndAllowThreads(__tstate); | |
17731 | if (PyErr_Occurred()) SWIG_fail; | |
17732 | } | |
17733 | resultobj = SWIG_Py_Void(); | |
17734 | return resultobj; | |
17735 | fail: | |
17736 | return NULL; | |
17737 | } | |
17738 | ||
17739 | ||
17740 | SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17741 | PyObject *resultobj = 0; | |
17742 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17743 | int arg2 ; | |
17744 | void *argp1 = 0 ; | |
17745 | int res1 = 0 ; | |
17746 | int val2 ; | |
17747 | int ecode2 = 0 ; | |
17748 | PyObject * obj0 = 0 ; | |
17749 | PyObject * obj1 = 0 ; | |
17750 | char * kwnames[] = { | |
17751 | (char *) "self",(char *) "pageSize", NULL | |
17752 | }; | |
17753 | ||
17754 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
17755 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17756 | if (!SWIG_IsOK(res1)) { | |
17757 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17758 | } | |
17759 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17760 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17761 | if (!SWIG_IsOK(ecode2)) { | |
17762 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'"); | |
17763 | } | |
17764 | arg2 = static_cast< int >(val2); | |
17765 | { | |
17766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17767 | (arg1)->SetPageSize(arg2); | |
17768 | wxPyEndAllowThreads(__tstate); | |
17769 | if (PyErr_Occurred()) SWIG_fail; | |
17770 | } | |
17771 | resultobj = SWIG_Py_Void(); | |
17772 | return resultobj; | |
17773 | fail: | |
17774 | return NULL; | |
d55e5bfc RD |
17775 | } |
17776 | ||
17777 | ||
1bd55598 RD |
17778 | SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17779 | PyObject *resultobj = 0; | |
17780 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17781 | int result; | |
17782 | void *argp1 = 0 ; | |
17783 | int res1 = 0 ; | |
17784 | PyObject *swig_obj[1] ; | |
17785 | ||
17786 | if (!args) SWIG_fail; | |
17787 | swig_obj[0] = args; | |
17788 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17789 | if (!SWIG_IsOK(res1)) { | |
17790 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17791 | } | |
17792 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17793 | { | |
17794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17795 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
17796 | wxPyEndAllowThreads(__tstate); | |
17797 | if (PyErr_Occurred()) SWIG_fail; | |
17798 | } | |
17799 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17800 | return resultobj; | |
17801 | fail: | |
17802 | return NULL; | |
d55e5bfc RD |
17803 | } |
17804 | ||
17805 | ||
1bd55598 RD |
17806 | SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17807 | PyObject *resultobj = 0; | |
17808 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17809 | int result; | |
17810 | void *argp1 = 0 ; | |
17811 | int res1 = 0 ; | |
17812 | PyObject *swig_obj[1] ; | |
17813 | ||
17814 | if (!args) SWIG_fail; | |
17815 | swig_obj[0] = args; | |
17816 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17817 | if (!SWIG_IsOK(res1)) { | |
17818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17819 | } | |
17820 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17821 | { | |
17822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17823 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
17824 | wxPyEndAllowThreads(__tstate); | |
17825 | if (PyErr_Occurred()) SWIG_fail; | |
17826 | } | |
17827 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17828 | return resultobj; | |
17829 | fail: | |
17830 | return NULL; | |
17831 | } | |
17832 | ||
17833 | ||
17834 | SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17835 | PyObject *resultobj = 0; | |
17836 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17837 | int arg2 ; | |
17838 | void *argp1 = 0 ; | |
17839 | int res1 = 0 ; | |
17840 | int val2 ; | |
17841 | int ecode2 = 0 ; | |
17842 | PyObject * obj0 = 0 ; | |
17843 | PyObject * obj1 = 0 ; | |
17844 | char * kwnames[] = { | |
17845 | (char *) "self",(char *) "lenPixels", NULL | |
17846 | }; | |
17847 | ||
17848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
17849 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17850 | if (!SWIG_IsOK(res1)) { | |
17851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17852 | } | |
17853 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17854 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17855 | if (!SWIG_IsOK(ecode2)) { | |
17856 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'"); | |
17857 | } | |
17858 | arg2 = static_cast< int >(val2); | |
17859 | { | |
17860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17861 | (arg1)->SetThumbLength(arg2); | |
17862 | wxPyEndAllowThreads(__tstate); | |
17863 | if (PyErr_Occurred()) SWIG_fail; | |
17864 | } | |
17865 | resultobj = SWIG_Py_Void(); | |
17866 | return resultobj; | |
17867 | fail: | |
17868 | return NULL; | |
d55e5bfc RD |
17869 | } |
17870 | ||
17871 | ||
1bd55598 RD |
17872 | SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17873 | PyObject *resultobj = 0; | |
17874 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17875 | int result; | |
17876 | void *argp1 = 0 ; | |
17877 | int res1 = 0 ; | |
17878 | PyObject *swig_obj[1] ; | |
17879 | ||
17880 | if (!args) SWIG_fail; | |
17881 | swig_obj[0] = args; | |
17882 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17883 | if (!SWIG_IsOK(res1)) { | |
17884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17885 | } | |
17886 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17887 | { | |
17888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17889 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
17890 | wxPyEndAllowThreads(__tstate); | |
17891 | if (PyErr_Occurred()) SWIG_fail; | |
17892 | } | |
17893 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17894 | return resultobj; | |
17895 | fail: | |
17896 | return NULL; | |
17897 | } | |
17898 | ||
17899 | ||
17900 | SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17901 | PyObject *resultobj = 0; | |
17902 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17903 | int arg2 ; | |
17904 | int arg3 = (int) 1 ; | |
17905 | void *argp1 = 0 ; | |
17906 | int res1 = 0 ; | |
17907 | int val2 ; | |
17908 | int ecode2 = 0 ; | |
17909 | int val3 ; | |
17910 | int ecode3 = 0 ; | |
17911 | PyObject * obj0 = 0 ; | |
17912 | PyObject * obj1 = 0 ; | |
17913 | PyObject * obj2 = 0 ; | |
17914 | char * kwnames[] = { | |
17915 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
17916 | }; | |
17917 | ||
17918 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17919 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17920 | if (!SWIG_IsOK(res1)) { | |
17921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17922 | } | |
17923 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17924 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17925 | if (!SWIG_IsOK(ecode2)) { | |
17926 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'"); | |
17927 | } | |
17928 | arg2 = static_cast< int >(val2); | |
17929 | if (obj2) { | |
17930 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17931 | if (!SWIG_IsOK(ecode3)) { | |
17932 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'"); | |
17933 | } | |
17934 | arg3 = static_cast< int >(val3); | |
17935 | } | |
17936 | { | |
17937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17938 | (arg1)->SetTickFreq(arg2,arg3); | |
17939 | wxPyEndAllowThreads(__tstate); | |
17940 | if (PyErr_Occurred()) SWIG_fail; | |
17941 | } | |
17942 | resultobj = SWIG_Py_Void(); | |
17943 | return resultobj; | |
17944 | fail: | |
17945 | return NULL; | |
d55e5bfc RD |
17946 | } |
17947 | ||
17948 | ||
1bd55598 RD |
17949 | SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17950 | PyObject *resultobj = 0; | |
17951 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17952 | int result; | |
17953 | void *argp1 = 0 ; | |
17954 | int res1 = 0 ; | |
17955 | PyObject *swig_obj[1] ; | |
17956 | ||
17957 | if (!args) SWIG_fail; | |
17958 | swig_obj[0] = args; | |
17959 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17960 | if (!SWIG_IsOK(res1)) { | |
17961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17962 | } | |
17963 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17964 | { | |
17965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17966 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
17967 | wxPyEndAllowThreads(__tstate); | |
17968 | if (PyErr_Occurred()) SWIG_fail; | |
17969 | } | |
17970 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17971 | return resultobj; | |
17972 | fail: | |
17973 | return NULL; | |
d55e5bfc RD |
17974 | } |
17975 | ||
17976 | ||
1bd55598 RD |
17977 | SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17978 | PyObject *resultobj = 0; | |
17979 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17980 | void *argp1 = 0 ; | |
17981 | int res1 = 0 ; | |
17982 | PyObject *swig_obj[1] ; | |
17983 | ||
17984 | if (!args) SWIG_fail; | |
17985 | swig_obj[0] = args; | |
17986 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17987 | if (!SWIG_IsOK(res1)) { | |
17988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17989 | } | |
17990 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17991 | { | |
17992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17993 | (arg1)->ClearTicks(); | |
17994 | wxPyEndAllowThreads(__tstate); | |
17995 | if (PyErr_Occurred()) SWIG_fail; | |
17996 | } | |
17997 | resultobj = SWIG_Py_Void(); | |
17998 | return resultobj; | |
17999 | fail: | |
18000 | return NULL; | |
18001 | } | |
18002 | ||
18003 | ||
18004 | SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18005 | PyObject *resultobj = 0; | |
18006 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18007 | int arg2 ; | |
18008 | void *argp1 = 0 ; | |
18009 | int res1 = 0 ; | |
18010 | int val2 ; | |
18011 | int ecode2 = 0 ; | |
18012 | PyObject * obj0 = 0 ; | |
18013 | PyObject * obj1 = 0 ; | |
18014 | char * kwnames[] = { | |
18015 | (char *) "self",(char *) "tickPos", NULL | |
18016 | }; | |
18017 | ||
18018 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail; | |
18019 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18020 | if (!SWIG_IsOK(res1)) { | |
18021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18022 | } | |
18023 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18024 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18025 | if (!SWIG_IsOK(ecode2)) { | |
18026 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'"); | |
18027 | } | |
18028 | arg2 = static_cast< int >(val2); | |
18029 | { | |
18030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18031 | (arg1)->SetTick(arg2); | |
18032 | wxPyEndAllowThreads(__tstate); | |
18033 | if (PyErr_Occurred()) SWIG_fail; | |
18034 | } | |
18035 | resultobj = SWIG_Py_Void(); | |
18036 | return resultobj; | |
18037 | fail: | |
18038 | return NULL; | |
d55e5bfc RD |
18039 | } |
18040 | ||
18041 | ||
1bd55598 RD |
18042 | SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18043 | PyObject *resultobj = 0; | |
18044 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18045 | void *argp1 = 0 ; | |
18046 | int res1 = 0 ; | |
18047 | PyObject *swig_obj[1] ; | |
18048 | ||
18049 | if (!args) SWIG_fail; | |
18050 | swig_obj[0] = args; | |
18051 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18052 | if (!SWIG_IsOK(res1)) { | |
18053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18054 | } | |
18055 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18056 | { | |
18057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18058 | (arg1)->ClearSel(); | |
18059 | wxPyEndAllowThreads(__tstate); | |
18060 | if (PyErr_Occurred()) SWIG_fail; | |
18061 | } | |
18062 | resultobj = SWIG_Py_Void(); | |
18063 | return resultobj; | |
18064 | fail: | |
18065 | return NULL; | |
d55e5bfc RD |
18066 | } |
18067 | ||
18068 | ||
1bd55598 RD |
18069 | SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18070 | PyObject *resultobj = 0; | |
18071 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18072 | int result; | |
18073 | void *argp1 = 0 ; | |
18074 | int res1 = 0 ; | |
18075 | PyObject *swig_obj[1] ; | |
18076 | ||
18077 | if (!args) SWIG_fail; | |
18078 | swig_obj[0] = args; | |
18079 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18080 | if (!SWIG_IsOK(res1)) { | |
18081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18082 | } | |
18083 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18084 | { | |
18085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18086 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
18087 | wxPyEndAllowThreads(__tstate); | |
18088 | if (PyErr_Occurred()) SWIG_fail; | |
18089 | } | |
18090 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18091 | return resultobj; | |
18092 | fail: | |
18093 | return NULL; | |
d55e5bfc RD |
18094 | } |
18095 | ||
18096 | ||
1bd55598 RD |
18097 | SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18098 | PyObject *resultobj = 0; | |
18099 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18100 | int result; | |
18101 | void *argp1 = 0 ; | |
18102 | int res1 = 0 ; | |
18103 | PyObject *swig_obj[1] ; | |
18104 | ||
18105 | if (!args) SWIG_fail; | |
18106 | swig_obj[0] = args; | |
18107 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18108 | if (!SWIG_IsOK(res1)) { | |
18109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18110 | } | |
18111 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18112 | { | |
18113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18114 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
18115 | wxPyEndAllowThreads(__tstate); | |
18116 | if (PyErr_Occurred()) SWIG_fail; | |
18117 | } | |
18118 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18119 | return resultobj; | |
18120 | fail: | |
18121 | return NULL; | |
18122 | } | |
18123 | ||
18124 | ||
18125 | SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18126 | PyObject *resultobj = 0; | |
18127 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18128 | int arg2 ; | |
18129 | int arg3 ; | |
18130 | void *argp1 = 0 ; | |
18131 | int res1 = 0 ; | |
18132 | int val2 ; | |
18133 | int ecode2 = 0 ; | |
18134 | int val3 ; | |
18135 | int ecode3 = 0 ; | |
18136 | PyObject * obj0 = 0 ; | |
18137 | PyObject * obj1 = 0 ; | |
18138 | PyObject * obj2 = 0 ; | |
18139 | char * kwnames[] = { | |
18140 | (char *) "self",(char *) "min",(char *) "max", NULL | |
18141 | }; | |
18142 | ||
18143 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18145 | if (!SWIG_IsOK(res1)) { | |
18146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18147 | } | |
18148 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18149 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18150 | if (!SWIG_IsOK(ecode2)) { | |
18151 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
18152 | } | |
18153 | arg2 = static_cast< int >(val2); | |
18154 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18155 | if (!SWIG_IsOK(ecode3)) { | |
18156 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'"); | |
18157 | } | |
18158 | arg3 = static_cast< int >(val3); | |
18159 | { | |
18160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18161 | (arg1)->SetSelection(arg2,arg3); | |
18162 | wxPyEndAllowThreads(__tstate); | |
18163 | if (PyErr_Occurred()) SWIG_fail; | |
18164 | } | |
18165 | resultobj = SWIG_Py_Void(); | |
18166 | return resultobj; | |
18167 | fail: | |
18168 | return NULL; | |
18169 | } | |
18170 | ||
18171 | ||
18172 | SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18173 | PyObject *resultobj = 0; | |
18174 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
18175 | SwigValueWrapper<wxVisualAttributes > result; | |
18176 | int val1 ; | |
18177 | int ecode1 = 0 ; | |
18178 | PyObject * obj0 = 0 ; | |
18179 | char * kwnames[] = { | |
18180 | (char *) "variant", NULL | |
18181 | }; | |
18182 | ||
18183 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
18184 | if (obj0) { | |
18185 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18186 | if (!SWIG_IsOK(ecode1)) { | |
18187 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
18188 | } | |
18189 | arg1 = static_cast< wxWindowVariant >(val1); | |
18190 | } | |
18191 | { | |
18192 | if (!wxPyCheckForApp()) SWIG_fail; | |
18193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18194 | result = wxSlider::GetClassDefaultAttributes(arg1); | |
18195 | wxPyEndAllowThreads(__tstate); | |
18196 | if (PyErr_Occurred()) SWIG_fail; | |
18197 | } | |
18198 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
18199 | return resultobj; | |
18200 | fail: | |
18201 | return NULL; | |
d55e5bfc RD |
18202 | } |
18203 | ||
18204 | ||
1bd55598 RD |
18205 | SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18206 | PyObject *obj; | |
18207 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18208 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj)); | |
18209 | return SWIG_Py_Void(); | |
d55e5bfc RD |
18210 | } |
18211 | ||
1bd55598 RD |
18212 | SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18213 | return SWIG_Python_InitShadowInstance(args); | |
18214 | } | |
d55e5bfc | 18215 | |
1bd55598 RD |
18216 | SWIGINTERN int ToggleButtonNameStr_set(PyObject *) { |
18217 | SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only."); | |
18218 | return 1; | |
d55e5bfc RD |
18219 | } |
18220 | ||
18221 | ||
1bd55598 RD |
18222 | SWIGINTERN PyObject *ToggleButtonNameStr_get(void) { |
18223 | PyObject *pyobj = 0; | |
18224 | ||
18225 | { | |
18226 | #if wxUSE_UNICODE | |
18227 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
18228 | #else | |
18229 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
18230 | #endif | |
18231 | } | |
18232 | return pyobj; | |
18233 | } | |
18234 | ||
18235 | ||
18236 | SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18237 | PyObject *resultobj = 0; | |
18238 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18239 | int arg2 = (int) -1 ; | |
18240 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
18241 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18242 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
18243 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18244 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18245 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18246 | long arg6 = (long) 0 ; | |
18247 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
18248 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
18249 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
18250 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
18251 | wxToggleButton *result = 0 ; | |
18252 | void *argp1 = 0 ; | |
18253 | int res1 = 0 ; | |
18254 | int val2 ; | |
18255 | int ecode2 = 0 ; | |
18256 | bool temp3 = false ; | |
18257 | wxPoint temp4 ; | |
18258 | wxSize temp5 ; | |
18259 | long val6 ; | |
18260 | int ecode6 = 0 ; | |
18261 | void *argp7 = 0 ; | |
18262 | int res7 = 0 ; | |
18263 | bool temp8 = false ; | |
18264 | PyObject * obj0 = 0 ; | |
18265 | PyObject * obj1 = 0 ; | |
18266 | PyObject * obj2 = 0 ; | |
18267 | PyObject * obj3 = 0 ; | |
18268 | PyObject * obj4 = 0 ; | |
18269 | PyObject * obj5 = 0 ; | |
18270 | PyObject * obj6 = 0 ; | |
18271 | PyObject * obj7 = 0 ; | |
18272 | char * kwnames[] = { | |
18273 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
18274 | }; | |
18275 | ||
18276 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
18277 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18278 | if (!SWIG_IsOK(res1)) { | |
18279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18280 | } | |
18281 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18282 | if (obj1) { | |
18283 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18284 | if (!SWIG_IsOK(ecode2)) { | |
18285 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'"); | |
18286 | } | |
18287 | arg2 = static_cast< int >(val2); | |
18288 | } | |
18289 | if (obj2) { | |
d55e5bfc | 18290 | { |
1bd55598 RD |
18291 | arg3 = wxString_in_helper(obj2); |
18292 | if (arg3 == NULL) SWIG_fail; | |
18293 | temp3 = true; | |
d55e5bfc | 18294 | } |
1bd55598 RD |
18295 | } |
18296 | if (obj3) { | |
36ed4f51 | 18297 | { |
1bd55598 RD |
18298 | arg4 = &temp4; |
18299 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 18300 | } |
1bd55598 RD |
18301 | } |
18302 | if (obj4) { | |
d55e5bfc | 18303 | { |
1bd55598 RD |
18304 | arg5 = &temp5; |
18305 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 18306 | } |
1bd55598 RD |
18307 | } |
18308 | if (obj5) { | |
18309 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
18310 | if (!SWIG_IsOK(ecode6)) { | |
18311 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'"); | |
18312 | } | |
18313 | arg6 = static_cast< long >(val6); | |
18314 | } | |
18315 | if (obj6) { | |
18316 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
18317 | if (!SWIG_IsOK(res7)) { | |
18318 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 18319 | } |
1bd55598 RD |
18320 | if (!argp7) { |
18321 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 18322 | } |
1bd55598 RD |
18323 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
18324 | } | |
18325 | if (obj7) { | |
d55e5bfc | 18326 | { |
1bd55598 RD |
18327 | arg8 = wxString_in_helper(obj7); |
18328 | if (arg8 == NULL) SWIG_fail; | |
18329 | temp8 = true; | |
d55e5bfc | 18330 | } |
1bd55598 RD |
18331 | } |
18332 | { | |
18333 | if (!wxPyCheckForApp()) SWIG_fail; | |
18334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18335 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
18336 | wxPyEndAllowThreads(__tstate); | |
18337 | if (PyErr_Occurred()) SWIG_fail; | |
18338 | } | |
18339 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 ); | |
18340 | { | |
18341 | if (temp3) | |
18342 | delete arg3; | |
18343 | } | |
18344 | { | |
18345 | if (temp8) | |
18346 | delete arg8; | |
18347 | } | |
18348 | return resultobj; | |
18349 | fail: | |
18350 | { | |
18351 | if (temp3) | |
18352 | delete arg3; | |
18353 | } | |
18354 | { | |
18355 | if (temp8) | |
18356 | delete arg8; | |
18357 | } | |
18358 | return NULL; | |
d55e5bfc RD |
18359 | } |
18360 | ||
18361 | ||
1bd55598 RD |
18362 | SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18363 | PyObject *resultobj = 0; | |
18364 | wxToggleButton *result = 0 ; | |
18365 | ||
18366 | if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail; | |
18367 | { | |
18368 | if (!wxPyCheckForApp()) SWIG_fail; | |
18369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18370 | result = (wxToggleButton *)new wxToggleButton(); | |
18371 | wxPyEndAllowThreads(__tstate); | |
18372 | if (PyErr_Occurred()) SWIG_fail; | |
18373 | } | |
18374 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 ); | |
18375 | return resultobj; | |
18376 | fail: | |
18377 | return NULL; | |
18378 | } | |
18379 | ||
18380 | ||
18381 | SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18382 | PyObject *resultobj = 0; | |
18383 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
18384 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18385 | int arg3 = (int) -1 ; | |
18386 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18387 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18388 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
18389 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
18390 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
18391 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
18392 | long arg7 = (long) 0 ; | |
18393 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
18394 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
18395 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
18396 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
18397 | bool result; | |
18398 | void *argp1 = 0 ; | |
18399 | int res1 = 0 ; | |
18400 | void *argp2 = 0 ; | |
18401 | int res2 = 0 ; | |
18402 | int val3 ; | |
18403 | int ecode3 = 0 ; | |
18404 | bool temp4 = false ; | |
18405 | wxPoint temp5 ; | |
18406 | wxSize temp6 ; | |
18407 | long val7 ; | |
18408 | int ecode7 = 0 ; | |
18409 | void *argp8 = 0 ; | |
18410 | int res8 = 0 ; | |
18411 | bool temp9 = false ; | |
18412 | PyObject * obj0 = 0 ; | |
18413 | PyObject * obj1 = 0 ; | |
18414 | PyObject * obj2 = 0 ; | |
18415 | PyObject * obj3 = 0 ; | |
18416 | PyObject * obj4 = 0 ; | |
18417 | PyObject * obj5 = 0 ; | |
18418 | PyObject * obj6 = 0 ; | |
18419 | PyObject * obj7 = 0 ; | |
18420 | PyObject * obj8 = 0 ; | |
18421 | char * kwnames[] = { | |
18422 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
18423 | }; | |
18424 | ||
18425 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
18426 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
18427 | if (!SWIG_IsOK(res1)) { | |
18428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'"); | |
18429 | } | |
18430 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
18431 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18432 | if (!SWIG_IsOK(res2)) { | |
18433 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
18434 | } | |
18435 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
18436 | if (obj2) { | |
18437 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18438 | if (!SWIG_IsOK(ecode3)) { | |
18439 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
18440 | } | |
18441 | arg3 = static_cast< int >(val3); | |
18442 | } | |
18443 | if (obj3) { | |
36ed4f51 | 18444 | { |
1bd55598 RD |
18445 | arg4 = wxString_in_helper(obj3); |
18446 | if (arg4 == NULL) SWIG_fail; | |
18447 | temp4 = true; | |
36ed4f51 | 18448 | } |
1bd55598 RD |
18449 | } |
18450 | if (obj4) { | |
36ed4f51 | 18451 | { |
1bd55598 RD |
18452 | arg5 = &temp5; |
18453 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 18454 | } |
1bd55598 RD |
18455 | } |
18456 | if (obj5) { | |
36ed4f51 | 18457 | { |
1bd55598 RD |
18458 | arg6 = &temp6; |
18459 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
36ed4f51 | 18460 | } |
1bd55598 RD |
18461 | } |
18462 | if (obj6) { | |
18463 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
18464 | if (!SWIG_IsOK(ecode7)) { | |
18465 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
18466 | } | |
18467 | arg7 = static_cast< long >(val7); | |
18468 | } | |
18469 | if (obj7) { | |
18470 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
18471 | if (!SWIG_IsOK(res8)) { | |
18472 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 18473 | } |
1bd55598 RD |
18474 | if (!argp8) { |
18475 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 18476 | } |
1bd55598 RD |
18477 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
18478 | } | |
18479 | if (obj8) { | |
d55e5bfc | 18480 | { |
1bd55598 RD |
18481 | arg9 = wxString_in_helper(obj8); |
18482 | if (arg9 == NULL) SWIG_fail; | |
18483 | temp9 = true; | |
d55e5bfc | 18484 | } |
1bd55598 RD |
18485 | } |
18486 | { | |
18487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18488 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
18489 | wxPyEndAllowThreads(__tstate); | |
18490 | if (PyErr_Occurred()) SWIG_fail; | |
18491 | } | |
18492 | { | |
18493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18494 | } | |
18495 | { | |
18496 | if (temp4) | |
18497 | delete arg4; | |
18498 | } | |
18499 | { | |
18500 | if (temp9) | |
18501 | delete arg9; | |
18502 | } | |
18503 | return resultobj; | |
18504 | fail: | |
18505 | { | |
18506 | if (temp4) | |
18507 | delete arg4; | |
18508 | } | |
18509 | { | |
18510 | if (temp9) | |
18511 | delete arg9; | |
18512 | } | |
18513 | return NULL; | |
18514 | } | |
18515 | ||
18516 | ||
18517 | SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18518 | PyObject *resultobj = 0; | |
18519 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
18520 | bool arg2 ; | |
18521 | void *argp1 = 0 ; | |
18522 | int res1 = 0 ; | |
18523 | bool val2 ; | |
18524 | int ecode2 = 0 ; | |
18525 | PyObject * obj0 = 0 ; | |
18526 | PyObject * obj1 = 0 ; | |
18527 | char * kwnames[] = { | |
18528 | (char *) "self",(char *) "value", NULL | |
18529 | }; | |
18530 | ||
18531 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
18532 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
18533 | if (!SWIG_IsOK(res1)) { | |
18534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'"); | |
18535 | } | |
18536 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
18537 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18538 | if (!SWIG_IsOK(ecode2)) { | |
18539 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
18540 | } | |
18541 | arg2 = static_cast< bool >(val2); | |
18542 | { | |
18543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18544 | (arg1)->SetValue(arg2); | |
18545 | wxPyEndAllowThreads(__tstate); | |
18546 | if (PyErr_Occurred()) SWIG_fail; | |
18547 | } | |
18548 | resultobj = SWIG_Py_Void(); | |
18549 | return resultobj; | |
18550 | fail: | |
18551 | return NULL; | |
d55e5bfc RD |
18552 | } |
18553 | ||
18554 | ||
1bd55598 RD |
18555 | SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18556 | PyObject *resultobj = 0; | |
18557 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
18558 | bool result; | |
18559 | void *argp1 = 0 ; | |
18560 | int res1 = 0 ; | |
18561 | PyObject *swig_obj[1] ; | |
18562 | ||
18563 | if (!args) SWIG_fail; | |
18564 | swig_obj[0] = args; | |
18565 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
18566 | if (!SWIG_IsOK(res1)) { | |
18567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'"); | |
18568 | } | |
18569 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
18570 | { | |
18571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18572 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
18573 | wxPyEndAllowThreads(__tstate); | |
18574 | if (PyErr_Occurred()) SWIG_fail; | |
18575 | } | |
18576 | { | |
18577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18578 | } | |
18579 | return resultobj; | |
18580 | fail: | |
18581 | return NULL; | |
f20a2e1f RD |
18582 | } |
18583 | ||
18584 | ||
1bd55598 RD |
18585 | SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
18586 | PyObject *resultobj = 0; | |
18587 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
18588 | SwigValueWrapper<wxVisualAttributes > result; | |
18589 | int val1 ; | |
18590 | int ecode1 = 0 ; | |
18591 | PyObject * obj0 = 0 ; | |
18592 | char * kwnames[] = { | |
18593 | (char *) "variant", NULL | |
18594 | }; | |
18595 | ||
18596 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
18597 | if (obj0) { | |
18598 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18599 | if (!SWIG_IsOK(ecode1)) { | |
18600 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
18601 | } | |
18602 | arg1 = static_cast< wxWindowVariant >(val1); | |
18603 | } | |
18604 | { | |
18605 | if (!wxPyCheckForApp()) SWIG_fail; | |
18606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18607 | result = wxToggleButton::GetClassDefaultAttributes(arg1); | |
18608 | wxPyEndAllowThreads(__tstate); | |
18609 | if (PyErr_Occurred()) SWIG_fail; | |
18610 | } | |
18611 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
18612 | return resultobj; | |
18613 | fail: | |
18614 | return NULL; | |
d55e5bfc RD |
18615 | } |
18616 | ||
18617 | ||
1bd55598 RD |
18618 | SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18619 | PyObject *obj; | |
18620 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18621 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj)); | |
18622 | return SWIG_Py_Void(); | |
d55e5bfc RD |
18623 | } |
18624 | ||
1bd55598 RD |
18625 | SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18626 | return SWIG_Python_InitShadowInstance(args); | |
18627 | } | |
d55e5bfc | 18628 | |
1bd55598 RD |
18629 | SWIGINTERN int NotebookNameStr_set(PyObject *) { |
18630 | SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only."); | |
18631 | return 1; | |
d55e5bfc RD |
18632 | } |
18633 | ||
18634 | ||
1bd55598 RD |
18635 | SWIGINTERN PyObject *NotebookNameStr_get(void) { |
18636 | PyObject *pyobj = 0; | |
18637 | ||
18638 | { | |
d55e5bfc | 18639 | #if wxUSE_UNICODE |
1bd55598 | 18640 | pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d55e5bfc | 18641 | #else |
1bd55598 | 18642 | pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d55e5bfc | 18643 | #endif |
1bd55598 RD |
18644 | } |
18645 | return pyobj; | |
d55e5bfc RD |
18646 | } |
18647 | ||
18648 | ||
1bd55598 RD |
18649 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18650 | PyObject *resultobj = 0; | |
18651 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18652 | size_t result; | |
18653 | void *argp1 = 0 ; | |
18654 | int res1 = 0 ; | |
18655 | PyObject *swig_obj[1] ; | |
18656 | ||
18657 | if (!args) SWIG_fail; | |
18658 | swig_obj[0] = args; | |
18659 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18660 | if (!SWIG_IsOK(res1)) { | |
18661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
18662 | } | |
18663 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18664 | { | |
18665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18666 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount(); | |
18667 | wxPyEndAllowThreads(__tstate); | |
18668 | if (PyErr_Occurred()) SWIG_fail; | |
18669 | } | |
18670 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
18671 | return resultobj; | |
18672 | fail: | |
18673 | return NULL; | |
18674 | } | |
18675 | ||
18676 | ||
18677 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18678 | PyObject *resultobj = 0; | |
18679 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18680 | size_t arg2 ; | |
18681 | wxWindow *result = 0 ; | |
18682 | void *argp1 = 0 ; | |
18683 | int res1 = 0 ; | |
18684 | size_t val2 ; | |
18685 | int ecode2 = 0 ; | |
18686 | PyObject * obj0 = 0 ; | |
18687 | PyObject * obj1 = 0 ; | |
18688 | char * kwnames[] = { | |
18689 | (char *) "self",(char *) "n", NULL | |
18690 | }; | |
18691 | ||
18692 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
18693 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18694 | if (!SWIG_IsOK(res1)) { | |
18695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
18696 | } | |
18697 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18698 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
18699 | if (!SWIG_IsOK(ecode2)) { | |
18700 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'"); | |
18701 | } | |
18702 | arg2 = static_cast< size_t >(val2); | |
18703 | { | |
18704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18705 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
18706 | wxPyEndAllowThreads(__tstate); | |
18707 | if (PyErr_Occurred()) SWIG_fail; | |
18708 | } | |
18709 | { | |
18710 | resultobj = wxPyMake_wxObject(result, 0); | |
18711 | } | |
18712 | return resultobj; | |
18713 | fail: | |
18714 | return NULL; | |
d55e5bfc RD |
18715 | } |
18716 | ||
18717 | ||
1bd55598 RD |
18718 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18719 | PyObject *resultobj = 0; | |
18720 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18721 | wxWindow *result = 0 ; | |
18722 | void *argp1 = 0 ; | |
18723 | int res1 = 0 ; | |
18724 | PyObject *swig_obj[1] ; | |
18725 | ||
18726 | if (!args) SWIG_fail; | |
18727 | swig_obj[0] = args; | |
18728 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18729 | if (!SWIG_IsOK(res1)) { | |
18730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
18731 | } | |
18732 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18733 | { | |
18734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18735 | result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage(); | |
18736 | wxPyEndAllowThreads(__tstate); | |
18737 | if (PyErr_Occurred()) SWIG_fail; | |
18738 | } | |
18739 | { | |
18740 | resultobj = wxPyMake_wxObject(result, 0); | |
18741 | } | |
18742 | return resultobj; | |
18743 | fail: | |
18744 | return NULL; | |
d55e5bfc RD |
18745 | } |
18746 | ||
18747 | ||
1bd55598 RD |
18748 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18749 | PyObject *resultobj = 0; | |
18750 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18751 | int result; | |
18752 | void *argp1 = 0 ; | |
18753 | int res1 = 0 ; | |
18754 | PyObject *swig_obj[1] ; | |
18755 | ||
18756 | if (!args) SWIG_fail; | |
18757 | swig_obj[0] = args; | |
18758 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18759 | if (!SWIG_IsOK(res1)) { | |
18760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
18761 | } | |
18762 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18763 | { | |
18764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18765 | result = (int)((wxBookCtrlBase const *)arg1)->GetSelection(); | |
18766 | wxPyEndAllowThreads(__tstate); | |
18767 | if (PyErr_Occurred()) SWIG_fail; | |
18768 | } | |
18769 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18770 | return resultobj; | |
18771 | fail: | |
18772 | return NULL; | |
18773 | } | |
18774 | ||
18775 | ||
18776 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18777 | PyObject *resultobj = 0; | |
18778 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18779 | size_t arg2 ; | |
18780 | wxString *arg3 = 0 ; | |
18781 | bool result; | |
18782 | void *argp1 = 0 ; | |
18783 | int res1 = 0 ; | |
18784 | size_t val2 ; | |
18785 | int ecode2 = 0 ; | |
18786 | bool temp3 = false ; | |
18787 | PyObject * obj0 = 0 ; | |
18788 | PyObject * obj1 = 0 ; | |
18789 | PyObject * obj2 = 0 ; | |
18790 | char * kwnames[] = { | |
18791 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
18792 | }; | |
18793 | ||
18794 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18795 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18796 | if (!SWIG_IsOK(res1)) { | |
18797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
18798 | } | |
18799 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18800 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
18801 | if (!SWIG_IsOK(ecode2)) { | |
18802 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'"); | |
18803 | } | |
18804 | arg2 = static_cast< size_t >(val2); | |
18805 | { | |
18806 | arg3 = wxString_in_helper(obj2); | |
18807 | if (arg3 == NULL) SWIG_fail; | |
18808 | temp3 = true; | |
18809 | } | |
18810 | { | |
18811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18812 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
18813 | wxPyEndAllowThreads(__tstate); | |
18814 | if (PyErr_Occurred()) SWIG_fail; | |
18815 | } | |
18816 | { | |
18817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18818 | } | |
18819 | { | |
18820 | if (temp3) | |
18821 | delete arg3; | |
18822 | } | |
18823 | return resultobj; | |
18824 | fail: | |
18825 | { | |
18826 | if (temp3) | |
18827 | delete arg3; | |
18828 | } | |
18829 | return NULL; | |
18830 | } | |
18831 | ||
18832 | ||
18833 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18834 | PyObject *resultobj = 0; | |
18835 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18836 | size_t arg2 ; | |
18837 | wxString result; | |
18838 | void *argp1 = 0 ; | |
18839 | int res1 = 0 ; | |
18840 | size_t val2 ; | |
18841 | int ecode2 = 0 ; | |
18842 | PyObject * obj0 = 0 ; | |
18843 | PyObject * obj1 = 0 ; | |
18844 | char * kwnames[] = { | |
18845 | (char *) "self",(char *) "n", NULL | |
18846 | }; | |
18847 | ||
18848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail; | |
18849 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18850 | if (!SWIG_IsOK(res1)) { | |
18851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
18852 | } | |
18853 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18854 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
18855 | if (!SWIG_IsOK(ecode2)) { | |
18856 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'"); | |
18857 | } | |
18858 | arg2 = static_cast< size_t >(val2); | |
18859 | { | |
18860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18861 | result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2); | |
18862 | wxPyEndAllowThreads(__tstate); | |
18863 | if (PyErr_Occurred()) SWIG_fail; | |
18864 | } | |
18865 | { | |
18866 | #if wxUSE_UNICODE | |
18867 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18868 | #else | |
18869 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18870 | #endif | |
18871 | } | |
18872 | return resultobj; | |
18873 | fail: | |
18874 | return NULL; | |
18875 | } | |
18876 | ||
18877 | ||
18878 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18879 | PyObject *resultobj = 0; | |
18880 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18881 | wxImageList *arg2 = (wxImageList *) 0 ; | |
18882 | void *argp1 = 0 ; | |
18883 | int res1 = 0 ; | |
18884 | void *argp2 = 0 ; | |
18885 | int res2 = 0 ; | |
18886 | PyObject * obj0 = 0 ; | |
18887 | PyObject * obj1 = 0 ; | |
18888 | char * kwnames[] = { | |
18889 | (char *) "self",(char *) "imageList", NULL | |
18890 | }; | |
18891 | ||
18892 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
18893 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18894 | if (!SWIG_IsOK(res1)) { | |
18895 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
18896 | } | |
18897 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18898 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
18899 | if (!SWIG_IsOK(res2)) { | |
18900 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
18901 | } | |
18902 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
18903 | { | |
18904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18905 | (arg1)->SetImageList(arg2); | |
18906 | wxPyEndAllowThreads(__tstate); | |
18907 | if (PyErr_Occurred()) SWIG_fail; | |
18908 | } | |
18909 | resultobj = SWIG_Py_Void(); | |
18910 | return resultobj; | |
18911 | fail: | |
18912 | return NULL; | |
18913 | } | |
18914 | ||
18915 | ||
18916 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18917 | PyObject *resultobj = 0; | |
18918 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18919 | wxImageList *arg2 = (wxImageList *) 0 ; | |
18920 | void *argp1 = 0 ; | |
18921 | int res1 = 0 ; | |
18922 | int res2 = 0 ; | |
18923 | PyObject * obj0 = 0 ; | |
18924 | PyObject * obj1 = 0 ; | |
18925 | char * kwnames[] = { | |
18926 | (char *) "self",(char *) "imageList", NULL | |
18927 | }; | |
18928 | ||
18929 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
18930 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18931 | if (!SWIG_IsOK(res1)) { | |
18932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
18933 | } | |
18934 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18935 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
18936 | if (!SWIG_IsOK(res2)) { | |
18937 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
18938 | } | |
18939 | { | |
18940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18941 | (arg1)->AssignImageList(arg2); | |
18942 | wxPyEndAllowThreads(__tstate); | |
18943 | if (PyErr_Occurred()) SWIG_fail; | |
18944 | } | |
18945 | resultobj = SWIG_Py_Void(); | |
18946 | return resultobj; | |
18947 | fail: | |
18948 | return NULL; | |
d55e5bfc RD |
18949 | } |
18950 | ||
18951 | ||
1bd55598 RD |
18952 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18953 | PyObject *resultobj = 0; | |
18954 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18955 | wxImageList *result = 0 ; | |
18956 | void *argp1 = 0 ; | |
18957 | int res1 = 0 ; | |
18958 | PyObject *swig_obj[1] ; | |
18959 | ||
18960 | if (!args) SWIG_fail; | |
18961 | swig_obj[0] = args; | |
18962 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18963 | if (!SWIG_IsOK(res1)) { | |
18964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
18965 | } | |
18966 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18967 | { | |
18968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18969 | result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList(); | |
18970 | wxPyEndAllowThreads(__tstate); | |
18971 | if (PyErr_Occurred()) SWIG_fail; | |
18972 | } | |
18973 | { | |
18974 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
18975 | } | |
18976 | return resultobj; | |
18977 | fail: | |
18978 | return NULL; | |
18979 | } | |
18980 | ||
18981 | ||
18982 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18983 | PyObject *resultobj = 0; | |
18984 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18985 | size_t arg2 ; | |
18986 | int result; | |
18987 | void *argp1 = 0 ; | |
18988 | int res1 = 0 ; | |
18989 | size_t val2 ; | |
18990 | int ecode2 = 0 ; | |
18991 | PyObject * obj0 = 0 ; | |
18992 | PyObject * obj1 = 0 ; | |
18993 | char * kwnames[] = { | |
18994 | (char *) "self",(char *) "n", NULL | |
18995 | }; | |
18996 | ||
18997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
18998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18999 | if (!SWIG_IsOK(res1)) { | |
19000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19001 | } | |
19002 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19003 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19004 | if (!SWIG_IsOK(ecode2)) { | |
19005 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'"); | |
19006 | } | |
19007 | arg2 = static_cast< size_t >(val2); | |
19008 | { | |
19009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19010 | result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2); | |
19011 | wxPyEndAllowThreads(__tstate); | |
19012 | if (PyErr_Occurred()) SWIG_fail; | |
19013 | } | |
19014 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19015 | return resultobj; | |
19016 | fail: | |
19017 | return NULL; | |
19018 | } | |
19019 | ||
19020 | ||
19021 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19022 | PyObject *resultobj = 0; | |
19023 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19024 | size_t arg2 ; | |
19025 | int arg3 ; | |
19026 | bool result; | |
19027 | void *argp1 = 0 ; | |
19028 | int res1 = 0 ; | |
19029 | size_t val2 ; | |
19030 | int ecode2 = 0 ; | |
19031 | int val3 ; | |
19032 | int ecode3 = 0 ; | |
19033 | PyObject * obj0 = 0 ; | |
19034 | PyObject * obj1 = 0 ; | |
19035 | PyObject * obj2 = 0 ; | |
19036 | char * kwnames[] = { | |
19037 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
19038 | }; | |
19039 | ||
19040 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19041 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19042 | if (!SWIG_IsOK(res1)) { | |
19043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19044 | } | |
19045 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19046 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19047 | if (!SWIG_IsOK(ecode2)) { | |
19048 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'"); | |
19049 | } | |
19050 | arg2 = static_cast< size_t >(val2); | |
19051 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19052 | if (!SWIG_IsOK(ecode3)) { | |
19053 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'"); | |
19054 | } | |
19055 | arg3 = static_cast< int >(val3); | |
19056 | { | |
19057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19058 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
19059 | wxPyEndAllowThreads(__tstate); | |
19060 | if (PyErr_Occurred()) SWIG_fail; | |
19061 | } | |
19062 | { | |
19063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19064 | } | |
19065 | return resultobj; | |
19066 | fail: | |
19067 | return NULL; | |
19068 | } | |
19069 | ||
19070 | ||
19071 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19072 | PyObject *resultobj = 0; | |
19073 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19074 | wxSize *arg2 = 0 ; | |
19075 | void *argp1 = 0 ; | |
19076 | int res1 = 0 ; | |
19077 | wxSize temp2 ; | |
19078 | PyObject * obj0 = 0 ; | |
19079 | PyObject * obj1 = 0 ; | |
19080 | char * kwnames[] = { | |
19081 | (char *) "self",(char *) "size", NULL | |
19082 | }; | |
19083 | ||
19084 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
19085 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19086 | if (!SWIG_IsOK(res1)) { | |
19087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19088 | } | |
19089 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19090 | { | |
19091 | arg2 = &temp2; | |
19092 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19093 | } | |
19094 | { | |
19095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19096 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
19097 | wxPyEndAllowThreads(__tstate); | |
19098 | if (PyErr_Occurred()) SWIG_fail; | |
19099 | } | |
19100 | resultobj = SWIG_Py_Void(); | |
19101 | return resultobj; | |
19102 | fail: | |
19103 | return NULL; | |
19104 | } | |
19105 | ||
19106 | ||
19107 | SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19108 | PyObject *resultobj = 0; | |
19109 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19110 | wxSize *arg2 = 0 ; | |
19111 | wxSize result; | |
19112 | void *argp1 = 0 ; | |
19113 | int res1 = 0 ; | |
19114 | wxSize temp2 ; | |
19115 | PyObject * obj0 = 0 ; | |
19116 | PyObject * obj1 = 0 ; | |
19117 | char * kwnames[] = { | |
19118 | (char *) "self",(char *) "sizePage", NULL | |
19119 | }; | |
19120 | ||
19121 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19122 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19123 | if (!SWIG_IsOK(res1)) { | |
19124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19125 | } | |
19126 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19127 | { | |
19128 | arg2 = &temp2; | |
19129 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19130 | } | |
19131 | { | |
19132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19133 | result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
19134 | wxPyEndAllowThreads(__tstate); | |
19135 | if (PyErr_Occurred()) SWIG_fail; | |
19136 | } | |
19137 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
19138 | return resultobj; | |
19139 | fail: | |
19140 | return NULL; | |
d55e5bfc RD |
19141 | } |
19142 | ||
19143 | ||
1bd55598 RD |
19144 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19145 | PyObject *resultobj = 0; | |
19146 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
1c71765a | 19147 | size_t result; |
1bd55598 RD |
19148 | void *argp1 = 0 ; |
19149 | int res1 = 0 ; | |
19150 | PyObject *swig_obj[1] ; | |
19151 | ||
19152 | if (!args) SWIG_fail; | |
19153 | swig_obj[0] = args; | |
19154 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19155 | if (!SWIG_IsOK(res1)) { | |
19156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19157 | } | |
19158 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19159 | { | |
19160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1c71765a | 19161 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetInternalBorder(); |
1bd55598 RD |
19162 | wxPyEndAllowThreads(__tstate); |
19163 | if (PyErr_Occurred()) SWIG_fail; | |
19164 | } | |
1c71765a | 19165 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); |
1bd55598 RD |
19166 | return resultobj; |
19167 | fail: | |
19168 | return NULL; | |
19169 | } | |
19170 | ||
19171 | ||
19172 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19173 | PyObject *resultobj = 0; | |
19174 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
1c71765a | 19175 | size_t arg2 ; |
1bd55598 RD |
19176 | void *argp1 = 0 ; |
19177 | int res1 = 0 ; | |
1c71765a | 19178 | size_t val2 ; |
1bd55598 RD |
19179 | int ecode2 = 0 ; |
19180 | PyObject * obj0 = 0 ; | |
19181 | PyObject * obj1 = 0 ; | |
19182 | char * kwnames[] = { | |
19183 | (char *) "self",(char *) "internalBorder", NULL | |
19184 | }; | |
19185 | ||
19186 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail; | |
19187 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19188 | if (!SWIG_IsOK(res1)) { | |
19189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19190 | } | |
19191 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
1c71765a | 19192 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); |
1bd55598 | 19193 | if (!SWIG_IsOK(ecode2)) { |
1c71765a | 19194 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "size_t""'"); |
1bd55598 | 19195 | } |
1c71765a | 19196 | arg2 = static_cast< size_t >(val2); |
1bd55598 RD |
19197 | { |
19198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19199 | (arg1)->SetInternalBorder(arg2); | |
19200 | wxPyEndAllowThreads(__tstate); | |
19201 | if (PyErr_Occurred()) SWIG_fail; | |
19202 | } | |
19203 | resultobj = SWIG_Py_Void(); | |
19204 | return resultobj; | |
19205 | fail: | |
19206 | return NULL; | |
d55e5bfc RD |
19207 | } |
19208 | ||
19209 | ||
1bd55598 RD |
19210 | SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19211 | PyObject *resultobj = 0; | |
19212 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19213 | bool result; | |
19214 | void *argp1 = 0 ; | |
19215 | int res1 = 0 ; | |
19216 | PyObject *swig_obj[1] ; | |
19217 | ||
19218 | if (!args) SWIG_fail; | |
19219 | swig_obj[0] = args; | |
19220 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19221 | if (!SWIG_IsOK(res1)) { | |
19222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19223 | } | |
19224 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19225 | { | |
19226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19227 | result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical(); | |
19228 | wxPyEndAllowThreads(__tstate); | |
19229 | if (PyErr_Occurred()) SWIG_fail; | |
19230 | } | |
19231 | { | |
19232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19233 | } | |
19234 | return resultobj; | |
19235 | fail: | |
19236 | return NULL; | |
19237 | } | |
19238 | ||
19239 | ||
19240 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19241 | PyObject *resultobj = 0; | |
19242 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19243 | bool arg2 ; | |
19244 | void *argp1 = 0 ; | |
19245 | int res1 = 0 ; | |
19246 | bool val2 ; | |
19247 | int ecode2 = 0 ; | |
19248 | PyObject * obj0 = 0 ; | |
19249 | PyObject * obj1 = 0 ; | |
19250 | char * kwnames[] = { | |
19251 | (char *) "self",(char *) "fit", NULL | |
19252 | }; | |
19253 | ||
19254 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19255 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19256 | if (!SWIG_IsOK(res1)) { | |
19257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19258 | } | |
19259 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19260 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19261 | if (!SWIG_IsOK(ecode2)) { | |
19262 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'"); | |
19263 | } | |
19264 | arg2 = static_cast< bool >(val2); | |
19265 | { | |
19266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19267 | (arg1)->SetFitToCurrentPage(arg2); | |
19268 | wxPyEndAllowThreads(__tstate); | |
19269 | if (PyErr_Occurred()) SWIG_fail; | |
19270 | } | |
19271 | resultobj = SWIG_Py_Void(); | |
19272 | return resultobj; | |
19273 | fail: | |
19274 | return NULL; | |
d55e5bfc RD |
19275 | } |
19276 | ||
19277 | ||
1bd55598 RD |
19278 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19279 | PyObject *resultobj = 0; | |
19280 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19281 | bool result; | |
19282 | void *argp1 = 0 ; | |
19283 | int res1 = 0 ; | |
19284 | PyObject *swig_obj[1] ; | |
19285 | ||
19286 | if (!args) SWIG_fail; | |
19287 | swig_obj[0] = args; | |
19288 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19289 | if (!SWIG_IsOK(res1)) { | |
19290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19291 | } | |
19292 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19293 | { | |
19294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19295 | result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage(); | |
19296 | wxPyEndAllowThreads(__tstate); | |
19297 | if (PyErr_Occurred()) SWIG_fail; | |
19298 | } | |
19299 | { | |
19300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19301 | } | |
19302 | return resultobj; | |
19303 | fail: | |
19304 | return NULL; | |
19305 | } | |
19306 | ||
19307 | ||
19308 | SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19309 | PyObject *resultobj = 0; | |
19310 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19311 | size_t arg2 ; | |
19312 | bool result; | |
19313 | void *argp1 = 0 ; | |
19314 | int res1 = 0 ; | |
19315 | size_t val2 ; | |
19316 | int ecode2 = 0 ; | |
19317 | PyObject * obj0 = 0 ; | |
19318 | PyObject * obj1 = 0 ; | |
19319 | char * kwnames[] = { | |
19320 | (char *) "self",(char *) "n", NULL | |
19321 | }; | |
19322 | ||
19323 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19324 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19325 | if (!SWIG_IsOK(res1)) { | |
19326 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19327 | } | |
19328 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19329 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19330 | if (!SWIG_IsOK(ecode2)) { | |
19331 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'"); | |
19332 | } | |
19333 | arg2 = static_cast< size_t >(val2); | |
19334 | { | |
19335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19336 | result = (bool)(arg1)->DeletePage(arg2); | |
19337 | wxPyEndAllowThreads(__tstate); | |
19338 | if (PyErr_Occurred()) SWIG_fail; | |
19339 | } | |
19340 | { | |
19341 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19342 | } | |
19343 | return resultobj; | |
19344 | fail: | |
19345 | return NULL; | |
19346 | } | |
19347 | ||
19348 | ||
19349 | SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19350 | PyObject *resultobj = 0; | |
19351 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19352 | size_t arg2 ; | |
19353 | bool result; | |
19354 | void *argp1 = 0 ; | |
19355 | int res1 = 0 ; | |
19356 | size_t val2 ; | |
19357 | int ecode2 = 0 ; | |
19358 | PyObject * obj0 = 0 ; | |
19359 | PyObject * obj1 = 0 ; | |
19360 | char * kwnames[] = { | |
19361 | (char *) "self",(char *) "n", NULL | |
19362 | }; | |
19363 | ||
19364 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19365 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19366 | if (!SWIG_IsOK(res1)) { | |
19367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19368 | } | |
19369 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19370 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19371 | if (!SWIG_IsOK(ecode2)) { | |
19372 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'"); | |
19373 | } | |
19374 | arg2 = static_cast< size_t >(val2); | |
19375 | { | |
19376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19377 | result = (bool)(arg1)->RemovePage(arg2); | |
19378 | wxPyEndAllowThreads(__tstate); | |
19379 | if (PyErr_Occurred()) SWIG_fail; | |
19380 | } | |
19381 | { | |
19382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19383 | } | |
19384 | return resultobj; | |
19385 | fail: | |
19386 | return NULL; | |
f20a2e1f RD |
19387 | } |
19388 | ||
19389 | ||
1bd55598 RD |
19390 | SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19391 | PyObject *resultobj = 0; | |
19392 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19393 | bool result; | |
19394 | void *argp1 = 0 ; | |
19395 | int res1 = 0 ; | |
19396 | PyObject *swig_obj[1] ; | |
19397 | ||
19398 | if (!args) SWIG_fail; | |
19399 | swig_obj[0] = args; | |
19400 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19401 | if (!SWIG_IsOK(res1)) { | |
19402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19403 | } | |
19404 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19405 | { | |
19406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19407 | result = (bool)(arg1)->DeleteAllPages(); | |
19408 | wxPyEndAllowThreads(__tstate); | |
19409 | if (PyErr_Occurred()) SWIG_fail; | |
19410 | } | |
19411 | { | |
19412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19413 | } | |
19414 | return resultobj; | |
19415 | fail: | |
19416 | return NULL; | |
19417 | } | |
19418 | ||
19419 | ||
19420 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19421 | PyObject *resultobj = 0; | |
19422 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19423 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19424 | wxString *arg3 = 0 ; | |
19425 | bool arg4 = (bool) false ; | |
19426 | int arg5 = (int) -1 ; | |
19427 | bool result; | |
19428 | void *argp1 = 0 ; | |
19429 | int res1 = 0 ; | |
19430 | void *argp2 = 0 ; | |
19431 | int res2 = 0 ; | |
19432 | bool temp3 = false ; | |
19433 | bool val4 ; | |
19434 | int ecode4 = 0 ; | |
19435 | int val5 ; | |
19436 | int ecode5 = 0 ; | |
19437 | PyObject * obj0 = 0 ; | |
19438 | PyObject * obj1 = 0 ; | |
19439 | PyObject * obj2 = 0 ; | |
19440 | PyObject * obj3 = 0 ; | |
19441 | PyObject * obj4 = 0 ; | |
19442 | char * kwnames[] = { | |
19443 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
19444 | }; | |
19445 | ||
19446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19450 | } | |
19451 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19452 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19453 | if (!SWIG_IsOK(res2)) { | |
19454 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
19455 | } | |
19456 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
19457 | { | |
19458 | arg3 = wxString_in_helper(obj2); | |
19459 | if (arg3 == NULL) SWIG_fail; | |
19460 | temp3 = true; | |
19461 | } | |
19462 | if (obj3) { | |
19463 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
19464 | if (!SWIG_IsOK(ecode4)) { | |
19465 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'"); | |
19466 | } | |
19467 | arg4 = static_cast< bool >(val4); | |
19468 | } | |
19469 | if (obj4) { | |
19470 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19471 | if (!SWIG_IsOK(ecode5)) { | |
19472 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'"); | |
19473 | } | |
19474 | arg5 = static_cast< int >(val5); | |
19475 | } | |
19476 | { | |
19477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19478 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
19479 | wxPyEndAllowThreads(__tstate); | |
19480 | if (PyErr_Occurred()) SWIG_fail; | |
19481 | } | |
19482 | { | |
19483 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19484 | } | |
19485 | { | |
19486 | if (temp3) | |
19487 | delete arg3; | |
19488 | } | |
19489 | return resultobj; | |
19490 | fail: | |
19491 | { | |
19492 | if (temp3) | |
19493 | delete arg3; | |
19494 | } | |
19495 | return NULL; | |
19496 | } | |
19497 | ||
19498 | ||
19499 | SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19500 | PyObject *resultobj = 0; | |
19501 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19502 | size_t arg2 ; | |
19503 | wxWindow *arg3 = (wxWindow *) 0 ; | |
19504 | wxString *arg4 = 0 ; | |
19505 | bool arg5 = (bool) false ; | |
19506 | int arg6 = (int) -1 ; | |
19507 | bool result; | |
19508 | void *argp1 = 0 ; | |
19509 | int res1 = 0 ; | |
19510 | size_t val2 ; | |
19511 | int ecode2 = 0 ; | |
19512 | void *argp3 = 0 ; | |
19513 | int res3 = 0 ; | |
19514 | bool temp4 = false ; | |
19515 | bool val5 ; | |
19516 | int ecode5 = 0 ; | |
19517 | int val6 ; | |
19518 | int ecode6 = 0 ; | |
19519 | PyObject * obj0 = 0 ; | |
19520 | PyObject * obj1 = 0 ; | |
19521 | PyObject * obj2 = 0 ; | |
19522 | PyObject * obj3 = 0 ; | |
19523 | PyObject * obj4 = 0 ; | |
19524 | PyObject * obj5 = 0 ; | |
19525 | char * kwnames[] = { | |
19526 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
19527 | }; | |
19528 | ||
19529 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
19530 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19531 | if (!SWIG_IsOK(res1)) { | |
19532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19533 | } | |
19534 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19535 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19536 | if (!SWIG_IsOK(ecode2)) { | |
19537 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'"); | |
19538 | } | |
19539 | arg2 = static_cast< size_t >(val2); | |
19540 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19541 | if (!SWIG_IsOK(res3)) { | |
19542 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
19543 | } | |
19544 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
19545 | { | |
19546 | arg4 = wxString_in_helper(obj3); | |
19547 | if (arg4 == NULL) SWIG_fail; | |
19548 | temp4 = true; | |
19549 | } | |
19550 | if (obj4) { | |
19551 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
19552 | if (!SWIG_IsOK(ecode5)) { | |
19553 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'"); | |
19554 | } | |
19555 | arg5 = static_cast< bool >(val5); | |
19556 | } | |
19557 | if (obj5) { | |
19558 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
19559 | if (!SWIG_IsOK(ecode6)) { | |
19560 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'"); | |
19561 | } | |
19562 | arg6 = static_cast< int >(val6); | |
19563 | } | |
19564 | { | |
19565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19566 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
19567 | wxPyEndAllowThreads(__tstate); | |
19568 | if (PyErr_Occurred()) SWIG_fail; | |
19569 | } | |
19570 | { | |
19571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19572 | } | |
19573 | { | |
19574 | if (temp4) | |
19575 | delete arg4; | |
19576 | } | |
19577 | return resultobj; | |
19578 | fail: | |
19579 | { | |
19580 | if (temp4) | |
19581 | delete arg4; | |
19582 | } | |
19583 | return NULL; | |
19584 | } | |
19585 | ||
19586 | ||
19587 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19588 | PyObject *resultobj = 0; | |
19589 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19590 | size_t arg2 ; | |
19591 | int result; | |
19592 | void *argp1 = 0 ; | |
19593 | int res1 = 0 ; | |
19594 | size_t val2 ; | |
19595 | int ecode2 = 0 ; | |
19596 | PyObject * obj0 = 0 ; | |
19597 | PyObject * obj1 = 0 ; | |
19598 | char * kwnames[] = { | |
19599 | (char *) "self",(char *) "n", NULL | |
19600 | }; | |
19601 | ||
19602 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
19603 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19604 | if (!SWIG_IsOK(res1)) { | |
19605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19606 | } | |
19607 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19608 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19609 | if (!SWIG_IsOK(ecode2)) { | |
19610 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'"); | |
19611 | } | |
19612 | arg2 = static_cast< size_t >(val2); | |
19613 | { | |
19614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19615 | result = (int)(arg1)->SetSelection(arg2); | |
19616 | wxPyEndAllowThreads(__tstate); | |
19617 | if (PyErr_Occurred()) SWIG_fail; | |
19618 | } | |
19619 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19620 | return resultobj; | |
19621 | fail: | |
19622 | return NULL; | |
19623 | } | |
19624 | ||
19625 | ||
19626 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19627 | PyObject *resultobj = 0; | |
19628 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19629 | bool arg2 = (bool) true ; | |
19630 | void *argp1 = 0 ; | |
19631 | int res1 = 0 ; | |
19632 | bool val2 ; | |
19633 | int ecode2 = 0 ; | |
19634 | PyObject * obj0 = 0 ; | |
19635 | PyObject * obj1 = 0 ; | |
19636 | char * kwnames[] = { | |
19637 | (char *) "self",(char *) "forward", NULL | |
19638 | }; | |
19639 | ||
19640 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
19641 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19642 | if (!SWIG_IsOK(res1)) { | |
19643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19644 | } | |
19645 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19646 | if (obj1) { | |
19647 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19648 | if (!SWIG_IsOK(ecode2)) { | |
19649 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'"); | |
19650 | } | |
19651 | arg2 = static_cast< bool >(val2); | |
19652 | } | |
19653 | { | |
19654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19655 | (arg1)->AdvanceSelection(arg2); | |
19656 | wxPyEndAllowThreads(__tstate); | |
19657 | if (PyErr_Occurred()) SWIG_fail; | |
19658 | } | |
19659 | resultobj = SWIG_Py_Void(); | |
19660 | return resultobj; | |
19661 | fail: | |
19662 | return NULL; | |
19663 | } | |
19664 | ||
19665 | ||
19666 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19667 | PyObject *resultobj = 0; | |
19668 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
19669 | SwigValueWrapper<wxVisualAttributes > result; | |
19670 | int val1 ; | |
19671 | int ecode1 = 0 ; | |
19672 | PyObject * obj0 = 0 ; | |
19673 | char * kwnames[] = { | |
19674 | (char *) "variant", NULL | |
19675 | }; | |
19676 | ||
19677 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
19678 | if (obj0) { | |
19679 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19680 | if (!SWIG_IsOK(ecode1)) { | |
19681 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
19682 | } | |
19683 | arg1 = static_cast< wxWindowVariant >(val1); | |
19684 | } | |
19685 | { | |
19686 | if (!wxPyCheckForApp()) SWIG_fail; | |
19687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19688 | result = wxBookCtrlBase::GetClassDefaultAttributes(arg1); | |
19689 | wxPyEndAllowThreads(__tstate); | |
19690 | if (PyErr_Occurred()) SWIG_fail; | |
19691 | } | |
19692 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
19693 | return resultobj; | |
19694 | fail: | |
19695 | return NULL; | |
19696 | } | |
19697 | ||
19698 | ||
19699 | SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19700 | PyObject *obj; | |
19701 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19702 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj)); | |
19703 | return SWIG_Py_Void(); | |
19704 | } | |
19705 | ||
19706 | SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19707 | PyObject *resultobj = 0; | |
19708 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19709 | int arg2 = (int) 0 ; | |
19710 | int arg3 = (int) -1 ; | |
19711 | int arg4 = (int) -1 ; | |
19712 | wxBookCtrlBaseEvent *result = 0 ; | |
19713 | int val1 ; | |
19714 | int ecode1 = 0 ; | |
19715 | int val2 ; | |
19716 | int ecode2 = 0 ; | |
19717 | int val3 ; | |
19718 | int ecode3 = 0 ; | |
19719 | int val4 ; | |
19720 | int ecode4 = 0 ; | |
19721 | PyObject * obj0 = 0 ; | |
19722 | PyObject * obj1 = 0 ; | |
19723 | PyObject * obj2 = 0 ; | |
19724 | PyObject * obj3 = 0 ; | |
19725 | char * kwnames[] = { | |
19726 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
19727 | }; | |
19728 | ||
19729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19730 | if (obj0) { | |
19731 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19732 | if (!SWIG_IsOK(ecode1)) { | |
19733 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
19734 | } | |
19735 | arg1 = static_cast< wxEventType >(val1); | |
19736 | } | |
19737 | if (obj1) { | |
19738 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19739 | if (!SWIG_IsOK(ecode2)) { | |
19740 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'"); | |
19741 | } | |
19742 | arg2 = static_cast< int >(val2); | |
19743 | } | |
19744 | if (obj2) { | |
19745 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19746 | if (!SWIG_IsOK(ecode3)) { | |
19747 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'"); | |
19748 | } | |
19749 | arg3 = static_cast< int >(val3); | |
19750 | } | |
19751 | if (obj3) { | |
19752 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19753 | if (!SWIG_IsOK(ecode4)) { | |
19754 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'"); | |
19755 | } | |
19756 | arg4 = static_cast< int >(val4); | |
19757 | } | |
19758 | { | |
19759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19760 | result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4); | |
19761 | wxPyEndAllowThreads(__tstate); | |
19762 | if (PyErr_Occurred()) SWIG_fail; | |
19763 | } | |
19764 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 ); | |
19765 | return resultobj; | |
19766 | fail: | |
19767 | return NULL; | |
d55e5bfc RD |
19768 | } |
19769 | ||
19770 | ||
1bd55598 RD |
19771 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19772 | PyObject *resultobj = 0; | |
19773 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
19774 | int result; | |
19775 | void *argp1 = 0 ; | |
19776 | int res1 = 0 ; | |
19777 | PyObject *swig_obj[1] ; | |
19778 | ||
19779 | if (!args) SWIG_fail; | |
19780 | swig_obj[0] = args; | |
19781 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
19782 | if (!SWIG_IsOK(res1)) { | |
19783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'"); | |
19784 | } | |
19785 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
19786 | { | |
19787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19788 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection(); | |
19789 | wxPyEndAllowThreads(__tstate); | |
19790 | if (PyErr_Occurred()) SWIG_fail; | |
19791 | } | |
19792 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19793 | return resultobj; | |
19794 | fail: | |
19795 | return NULL; | |
19796 | } | |
19797 | ||
19798 | ||
19799 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19800 | PyObject *resultobj = 0; | |
19801 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
19802 | int arg2 ; | |
19803 | void *argp1 = 0 ; | |
19804 | int res1 = 0 ; | |
19805 | int val2 ; | |
19806 | int ecode2 = 0 ; | |
19807 | PyObject * obj0 = 0 ; | |
19808 | PyObject * obj1 = 0 ; | |
19809 | char * kwnames[] = { | |
19810 | (char *) "self",(char *) "nSel", NULL | |
19811 | }; | |
19812 | ||
19813 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
19814 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
19815 | if (!SWIG_IsOK(res1)) { | |
19816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'"); | |
19817 | } | |
19818 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
19819 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19820 | if (!SWIG_IsOK(ecode2)) { | |
19821 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
19822 | } | |
19823 | arg2 = static_cast< int >(val2); | |
19824 | { | |
19825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19826 | (arg1)->SetSelection(arg2); | |
19827 | wxPyEndAllowThreads(__tstate); | |
19828 | if (PyErr_Occurred()) SWIG_fail; | |
19829 | } | |
19830 | resultobj = SWIG_Py_Void(); | |
19831 | return resultobj; | |
19832 | fail: | |
19833 | return NULL; | |
d55e5bfc RD |
19834 | } |
19835 | ||
19836 | ||
1bd55598 RD |
19837 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19838 | PyObject *resultobj = 0; | |
19839 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
19840 | int result; | |
19841 | void *argp1 = 0 ; | |
19842 | int res1 = 0 ; | |
19843 | PyObject *swig_obj[1] ; | |
19844 | ||
19845 | if (!args) SWIG_fail; | |
19846 | swig_obj[0] = args; | |
19847 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
19848 | if (!SWIG_IsOK(res1)) { | |
19849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'"); | |
19850 | } | |
19851 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
19852 | { | |
19853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19854 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection(); | |
19855 | wxPyEndAllowThreads(__tstate); | |
19856 | if (PyErr_Occurred()) SWIG_fail; | |
19857 | } | |
19858 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19859 | return resultobj; | |
19860 | fail: | |
19861 | return NULL; | |
19862 | } | |
19863 | ||
19864 | ||
19865 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19866 | PyObject *resultobj = 0; | |
19867 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
19868 | int arg2 ; | |
19869 | void *argp1 = 0 ; | |
19870 | int res1 = 0 ; | |
19871 | int val2 ; | |
19872 | int ecode2 = 0 ; | |
19873 | PyObject * obj0 = 0 ; | |
19874 | PyObject * obj1 = 0 ; | |
19875 | char * kwnames[] = { | |
19876 | (char *) "self",(char *) "nOldSel", NULL | |
19877 | }; | |
19878 | ||
19879 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
19880 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
19881 | if (!SWIG_IsOK(res1)) { | |
19882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'"); | |
19883 | } | |
19884 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
19885 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19886 | if (!SWIG_IsOK(ecode2)) { | |
19887 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'"); | |
19888 | } | |
19889 | arg2 = static_cast< int >(val2); | |
19890 | { | |
19891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19892 | (arg1)->SetOldSelection(arg2); | |
19893 | wxPyEndAllowThreads(__tstate); | |
19894 | if (PyErr_Occurred()) SWIG_fail; | |
19895 | } | |
19896 | resultobj = SWIG_Py_Void(); | |
19897 | return resultobj; | |
19898 | fail: | |
19899 | return NULL; | |
19900 | } | |
19901 | ||
19902 | ||
19903 | SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19904 | PyObject *obj; | |
19905 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19906 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj)); | |
19907 | return SWIG_Py_Void(); | |
19908 | } | |
19909 | ||
19910 | SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19911 | return SWIG_Python_InitShadowInstance(args); | |
19912 | } | |
19913 | ||
19914 | SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19915 | PyObject *resultobj = 0; | |
19916 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19917 | int arg2 = (int) -1 ; | |
19918 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
19919 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19920 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19921 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19922 | long arg5 = (long) 0 ; | |
19923 | wxString const &arg6_defvalue = wxPyNotebookNameStr ; | |
19924 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
19925 | wxNotebook *result = 0 ; | |
19926 | void *argp1 = 0 ; | |
19927 | int res1 = 0 ; | |
19928 | int val2 ; | |
19929 | int ecode2 = 0 ; | |
19930 | wxPoint temp3 ; | |
19931 | wxSize temp4 ; | |
19932 | long val5 ; | |
19933 | int ecode5 = 0 ; | |
19934 | bool temp6 = false ; | |
19935 | PyObject * obj0 = 0 ; | |
19936 | PyObject * obj1 = 0 ; | |
19937 | PyObject * obj2 = 0 ; | |
19938 | PyObject * obj3 = 0 ; | |
19939 | PyObject * obj4 = 0 ; | |
19940 | PyObject * obj5 = 0 ; | |
19941 | char * kwnames[] = { | |
19942 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
19943 | }; | |
19944 | ||
19945 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
19946 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19947 | if (!SWIG_IsOK(res1)) { | |
19948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
19949 | } | |
19950 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
19951 | if (obj1) { | |
19952 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19953 | if (!SWIG_IsOK(ecode2)) { | |
19954 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'"); | |
19955 | } | |
19956 | arg2 = static_cast< int >(val2); | |
19957 | } | |
19958 | if (obj2) { | |
19959 | { | |
19960 | arg3 = &temp3; | |
19961 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 19962 | } |
1bd55598 RD |
19963 | } |
19964 | if (obj3) { | |
d55e5bfc | 19965 | { |
1bd55598 RD |
19966 | arg4 = &temp4; |
19967 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 19968 | } |
1bd55598 RD |
19969 | } |
19970 | if (obj4) { | |
19971 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
19972 | if (!SWIG_IsOK(ecode5)) { | |
19973 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'"); | |
19974 | } | |
19975 | arg5 = static_cast< long >(val5); | |
19976 | } | |
19977 | if (obj5) { | |
d55e5bfc | 19978 | { |
1bd55598 RD |
19979 | arg6 = wxString_in_helper(obj5); |
19980 | if (arg6 == NULL) SWIG_fail; | |
19981 | temp6 = true; | |
d55e5bfc | 19982 | } |
1bd55598 RD |
19983 | } |
19984 | { | |
19985 | if (!wxPyCheckForApp()) SWIG_fail; | |
19986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19987 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
19988 | wxPyEndAllowThreads(__tstate); | |
19989 | if (PyErr_Occurred()) SWIG_fail; | |
19990 | } | |
19991 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 ); | |
19992 | { | |
19993 | if (temp6) | |
19994 | delete arg6; | |
19995 | } | |
19996 | return resultobj; | |
19997 | fail: | |
19998 | { | |
19999 | if (temp6) | |
20000 | delete arg6; | |
20001 | } | |
20002 | return NULL; | |
20003 | } | |
20004 | ||
20005 | ||
20006 | SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20007 | PyObject *resultobj = 0; | |
20008 | wxNotebook *result = 0 ; | |
20009 | ||
20010 | if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail; | |
20011 | { | |
20012 | if (!wxPyCheckForApp()) SWIG_fail; | |
20013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20014 | result = (wxNotebook *)new wxNotebook(); | |
20015 | wxPyEndAllowThreads(__tstate); | |
20016 | if (PyErr_Occurred()) SWIG_fail; | |
20017 | } | |
20018 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 ); | |
20019 | return resultobj; | |
20020 | fail: | |
20021 | return NULL; | |
20022 | } | |
20023 | ||
20024 | ||
20025 | SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20026 | PyObject *resultobj = 0; | |
20027 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20028 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20029 | int arg3 = (int) -1 ; | |
20030 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20031 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20032 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20033 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20034 | long arg6 = (long) 0 ; | |
20035 | wxString const &arg7_defvalue = wxPyNotebookNameStr ; | |
20036 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20037 | bool result; | |
20038 | void *argp1 = 0 ; | |
20039 | int res1 = 0 ; | |
20040 | void *argp2 = 0 ; | |
20041 | int res2 = 0 ; | |
20042 | int val3 ; | |
20043 | int ecode3 = 0 ; | |
20044 | wxPoint temp4 ; | |
20045 | wxSize temp5 ; | |
20046 | long val6 ; | |
20047 | int ecode6 = 0 ; | |
20048 | bool temp7 = false ; | |
20049 | PyObject * obj0 = 0 ; | |
20050 | PyObject * obj1 = 0 ; | |
20051 | PyObject * obj2 = 0 ; | |
20052 | PyObject * obj3 = 0 ; | |
20053 | PyObject * obj4 = 0 ; | |
20054 | PyObject * obj5 = 0 ; | |
20055 | PyObject * obj6 = 0 ; | |
20056 | char * kwnames[] = { | |
20057 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20058 | }; | |
20059 | ||
20060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20061 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20062 | if (!SWIG_IsOK(res1)) { | |
20063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20064 | } | |
20065 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20066 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20067 | if (!SWIG_IsOK(res2)) { | |
20068 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20069 | } | |
20070 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20071 | if (obj2) { | |
20072 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20073 | if (!SWIG_IsOK(ecode3)) { | |
20074 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
20075 | } | |
20076 | arg3 = static_cast< int >(val3); | |
20077 | } | |
20078 | if (obj3) { | |
d55e5bfc | 20079 | { |
1bd55598 RD |
20080 | arg4 = &temp4; |
20081 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 20082 | } |
1bd55598 RD |
20083 | } |
20084 | if (obj4) { | |
d55e5bfc | 20085 | { |
1bd55598 RD |
20086 | arg5 = &temp5; |
20087 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 20088 | } |
1bd55598 RD |
20089 | } |
20090 | if (obj5) { | |
20091 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20092 | if (!SWIG_IsOK(ecode6)) { | |
20093 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
20094 | } | |
20095 | arg6 = static_cast< long >(val6); | |
20096 | } | |
20097 | if (obj6) { | |
d55e5bfc | 20098 | { |
1bd55598 RD |
20099 | arg7 = wxString_in_helper(obj6); |
20100 | if (arg7 == NULL) SWIG_fail; | |
20101 | temp7 = true; | |
d55e5bfc | 20102 | } |
1bd55598 RD |
20103 | } |
20104 | { | |
20105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20106 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20107 | wxPyEndAllowThreads(__tstate); | |
20108 | if (PyErr_Occurred()) SWIG_fail; | |
20109 | } | |
20110 | { | |
20111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20112 | } | |
20113 | { | |
20114 | if (temp7) | |
20115 | delete arg7; | |
20116 | } | |
20117 | return resultobj; | |
20118 | fail: | |
20119 | { | |
20120 | if (temp7) | |
20121 | delete arg7; | |
20122 | } | |
20123 | return NULL; | |
d55e5bfc RD |
20124 | } |
20125 | ||
20126 | ||
1bd55598 RD |
20127 | SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20128 | PyObject *resultobj = 0; | |
20129 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20130 | int result; | |
20131 | void *argp1 = 0 ; | |
20132 | int res1 = 0 ; | |
20133 | PyObject *swig_obj[1] ; | |
20134 | ||
20135 | if (!args) SWIG_fail; | |
20136 | swig_obj[0] = args; | |
20137 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20138 | if (!SWIG_IsOK(res1)) { | |
20139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'"); | |
20140 | } | |
20141 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20142 | { | |
20143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20144 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
20145 | wxPyEndAllowThreads(__tstate); | |
20146 | if (PyErr_Occurred()) SWIG_fail; | |
20147 | } | |
20148 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20149 | return resultobj; | |
20150 | fail: | |
20151 | return NULL; | |
20152 | } | |
20153 | ||
20154 | ||
20155 | SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20156 | PyObject *resultobj = 0; | |
20157 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20158 | wxSize *arg2 = 0 ; | |
20159 | void *argp1 = 0 ; | |
20160 | int res1 = 0 ; | |
20161 | wxSize temp2 ; | |
20162 | PyObject * obj0 = 0 ; | |
20163 | PyObject * obj1 = 0 ; | |
20164 | char * kwnames[] = { | |
20165 | (char *) "self",(char *) "padding", NULL | |
20166 | }; | |
20167 | ||
20168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail; | |
20169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20170 | if (!SWIG_IsOK(res1)) { | |
20171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20172 | } | |
20173 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20174 | { | |
20175 | arg2 = &temp2; | |
20176 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20177 | } | |
20178 | { | |
20179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20180 | (arg1)->SetPadding((wxSize const &)*arg2); | |
20181 | wxPyEndAllowThreads(__tstate); | |
20182 | if (PyErr_Occurred()) SWIG_fail; | |
20183 | } | |
20184 | resultobj = SWIG_Py_Void(); | |
20185 | return resultobj; | |
20186 | fail: | |
20187 | return NULL; | |
20188 | } | |
20189 | ||
20190 | ||
20191 | SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20192 | PyObject *resultobj = 0; | |
20193 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20194 | wxSize *arg2 = 0 ; | |
20195 | void *argp1 = 0 ; | |
20196 | int res1 = 0 ; | |
20197 | wxSize temp2 ; | |
20198 | PyObject * obj0 = 0 ; | |
20199 | PyObject * obj1 = 0 ; | |
20200 | char * kwnames[] = { | |
20201 | (char *) "self",(char *) "sz", NULL | |
20202 | }; | |
20203 | ||
20204 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
20205 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20206 | if (!SWIG_IsOK(res1)) { | |
20207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20208 | } | |
20209 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20210 | { | |
20211 | arg2 = &temp2; | |
20212 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20213 | } | |
20214 | { | |
20215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20216 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
20217 | wxPyEndAllowThreads(__tstate); | |
20218 | if (PyErr_Occurred()) SWIG_fail; | |
20219 | } | |
20220 | resultobj = SWIG_Py_Void(); | |
20221 | return resultobj; | |
20222 | fail: | |
20223 | return NULL; | |
20224 | } | |
20225 | ||
20226 | ||
20227 | SWIGINTERN PyObject *_wrap_Notebook_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20228 | PyObject *resultobj = 0; | |
20229 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20230 | wxPoint *arg2 = 0 ; | |
20231 | long *arg3 = (long *) 0 ; | |
20232 | int result; | |
20233 | void *argp1 = 0 ; | |
20234 | int res1 = 0 ; | |
20235 | wxPoint temp2 ; | |
20236 | long temp3 ; | |
20237 | int res3 = SWIG_TMPOBJ ; | |
20238 | PyObject * obj0 = 0 ; | |
20239 | PyObject * obj1 = 0 ; | |
20240 | char * kwnames[] = { | |
20241 | (char *) "self",(char *) "pt", NULL | |
20242 | }; | |
20243 | ||
20244 | arg3 = &temp3; | |
20245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
20246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20247 | if (!SWIG_IsOK(res1)) { | |
20248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_HitTest" "', expected argument " "1"" of type '" "wxNotebook const *""'"); | |
20249 | } | |
20250 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20251 | { | |
20252 | arg2 = &temp2; | |
20253 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20254 | } | |
20255 | { | |
20256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20257 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
20258 | wxPyEndAllowThreads(__tstate); | |
20259 | if (PyErr_Occurred()) SWIG_fail; | |
20260 | } | |
20261 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20262 | if (SWIG_IsTmpObj(res3)) { | |
20263 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
20264 | } else { | |
20265 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20266 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
20267 | } | |
20268 | return resultobj; | |
20269 | fail: | |
20270 | return NULL; | |
d55e5bfc RD |
20271 | } |
20272 | ||
20273 | ||
1bd55598 RD |
20274 | SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20275 | PyObject *resultobj = 0; | |
20276 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20277 | wxColour result; | |
20278 | void *argp1 = 0 ; | |
20279 | int res1 = 0 ; | |
20280 | PyObject *swig_obj[1] ; | |
20281 | ||
20282 | if (!args) SWIG_fail; | |
20283 | swig_obj[0] = args; | |
20284 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20285 | if (!SWIG_IsOK(res1)) { | |
20286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'"); | |
20287 | } | |
20288 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20289 | { | |
20290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20291 | result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour(); | |
20292 | wxPyEndAllowThreads(__tstate); | |
20293 | if (PyErr_Occurred()) SWIG_fail; | |
20294 | } | |
20295 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
20296 | return resultobj; | |
20297 | fail: | |
20298 | return NULL; | |
20299 | } | |
20300 | ||
20301 | ||
20302 | SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20303 | PyObject *resultobj = 0; | |
20304 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
20305 | SwigValueWrapper<wxVisualAttributes > result; | |
20306 | int val1 ; | |
20307 | int ecode1 = 0 ; | |
20308 | PyObject * obj0 = 0 ; | |
20309 | char * kwnames[] = { | |
20310 | (char *) "variant", NULL | |
20311 | }; | |
20312 | ||
20313 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
20314 | if (obj0) { | |
20315 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20316 | if (!SWIG_IsOK(ecode1)) { | |
20317 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
20318 | } | |
20319 | arg1 = static_cast< wxWindowVariant >(val1); | |
20320 | } | |
20321 | { | |
20322 | if (!wxPyCheckForApp()) SWIG_fail; | |
20323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20324 | result = wxNotebook::GetClassDefaultAttributes(arg1); | |
20325 | wxPyEndAllowThreads(__tstate); | |
20326 | if (PyErr_Occurred()) SWIG_fail; | |
20327 | } | |
20328 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
20329 | return resultobj; | |
20330 | fail: | |
20331 | return NULL; | |
20332 | } | |
20333 | ||
20334 | ||
20335 | SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20336 | PyObject *obj; | |
20337 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20338 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj)); | |
20339 | return SWIG_Py_Void(); | |
20340 | } | |
20341 | ||
20342 | SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20343 | return SWIG_Python_InitShadowInstance(args); | |
20344 | } | |
20345 | ||
20346 | SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20347 | PyObject *resultobj = 0; | |
20348 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20349 | int arg2 = (int) 0 ; | |
20350 | int arg3 = (int) -1 ; | |
20351 | int arg4 = (int) -1 ; | |
20352 | wxNotebookEvent *result = 0 ; | |
20353 | int val1 ; | |
20354 | int ecode1 = 0 ; | |
20355 | int val2 ; | |
20356 | int ecode2 = 0 ; | |
20357 | int val3 ; | |
20358 | int ecode3 = 0 ; | |
20359 | int val4 ; | |
20360 | int ecode4 = 0 ; | |
20361 | PyObject * obj0 = 0 ; | |
20362 | PyObject * obj1 = 0 ; | |
20363 | PyObject * obj2 = 0 ; | |
20364 | PyObject * obj3 = 0 ; | |
20365 | char * kwnames[] = { | |
20366 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
20367 | }; | |
20368 | ||
20369 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20370 | if (obj0) { | |
20371 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20372 | if (!SWIG_IsOK(ecode1)) { | |
20373 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
20374 | } | |
20375 | arg1 = static_cast< wxEventType >(val1); | |
20376 | } | |
20377 | if (obj1) { | |
20378 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20379 | if (!SWIG_IsOK(ecode2)) { | |
20380 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
20381 | } | |
20382 | arg2 = static_cast< int >(val2); | |
20383 | } | |
20384 | if (obj2) { | |
20385 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20386 | if (!SWIG_IsOK(ecode3)) { | |
20387 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
20388 | } | |
20389 | arg3 = static_cast< int >(val3); | |
20390 | } | |
20391 | if (obj3) { | |
20392 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20393 | if (!SWIG_IsOK(ecode4)) { | |
20394 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
20395 | } | |
20396 | arg4 = static_cast< int >(val4); | |
20397 | } | |
20398 | { | |
20399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20400 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
20401 | wxPyEndAllowThreads(__tstate); | |
20402 | if (PyErr_Occurred()) SWIG_fail; | |
20403 | } | |
20404 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 ); | |
20405 | return resultobj; | |
20406 | fail: | |
20407 | return NULL; | |
20408 | } | |
20409 | ||
20410 | ||
20411 | SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20412 | PyObject *obj; | |
20413 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20414 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj)); | |
20415 | return SWIG_Py_Void(); | |
20416 | } | |
20417 | ||
20418 | SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20419 | return SWIG_Python_InitShadowInstance(args); | |
20420 | } | |
20421 | ||
20422 | SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20423 | PyObject *resultobj = 0; | |
20424 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20425 | int arg2 = (int) -1 ; | |
20426 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20427 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20428 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20429 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20430 | long arg5 = (long) 0 ; | |
20431 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
20432 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20433 | wxListbook *result = 0 ; | |
20434 | void *argp1 = 0 ; | |
20435 | int res1 = 0 ; | |
20436 | int val2 ; | |
20437 | int ecode2 = 0 ; | |
20438 | wxPoint temp3 ; | |
20439 | wxSize temp4 ; | |
20440 | long val5 ; | |
20441 | int ecode5 = 0 ; | |
20442 | bool temp6 = false ; | |
20443 | PyObject * obj0 = 0 ; | |
20444 | PyObject * obj1 = 0 ; | |
20445 | PyObject * obj2 = 0 ; | |
20446 | PyObject * obj3 = 0 ; | |
20447 | PyObject * obj4 = 0 ; | |
20448 | PyObject * obj5 = 0 ; | |
20449 | char * kwnames[] = { | |
20450 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20451 | }; | |
20452 | ||
20453 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20454 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20455 | if (!SWIG_IsOK(res1)) { | |
20456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20457 | } | |
20458 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20459 | if (obj1) { | |
20460 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20461 | if (!SWIG_IsOK(ecode2)) { | |
20462 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'"); | |
20463 | } | |
20464 | arg2 = static_cast< int >(val2); | |
20465 | } | |
20466 | if (obj2) { | |
d55e5bfc | 20467 | { |
1bd55598 RD |
20468 | arg3 = &temp3; |
20469 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 20470 | } |
1bd55598 RD |
20471 | } |
20472 | if (obj3) { | |
d55e5bfc | 20473 | { |
1bd55598 RD |
20474 | arg4 = &temp4; |
20475 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 20476 | } |
1bd55598 RD |
20477 | } |
20478 | if (obj4) { | |
20479 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
20480 | if (!SWIG_IsOK(ecode5)) { | |
20481 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'"); | |
20482 | } | |
20483 | arg5 = static_cast< long >(val5); | |
20484 | } | |
20485 | if (obj5) { | |
d55e5bfc | 20486 | { |
1bd55598 RD |
20487 | arg6 = wxString_in_helper(obj5); |
20488 | if (arg6 == NULL) SWIG_fail; | |
20489 | temp6 = true; | |
d55e5bfc | 20490 | } |
1bd55598 RD |
20491 | } |
20492 | { | |
20493 | if (!wxPyCheckForApp()) SWIG_fail; | |
20494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20495 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20496 | wxPyEndAllowThreads(__tstate); | |
20497 | if (PyErr_Occurred()) SWIG_fail; | |
20498 | } | |
20499 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 ); | |
20500 | { | |
20501 | if (temp6) | |
20502 | delete arg6; | |
20503 | } | |
20504 | return resultobj; | |
20505 | fail: | |
20506 | { | |
20507 | if (temp6) | |
20508 | delete arg6; | |
20509 | } | |
20510 | return NULL; | |
20511 | } | |
20512 | ||
20513 | ||
20514 | SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20515 | PyObject *resultobj = 0; | |
20516 | wxListbook *result = 0 ; | |
20517 | ||
20518 | if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail; | |
20519 | { | |
20520 | if (!wxPyCheckForApp()) SWIG_fail; | |
20521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20522 | result = (wxListbook *)new wxListbook(); | |
20523 | wxPyEndAllowThreads(__tstate); | |
20524 | if (PyErr_Occurred()) SWIG_fail; | |
20525 | } | |
20526 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 ); | |
20527 | return resultobj; | |
20528 | fail: | |
20529 | return NULL; | |
20530 | } | |
20531 | ||
20532 | ||
20533 | SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20534 | PyObject *resultobj = 0; | |
20535 | wxListbook *arg1 = (wxListbook *) 0 ; | |
20536 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20537 | int arg3 = (int) -1 ; | |
20538 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20539 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20540 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20541 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20542 | long arg6 = (long) 0 ; | |
20543 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
20544 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20545 | bool result; | |
20546 | void *argp1 = 0 ; | |
20547 | int res1 = 0 ; | |
20548 | void *argp2 = 0 ; | |
20549 | int res2 = 0 ; | |
20550 | int val3 ; | |
20551 | int ecode3 = 0 ; | |
20552 | wxPoint temp4 ; | |
20553 | wxSize temp5 ; | |
20554 | long val6 ; | |
20555 | int ecode6 = 0 ; | |
20556 | bool temp7 = false ; | |
20557 | PyObject * obj0 = 0 ; | |
20558 | PyObject * obj1 = 0 ; | |
20559 | PyObject * obj2 = 0 ; | |
20560 | PyObject * obj3 = 0 ; | |
20561 | PyObject * obj4 = 0 ; | |
20562 | PyObject * obj5 = 0 ; | |
20563 | PyObject * obj6 = 0 ; | |
20564 | char * kwnames[] = { | |
20565 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20566 | }; | |
20567 | ||
20568 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20569 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 ); | |
20570 | if (!SWIG_IsOK(res1)) { | |
20571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'"); | |
20572 | } | |
20573 | arg1 = reinterpret_cast< wxListbook * >(argp1); | |
20574 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20575 | if (!SWIG_IsOK(res2)) { | |
20576 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20577 | } | |
20578 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20579 | if (obj2) { | |
20580 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20581 | if (!SWIG_IsOK(ecode3)) { | |
20582 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'"); | |
20583 | } | |
20584 | arg3 = static_cast< int >(val3); | |
20585 | } | |
20586 | if (obj3) { | |
d55e5bfc | 20587 | { |
1bd55598 RD |
20588 | arg4 = &temp4; |
20589 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 20590 | } |
1bd55598 RD |
20591 | } |
20592 | if (obj4) { | |
d55e5bfc | 20593 | { |
1bd55598 RD |
20594 | arg5 = &temp5; |
20595 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 20596 | } |
1bd55598 RD |
20597 | } |
20598 | if (obj5) { | |
20599 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20600 | if (!SWIG_IsOK(ecode6)) { | |
20601 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'"); | |
20602 | } | |
20603 | arg6 = static_cast< long >(val6); | |
20604 | } | |
20605 | if (obj6) { | |
d55e5bfc | 20606 | { |
1bd55598 RD |
20607 | arg7 = wxString_in_helper(obj6); |
20608 | if (arg7 == NULL) SWIG_fail; | |
20609 | temp7 = true; | |
d55e5bfc | 20610 | } |
1bd55598 RD |
20611 | } |
20612 | { | |
20613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20614 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20615 | wxPyEndAllowThreads(__tstate); | |
20616 | if (PyErr_Occurred()) SWIG_fail; | |
20617 | } | |
20618 | { | |
20619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20620 | } | |
20621 | { | |
20622 | if (temp7) | |
20623 | delete arg7; | |
20624 | } | |
20625 | return resultobj; | |
20626 | fail: | |
20627 | { | |
20628 | if (temp7) | |
20629 | delete arg7; | |
20630 | } | |
20631 | return NULL; | |
d55e5bfc RD |
20632 | } |
20633 | ||
20634 | ||
1bd55598 RD |
20635 | SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20636 | PyObject *resultobj = 0; | |
20637 | wxListbook *arg1 = (wxListbook *) 0 ; | |
20638 | wxListView *result = 0 ; | |
20639 | void *argp1 = 0 ; | |
20640 | int res1 = 0 ; | |
20641 | PyObject *swig_obj[1] ; | |
20642 | ||
20643 | if (!args) SWIG_fail; | |
20644 | swig_obj[0] = args; | |
20645 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 ); | |
20646 | if (!SWIG_IsOK(res1)) { | |
20647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'"); | |
20648 | } | |
20649 | arg1 = reinterpret_cast< wxListbook * >(argp1); | |
20650 | { | |
20651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20652 | result = (wxListView *)(arg1)->GetListView(); | |
20653 | wxPyEndAllowThreads(__tstate); | |
20654 | if (PyErr_Occurred()) SWIG_fail; | |
20655 | } | |
20656 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 ); | |
20657 | return resultobj; | |
20658 | fail: | |
20659 | return NULL; | |
20660 | } | |
20661 | ||
20662 | ||
20663 | SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20664 | PyObject *obj; | |
20665 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20666 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj)); | |
20667 | return SWIG_Py_Void(); | |
20668 | } | |
20669 | ||
20670 | SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20671 | return SWIG_Python_InitShadowInstance(args); | |
20672 | } | |
20673 | ||
20674 | SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20675 | PyObject *resultobj = 0; | |
20676 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20677 | int arg2 = (int) 0 ; | |
20678 | int arg3 = (int) -1 ; | |
20679 | int arg4 = (int) -1 ; | |
20680 | wxListbookEvent *result = 0 ; | |
20681 | int val1 ; | |
20682 | int ecode1 = 0 ; | |
20683 | int val2 ; | |
20684 | int ecode2 = 0 ; | |
20685 | int val3 ; | |
20686 | int ecode3 = 0 ; | |
20687 | int val4 ; | |
20688 | int ecode4 = 0 ; | |
20689 | PyObject * obj0 = 0 ; | |
20690 | PyObject * obj1 = 0 ; | |
20691 | PyObject * obj2 = 0 ; | |
20692 | PyObject * obj3 = 0 ; | |
20693 | char * kwnames[] = { | |
20694 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
20695 | }; | |
20696 | ||
20697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20698 | if (obj0) { | |
20699 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20700 | if (!SWIG_IsOK(ecode1)) { | |
20701 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
20702 | } | |
20703 | arg1 = static_cast< wxEventType >(val1); | |
20704 | } | |
20705 | if (obj1) { | |
20706 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20707 | if (!SWIG_IsOK(ecode2)) { | |
20708 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'"); | |
20709 | } | |
20710 | arg2 = static_cast< int >(val2); | |
20711 | } | |
20712 | if (obj2) { | |
20713 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20714 | if (!SWIG_IsOK(ecode3)) { | |
20715 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'"); | |
20716 | } | |
20717 | arg3 = static_cast< int >(val3); | |
20718 | } | |
20719 | if (obj3) { | |
20720 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20721 | if (!SWIG_IsOK(ecode4)) { | |
20722 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'"); | |
20723 | } | |
20724 | arg4 = static_cast< int >(val4); | |
20725 | } | |
20726 | { | |
20727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20728 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
20729 | wxPyEndAllowThreads(__tstate); | |
20730 | if (PyErr_Occurred()) SWIG_fail; | |
20731 | } | |
20732 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 ); | |
20733 | return resultobj; | |
20734 | fail: | |
20735 | return NULL; | |
20736 | } | |
20737 | ||
20738 | ||
20739 | SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20740 | PyObject *obj; | |
20741 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20742 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj)); | |
20743 | return SWIG_Py_Void(); | |
20744 | } | |
20745 | ||
20746 | SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20747 | return SWIG_Python_InitShadowInstance(args); | |
20748 | } | |
20749 | ||
20750 | SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20751 | PyObject *resultobj = 0; | |
20752 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20753 | int arg2 ; | |
20754 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20755 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20756 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20757 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20758 | long arg5 = (long) 0 ; | |
20759 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
20760 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20761 | wxChoicebook *result = 0 ; | |
20762 | void *argp1 = 0 ; | |
20763 | int res1 = 0 ; | |
20764 | int val2 ; | |
20765 | int ecode2 = 0 ; | |
20766 | wxPoint temp3 ; | |
20767 | wxSize temp4 ; | |
20768 | long val5 ; | |
20769 | int ecode5 = 0 ; | |
20770 | bool temp6 = false ; | |
20771 | PyObject * obj0 = 0 ; | |
20772 | PyObject * obj1 = 0 ; | |
20773 | PyObject * obj2 = 0 ; | |
20774 | PyObject * obj3 = 0 ; | |
20775 | PyObject * obj4 = 0 ; | |
20776 | PyObject * obj5 = 0 ; | |
20777 | char * kwnames[] = { | |
20778 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20779 | }; | |
20780 | ||
20781 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20782 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20783 | if (!SWIG_IsOK(res1)) { | |
20784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20785 | } | |
20786 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20787 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20788 | if (!SWIG_IsOK(ecode2)) { | |
20789 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'"); | |
20790 | } | |
20791 | arg2 = static_cast< int >(val2); | |
20792 | if (obj2) { | |
36ed4f51 | 20793 | { |
1bd55598 RD |
20794 | arg3 = &temp3; |
20795 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 20796 | } |
1bd55598 RD |
20797 | } |
20798 | if (obj3) { | |
36ed4f51 | 20799 | { |
1bd55598 RD |
20800 | arg4 = &temp4; |
20801 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 20802 | } |
1bd55598 RD |
20803 | } |
20804 | if (obj4) { | |
20805 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
20806 | if (!SWIG_IsOK(ecode5)) { | |
20807 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'"); | |
20808 | } | |
20809 | arg5 = static_cast< long >(val5); | |
20810 | } | |
20811 | if (obj5) { | |
d55e5bfc | 20812 | { |
1bd55598 RD |
20813 | arg6 = wxString_in_helper(obj5); |
20814 | if (arg6 == NULL) SWIG_fail; | |
20815 | temp6 = true; | |
d55e5bfc | 20816 | } |
1bd55598 RD |
20817 | } |
20818 | { | |
20819 | if (!wxPyCheckForApp()) SWIG_fail; | |
20820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20821 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20822 | wxPyEndAllowThreads(__tstate); | |
20823 | if (PyErr_Occurred()) SWIG_fail; | |
20824 | } | |
20825 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 ); | |
20826 | { | |
20827 | if (temp6) | |
20828 | delete arg6; | |
20829 | } | |
20830 | return resultobj; | |
20831 | fail: | |
20832 | { | |
20833 | if (temp6) | |
20834 | delete arg6; | |
20835 | } | |
20836 | return NULL; | |
d55e5bfc RD |
20837 | } |
20838 | ||
20839 | ||
1bd55598 RD |
20840 | SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20841 | PyObject *resultobj = 0; | |
20842 | wxChoicebook *result = 0 ; | |
20843 | ||
20844 | if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail; | |
20845 | { | |
20846 | if (!wxPyCheckForApp()) SWIG_fail; | |
20847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20848 | result = (wxChoicebook *)new wxChoicebook(); | |
20849 | wxPyEndAllowThreads(__tstate); | |
20850 | if (PyErr_Occurred()) SWIG_fail; | |
20851 | } | |
20852 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 ); | |
20853 | return resultobj; | |
20854 | fail: | |
20855 | return NULL; | |
20856 | } | |
20857 | ||
20858 | ||
20859 | SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20860 | PyObject *resultobj = 0; | |
20861 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
20862 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20863 | int arg3 ; | |
20864 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20865 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20866 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20867 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20868 | long arg6 = (long) 0 ; | |
20869 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
20870 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20871 | bool result; | |
20872 | void *argp1 = 0 ; | |
20873 | int res1 = 0 ; | |
20874 | void *argp2 = 0 ; | |
20875 | int res2 = 0 ; | |
20876 | int val3 ; | |
20877 | int ecode3 = 0 ; | |
20878 | wxPoint temp4 ; | |
20879 | wxSize temp5 ; | |
20880 | long val6 ; | |
20881 | int ecode6 = 0 ; | |
20882 | bool temp7 = false ; | |
20883 | PyObject * obj0 = 0 ; | |
20884 | PyObject * obj1 = 0 ; | |
20885 | PyObject * obj2 = 0 ; | |
20886 | PyObject * obj3 = 0 ; | |
20887 | PyObject * obj4 = 0 ; | |
20888 | PyObject * obj5 = 0 ; | |
20889 | PyObject * obj6 = 0 ; | |
20890 | char * kwnames[] = { | |
20891 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20892 | }; | |
20893 | ||
20894 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20895 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 ); | |
20896 | if (!SWIG_IsOK(res1)) { | |
20897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'"); | |
20898 | } | |
20899 | arg1 = reinterpret_cast< wxChoicebook * >(argp1); | |
20900 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20901 | if (!SWIG_IsOK(res2)) { | |
20902 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20903 | } | |
20904 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20905 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20906 | if (!SWIG_IsOK(ecode3)) { | |
20907 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
20908 | } | |
20909 | arg3 = static_cast< int >(val3); | |
20910 | if (obj3) { | |
d55e5bfc | 20911 | { |
1bd55598 RD |
20912 | arg4 = &temp4; |
20913 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 20914 | } |
1bd55598 RD |
20915 | } |
20916 | if (obj4) { | |
d55e5bfc | 20917 | { |
1bd55598 RD |
20918 | arg5 = &temp5; |
20919 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 20920 | } |
1bd55598 RD |
20921 | } |
20922 | if (obj5) { | |
20923 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20924 | if (!SWIG_IsOK(ecode6)) { | |
20925 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
20926 | } | |
20927 | arg6 = static_cast< long >(val6); | |
20928 | } | |
20929 | if (obj6) { | |
d55e5bfc | 20930 | { |
1bd55598 RD |
20931 | arg7 = wxString_in_helper(obj6); |
20932 | if (arg7 == NULL) SWIG_fail; | |
20933 | temp7 = true; | |
d55e5bfc | 20934 | } |
1bd55598 RD |
20935 | } |
20936 | { | |
20937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20938 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20939 | wxPyEndAllowThreads(__tstate); | |
20940 | if (PyErr_Occurred()) SWIG_fail; | |
20941 | } | |
20942 | { | |
20943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20944 | } | |
20945 | { | |
20946 | if (temp7) | |
20947 | delete arg7; | |
20948 | } | |
20949 | return resultobj; | |
20950 | fail: | |
20951 | { | |
20952 | if (temp7) | |
20953 | delete arg7; | |
20954 | } | |
20955 | return NULL; | |
d55e5bfc RD |
20956 | } |
20957 | ||
20958 | ||
1bd55598 RD |
20959 | SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20960 | PyObject *resultobj = 0; | |
20961 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
20962 | wxChoice *result = 0 ; | |
20963 | void *argp1 = 0 ; | |
20964 | int res1 = 0 ; | |
20965 | PyObject *swig_obj[1] ; | |
20966 | ||
20967 | if (!args) SWIG_fail; | |
20968 | swig_obj[0] = args; | |
20969 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 ); | |
20970 | if (!SWIG_IsOK(res1)) { | |
20971 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'"); | |
20972 | } | |
20973 | arg1 = reinterpret_cast< wxChoicebook * >(argp1); | |
20974 | { | |
20975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20976 | result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl(); | |
20977 | wxPyEndAllowThreads(__tstate); | |
20978 | if (PyErr_Occurred()) SWIG_fail; | |
20979 | } | |
20980 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 ); | |
20981 | return resultobj; | |
20982 | fail: | |
20983 | return NULL; | |
20984 | } | |
20985 | ||
20986 | ||
20987 | SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20988 | PyObject *obj; | |
20989 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20990 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj)); | |
20991 | return SWIG_Py_Void(); | |
20992 | } | |
20993 | ||
20994 | SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20995 | return SWIG_Python_InitShadowInstance(args); | |
20996 | } | |
20997 | ||
20998 | SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20999 | PyObject *resultobj = 0; | |
21000 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21001 | int arg2 = (int) 0 ; | |
21002 | int arg3 = (int) -1 ; | |
21003 | int arg4 = (int) -1 ; | |
21004 | wxChoicebookEvent *result = 0 ; | |
21005 | int val1 ; | |
21006 | int ecode1 = 0 ; | |
21007 | int val2 ; | |
21008 | int ecode2 = 0 ; | |
21009 | int val3 ; | |
21010 | int ecode3 = 0 ; | |
21011 | int val4 ; | |
21012 | int ecode4 = 0 ; | |
21013 | PyObject * obj0 = 0 ; | |
21014 | PyObject * obj1 = 0 ; | |
21015 | PyObject * obj2 = 0 ; | |
21016 | PyObject * obj3 = 0 ; | |
21017 | char * kwnames[] = { | |
21018 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21019 | }; | |
21020 | ||
21021 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21022 | if (obj0) { | |
21023 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21024 | if (!SWIG_IsOK(ecode1)) { | |
21025 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21026 | } | |
21027 | arg1 = static_cast< wxEventType >(val1); | |
21028 | } | |
21029 | if (obj1) { | |
21030 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21031 | if (!SWIG_IsOK(ecode2)) { | |
21032 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21033 | } | |
21034 | arg2 = static_cast< int >(val2); | |
21035 | } | |
21036 | if (obj2) { | |
21037 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21038 | if (!SWIG_IsOK(ecode3)) { | |
21039 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21040 | } | |
21041 | arg3 = static_cast< int >(val3); | |
21042 | } | |
21043 | if (obj3) { | |
21044 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21045 | if (!SWIG_IsOK(ecode4)) { | |
21046 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21047 | } | |
21048 | arg4 = static_cast< int >(val4); | |
21049 | } | |
21050 | { | |
21051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21052 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
21053 | wxPyEndAllowThreads(__tstate); | |
21054 | if (PyErr_Occurred()) SWIG_fail; | |
21055 | } | |
21056 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 ); | |
21057 | return resultobj; | |
21058 | fail: | |
21059 | return NULL; | |
21060 | } | |
21061 | ||
21062 | ||
21063 | SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21064 | PyObject *obj; | |
21065 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21066 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj)); | |
21067 | return SWIG_Py_Void(); | |
21068 | } | |
21069 | ||
21070 | SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21071 | return SWIG_Python_InitShadowInstance(args); | |
21072 | } | |
21073 | ||
21074 | SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21075 | PyObject *resultobj = 0; | |
21076 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21077 | int arg2 ; | |
21078 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21079 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21080 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21081 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21082 | long arg5 = (long) wxBK_DEFAULT ; | |
21083 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21084 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21085 | wxTreebook *result = 0 ; | |
21086 | void *argp1 = 0 ; | |
21087 | int res1 = 0 ; | |
21088 | int val2 ; | |
21089 | int ecode2 = 0 ; | |
21090 | wxPoint temp3 ; | |
21091 | wxSize temp4 ; | |
21092 | long val5 ; | |
21093 | int ecode5 = 0 ; | |
21094 | bool temp6 = false ; | |
21095 | PyObject * obj0 = 0 ; | |
21096 | PyObject * obj1 = 0 ; | |
21097 | PyObject * obj2 = 0 ; | |
21098 | PyObject * obj3 = 0 ; | |
21099 | PyObject * obj4 = 0 ; | |
21100 | PyObject * obj5 = 0 ; | |
21101 | char * kwnames[] = { | |
21102 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21103 | }; | |
21104 | ||
21105 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21106 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21107 | if (!SWIG_IsOK(res1)) { | |
21108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21109 | } | |
21110 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21111 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21112 | if (!SWIG_IsOK(ecode2)) { | |
21113 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'"); | |
21114 | } | |
21115 | arg2 = static_cast< int >(val2); | |
21116 | if (obj2) { | |
36ed4f51 | 21117 | { |
1bd55598 RD |
21118 | arg3 = &temp3; |
21119 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 21120 | } |
1bd55598 RD |
21121 | } |
21122 | if (obj3) { | |
36ed4f51 | 21123 | { |
1bd55598 RD |
21124 | arg4 = &temp4; |
21125 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 21126 | } |
1bd55598 RD |
21127 | } |
21128 | if (obj4) { | |
21129 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21130 | if (!SWIG_IsOK(ecode5)) { | |
21131 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'"); | |
21132 | } | |
21133 | arg5 = static_cast< long >(val5); | |
21134 | } | |
21135 | if (obj5) { | |
d55e5bfc | 21136 | { |
1bd55598 RD |
21137 | arg6 = wxString_in_helper(obj5); |
21138 | if (arg6 == NULL) SWIG_fail; | |
21139 | temp6 = true; | |
d55e5bfc | 21140 | } |
1bd55598 RD |
21141 | } |
21142 | { | |
21143 | if (!wxPyCheckForApp()) SWIG_fail; | |
21144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21145 | result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21146 | wxPyEndAllowThreads(__tstate); | |
21147 | if (PyErr_Occurred()) SWIG_fail; | |
21148 | } | |
21149 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 ); | |
21150 | { | |
21151 | if (temp6) | |
21152 | delete arg6; | |
21153 | } | |
21154 | return resultobj; | |
21155 | fail: | |
21156 | { | |
21157 | if (temp6) | |
21158 | delete arg6; | |
21159 | } | |
21160 | return NULL; | |
d55e5bfc RD |
21161 | } |
21162 | ||
21163 | ||
1bd55598 RD |
21164 | SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21165 | PyObject *resultobj = 0; | |
21166 | wxTreebook *result = 0 ; | |
21167 | ||
21168 | if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail; | |
21169 | { | |
21170 | if (!wxPyCheckForApp()) SWIG_fail; | |
21171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21172 | result = (wxTreebook *)new wxTreebook(); | |
21173 | wxPyEndAllowThreads(__tstate); | |
21174 | if (PyErr_Occurred()) SWIG_fail; | |
21175 | } | |
21176 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 ); | |
21177 | return resultobj; | |
21178 | fail: | |
21179 | return NULL; | |
21180 | } | |
21181 | ||
21182 | ||
21183 | SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21184 | PyObject *resultobj = 0; | |
21185 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21186 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21187 | int arg3 ; | |
21188 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21189 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21190 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21191 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21192 | long arg6 = (long) wxBK_DEFAULT ; | |
21193 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
21194 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21195 | bool result; | |
21196 | void *argp1 = 0 ; | |
21197 | int res1 = 0 ; | |
21198 | void *argp2 = 0 ; | |
21199 | int res2 = 0 ; | |
21200 | int val3 ; | |
21201 | int ecode3 = 0 ; | |
21202 | wxPoint temp4 ; | |
21203 | wxSize temp5 ; | |
21204 | long val6 ; | |
21205 | int ecode6 = 0 ; | |
21206 | bool temp7 = false ; | |
21207 | PyObject * obj0 = 0 ; | |
21208 | PyObject * obj1 = 0 ; | |
21209 | PyObject * obj2 = 0 ; | |
21210 | PyObject * obj3 = 0 ; | |
21211 | PyObject * obj4 = 0 ; | |
21212 | PyObject * obj5 = 0 ; | |
21213 | PyObject * obj6 = 0 ; | |
21214 | char * kwnames[] = { | |
21215 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21216 | }; | |
21217 | ||
21218 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21219 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21220 | if (!SWIG_IsOK(res1)) { | |
21221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
21222 | } | |
21223 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21224 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21225 | if (!SWIG_IsOK(res2)) { | |
21226 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21227 | } | |
21228 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21229 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21230 | if (!SWIG_IsOK(ecode3)) { | |
21231 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
21232 | } | |
21233 | arg3 = static_cast< int >(val3); | |
21234 | if (obj3) { | |
36ed4f51 | 21235 | { |
1bd55598 RD |
21236 | arg4 = &temp4; |
21237 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 21238 | } |
1bd55598 RD |
21239 | } |
21240 | if (obj4) { | |
d55e5bfc | 21241 | { |
1bd55598 RD |
21242 | arg5 = &temp5; |
21243 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 21244 | } |
1bd55598 RD |
21245 | } |
21246 | if (obj5) { | |
21247 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21248 | if (!SWIG_IsOK(ecode6)) { | |
21249 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
21250 | } | |
21251 | arg6 = static_cast< long >(val6); | |
21252 | } | |
21253 | if (obj6) { | |
36ed4f51 | 21254 | { |
1bd55598 RD |
21255 | arg7 = wxString_in_helper(obj6); |
21256 | if (arg7 == NULL) SWIG_fail; | |
21257 | temp7 = true; | |
36ed4f51 | 21258 | } |
1bd55598 RD |
21259 | } |
21260 | { | |
21261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21262 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21263 | wxPyEndAllowThreads(__tstate); | |
21264 | if (PyErr_Occurred()) SWIG_fail; | |
21265 | } | |
21266 | { | |
21267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21268 | } | |
21269 | { | |
21270 | if (temp7) | |
21271 | delete arg7; | |
21272 | } | |
21273 | return resultobj; | |
21274 | fail: | |
21275 | { | |
21276 | if (temp7) | |
21277 | delete arg7; | |
21278 | } | |
21279 | return NULL; | |
21280 | } | |
21281 | ||
21282 | ||
21283 | SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21284 | PyObject *resultobj = 0; | |
21285 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21286 | size_t arg2 ; | |
21287 | wxWindow *arg3 = (wxWindow *) 0 ; | |
21288 | wxString *arg4 = 0 ; | |
21289 | bool arg5 = (bool) false ; | |
21290 | int arg6 = (int) wxNOT_FOUND ; | |
21291 | bool result; | |
21292 | void *argp1 = 0 ; | |
21293 | int res1 = 0 ; | |
21294 | size_t val2 ; | |
21295 | int ecode2 = 0 ; | |
21296 | void *argp3 = 0 ; | |
21297 | int res3 = 0 ; | |
21298 | bool temp4 = false ; | |
21299 | bool val5 ; | |
21300 | int ecode5 = 0 ; | |
21301 | int val6 ; | |
21302 | int ecode6 = 0 ; | |
21303 | PyObject * obj0 = 0 ; | |
21304 | PyObject * obj1 = 0 ; | |
21305 | PyObject * obj2 = 0 ; | |
21306 | PyObject * obj3 = 0 ; | |
21307 | PyObject * obj4 = 0 ; | |
21308 | PyObject * obj5 = 0 ; | |
21309 | char * kwnames[] = { | |
21310 | (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
21311 | }; | |
21312 | ||
21313 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21314 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21315 | if (!SWIG_IsOK(res1)) { | |
21316 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
21317 | } | |
21318 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21319 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
21320 | if (!SWIG_IsOK(ecode2)) { | |
21321 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'"); | |
21322 | } | |
21323 | arg2 = static_cast< size_t >(val2); | |
21324 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21325 | if (!SWIG_IsOK(res3)) { | |
21326 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
21327 | } | |
21328 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
21329 | { | |
21330 | arg4 = wxString_in_helper(obj3); | |
21331 | if (arg4 == NULL) SWIG_fail; | |
21332 | temp4 = true; | |
21333 | } | |
21334 | if (obj4) { | |
21335 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
21336 | if (!SWIG_IsOK(ecode5)) { | |
21337 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'"); | |
21338 | } | |
21339 | arg5 = static_cast< bool >(val5); | |
21340 | } | |
21341 | if (obj5) { | |
21342 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
21343 | if (!SWIG_IsOK(ecode6)) { | |
21344 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'"); | |
21345 | } | |
21346 | arg6 = static_cast< int >(val6); | |
21347 | } | |
21348 | { | |
21349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21350 | result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
21351 | wxPyEndAllowThreads(__tstate); | |
21352 | if (PyErr_Occurred()) SWIG_fail; | |
21353 | } | |
21354 | { | |
21355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21356 | } | |
21357 | { | |
21358 | if (temp4) | |
21359 | delete arg4; | |
21360 | } | |
21361 | return resultobj; | |
21362 | fail: | |
21363 | { | |
21364 | if (temp4) | |
21365 | delete arg4; | |
21366 | } | |
21367 | return NULL; | |
21368 | } | |
21369 | ||
21370 | ||
21371 | SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21372 | PyObject *resultobj = 0; | |
21373 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21374 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21375 | wxString *arg3 = 0 ; | |
21376 | bool arg4 = (bool) false ; | |
21377 | int arg5 = (int) wxNOT_FOUND ; | |
21378 | bool result; | |
21379 | void *argp1 = 0 ; | |
21380 | int res1 = 0 ; | |
21381 | void *argp2 = 0 ; | |
21382 | int res2 = 0 ; | |
21383 | bool temp3 = false ; | |
21384 | bool val4 ; | |
21385 | int ecode4 = 0 ; | |
21386 | int val5 ; | |
21387 | int ecode5 = 0 ; | |
21388 | PyObject * obj0 = 0 ; | |
21389 | PyObject * obj1 = 0 ; | |
21390 | PyObject * obj2 = 0 ; | |
21391 | PyObject * obj3 = 0 ; | |
21392 | PyObject * obj4 = 0 ; | |
21393 | char * kwnames[] = { | |
21394 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
21395 | }; | |
21396 | ||
21397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
21398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21399 | if (!SWIG_IsOK(res1)) { | |
21400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
21401 | } | |
21402 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21403 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21404 | if (!SWIG_IsOK(res2)) { | |
21405 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21406 | } | |
21407 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21408 | { | |
21409 | arg3 = wxString_in_helper(obj2); | |
21410 | if (arg3 == NULL) SWIG_fail; | |
21411 | temp3 = true; | |
21412 | } | |
21413 | if (obj3) { | |
21414 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
21415 | if (!SWIG_IsOK(ecode4)) { | |
21416 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'"); | |
21417 | } | |
21418 | arg4 = static_cast< bool >(val4); | |
21419 | } | |
21420 | if (obj4) { | |
21421 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21422 | if (!SWIG_IsOK(ecode5)) { | |
21423 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'"); | |
21424 | } | |
21425 | arg5 = static_cast< int >(val5); | |
21426 | } | |
21427 | { | |
21428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21429 | result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
21430 | wxPyEndAllowThreads(__tstate); | |
21431 | if (PyErr_Occurred()) SWIG_fail; | |
21432 | } | |
21433 | { | |
21434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21435 | } | |
21436 | { | |
21437 | if (temp3) | |
21438 | delete arg3; | |
21439 | } | |
21440 | return resultobj; | |
21441 | fail: | |
21442 | { | |
21443 | if (temp3) | |
21444 | delete arg3; | |
21445 | } | |
21446 | return NULL; | |
21447 | } | |
21448 | ||
21449 | ||
21450 | SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21451 | PyObject *resultobj = 0; | |
21452 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21453 | size_t arg2 ; | |
21454 | bool result; | |
21455 | void *argp1 = 0 ; | |
21456 | int res1 = 0 ; | |
21457 | size_t val2 ; | |
21458 | int ecode2 = 0 ; | |
21459 | PyObject * obj0 = 0 ; | |
21460 | PyObject * obj1 = 0 ; | |
21461 | char * kwnames[] = { | |
21462 | (char *) "self",(char *) "pos", NULL | |
21463 | }; | |
21464 | ||
21465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail; | |
21466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21467 | if (!SWIG_IsOK(res1)) { | |
21468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
21469 | } | |
21470 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21471 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
21472 | if (!SWIG_IsOK(ecode2)) { | |
21473 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'"); | |
21474 | } | |
21475 | arg2 = static_cast< size_t >(val2); | |
21476 | { | |
21477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21478 | result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2); | |
21479 | wxPyEndAllowThreads(__tstate); | |
21480 | if (PyErr_Occurred()) SWIG_fail; | |
21481 | } | |
21482 | { | |
21483 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21484 | } | |
21485 | return resultobj; | |
21486 | fail: | |
21487 | return NULL; | |
21488 | } | |
21489 | ||
21490 | ||
21491 | SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21492 | PyObject *resultobj = 0; | |
21493 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21494 | size_t arg2 ; | |
21495 | bool arg3 = (bool) true ; | |
21496 | bool result; | |
21497 | void *argp1 = 0 ; | |
21498 | int res1 = 0 ; | |
21499 | size_t val2 ; | |
21500 | int ecode2 = 0 ; | |
21501 | bool val3 ; | |
21502 | int ecode3 = 0 ; | |
21503 | PyObject * obj0 = 0 ; | |
21504 | PyObject * obj1 = 0 ; | |
21505 | PyObject * obj2 = 0 ; | |
21506 | char * kwnames[] = { | |
21507 | (char *) "self",(char *) "pos",(char *) "expand", NULL | |
21508 | }; | |
21509 | ||
21510 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21511 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21512 | if (!SWIG_IsOK(res1)) { | |
21513 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
21514 | } | |
21515 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21516 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
21517 | if (!SWIG_IsOK(ecode2)) { | |
21518 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'"); | |
21519 | } | |
21520 | arg2 = static_cast< size_t >(val2); | |
21521 | if (obj2) { | |
21522 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
21523 | if (!SWIG_IsOK(ecode3)) { | |
21524 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'"); | |
21525 | } | |
21526 | arg3 = static_cast< bool >(val3); | |
21527 | } | |
21528 | { | |
21529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21530 | result = (bool)(arg1)->ExpandNode(arg2,arg3); | |
21531 | wxPyEndAllowThreads(__tstate); | |
21532 | if (PyErr_Occurred()) SWIG_fail; | |
21533 | } | |
21534 | { | |
21535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21536 | } | |
21537 | return resultobj; | |
21538 | fail: | |
21539 | return NULL; | |
21540 | } | |
21541 | ||
21542 | ||
21543 | SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21544 | PyObject *resultobj = 0; | |
21545 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21546 | size_t arg2 ; | |
21547 | bool result; | |
21548 | void *argp1 = 0 ; | |
21549 | int res1 = 0 ; | |
21550 | size_t val2 ; | |
21551 | int ecode2 = 0 ; | |
21552 | PyObject * obj0 = 0 ; | |
21553 | PyObject * obj1 = 0 ; | |
21554 | char * kwnames[] = { | |
21555 | (char *) "self",(char *) "pos", NULL | |
21556 | }; | |
21557 | ||
21558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail; | |
21559 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21560 | if (!SWIG_IsOK(res1)) { | |
21561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
21562 | } | |
21563 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21564 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
21565 | if (!SWIG_IsOK(ecode2)) { | |
21566 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'"); | |
21567 | } | |
21568 | arg2 = static_cast< size_t >(val2); | |
21569 | { | |
21570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21571 | result = (bool)(arg1)->CollapseNode(arg2); | |
21572 | wxPyEndAllowThreads(__tstate); | |
21573 | if (PyErr_Occurred()) SWIG_fail; | |
21574 | } | |
21575 | { | |
21576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21577 | } | |
21578 | return resultobj; | |
21579 | fail: | |
21580 | return NULL; | |
21581 | } | |
21582 | ||
21583 | ||
21584 | SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21585 | PyObject *resultobj = 0; | |
21586 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21587 | size_t arg2 ; | |
21588 | int result; | |
21589 | void *argp1 = 0 ; | |
21590 | int res1 = 0 ; | |
21591 | size_t val2 ; | |
21592 | int ecode2 = 0 ; | |
21593 | PyObject * obj0 = 0 ; | |
21594 | PyObject * obj1 = 0 ; | |
21595 | char * kwnames[] = { | |
21596 | (char *) "self",(char *) "pos", NULL | |
21597 | }; | |
21598 | ||
21599 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
21600 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21601 | if (!SWIG_IsOK(res1)) { | |
21602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
21603 | } | |
21604 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21605 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
21606 | if (!SWIG_IsOK(ecode2)) { | |
21607 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'"); | |
21608 | } | |
21609 | arg2 = static_cast< size_t >(val2); | |
21610 | { | |
21611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21612 | result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2); | |
21613 | wxPyEndAllowThreads(__tstate); | |
21614 | if (PyErr_Occurred()) SWIG_fail; | |
21615 | } | |
21616 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21617 | return resultobj; | |
21618 | fail: | |
21619 | return NULL; | |
d55e5bfc RD |
21620 | } |
21621 | ||
21622 | ||
1bd55598 RD |
21623 | SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21624 | PyObject *resultobj = 0; | |
21625 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21626 | wxTreeCtrl *result = 0 ; | |
21627 | void *argp1 = 0 ; | |
21628 | int res1 = 0 ; | |
21629 | PyObject *swig_obj[1] ; | |
21630 | ||
21631 | if (!args) SWIG_fail; | |
21632 | swig_obj[0] = args; | |
21633 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21634 | if (!SWIG_IsOK(res1)) { | |
21635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
21636 | } | |
21637 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21638 | { | |
21639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21640 | result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl(); | |
21641 | wxPyEndAllowThreads(__tstate); | |
21642 | if (PyErr_Occurred()) SWIG_fail; | |
21643 | } | |
21644 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 ); | |
21645 | return resultobj; | |
21646 | fail: | |
21647 | return NULL; | |
21648 | } | |
21649 | ||
21650 | ||
21651 | SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21652 | PyObject *obj; | |
21653 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21654 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj)); | |
21655 | return SWIG_Py_Void(); | |
21656 | } | |
21657 | ||
21658 | SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21659 | return SWIG_Python_InitShadowInstance(args); | |
21660 | } | |
21661 | ||
21662 | SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21663 | PyObject *resultobj = 0; | |
21664 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21665 | int arg2 = (int) 0 ; | |
21666 | int arg3 = (int) wxNOT_FOUND ; | |
21667 | int arg4 = (int) wxNOT_FOUND ; | |
21668 | wxTreebookEvent *result = 0 ; | |
21669 | int val1 ; | |
21670 | int ecode1 = 0 ; | |
21671 | int val2 ; | |
21672 | int ecode2 = 0 ; | |
21673 | int val3 ; | |
21674 | int ecode3 = 0 ; | |
21675 | int val4 ; | |
21676 | int ecode4 = 0 ; | |
21677 | PyObject * obj0 = 0 ; | |
21678 | PyObject * obj1 = 0 ; | |
21679 | PyObject * obj2 = 0 ; | |
21680 | PyObject * obj3 = 0 ; | |
21681 | char * kwnames[] = { | |
21682 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21683 | }; | |
21684 | ||
21685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21686 | if (obj0) { | |
21687 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21688 | if (!SWIG_IsOK(ecode1)) { | |
21689 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21690 | } | |
21691 | arg1 = static_cast< wxEventType >(val1); | |
21692 | } | |
21693 | if (obj1) { | |
21694 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21695 | if (!SWIG_IsOK(ecode2)) { | |
21696 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21697 | } | |
21698 | arg2 = static_cast< int >(val2); | |
21699 | } | |
21700 | if (obj2) { | |
21701 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21702 | if (!SWIG_IsOK(ecode3)) { | |
21703 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21704 | } | |
21705 | arg3 = static_cast< int >(val3); | |
21706 | } | |
21707 | if (obj3) { | |
21708 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21709 | if (!SWIG_IsOK(ecode4)) { | |
21710 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21711 | } | |
21712 | arg4 = static_cast< int >(val4); | |
21713 | } | |
21714 | { | |
21715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21716 | result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4); | |
21717 | wxPyEndAllowThreads(__tstate); | |
21718 | if (PyErr_Occurred()) SWIG_fail; | |
21719 | } | |
21720 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 ); | |
21721 | return resultobj; | |
21722 | fail: | |
21723 | return NULL; | |
21724 | } | |
21725 | ||
21726 | ||
21727 | SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21728 | PyObject *obj; | |
21729 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21730 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj)); | |
21731 | return SWIG_Py_Void(); | |
21732 | } | |
21733 | ||
21734 | SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21735 | return SWIG_Python_InitShadowInstance(args); | |
21736 | } | |
21737 | ||
21738 | SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21739 | PyObject *resultobj = 0; | |
21740 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21741 | int arg2 ; | |
21742 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21743 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21744 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21745 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21746 | long arg5 = (long) wxBK_DEFAULT ; | |
21747 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21748 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21749 | wxToolbook *result = 0 ; | |
21750 | void *argp1 = 0 ; | |
21751 | int res1 = 0 ; | |
21752 | int val2 ; | |
21753 | int ecode2 = 0 ; | |
21754 | wxPoint temp3 ; | |
21755 | wxSize temp4 ; | |
21756 | long val5 ; | |
21757 | int ecode5 = 0 ; | |
21758 | bool temp6 = false ; | |
21759 | PyObject * obj0 = 0 ; | |
21760 | PyObject * obj1 = 0 ; | |
21761 | PyObject * obj2 = 0 ; | |
21762 | PyObject * obj3 = 0 ; | |
21763 | PyObject * obj4 = 0 ; | |
21764 | PyObject * obj5 = 0 ; | |
21765 | char * kwnames[] = { | |
21766 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21767 | }; | |
21768 | ||
21769 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21770 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21771 | if (!SWIG_IsOK(res1)) { | |
21772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21773 | } | |
21774 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21775 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21776 | if (!SWIG_IsOK(ecode2)) { | |
21777 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'"); | |
21778 | } | |
21779 | arg2 = static_cast< int >(val2); | |
21780 | if (obj2) { | |
36ed4f51 | 21781 | { |
1bd55598 RD |
21782 | arg3 = &temp3; |
21783 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 21784 | } |
1bd55598 RD |
21785 | } |
21786 | if (obj3) { | |
36ed4f51 | 21787 | { |
1bd55598 RD |
21788 | arg4 = &temp4; |
21789 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 21790 | } |
1bd55598 RD |
21791 | } |
21792 | if (obj4) { | |
21793 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21794 | if (!SWIG_IsOK(ecode5)) { | |
21795 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'"); | |
21796 | } | |
21797 | arg5 = static_cast< long >(val5); | |
21798 | } | |
21799 | if (obj5) { | |
d55e5bfc | 21800 | { |
1bd55598 RD |
21801 | arg6 = wxString_in_helper(obj5); |
21802 | if (arg6 == NULL) SWIG_fail; | |
21803 | temp6 = true; | |
d55e5bfc | 21804 | } |
1bd55598 RD |
21805 | } |
21806 | { | |
21807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21808 | result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21809 | wxPyEndAllowThreads(__tstate); | |
21810 | if (PyErr_Occurred()) SWIG_fail; | |
21811 | } | |
21812 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 ); | |
21813 | { | |
21814 | if (temp6) | |
21815 | delete arg6; | |
21816 | } | |
21817 | return resultobj; | |
21818 | fail: | |
21819 | { | |
21820 | if (temp6) | |
21821 | delete arg6; | |
21822 | } | |
21823 | return NULL; | |
d55e5bfc RD |
21824 | } |
21825 | ||
21826 | ||
1bd55598 RD |
21827 | SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21828 | PyObject *resultobj = 0; | |
21829 | wxToolbook *result = 0 ; | |
21830 | ||
21831 | if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail; | |
21832 | { | |
21833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21834 | result = (wxToolbook *)new wxToolbook(); | |
21835 | wxPyEndAllowThreads(__tstate); | |
21836 | if (PyErr_Occurred()) SWIG_fail; | |
21837 | } | |
21838 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 ); | |
21839 | return resultobj; | |
21840 | fail: | |
21841 | return NULL; | |
21842 | } | |
21843 | ||
21844 | ||
21845 | SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21846 | PyObject *resultobj = 0; | |
21847 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
21848 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21849 | int arg3 ; | |
21850 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21851 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21852 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21853 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21854 | long arg6 = (long) 0 ; | |
21855 | wxString const &arg7_defvalue = wxEmptyString ; | |
21856 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21857 | bool result; | |
21858 | void *argp1 = 0 ; | |
21859 | int res1 = 0 ; | |
21860 | void *argp2 = 0 ; | |
21861 | int res2 = 0 ; | |
21862 | int val3 ; | |
21863 | int ecode3 = 0 ; | |
21864 | wxPoint temp4 ; | |
21865 | wxSize temp5 ; | |
21866 | long val6 ; | |
21867 | int ecode6 = 0 ; | |
21868 | bool temp7 = false ; | |
21869 | PyObject * obj0 = 0 ; | |
21870 | PyObject * obj1 = 0 ; | |
21871 | PyObject * obj2 = 0 ; | |
21872 | PyObject * obj3 = 0 ; | |
21873 | PyObject * obj4 = 0 ; | |
21874 | PyObject * obj5 = 0 ; | |
21875 | PyObject * obj6 = 0 ; | |
21876 | char * kwnames[] = { | |
21877 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21878 | }; | |
21879 | ||
21880 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21881 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
21882 | if (!SWIG_IsOK(res1)) { | |
21883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'"); | |
21884 | } | |
21885 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
21886 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21887 | if (!SWIG_IsOK(res2)) { | |
21888 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21889 | } | |
21890 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21891 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21892 | if (!SWIG_IsOK(ecode3)) { | |
21893 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'"); | |
21894 | } | |
21895 | arg3 = static_cast< int >(val3); | |
21896 | if (obj3) { | |
21897 | { | |
21898 | arg4 = &temp4; | |
21899 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
f20a2e1f | 21900 | } |
1bd55598 RD |
21901 | } |
21902 | if (obj4) { | |
f20a2e1f | 21903 | { |
1bd55598 RD |
21904 | arg5 = &temp5; |
21905 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
f20a2e1f | 21906 | } |
1bd55598 RD |
21907 | } |
21908 | if (obj5) { | |
21909 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21910 | if (!SWIG_IsOK(ecode6)) { | |
21911 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'"); | |
21912 | } | |
21913 | arg6 = static_cast< long >(val6); | |
21914 | } | |
21915 | if (obj6) { | |
f20a2e1f | 21916 | { |
1bd55598 RD |
21917 | arg7 = wxString_in_helper(obj6); |
21918 | if (arg7 == NULL) SWIG_fail; | |
21919 | temp7 = true; | |
f20a2e1f | 21920 | } |
1bd55598 RD |
21921 | } |
21922 | { | |
21923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21924 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21925 | wxPyEndAllowThreads(__tstate); | |
21926 | if (PyErr_Occurred()) SWIG_fail; | |
21927 | } | |
21928 | { | |
21929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21930 | } | |
21931 | { | |
21932 | if (temp7) | |
21933 | delete arg7; | |
21934 | } | |
21935 | return resultobj; | |
21936 | fail: | |
21937 | { | |
21938 | if (temp7) | |
21939 | delete arg7; | |
21940 | } | |
21941 | return NULL; | |
f20a2e1f RD |
21942 | } |
21943 | ||
21944 | ||
1bd55598 RD |
21945 | SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21946 | PyObject *resultobj = 0; | |
21947 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
21948 | wxToolBarBase *result = 0 ; | |
21949 | void *argp1 = 0 ; | |
21950 | int res1 = 0 ; | |
21951 | PyObject *swig_obj[1] ; | |
21952 | ||
21953 | if (!args) SWIG_fail; | |
21954 | swig_obj[0] = args; | |
21955 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
21956 | if (!SWIG_IsOK(res1)) { | |
21957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'"); | |
21958 | } | |
21959 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
21960 | { | |
21961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21962 | result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar(); | |
21963 | wxPyEndAllowThreads(__tstate); | |
21964 | if (PyErr_Occurred()) SWIG_fail; | |
21965 | } | |
21966 | { | |
21967 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
21968 | } | |
21969 | return resultobj; | |
21970 | fail: | |
21971 | return NULL; | |
d55e5bfc RD |
21972 | } |
21973 | ||
21974 | ||
1bd55598 RD |
21975 | SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21976 | PyObject *resultobj = 0; | |
21977 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
21978 | void *argp1 = 0 ; | |
21979 | int res1 = 0 ; | |
21980 | PyObject *swig_obj[1] ; | |
21981 | ||
21982 | if (!args) SWIG_fail; | |
21983 | swig_obj[0] = args; | |
21984 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
21985 | if (!SWIG_IsOK(res1)) { | |
21986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'"); | |
21987 | } | |
21988 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
21989 | { | |
21990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21991 | (arg1)->Realize(); | |
21992 | wxPyEndAllowThreads(__tstate); | |
21993 | if (PyErr_Occurred()) SWIG_fail; | |
21994 | } | |
21995 | resultobj = SWIG_Py_Void(); | |
21996 | return resultobj; | |
21997 | fail: | |
21998 | return NULL; | |
21999 | } | |
22000 | ||
22001 | ||
22002 | SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22003 | PyObject *obj; | |
22004 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22005 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj)); | |
22006 | return SWIG_Py_Void(); | |
22007 | } | |
22008 | ||
22009 | SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22010 | return SWIG_Python_InitShadowInstance(args); | |
22011 | } | |
22012 | ||
22013 | SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22014 | PyObject *resultobj = 0; | |
22015 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22016 | int arg2 = (int) 0 ; | |
22017 | int arg3 = (int) wxNOT_FOUND ; | |
22018 | int arg4 = (int) wxNOT_FOUND ; | |
22019 | wxToolbookEvent *result = 0 ; | |
22020 | int val1 ; | |
22021 | int ecode1 = 0 ; | |
22022 | int val2 ; | |
22023 | int ecode2 = 0 ; | |
22024 | int val3 ; | |
22025 | int ecode3 = 0 ; | |
22026 | int val4 ; | |
22027 | int ecode4 = 0 ; | |
22028 | PyObject * obj0 = 0 ; | |
22029 | PyObject * obj1 = 0 ; | |
22030 | PyObject * obj2 = 0 ; | |
22031 | PyObject * obj3 = 0 ; | |
22032 | char * kwnames[] = { | |
22033 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
22034 | }; | |
22035 | ||
22036 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22037 | if (obj0) { | |
22038 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22039 | if (!SWIG_IsOK(ecode1)) { | |
22040 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
22041 | } | |
22042 | arg1 = static_cast< wxEventType >(val1); | |
22043 | } | |
22044 | if (obj1) { | |
22045 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22046 | if (!SWIG_IsOK(ecode2)) { | |
22047 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'"); | |
22048 | } | |
22049 | arg2 = static_cast< int >(val2); | |
22050 | } | |
22051 | if (obj2) { | |
22052 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22053 | if (!SWIG_IsOK(ecode3)) { | |
22054 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'"); | |
22055 | } | |
22056 | arg3 = static_cast< int >(val3); | |
22057 | } | |
22058 | if (obj3) { | |
22059 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22060 | if (!SWIG_IsOK(ecode4)) { | |
22061 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'"); | |
22062 | } | |
22063 | arg4 = static_cast< int >(val4); | |
22064 | } | |
22065 | { | |
22066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22067 | result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4); | |
22068 | wxPyEndAllowThreads(__tstate); | |
22069 | if (PyErr_Occurred()) SWIG_fail; | |
22070 | } | |
22071 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 ); | |
22072 | return resultobj; | |
22073 | fail: | |
22074 | return NULL; | |
d55e5bfc RD |
22075 | } |
22076 | ||
22077 | ||
1bd55598 RD |
22078 | SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22079 | PyObject *obj; | |
22080 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22081 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj)); | |
22082 | return SWIG_Py_Void(); | |
d55e5bfc RD |
22083 | } |
22084 | ||
1bd55598 RD |
22085 | SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22086 | return SWIG_Python_InitShadowInstance(args); | |
22087 | } | |
d55e5bfc | 22088 | |
1bd55598 RD |
22089 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22090 | PyObject *resultobj = 0; | |
22091 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22092 | int result; | |
22093 | void *argp1 = 0 ; | |
22094 | int res1 = 0 ; | |
22095 | PyObject *swig_obj[1] ; | |
22096 | ||
22097 | if (!args) SWIG_fail; | |
22098 | swig_obj[0] = args; | |
22099 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22100 | if (!SWIG_IsOK(res1)) { | |
22101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22102 | } | |
22103 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22104 | { | |
22105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22106 | result = (int)(arg1)->GetId(); | |
22107 | wxPyEndAllowThreads(__tstate); | |
22108 | if (PyErr_Occurred()) SWIG_fail; | |
22109 | } | |
22110 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22111 | return resultobj; | |
22112 | fail: | |
22113 | return NULL; | |
d55e5bfc | 22114 | } |
1bd55598 RD |
22115 | |
22116 | ||
22117 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22118 | PyObject *resultobj = 0; | |
22119 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22120 | wxControl *result = 0 ; | |
22121 | void *argp1 = 0 ; | |
22122 | int res1 = 0 ; | |
22123 | PyObject *swig_obj[1] ; | |
22124 | ||
22125 | if (!args) SWIG_fail; | |
22126 | swig_obj[0] = args; | |
22127 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22128 | if (!SWIG_IsOK(res1)) { | |
22129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22130 | } | |
22131 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22132 | { | |
22133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22134 | result = (wxControl *)(arg1)->GetControl(); | |
22135 | wxPyEndAllowThreads(__tstate); | |
22136 | if (PyErr_Occurred()) SWIG_fail; | |
22137 | } | |
22138 | { | |
22139 | resultobj = wxPyMake_wxObject(result, 0); | |
22140 | } | |
22141 | return resultobj; | |
22142 | fail: | |
22143 | return NULL; | |
d55e5bfc RD |
22144 | } |
22145 | ||
22146 | ||
1bd55598 RD |
22147 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22148 | PyObject *resultobj = 0; | |
22149 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22150 | wxToolBarBase *result = 0 ; | |
22151 | void *argp1 = 0 ; | |
22152 | int res1 = 0 ; | |
22153 | PyObject *swig_obj[1] ; | |
22154 | ||
22155 | if (!args) SWIG_fail; | |
22156 | swig_obj[0] = args; | |
22157 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22158 | if (!SWIG_IsOK(res1)) { | |
22159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22160 | } | |
22161 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22162 | { | |
22163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22164 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
22165 | wxPyEndAllowThreads(__tstate); | |
22166 | if (PyErr_Occurred()) SWIG_fail; | |
22167 | } | |
22168 | { | |
22169 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
22170 | } | |
22171 | return resultobj; | |
22172 | fail: | |
22173 | return NULL; | |
d55e5bfc RD |
22174 | } |
22175 | ||
22176 | ||
1bd55598 RD |
22177 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22178 | PyObject *resultobj = 0; | |
22179 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22180 | int result; | |
22181 | void *argp1 = 0 ; | |
22182 | int res1 = 0 ; | |
22183 | PyObject *swig_obj[1] ; | |
22184 | ||
22185 | if (!args) SWIG_fail; | |
22186 | swig_obj[0] = args; | |
22187 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22188 | if (!SWIG_IsOK(res1)) { | |
22189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22190 | } | |
22191 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22192 | { | |
22193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22194 | result = (int)(arg1)->IsButton(); | |
22195 | wxPyEndAllowThreads(__tstate); | |
22196 | if (PyErr_Occurred()) SWIG_fail; | |
22197 | } | |
22198 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22199 | return resultobj; | |
22200 | fail: | |
22201 | return NULL; | |
d55e5bfc RD |
22202 | } |
22203 | ||
22204 | ||
1bd55598 RD |
22205 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22206 | PyObject *resultobj = 0; | |
22207 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22208 | int result; | |
22209 | void *argp1 = 0 ; | |
22210 | int res1 = 0 ; | |
22211 | PyObject *swig_obj[1] ; | |
22212 | ||
22213 | if (!args) SWIG_fail; | |
22214 | swig_obj[0] = args; | |
22215 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22216 | if (!SWIG_IsOK(res1)) { | |
22217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22218 | } | |
22219 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22220 | { | |
22221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22222 | result = (int)(arg1)->IsControl(); | |
22223 | wxPyEndAllowThreads(__tstate); | |
22224 | if (PyErr_Occurred()) SWIG_fail; | |
22225 | } | |
22226 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22227 | return resultobj; | |
22228 | fail: | |
22229 | return NULL; | |
d55e5bfc RD |
22230 | } |
22231 | ||
22232 | ||
1bd55598 RD |
22233 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22234 | PyObject *resultobj = 0; | |
22235 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22236 | int result; | |
22237 | void *argp1 = 0 ; | |
22238 | int res1 = 0 ; | |
22239 | PyObject *swig_obj[1] ; | |
22240 | ||
22241 | if (!args) SWIG_fail; | |
22242 | swig_obj[0] = args; | |
22243 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22244 | if (!SWIG_IsOK(res1)) { | |
22245 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22246 | } | |
22247 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22248 | { | |
22249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22250 | result = (int)(arg1)->IsSeparator(); | |
22251 | wxPyEndAllowThreads(__tstate); | |
22252 | if (PyErr_Occurred()) SWIG_fail; | |
22253 | } | |
22254 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22255 | return resultobj; | |
22256 | fail: | |
22257 | return NULL; | |
d55e5bfc RD |
22258 | } |
22259 | ||
22260 | ||
1bd55598 RD |
22261 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22262 | PyObject *resultobj = 0; | |
22263 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22264 | int result; | |
22265 | void *argp1 = 0 ; | |
22266 | int res1 = 0 ; | |
22267 | PyObject *swig_obj[1] ; | |
22268 | ||
22269 | if (!args) SWIG_fail; | |
22270 | swig_obj[0] = args; | |
22271 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22272 | if (!SWIG_IsOK(res1)) { | |
22273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22274 | } | |
22275 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22276 | { | |
22277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22278 | result = (int)(arg1)->GetStyle(); | |
22279 | wxPyEndAllowThreads(__tstate); | |
22280 | if (PyErr_Occurred()) SWIG_fail; | |
22281 | } | |
22282 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22283 | return resultobj; | |
22284 | fail: | |
22285 | return NULL; | |
d55e5bfc RD |
22286 | } |
22287 | ||
22288 | ||
1bd55598 RD |
22289 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22290 | PyObject *resultobj = 0; | |
22291 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22292 | wxItemKind result; | |
22293 | void *argp1 = 0 ; | |
22294 | int res1 = 0 ; | |
22295 | PyObject *swig_obj[1] ; | |
22296 | ||
22297 | if (!args) SWIG_fail; | |
22298 | swig_obj[0] = args; | |
22299 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22300 | if (!SWIG_IsOK(res1)) { | |
22301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22302 | } | |
22303 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22304 | { | |
22305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22306 | result = (wxItemKind)(arg1)->GetKind(); | |
22307 | wxPyEndAllowThreads(__tstate); | |
22308 | if (PyErr_Occurred()) SWIG_fail; | |
22309 | } | |
22310 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22311 | return resultobj; | |
22312 | fail: | |
22313 | return NULL; | |
d55e5bfc RD |
22314 | } |
22315 | ||
22316 | ||
1bd55598 RD |
22317 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22318 | PyObject *resultobj = 0; | |
22319 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22320 | bool result; | |
22321 | void *argp1 = 0 ; | |
22322 | int res1 = 0 ; | |
22323 | PyObject *swig_obj[1] ; | |
22324 | ||
22325 | if (!args) SWIG_fail; | |
22326 | swig_obj[0] = args; | |
22327 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22328 | if (!SWIG_IsOK(res1)) { | |
22329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22330 | } | |
22331 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22332 | { | |
22333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22334 | result = (bool)(arg1)->IsEnabled(); | |
22335 | wxPyEndAllowThreads(__tstate); | |
22336 | if (PyErr_Occurred()) SWIG_fail; | |
22337 | } | |
22338 | { | |
22339 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22340 | } | |
22341 | return resultobj; | |
22342 | fail: | |
22343 | return NULL; | |
d55e5bfc RD |
22344 | } |
22345 | ||
22346 | ||
1bd55598 RD |
22347 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22348 | PyObject *resultobj = 0; | |
22349 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22350 | bool result; | |
22351 | void *argp1 = 0 ; | |
22352 | int res1 = 0 ; | |
22353 | PyObject *swig_obj[1] ; | |
22354 | ||
22355 | if (!args) SWIG_fail; | |
22356 | swig_obj[0] = args; | |
22357 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22358 | if (!SWIG_IsOK(res1)) { | |
22359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22360 | } | |
22361 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22362 | { | |
22363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22364 | result = (bool)(arg1)->IsToggled(); | |
22365 | wxPyEndAllowThreads(__tstate); | |
22366 | if (PyErr_Occurred()) SWIG_fail; | |
22367 | } | |
22368 | { | |
22369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22370 | } | |
22371 | return resultobj; | |
22372 | fail: | |
22373 | return NULL; | |
d55e5bfc RD |
22374 | } |
22375 | ||
22376 | ||
1bd55598 RD |
22377 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22378 | PyObject *resultobj = 0; | |
22379 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22380 | bool result; | |
22381 | void *argp1 = 0 ; | |
22382 | int res1 = 0 ; | |
22383 | PyObject *swig_obj[1] ; | |
22384 | ||
22385 | if (!args) SWIG_fail; | |
22386 | swig_obj[0] = args; | |
22387 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22388 | if (!SWIG_IsOK(res1)) { | |
22389 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22390 | } | |
22391 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22392 | { | |
22393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22394 | result = (bool)(arg1)->CanBeToggled(); | |
22395 | wxPyEndAllowThreads(__tstate); | |
22396 | if (PyErr_Occurred()) SWIG_fail; | |
22397 | } | |
22398 | { | |
22399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22400 | } | |
22401 | return resultobj; | |
22402 | fail: | |
22403 | return NULL; | |
d55e5bfc RD |
22404 | } |
22405 | ||
22406 | ||
1bd55598 RD |
22407 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22408 | PyObject *resultobj = 0; | |
22409 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22410 | wxBitmap *result = 0 ; | |
22411 | void *argp1 = 0 ; | |
22412 | int res1 = 0 ; | |
22413 | PyObject *swig_obj[1] ; | |
22414 | ||
22415 | if (!args) SWIG_fail; | |
22416 | swig_obj[0] = args; | |
22417 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22418 | if (!SWIG_IsOK(res1)) { | |
22419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22420 | } | |
22421 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22422 | { | |
22423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 22424 | { |
1bd55598 RD |
22425 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); |
22426 | result = (wxBitmap *) &_result_ref; | |
36ed4f51 | 22427 | } |
1bd55598 RD |
22428 | wxPyEndAllowThreads(__tstate); |
22429 | if (PyErr_Occurred()) SWIG_fail; | |
22430 | } | |
22431 | { | |
22432 | wxBitmap* resultptr = new wxBitmap(*result); | |
22433 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
22434 | } | |
22435 | return resultobj; | |
22436 | fail: | |
22437 | return NULL; | |
d55e5bfc RD |
22438 | } |
22439 | ||
22440 | ||
1bd55598 RD |
22441 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22442 | PyObject *resultobj = 0; | |
22443 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22444 | wxBitmap *result = 0 ; | |
22445 | void *argp1 = 0 ; | |
22446 | int res1 = 0 ; | |
22447 | PyObject *swig_obj[1] ; | |
22448 | ||
22449 | if (!args) SWIG_fail; | |
22450 | swig_obj[0] = args; | |
22451 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22452 | if (!SWIG_IsOK(res1)) { | |
22453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22454 | } | |
22455 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22456 | { | |
22457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 22458 | { |
1bd55598 RD |
22459 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); |
22460 | result = (wxBitmap *) &_result_ref; | |
d55e5bfc | 22461 | } |
1bd55598 RD |
22462 | wxPyEndAllowThreads(__tstate); |
22463 | if (PyErr_Occurred()) SWIG_fail; | |
22464 | } | |
22465 | { | |
22466 | wxBitmap* resultptr = new wxBitmap(*result); | |
22467 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
22468 | } | |
22469 | return resultobj; | |
22470 | fail: | |
22471 | return NULL; | |
d55e5bfc RD |
22472 | } |
22473 | ||
22474 | ||
1bd55598 RD |
22475 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22476 | PyObject *resultobj = 0; | |
22477 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22478 | wxBitmap result; | |
22479 | void *argp1 = 0 ; | |
22480 | int res1 = 0 ; | |
22481 | PyObject *swig_obj[1] ; | |
22482 | ||
22483 | if (!args) SWIG_fail; | |
22484 | swig_obj[0] = args; | |
22485 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22486 | if (!SWIG_IsOK(res1)) { | |
22487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22488 | } | |
22489 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22490 | { | |
22491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22492 | result = (arg1)->GetBitmap(); | |
22493 | wxPyEndAllowThreads(__tstate); | |
22494 | if (PyErr_Occurred()) SWIG_fail; | |
22495 | } | |
22496 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
22497 | return resultobj; | |
22498 | fail: | |
22499 | return NULL; | |
d55e5bfc RD |
22500 | } |
22501 | ||
22502 | ||
1bd55598 RD |
22503 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22504 | PyObject *resultobj = 0; | |
22505 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22506 | wxString result; | |
22507 | void *argp1 = 0 ; | |
22508 | int res1 = 0 ; | |
22509 | PyObject *swig_obj[1] ; | |
22510 | ||
22511 | if (!args) SWIG_fail; | |
22512 | swig_obj[0] = args; | |
22513 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22514 | if (!SWIG_IsOK(res1)) { | |
22515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22516 | } | |
22517 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22518 | { | |
22519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22520 | result = (arg1)->GetLabel(); | |
22521 | wxPyEndAllowThreads(__tstate); | |
22522 | if (PyErr_Occurred()) SWIG_fail; | |
22523 | } | |
22524 | { | |
22525 | #if wxUSE_UNICODE | |
22526 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22527 | #else | |
22528 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22529 | #endif | |
22530 | } | |
22531 | return resultobj; | |
22532 | fail: | |
22533 | return NULL; | |
d55e5bfc RD |
22534 | } |
22535 | ||
22536 | ||
1bd55598 RD |
22537 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22538 | PyObject *resultobj = 0; | |
22539 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22540 | wxString result; | |
22541 | void *argp1 = 0 ; | |
22542 | int res1 = 0 ; | |
22543 | PyObject *swig_obj[1] ; | |
22544 | ||
22545 | if (!args) SWIG_fail; | |
22546 | swig_obj[0] = args; | |
22547 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22548 | if (!SWIG_IsOK(res1)) { | |
22549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22550 | } | |
22551 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22552 | { | |
22553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22554 | result = (arg1)->GetShortHelp(); | |
22555 | wxPyEndAllowThreads(__tstate); | |
22556 | if (PyErr_Occurred()) SWIG_fail; | |
22557 | } | |
22558 | { | |
22559 | #if wxUSE_UNICODE | |
22560 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22561 | #else | |
22562 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22563 | #endif | |
22564 | } | |
22565 | return resultobj; | |
22566 | fail: | |
22567 | return NULL; | |
d55e5bfc RD |
22568 | } |
22569 | ||
22570 | ||
1bd55598 RD |
22571 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22572 | PyObject *resultobj = 0; | |
22573 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22574 | wxString result; | |
22575 | void *argp1 = 0 ; | |
22576 | int res1 = 0 ; | |
22577 | PyObject *swig_obj[1] ; | |
22578 | ||
22579 | if (!args) SWIG_fail; | |
22580 | swig_obj[0] = args; | |
22581 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22582 | if (!SWIG_IsOK(res1)) { | |
22583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22584 | } | |
22585 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22586 | { | |
22587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22588 | result = (arg1)->GetLongHelp(); | |
22589 | wxPyEndAllowThreads(__tstate); | |
22590 | if (PyErr_Occurred()) SWIG_fail; | |
22591 | } | |
22592 | { | |
22593 | #if wxUSE_UNICODE | |
22594 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22595 | #else | |
22596 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22597 | #endif | |
22598 | } | |
22599 | return resultobj; | |
22600 | fail: | |
22601 | return NULL; | |
22602 | } | |
22603 | ||
22604 | ||
22605 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22606 | PyObject *resultobj = 0; | |
22607 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22608 | bool arg2 ; | |
22609 | bool result; | |
22610 | void *argp1 = 0 ; | |
22611 | int res1 = 0 ; | |
22612 | bool val2 ; | |
22613 | int ecode2 = 0 ; | |
22614 | PyObject * obj0 = 0 ; | |
22615 | PyObject * obj1 = 0 ; | |
22616 | char * kwnames[] = { | |
22617 | (char *) "self",(char *) "enable", NULL | |
22618 | }; | |
22619 | ||
22620 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail; | |
22621 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22622 | if (!SWIG_IsOK(res1)) { | |
22623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22624 | } | |
22625 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22626 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
22627 | if (!SWIG_IsOK(ecode2)) { | |
22628 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'"); | |
22629 | } | |
22630 | arg2 = static_cast< bool >(val2); | |
22631 | { | |
22632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22633 | result = (bool)(arg1)->Enable(arg2); | |
22634 | wxPyEndAllowThreads(__tstate); | |
22635 | if (PyErr_Occurred()) SWIG_fail; | |
22636 | } | |
22637 | { | |
22638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22639 | } | |
22640 | return resultobj; | |
22641 | fail: | |
22642 | return NULL; | |
d55e5bfc RD |
22643 | } |
22644 | ||
22645 | ||
1bd55598 RD |
22646 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22647 | PyObject *resultobj = 0; | |
22648 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22649 | void *argp1 = 0 ; | |
22650 | int res1 = 0 ; | |
22651 | PyObject *swig_obj[1] ; | |
22652 | ||
22653 | if (!args) SWIG_fail; | |
22654 | swig_obj[0] = args; | |
22655 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22656 | if (!SWIG_IsOK(res1)) { | |
22657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22658 | } | |
22659 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22660 | { | |
22661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22662 | (arg1)->Toggle(); | |
22663 | wxPyEndAllowThreads(__tstate); | |
22664 | if (PyErr_Occurred()) SWIG_fail; | |
22665 | } | |
22666 | resultobj = SWIG_Py_Void(); | |
22667 | return resultobj; | |
22668 | fail: | |
22669 | return NULL; | |
22670 | } | |
22671 | ||
22672 | ||
22673 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22674 | PyObject *resultobj = 0; | |
22675 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22676 | bool arg2 ; | |
22677 | bool result; | |
22678 | void *argp1 = 0 ; | |
22679 | int res1 = 0 ; | |
22680 | bool val2 ; | |
22681 | int ecode2 = 0 ; | |
22682 | PyObject * obj0 = 0 ; | |
22683 | PyObject * obj1 = 0 ; | |
22684 | char * kwnames[] = { | |
22685 | (char *) "self",(char *) "toggle", NULL | |
22686 | }; | |
22687 | ||
22688 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
22689 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22690 | if (!SWIG_IsOK(res1)) { | |
22691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22692 | } | |
22693 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22694 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
22695 | if (!SWIG_IsOK(ecode2)) { | |
22696 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'"); | |
22697 | } | |
22698 | arg2 = static_cast< bool >(val2); | |
22699 | { | |
22700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22701 | result = (bool)(arg1)->SetToggle(arg2); | |
22702 | wxPyEndAllowThreads(__tstate); | |
22703 | if (PyErr_Occurred()) SWIG_fail; | |
22704 | } | |
22705 | { | |
22706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22707 | } | |
22708 | return resultobj; | |
22709 | fail: | |
22710 | return NULL; | |
22711 | } | |
22712 | ||
22713 | ||
22714 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22715 | PyObject *resultobj = 0; | |
22716 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22717 | wxString *arg2 = 0 ; | |
22718 | bool result; | |
22719 | void *argp1 = 0 ; | |
22720 | int res1 = 0 ; | |
22721 | bool temp2 = false ; | |
22722 | PyObject * obj0 = 0 ; | |
22723 | PyObject * obj1 = 0 ; | |
22724 | char * kwnames[] = { | |
22725 | (char *) "self",(char *) "help", NULL | |
22726 | }; | |
22727 | ||
22728 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
22729 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22730 | if (!SWIG_IsOK(res1)) { | |
22731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22732 | } | |
22733 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22734 | { | |
22735 | arg2 = wxString_in_helper(obj1); | |
22736 | if (arg2 == NULL) SWIG_fail; | |
22737 | temp2 = true; | |
22738 | } | |
22739 | { | |
22740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22741 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
22742 | wxPyEndAllowThreads(__tstate); | |
22743 | if (PyErr_Occurred()) SWIG_fail; | |
22744 | } | |
22745 | { | |
22746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22747 | } | |
22748 | { | |
22749 | if (temp2) | |
22750 | delete arg2; | |
22751 | } | |
22752 | return resultobj; | |
22753 | fail: | |
22754 | { | |
22755 | if (temp2) | |
22756 | delete arg2; | |
22757 | } | |
22758 | return NULL; | |
22759 | } | |
22760 | ||
22761 | ||
22762 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22763 | PyObject *resultobj = 0; | |
22764 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22765 | wxString *arg2 = 0 ; | |
22766 | bool result; | |
22767 | void *argp1 = 0 ; | |
22768 | int res1 = 0 ; | |
22769 | bool temp2 = false ; | |
22770 | PyObject * obj0 = 0 ; | |
22771 | PyObject * obj1 = 0 ; | |
22772 | char * kwnames[] = { | |
22773 | (char *) "self",(char *) "help", NULL | |
22774 | }; | |
22775 | ||
22776 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
22777 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22778 | if (!SWIG_IsOK(res1)) { | |
22779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22780 | } | |
22781 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22782 | { | |
22783 | arg2 = wxString_in_helper(obj1); | |
22784 | if (arg2 == NULL) SWIG_fail; | |
22785 | temp2 = true; | |
22786 | } | |
22787 | { | |
22788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22789 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
22790 | wxPyEndAllowThreads(__tstate); | |
22791 | if (PyErr_Occurred()) SWIG_fail; | |
22792 | } | |
22793 | { | |
22794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22795 | } | |
22796 | { | |
22797 | if (temp2) | |
22798 | delete arg2; | |
22799 | } | |
22800 | return resultobj; | |
22801 | fail: | |
22802 | { | |
22803 | if (temp2) | |
22804 | delete arg2; | |
22805 | } | |
22806 | return NULL; | |
22807 | } | |
22808 | ||
22809 | ||
22810 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22811 | PyObject *resultobj = 0; | |
22812 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22813 | wxBitmap *arg2 = 0 ; | |
22814 | void *argp1 = 0 ; | |
22815 | int res1 = 0 ; | |
22816 | void *argp2 = 0 ; | |
22817 | int res2 = 0 ; | |
22818 | PyObject * obj0 = 0 ; | |
22819 | PyObject * obj1 = 0 ; | |
22820 | char * kwnames[] = { | |
22821 | (char *) "self",(char *) "bmp", NULL | |
22822 | }; | |
22823 | ||
22824 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
22825 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22826 | if (!SWIG_IsOK(res1)) { | |
22827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22828 | } | |
22829 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22830 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
22831 | if (!SWIG_IsOK(res2)) { | |
22832 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
22833 | } | |
22834 | if (!argp2) { | |
22835 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
22836 | } | |
22837 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
22838 | { | |
22839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22840 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
22841 | wxPyEndAllowThreads(__tstate); | |
22842 | if (PyErr_Occurred()) SWIG_fail; | |
22843 | } | |
22844 | resultobj = SWIG_Py_Void(); | |
22845 | return resultobj; | |
22846 | fail: | |
22847 | return NULL; | |
22848 | } | |
22849 | ||
22850 | ||
22851 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22852 | PyObject *resultobj = 0; | |
22853 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22854 | wxBitmap *arg2 = 0 ; | |
22855 | void *argp1 = 0 ; | |
22856 | int res1 = 0 ; | |
22857 | void *argp2 = 0 ; | |
22858 | int res2 = 0 ; | |
22859 | PyObject * obj0 = 0 ; | |
22860 | PyObject * obj1 = 0 ; | |
22861 | char * kwnames[] = { | |
22862 | (char *) "self",(char *) "bmp", NULL | |
22863 | }; | |
22864 | ||
22865 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
22866 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22867 | if (!SWIG_IsOK(res1)) { | |
22868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22869 | } | |
22870 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22871 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
22872 | if (!SWIG_IsOK(res2)) { | |
22873 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
22874 | } | |
22875 | if (!argp2) { | |
22876 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
22877 | } | |
22878 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
22879 | { | |
22880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22881 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
22882 | wxPyEndAllowThreads(__tstate); | |
22883 | if (PyErr_Occurred()) SWIG_fail; | |
22884 | } | |
22885 | resultobj = SWIG_Py_Void(); | |
22886 | return resultobj; | |
22887 | fail: | |
22888 | return NULL; | |
22889 | } | |
22890 | ||
22891 | ||
22892 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22893 | PyObject *resultobj = 0; | |
22894 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22895 | wxString *arg2 = 0 ; | |
22896 | void *argp1 = 0 ; | |
22897 | int res1 = 0 ; | |
22898 | bool temp2 = false ; | |
22899 | PyObject * obj0 = 0 ; | |
22900 | PyObject * obj1 = 0 ; | |
22901 | char * kwnames[] = { | |
22902 | (char *) "self",(char *) "label", NULL | |
22903 | }; | |
22904 | ||
22905 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22906 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22907 | if (!SWIG_IsOK(res1)) { | |
22908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22909 | } | |
22910 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22911 | { | |
22912 | arg2 = wxString_in_helper(obj1); | |
22913 | if (arg2 == NULL) SWIG_fail; | |
22914 | temp2 = true; | |
22915 | } | |
22916 | { | |
22917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22918 | (arg1)->SetLabel((wxString const &)*arg2); | |
22919 | wxPyEndAllowThreads(__tstate); | |
22920 | if (PyErr_Occurred()) SWIG_fail; | |
22921 | } | |
22922 | resultobj = SWIG_Py_Void(); | |
22923 | { | |
22924 | if (temp2) | |
22925 | delete arg2; | |
22926 | } | |
22927 | return resultobj; | |
22928 | fail: | |
22929 | { | |
22930 | if (temp2) | |
22931 | delete arg2; | |
22932 | } | |
22933 | return NULL; | |
d55e5bfc RD |
22934 | } |
22935 | ||
22936 | ||
1bd55598 RD |
22937 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22938 | PyObject *resultobj = 0; | |
22939 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22940 | void *argp1 = 0 ; | |
22941 | int res1 = 0 ; | |
22942 | PyObject *swig_obj[1] ; | |
22943 | ||
22944 | if (!args) SWIG_fail; | |
22945 | swig_obj[0] = args; | |
22946 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22947 | if (!SWIG_IsOK(res1)) { | |
22948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22949 | } | |
22950 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22951 | { | |
22952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22953 | (arg1)->Detach(); | |
22954 | wxPyEndAllowThreads(__tstate); | |
22955 | if (PyErr_Occurred()) SWIG_fail; | |
22956 | } | |
22957 | resultobj = SWIG_Py_Void(); | |
22958 | return resultobj; | |
22959 | fail: | |
22960 | return NULL; | |
22961 | } | |
22962 | ||
22963 | ||
22964 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22965 | PyObject *resultobj = 0; | |
22966 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22967 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
22968 | void *argp1 = 0 ; | |
22969 | int res1 = 0 ; | |
22970 | void *argp2 = 0 ; | |
22971 | int res2 = 0 ; | |
22972 | PyObject * obj0 = 0 ; | |
22973 | PyObject * obj1 = 0 ; | |
22974 | char * kwnames[] = { | |
22975 | (char *) "self",(char *) "tbar", NULL | |
22976 | }; | |
22977 | ||
22978 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail; | |
22979 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22980 | if (!SWIG_IsOK(res1)) { | |
22981 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22982 | } | |
22983 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22984 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
22985 | if (!SWIG_IsOK(res2)) { | |
22986 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'"); | |
22987 | } | |
22988 | arg2 = reinterpret_cast< wxToolBarBase * >(argp2); | |
22989 | { | |
22990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22991 | (arg1)->Attach(arg2); | |
22992 | wxPyEndAllowThreads(__tstate); | |
22993 | if (PyErr_Occurred()) SWIG_fail; | |
22994 | } | |
22995 | resultobj = SWIG_Py_Void(); | |
22996 | return resultobj; | |
22997 | fail: | |
22998 | return NULL; | |
d55e5bfc RD |
22999 | } |
23000 | ||
23001 | ||
1bd55598 RD |
23002 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23003 | PyObject *resultobj = 0; | |
23004 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23005 | PyObject *result = 0 ; | |
23006 | void *argp1 = 0 ; | |
23007 | int res1 = 0 ; | |
23008 | PyObject *swig_obj[1] ; | |
23009 | ||
23010 | if (!args) SWIG_fail; | |
23011 | swig_obj[0] = args; | |
23012 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23013 | if (!SWIG_IsOK(res1)) { | |
23014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23015 | } | |
23016 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23017 | { | |
23018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23019 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
23020 | wxPyEndAllowThreads(__tstate); | |
23021 | if (PyErr_Occurred()) SWIG_fail; | |
23022 | } | |
23023 | resultobj = result; | |
23024 | return resultobj; | |
23025 | fail: | |
23026 | return NULL; | |
23027 | } | |
23028 | ||
23029 | ||
23030 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23031 | PyObject *resultobj = 0; | |
23032 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23033 | PyObject *arg2 = (PyObject *) 0 ; | |
23034 | void *argp1 = 0 ; | |
23035 | int res1 = 0 ; | |
23036 | PyObject * obj0 = 0 ; | |
23037 | PyObject * obj1 = 0 ; | |
23038 | char * kwnames[] = { | |
23039 | (char *) "self",(char *) "clientData", NULL | |
23040 | }; | |
23041 | ||
23042 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail; | |
23043 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23044 | if (!SWIG_IsOK(res1)) { | |
23045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23046 | } | |
23047 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23048 | arg2 = obj1; | |
23049 | { | |
23050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23051 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
23052 | wxPyEndAllowThreads(__tstate); | |
23053 | if (PyErr_Occurred()) SWIG_fail; | |
23054 | } | |
23055 | resultobj = SWIG_Py_Void(); | |
23056 | return resultobj; | |
23057 | fail: | |
23058 | return NULL; | |
23059 | } | |
23060 | ||
23061 | ||
23062 | SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23063 | PyObject *obj; | |
23064 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23065 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj)); | |
23066 | return SWIG_Py_Void(); | |
23067 | } | |
23068 | ||
23069 | SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23070 | PyObject *resultobj = 0; | |
23071 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23072 | int arg2 ; | |
23073 | wxString *arg3 = 0 ; | |
23074 | wxBitmap *arg4 = 0 ; | |
23075 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
23076 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
23077 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; | |
23078 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
23079 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23080 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23081 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23082 | PyObject *arg9 = (PyObject *) NULL ; | |
23083 | wxToolBarToolBase *result = 0 ; | |
23084 | void *argp1 = 0 ; | |
23085 | int res1 = 0 ; | |
23086 | int val2 ; | |
23087 | int ecode2 = 0 ; | |
23088 | bool temp3 = false ; | |
23089 | void *argp4 = 0 ; | |
23090 | int res4 = 0 ; | |
23091 | void *argp5 = 0 ; | |
23092 | int res5 = 0 ; | |
23093 | int val6 ; | |
23094 | int ecode6 = 0 ; | |
23095 | bool temp7 = false ; | |
23096 | bool temp8 = false ; | |
23097 | PyObject * obj0 = 0 ; | |
23098 | PyObject * obj1 = 0 ; | |
23099 | PyObject * obj2 = 0 ; | |
23100 | PyObject * obj3 = 0 ; | |
23101 | PyObject * obj4 = 0 ; | |
23102 | PyObject * obj5 = 0 ; | |
23103 | PyObject * obj6 = 0 ; | |
23104 | PyObject * obj7 = 0 ; | |
23105 | PyObject * obj8 = 0 ; | |
23106 | char * kwnames[] = { | |
23107 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
23108 | }; | |
23109 | ||
23110 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
23111 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23112 | if (!SWIG_IsOK(res1)) { | |
23113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23114 | } | |
23115 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23116 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23117 | if (!SWIG_IsOK(ecode2)) { | |
23118 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'"); | |
23119 | } | |
23120 | arg2 = static_cast< int >(val2); | |
23121 | { | |
23122 | arg3 = wxString_in_helper(obj2); | |
23123 | if (arg3 == NULL) SWIG_fail; | |
23124 | temp3 = true; | |
23125 | } | |
23126 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23127 | if (!SWIG_IsOK(res4)) { | |
23128 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
23129 | } | |
23130 | if (!argp4) { | |
23131 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
23132 | } | |
23133 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
23134 | if (obj4) { | |
23135 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23136 | if (!SWIG_IsOK(res5)) { | |
23137 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
36ed4f51 | 23138 | } |
1bd55598 RD |
23139 | if (!argp5) { |
23140 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
f20a2e1f | 23141 | } |
1bd55598 RD |
23142 | arg5 = reinterpret_cast< wxBitmap * >(argp5); |
23143 | } | |
23144 | if (obj5) { | |
23145 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
23146 | if (!SWIG_IsOK(ecode6)) { | |
23147 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'"); | |
23148 | } | |
23149 | arg6 = static_cast< wxItemKind >(val6); | |
23150 | } | |
23151 | if (obj6) { | |
f20a2e1f | 23152 | { |
1bd55598 RD |
23153 | arg7 = wxString_in_helper(obj6); |
23154 | if (arg7 == NULL) SWIG_fail; | |
23155 | temp7 = true; | |
f20a2e1f | 23156 | } |
1bd55598 RD |
23157 | } |
23158 | if (obj7) { | |
f20a2e1f | 23159 | { |
1bd55598 RD |
23160 | arg8 = wxString_in_helper(obj7); |
23161 | if (arg8 == NULL) SWIG_fail; | |
23162 | temp8 = true; | |
d55e5bfc | 23163 | } |
1bd55598 RD |
23164 | } |
23165 | if (obj8) { | |
23166 | arg9 = obj8; | |
23167 | } | |
23168 | { | |
23169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23170 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
23171 | wxPyEndAllowThreads(__tstate); | |
23172 | if (PyErr_Occurred()) SWIG_fail; | |
23173 | } | |
23174 | { | |
23175 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23176 | } | |
23177 | { | |
23178 | if (temp3) | |
23179 | delete arg3; | |
23180 | } | |
23181 | { | |
23182 | if (temp7) | |
23183 | delete arg7; | |
23184 | } | |
23185 | { | |
23186 | if (temp8) | |
23187 | delete arg8; | |
23188 | } | |
23189 | return resultobj; | |
23190 | fail: | |
23191 | { | |
23192 | if (temp3) | |
23193 | delete arg3; | |
23194 | } | |
23195 | { | |
23196 | if (temp7) | |
23197 | delete arg7; | |
23198 | } | |
23199 | { | |
23200 | if (temp8) | |
23201 | delete arg8; | |
23202 | } | |
23203 | return NULL; | |
23204 | } | |
23205 | ||
23206 | ||
23207 | SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23208 | PyObject *resultobj = 0; | |
23209 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23210 | size_t arg2 ; | |
23211 | int arg3 ; | |
23212 | wxString *arg4 = 0 ; | |
23213 | wxBitmap *arg5 = 0 ; | |
23214 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
23215 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
23216 | wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ; | |
23217 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23218 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23219 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
23220 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
23221 | PyObject *arg10 = (PyObject *) NULL ; | |
23222 | wxToolBarToolBase *result = 0 ; | |
23223 | void *argp1 = 0 ; | |
23224 | int res1 = 0 ; | |
23225 | size_t val2 ; | |
23226 | int ecode2 = 0 ; | |
23227 | int val3 ; | |
23228 | int ecode3 = 0 ; | |
23229 | bool temp4 = false ; | |
23230 | void *argp5 = 0 ; | |
23231 | int res5 = 0 ; | |
23232 | void *argp6 = 0 ; | |
23233 | int res6 = 0 ; | |
23234 | int val7 ; | |
23235 | int ecode7 = 0 ; | |
23236 | bool temp8 = false ; | |
23237 | bool temp9 = false ; | |
23238 | PyObject * obj0 = 0 ; | |
23239 | PyObject * obj1 = 0 ; | |
23240 | PyObject * obj2 = 0 ; | |
23241 | PyObject * obj3 = 0 ; | |
23242 | PyObject * obj4 = 0 ; | |
23243 | PyObject * obj5 = 0 ; | |
23244 | PyObject * obj6 = 0 ; | |
23245 | PyObject * obj7 = 0 ; | |
23246 | PyObject * obj8 = 0 ; | |
23247 | PyObject * obj9 = 0 ; | |
23248 | char * kwnames[] = { | |
23249 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
23250 | }; | |
23251 | ||
23252 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
23253 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23254 | if (!SWIG_IsOK(res1)) { | |
23255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23256 | } | |
23257 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23258 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
23259 | if (!SWIG_IsOK(ecode2)) { | |
23260 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'"); | |
23261 | } | |
23262 | arg2 = static_cast< size_t >(val2); | |
23263 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23264 | if (!SWIG_IsOK(ecode3)) { | |
23265 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'"); | |
23266 | } | |
23267 | arg3 = static_cast< int >(val3); | |
23268 | { | |
23269 | arg4 = wxString_in_helper(obj3); | |
23270 | if (arg4 == NULL) SWIG_fail; | |
23271 | temp4 = true; | |
23272 | } | |
23273 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23274 | if (!SWIG_IsOK(res5)) { | |
23275 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
23276 | } | |
23277 | if (!argp5) { | |
23278 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
23279 | } | |
23280 | arg5 = reinterpret_cast< wxBitmap * >(argp5); | |
23281 | if (obj5) { | |
23282 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23283 | if (!SWIG_IsOK(res6)) { | |
23284 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 23285 | } |
1bd55598 RD |
23286 | if (!argp6) { |
23287 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'"); | |
d55e5bfc | 23288 | } |
1bd55598 RD |
23289 | arg6 = reinterpret_cast< wxBitmap * >(argp6); |
23290 | } | |
23291 | if (obj6) { | |
23292 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
23293 | if (!SWIG_IsOK(ecode7)) { | |
23294 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'"); | |
23295 | } | |
23296 | arg7 = static_cast< wxItemKind >(val7); | |
23297 | } | |
23298 | if (obj7) { | |
d55e5bfc | 23299 | { |
1bd55598 RD |
23300 | arg8 = wxString_in_helper(obj7); |
23301 | if (arg8 == NULL) SWIG_fail; | |
23302 | temp8 = true; | |
d55e5bfc | 23303 | } |
1bd55598 RD |
23304 | } |
23305 | if (obj8) { | |
d55e5bfc | 23306 | { |
1bd55598 RD |
23307 | arg9 = wxString_in_helper(obj8); |
23308 | if (arg9 == NULL) SWIG_fail; | |
23309 | temp9 = true; | |
d55e5bfc | 23310 | } |
1bd55598 RD |
23311 | } |
23312 | if (obj9) { | |
23313 | arg10 = obj9; | |
23314 | } | |
23315 | { | |
23316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23317 | result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10); | |
23318 | wxPyEndAllowThreads(__tstate); | |
23319 | if (PyErr_Occurred()) SWIG_fail; | |
23320 | } | |
23321 | { | |
23322 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23323 | } | |
23324 | { | |
23325 | if (temp4) | |
23326 | delete arg4; | |
23327 | } | |
23328 | { | |
23329 | if (temp8) | |
23330 | delete arg8; | |
23331 | } | |
23332 | { | |
23333 | if (temp9) | |
23334 | delete arg9; | |
23335 | } | |
23336 | return resultobj; | |
23337 | fail: | |
23338 | { | |
23339 | if (temp4) | |
23340 | delete arg4; | |
23341 | } | |
23342 | { | |
23343 | if (temp8) | |
23344 | delete arg8; | |
23345 | } | |
23346 | { | |
23347 | if (temp9) | |
23348 | delete arg9; | |
23349 | } | |
23350 | return NULL; | |
23351 | } | |
23352 | ||
23353 | ||
23354 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23355 | PyObject *resultobj = 0; | |
23356 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23357 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
23358 | wxToolBarToolBase *result = 0 ; | |
23359 | void *argp1 = 0 ; | |
23360 | int res1 = 0 ; | |
23361 | void *argp2 = 0 ; | |
23362 | int res2 = 0 ; | |
23363 | PyObject * obj0 = 0 ; | |
23364 | PyObject * obj1 = 0 ; | |
23365 | char * kwnames[] = { | |
23366 | (char *) "self",(char *) "tool", NULL | |
23367 | }; | |
23368 | ||
23369 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
23370 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23371 | if (!SWIG_IsOK(res1)) { | |
23372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23373 | } | |
23374 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23375 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23376 | if (!SWIG_IsOK(res2)) { | |
23377 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'"); | |
23378 | } | |
23379 | arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2); | |
23380 | { | |
23381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23382 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
23383 | wxPyEndAllowThreads(__tstate); | |
23384 | if (PyErr_Occurred()) SWIG_fail; | |
23385 | } | |
23386 | { | |
23387 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23388 | } | |
23389 | return resultobj; | |
23390 | fail: | |
23391 | return NULL; | |
23392 | } | |
23393 | ||
23394 | ||
23395 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23396 | PyObject *resultobj = 0; | |
23397 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23398 | size_t arg2 ; | |
23399 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
23400 | wxToolBarToolBase *result = 0 ; | |
23401 | void *argp1 = 0 ; | |
23402 | int res1 = 0 ; | |
23403 | size_t val2 ; | |
23404 | int ecode2 = 0 ; | |
23405 | void *argp3 = 0 ; | |
23406 | int res3 = 0 ; | |
23407 | PyObject * obj0 = 0 ; | |
23408 | PyObject * obj1 = 0 ; | |
23409 | PyObject * obj2 = 0 ; | |
23410 | char * kwnames[] = { | |
23411 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
23412 | }; | |
23413 | ||
23414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23416 | if (!SWIG_IsOK(res1)) { | |
23417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23418 | } | |
23419 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23420 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
23421 | if (!SWIG_IsOK(ecode2)) { | |
23422 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'"); | |
23423 | } | |
23424 | arg2 = static_cast< size_t >(val2); | |
23425 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23426 | if (!SWIG_IsOK(res3)) { | |
23427 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'"); | |
23428 | } | |
23429 | arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3); | |
23430 | { | |
23431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23432 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
23433 | wxPyEndAllowThreads(__tstate); | |
23434 | if (PyErr_Occurred()) SWIG_fail; | |
23435 | } | |
23436 | { | |
23437 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23438 | } | |
23439 | return resultobj; | |
23440 | fail: | |
23441 | return NULL; | |
23442 | } | |
23443 | ||
23444 | ||
23445 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23446 | PyObject *resultobj = 0; | |
23447 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23448 | wxControl *arg2 = (wxControl *) 0 ; | |
23449 | wxToolBarToolBase *result = 0 ; | |
23450 | void *argp1 = 0 ; | |
23451 | int res1 = 0 ; | |
23452 | void *argp2 = 0 ; | |
23453 | int res2 = 0 ; | |
23454 | PyObject * obj0 = 0 ; | |
23455 | PyObject * obj1 = 0 ; | |
23456 | char * kwnames[] = { | |
23457 | (char *) "self",(char *) "control", NULL | |
23458 | }; | |
23459 | ||
23460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
23461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23462 | if (!SWIG_IsOK(res1)) { | |
23463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23464 | } | |
23465 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23466 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 ); | |
23467 | if (!SWIG_IsOK(res2)) { | |
23468 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'"); | |
23469 | } | |
23470 | arg2 = reinterpret_cast< wxControl * >(argp2); | |
23471 | { | |
23472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23473 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
23474 | wxPyEndAllowThreads(__tstate); | |
23475 | if (PyErr_Occurred()) SWIG_fail; | |
23476 | } | |
23477 | { | |
23478 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23479 | } | |
23480 | return resultobj; | |
23481 | fail: | |
23482 | return NULL; | |
23483 | } | |
23484 | ||
23485 | ||
23486 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23487 | PyObject *resultobj = 0; | |
23488 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23489 | size_t arg2 ; | |
23490 | wxControl *arg3 = (wxControl *) 0 ; | |
23491 | wxToolBarToolBase *result = 0 ; | |
23492 | void *argp1 = 0 ; | |
23493 | int res1 = 0 ; | |
23494 | size_t val2 ; | |
23495 | int ecode2 = 0 ; | |
23496 | void *argp3 = 0 ; | |
23497 | int res3 = 0 ; | |
23498 | PyObject * obj0 = 0 ; | |
23499 | PyObject * obj1 = 0 ; | |
23500 | PyObject * obj2 = 0 ; | |
23501 | char * kwnames[] = { | |
23502 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
23503 | }; | |
23504 | ||
23505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23507 | if (!SWIG_IsOK(res1)) { | |
23508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23509 | } | |
23510 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23511 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
23512 | if (!SWIG_IsOK(ecode2)) { | |
23513 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'"); | |
23514 | } | |
23515 | arg2 = static_cast< size_t >(val2); | |
23516 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 ); | |
23517 | if (!SWIG_IsOK(res3)) { | |
23518 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'"); | |
23519 | } | |
23520 | arg3 = reinterpret_cast< wxControl * >(argp3); | |
23521 | { | |
23522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23523 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
23524 | wxPyEndAllowThreads(__tstate); | |
23525 | if (PyErr_Occurred()) SWIG_fail; | |
23526 | } | |
23527 | { | |
23528 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23529 | } | |
23530 | return resultobj; | |
23531 | fail: | |
23532 | return NULL; | |
23533 | } | |
23534 | ||
23535 | ||
23536 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23537 | PyObject *resultobj = 0; | |
23538 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23539 | int arg2 ; | |
23540 | wxControl *result = 0 ; | |
23541 | void *argp1 = 0 ; | |
23542 | int res1 = 0 ; | |
23543 | int val2 ; | |
23544 | int ecode2 = 0 ; | |
23545 | PyObject * obj0 = 0 ; | |
23546 | PyObject * obj1 = 0 ; | |
23547 | char * kwnames[] = { | |
23548 | (char *) "self",(char *) "id", NULL | |
23549 | }; | |
23550 | ||
23551 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
23552 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23553 | if (!SWIG_IsOK(res1)) { | |
23554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23555 | } | |
23556 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23557 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23558 | if (!SWIG_IsOK(ecode2)) { | |
23559 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'"); | |
23560 | } | |
23561 | arg2 = static_cast< int >(val2); | |
23562 | { | |
23563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23564 | result = (wxControl *)(arg1)->FindControl(arg2); | |
23565 | wxPyEndAllowThreads(__tstate); | |
23566 | if (PyErr_Occurred()) SWIG_fail; | |
23567 | } | |
23568 | { | |
23569 | resultobj = wxPyMake_wxObject(result, 0); | |
23570 | } | |
23571 | return resultobj; | |
23572 | fail: | |
23573 | return NULL; | |
d55e5bfc RD |
23574 | } |
23575 | ||
23576 | ||
1bd55598 RD |
23577 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23578 | PyObject *resultobj = 0; | |
23579 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23580 | wxToolBarToolBase *result = 0 ; | |
23581 | void *argp1 = 0 ; | |
23582 | int res1 = 0 ; | |
23583 | PyObject *swig_obj[1] ; | |
23584 | ||
23585 | if (!args) SWIG_fail; | |
23586 | swig_obj[0] = args; | |
23587 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23588 | if (!SWIG_IsOK(res1)) { | |
23589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23590 | } | |
23591 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23592 | { | |
23593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23594 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
23595 | wxPyEndAllowThreads(__tstate); | |
23596 | if (PyErr_Occurred()) SWIG_fail; | |
23597 | } | |
23598 | { | |
23599 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23600 | } | |
23601 | return resultobj; | |
23602 | fail: | |
23603 | return NULL; | |
23604 | } | |
23605 | ||
23606 | ||
23607 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23608 | PyObject *resultobj = 0; | |
23609 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23610 | size_t arg2 ; | |
23611 | wxToolBarToolBase *result = 0 ; | |
23612 | void *argp1 = 0 ; | |
23613 | int res1 = 0 ; | |
23614 | size_t val2 ; | |
23615 | int ecode2 = 0 ; | |
23616 | PyObject * obj0 = 0 ; | |
23617 | PyObject * obj1 = 0 ; | |
23618 | char * kwnames[] = { | |
23619 | (char *) "self",(char *) "pos", NULL | |
23620 | }; | |
23621 | ||
23622 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail; | |
23623 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23624 | if (!SWIG_IsOK(res1)) { | |
23625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23626 | } | |
23627 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23628 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
23629 | if (!SWIG_IsOK(ecode2)) { | |
23630 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'"); | |
23631 | } | |
23632 | arg2 = static_cast< size_t >(val2); | |
23633 | { | |
23634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23635 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
23636 | wxPyEndAllowThreads(__tstate); | |
23637 | if (PyErr_Occurred()) SWIG_fail; | |
23638 | } | |
23639 | { | |
23640 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23641 | } | |
23642 | return resultobj; | |
23643 | fail: | |
23644 | return NULL; | |
23645 | } | |
23646 | ||
23647 | ||
23648 | SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23649 | PyObject *resultobj = 0; | |
23650 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23651 | int arg2 ; | |
23652 | wxToolBarToolBase *result = 0 ; | |
23653 | void *argp1 = 0 ; | |
23654 | int res1 = 0 ; | |
23655 | int val2 ; | |
23656 | int ecode2 = 0 ; | |
23657 | PyObject * obj0 = 0 ; | |
23658 | PyObject * obj1 = 0 ; | |
23659 | char * kwnames[] = { | |
23660 | (char *) "self",(char *) "id", NULL | |
23661 | }; | |
23662 | ||
23663 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail; | |
23664 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23665 | if (!SWIG_IsOK(res1)) { | |
23666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23667 | } | |
23668 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23669 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23670 | if (!SWIG_IsOK(ecode2)) { | |
23671 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'"); | |
23672 | } | |
23673 | arg2 = static_cast< int >(val2); | |
23674 | { | |
23675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23676 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
23677 | wxPyEndAllowThreads(__tstate); | |
23678 | if (PyErr_Occurred()) SWIG_fail; | |
23679 | } | |
23680 | { | |
23681 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23682 | } | |
23683 | return resultobj; | |
23684 | fail: | |
23685 | return NULL; | |
23686 | } | |
23687 | ||
23688 | ||
23689 | SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23690 | PyObject *resultobj = 0; | |
23691 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23692 | size_t arg2 ; | |
23693 | bool result; | |
23694 | void *argp1 = 0 ; | |
23695 | int res1 = 0 ; | |
23696 | size_t val2 ; | |
23697 | int ecode2 = 0 ; | |
23698 | PyObject * obj0 = 0 ; | |
23699 | PyObject * obj1 = 0 ; | |
23700 | char * kwnames[] = { | |
23701 | (char *) "self",(char *) "pos", NULL | |
23702 | }; | |
23703 | ||
23704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
23705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23706 | if (!SWIG_IsOK(res1)) { | |
23707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23708 | } | |
23709 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23710 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
23711 | if (!SWIG_IsOK(ecode2)) { | |
23712 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'"); | |
23713 | } | |
23714 | arg2 = static_cast< size_t >(val2); | |
23715 | { | |
23716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23717 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
23718 | wxPyEndAllowThreads(__tstate); | |
23719 | if (PyErr_Occurred()) SWIG_fail; | |
23720 | } | |
23721 | { | |
23722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23723 | } | |
23724 | return resultobj; | |
23725 | fail: | |
23726 | return NULL; | |
23727 | } | |
23728 | ||
23729 | ||
23730 | SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23731 | PyObject *resultobj = 0; | |
23732 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23733 | int arg2 ; | |
23734 | bool result; | |
23735 | void *argp1 = 0 ; | |
23736 | int res1 = 0 ; | |
23737 | int val2 ; | |
23738 | int ecode2 = 0 ; | |
23739 | PyObject * obj0 = 0 ; | |
23740 | PyObject * obj1 = 0 ; | |
23741 | char * kwnames[] = { | |
23742 | (char *) "self",(char *) "id", NULL | |
23743 | }; | |
23744 | ||
23745 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail; | |
23746 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23747 | if (!SWIG_IsOK(res1)) { | |
23748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23749 | } | |
23750 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23751 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23752 | if (!SWIG_IsOK(ecode2)) { | |
23753 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'"); | |
23754 | } | |
23755 | arg2 = static_cast< int >(val2); | |
23756 | { | |
23757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23758 | result = (bool)(arg1)->DeleteTool(arg2); | |
23759 | wxPyEndAllowThreads(__tstate); | |
23760 | if (PyErr_Occurred()) SWIG_fail; | |
23761 | } | |
23762 | { | |
23763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23764 | } | |
23765 | return resultobj; | |
23766 | fail: | |
23767 | return NULL; | |
d55e5bfc RD |
23768 | } |
23769 | ||
23770 | ||
1bd55598 RD |
23771 | SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23772 | PyObject *resultobj = 0; | |
23773 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23774 | void *argp1 = 0 ; | |
23775 | int res1 = 0 ; | |
23776 | PyObject *swig_obj[1] ; | |
23777 | ||
23778 | if (!args) SWIG_fail; | |
23779 | swig_obj[0] = args; | |
23780 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23781 | if (!SWIG_IsOK(res1)) { | |
23782 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23783 | } | |
23784 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23785 | { | |
23786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23787 | (arg1)->ClearTools(); | |
23788 | wxPyEndAllowThreads(__tstate); | |
23789 | if (PyErr_Occurred()) SWIG_fail; | |
23790 | } | |
23791 | resultobj = SWIG_Py_Void(); | |
23792 | return resultobj; | |
23793 | fail: | |
23794 | return NULL; | |
d55e5bfc RD |
23795 | } |
23796 | ||
23797 | ||
1bd55598 RD |
23798 | SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23799 | PyObject *resultobj = 0; | |
23800 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23801 | bool result; | |
23802 | void *argp1 = 0 ; | |
23803 | int res1 = 0 ; | |
23804 | PyObject *swig_obj[1] ; | |
23805 | ||
23806 | if (!args) SWIG_fail; | |
23807 | swig_obj[0] = args; | |
23808 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23809 | if (!SWIG_IsOK(res1)) { | |
23810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23811 | } | |
23812 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23813 | { | |
23814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23815 | result = (bool)(arg1)->Realize(); | |
23816 | wxPyEndAllowThreads(__tstate); | |
23817 | if (PyErr_Occurred()) SWIG_fail; | |
23818 | } | |
23819 | { | |
23820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23821 | } | |
23822 | return resultobj; | |
23823 | fail: | |
23824 | return NULL; | |
23825 | } | |
23826 | ||
23827 | ||
23828 | SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23829 | PyObject *resultobj = 0; | |
23830 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23831 | int arg2 ; | |
23832 | bool arg3 ; | |
23833 | void *argp1 = 0 ; | |
23834 | int res1 = 0 ; | |
23835 | int val2 ; | |
23836 | int ecode2 = 0 ; | |
23837 | bool val3 ; | |
23838 | int ecode3 = 0 ; | |
23839 | PyObject * obj0 = 0 ; | |
23840 | PyObject * obj1 = 0 ; | |
23841 | PyObject * obj2 = 0 ; | |
23842 | char * kwnames[] = { | |
23843 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
23844 | }; | |
23845 | ||
23846 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23847 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23848 | if (!SWIG_IsOK(res1)) { | |
23849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23850 | } | |
23851 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23852 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23853 | if (!SWIG_IsOK(ecode2)) { | |
23854 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'"); | |
23855 | } | |
23856 | arg2 = static_cast< int >(val2); | |
23857 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
23858 | if (!SWIG_IsOK(ecode3)) { | |
23859 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'"); | |
23860 | } | |
23861 | arg3 = static_cast< bool >(val3); | |
23862 | { | |
23863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23864 | (arg1)->EnableTool(arg2,arg3); | |
23865 | wxPyEndAllowThreads(__tstate); | |
23866 | if (PyErr_Occurred()) SWIG_fail; | |
23867 | } | |
23868 | resultobj = SWIG_Py_Void(); | |
23869 | return resultobj; | |
23870 | fail: | |
23871 | return NULL; | |
23872 | } | |
23873 | ||
23874 | ||
23875 | SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23876 | PyObject *resultobj = 0; | |
23877 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23878 | int arg2 ; | |
23879 | bool arg3 ; | |
23880 | void *argp1 = 0 ; | |
23881 | int res1 = 0 ; | |
23882 | int val2 ; | |
23883 | int ecode2 = 0 ; | |
23884 | bool val3 ; | |
23885 | int ecode3 = 0 ; | |
23886 | PyObject * obj0 = 0 ; | |
23887 | PyObject * obj1 = 0 ; | |
23888 | PyObject * obj2 = 0 ; | |
23889 | char * kwnames[] = { | |
23890 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
23891 | }; | |
23892 | ||
23893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23895 | if (!SWIG_IsOK(res1)) { | |
23896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23897 | } | |
23898 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23899 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23900 | if (!SWIG_IsOK(ecode2)) { | |
23901 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'"); | |
23902 | } | |
23903 | arg2 = static_cast< int >(val2); | |
23904 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
23905 | if (!SWIG_IsOK(ecode3)) { | |
23906 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'"); | |
23907 | } | |
23908 | arg3 = static_cast< bool >(val3); | |
23909 | { | |
23910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23911 | (arg1)->ToggleTool(arg2,arg3); | |
23912 | wxPyEndAllowThreads(__tstate); | |
23913 | if (PyErr_Occurred()) SWIG_fail; | |
23914 | } | |
23915 | resultobj = SWIG_Py_Void(); | |
23916 | return resultobj; | |
23917 | fail: | |
23918 | return NULL; | |
23919 | } | |
23920 | ||
23921 | ||
23922 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23923 | PyObject *resultobj = 0; | |
23924 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23925 | int arg2 ; | |
23926 | bool arg3 ; | |
23927 | void *argp1 = 0 ; | |
23928 | int res1 = 0 ; | |
23929 | int val2 ; | |
23930 | int ecode2 = 0 ; | |
23931 | bool val3 ; | |
23932 | int ecode3 = 0 ; | |
23933 | PyObject * obj0 = 0 ; | |
23934 | PyObject * obj1 = 0 ; | |
23935 | PyObject * obj2 = 0 ; | |
23936 | char * kwnames[] = { | |
23937 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
23938 | }; | |
23939 | ||
23940 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23941 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23942 | if (!SWIG_IsOK(res1)) { | |
23943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23944 | } | |
23945 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23946 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23947 | if (!SWIG_IsOK(ecode2)) { | |
23948 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'"); | |
23949 | } | |
23950 | arg2 = static_cast< int >(val2); | |
23951 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
23952 | if (!SWIG_IsOK(ecode3)) { | |
23953 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'"); | |
23954 | } | |
23955 | arg3 = static_cast< bool >(val3); | |
23956 | { | |
23957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23958 | (arg1)->SetToggle(arg2,arg3); | |
23959 | wxPyEndAllowThreads(__tstate); | |
23960 | if (PyErr_Occurred()) SWIG_fail; | |
23961 | } | |
23962 | resultobj = SWIG_Py_Void(); | |
23963 | return resultobj; | |
23964 | fail: | |
23965 | return NULL; | |
23966 | } | |
23967 | ||
23968 | ||
23969 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23970 | PyObject *resultobj = 0; | |
23971 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23972 | int arg2 ; | |
23973 | PyObject *result = 0 ; | |
23974 | void *argp1 = 0 ; | |
23975 | int res1 = 0 ; | |
23976 | int val2 ; | |
23977 | int ecode2 = 0 ; | |
23978 | PyObject * obj0 = 0 ; | |
23979 | PyObject * obj1 = 0 ; | |
23980 | char * kwnames[] = { | |
23981 | (char *) "self",(char *) "id", NULL | |
23982 | }; | |
23983 | ||
23984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail; | |
23985 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23986 | if (!SWIG_IsOK(res1)) { | |
23987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23988 | } | |
23989 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23990 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23991 | if (!SWIG_IsOK(ecode2)) { | |
23992 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'"); | |
23993 | } | |
23994 | arg2 = static_cast< int >(val2); | |
23995 | { | |
23996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23997 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
23998 | wxPyEndAllowThreads(__tstate); | |
23999 | if (PyErr_Occurred()) SWIG_fail; | |
24000 | } | |
24001 | resultobj = result; | |
24002 | return resultobj; | |
24003 | fail: | |
24004 | return NULL; | |
24005 | } | |
24006 | ||
24007 | ||
24008 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24009 | PyObject *resultobj = 0; | |
24010 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24011 | int arg2 ; | |
24012 | PyObject *arg3 = (PyObject *) 0 ; | |
24013 | void *argp1 = 0 ; | |
24014 | int res1 = 0 ; | |
24015 | int val2 ; | |
24016 | int ecode2 = 0 ; | |
24017 | PyObject * obj0 = 0 ; | |
24018 | PyObject * obj1 = 0 ; | |
24019 | PyObject * obj2 = 0 ; | |
24020 | char * kwnames[] = { | |
24021 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
24022 | }; | |
24023 | ||
24024 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24025 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24026 | if (!SWIG_IsOK(res1)) { | |
24027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24028 | } | |
24029 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24030 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24031 | if (!SWIG_IsOK(ecode2)) { | |
24032 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'"); | |
24033 | } | |
24034 | arg2 = static_cast< int >(val2); | |
24035 | arg3 = obj2; | |
24036 | { | |
24037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24038 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
24039 | wxPyEndAllowThreads(__tstate); | |
24040 | if (PyErr_Occurred()) SWIG_fail; | |
24041 | } | |
24042 | resultobj = SWIG_Py_Void(); | |
24043 | return resultobj; | |
24044 | fail: | |
24045 | return NULL; | |
24046 | } | |
24047 | ||
24048 | ||
24049 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24050 | PyObject *resultobj = 0; | |
24051 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24052 | int arg2 ; | |
24053 | int result; | |
24054 | void *argp1 = 0 ; | |
24055 | int res1 = 0 ; | |
24056 | int val2 ; | |
24057 | int ecode2 = 0 ; | |
24058 | PyObject * obj0 = 0 ; | |
24059 | PyObject * obj1 = 0 ; | |
24060 | char * kwnames[] = { | |
24061 | (char *) "self",(char *) "id", NULL | |
24062 | }; | |
24063 | ||
24064 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
24065 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24066 | if (!SWIG_IsOK(res1)) { | |
24067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
24068 | } | |
24069 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24070 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24071 | if (!SWIG_IsOK(ecode2)) { | |
24072 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'"); | |
24073 | } | |
24074 | arg2 = static_cast< int >(val2); | |
24075 | { | |
24076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24077 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
24078 | wxPyEndAllowThreads(__tstate); | |
24079 | if (PyErr_Occurred()) SWIG_fail; | |
24080 | } | |
24081 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24082 | return resultobj; | |
24083 | fail: | |
24084 | return NULL; | |
24085 | } | |
24086 | ||
24087 | ||
24088 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24089 | PyObject *resultobj = 0; | |
24090 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24091 | int arg2 ; | |
24092 | bool result; | |
24093 | void *argp1 = 0 ; | |
24094 | int res1 = 0 ; | |
24095 | int val2 ; | |
24096 | int ecode2 = 0 ; | |
24097 | PyObject * obj0 = 0 ; | |
24098 | PyObject * obj1 = 0 ; | |
24099 | char * kwnames[] = { | |
24100 | (char *) "self",(char *) "id", NULL | |
24101 | }; | |
24102 | ||
24103 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail; | |
24104 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24105 | if (!SWIG_IsOK(res1)) { | |
24106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24107 | } | |
24108 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24109 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24110 | if (!SWIG_IsOK(ecode2)) { | |
24111 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'"); | |
24112 | } | |
24113 | arg2 = static_cast< int >(val2); | |
24114 | { | |
24115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24116 | result = (bool)(arg1)->GetToolState(arg2); | |
24117 | wxPyEndAllowThreads(__tstate); | |
24118 | if (PyErr_Occurred()) SWIG_fail; | |
24119 | } | |
24120 | { | |
24121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24122 | } | |
24123 | return resultobj; | |
24124 | fail: | |
24125 | return NULL; | |
24126 | } | |
24127 | ||
24128 | ||
24129 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24130 | PyObject *resultobj = 0; | |
24131 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24132 | int arg2 ; | |
24133 | bool result; | |
24134 | void *argp1 = 0 ; | |
24135 | int res1 = 0 ; | |
24136 | int val2 ; | |
24137 | int ecode2 = 0 ; | |
24138 | PyObject * obj0 = 0 ; | |
24139 | PyObject * obj1 = 0 ; | |
24140 | char * kwnames[] = { | |
24141 | (char *) "self",(char *) "id", NULL | |
24142 | }; | |
24143 | ||
24144 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
24145 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24146 | if (!SWIG_IsOK(res1)) { | |
24147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24148 | } | |
24149 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24150 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24151 | if (!SWIG_IsOK(ecode2)) { | |
24152 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'"); | |
24153 | } | |
24154 | arg2 = static_cast< int >(val2); | |
24155 | { | |
24156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24157 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
24158 | wxPyEndAllowThreads(__tstate); | |
24159 | if (PyErr_Occurred()) SWIG_fail; | |
24160 | } | |
24161 | { | |
24162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24163 | } | |
24164 | return resultobj; | |
24165 | fail: | |
24166 | return NULL; | |
24167 | } | |
24168 | ||
24169 | ||
24170 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24171 | PyObject *resultobj = 0; | |
24172 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24173 | int arg2 ; | |
24174 | wxString *arg3 = 0 ; | |
24175 | void *argp1 = 0 ; | |
24176 | int res1 = 0 ; | |
24177 | int val2 ; | |
24178 | int ecode2 = 0 ; | |
24179 | bool temp3 = false ; | |
24180 | PyObject * obj0 = 0 ; | |
24181 | PyObject * obj1 = 0 ; | |
24182 | PyObject * obj2 = 0 ; | |
24183 | char * kwnames[] = { | |
24184 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
24185 | }; | |
24186 | ||
24187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24188 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24189 | if (!SWIG_IsOK(res1)) { | |
24190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24191 | } | |
24192 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24193 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24194 | if (!SWIG_IsOK(ecode2)) { | |
24195 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'"); | |
24196 | } | |
24197 | arg2 = static_cast< int >(val2); | |
24198 | { | |
24199 | arg3 = wxString_in_helper(obj2); | |
24200 | if (arg3 == NULL) SWIG_fail; | |
24201 | temp3 = true; | |
24202 | } | |
24203 | { | |
24204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24205 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
24206 | wxPyEndAllowThreads(__tstate); | |
24207 | if (PyErr_Occurred()) SWIG_fail; | |
24208 | } | |
24209 | resultobj = SWIG_Py_Void(); | |
24210 | { | |
24211 | if (temp3) | |
24212 | delete arg3; | |
24213 | } | |
24214 | return resultobj; | |
24215 | fail: | |
24216 | { | |
24217 | if (temp3) | |
24218 | delete arg3; | |
24219 | } | |
24220 | return NULL; | |
24221 | } | |
24222 | ||
24223 | ||
24224 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24225 | PyObject *resultobj = 0; | |
24226 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24227 | int arg2 ; | |
24228 | wxString result; | |
24229 | void *argp1 = 0 ; | |
24230 | int res1 = 0 ; | |
24231 | int val2 ; | |
24232 | int ecode2 = 0 ; | |
24233 | PyObject * obj0 = 0 ; | |
24234 | PyObject * obj1 = 0 ; | |
24235 | char * kwnames[] = { | |
24236 | (char *) "self",(char *) "id", NULL | |
24237 | }; | |
24238 | ||
24239 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
24240 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24241 | if (!SWIG_IsOK(res1)) { | |
24242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24243 | } | |
24244 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24245 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24246 | if (!SWIG_IsOK(ecode2)) { | |
24247 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'"); | |
24248 | } | |
24249 | arg2 = static_cast< int >(val2); | |
24250 | { | |
24251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24252 | result = (arg1)->GetToolShortHelp(arg2); | |
24253 | wxPyEndAllowThreads(__tstate); | |
24254 | if (PyErr_Occurred()) SWIG_fail; | |
24255 | } | |
24256 | { | |
24257 | #if wxUSE_UNICODE | |
24258 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24259 | #else | |
24260 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24261 | #endif | |
24262 | } | |
24263 | return resultobj; | |
24264 | fail: | |
24265 | return NULL; | |
24266 | } | |
24267 | ||
24268 | ||
24269 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24270 | PyObject *resultobj = 0; | |
24271 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24272 | int arg2 ; | |
24273 | wxString *arg3 = 0 ; | |
24274 | void *argp1 = 0 ; | |
24275 | int res1 = 0 ; | |
24276 | int val2 ; | |
24277 | int ecode2 = 0 ; | |
24278 | bool temp3 = false ; | |
24279 | PyObject * obj0 = 0 ; | |
24280 | PyObject * obj1 = 0 ; | |
24281 | PyObject * obj2 = 0 ; | |
24282 | char * kwnames[] = { | |
24283 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
24284 | }; | |
24285 | ||
24286 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24287 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24288 | if (!SWIG_IsOK(res1)) { | |
24289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24290 | } | |
24291 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24292 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24293 | if (!SWIG_IsOK(ecode2)) { | |
24294 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'"); | |
24295 | } | |
24296 | arg2 = static_cast< int >(val2); | |
24297 | { | |
24298 | arg3 = wxString_in_helper(obj2); | |
24299 | if (arg3 == NULL) SWIG_fail; | |
24300 | temp3 = true; | |
24301 | } | |
24302 | { | |
24303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24304 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
24305 | wxPyEndAllowThreads(__tstate); | |
24306 | if (PyErr_Occurred()) SWIG_fail; | |
24307 | } | |
24308 | resultobj = SWIG_Py_Void(); | |
24309 | { | |
24310 | if (temp3) | |
24311 | delete arg3; | |
24312 | } | |
24313 | return resultobj; | |
24314 | fail: | |
24315 | { | |
24316 | if (temp3) | |
24317 | delete arg3; | |
24318 | } | |
24319 | return NULL; | |
24320 | } | |
24321 | ||
24322 | ||
24323 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24324 | PyObject *resultobj = 0; | |
24325 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24326 | int arg2 ; | |
24327 | wxString result; | |
24328 | void *argp1 = 0 ; | |
24329 | int res1 = 0 ; | |
24330 | int val2 ; | |
24331 | int ecode2 = 0 ; | |
24332 | PyObject * obj0 = 0 ; | |
24333 | PyObject * obj1 = 0 ; | |
24334 | char * kwnames[] = { | |
24335 | (char *) "self",(char *) "id", NULL | |
24336 | }; | |
24337 | ||
24338 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
24339 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24340 | if (!SWIG_IsOK(res1)) { | |
24341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24342 | } | |
24343 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24344 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24345 | if (!SWIG_IsOK(ecode2)) { | |
24346 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'"); | |
24347 | } | |
24348 | arg2 = static_cast< int >(val2); | |
24349 | { | |
24350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24351 | result = (arg1)->GetToolLongHelp(arg2); | |
24352 | wxPyEndAllowThreads(__tstate); | |
24353 | if (PyErr_Occurred()) SWIG_fail; | |
24354 | } | |
24355 | { | |
24356 | #if wxUSE_UNICODE | |
24357 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24358 | #else | |
24359 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24360 | #endif | |
24361 | } | |
24362 | return resultobj; | |
24363 | fail: | |
24364 | return NULL; | |
24365 | } | |
24366 | ||
24367 | ||
24368 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24369 | PyObject *resultobj = 0; | |
24370 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24371 | int arg2 ; | |
24372 | int arg3 ; | |
24373 | void *argp1 = 0 ; | |
24374 | int res1 = 0 ; | |
24375 | int val2 ; | |
24376 | int ecode2 = 0 ; | |
24377 | int val3 ; | |
24378 | int ecode3 = 0 ; | |
24379 | PyObject * obj0 = 0 ; | |
24380 | PyObject * obj1 = 0 ; | |
24381 | PyObject * obj2 = 0 ; | |
24382 | char * kwnames[] = { | |
24383 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24384 | }; | |
24385 | ||
24386 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24387 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24388 | if (!SWIG_IsOK(res1)) { | |
24389 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24390 | } | |
24391 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24392 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24393 | if (!SWIG_IsOK(ecode2)) { | |
24394 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'"); | |
24395 | } | |
24396 | arg2 = static_cast< int >(val2); | |
24397 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24398 | if (!SWIG_IsOK(ecode3)) { | |
24399 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'"); | |
24400 | } | |
24401 | arg3 = static_cast< int >(val3); | |
24402 | { | |
24403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24404 | (arg1)->SetMargins(arg2,arg3); | |
24405 | wxPyEndAllowThreads(__tstate); | |
24406 | if (PyErr_Occurred()) SWIG_fail; | |
24407 | } | |
24408 | resultobj = SWIG_Py_Void(); | |
24409 | return resultobj; | |
24410 | fail: | |
24411 | return NULL; | |
24412 | } | |
24413 | ||
24414 | ||
24415 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24416 | PyObject *resultobj = 0; | |
24417 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24418 | wxSize *arg2 = 0 ; | |
24419 | void *argp1 = 0 ; | |
24420 | int res1 = 0 ; | |
24421 | wxSize temp2 ; | |
24422 | PyObject * obj0 = 0 ; | |
24423 | PyObject * obj1 = 0 ; | |
24424 | char * kwnames[] = { | |
24425 | (char *) "self",(char *) "size", NULL | |
24426 | }; | |
24427 | ||
24428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
24429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24430 | if (!SWIG_IsOK(res1)) { | |
24431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24432 | } | |
24433 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24434 | { | |
24435 | arg2 = &temp2; | |
24436 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24437 | } | |
24438 | { | |
24439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24440 | (arg1)->SetMargins((wxSize const &)*arg2); | |
24441 | wxPyEndAllowThreads(__tstate); | |
24442 | if (PyErr_Occurred()) SWIG_fail; | |
24443 | } | |
24444 | resultobj = SWIG_Py_Void(); | |
24445 | return resultobj; | |
24446 | fail: | |
24447 | return NULL; | |
24448 | } | |
24449 | ||
24450 | ||
24451 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24452 | PyObject *resultobj = 0; | |
24453 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24454 | int arg2 ; | |
24455 | void *argp1 = 0 ; | |
24456 | int res1 = 0 ; | |
24457 | int val2 ; | |
24458 | int ecode2 = 0 ; | |
24459 | PyObject * obj0 = 0 ; | |
24460 | PyObject * obj1 = 0 ; | |
24461 | char * kwnames[] = { | |
24462 | (char *) "self",(char *) "packing", NULL | |
24463 | }; | |
24464 | ||
24465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail; | |
24466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24467 | if (!SWIG_IsOK(res1)) { | |
24468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24469 | } | |
24470 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24471 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24472 | if (!SWIG_IsOK(ecode2)) { | |
24473 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'"); | |
24474 | } | |
24475 | arg2 = static_cast< int >(val2); | |
24476 | { | |
24477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24478 | (arg1)->SetToolPacking(arg2); | |
24479 | wxPyEndAllowThreads(__tstate); | |
24480 | if (PyErr_Occurred()) SWIG_fail; | |
24481 | } | |
24482 | resultobj = SWIG_Py_Void(); | |
24483 | return resultobj; | |
24484 | fail: | |
24485 | return NULL; | |
24486 | } | |
24487 | ||
24488 | ||
24489 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24490 | PyObject *resultobj = 0; | |
24491 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24492 | int arg2 ; | |
24493 | void *argp1 = 0 ; | |
24494 | int res1 = 0 ; | |
24495 | int val2 ; | |
24496 | int ecode2 = 0 ; | |
24497 | PyObject * obj0 = 0 ; | |
24498 | PyObject * obj1 = 0 ; | |
24499 | char * kwnames[] = { | |
24500 | (char *) "self",(char *) "separation", NULL | |
24501 | }; | |
24502 | ||
24503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail; | |
24504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24505 | if (!SWIG_IsOK(res1)) { | |
24506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24507 | } | |
24508 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24509 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24510 | if (!SWIG_IsOK(ecode2)) { | |
24511 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'"); | |
24512 | } | |
24513 | arg2 = static_cast< int >(val2); | |
24514 | { | |
24515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24516 | (arg1)->SetToolSeparation(arg2); | |
24517 | wxPyEndAllowThreads(__tstate); | |
24518 | if (PyErr_Occurred()) SWIG_fail; | |
24519 | } | |
24520 | resultobj = SWIG_Py_Void(); | |
24521 | return resultobj; | |
24522 | fail: | |
24523 | return NULL; | |
d55e5bfc RD |
24524 | } |
24525 | ||
24526 | ||
1bd55598 RD |
24527 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24528 | PyObject *resultobj = 0; | |
24529 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24530 | wxSize result; | |
24531 | void *argp1 = 0 ; | |
24532 | int res1 = 0 ; | |
24533 | PyObject *swig_obj[1] ; | |
24534 | ||
24535 | if (!args) SWIG_fail; | |
24536 | swig_obj[0] = args; | |
24537 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24538 | if (!SWIG_IsOK(res1)) { | |
24539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24540 | } | |
24541 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24542 | { | |
24543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24544 | result = (arg1)->GetToolMargins(); | |
24545 | wxPyEndAllowThreads(__tstate); | |
24546 | if (PyErr_Occurred()) SWIG_fail; | |
24547 | } | |
24548 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
24549 | return resultobj; | |
24550 | fail: | |
24551 | return NULL; | |
d55e5bfc RD |
24552 | } |
24553 | ||
24554 | ||
1bd55598 RD |
24555 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24556 | PyObject *resultobj = 0; | |
24557 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24558 | wxSize result; | |
24559 | void *argp1 = 0 ; | |
24560 | int res1 = 0 ; | |
24561 | PyObject *swig_obj[1] ; | |
24562 | ||
24563 | if (!args) SWIG_fail; | |
24564 | swig_obj[0] = args; | |
24565 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24566 | if (!SWIG_IsOK(res1)) { | |
24567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24568 | } | |
24569 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24570 | { | |
24571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24572 | result = (arg1)->GetMargins(); | |
24573 | wxPyEndAllowThreads(__tstate); | |
24574 | if (PyErr_Occurred()) SWIG_fail; | |
24575 | } | |
24576 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
24577 | return resultobj; | |
24578 | fail: | |
24579 | return NULL; | |
d55e5bfc RD |
24580 | } |
24581 | ||
24582 | ||
1bd55598 RD |
24583 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24584 | PyObject *resultobj = 0; | |
24585 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24586 | int result; | |
24587 | void *argp1 = 0 ; | |
24588 | int res1 = 0 ; | |
24589 | PyObject *swig_obj[1] ; | |
24590 | ||
24591 | if (!args) SWIG_fail; | |
24592 | swig_obj[0] = args; | |
24593 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24594 | if (!SWIG_IsOK(res1)) { | |
24595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24596 | } | |
24597 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24598 | { | |
24599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24600 | result = (int)(arg1)->GetToolPacking(); | |
24601 | wxPyEndAllowThreads(__tstate); | |
24602 | if (PyErr_Occurred()) SWIG_fail; | |
24603 | } | |
24604 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24605 | return resultobj; | |
24606 | fail: | |
24607 | return NULL; | |
d55e5bfc RD |
24608 | } |
24609 | ||
24610 | ||
1bd55598 RD |
24611 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24612 | PyObject *resultobj = 0; | |
24613 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24614 | int result; | |
24615 | void *argp1 = 0 ; | |
24616 | int res1 = 0 ; | |
24617 | PyObject *swig_obj[1] ; | |
24618 | ||
24619 | if (!args) SWIG_fail; | |
24620 | swig_obj[0] = args; | |
24621 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24622 | if (!SWIG_IsOK(res1)) { | |
24623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24624 | } | |
24625 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24626 | { | |
24627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24628 | result = (int)(arg1)->GetToolSeparation(); | |
24629 | wxPyEndAllowThreads(__tstate); | |
24630 | if (PyErr_Occurred()) SWIG_fail; | |
24631 | } | |
24632 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24633 | return resultobj; | |
24634 | fail: | |
24635 | return NULL; | |
24636 | } | |
24637 | ||
24638 | ||
24639 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24640 | PyObject *resultobj = 0; | |
24641 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24642 | int arg2 ; | |
24643 | void *argp1 = 0 ; | |
24644 | int res1 = 0 ; | |
24645 | int val2 ; | |
24646 | int ecode2 = 0 ; | |
24647 | PyObject * obj0 = 0 ; | |
24648 | PyObject * obj1 = 0 ; | |
24649 | char * kwnames[] = { | |
24650 | (char *) "self",(char *) "nRows", NULL | |
24651 | }; | |
24652 | ||
24653 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail; | |
24654 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24655 | if (!SWIG_IsOK(res1)) { | |
24656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24657 | } | |
24658 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24659 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24660 | if (!SWIG_IsOK(ecode2)) { | |
24661 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'"); | |
24662 | } | |
24663 | arg2 = static_cast< int >(val2); | |
24664 | { | |
24665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24666 | (arg1)->SetRows(arg2); | |
24667 | wxPyEndAllowThreads(__tstate); | |
24668 | if (PyErr_Occurred()) SWIG_fail; | |
24669 | } | |
24670 | resultobj = SWIG_Py_Void(); | |
24671 | return resultobj; | |
24672 | fail: | |
24673 | return NULL; | |
24674 | } | |
24675 | ||
24676 | ||
24677 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24678 | PyObject *resultobj = 0; | |
24679 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24680 | int arg2 ; | |
24681 | int arg3 ; | |
24682 | void *argp1 = 0 ; | |
24683 | int res1 = 0 ; | |
24684 | int val2 ; | |
24685 | int ecode2 = 0 ; | |
24686 | int val3 ; | |
24687 | int ecode3 = 0 ; | |
24688 | PyObject * obj0 = 0 ; | |
24689 | PyObject * obj1 = 0 ; | |
24690 | PyObject * obj2 = 0 ; | |
24691 | char * kwnames[] = { | |
24692 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
24693 | }; | |
24694 | ||
24695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24697 | if (!SWIG_IsOK(res1)) { | |
24698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24699 | } | |
24700 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24701 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24702 | if (!SWIG_IsOK(ecode2)) { | |
24703 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'"); | |
24704 | } | |
24705 | arg2 = static_cast< int >(val2); | |
24706 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24707 | if (!SWIG_IsOK(ecode3)) { | |
24708 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'"); | |
24709 | } | |
24710 | arg3 = static_cast< int >(val3); | |
24711 | { | |
24712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24713 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
24714 | wxPyEndAllowThreads(__tstate); | |
24715 | if (PyErr_Occurred()) SWIG_fail; | |
24716 | } | |
24717 | resultobj = SWIG_Py_Void(); | |
24718 | return resultobj; | |
24719 | fail: | |
24720 | return NULL; | |
d55e5bfc RD |
24721 | } |
24722 | ||
24723 | ||
1bd55598 RD |
24724 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24725 | PyObject *resultobj = 0; | |
24726 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24727 | int result; | |
24728 | void *argp1 = 0 ; | |
24729 | int res1 = 0 ; | |
24730 | PyObject *swig_obj[1] ; | |
24731 | ||
24732 | if (!args) SWIG_fail; | |
24733 | swig_obj[0] = args; | |
24734 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24735 | if (!SWIG_IsOK(res1)) { | |
24736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24737 | } | |
24738 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24739 | { | |
24740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24741 | result = (int)(arg1)->GetMaxRows(); | |
24742 | wxPyEndAllowThreads(__tstate); | |
24743 | if (PyErr_Occurred()) SWIG_fail; | |
24744 | } | |
24745 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24746 | return resultobj; | |
24747 | fail: | |
24748 | return NULL; | |
d55e5bfc RD |
24749 | } |
24750 | ||
24751 | ||
1bd55598 RD |
24752 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24753 | PyObject *resultobj = 0; | |
24754 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24755 | int result; | |
24756 | void *argp1 = 0 ; | |
24757 | int res1 = 0 ; | |
24758 | PyObject *swig_obj[1] ; | |
24759 | ||
24760 | if (!args) SWIG_fail; | |
24761 | swig_obj[0] = args; | |
24762 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24763 | if (!SWIG_IsOK(res1)) { | |
24764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24765 | } | |
24766 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24767 | { | |
24768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24769 | result = (int)(arg1)->GetMaxCols(); | |
24770 | wxPyEndAllowThreads(__tstate); | |
24771 | if (PyErr_Occurred()) SWIG_fail; | |
24772 | } | |
24773 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24774 | return resultobj; | |
24775 | fail: | |
24776 | return NULL; | |
24777 | } | |
24778 | ||
24779 | ||
24780 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24781 | PyObject *resultobj = 0; | |
24782 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24783 | wxSize *arg2 = 0 ; | |
24784 | void *argp1 = 0 ; | |
24785 | int res1 = 0 ; | |
24786 | wxSize temp2 ; | |
24787 | PyObject * obj0 = 0 ; | |
24788 | PyObject * obj1 = 0 ; | |
24789 | char * kwnames[] = { | |
24790 | (char *) "self",(char *) "size", NULL | |
24791 | }; | |
24792 | ||
24793 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
24794 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24795 | if (!SWIG_IsOK(res1)) { | |
24796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24797 | } | |
24798 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24799 | { | |
24800 | arg2 = &temp2; | |
24801 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24802 | } | |
24803 | { | |
24804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24805 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
24806 | wxPyEndAllowThreads(__tstate); | |
24807 | if (PyErr_Occurred()) SWIG_fail; | |
24808 | } | |
24809 | resultobj = SWIG_Py_Void(); | |
24810 | return resultobj; | |
24811 | fail: | |
24812 | return NULL; | |
d55e5bfc RD |
24813 | } |
24814 | ||
24815 | ||
1bd55598 RD |
24816 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24817 | PyObject *resultobj = 0; | |
24818 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24819 | wxSize result; | |
24820 | void *argp1 = 0 ; | |
24821 | int res1 = 0 ; | |
24822 | PyObject *swig_obj[1] ; | |
24823 | ||
24824 | if (!args) SWIG_fail; | |
24825 | swig_obj[0] = args; | |
24826 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24827 | if (!SWIG_IsOK(res1)) { | |
24828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24829 | } | |
24830 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24831 | { | |
24832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24833 | result = (arg1)->GetToolBitmapSize(); | |
24834 | wxPyEndAllowThreads(__tstate); | |
24835 | if (PyErr_Occurred()) SWIG_fail; | |
24836 | } | |
24837 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
24838 | return resultobj; | |
24839 | fail: | |
24840 | return NULL; | |
d55e5bfc RD |
24841 | } |
24842 | ||
24843 | ||
1bd55598 RD |
24844 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24845 | PyObject *resultobj = 0; | |
24846 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24847 | wxSize result; | |
24848 | void *argp1 = 0 ; | |
24849 | int res1 = 0 ; | |
24850 | PyObject *swig_obj[1] ; | |
24851 | ||
24852 | if (!args) SWIG_fail; | |
24853 | swig_obj[0] = args; | |
24854 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24855 | if (!SWIG_IsOK(res1)) { | |
24856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24857 | } | |
24858 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24859 | { | |
24860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24861 | result = (arg1)->GetToolSize(); | |
24862 | wxPyEndAllowThreads(__tstate); | |
24863 | if (PyErr_Occurred()) SWIG_fail; | |
24864 | } | |
24865 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
24866 | return resultobj; | |
24867 | fail: | |
24868 | return NULL; | |
24869 | } | |
24870 | ||
24871 | ||
24872 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24873 | PyObject *resultobj = 0; | |
24874 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24875 | int arg2 ; | |
24876 | int arg3 ; | |
24877 | wxToolBarToolBase *result = 0 ; | |
24878 | void *argp1 = 0 ; | |
24879 | int res1 = 0 ; | |
24880 | int val2 ; | |
24881 | int ecode2 = 0 ; | |
24882 | int val3 ; | |
24883 | int ecode3 = 0 ; | |
24884 | PyObject * obj0 = 0 ; | |
24885 | PyObject * obj1 = 0 ; | |
24886 | PyObject * obj2 = 0 ; | |
24887 | char * kwnames[] = { | |
24888 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24889 | }; | |
24890 | ||
24891 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24892 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24893 | if (!SWIG_IsOK(res1)) { | |
24894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24895 | } | |
24896 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24897 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24898 | if (!SWIG_IsOK(ecode2)) { | |
24899 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'"); | |
24900 | } | |
24901 | arg2 = static_cast< int >(val2); | |
24902 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24903 | if (!SWIG_IsOK(ecode3)) { | |
24904 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'"); | |
24905 | } | |
24906 | arg3 = static_cast< int >(val3); | |
24907 | { | |
24908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24909 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
24910 | wxPyEndAllowThreads(__tstate); | |
24911 | if (PyErr_Occurred()) SWIG_fail; | |
24912 | } | |
24913 | { | |
24914 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24915 | } | |
24916 | return resultobj; | |
24917 | fail: | |
24918 | return NULL; | |
24919 | } | |
24920 | ||
24921 | ||
24922 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24923 | PyObject *resultobj = 0; | |
24924 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24925 | int arg2 ; | |
24926 | wxToolBarToolBase *result = 0 ; | |
24927 | void *argp1 = 0 ; | |
24928 | int res1 = 0 ; | |
24929 | int val2 ; | |
24930 | int ecode2 = 0 ; | |
24931 | PyObject * obj0 = 0 ; | |
24932 | PyObject * obj1 = 0 ; | |
24933 | char * kwnames[] = { | |
24934 | (char *) "self",(char *) "toolid", NULL | |
24935 | }; | |
24936 | ||
24937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail; | |
24938 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24939 | if (!SWIG_IsOK(res1)) { | |
24940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
24941 | } | |
24942 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24943 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24944 | if (!SWIG_IsOK(ecode2)) { | |
24945 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'"); | |
24946 | } | |
24947 | arg2 = static_cast< int >(val2); | |
24948 | { | |
24949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24950 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
24951 | wxPyEndAllowThreads(__tstate); | |
24952 | if (PyErr_Occurred()) SWIG_fail; | |
24953 | } | |
24954 | { | |
24955 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24956 | } | |
24957 | return resultobj; | |
24958 | fail: | |
24959 | return NULL; | |
d55e5bfc RD |
24960 | } |
24961 | ||
24962 | ||
1bd55598 RD |
24963 | SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24964 | PyObject *resultobj = 0; | |
24965 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24966 | bool result; | |
24967 | void *argp1 = 0 ; | |
24968 | int res1 = 0 ; | |
24969 | PyObject *swig_obj[1] ; | |
24970 | ||
24971 | if (!args) SWIG_fail; | |
24972 | swig_obj[0] = args; | |
24973 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24974 | if (!SWIG_IsOK(res1)) { | |
24975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24976 | } | |
24977 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24978 | { | |
24979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24980 | result = (bool)(arg1)->IsVertical(); | |
24981 | wxPyEndAllowThreads(__tstate); | |
24982 | if (PyErr_Occurred()) SWIG_fail; | |
24983 | } | |
24984 | { | |
24985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24986 | } | |
24987 | return resultobj; | |
24988 | fail: | |
24989 | return NULL; | |
d55e5bfc RD |
24990 | } |
24991 | ||
24992 | ||
1bd55598 RD |
24993 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24994 | PyObject *resultobj = 0; | |
24995 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24996 | size_t result; | |
24997 | void *argp1 = 0 ; | |
24998 | int res1 = 0 ; | |
24999 | PyObject *swig_obj[1] ; | |
25000 | ||
25001 | if (!args) SWIG_fail; | |
25002 | swig_obj[0] = args; | |
25003 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25004 | if (!SWIG_IsOK(res1)) { | |
25005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
25006 | } | |
25007 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25008 | { | |
25009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25010 | result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount(); | |
25011 | wxPyEndAllowThreads(__tstate); | |
25012 | if (PyErr_Occurred()) SWIG_fail; | |
25013 | } | |
25014 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
25015 | return resultobj; | |
25016 | fail: | |
25017 | return NULL; | |
25018 | } | |
25019 | ||
25020 | ||
25021 | SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25022 | PyObject *obj; | |
25023 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25024 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj)); | |
25025 | return SWIG_Py_Void(); | |
25026 | } | |
25027 | ||
25028 | SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25029 | PyObject *resultobj = 0; | |
25030 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25031 | int arg2 = (int) -1 ; | |
25032 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
25033 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25034 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25035 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25036 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
25037 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
25038 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
25039 | wxToolBar *result = 0 ; | |
25040 | void *argp1 = 0 ; | |
25041 | int res1 = 0 ; | |
25042 | int val2 ; | |
25043 | int ecode2 = 0 ; | |
25044 | wxPoint temp3 ; | |
25045 | wxSize temp4 ; | |
25046 | long val5 ; | |
25047 | int ecode5 = 0 ; | |
25048 | bool temp6 = false ; | |
25049 | PyObject * obj0 = 0 ; | |
25050 | PyObject * obj1 = 0 ; | |
25051 | PyObject * obj2 = 0 ; | |
25052 | PyObject * obj3 = 0 ; | |
25053 | PyObject * obj4 = 0 ; | |
25054 | PyObject * obj5 = 0 ; | |
25055 | char * kwnames[] = { | |
25056 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
25057 | }; | |
25058 | ||
25059 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
25060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25061 | if (!SWIG_IsOK(res1)) { | |
25062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25063 | } | |
25064 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25065 | if (obj1) { | |
25066 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25067 | if (!SWIG_IsOK(ecode2)) { | |
25068 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'"); | |
25069 | } | |
25070 | arg2 = static_cast< int >(val2); | |
25071 | } | |
25072 | if (obj2) { | |
d55e5bfc | 25073 | { |
1bd55598 RD |
25074 | arg3 = &temp3; |
25075 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 25076 | } |
1bd55598 RD |
25077 | } |
25078 | if (obj3) { | |
d55e5bfc | 25079 | { |
1bd55598 RD |
25080 | arg4 = &temp4; |
25081 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 25082 | } |
1bd55598 RD |
25083 | } |
25084 | if (obj4) { | |
25085 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
25086 | if (!SWIG_IsOK(ecode5)) { | |
25087 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'"); | |
25088 | } | |
25089 | arg5 = static_cast< long >(val5); | |
25090 | } | |
25091 | if (obj5) { | |
36ed4f51 | 25092 | { |
1bd55598 RD |
25093 | arg6 = wxString_in_helper(obj5); |
25094 | if (arg6 == NULL) SWIG_fail; | |
25095 | temp6 = true; | |
36ed4f51 | 25096 | } |
1bd55598 RD |
25097 | } |
25098 | { | |
25099 | if (!wxPyCheckForApp()) SWIG_fail; | |
25100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25101 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
25102 | wxPyEndAllowThreads(__tstate); | |
25103 | if (PyErr_Occurred()) SWIG_fail; | |
25104 | } | |
25105 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 ); | |
25106 | { | |
25107 | if (temp6) | |
25108 | delete arg6; | |
25109 | } | |
25110 | return resultobj; | |
25111 | fail: | |
25112 | { | |
25113 | if (temp6) | |
25114 | delete arg6; | |
25115 | } | |
25116 | return NULL; | |
d55e5bfc RD |
25117 | } |
25118 | ||
25119 | ||
1bd55598 RD |
25120 | SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25121 | PyObject *resultobj = 0; | |
25122 | wxToolBar *result = 0 ; | |
25123 | ||
25124 | if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail; | |
25125 | { | |
25126 | if (!wxPyCheckForApp()) SWIG_fail; | |
25127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25128 | result = (wxToolBar *)new wxToolBar(); | |
25129 | wxPyEndAllowThreads(__tstate); | |
25130 | if (PyErr_Occurred()) SWIG_fail; | |
25131 | } | |
25132 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 ); | |
25133 | return resultobj; | |
25134 | fail: | |
25135 | return NULL; | |
25136 | } | |
25137 | ||
25138 | ||
25139 | SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25140 | PyObject *resultobj = 0; | |
25141 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
25142 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25143 | int arg3 = (int) -1 ; | |
25144 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
25145 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25146 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25147 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25148 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
25149 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
25150 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
25151 | bool result; | |
25152 | void *argp1 = 0 ; | |
25153 | int res1 = 0 ; | |
25154 | void *argp2 = 0 ; | |
25155 | int res2 = 0 ; | |
25156 | int val3 ; | |
25157 | int ecode3 = 0 ; | |
25158 | wxPoint temp4 ; | |
25159 | wxSize temp5 ; | |
25160 | long val6 ; | |
25161 | int ecode6 = 0 ; | |
25162 | bool temp7 = false ; | |
25163 | PyObject * obj0 = 0 ; | |
25164 | PyObject * obj1 = 0 ; | |
25165 | PyObject * obj2 = 0 ; | |
25166 | PyObject * obj3 = 0 ; | |
25167 | PyObject * obj4 = 0 ; | |
25168 | PyObject * obj5 = 0 ; | |
25169 | PyObject * obj6 = 0 ; | |
25170 | char * kwnames[] = { | |
25171 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
25172 | }; | |
25173 | ||
25174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
25175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
25176 | if (!SWIG_IsOK(res1)) { | |
25177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'"); | |
25178 | } | |
25179 | arg1 = reinterpret_cast< wxToolBar * >(argp1); | |
25180 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25181 | if (!SWIG_IsOK(res2)) { | |
25182 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25183 | } | |
25184 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25185 | if (obj2) { | |
25186 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25187 | if (!SWIG_IsOK(ecode3)) { | |
25188 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
25189 | } | |
25190 | arg3 = static_cast< int >(val3); | |
25191 | } | |
25192 | if (obj3) { | |
d55e5bfc | 25193 | { |
1bd55598 RD |
25194 | arg4 = &temp4; |
25195 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 25196 | } |
1bd55598 RD |
25197 | } |
25198 | if (obj4) { | |
d55e5bfc | 25199 | { |
1bd55598 RD |
25200 | arg5 = &temp5; |
25201 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 25202 | } |
1bd55598 RD |
25203 | } |
25204 | if (obj5) { | |
25205 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
25206 | if (!SWIG_IsOK(ecode6)) { | |
25207 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'"); | |
25208 | } | |
25209 | arg6 = static_cast< long >(val6); | |
25210 | } | |
25211 | if (obj6) { | |
36ed4f51 | 25212 | { |
1bd55598 RD |
25213 | arg7 = wxString_in_helper(obj6); |
25214 | if (arg7 == NULL) SWIG_fail; | |
25215 | temp7 = true; | |
36ed4f51 | 25216 | } |
1bd55598 RD |
25217 | } |
25218 | { | |
25219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25220 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
25221 | wxPyEndAllowThreads(__tstate); | |
25222 | if (PyErr_Occurred()) SWIG_fail; | |
25223 | } | |
25224 | { | |
25225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25226 | } | |
25227 | { | |
25228 | if (temp7) | |
25229 | delete arg7; | |
25230 | } | |
25231 | return resultobj; | |
25232 | fail: | |
25233 | { | |
25234 | if (temp7) | |
25235 | delete arg7; | |
25236 | } | |
25237 | return NULL; | |
25238 | } | |
25239 | ||
25240 | ||
25241 | SWIGINTERN PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25242 | PyObject *resultobj = 0; | |
25243 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
25244 | int arg2 ; | |
25245 | int arg3 ; | |
25246 | wxToolBarToolBase *result = 0 ; | |
25247 | void *argp1 = 0 ; | |
25248 | int res1 = 0 ; | |
25249 | int val2 ; | |
25250 | int ecode2 = 0 ; | |
25251 | int val3 ; | |
25252 | int ecode3 = 0 ; | |
25253 | PyObject * obj0 = 0 ; | |
25254 | PyObject * obj1 = 0 ; | |
25255 | PyObject * obj2 = 0 ; | |
25256 | char * kwnames[] = { | |
25257 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25258 | }; | |
25259 | ||
25260 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25261 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
25262 | if (!SWIG_IsOK(res1)) { | |
25263 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBar *""'"); | |
25264 | } | |
25265 | arg1 = reinterpret_cast< wxToolBar * >(argp1); | |
25266 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25267 | if (!SWIG_IsOK(ecode2)) { | |
25268 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_FindToolForPosition" "', expected argument " "2"" of type '" "int""'"); | |
25269 | } | |
25270 | arg2 = static_cast< int >(val2); | |
25271 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25272 | if (!SWIG_IsOK(ecode3)) { | |
25273 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_FindToolForPosition" "', expected argument " "3"" of type '" "int""'"); | |
25274 | } | |
25275 | arg3 = static_cast< int >(val3); | |
25276 | { | |
25277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25278 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
25279 | wxPyEndAllowThreads(__tstate); | |
25280 | if (PyErr_Occurred()) SWIG_fail; | |
25281 | } | |
25282 | { | |
25283 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
25284 | } | |
25285 | return resultobj; | |
25286 | fail: | |
25287 | return NULL; | |
d55e5bfc RD |
25288 | } |
25289 | ||
25290 | ||
1bd55598 RD |
25291 | SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25292 | PyObject *resultobj = 0; | |
25293 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
25294 | SwigValueWrapper<wxVisualAttributes > result; | |
25295 | int val1 ; | |
25296 | int ecode1 = 0 ; | |
25297 | PyObject * obj0 = 0 ; | |
25298 | char * kwnames[] = { | |
25299 | (char *) "variant", NULL | |
25300 | }; | |
25301 | ||
25302 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
25303 | if (obj0) { | |
25304 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
25305 | if (!SWIG_IsOK(ecode1)) { | |
25306 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
25307 | } | |
25308 | arg1 = static_cast< wxWindowVariant >(val1); | |
25309 | } | |
25310 | { | |
25311 | if (!wxPyCheckForApp()) SWIG_fail; | |
25312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25313 | result = wxToolBar::GetClassDefaultAttributes(arg1); | |
25314 | wxPyEndAllowThreads(__tstate); | |
25315 | if (PyErr_Occurred()) SWIG_fail; | |
25316 | } | |
25317 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
25318 | return resultobj; | |
25319 | fail: | |
25320 | return NULL; | |
d55e5bfc RD |
25321 | } |
25322 | ||
25323 | ||
1bd55598 RD |
25324 | SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25325 | PyObject *obj; | |
25326 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25327 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj)); | |
25328 | return SWIG_Py_Void(); | |
d55e5bfc RD |
25329 | } |
25330 | ||
1bd55598 RD |
25331 | SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25332 | return SWIG_Python_InitShadowInstance(args); | |
25333 | } | |
d55e5bfc | 25334 | |
1bd55598 RD |
25335 | SWIGINTERN int ListCtrlNameStr_set(PyObject *) { |
25336 | SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only."); | |
25337 | return 1; | |
d55e5bfc RD |
25338 | } |
25339 | ||
25340 | ||
1bd55598 RD |
25341 | SWIGINTERN PyObject *ListCtrlNameStr_get(void) { |
25342 | PyObject *pyobj = 0; | |
25343 | ||
25344 | { | |
25345 | #if wxUSE_UNICODE | |
25346 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
25347 | #else | |
25348 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
25349 | #endif | |
25350 | } | |
25351 | return pyobj; | |
25352 | } | |
25353 | ||
25354 | ||
25355 | SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25356 | PyObject *resultobj = 0; | |
25357 | wxColour const &arg1_defvalue = wxNullColour ; | |
25358 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
25359 | wxColour const &arg2_defvalue = wxNullColour ; | |
25360 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
25361 | wxFont const &arg3_defvalue = wxNullFont ; | |
25362 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
25363 | wxListItemAttr *result = 0 ; | |
25364 | wxColour temp1 ; | |
25365 | wxColour temp2 ; | |
25366 | void *argp3 = 0 ; | |
25367 | int res3 = 0 ; | |
25368 | PyObject * obj0 = 0 ; | |
25369 | PyObject * obj1 = 0 ; | |
25370 | PyObject * obj2 = 0 ; | |
25371 | char * kwnames[] = { | |
25372 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
25373 | }; | |
25374 | ||
25375 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25376 | if (obj0) { | |
d55e5bfc | 25377 | { |
1bd55598 RD |
25378 | arg1 = &temp1; |
25379 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
d55e5bfc | 25380 | } |
1bd55598 RD |
25381 | } |
25382 | if (obj1) { | |
36ed4f51 | 25383 | { |
1bd55598 RD |
25384 | arg2 = &temp2; |
25385 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
36ed4f51 | 25386 | } |
1bd55598 RD |
25387 | } |
25388 | if (obj2) { | |
25389 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
25390 | if (!SWIG_IsOK(res3)) { | |
25391 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d55e5bfc | 25392 | } |
1bd55598 RD |
25393 | if (!argp3) { |
25394 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
36ed4f51 | 25395 | } |
1bd55598 RD |
25396 | arg3 = reinterpret_cast< wxFont * >(argp3); |
25397 | } | |
25398 | { | |
25399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25400 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
25401 | wxPyEndAllowThreads(__tstate); | |
25402 | if (PyErr_Occurred()) SWIG_fail; | |
25403 | } | |
25404 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 ); | |
25405 | return resultobj; | |
25406 | fail: | |
25407 | return NULL; | |
d55e5bfc RD |
25408 | } |
25409 | ||
25410 | ||
1bd55598 RD |
25411 | SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25412 | PyObject *resultobj = 0; | |
25413 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25414 | void *argp1 = 0 ; | |
25415 | int res1 = 0 ; | |
25416 | PyObject *swig_obj[1] ; | |
25417 | ||
25418 | if (!args) SWIG_fail; | |
25419 | swig_obj[0] = args; | |
25420 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 ); | |
25421 | if (!SWIG_IsOK(res1)) { | |
25422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25423 | } | |
25424 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25425 | { | |
25426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25427 | delete arg1; | |
d55e5bfc | 25428 | |
1bd55598 RD |
25429 | wxPyEndAllowThreads(__tstate); |
25430 | if (PyErr_Occurred()) SWIG_fail; | |
25431 | } | |
25432 | resultobj = SWIG_Py_Void(); | |
25433 | return resultobj; | |
25434 | fail: | |
25435 | return NULL; | |
25436 | } | |
25437 | ||
25438 | ||
25439 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25440 | PyObject *resultobj = 0; | |
25441 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25442 | wxColour *arg2 = 0 ; | |
25443 | void *argp1 = 0 ; | |
25444 | int res1 = 0 ; | |
25445 | wxColour temp2 ; | |
25446 | PyObject * obj0 = 0 ; | |
25447 | PyObject * obj1 = 0 ; | |
25448 | char * kwnames[] = { | |
25449 | (char *) "self",(char *) "colText", NULL | |
25450 | }; | |
25451 | ||
25452 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
25453 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25454 | if (!SWIG_IsOK(res1)) { | |
25455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25456 | } | |
25457 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25458 | { | |
25459 | arg2 = &temp2; | |
25460 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25461 | } | |
25462 | { | |
25463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25464 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
25465 | wxPyEndAllowThreads(__tstate); | |
25466 | if (PyErr_Occurred()) SWIG_fail; | |
25467 | } | |
25468 | resultobj = SWIG_Py_Void(); | |
25469 | return resultobj; | |
25470 | fail: | |
25471 | return NULL; | |
25472 | } | |
25473 | ||
25474 | ||
25475 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25476 | PyObject *resultobj = 0; | |
25477 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25478 | wxColour *arg2 = 0 ; | |
25479 | void *argp1 = 0 ; | |
25480 | int res1 = 0 ; | |
25481 | wxColour temp2 ; | |
25482 | PyObject * obj0 = 0 ; | |
25483 | PyObject * obj1 = 0 ; | |
25484 | char * kwnames[] = { | |
25485 | (char *) "self",(char *) "colBack", NULL | |
25486 | }; | |
25487 | ||
25488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
25489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25490 | if (!SWIG_IsOK(res1)) { | |
25491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25492 | } | |
25493 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25494 | { | |
25495 | arg2 = &temp2; | |
25496 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25497 | } | |
25498 | { | |
25499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25500 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
25501 | wxPyEndAllowThreads(__tstate); | |
25502 | if (PyErr_Occurred()) SWIG_fail; | |
25503 | } | |
25504 | resultobj = SWIG_Py_Void(); | |
25505 | return resultobj; | |
25506 | fail: | |
25507 | return NULL; | |
25508 | } | |
25509 | ||
25510 | ||
25511 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25512 | PyObject *resultobj = 0; | |
25513 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25514 | wxFont *arg2 = 0 ; | |
25515 | void *argp1 = 0 ; | |
25516 | int res1 = 0 ; | |
25517 | void *argp2 = 0 ; | |
25518 | int res2 = 0 ; | |
25519 | PyObject * obj0 = 0 ; | |
25520 | PyObject * obj1 = 0 ; | |
25521 | char * kwnames[] = { | |
25522 | (char *) "self",(char *) "font", NULL | |
25523 | }; | |
25524 | ||
25525 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
25526 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25527 | if (!SWIG_IsOK(res1)) { | |
25528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25529 | } | |
25530 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25531 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
25532 | if (!SWIG_IsOK(res2)) { | |
25533 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
25534 | } | |
25535 | if (!argp2) { | |
25536 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
25537 | } | |
25538 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
25539 | { | |
25540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25541 | (arg1)->SetFont((wxFont const &)*arg2); | |
25542 | wxPyEndAllowThreads(__tstate); | |
25543 | if (PyErr_Occurred()) SWIG_fail; | |
25544 | } | |
25545 | resultobj = SWIG_Py_Void(); | |
25546 | return resultobj; | |
25547 | fail: | |
25548 | return NULL; | |
d55e5bfc RD |
25549 | } |
25550 | ||
25551 | ||
1bd55598 RD |
25552 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25553 | PyObject *resultobj = 0; | |
25554 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25555 | bool result; | |
25556 | void *argp1 = 0 ; | |
25557 | int res1 = 0 ; | |
25558 | PyObject *swig_obj[1] ; | |
25559 | ||
25560 | if (!args) SWIG_fail; | |
25561 | swig_obj[0] = args; | |
25562 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25563 | if (!SWIG_IsOK(res1)) { | |
25564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25565 | } | |
25566 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25567 | { | |
25568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25569 | result = (bool)(arg1)->HasTextColour(); | |
25570 | wxPyEndAllowThreads(__tstate); | |
25571 | if (PyErr_Occurred()) SWIG_fail; | |
25572 | } | |
25573 | { | |
25574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25575 | } | |
25576 | return resultobj; | |
25577 | fail: | |
25578 | return NULL; | |
f20a2e1f RD |
25579 | } |
25580 | ||
25581 | ||
1bd55598 RD |
25582 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25583 | PyObject *resultobj = 0; | |
25584 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25585 | bool result; | |
25586 | void *argp1 = 0 ; | |
25587 | int res1 = 0 ; | |
25588 | PyObject *swig_obj[1] ; | |
25589 | ||
25590 | if (!args) SWIG_fail; | |
25591 | swig_obj[0] = args; | |
25592 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25593 | if (!SWIG_IsOK(res1)) { | |
25594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25595 | } | |
25596 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25597 | { | |
25598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25599 | result = (bool)(arg1)->HasBackgroundColour(); | |
25600 | wxPyEndAllowThreads(__tstate); | |
25601 | if (PyErr_Occurred()) SWIG_fail; | |
25602 | } | |
25603 | { | |
25604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25605 | } | |
25606 | return resultobj; | |
25607 | fail: | |
25608 | return NULL; | |
d55e5bfc | 25609 | } |
1bd55598 RD |
25610 | |
25611 | ||
25612 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25613 | PyObject *resultobj = 0; | |
25614 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25615 | bool result; | |
25616 | void *argp1 = 0 ; | |
25617 | int res1 = 0 ; | |
25618 | PyObject *swig_obj[1] ; | |
25619 | ||
25620 | if (!args) SWIG_fail; | |
25621 | swig_obj[0] = args; | |
25622 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25623 | if (!SWIG_IsOK(res1)) { | |
25624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25625 | } | |
25626 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25627 | { | |
25628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25629 | result = (bool)(arg1)->HasFont(); | |
25630 | wxPyEndAllowThreads(__tstate); | |
25631 | if (PyErr_Occurred()) SWIG_fail; | |
25632 | } | |
25633 | { | |
25634 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25635 | } | |
25636 | return resultobj; | |
25637 | fail: | |
25638 | return NULL; | |
d55e5bfc RD |
25639 | } |
25640 | ||
25641 | ||
1bd55598 RD |
25642 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25643 | PyObject *resultobj = 0; | |
25644 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25645 | wxColour result; | |
25646 | void *argp1 = 0 ; | |
25647 | int res1 = 0 ; | |
25648 | PyObject *swig_obj[1] ; | |
25649 | ||
25650 | if (!args) SWIG_fail; | |
25651 | swig_obj[0] = args; | |
25652 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25653 | if (!SWIG_IsOK(res1)) { | |
25654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25655 | } | |
25656 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25657 | { | |
25658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25659 | result = (arg1)->GetTextColour(); | |
25660 | wxPyEndAllowThreads(__tstate); | |
25661 | if (PyErr_Occurred()) SWIG_fail; | |
25662 | } | |
25663 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
25664 | return resultobj; | |
25665 | fail: | |
25666 | return NULL; | |
d55e5bfc RD |
25667 | } |
25668 | ||
25669 | ||
1bd55598 RD |
25670 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25671 | PyObject *resultobj = 0; | |
25672 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25673 | wxColour result; | |
25674 | void *argp1 = 0 ; | |
25675 | int res1 = 0 ; | |
25676 | PyObject *swig_obj[1] ; | |
25677 | ||
25678 | if (!args) SWIG_fail; | |
25679 | swig_obj[0] = args; | |
25680 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25681 | if (!SWIG_IsOK(res1)) { | |
25682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25683 | } | |
25684 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25685 | { | |
25686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25687 | result = (arg1)->GetBackgroundColour(); | |
25688 | wxPyEndAllowThreads(__tstate); | |
25689 | if (PyErr_Occurred()) SWIG_fail; | |
25690 | } | |
25691 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
25692 | return resultobj; | |
25693 | fail: | |
25694 | return NULL; | |
d55e5bfc RD |
25695 | } |
25696 | ||
25697 | ||
1bd55598 RD |
25698 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25699 | PyObject *resultobj = 0; | |
25700 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25701 | wxFont result; | |
25702 | void *argp1 = 0 ; | |
25703 | int res1 = 0 ; | |
25704 | PyObject *swig_obj[1] ; | |
25705 | ||
25706 | if (!args) SWIG_fail; | |
25707 | swig_obj[0] = args; | |
25708 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25709 | if (!SWIG_IsOK(res1)) { | |
25710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25711 | } | |
25712 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25713 | { | |
25714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25715 | result = (arg1)->GetFont(); | |
25716 | wxPyEndAllowThreads(__tstate); | |
25717 | if (PyErr_Occurred()) SWIG_fail; | |
25718 | } | |
25719 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
25720 | return resultobj; | |
25721 | fail: | |
25722 | return NULL; | |
25723 | } | |
25724 | ||
25725 | ||
25726 | SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25727 | PyObject *resultobj = 0; | |
25728 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25729 | wxListItemAttr *arg2 = 0 ; | |
25730 | void *argp1 = 0 ; | |
25731 | int res1 = 0 ; | |
25732 | void *argp2 = 0 ; | |
25733 | int res2 = 0 ; | |
25734 | PyObject * obj0 = 0 ; | |
25735 | PyObject * obj1 = 0 ; | |
25736 | char * kwnames[] = { | |
25737 | (char *) "self",(char *) "source", NULL | |
25738 | }; | |
25739 | ||
25740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail; | |
25741 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25742 | if (!SWIG_IsOK(res1)) { | |
25743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25744 | } | |
25745 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25746 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0); | |
25747 | if (!SWIG_IsOK(res2)) { | |
25748 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'"); | |
25749 | } | |
25750 | if (!argp2) { | |
25751 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'"); | |
25752 | } | |
25753 | arg2 = reinterpret_cast< wxListItemAttr * >(argp2); | |
25754 | { | |
25755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25756 | (arg1)->AssignFrom((wxListItemAttr const &)*arg2); | |
25757 | wxPyEndAllowThreads(__tstate); | |
25758 | if (PyErr_Occurred()) SWIG_fail; | |
25759 | } | |
25760 | resultobj = SWIG_Py_Void(); | |
25761 | return resultobj; | |
25762 | fail: | |
25763 | return NULL; | |
121b9a67 RD |
25764 | } |
25765 | ||
25766 | ||
1bd55598 RD |
25767 | SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25768 | PyObject *resultobj = 0; | |
25769 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25770 | void *argp1 = 0 ; | |
25771 | int res1 = 0 ; | |
25772 | PyObject *swig_obj[1] ; | |
25773 | ||
25774 | if (!args) SWIG_fail; | |
25775 | swig_obj[0] = args; | |
25776 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25777 | if (!SWIG_IsOK(res1)) { | |
25778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25779 | } | |
25780 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25781 | { | |
25782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25783 | wxListItemAttr_Destroy(arg1); | |
25784 | wxPyEndAllowThreads(__tstate); | |
25785 | if (PyErr_Occurred()) SWIG_fail; | |
25786 | } | |
25787 | resultobj = SWIG_Py_Void(); | |
25788 | return resultobj; | |
25789 | fail: | |
25790 | return NULL; | |
121b9a67 RD |
25791 | } |
25792 | ||
25793 | ||
1bd55598 RD |
25794 | SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25795 | PyObject *obj; | |
25796 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25797 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj)); | |
25798 | return SWIG_Py_Void(); | |
121b9a67 RD |
25799 | } |
25800 | ||
1bd55598 RD |
25801 | SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25802 | return SWIG_Python_InitShadowInstance(args); | |
25803 | } | |
121b9a67 | 25804 | |
1bd55598 RD |
25805 | SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25806 | PyObject *resultobj = 0; | |
25807 | wxListItem *result = 0 ; | |
25808 | ||
25809 | if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail; | |
25810 | { | |
25811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25812 | result = (wxListItem *)new wxListItem(); | |
25813 | wxPyEndAllowThreads(__tstate); | |
25814 | if (PyErr_Occurred()) SWIG_fail; | |
25815 | } | |
25816 | { | |
25817 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW); | |
25818 | } | |
25819 | return resultobj; | |
25820 | fail: | |
25821 | return NULL; | |
121b9a67 RD |
25822 | } |
25823 | ||
25824 | ||
1bd55598 RD |
25825 | SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25826 | PyObject *resultobj = 0; | |
25827 | wxListItem *arg1 = (wxListItem *) 0 ; | |
25828 | void *argp1 = 0 ; | |
25829 | int res1 = 0 ; | |
25830 | PyObject *swig_obj[1] ; | |
25831 | ||
25832 | if (!args) SWIG_fail; | |
25833 | swig_obj[0] = args; | |
25834 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 ); | |
25835 | if (!SWIG_IsOK(res1)) { | |
25836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
25837 | } | |
25838 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
25839 | { | |
25840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25841 | delete arg1; | |
f20a2e1f | 25842 | |
1bd55598 RD |
25843 | wxPyEndAllowThreads(__tstate); |
25844 | if (PyErr_Occurred()) SWIG_fail; | |
25845 | } | |
25846 | resultobj = SWIG_Py_Void(); | |
25847 | return resultobj; | |
25848 | fail: | |
25849 | return NULL; | |
f20a2e1f RD |
25850 | } |
25851 | ||
25852 | ||
1bd55598 RD |
25853 | SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25854 | PyObject *resultobj = 0; | |
25855 | wxListItem *arg1 = (wxListItem *) 0 ; | |
25856 | void *argp1 = 0 ; | |
25857 | int res1 = 0 ; | |
25858 | PyObject *swig_obj[1] ; | |
25859 | ||
25860 | if (!args) SWIG_fail; | |
25861 | swig_obj[0] = args; | |
25862 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
25863 | if (!SWIG_IsOK(res1)) { | |
25864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
25865 | } | |
25866 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
25867 | { | |
25868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25869 | (arg1)->Clear(); | |
25870 | wxPyEndAllowThreads(__tstate); | |
25871 | if (PyErr_Occurred()) SWIG_fail; | |
25872 | } | |
25873 | resultobj = SWIG_Py_Void(); | |
25874 | return resultobj; | |
25875 | fail: | |
25876 | return NULL; | |
d55e5bfc | 25877 | } |
1bd55598 RD |
25878 | |
25879 | ||
25880 | SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25881 | PyObject *resultobj = 0; | |
25882 | wxListItem *arg1 = (wxListItem *) 0 ; | |
25883 | void *argp1 = 0 ; | |
25884 | int res1 = 0 ; | |
25885 | PyObject *swig_obj[1] ; | |
25886 | ||
25887 | if (!args) SWIG_fail; | |
25888 | swig_obj[0] = args; | |
25889 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
25890 | if (!SWIG_IsOK(res1)) { | |
25891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
25892 | } | |
25893 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
25894 | { | |
25895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25896 | (arg1)->ClearAttributes(); | |
25897 | wxPyEndAllowThreads(__tstate); | |
25898 | if (PyErr_Occurred()) SWIG_fail; | |
25899 | } | |
25900 | resultobj = SWIG_Py_Void(); | |
25901 | return resultobj; | |
25902 | fail: | |
25903 | return NULL; | |
25904 | } | |
25905 | ||
25906 | ||
25907 | SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25908 | PyObject *resultobj = 0; | |
25909 | wxListItem *arg1 = (wxListItem *) 0 ; | |
25910 | long arg2 ; | |
25911 | void *argp1 = 0 ; | |
25912 | int res1 = 0 ; | |
25913 | long val2 ; | |
25914 | int ecode2 = 0 ; | |
25915 | PyObject * obj0 = 0 ; | |
25916 | PyObject * obj1 = 0 ; | |
25917 | char * kwnames[] = { | |
25918 | (char *) "self",(char *) "mask", NULL | |
25919 | }; | |
25920 | ||
25921 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
25922 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
25923 | if (!SWIG_IsOK(res1)) { | |
25924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
25925 | } | |
25926 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
25927 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
25928 | if (!SWIG_IsOK(ecode2)) { | |
25929 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'"); | |
25930 | } | |
25931 | arg2 = static_cast< long >(val2); | |
25932 | { | |
25933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25934 | (arg1)->SetMask(arg2); | |
25935 | wxPyEndAllowThreads(__tstate); | |
25936 | if (PyErr_Occurred()) SWIG_fail; | |
25937 | } | |
25938 | resultobj = SWIG_Py_Void(); | |
25939 | return resultobj; | |
25940 | fail: | |
25941 | return NULL; | |
25942 | } | |
25943 | ||
25944 | ||
25945 | SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25946 | PyObject *resultobj = 0; | |
25947 | wxListItem *arg1 = (wxListItem *) 0 ; | |
25948 | long arg2 ; | |
25949 | void *argp1 = 0 ; | |
25950 | int res1 = 0 ; | |
25951 | long val2 ; | |
25952 | int ecode2 = 0 ; | |
25953 | PyObject * obj0 = 0 ; | |
25954 | PyObject * obj1 = 0 ; | |
25955 | char * kwnames[] = { | |
25956 | (char *) "self",(char *) "id", NULL | |
25957 | }; | |
25958 | ||
25959 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
25960 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
25961 | if (!SWIG_IsOK(res1)) { | |
25962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
25963 | } | |
25964 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
25965 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
25966 | if (!SWIG_IsOK(ecode2)) { | |
25967 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'"); | |
25968 | } | |
25969 | arg2 = static_cast< long >(val2); | |
25970 | { | |
25971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25972 | (arg1)->SetId(arg2); | |
25973 | wxPyEndAllowThreads(__tstate); | |
25974 | if (PyErr_Occurred()) SWIG_fail; | |
25975 | } | |
25976 | resultobj = SWIG_Py_Void(); | |
25977 | return resultobj; | |
25978 | fail: | |
25979 | return NULL; | |
25980 | } | |
25981 | ||
25982 | ||
25983 | SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25984 | PyObject *resultobj = 0; | |
25985 | wxListItem *arg1 = (wxListItem *) 0 ; | |
25986 | int arg2 ; | |
25987 | void *argp1 = 0 ; | |
25988 | int res1 = 0 ; | |
25989 | int val2 ; | |
25990 | int ecode2 = 0 ; | |
25991 | PyObject * obj0 = 0 ; | |
25992 | PyObject * obj1 = 0 ; | |
25993 | char * kwnames[] = { | |
25994 | (char *) "self",(char *) "col", NULL | |
25995 | }; | |
25996 | ||
25997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
25998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
25999 | if (!SWIG_IsOK(res1)) { | |
26000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26001 | } | |
26002 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26003 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26004 | if (!SWIG_IsOK(ecode2)) { | |
26005 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'"); | |
26006 | } | |
26007 | arg2 = static_cast< int >(val2); | |
26008 | { | |
26009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26010 | (arg1)->SetColumn(arg2); | |
26011 | wxPyEndAllowThreads(__tstate); | |
26012 | if (PyErr_Occurred()) SWIG_fail; | |
26013 | } | |
26014 | resultobj = SWIG_Py_Void(); | |
26015 | return resultobj; | |
26016 | fail: | |
26017 | return NULL; | |
26018 | } | |
26019 | ||
26020 | ||
26021 | SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26022 | PyObject *resultobj = 0; | |
26023 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26024 | long arg2 ; | |
26025 | void *argp1 = 0 ; | |
26026 | int res1 = 0 ; | |
26027 | long val2 ; | |
26028 | int ecode2 = 0 ; | |
26029 | PyObject * obj0 = 0 ; | |
26030 | PyObject * obj1 = 0 ; | |
26031 | char * kwnames[] = { | |
26032 | (char *) "self",(char *) "state", NULL | |
26033 | }; | |
26034 | ||
26035 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail; | |
26036 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26037 | if (!SWIG_IsOK(res1)) { | |
26038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26039 | } | |
26040 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26041 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26042 | if (!SWIG_IsOK(ecode2)) { | |
26043 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'"); | |
26044 | } | |
26045 | arg2 = static_cast< long >(val2); | |
26046 | { | |
26047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26048 | (arg1)->SetState(arg2); | |
26049 | wxPyEndAllowThreads(__tstate); | |
26050 | if (PyErr_Occurred()) SWIG_fail; | |
26051 | } | |
26052 | resultobj = SWIG_Py_Void(); | |
26053 | return resultobj; | |
26054 | fail: | |
26055 | return NULL; | |
26056 | } | |
26057 | ||
26058 | ||
26059 | SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26060 | PyObject *resultobj = 0; | |
26061 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26062 | long arg2 ; | |
26063 | void *argp1 = 0 ; | |
26064 | int res1 = 0 ; | |
26065 | long val2 ; | |
26066 | int ecode2 = 0 ; | |
26067 | PyObject * obj0 = 0 ; | |
26068 | PyObject * obj1 = 0 ; | |
26069 | char * kwnames[] = { | |
26070 | (char *) "self",(char *) "stateMask", NULL | |
26071 | }; | |
26072 | ||
26073 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
26074 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26075 | if (!SWIG_IsOK(res1)) { | |
26076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26077 | } | |
26078 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26079 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26080 | if (!SWIG_IsOK(ecode2)) { | |
26081 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'"); | |
26082 | } | |
26083 | arg2 = static_cast< long >(val2); | |
26084 | { | |
26085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26086 | (arg1)->SetStateMask(arg2); | |
26087 | wxPyEndAllowThreads(__tstate); | |
26088 | if (PyErr_Occurred()) SWIG_fail; | |
26089 | } | |
26090 | resultobj = SWIG_Py_Void(); | |
26091 | return resultobj; | |
26092 | fail: | |
26093 | return NULL; | |
26094 | } | |
26095 | ||
26096 | ||
26097 | SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26098 | PyObject *resultobj = 0; | |
26099 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26100 | wxString *arg2 = 0 ; | |
26101 | void *argp1 = 0 ; | |
26102 | int res1 = 0 ; | |
26103 | bool temp2 = false ; | |
26104 | PyObject * obj0 = 0 ; | |
26105 | PyObject * obj1 = 0 ; | |
26106 | char * kwnames[] = { | |
26107 | (char *) "self",(char *) "text", NULL | |
26108 | }; | |
26109 | ||
26110 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail; | |
26111 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26112 | if (!SWIG_IsOK(res1)) { | |
26113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26114 | } | |
26115 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26116 | { | |
26117 | arg2 = wxString_in_helper(obj1); | |
26118 | if (arg2 == NULL) SWIG_fail; | |
26119 | temp2 = true; | |
26120 | } | |
26121 | { | |
26122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26123 | (arg1)->SetText((wxString const &)*arg2); | |
26124 | wxPyEndAllowThreads(__tstate); | |
26125 | if (PyErr_Occurred()) SWIG_fail; | |
26126 | } | |
26127 | resultobj = SWIG_Py_Void(); | |
26128 | { | |
26129 | if (temp2) | |
26130 | delete arg2; | |
26131 | } | |
26132 | return resultobj; | |
26133 | fail: | |
26134 | { | |
26135 | if (temp2) | |
26136 | delete arg2; | |
26137 | } | |
26138 | return NULL; | |
26139 | } | |
26140 | ||
26141 | ||
26142 | SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26143 | PyObject *resultobj = 0; | |
26144 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26145 | int arg2 ; | |
26146 | void *argp1 = 0 ; | |
26147 | int res1 = 0 ; | |
26148 | int val2 ; | |
26149 | int ecode2 = 0 ; | |
26150 | PyObject * obj0 = 0 ; | |
26151 | PyObject * obj1 = 0 ; | |
26152 | char * kwnames[] = { | |
26153 | (char *) "self",(char *) "image", NULL | |
26154 | }; | |
26155 | ||
26156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26158 | if (!SWIG_IsOK(res1)) { | |
26159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26160 | } | |
26161 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26162 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26163 | if (!SWIG_IsOK(ecode2)) { | |
26164 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'"); | |
26165 | } | |
26166 | arg2 = static_cast< int >(val2); | |
26167 | { | |
26168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26169 | (arg1)->SetImage(arg2); | |
26170 | wxPyEndAllowThreads(__tstate); | |
26171 | if (PyErr_Occurred()) SWIG_fail; | |
26172 | } | |
26173 | resultobj = SWIG_Py_Void(); | |
26174 | return resultobj; | |
26175 | fail: | |
26176 | return NULL; | |
26177 | } | |
26178 | ||
26179 | ||
26180 | SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26181 | PyObject *resultobj = 0; | |
26182 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26183 | long arg2 ; | |
26184 | void *argp1 = 0 ; | |
26185 | int res1 = 0 ; | |
26186 | long val2 ; | |
26187 | int ecode2 = 0 ; | |
26188 | PyObject * obj0 = 0 ; | |
26189 | PyObject * obj1 = 0 ; | |
26190 | char * kwnames[] = { | |
26191 | (char *) "self",(char *) "data", NULL | |
26192 | }; | |
26193 | ||
26194 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
26195 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26196 | if (!SWIG_IsOK(res1)) { | |
26197 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26198 | } | |
26199 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26200 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26201 | if (!SWIG_IsOK(ecode2)) { | |
26202 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'"); | |
26203 | } | |
26204 | arg2 = static_cast< long >(val2); | |
26205 | { | |
26206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26207 | (arg1)->SetData(arg2); | |
26208 | wxPyEndAllowThreads(__tstate); | |
26209 | if (PyErr_Occurred()) SWIG_fail; | |
26210 | } | |
26211 | resultobj = SWIG_Py_Void(); | |
26212 | return resultobj; | |
26213 | fail: | |
26214 | return NULL; | |
26215 | } | |
26216 | ||
26217 | ||
26218 | SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26219 | PyObject *resultobj = 0; | |
26220 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26221 | int arg2 ; | |
26222 | void *argp1 = 0 ; | |
26223 | int res1 = 0 ; | |
26224 | int val2 ; | |
26225 | int ecode2 = 0 ; | |
26226 | PyObject * obj0 = 0 ; | |
26227 | PyObject * obj1 = 0 ; | |
26228 | char * kwnames[] = { | |
26229 | (char *) "self",(char *) "width", NULL | |
26230 | }; | |
26231 | ||
26232 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
26233 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26234 | if (!SWIG_IsOK(res1)) { | |
26235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26236 | } | |
26237 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26238 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26239 | if (!SWIG_IsOK(ecode2)) { | |
26240 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
26241 | } | |
26242 | arg2 = static_cast< int >(val2); | |
26243 | { | |
26244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26245 | (arg1)->SetWidth(arg2); | |
26246 | wxPyEndAllowThreads(__tstate); | |
26247 | if (PyErr_Occurred()) SWIG_fail; | |
26248 | } | |
26249 | resultobj = SWIG_Py_Void(); | |
26250 | return resultobj; | |
26251 | fail: | |
26252 | return NULL; | |
26253 | } | |
26254 | ||
26255 | ||
26256 | SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26257 | PyObject *resultobj = 0; | |
26258 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26259 | wxListColumnFormat arg2 ; | |
26260 | void *argp1 = 0 ; | |
26261 | int res1 = 0 ; | |
26262 | int val2 ; | |
26263 | int ecode2 = 0 ; | |
26264 | PyObject * obj0 = 0 ; | |
26265 | PyObject * obj1 = 0 ; | |
26266 | char * kwnames[] = { | |
26267 | (char *) "self",(char *) "align", NULL | |
26268 | }; | |
26269 | ||
26270 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail; | |
26271 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26272 | if (!SWIG_IsOK(res1)) { | |
26273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26274 | } | |
26275 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26276 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26277 | if (!SWIG_IsOK(ecode2)) { | |
26278 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'"); | |
26279 | } | |
26280 | arg2 = static_cast< wxListColumnFormat >(val2); | |
26281 | { | |
26282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26283 | (arg1)->SetAlign(arg2); | |
26284 | wxPyEndAllowThreads(__tstate); | |
26285 | if (PyErr_Occurred()) SWIG_fail; | |
26286 | } | |
26287 | resultobj = SWIG_Py_Void(); | |
26288 | return resultobj; | |
26289 | fail: | |
26290 | return NULL; | |
26291 | } | |
26292 | ||
26293 | ||
26294 | SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26295 | PyObject *resultobj = 0; | |
26296 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26297 | wxColour *arg2 = 0 ; | |
26298 | void *argp1 = 0 ; | |
26299 | int res1 = 0 ; | |
26300 | wxColour temp2 ; | |
26301 | PyObject * obj0 = 0 ; | |
26302 | PyObject * obj1 = 0 ; | |
26303 | char * kwnames[] = { | |
26304 | (char *) "self",(char *) "colText", NULL | |
26305 | }; | |
26306 | ||
26307 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
26308 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26309 | if (!SWIG_IsOK(res1)) { | |
26310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26311 | } | |
26312 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26313 | { | |
26314 | arg2 = &temp2; | |
26315 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26316 | } | |
26317 | { | |
26318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26319 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
26320 | wxPyEndAllowThreads(__tstate); | |
26321 | if (PyErr_Occurred()) SWIG_fail; | |
26322 | } | |
26323 | resultobj = SWIG_Py_Void(); | |
26324 | return resultobj; | |
26325 | fail: | |
26326 | return NULL; | |
26327 | } | |
26328 | ||
26329 | ||
26330 | SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26331 | PyObject *resultobj = 0; | |
26332 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26333 | wxColour *arg2 = 0 ; | |
26334 | void *argp1 = 0 ; | |
26335 | int res1 = 0 ; | |
26336 | wxColour temp2 ; | |
26337 | PyObject * obj0 = 0 ; | |
26338 | PyObject * obj1 = 0 ; | |
26339 | char * kwnames[] = { | |
26340 | (char *) "self",(char *) "colBack", NULL | |
26341 | }; | |
26342 | ||
26343 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
26344 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26345 | if (!SWIG_IsOK(res1)) { | |
26346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26347 | } | |
26348 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26349 | { | |
26350 | arg2 = &temp2; | |
26351 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26352 | } | |
26353 | { | |
26354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26355 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26356 | wxPyEndAllowThreads(__tstate); | |
26357 | if (PyErr_Occurred()) SWIG_fail; | |
26358 | } | |
26359 | resultobj = SWIG_Py_Void(); | |
26360 | return resultobj; | |
26361 | fail: | |
26362 | return NULL; | |
26363 | } | |
26364 | ||
26365 | ||
26366 | SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26367 | PyObject *resultobj = 0; | |
26368 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26369 | wxFont *arg2 = 0 ; | |
26370 | void *argp1 = 0 ; | |
26371 | int res1 = 0 ; | |
26372 | void *argp2 = 0 ; | |
26373 | int res2 = 0 ; | |
26374 | PyObject * obj0 = 0 ; | |
26375 | PyObject * obj1 = 0 ; | |
26376 | char * kwnames[] = { | |
26377 | (char *) "self",(char *) "font", NULL | |
26378 | }; | |
26379 | ||
26380 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
26381 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26382 | if (!SWIG_IsOK(res1)) { | |
26383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26384 | } | |
26385 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26386 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
26387 | if (!SWIG_IsOK(res2)) { | |
26388 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
26389 | } | |
26390 | if (!argp2) { | |
26391 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
26392 | } | |
26393 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
26394 | { | |
26395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26396 | (arg1)->SetFont((wxFont const &)*arg2); | |
26397 | wxPyEndAllowThreads(__tstate); | |
26398 | if (PyErr_Occurred()) SWIG_fail; | |
26399 | } | |
26400 | resultobj = SWIG_Py_Void(); | |
26401 | return resultobj; | |
26402 | fail: | |
26403 | return NULL; | |
d55e5bfc RD |
26404 | } |
26405 | ||
26406 | ||
1bd55598 RD |
26407 | SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26408 | PyObject *resultobj = 0; | |
26409 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26410 | long result; | |
26411 | void *argp1 = 0 ; | |
26412 | int res1 = 0 ; | |
26413 | PyObject *swig_obj[1] ; | |
26414 | ||
26415 | if (!args) SWIG_fail; | |
26416 | swig_obj[0] = args; | |
26417 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26418 | if (!SWIG_IsOK(res1)) { | |
26419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26420 | } | |
26421 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26422 | { | |
26423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26424 | result = (long)(arg1)->GetMask(); | |
26425 | wxPyEndAllowThreads(__tstate); | |
26426 | if (PyErr_Occurred()) SWIG_fail; | |
26427 | } | |
26428 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
26429 | return resultobj; | |
26430 | fail: | |
26431 | return NULL; | |
d55e5bfc RD |
26432 | } |
26433 | ||
26434 | ||
1bd55598 RD |
26435 | SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26436 | PyObject *resultobj = 0; | |
26437 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26438 | long result; | |
26439 | void *argp1 = 0 ; | |
26440 | int res1 = 0 ; | |
26441 | PyObject *swig_obj[1] ; | |
26442 | ||
26443 | if (!args) SWIG_fail; | |
26444 | swig_obj[0] = args; | |
26445 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26446 | if (!SWIG_IsOK(res1)) { | |
26447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26448 | } | |
26449 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26450 | { | |
26451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26452 | result = (long)(arg1)->GetId(); | |
26453 | wxPyEndAllowThreads(__tstate); | |
26454 | if (PyErr_Occurred()) SWIG_fail; | |
26455 | } | |
26456 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
26457 | return resultobj; | |
26458 | fail: | |
26459 | return NULL; | |
d55e5bfc RD |
26460 | } |
26461 | ||
26462 | ||
1bd55598 RD |
26463 | SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26464 | PyObject *resultobj = 0; | |
26465 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26466 | int result; | |
26467 | void *argp1 = 0 ; | |
26468 | int res1 = 0 ; | |
26469 | PyObject *swig_obj[1] ; | |
26470 | ||
26471 | if (!args) SWIG_fail; | |
26472 | swig_obj[0] = args; | |
26473 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26474 | if (!SWIG_IsOK(res1)) { | |
26475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26476 | } | |
26477 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26478 | { | |
26479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26480 | result = (int)(arg1)->GetColumn(); | |
26481 | wxPyEndAllowThreads(__tstate); | |
26482 | if (PyErr_Occurred()) SWIG_fail; | |
26483 | } | |
26484 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26485 | return resultobj; | |
26486 | fail: | |
26487 | return NULL; | |
d55e5bfc RD |
26488 | } |
26489 | ||
26490 | ||
1bd55598 RD |
26491 | SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26492 | PyObject *resultobj = 0; | |
26493 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26494 | long result; | |
26495 | void *argp1 = 0 ; | |
26496 | int res1 = 0 ; | |
26497 | PyObject *swig_obj[1] ; | |
26498 | ||
26499 | if (!args) SWIG_fail; | |
26500 | swig_obj[0] = args; | |
26501 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26502 | if (!SWIG_IsOK(res1)) { | |
26503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26504 | } | |
26505 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26506 | { | |
26507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26508 | result = (long)(arg1)->GetState(); | |
26509 | wxPyEndAllowThreads(__tstate); | |
26510 | if (PyErr_Occurred()) SWIG_fail; | |
26511 | } | |
26512 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
26513 | return resultobj; | |
26514 | fail: | |
26515 | return NULL; | |
8fb0e70a RD |
26516 | } |
26517 | ||
26518 | ||
1bd55598 RD |
26519 | SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26520 | PyObject *resultobj = 0; | |
26521 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26522 | wxString *result = 0 ; | |
26523 | void *argp1 = 0 ; | |
26524 | int res1 = 0 ; | |
26525 | PyObject *swig_obj[1] ; | |
26526 | ||
26527 | if (!args) SWIG_fail; | |
26528 | swig_obj[0] = args; | |
26529 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26530 | if (!SWIG_IsOK(res1)) { | |
26531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26532 | } | |
26533 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26534 | { | |
26535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 26536 | { |
1bd55598 RD |
26537 | wxString const &_result_ref = (arg1)->GetText(); |
26538 | result = (wxString *) &_result_ref; | |
36ed4f51 | 26539 | } |
1bd55598 RD |
26540 | wxPyEndAllowThreads(__tstate); |
26541 | if (PyErr_Occurred()) SWIG_fail; | |
26542 | } | |
26543 | { | |
26544 | #if wxUSE_UNICODE | |
26545 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
26546 | #else | |
26547 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
26548 | #endif | |
26549 | } | |
26550 | return resultobj; | |
26551 | fail: | |
26552 | return NULL; | |
d55e5bfc RD |
26553 | } |
26554 | ||
26555 | ||
1bd55598 RD |
26556 | SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26557 | PyObject *resultobj = 0; | |
26558 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26559 | int result; | |
26560 | void *argp1 = 0 ; | |
26561 | int res1 = 0 ; | |
26562 | PyObject *swig_obj[1] ; | |
26563 | ||
26564 | if (!args) SWIG_fail; | |
26565 | swig_obj[0] = args; | |
26566 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26567 | if (!SWIG_IsOK(res1)) { | |
26568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26569 | } | |
26570 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26571 | { | |
26572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26573 | result = (int)(arg1)->GetImage(); | |
26574 | wxPyEndAllowThreads(__tstate); | |
26575 | if (PyErr_Occurred()) SWIG_fail; | |
26576 | } | |
26577 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26578 | return resultobj; | |
26579 | fail: | |
26580 | return NULL; | |
d55e5bfc RD |
26581 | } |
26582 | ||
26583 | ||
1bd55598 RD |
26584 | SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26585 | PyObject *resultobj = 0; | |
26586 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26587 | long result; | |
26588 | void *argp1 = 0 ; | |
26589 | int res1 = 0 ; | |
26590 | PyObject *swig_obj[1] ; | |
26591 | ||
26592 | if (!args) SWIG_fail; | |
26593 | swig_obj[0] = args; | |
26594 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26595 | if (!SWIG_IsOK(res1)) { | |
26596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26597 | } | |
26598 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26599 | { | |
26600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26601 | result = (long)(arg1)->GetData(); | |
26602 | wxPyEndAllowThreads(__tstate); | |
26603 | if (PyErr_Occurred()) SWIG_fail; | |
26604 | } | |
26605 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
26606 | return resultobj; | |
26607 | fail: | |
26608 | return NULL; | |
d55e5bfc RD |
26609 | } |
26610 | ||
26611 | ||
1bd55598 RD |
26612 | SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26613 | PyObject *resultobj = 0; | |
26614 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26615 | int result; | |
26616 | void *argp1 = 0 ; | |
26617 | int res1 = 0 ; | |
26618 | PyObject *swig_obj[1] ; | |
26619 | ||
26620 | if (!args) SWIG_fail; | |
26621 | swig_obj[0] = args; | |
26622 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26623 | if (!SWIG_IsOK(res1)) { | |
26624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26625 | } | |
26626 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26627 | { | |
26628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26629 | result = (int)(arg1)->GetWidth(); | |
26630 | wxPyEndAllowThreads(__tstate); | |
26631 | if (PyErr_Occurred()) SWIG_fail; | |
26632 | } | |
26633 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26634 | return resultobj; | |
26635 | fail: | |
26636 | return NULL; | |
d55e5bfc RD |
26637 | } |
26638 | ||
26639 | ||
1bd55598 RD |
26640 | SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26641 | PyObject *resultobj = 0; | |
26642 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26643 | wxListColumnFormat result; | |
26644 | void *argp1 = 0 ; | |
26645 | int res1 = 0 ; | |
26646 | PyObject *swig_obj[1] ; | |
26647 | ||
26648 | if (!args) SWIG_fail; | |
26649 | swig_obj[0] = args; | |
26650 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26651 | if (!SWIG_IsOK(res1)) { | |
26652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26653 | } | |
26654 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26655 | { | |
26656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26657 | result = (wxListColumnFormat)(arg1)->GetAlign(); | |
26658 | wxPyEndAllowThreads(__tstate); | |
26659 | if (PyErr_Occurred()) SWIG_fail; | |
26660 | } | |
26661 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26662 | return resultobj; | |
26663 | fail: | |
26664 | return NULL; | |
d55e5bfc RD |
26665 | } |
26666 | ||
26667 | ||
1bd55598 RD |
26668 | SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26669 | PyObject *resultobj = 0; | |
26670 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26671 | wxListItemAttr *result = 0 ; | |
26672 | void *argp1 = 0 ; | |
26673 | int res1 = 0 ; | |
26674 | PyObject *swig_obj[1] ; | |
26675 | ||
26676 | if (!args) SWIG_fail; | |
26677 | swig_obj[0] = args; | |
26678 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26679 | if (!SWIG_IsOK(res1)) { | |
26680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26681 | } | |
26682 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26683 | { | |
26684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26685 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
26686 | wxPyEndAllowThreads(__tstate); | |
26687 | if (PyErr_Occurred()) SWIG_fail; | |
26688 | } | |
26689 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26690 | return resultobj; | |
26691 | fail: | |
26692 | return NULL; | |
d55e5bfc RD |
26693 | } |
26694 | ||
26695 | ||
1bd55598 RD |
26696 | SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26697 | PyObject *resultobj = 0; | |
26698 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26699 | bool result; | |
26700 | void *argp1 = 0 ; | |
26701 | int res1 = 0 ; | |
26702 | PyObject *swig_obj[1] ; | |
26703 | ||
26704 | if (!args) SWIG_fail; | |
26705 | swig_obj[0] = args; | |
26706 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26707 | if (!SWIG_IsOK(res1)) { | |
26708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26709 | } | |
26710 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26711 | { | |
26712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26713 | result = (bool)(arg1)->HasAttributes(); | |
26714 | wxPyEndAllowThreads(__tstate); | |
26715 | if (PyErr_Occurred()) SWIG_fail; | |
26716 | } | |
26717 | { | |
26718 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26719 | } | |
26720 | return resultobj; | |
26721 | fail: | |
26722 | return NULL; | |
d55e5bfc RD |
26723 | } |
26724 | ||
26725 | ||
1bd55598 RD |
26726 | SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26727 | PyObject *resultobj = 0; | |
26728 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26729 | wxColour result; | |
26730 | void *argp1 = 0 ; | |
26731 | int res1 = 0 ; | |
26732 | PyObject *swig_obj[1] ; | |
26733 | ||
26734 | if (!args) SWIG_fail; | |
26735 | swig_obj[0] = args; | |
26736 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26737 | if (!SWIG_IsOK(res1)) { | |
26738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
26739 | } | |
26740 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26741 | { | |
26742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26743 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
26744 | wxPyEndAllowThreads(__tstate); | |
26745 | if (PyErr_Occurred()) SWIG_fail; | |
26746 | } | |
26747 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
26748 | return resultobj; | |
26749 | fail: | |
26750 | return NULL; | |
d55e5bfc RD |
26751 | } |
26752 | ||
26753 | ||
1bd55598 RD |
26754 | SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26755 | PyObject *resultobj = 0; | |
26756 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26757 | wxColour result; | |
26758 | void *argp1 = 0 ; | |
26759 | int res1 = 0 ; | |
26760 | PyObject *swig_obj[1] ; | |
26761 | ||
26762 | if (!args) SWIG_fail; | |
26763 | swig_obj[0] = args; | |
26764 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26765 | if (!SWIG_IsOK(res1)) { | |
26766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
26767 | } | |
26768 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26769 | { | |
26770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26771 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
26772 | wxPyEndAllowThreads(__tstate); | |
26773 | if (PyErr_Occurred()) SWIG_fail; | |
26774 | } | |
26775 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
26776 | return resultobj; | |
26777 | fail: | |
26778 | return NULL; | |
d55e5bfc RD |
26779 | } |
26780 | ||
26781 | ||
1bd55598 RD |
26782 | SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26783 | PyObject *resultobj = 0; | |
26784 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26785 | wxFont result; | |
26786 | void *argp1 = 0 ; | |
26787 | int res1 = 0 ; | |
26788 | PyObject *swig_obj[1] ; | |
26789 | ||
26790 | if (!args) SWIG_fail; | |
26791 | swig_obj[0] = args; | |
26792 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26793 | if (!SWIG_IsOK(res1)) { | |
26794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
26795 | } | |
26796 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26797 | { | |
26798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26799 | result = ((wxListItem const *)arg1)->GetFont(); | |
26800 | wxPyEndAllowThreads(__tstate); | |
26801 | if (PyErr_Occurred()) SWIG_fail; | |
26802 | } | |
26803 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
26804 | return resultobj; | |
26805 | fail: | |
26806 | return NULL; | |
26807 | } | |
26808 | ||
26809 | ||
26810 | SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26811 | PyObject *resultobj = 0; | |
26812 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26813 | long arg2 ; | |
26814 | void *argp1 = 0 ; | |
26815 | int res1 = 0 ; | |
26816 | long val2 ; | |
26817 | int ecode2 = 0 ; | |
26818 | PyObject *swig_obj[2] ; | |
26819 | ||
26820 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail; | |
26821 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26822 | if (!SWIG_IsOK(res1)) { | |
26823 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26824 | } | |
26825 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26826 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
26827 | if (!SWIG_IsOK(ecode2)) { | |
26828 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'"); | |
26829 | } | |
26830 | arg2 = static_cast< long >(val2); | |
26831 | if (arg1) (arg1)->m_mask = arg2; | |
26832 | ||
26833 | resultobj = SWIG_Py_Void(); | |
26834 | return resultobj; | |
26835 | fail: | |
26836 | return NULL; | |
d55e5bfc RD |
26837 | } |
26838 | ||
26839 | ||
1bd55598 RD |
26840 | SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26841 | PyObject *resultobj = 0; | |
26842 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26843 | long result; | |
26844 | void *argp1 = 0 ; | |
26845 | int res1 = 0 ; | |
26846 | PyObject *swig_obj[1] ; | |
26847 | ||
26848 | if (!args) SWIG_fail; | |
26849 | swig_obj[0] = args; | |
26850 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26851 | if (!SWIG_IsOK(res1)) { | |
26852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26853 | } | |
26854 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26855 | result = (long) ((arg1)->m_mask); | |
26856 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
26857 | return resultobj; | |
26858 | fail: | |
26859 | return NULL; | |
26860 | } | |
26861 | ||
26862 | ||
26863 | SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26864 | PyObject *resultobj = 0; | |
26865 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26866 | long arg2 ; | |
26867 | void *argp1 = 0 ; | |
26868 | int res1 = 0 ; | |
26869 | long val2 ; | |
26870 | int ecode2 = 0 ; | |
26871 | PyObject *swig_obj[2] ; | |
26872 | ||
26873 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail; | |
26874 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26875 | if (!SWIG_IsOK(res1)) { | |
26876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26877 | } | |
26878 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26879 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
26880 | if (!SWIG_IsOK(ecode2)) { | |
26881 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'"); | |
26882 | } | |
26883 | arg2 = static_cast< long >(val2); | |
26884 | if (arg1) (arg1)->m_itemId = arg2; | |
26885 | ||
26886 | resultobj = SWIG_Py_Void(); | |
26887 | return resultobj; | |
26888 | fail: | |
26889 | return NULL; | |
7e08d4ef RD |
26890 | } |
26891 | ||
26892 | ||
1bd55598 RD |
26893 | SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26894 | PyObject *resultobj = 0; | |
26895 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26896 | long result; | |
26897 | void *argp1 = 0 ; | |
26898 | int res1 = 0 ; | |
26899 | PyObject *swig_obj[1] ; | |
26900 | ||
26901 | if (!args) SWIG_fail; | |
26902 | swig_obj[0] = args; | |
26903 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26904 | if (!SWIG_IsOK(res1)) { | |
26905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26906 | } | |
26907 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26908 | result = (long) ((arg1)->m_itemId); | |
26909 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
26910 | return resultobj; | |
26911 | fail: | |
26912 | return NULL; | |
26913 | } | |
26914 | ||
26915 | ||
26916 | SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26917 | PyObject *resultobj = 0; | |
26918 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26919 | int arg2 ; | |
26920 | void *argp1 = 0 ; | |
26921 | int res1 = 0 ; | |
26922 | int val2 ; | |
26923 | int ecode2 = 0 ; | |
26924 | PyObject *swig_obj[2] ; | |
26925 | ||
26926 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail; | |
26927 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26928 | if (!SWIG_IsOK(res1)) { | |
26929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26930 | } | |
26931 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26932 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
26933 | if (!SWIG_IsOK(ecode2)) { | |
26934 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'"); | |
26935 | } | |
26936 | arg2 = static_cast< int >(val2); | |
26937 | if (arg1) (arg1)->m_col = arg2; | |
26938 | ||
26939 | resultobj = SWIG_Py_Void(); | |
26940 | return resultobj; | |
26941 | fail: | |
26942 | return NULL; | |
7e08d4ef RD |
26943 | } |
26944 | ||
26945 | ||
1bd55598 RD |
26946 | SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26947 | PyObject *resultobj = 0; | |
26948 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26949 | int result; | |
26950 | void *argp1 = 0 ; | |
26951 | int res1 = 0 ; | |
26952 | PyObject *swig_obj[1] ; | |
26953 | ||
26954 | if (!args) SWIG_fail; | |
26955 | swig_obj[0] = args; | |
26956 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26957 | if (!SWIG_IsOK(res1)) { | |
26958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26959 | } | |
26960 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26961 | result = (int) ((arg1)->m_col); | |
26962 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26963 | return resultobj; | |
26964 | fail: | |
26965 | return NULL; | |
26966 | } | |
26967 | ||
26968 | ||
26969 | SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26970 | PyObject *resultobj = 0; | |
26971 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26972 | long arg2 ; | |
26973 | void *argp1 = 0 ; | |
26974 | int res1 = 0 ; | |
26975 | long val2 ; | |
26976 | int ecode2 = 0 ; | |
26977 | PyObject *swig_obj[2] ; | |
26978 | ||
26979 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail; | |
26980 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26981 | if (!SWIG_IsOK(res1)) { | |
26982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26983 | } | |
26984 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26985 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
26986 | if (!SWIG_IsOK(ecode2)) { | |
26987 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'"); | |
26988 | } | |
26989 | arg2 = static_cast< long >(val2); | |
26990 | if (arg1) (arg1)->m_state = arg2; | |
26991 | ||
26992 | resultobj = SWIG_Py_Void(); | |
26993 | return resultobj; | |
26994 | fail: | |
26995 | return NULL; | |
7e08d4ef RD |
26996 | } |
26997 | ||
26998 | ||
1bd55598 RD |
26999 | SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27000 | PyObject *resultobj = 0; | |
27001 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27002 | long result; | |
27003 | void *argp1 = 0 ; | |
27004 | int res1 = 0 ; | |
27005 | PyObject *swig_obj[1] ; | |
27006 | ||
27007 | if (!args) SWIG_fail; | |
27008 | swig_obj[0] = args; | |
27009 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27010 | if (!SWIG_IsOK(res1)) { | |
27011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27012 | } | |
27013 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27014 | result = (long) ((arg1)->m_state); | |
27015 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27016 | return resultobj; | |
27017 | fail: | |
27018 | return NULL; | |
27019 | } | |
27020 | ||
27021 | ||
27022 | SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27023 | PyObject *resultobj = 0; | |
27024 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27025 | long arg2 ; | |
27026 | void *argp1 = 0 ; | |
27027 | int res1 = 0 ; | |
27028 | long val2 ; | |
27029 | int ecode2 = 0 ; | |
27030 | PyObject *swig_obj[2] ; | |
27031 | ||
27032 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail; | |
27033 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27034 | if (!SWIG_IsOK(res1)) { | |
27035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27036 | } | |
27037 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27038 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27039 | if (!SWIG_IsOK(ecode2)) { | |
27040 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'"); | |
27041 | } | |
27042 | arg2 = static_cast< long >(val2); | |
27043 | if (arg1) (arg1)->m_stateMask = arg2; | |
27044 | ||
27045 | resultobj = SWIG_Py_Void(); | |
27046 | return resultobj; | |
27047 | fail: | |
27048 | return NULL; | |
7e08d4ef RD |
27049 | } |
27050 | ||
27051 | ||
1bd55598 RD |
27052 | SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27053 | PyObject *resultobj = 0; | |
27054 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27055 | long result; | |
27056 | void *argp1 = 0 ; | |
27057 | int res1 = 0 ; | |
27058 | PyObject *swig_obj[1] ; | |
27059 | ||
27060 | if (!args) SWIG_fail; | |
27061 | swig_obj[0] = args; | |
27062 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27063 | if (!SWIG_IsOK(res1)) { | |
27064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27065 | } | |
27066 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27067 | result = (long) ((arg1)->m_stateMask); | |
27068 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27069 | return resultobj; | |
27070 | fail: | |
27071 | return NULL; | |
27072 | } | |
27073 | ||
27074 | ||
27075 | SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27076 | PyObject *resultobj = 0; | |
27077 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27078 | wxString *arg2 = (wxString *) 0 ; | |
27079 | void *argp1 = 0 ; | |
27080 | int res1 = 0 ; | |
27081 | bool temp2 = false ; | |
27082 | PyObject *swig_obj[2] ; | |
27083 | ||
27084 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail; | |
27085 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27086 | if (!SWIG_IsOK(res1)) { | |
27087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27088 | } | |
27089 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27090 | { | |
27091 | arg2 = wxString_in_helper(swig_obj[1]); | |
27092 | if (arg2 == NULL) SWIG_fail; | |
27093 | temp2 = true; | |
27094 | } | |
27095 | if (arg1) (arg1)->m_text = *arg2; | |
27096 | ||
27097 | resultobj = SWIG_Py_Void(); | |
27098 | { | |
27099 | if (temp2) | |
27100 | delete arg2; | |
27101 | } | |
27102 | return resultobj; | |
27103 | fail: | |
27104 | { | |
27105 | if (temp2) | |
27106 | delete arg2; | |
27107 | } | |
27108 | return NULL; | |
7e08d4ef RD |
27109 | } |
27110 | ||
27111 | ||
1bd55598 RD |
27112 | SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27113 | PyObject *resultobj = 0; | |
27114 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27115 | wxString *result = 0 ; | |
27116 | void *argp1 = 0 ; | |
27117 | int res1 = 0 ; | |
27118 | PyObject *swig_obj[1] ; | |
27119 | ||
27120 | if (!args) SWIG_fail; | |
27121 | swig_obj[0] = args; | |
27122 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27123 | if (!SWIG_IsOK(res1)) { | |
27124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27125 | } | |
27126 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27127 | result = (wxString *)& ((arg1)->m_text); | |
27128 | { | |
27129 | #if wxUSE_UNICODE | |
27130 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27131 | #else | |
27132 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27133 | #endif | |
27134 | } | |
27135 | return resultobj; | |
27136 | fail: | |
27137 | return NULL; | |
d55e5bfc RD |
27138 | } |
27139 | ||
27140 | ||
1bd55598 RD |
27141 | SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27142 | PyObject *resultobj = 0; | |
27143 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27144 | int arg2 ; | |
27145 | void *argp1 = 0 ; | |
27146 | int res1 = 0 ; | |
27147 | int val2 ; | |
27148 | int ecode2 = 0 ; | |
27149 | PyObject *swig_obj[2] ; | |
27150 | ||
27151 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail; | |
27152 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27153 | if (!SWIG_IsOK(res1)) { | |
27154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27155 | } | |
27156 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27157 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27158 | if (!SWIG_IsOK(ecode2)) { | |
27159 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'"); | |
27160 | } | |
27161 | arg2 = static_cast< int >(val2); | |
27162 | if (arg1) (arg1)->m_image = arg2; | |
27163 | ||
27164 | resultobj = SWIG_Py_Void(); | |
27165 | return resultobj; | |
27166 | fail: | |
27167 | return NULL; | |
d55e5bfc RD |
27168 | } |
27169 | ||
27170 | ||
1bd55598 RD |
27171 | SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27172 | PyObject *resultobj = 0; | |
27173 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27174 | int result; | |
27175 | void *argp1 = 0 ; | |
27176 | int res1 = 0 ; | |
27177 | PyObject *swig_obj[1] ; | |
27178 | ||
27179 | if (!args) SWIG_fail; | |
27180 | swig_obj[0] = args; | |
27181 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27182 | if (!SWIG_IsOK(res1)) { | |
27183 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27184 | } | |
27185 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27186 | result = (int) ((arg1)->m_image); | |
27187 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27188 | return resultobj; | |
27189 | fail: | |
27190 | return NULL; | |
27191 | } | |
27192 | ||
27193 | ||
27194 | SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27195 | PyObject *resultobj = 0; | |
27196 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27197 | long arg2 ; | |
27198 | void *argp1 = 0 ; | |
27199 | int res1 = 0 ; | |
27200 | long val2 ; | |
27201 | int ecode2 = 0 ; | |
27202 | PyObject *swig_obj[2] ; | |
27203 | ||
27204 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail; | |
27205 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27206 | if (!SWIG_IsOK(res1)) { | |
27207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27208 | } | |
27209 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27210 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27211 | if (!SWIG_IsOK(ecode2)) { | |
27212 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'"); | |
27213 | } | |
27214 | arg2 = static_cast< long >(val2); | |
27215 | if (arg1) (arg1)->m_data = arg2; | |
27216 | ||
27217 | resultobj = SWIG_Py_Void(); | |
27218 | return resultobj; | |
27219 | fail: | |
27220 | return NULL; | |
d55e5bfc RD |
27221 | } |
27222 | ||
27223 | ||
1bd55598 RD |
27224 | SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27225 | PyObject *resultobj = 0; | |
27226 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27227 | long result; | |
27228 | void *argp1 = 0 ; | |
27229 | int res1 = 0 ; | |
27230 | PyObject *swig_obj[1] ; | |
27231 | ||
27232 | if (!args) SWIG_fail; | |
27233 | swig_obj[0] = args; | |
27234 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27235 | if (!SWIG_IsOK(res1)) { | |
27236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27237 | } | |
27238 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27239 | result = (long) ((arg1)->m_data); | |
27240 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27241 | return resultobj; | |
27242 | fail: | |
27243 | return NULL; | |
27244 | } | |
27245 | ||
27246 | ||
27247 | SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27248 | PyObject *resultobj = 0; | |
27249 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27250 | int arg2 ; | |
27251 | void *argp1 = 0 ; | |
27252 | int res1 = 0 ; | |
27253 | int val2 ; | |
27254 | int ecode2 = 0 ; | |
27255 | PyObject *swig_obj[2] ; | |
27256 | ||
27257 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail; | |
27258 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27259 | if (!SWIG_IsOK(res1)) { | |
27260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27261 | } | |
27262 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27263 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27264 | if (!SWIG_IsOK(ecode2)) { | |
27265 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'"); | |
27266 | } | |
27267 | arg2 = static_cast< int >(val2); | |
27268 | if (arg1) (arg1)->m_format = arg2; | |
27269 | ||
27270 | resultobj = SWIG_Py_Void(); | |
27271 | return resultobj; | |
27272 | fail: | |
27273 | return NULL; | |
d55e5bfc RD |
27274 | } |
27275 | ||
27276 | ||
1bd55598 RD |
27277 | SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27278 | PyObject *resultobj = 0; | |
27279 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27280 | int result; | |
27281 | void *argp1 = 0 ; | |
27282 | int res1 = 0 ; | |
27283 | PyObject *swig_obj[1] ; | |
27284 | ||
27285 | if (!args) SWIG_fail; | |
27286 | swig_obj[0] = args; | |
27287 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27288 | if (!SWIG_IsOK(res1)) { | |
27289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27290 | } | |
27291 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27292 | result = (int) ((arg1)->m_format); | |
27293 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27294 | return resultobj; | |
27295 | fail: | |
27296 | return NULL; | |
27297 | } | |
27298 | ||
27299 | ||
27300 | SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27301 | PyObject *resultobj = 0; | |
27302 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27303 | int arg2 ; | |
27304 | void *argp1 = 0 ; | |
27305 | int res1 = 0 ; | |
27306 | int val2 ; | |
27307 | int ecode2 = 0 ; | |
27308 | PyObject *swig_obj[2] ; | |
27309 | ||
27310 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail; | |
27311 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27312 | if (!SWIG_IsOK(res1)) { | |
27313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27314 | } | |
27315 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27316 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27317 | if (!SWIG_IsOK(ecode2)) { | |
27318 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'"); | |
27319 | } | |
27320 | arg2 = static_cast< int >(val2); | |
27321 | if (arg1) (arg1)->m_width = arg2; | |
27322 | ||
27323 | resultobj = SWIG_Py_Void(); | |
27324 | return resultobj; | |
27325 | fail: | |
27326 | return NULL; | |
d55e5bfc RD |
27327 | } |
27328 | ||
27329 | ||
1bd55598 RD |
27330 | SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27331 | PyObject *resultobj = 0; | |
27332 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27333 | int result; | |
27334 | void *argp1 = 0 ; | |
27335 | int res1 = 0 ; | |
27336 | PyObject *swig_obj[1] ; | |
27337 | ||
27338 | if (!args) SWIG_fail; | |
27339 | swig_obj[0] = args; | |
27340 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27341 | if (!SWIG_IsOK(res1)) { | |
27342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27343 | } | |
27344 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27345 | result = (int) ((arg1)->m_width); | |
27346 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27347 | return resultobj; | |
27348 | fail: | |
27349 | return NULL; | |
27350 | } | |
27351 | ||
27352 | ||
27353 | SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27354 | PyObject *obj; | |
27355 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27356 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj)); | |
27357 | return SWIG_Py_Void(); | |
27358 | } | |
27359 | ||
27360 | SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27361 | return SWIG_Python_InitShadowInstance(args); | |
27362 | } | |
27363 | ||
27364 | SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27365 | PyObject *resultobj = 0; | |
27366 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
27367 | int arg2 = (int) 0 ; | |
27368 | wxListEvent *result = 0 ; | |
27369 | int val1 ; | |
27370 | int ecode1 = 0 ; | |
27371 | int val2 ; | |
27372 | int ecode2 = 0 ; | |
27373 | PyObject * obj0 = 0 ; | |
27374 | PyObject * obj1 = 0 ; | |
27375 | char * kwnames[] = { | |
27376 | (char *) "commandType",(char *) "id", NULL | |
27377 | }; | |
27378 | ||
27379 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
27380 | if (obj0) { | |
27381 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
27382 | if (!SWIG_IsOK(ecode1)) { | |
27383 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
27384 | } | |
27385 | arg1 = static_cast< wxEventType >(val1); | |
27386 | } | |
27387 | if (obj1) { | |
27388 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27389 | if (!SWIG_IsOK(ecode2)) { | |
27390 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'"); | |
27391 | } | |
27392 | arg2 = static_cast< int >(val2); | |
27393 | } | |
27394 | { | |
27395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27396 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
27397 | wxPyEndAllowThreads(__tstate); | |
27398 | if (PyErr_Occurred()) SWIG_fail; | |
27399 | } | |
27400 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 ); | |
27401 | return resultobj; | |
27402 | fail: | |
27403 | return NULL; | |
27404 | } | |
27405 | ||
27406 | ||
27407 | SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27408 | PyObject *resultobj = 0; | |
27409 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27410 | int arg2 ; | |
27411 | void *argp1 = 0 ; | |
27412 | int res1 = 0 ; | |
27413 | int val2 ; | |
27414 | int ecode2 = 0 ; | |
27415 | PyObject *swig_obj[2] ; | |
27416 | ||
27417 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail; | |
27418 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27419 | if (!SWIG_IsOK(res1)) { | |
27420 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27421 | } | |
27422 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27423 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27424 | if (!SWIG_IsOK(ecode2)) { | |
27425 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'"); | |
27426 | } | |
27427 | arg2 = static_cast< int >(val2); | |
27428 | if (arg1) (arg1)->m_code = arg2; | |
27429 | ||
27430 | resultobj = SWIG_Py_Void(); | |
27431 | return resultobj; | |
27432 | fail: | |
27433 | return NULL; | |
d55e5bfc RD |
27434 | } |
27435 | ||
27436 | ||
1bd55598 RD |
27437 | SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27438 | PyObject *resultobj = 0; | |
27439 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27440 | int result; | |
27441 | void *argp1 = 0 ; | |
27442 | int res1 = 0 ; | |
27443 | PyObject *swig_obj[1] ; | |
27444 | ||
27445 | if (!args) SWIG_fail; | |
27446 | swig_obj[0] = args; | |
27447 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27448 | if (!SWIG_IsOK(res1)) { | |
27449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27450 | } | |
27451 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27452 | result = (int) ((arg1)->m_code); | |
27453 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27454 | return resultobj; | |
27455 | fail: | |
27456 | return NULL; | |
27457 | } | |
27458 | ||
27459 | ||
27460 | SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27461 | PyObject *resultobj = 0; | |
27462 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27463 | long arg2 ; | |
27464 | void *argp1 = 0 ; | |
27465 | int res1 = 0 ; | |
27466 | long val2 ; | |
27467 | int ecode2 = 0 ; | |
27468 | PyObject *swig_obj[2] ; | |
27469 | ||
27470 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail; | |
27471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27472 | if (!SWIG_IsOK(res1)) { | |
27473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27474 | } | |
27475 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27476 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27477 | if (!SWIG_IsOK(ecode2)) { | |
27478 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'"); | |
27479 | } | |
27480 | arg2 = static_cast< long >(val2); | |
27481 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
27482 | ||
27483 | resultobj = SWIG_Py_Void(); | |
27484 | return resultobj; | |
27485 | fail: | |
27486 | return NULL; | |
d55e5bfc RD |
27487 | } |
27488 | ||
27489 | ||
1bd55598 RD |
27490 | SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27491 | PyObject *resultobj = 0; | |
27492 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27493 | long result; | |
27494 | void *argp1 = 0 ; | |
27495 | int res1 = 0 ; | |
27496 | PyObject *swig_obj[1] ; | |
27497 | ||
27498 | if (!args) SWIG_fail; | |
27499 | swig_obj[0] = args; | |
27500 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27501 | if (!SWIG_IsOK(res1)) { | |
27502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27503 | } | |
27504 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27505 | result = (long) ((arg1)->m_oldItemIndex); | |
27506 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27507 | return resultobj; | |
27508 | fail: | |
27509 | return NULL; | |
27510 | } | |
27511 | ||
27512 | ||
27513 | SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27514 | PyObject *resultobj = 0; | |
27515 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27516 | long arg2 ; | |
27517 | void *argp1 = 0 ; | |
27518 | int res1 = 0 ; | |
27519 | long val2 ; | |
27520 | int ecode2 = 0 ; | |
27521 | PyObject *swig_obj[2] ; | |
27522 | ||
27523 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail; | |
27524 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27525 | if (!SWIG_IsOK(res1)) { | |
27526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27527 | } | |
27528 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27529 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27530 | if (!SWIG_IsOK(ecode2)) { | |
27531 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'"); | |
27532 | } | |
27533 | arg2 = static_cast< long >(val2); | |
27534 | if (arg1) (arg1)->m_itemIndex = arg2; | |
27535 | ||
27536 | resultobj = SWIG_Py_Void(); | |
27537 | return resultobj; | |
27538 | fail: | |
27539 | return NULL; | |
f20a2e1f RD |
27540 | } |
27541 | ||
27542 | ||
1bd55598 RD |
27543 | SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27544 | PyObject *resultobj = 0; | |
27545 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27546 | long result; | |
27547 | void *argp1 = 0 ; | |
27548 | int res1 = 0 ; | |
27549 | PyObject *swig_obj[1] ; | |
27550 | ||
27551 | if (!args) SWIG_fail; | |
27552 | swig_obj[0] = args; | |
27553 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27554 | if (!SWIG_IsOK(res1)) { | |
27555 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27556 | } | |
27557 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27558 | result = (long) ((arg1)->m_itemIndex); | |
27559 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27560 | return resultobj; | |
27561 | fail: | |
27562 | return NULL; | |
27563 | } | |
27564 | ||
27565 | ||
27566 | SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27567 | PyObject *resultobj = 0; | |
27568 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27569 | int arg2 ; | |
27570 | void *argp1 = 0 ; | |
27571 | int res1 = 0 ; | |
27572 | int val2 ; | |
27573 | int ecode2 = 0 ; | |
27574 | PyObject *swig_obj[2] ; | |
27575 | ||
27576 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail; | |
27577 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27578 | if (!SWIG_IsOK(res1)) { | |
27579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27580 | } | |
27581 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27582 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27583 | if (!SWIG_IsOK(ecode2)) { | |
27584 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'"); | |
27585 | } | |
27586 | arg2 = static_cast< int >(val2); | |
27587 | if (arg1) (arg1)->m_col = arg2; | |
27588 | ||
27589 | resultobj = SWIG_Py_Void(); | |
27590 | return resultobj; | |
27591 | fail: | |
27592 | return NULL; | |
d55e5bfc RD |
27593 | } |
27594 | ||
27595 | ||
1bd55598 RD |
27596 | SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27597 | PyObject *resultobj = 0; | |
27598 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27599 | int result; | |
27600 | void *argp1 = 0 ; | |
27601 | int res1 = 0 ; | |
27602 | PyObject *swig_obj[1] ; | |
27603 | ||
27604 | if (!args) SWIG_fail; | |
27605 | swig_obj[0] = args; | |
27606 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27607 | if (!SWIG_IsOK(res1)) { | |
27608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27609 | } | |
27610 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27611 | result = (int) ((arg1)->m_col); | |
27612 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27613 | return resultobj; | |
27614 | fail: | |
27615 | return NULL; | |
27616 | } | |
27617 | ||
27618 | ||
27619 | SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27620 | PyObject *resultobj = 0; | |
27621 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27622 | wxPoint *arg2 = (wxPoint *) 0 ; | |
27623 | void *argp1 = 0 ; | |
27624 | int res1 = 0 ; | |
27625 | void *argp2 = 0 ; | |
27626 | int res2 = 0 ; | |
27627 | PyObject *swig_obj[2] ; | |
27628 | ||
27629 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail; | |
27630 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27631 | if (!SWIG_IsOK(res1)) { | |
27632 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27633 | } | |
27634 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27635 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 ); | |
27636 | if (!SWIG_IsOK(res2)) { | |
27637 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'"); | |
27638 | } | |
27639 | arg2 = reinterpret_cast< wxPoint * >(argp2); | |
27640 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
27641 | ||
27642 | resultobj = SWIG_Py_Void(); | |
27643 | return resultobj; | |
27644 | fail: | |
27645 | return NULL; | |
d55e5bfc RD |
27646 | } |
27647 | ||
27648 | ||
1bd55598 RD |
27649 | SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27650 | PyObject *resultobj = 0; | |
27651 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27652 | wxPoint *result = 0 ; | |
27653 | void *argp1 = 0 ; | |
27654 | int res1 = 0 ; | |
27655 | PyObject *swig_obj[1] ; | |
27656 | ||
27657 | if (!args) SWIG_fail; | |
27658 | swig_obj[0] = args; | |
27659 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27660 | if (!SWIG_IsOK(res1)) { | |
27661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27662 | } | |
27663 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27664 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
27665 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 ); | |
27666 | return resultobj; | |
27667 | fail: | |
27668 | return NULL; | |
27669 | } | |
27670 | ||
27671 | ||
27672 | SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27673 | PyObject *resultobj = 0; | |
27674 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27675 | wxListItem *result = 0 ; | |
27676 | void *argp1 = 0 ; | |
27677 | int res1 = 0 ; | |
27678 | PyObject *swig_obj[1] ; | |
27679 | ||
27680 | if (!args) SWIG_fail; | |
27681 | swig_obj[0] = args; | |
27682 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27683 | if (!SWIG_IsOK(res1)) { | |
27684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27685 | } | |
27686 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27687 | result = (wxListItem *)& ((arg1)->m_item); | |
27688 | { | |
27689 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
27690 | } | |
27691 | return resultobj; | |
27692 | fail: | |
27693 | return NULL; | |
d55e5bfc RD |
27694 | } |
27695 | ||
27696 | ||
1bd55598 RD |
27697 | SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27698 | PyObject *resultobj = 0; | |
27699 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27700 | int result; | |
27701 | void *argp1 = 0 ; | |
27702 | int res1 = 0 ; | |
27703 | PyObject *swig_obj[1] ; | |
27704 | ||
27705 | if (!args) SWIG_fail; | |
27706 | swig_obj[0] = args; | |
27707 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27708 | if (!SWIG_IsOK(res1)) { | |
27709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27710 | } | |
27711 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27712 | { | |
27713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27714 | result = (int)(arg1)->GetKeyCode(); | |
27715 | wxPyEndAllowThreads(__tstate); | |
27716 | if (PyErr_Occurred()) SWIG_fail; | |
27717 | } | |
27718 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27719 | return resultobj; | |
27720 | fail: | |
27721 | return NULL; | |
d55e5bfc RD |
27722 | } |
27723 | ||
27724 | ||
1bd55598 RD |
27725 | SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27726 | PyObject *resultobj = 0; | |
27727 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27728 | long result; | |
27729 | void *argp1 = 0 ; | |
27730 | int res1 = 0 ; | |
27731 | PyObject *swig_obj[1] ; | |
27732 | ||
27733 | if (!args) SWIG_fail; | |
27734 | swig_obj[0] = args; | |
27735 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27736 | if (!SWIG_IsOK(res1)) { | |
27737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27738 | } | |
27739 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27740 | { | |
27741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27742 | result = (long)(arg1)->GetIndex(); | |
27743 | wxPyEndAllowThreads(__tstate); | |
27744 | if (PyErr_Occurred()) SWIG_fail; | |
27745 | } | |
27746 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27747 | return resultobj; | |
27748 | fail: | |
27749 | return NULL; | |
d55e5bfc RD |
27750 | } |
27751 | ||
27752 | ||
1bd55598 RD |
27753 | SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27754 | PyObject *resultobj = 0; | |
27755 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27756 | int result; | |
27757 | void *argp1 = 0 ; | |
27758 | int res1 = 0 ; | |
27759 | PyObject *swig_obj[1] ; | |
27760 | ||
27761 | if (!args) SWIG_fail; | |
27762 | swig_obj[0] = args; | |
27763 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27764 | if (!SWIG_IsOK(res1)) { | |
27765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27766 | } | |
27767 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27768 | { | |
27769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27770 | result = (int)(arg1)->GetColumn(); | |
27771 | wxPyEndAllowThreads(__tstate); | |
27772 | if (PyErr_Occurred()) SWIG_fail; | |
27773 | } | |
27774 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27775 | return resultobj; | |
27776 | fail: | |
27777 | return NULL; | |
d55e5bfc RD |
27778 | } |
27779 | ||
27780 | ||
1bd55598 RD |
27781 | SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27782 | PyObject *resultobj = 0; | |
27783 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27784 | wxPoint result; | |
27785 | void *argp1 = 0 ; | |
27786 | int res1 = 0 ; | |
27787 | PyObject *swig_obj[1] ; | |
27788 | ||
27789 | if (!args) SWIG_fail; | |
27790 | swig_obj[0] = args; | |
27791 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27792 | if (!SWIG_IsOK(res1)) { | |
27793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27794 | } | |
27795 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27796 | { | |
27797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27798 | result = (arg1)->GetPoint(); | |
27799 | wxPyEndAllowThreads(__tstate); | |
27800 | if (PyErr_Occurred()) SWIG_fail; | |
27801 | } | |
27802 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
27803 | return resultobj; | |
27804 | fail: | |
27805 | return NULL; | |
d55e5bfc RD |
27806 | } |
27807 | ||
27808 | ||
1bd55598 RD |
27809 | SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27810 | PyObject *resultobj = 0; | |
27811 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27812 | wxString *result = 0 ; | |
27813 | void *argp1 = 0 ; | |
27814 | int res1 = 0 ; | |
27815 | PyObject *swig_obj[1] ; | |
27816 | ||
27817 | if (!args) SWIG_fail; | |
27818 | swig_obj[0] = args; | |
27819 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27820 | if (!SWIG_IsOK(res1)) { | |
27821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27822 | } | |
27823 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27824 | { | |
27825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 27826 | { |
1bd55598 RD |
27827 | wxString const &_result_ref = (arg1)->GetLabel(); |
27828 | result = (wxString *) &_result_ref; | |
d55e5bfc | 27829 | } |
1bd55598 RD |
27830 | wxPyEndAllowThreads(__tstate); |
27831 | if (PyErr_Occurred()) SWIG_fail; | |
27832 | } | |
27833 | { | |
27834 | #if wxUSE_UNICODE | |
27835 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27836 | #else | |
27837 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27838 | #endif | |
27839 | } | |
27840 | return resultobj; | |
27841 | fail: | |
27842 | return NULL; | |
d55e5bfc RD |
27843 | } |
27844 | ||
27845 | ||
1bd55598 RD |
27846 | SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27847 | PyObject *resultobj = 0; | |
27848 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27849 | wxString *result = 0 ; | |
27850 | void *argp1 = 0 ; | |
27851 | int res1 = 0 ; | |
27852 | PyObject *swig_obj[1] ; | |
27853 | ||
27854 | if (!args) SWIG_fail; | |
27855 | swig_obj[0] = args; | |
27856 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27857 | if (!SWIG_IsOK(res1)) { | |
27858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27859 | } | |
27860 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27861 | { | |
27862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 27863 | { |
1bd55598 RD |
27864 | wxString const &_result_ref = (arg1)->GetText(); |
27865 | result = (wxString *) &_result_ref; | |
36ed4f51 | 27866 | } |
1bd55598 RD |
27867 | wxPyEndAllowThreads(__tstate); |
27868 | if (PyErr_Occurred()) SWIG_fail; | |
27869 | } | |
27870 | { | |
27871 | #if wxUSE_UNICODE | |
27872 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27873 | #else | |
27874 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27875 | #endif | |
27876 | } | |
27877 | return resultobj; | |
27878 | fail: | |
27879 | return NULL; | |
d55e5bfc RD |
27880 | } |
27881 | ||
27882 | ||
1bd55598 RD |
27883 | SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27884 | PyObject *resultobj = 0; | |
27885 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27886 | int result; | |
27887 | void *argp1 = 0 ; | |
27888 | int res1 = 0 ; | |
27889 | PyObject *swig_obj[1] ; | |
27890 | ||
27891 | if (!args) SWIG_fail; | |
27892 | swig_obj[0] = args; | |
27893 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27894 | if (!SWIG_IsOK(res1)) { | |
27895 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27896 | } | |
27897 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27898 | { | |
27899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27900 | result = (int)(arg1)->GetImage(); | |
27901 | wxPyEndAllowThreads(__tstate); | |
27902 | if (PyErr_Occurred()) SWIG_fail; | |
27903 | } | |
27904 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27905 | return resultobj; | |
27906 | fail: | |
27907 | return NULL; | |
d55e5bfc RD |
27908 | } |
27909 | ||
27910 | ||
1bd55598 RD |
27911 | SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27912 | PyObject *resultobj = 0; | |
27913 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27914 | long result; | |
27915 | void *argp1 = 0 ; | |
27916 | int res1 = 0 ; | |
27917 | PyObject *swig_obj[1] ; | |
27918 | ||
27919 | if (!args) SWIG_fail; | |
27920 | swig_obj[0] = args; | |
27921 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27922 | if (!SWIG_IsOK(res1)) { | |
27923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27924 | } | |
27925 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27926 | { | |
27927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27928 | result = (long)(arg1)->GetData(); | |
27929 | wxPyEndAllowThreads(__tstate); | |
27930 | if (PyErr_Occurred()) SWIG_fail; | |
27931 | } | |
27932 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27933 | return resultobj; | |
27934 | fail: | |
27935 | return NULL; | |
d55e5bfc RD |
27936 | } |
27937 | ||
27938 | ||
1bd55598 RD |
27939 | SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27940 | PyObject *resultobj = 0; | |
27941 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27942 | long result; | |
27943 | void *argp1 = 0 ; | |
27944 | int res1 = 0 ; | |
27945 | PyObject *swig_obj[1] ; | |
27946 | ||
27947 | if (!args) SWIG_fail; | |
27948 | swig_obj[0] = args; | |
27949 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27950 | if (!SWIG_IsOK(res1)) { | |
27951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27952 | } | |
27953 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27954 | { | |
27955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27956 | result = (long)(arg1)->GetMask(); | |
27957 | wxPyEndAllowThreads(__tstate); | |
27958 | if (PyErr_Occurred()) SWIG_fail; | |
27959 | } | |
27960 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27961 | return resultobj; | |
27962 | fail: | |
27963 | return NULL; | |
d55e5bfc RD |
27964 | } |
27965 | ||
27966 | ||
1bd55598 RD |
27967 | SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27968 | PyObject *resultobj = 0; | |
27969 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27970 | wxListItem *result = 0 ; | |
27971 | void *argp1 = 0 ; | |
27972 | int res1 = 0 ; | |
27973 | PyObject *swig_obj[1] ; | |
27974 | ||
27975 | if (!args) SWIG_fail; | |
27976 | swig_obj[0] = args; | |
27977 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27978 | if (!SWIG_IsOK(res1)) { | |
27979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27980 | } | |
27981 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27982 | { | |
27983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 27984 | { |
1bd55598 RD |
27985 | wxListItem const &_result_ref = (arg1)->GetItem(); |
27986 | result = (wxListItem *) &_result_ref; | |
d55e5bfc | 27987 | } |
1bd55598 RD |
27988 | wxPyEndAllowThreads(__tstate); |
27989 | if (PyErr_Occurred()) SWIG_fail; | |
27990 | } | |
27991 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27992 | return resultobj; | |
27993 | fail: | |
27994 | return NULL; | |
d55e5bfc RD |
27995 | } |
27996 | ||
27997 | ||
1bd55598 RD |
27998 | SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27999 | PyObject *resultobj = 0; | |
28000 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28001 | long result; | |
28002 | void *argp1 = 0 ; | |
28003 | int res1 = 0 ; | |
28004 | PyObject *swig_obj[1] ; | |
28005 | ||
28006 | if (!args) SWIG_fail; | |
28007 | swig_obj[0] = args; | |
28008 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28009 | if (!SWIG_IsOK(res1)) { | |
28010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28011 | } | |
28012 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28013 | { | |
28014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28015 | result = (long)(arg1)->GetCacheFrom(); | |
28016 | wxPyEndAllowThreads(__tstate); | |
28017 | if (PyErr_Occurred()) SWIG_fail; | |
28018 | } | |
28019 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28020 | return resultobj; | |
28021 | fail: | |
28022 | return NULL; | |
d55e5bfc RD |
28023 | } |
28024 | ||
28025 | ||
1bd55598 RD |
28026 | SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28027 | PyObject *resultobj = 0; | |
28028 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28029 | long result; | |
28030 | void *argp1 = 0 ; | |
28031 | int res1 = 0 ; | |
28032 | PyObject *swig_obj[1] ; | |
28033 | ||
28034 | if (!args) SWIG_fail; | |
28035 | swig_obj[0] = args; | |
28036 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28037 | if (!SWIG_IsOK(res1)) { | |
28038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28039 | } | |
28040 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28041 | { | |
28042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28043 | result = (long)(arg1)->GetCacheTo(); | |
28044 | wxPyEndAllowThreads(__tstate); | |
28045 | if (PyErr_Occurred()) SWIG_fail; | |
28046 | } | |
28047 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28048 | return resultobj; | |
28049 | fail: | |
28050 | return NULL; | |
7e08d4ef RD |
28051 | } |
28052 | ||
28053 | ||
1bd55598 RD |
28054 | SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28055 | PyObject *resultobj = 0; | |
28056 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28057 | bool result; | |
28058 | void *argp1 = 0 ; | |
28059 | int res1 = 0 ; | |
28060 | PyObject *swig_obj[1] ; | |
28061 | ||
28062 | if (!args) SWIG_fail; | |
28063 | swig_obj[0] = args; | |
28064 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28065 | if (!SWIG_IsOK(res1)) { | |
28066 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'"); | |
28067 | } | |
28068 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28069 | { | |
28070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28071 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
28072 | wxPyEndAllowThreads(__tstate); | |
28073 | if (PyErr_Occurred()) SWIG_fail; | |
28074 | } | |
28075 | { | |
28076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28077 | } | |
28078 | return resultobj; | |
28079 | fail: | |
28080 | return NULL; | |
28081 | } | |
28082 | ||
28083 | ||
28084 | SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28085 | PyObject *resultobj = 0; | |
28086 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28087 | bool arg2 ; | |
28088 | void *argp1 = 0 ; | |
28089 | int res1 = 0 ; | |
28090 | bool val2 ; | |
28091 | int ecode2 = 0 ; | |
28092 | PyObject * obj0 = 0 ; | |
28093 | PyObject * obj1 = 0 ; | |
28094 | char * kwnames[] = { | |
28095 | (char *) "self",(char *) "editCancelled", NULL | |
28096 | }; | |
28097 | ||
28098 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail; | |
28099 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28100 | if (!SWIG_IsOK(res1)) { | |
28101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28102 | } | |
28103 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28104 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
28105 | if (!SWIG_IsOK(ecode2)) { | |
28106 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'"); | |
28107 | } | |
28108 | arg2 = static_cast< bool >(val2); | |
28109 | { | |
28110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28111 | (arg1)->SetEditCanceled(arg2); | |
28112 | wxPyEndAllowThreads(__tstate); | |
28113 | if (PyErr_Occurred()) SWIG_fail; | |
28114 | } | |
28115 | resultobj = SWIG_Py_Void(); | |
28116 | return resultobj; | |
28117 | fail: | |
28118 | return NULL; | |
28119 | } | |
28120 | ||
28121 | ||
28122 | SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28123 | PyObject *obj; | |
28124 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28125 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj)); | |
28126 | return SWIG_Py_Void(); | |
28127 | } | |
28128 | ||
28129 | SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28130 | return SWIG_Python_InitShadowInstance(args); | |
28131 | } | |
28132 | ||
28133 | SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28134 | PyObject *resultobj = 0; | |
28135 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28136 | int arg2 = (int) -1 ; | |
28137 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28138 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28139 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28140 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28141 | long arg5 = (long) wxLC_ICON ; | |
28142 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28143 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28144 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
28145 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28146 | wxPyListCtrl *result = 0 ; | |
28147 | void *argp1 = 0 ; | |
28148 | int res1 = 0 ; | |
28149 | int val2 ; | |
28150 | int ecode2 = 0 ; | |
28151 | wxPoint temp3 ; | |
28152 | wxSize temp4 ; | |
28153 | long val5 ; | |
28154 | int ecode5 = 0 ; | |
28155 | void *argp6 = 0 ; | |
28156 | int res6 = 0 ; | |
28157 | bool temp7 = false ; | |
28158 | PyObject * obj0 = 0 ; | |
28159 | PyObject * obj1 = 0 ; | |
28160 | PyObject * obj2 = 0 ; | |
28161 | PyObject * obj3 = 0 ; | |
28162 | PyObject * obj4 = 0 ; | |
28163 | PyObject * obj5 = 0 ; | |
28164 | PyObject * obj6 = 0 ; | |
28165 | char * kwnames[] = { | |
28166 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28167 | }; | |
28168 | ||
28169 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28170 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28171 | if (!SWIG_IsOK(res1)) { | |
28172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
28173 | } | |
28174 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
28175 | if (obj1) { | |
28176 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28177 | if (!SWIG_IsOK(ecode2)) { | |
28178 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'"); | |
28179 | } | |
28180 | arg2 = static_cast< int >(val2); | |
28181 | } | |
28182 | if (obj2) { | |
7e08d4ef | 28183 | { |
1bd55598 RD |
28184 | arg3 = &temp3; |
28185 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7e08d4ef | 28186 | } |
1bd55598 RD |
28187 | } |
28188 | if (obj3) { | |
7e08d4ef | 28189 | { |
1bd55598 RD |
28190 | arg4 = &temp4; |
28191 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7e08d4ef | 28192 | } |
1bd55598 RD |
28193 | } |
28194 | if (obj4) { | |
28195 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
28196 | if (!SWIG_IsOK(ecode5)) { | |
28197 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'"); | |
28198 | } | |
28199 | arg5 = static_cast< long >(val5); | |
28200 | } | |
28201 | if (obj5) { | |
28202 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
28203 | if (!SWIG_IsOK(res6)) { | |
28204 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 28205 | } |
1bd55598 RD |
28206 | if (!argp6) { |
28207 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 28208 | } |
1bd55598 RD |
28209 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
28210 | } | |
28211 | if (obj6) { | |
7e08d4ef | 28212 | { |
1bd55598 RD |
28213 | arg7 = wxString_in_helper(obj6); |
28214 | if (arg7 == NULL) SWIG_fail; | |
28215 | temp7 = true; | |
7e08d4ef | 28216 | } |
1bd55598 RD |
28217 | } |
28218 | { | |
28219 | if (!wxPyCheckForApp()) SWIG_fail; | |
28220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28221 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28222 | wxPyEndAllowThreads(__tstate); | |
28223 | if (PyErr_Occurred()) SWIG_fail; | |
28224 | } | |
28225 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 ); | |
28226 | { | |
28227 | if (temp7) | |
28228 | delete arg7; | |
28229 | } | |
28230 | return resultobj; | |
28231 | fail: | |
28232 | { | |
28233 | if (temp7) | |
28234 | delete arg7; | |
28235 | } | |
28236 | return NULL; | |
7e08d4ef RD |
28237 | } |
28238 | ||
28239 | ||
1bd55598 RD |
28240 | SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28241 | PyObject *resultobj = 0; | |
28242 | wxPyListCtrl *result = 0 ; | |
28243 | ||
28244 | if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail; | |
28245 | { | |
28246 | if (!wxPyCheckForApp()) SWIG_fail; | |
28247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28248 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
28249 | wxPyEndAllowThreads(__tstate); | |
28250 | if (PyErr_Occurred()) SWIG_fail; | |
28251 | } | |
28252 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 ); | |
28253 | return resultobj; | |
28254 | fail: | |
28255 | return NULL; | |
28256 | } | |
28257 | ||
28258 | ||
28259 | SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28260 | PyObject *resultobj = 0; | |
28261 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28262 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28263 | int arg3 = (int) -1 ; | |
28264 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28265 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28266 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28267 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28268 | long arg6 = (long) wxLC_ICON ; | |
28269 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
28270 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
28271 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
28272 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28273 | bool result; | |
28274 | void *argp1 = 0 ; | |
28275 | int res1 = 0 ; | |
28276 | void *argp2 = 0 ; | |
28277 | int res2 = 0 ; | |
28278 | int val3 ; | |
28279 | int ecode3 = 0 ; | |
28280 | wxPoint temp4 ; | |
28281 | wxSize temp5 ; | |
28282 | long val6 ; | |
28283 | int ecode6 = 0 ; | |
28284 | void *argp7 = 0 ; | |
28285 | int res7 = 0 ; | |
28286 | bool temp8 = false ; | |
28287 | PyObject * obj0 = 0 ; | |
28288 | PyObject * obj1 = 0 ; | |
28289 | PyObject * obj2 = 0 ; | |
28290 | PyObject * obj3 = 0 ; | |
28291 | PyObject * obj4 = 0 ; | |
28292 | PyObject * obj5 = 0 ; | |
28293 | PyObject * obj6 = 0 ; | |
28294 | PyObject * obj7 = 0 ; | |
28295 | char * kwnames[] = { | |
28296 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28297 | }; | |
28298 | ||
28299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
28300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28301 | if (!SWIG_IsOK(res1)) { | |
28302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28303 | } | |
28304 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28305 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28306 | if (!SWIG_IsOK(res2)) { | |
28307 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
28308 | } | |
28309 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
28310 | if (obj2) { | |
28311 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28312 | if (!SWIG_IsOK(ecode3)) { | |
28313 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
28314 | } | |
28315 | arg3 = static_cast< int >(val3); | |
28316 | } | |
28317 | if (obj3) { | |
7e08d4ef | 28318 | { |
1bd55598 RD |
28319 | arg4 = &temp4; |
28320 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7e08d4ef | 28321 | } |
1bd55598 RD |
28322 | } |
28323 | if (obj4) { | |
7e08d4ef | 28324 | { |
1bd55598 RD |
28325 | arg5 = &temp5; |
28326 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7e08d4ef | 28327 | } |
1bd55598 RD |
28328 | } |
28329 | if (obj5) { | |
28330 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
28331 | if (!SWIG_IsOK(ecode6)) { | |
28332 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
28333 | } | |
28334 | arg6 = static_cast< long >(val6); | |
28335 | } | |
28336 | if (obj6) { | |
28337 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
28338 | if (!SWIG_IsOK(res7)) { | |
28339 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 28340 | } |
1bd55598 RD |
28341 | if (!argp7) { |
28342 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 28343 | } |
1bd55598 RD |
28344 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
28345 | } | |
28346 | if (obj7) { | |
7e08d4ef | 28347 | { |
1bd55598 RD |
28348 | arg8 = wxString_in_helper(obj7); |
28349 | if (arg8 == NULL) SWIG_fail; | |
28350 | temp8 = true; | |
7e08d4ef | 28351 | } |
1bd55598 RD |
28352 | } |
28353 | { | |
28354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28355 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
28356 | wxPyEndAllowThreads(__tstate); | |
28357 | if (PyErr_Occurred()) SWIG_fail; | |
28358 | } | |
28359 | { | |
28360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28361 | } | |
28362 | { | |
28363 | if (temp8) | |
28364 | delete arg8; | |
28365 | } | |
28366 | return resultobj; | |
28367 | fail: | |
28368 | { | |
28369 | if (temp8) | |
28370 | delete arg8; | |
28371 | } | |
28372 | return NULL; | |
28373 | } | |
28374 | ||
28375 | ||
28376 | SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28377 | PyObject *resultobj = 0; | |
28378 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28379 | PyObject *arg2 = (PyObject *) 0 ; | |
28380 | PyObject *arg3 = (PyObject *) 0 ; | |
28381 | void *argp1 = 0 ; | |
28382 | int res1 = 0 ; | |
28383 | PyObject * obj0 = 0 ; | |
28384 | PyObject * obj1 = 0 ; | |
28385 | PyObject * obj2 = 0 ; | |
28386 | char * kwnames[] = { | |
28387 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28388 | }; | |
28389 | ||
28390 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28391 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28392 | if (!SWIG_IsOK(res1)) { | |
28393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28394 | } | |
28395 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28396 | arg2 = obj1; | |
28397 | arg3 = obj2; | |
28398 | { | |
28399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28400 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28401 | wxPyEndAllowThreads(__tstate); | |
28402 | if (PyErr_Occurred()) SWIG_fail; | |
28403 | } | |
28404 | resultobj = SWIG_Py_Void(); | |
28405 | return resultobj; | |
28406 | fail: | |
28407 | return NULL; | |
28408 | } | |
28409 | ||
28410 | ||
28411 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28412 | PyObject *resultobj = 0; | |
28413 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28414 | int arg2 ; | |
28415 | wxListItem *result = 0 ; | |
28416 | void *argp1 = 0 ; | |
28417 | int res1 = 0 ; | |
28418 | int val2 ; | |
28419 | int ecode2 = 0 ; | |
28420 | PyObject * obj0 = 0 ; | |
28421 | PyObject * obj1 = 0 ; | |
28422 | char * kwnames[] = { | |
28423 | (char *) "self",(char *) "col", NULL | |
28424 | }; | |
28425 | ||
28426 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
28427 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28428 | if (!SWIG_IsOK(res1)) { | |
28429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28430 | } | |
28431 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28432 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28433 | if (!SWIG_IsOK(ecode2)) { | |
28434 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'"); | |
28435 | } | |
28436 | arg2 = static_cast< int >(val2); | |
28437 | { | |
28438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28439 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
28440 | wxPyEndAllowThreads(__tstate); | |
28441 | if (PyErr_Occurred()) SWIG_fail; | |
28442 | } | |
28443 | { | |
28444 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
28445 | } | |
28446 | return resultobj; | |
28447 | fail: | |
28448 | return NULL; | |
28449 | } | |
28450 | ||
28451 | ||
28452 | SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28453 | PyObject *resultobj = 0; | |
28454 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28455 | int arg2 ; | |
28456 | wxListItem *arg3 = 0 ; | |
28457 | bool result; | |
28458 | void *argp1 = 0 ; | |
28459 | int res1 = 0 ; | |
28460 | int val2 ; | |
28461 | int ecode2 = 0 ; | |
28462 | void *argp3 = 0 ; | |
28463 | int res3 = 0 ; | |
28464 | PyObject * obj0 = 0 ; | |
28465 | PyObject * obj1 = 0 ; | |
28466 | PyObject * obj2 = 0 ; | |
28467 | char * kwnames[] = { | |
28468 | (char *) "self",(char *) "col",(char *) "item", NULL | |
28469 | }; | |
28470 | ||
28471 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28472 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28473 | if (!SWIG_IsOK(res1)) { | |
28474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28475 | } | |
28476 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28477 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28478 | if (!SWIG_IsOK(ecode2)) { | |
28479 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'"); | |
28480 | } | |
28481 | arg2 = static_cast< int >(val2); | |
28482 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 ); | |
28483 | if (!SWIG_IsOK(res3)) { | |
28484 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
28485 | } | |
28486 | if (!argp3) { | |
28487 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
28488 | } | |
28489 | arg3 = reinterpret_cast< wxListItem * >(argp3); | |
28490 | { | |
28491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28492 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
28493 | wxPyEndAllowThreads(__tstate); | |
28494 | if (PyErr_Occurred()) SWIG_fail; | |
28495 | } | |
28496 | { | |
28497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28498 | } | |
28499 | return resultobj; | |
28500 | fail: | |
28501 | return NULL; | |
28502 | } | |
28503 | ||
28504 | ||
28505 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28506 | PyObject *resultobj = 0; | |
28507 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28508 | int arg2 ; | |
28509 | int result; | |
28510 | void *argp1 = 0 ; | |
28511 | int res1 = 0 ; | |
28512 | int val2 ; | |
28513 | int ecode2 = 0 ; | |
28514 | PyObject * obj0 = 0 ; | |
28515 | PyObject * obj1 = 0 ; | |
28516 | char * kwnames[] = { | |
28517 | (char *) "self",(char *) "col", NULL | |
28518 | }; | |
28519 | ||
28520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
28521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28522 | if (!SWIG_IsOK(res1)) { | |
28523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
28524 | } | |
28525 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28526 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28527 | if (!SWIG_IsOK(ecode2)) { | |
28528 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'"); | |
28529 | } | |
28530 | arg2 = static_cast< int >(val2); | |
28531 | { | |
28532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28533 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
28534 | wxPyEndAllowThreads(__tstate); | |
28535 | if (PyErr_Occurred()) SWIG_fail; | |
28536 | } | |
28537 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28538 | return resultobj; | |
28539 | fail: | |
28540 | return NULL; | |
28541 | } | |
28542 | ||
28543 | ||
28544 | SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28545 | PyObject *resultobj = 0; | |
28546 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28547 | int arg2 ; | |
28548 | int arg3 ; | |
28549 | bool result; | |
28550 | void *argp1 = 0 ; | |
28551 | int res1 = 0 ; | |
28552 | int val2 ; | |
28553 | int ecode2 = 0 ; | |
28554 | int val3 ; | |
28555 | int ecode3 = 0 ; | |
28556 | PyObject * obj0 = 0 ; | |
28557 | PyObject * obj1 = 0 ; | |
28558 | PyObject * obj2 = 0 ; | |
28559 | char * kwnames[] = { | |
28560 | (char *) "self",(char *) "col",(char *) "width", NULL | |
28561 | }; | |
28562 | ||
28563 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28564 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28565 | if (!SWIG_IsOK(res1)) { | |
28566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28567 | } | |
28568 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28569 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28570 | if (!SWIG_IsOK(ecode2)) { | |
28571 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'"); | |
28572 | } | |
28573 | arg2 = static_cast< int >(val2); | |
28574 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28575 | if (!SWIG_IsOK(ecode3)) { | |
28576 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'"); | |
28577 | } | |
28578 | arg3 = static_cast< int >(val3); | |
28579 | { | |
28580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28581 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
28582 | wxPyEndAllowThreads(__tstate); | |
28583 | if (PyErr_Occurred()) SWIG_fail; | |
28584 | } | |
28585 | { | |
28586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28587 | } | |
28588 | return resultobj; | |
28589 | fail: | |
28590 | return NULL; | |
7e08d4ef RD |
28591 | } |
28592 | ||
28593 | ||
1bd55598 RD |
28594 | SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28595 | PyObject *resultobj = 0; | |
28596 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28597 | int result; | |
28598 | void *argp1 = 0 ; | |
28599 | int res1 = 0 ; | |
28600 | PyObject *swig_obj[1] ; | |
28601 | ||
28602 | if (!args) SWIG_fail; | |
28603 | swig_obj[0] = args; | |
28604 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28605 | if (!SWIG_IsOK(res1)) { | |
28606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
28607 | } | |
28608 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28609 | { | |
28610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28611 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
28612 | wxPyEndAllowThreads(__tstate); | |
28613 | if (PyErr_Occurred()) SWIG_fail; | |
28614 | } | |
28615 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28616 | return resultobj; | |
28617 | fail: | |
28618 | return NULL; | |
7e08d4ef RD |
28619 | } |
28620 | ||
28621 | ||
1bd55598 RD |
28622 | SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28623 | PyObject *resultobj = 0; | |
28624 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28625 | wxRect result; | |
28626 | void *argp1 = 0 ; | |
28627 | int res1 = 0 ; | |
28628 | PyObject *swig_obj[1] ; | |
28629 | ||
28630 | if (!args) SWIG_fail; | |
28631 | swig_obj[0] = args; | |
28632 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28633 | if (!SWIG_IsOK(res1)) { | |
28634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
28635 | } | |
28636 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28637 | { | |
28638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28639 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
28640 | wxPyEndAllowThreads(__tstate); | |
28641 | if (PyErr_Occurred()) SWIG_fail; | |
28642 | } | |
28643 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
28644 | return resultobj; | |
28645 | fail: | |
28646 | return NULL; | |
7e08d4ef RD |
28647 | } |
28648 | ||
28649 | ||
1bd55598 RD |
28650 | SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28651 | PyObject *resultobj = 0; | |
28652 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28653 | wxTextCtrl *result = 0 ; | |
28654 | void *argp1 = 0 ; | |
28655 | int res1 = 0 ; | |
28656 | PyObject *swig_obj[1] ; | |
28657 | ||
28658 | if (!args) SWIG_fail; | |
28659 | swig_obj[0] = args; | |
28660 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28661 | if (!SWIG_IsOK(res1)) { | |
28662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
28663 | } | |
28664 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28665 | { | |
28666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28667 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
28668 | wxPyEndAllowThreads(__tstate); | |
28669 | if (PyErr_Occurred()) SWIG_fail; | |
28670 | } | |
28671 | { | |
28672 | resultobj = wxPyMake_wxObject(result, 0); | |
28673 | } | |
28674 | return resultobj; | |
28675 | fail: | |
28676 | return NULL; | |
28677 | } | |
28678 | ||
28679 | ||
28680 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28681 | PyObject *resultobj = 0; | |
28682 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28683 | long arg2 ; | |
28684 | int arg3 = (int) 0 ; | |
28685 | wxListItem *result = 0 ; | |
28686 | void *argp1 = 0 ; | |
28687 | int res1 = 0 ; | |
28688 | long val2 ; | |
28689 | int ecode2 = 0 ; | |
28690 | int val3 ; | |
28691 | int ecode3 = 0 ; | |
28692 | PyObject * obj0 = 0 ; | |
28693 | PyObject * obj1 = 0 ; | |
28694 | PyObject * obj2 = 0 ; | |
28695 | char * kwnames[] = { | |
28696 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
28697 | }; | |
28698 | ||
28699 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28700 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28701 | if (!SWIG_IsOK(res1)) { | |
28702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28703 | } | |
28704 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28705 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
28706 | if (!SWIG_IsOK(ecode2)) { | |
28707 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'"); | |
28708 | } | |
28709 | arg2 = static_cast< long >(val2); | |
28710 | if (obj2) { | |
28711 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28712 | if (!SWIG_IsOK(ecode3)) { | |
28713 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'"); | |
28714 | } | |
28715 | arg3 = static_cast< int >(val3); | |
28716 | } | |
28717 | { | |
28718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28719 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
28720 | wxPyEndAllowThreads(__tstate); | |
28721 | if (PyErr_Occurred()) SWIG_fail; | |
28722 | } | |
28723 | { | |
28724 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
28725 | } | |
28726 | return resultobj; | |
28727 | fail: | |
28728 | return NULL; | |
28729 | } | |
28730 | ||
28731 | ||
28732 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28733 | PyObject *resultobj = 0; | |
28734 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28735 | wxListItem *arg2 = 0 ; | |
28736 | bool result; | |
28737 | void *argp1 = 0 ; | |
28738 | int res1 = 0 ; | |
28739 | void *argp2 = 0 ; | |
28740 | int res2 = 0 ; | |
28741 | PyObject * obj0 = 0 ; | |
28742 | PyObject * obj1 = 0 ; | |
28743 | char * kwnames[] = { | |
28744 | (char *) "self",(char *) "info", NULL | |
28745 | }; | |
28746 | ||
28747 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
28748 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28749 | if (!SWIG_IsOK(res1)) { | |
28750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28751 | } | |
28752 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28753 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 ); | |
28754 | if (!SWIG_IsOK(res2)) { | |
28755 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
28756 | } | |
28757 | if (!argp2) { | |
28758 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
28759 | } | |
28760 | arg2 = reinterpret_cast< wxListItem * >(argp2); | |
28761 | { | |
28762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28763 | result = (bool)(arg1)->SetItem(*arg2); | |
28764 | wxPyEndAllowThreads(__tstate); | |
28765 | if (PyErr_Occurred()) SWIG_fail; | |
28766 | } | |
28767 | { | |
28768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28769 | } | |
28770 | return resultobj; | |
28771 | fail: | |
28772 | return NULL; | |
28773 | } | |
28774 | ||
28775 | ||
28776 | SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28777 | PyObject *resultobj = 0; | |
28778 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28779 | long arg2 ; | |
28780 | int arg3 ; | |
28781 | wxString *arg4 = 0 ; | |
28782 | int arg5 = (int) -1 ; | |
28783 | long result; | |
28784 | void *argp1 = 0 ; | |
28785 | int res1 = 0 ; | |
28786 | long val2 ; | |
28787 | int ecode2 = 0 ; | |
28788 | int val3 ; | |
28789 | int ecode3 = 0 ; | |
28790 | bool temp4 = false ; | |
28791 | int val5 ; | |
28792 | int ecode5 = 0 ; | |
28793 | PyObject * obj0 = 0 ; | |
28794 | PyObject * obj1 = 0 ; | |
28795 | PyObject * obj2 = 0 ; | |
28796 | PyObject * obj3 = 0 ; | |
28797 | PyObject * obj4 = 0 ; | |
28798 | char * kwnames[] = { | |
28799 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
28800 | }; | |
28801 | ||
28802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
28803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28804 | if (!SWIG_IsOK(res1)) { | |
28805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28806 | } | |
28807 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28808 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
28809 | if (!SWIG_IsOK(ecode2)) { | |
28810 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'"); | |
28811 | } | |
28812 | arg2 = static_cast< long >(val2); | |
28813 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28814 | if (!SWIG_IsOK(ecode3)) { | |
28815 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'"); | |
28816 | } | |
28817 | arg3 = static_cast< int >(val3); | |
28818 | { | |
28819 | arg4 = wxString_in_helper(obj3); | |
28820 | if (arg4 == NULL) SWIG_fail; | |
28821 | temp4 = true; | |
28822 | } | |
28823 | if (obj4) { | |
28824 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
28825 | if (!SWIG_IsOK(ecode5)) { | |
28826 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'"); | |
28827 | } | |
28828 | arg5 = static_cast< int >(val5); | |
28829 | } | |
28830 | { | |
28831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28832 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
28833 | wxPyEndAllowThreads(__tstate); | |
28834 | if (PyErr_Occurred()) SWIG_fail; | |
28835 | } | |
28836 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28837 | { | |
28838 | if (temp4) | |
28839 | delete arg4; | |
28840 | } | |
28841 | return resultobj; | |
28842 | fail: | |
28843 | { | |
28844 | if (temp4) | |
28845 | delete arg4; | |
28846 | } | |
28847 | return NULL; | |
28848 | } | |
28849 | ||
28850 | ||
28851 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28852 | PyObject *resultobj = 0; | |
28853 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28854 | long arg2 ; | |
28855 | long arg3 ; | |
28856 | int result; | |
28857 | void *argp1 = 0 ; | |
28858 | int res1 = 0 ; | |
28859 | long val2 ; | |
28860 | int ecode2 = 0 ; | |
28861 | long val3 ; | |
28862 | int ecode3 = 0 ; | |
28863 | PyObject * obj0 = 0 ; | |
28864 | PyObject * obj1 = 0 ; | |
28865 | PyObject * obj2 = 0 ; | |
28866 | char * kwnames[] = { | |
28867 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
28868 | }; | |
28869 | ||
28870 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28871 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28872 | if (!SWIG_IsOK(res1)) { | |
28873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
28874 | } | |
28875 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28876 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
28877 | if (!SWIG_IsOK(ecode2)) { | |
28878 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'"); | |
28879 | } | |
28880 | arg2 = static_cast< long >(val2); | |
28881 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
28882 | if (!SWIG_IsOK(ecode3)) { | |
28883 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'"); | |
28884 | } | |
28885 | arg3 = static_cast< long >(val3); | |
28886 | { | |
28887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28888 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
28889 | wxPyEndAllowThreads(__tstate); | |
28890 | if (PyErr_Occurred()) SWIG_fail; | |
28891 | } | |
28892 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28893 | return resultobj; | |
28894 | fail: | |
28895 | return NULL; | |
28896 | } | |
28897 | ||
28898 | ||
28899 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28900 | PyObject *resultobj = 0; | |
28901 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28902 | long arg2 ; | |
28903 | long arg3 ; | |
28904 | long arg4 ; | |
28905 | bool result; | |
28906 | void *argp1 = 0 ; | |
28907 | int res1 = 0 ; | |
28908 | long val2 ; | |
28909 | int ecode2 = 0 ; | |
28910 | long val3 ; | |
28911 | int ecode3 = 0 ; | |
28912 | long val4 ; | |
28913 | int ecode4 = 0 ; | |
28914 | PyObject * obj0 = 0 ; | |
28915 | PyObject * obj1 = 0 ; | |
28916 | PyObject * obj2 = 0 ; | |
28917 | PyObject * obj3 = 0 ; | |
28918 | char * kwnames[] = { | |
28919 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
28920 | }; | |
28921 | ||
28922 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
28923 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28924 | if (!SWIG_IsOK(res1)) { | |
28925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28926 | } | |
28927 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28928 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
28929 | if (!SWIG_IsOK(ecode2)) { | |
28930 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'"); | |
28931 | } | |
28932 | arg2 = static_cast< long >(val2); | |
28933 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
28934 | if (!SWIG_IsOK(ecode3)) { | |
28935 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'"); | |
28936 | } | |
28937 | arg3 = static_cast< long >(val3); | |
28938 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
28939 | if (!SWIG_IsOK(ecode4)) { | |
28940 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'"); | |
28941 | } | |
28942 | arg4 = static_cast< long >(val4); | |
28943 | { | |
28944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28945 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
28946 | wxPyEndAllowThreads(__tstate); | |
28947 | if (PyErr_Occurred()) SWIG_fail; | |
28948 | } | |
28949 | { | |
28950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28951 | } | |
28952 | return resultobj; | |
28953 | fail: | |
28954 | return NULL; | |
28955 | } | |
28956 | ||
28957 | ||
28958 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28959 | PyObject *resultobj = 0; | |
28960 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28961 | long arg2 ; | |
28962 | int arg3 ; | |
28963 | int arg4 = (int) -1 ; | |
28964 | bool result; | |
28965 | void *argp1 = 0 ; | |
28966 | int res1 = 0 ; | |
28967 | long val2 ; | |
28968 | int ecode2 = 0 ; | |
28969 | int val3 ; | |
28970 | int ecode3 = 0 ; | |
28971 | int val4 ; | |
28972 | int ecode4 = 0 ; | |
28973 | PyObject * obj0 = 0 ; | |
28974 | PyObject * obj1 = 0 ; | |
28975 | PyObject * obj2 = 0 ; | |
28976 | PyObject * obj3 = 0 ; | |
28977 | char * kwnames[] = { | |
28978 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
28979 | }; | |
28980 | ||
28981 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
28982 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28983 | if (!SWIG_IsOK(res1)) { | |
28984 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28985 | } | |
28986 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28987 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
28988 | if (!SWIG_IsOK(ecode2)) { | |
28989 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'"); | |
28990 | } | |
28991 | arg2 = static_cast< long >(val2); | |
28992 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28993 | if (!SWIG_IsOK(ecode3)) { | |
28994 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'"); | |
28995 | } | |
28996 | arg3 = static_cast< int >(val3); | |
28997 | if (obj3) { | |
28998 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
28999 | if (!SWIG_IsOK(ecode4)) { | |
29000 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'"); | |
29001 | } | |
29002 | arg4 = static_cast< int >(val4); | |
29003 | } | |
29004 | { | |
29005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29006 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
29007 | wxPyEndAllowThreads(__tstate); | |
29008 | if (PyErr_Occurred()) SWIG_fail; | |
29009 | } | |
29010 | { | |
29011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29012 | } | |
29013 | return resultobj; | |
29014 | fail: | |
29015 | return NULL; | |
29016 | } | |
29017 | ||
29018 | ||
29019 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29020 | PyObject *resultobj = 0; | |
29021 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29022 | long arg2 ; | |
29023 | long arg3 ; | |
29024 | int arg4 ; | |
29025 | bool result; | |
29026 | void *argp1 = 0 ; | |
29027 | int res1 = 0 ; | |
29028 | long val2 ; | |
29029 | int ecode2 = 0 ; | |
29030 | long val3 ; | |
29031 | int ecode3 = 0 ; | |
29032 | int val4 ; | |
29033 | int ecode4 = 0 ; | |
29034 | PyObject * obj0 = 0 ; | |
29035 | PyObject * obj1 = 0 ; | |
29036 | PyObject * obj2 = 0 ; | |
29037 | PyObject * obj3 = 0 ; | |
29038 | char * kwnames[] = { | |
29039 | (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL | |
29040 | }; | |
29041 | ||
29042 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29043 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29044 | if (!SWIG_IsOK(res1)) { | |
29045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29046 | } | |
29047 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29048 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29049 | if (!SWIG_IsOK(ecode2)) { | |
29050 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'"); | |
29051 | } | |
29052 | arg2 = static_cast< long >(val2); | |
29053 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29054 | if (!SWIG_IsOK(ecode3)) { | |
29055 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'"); | |
29056 | } | |
29057 | arg3 = static_cast< long >(val3); | |
29058 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29059 | if (!SWIG_IsOK(ecode4)) { | |
29060 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'"); | |
29061 | } | |
29062 | arg4 = static_cast< int >(val4); | |
29063 | { | |
29064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29065 | result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4); | |
29066 | wxPyEndAllowThreads(__tstate); | |
29067 | if (PyErr_Occurred()) SWIG_fail; | |
29068 | } | |
29069 | { | |
29070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29071 | } | |
29072 | return resultobj; | |
29073 | fail: | |
29074 | return NULL; | |
29075 | } | |
29076 | ||
29077 | ||
29078 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29079 | PyObject *resultobj = 0; | |
29080 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29081 | long arg2 ; | |
29082 | wxString result; | |
29083 | void *argp1 = 0 ; | |
29084 | int res1 = 0 ; | |
29085 | long val2 ; | |
29086 | int ecode2 = 0 ; | |
29087 | PyObject * obj0 = 0 ; | |
29088 | PyObject * obj1 = 0 ; | |
29089 | char * kwnames[] = { | |
29090 | (char *) "self",(char *) "item", NULL | |
29091 | }; | |
29092 | ||
29093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail; | |
29094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29095 | if (!SWIG_IsOK(res1)) { | |
29096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29097 | } | |
29098 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29099 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29100 | if (!SWIG_IsOK(ecode2)) { | |
29101 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'"); | |
29102 | } | |
29103 | arg2 = static_cast< long >(val2); | |
29104 | { | |
29105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29106 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
29107 | wxPyEndAllowThreads(__tstate); | |
29108 | if (PyErr_Occurred()) SWIG_fail; | |
29109 | } | |
29110 | { | |
29111 | #if wxUSE_UNICODE | |
29112 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29113 | #else | |
29114 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29115 | #endif | |
29116 | } | |
29117 | return resultobj; | |
29118 | fail: | |
29119 | return NULL; | |
29120 | } | |
29121 | ||
29122 | ||
29123 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29124 | PyObject *resultobj = 0; | |
29125 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29126 | long arg2 ; | |
29127 | wxString *arg3 = 0 ; | |
29128 | void *argp1 = 0 ; | |
29129 | int res1 = 0 ; | |
29130 | long val2 ; | |
29131 | int ecode2 = 0 ; | |
29132 | bool temp3 = false ; | |
29133 | PyObject * obj0 = 0 ; | |
29134 | PyObject * obj1 = 0 ; | |
29135 | PyObject * obj2 = 0 ; | |
29136 | char * kwnames[] = { | |
29137 | (char *) "self",(char *) "item",(char *) "str", NULL | |
29138 | }; | |
29139 | ||
29140 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29141 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29142 | if (!SWIG_IsOK(res1)) { | |
29143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29144 | } | |
29145 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29146 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29147 | if (!SWIG_IsOK(ecode2)) { | |
29148 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'"); | |
29149 | } | |
29150 | arg2 = static_cast< long >(val2); | |
29151 | { | |
29152 | arg3 = wxString_in_helper(obj2); | |
29153 | if (arg3 == NULL) SWIG_fail; | |
29154 | temp3 = true; | |
29155 | } | |
29156 | { | |
29157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29158 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
29159 | wxPyEndAllowThreads(__tstate); | |
29160 | if (PyErr_Occurred()) SWIG_fail; | |
29161 | } | |
29162 | resultobj = SWIG_Py_Void(); | |
29163 | { | |
29164 | if (temp3) | |
29165 | delete arg3; | |
29166 | } | |
29167 | return resultobj; | |
29168 | fail: | |
29169 | { | |
29170 | if (temp3) | |
29171 | delete arg3; | |
29172 | } | |
29173 | return NULL; | |
29174 | } | |
29175 | ||
29176 | ||
29177 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29178 | PyObject *resultobj = 0; | |
29179 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29180 | long arg2 ; | |
29181 | long result; | |
29182 | void *argp1 = 0 ; | |
29183 | int res1 = 0 ; | |
29184 | long val2 ; | |
29185 | int ecode2 = 0 ; | |
29186 | PyObject * obj0 = 0 ; | |
29187 | PyObject * obj1 = 0 ; | |
29188 | char * kwnames[] = { | |
29189 | (char *) "self",(char *) "item", NULL | |
29190 | }; | |
29191 | ||
29192 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail; | |
29193 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29194 | if (!SWIG_IsOK(res1)) { | |
29195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29196 | } | |
29197 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29198 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29199 | if (!SWIG_IsOK(ecode2)) { | |
29200 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'"); | |
29201 | } | |
29202 | arg2 = static_cast< long >(val2); | |
29203 | { | |
29204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29205 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
29206 | wxPyEndAllowThreads(__tstate); | |
29207 | if (PyErr_Occurred()) SWIG_fail; | |
29208 | } | |
29209 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
29210 | return resultobj; | |
29211 | fail: | |
29212 | return NULL; | |
29213 | } | |
29214 | ||
29215 | ||
29216 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29217 | PyObject *resultobj = 0; | |
29218 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29219 | long arg2 ; | |
29220 | long arg3 ; | |
29221 | bool result; | |
29222 | void *argp1 = 0 ; | |
29223 | int res1 = 0 ; | |
29224 | long val2 ; | |
29225 | int ecode2 = 0 ; | |
29226 | long val3 ; | |
29227 | int ecode3 = 0 ; | |
29228 | PyObject * obj0 = 0 ; | |
29229 | PyObject * obj1 = 0 ; | |
29230 | PyObject * obj2 = 0 ; | |
29231 | char * kwnames[] = { | |
29232 | (char *) "self",(char *) "item",(char *) "data", NULL | |
29233 | }; | |
29234 | ||
29235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29237 | if (!SWIG_IsOK(res1)) { | |
29238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29239 | } | |
29240 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29241 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29242 | if (!SWIG_IsOK(ecode2)) { | |
29243 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'"); | |
29244 | } | |
29245 | arg2 = static_cast< long >(val2); | |
29246 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29247 | if (!SWIG_IsOK(ecode3)) { | |
29248 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'"); | |
29249 | } | |
29250 | arg3 = static_cast< long >(val3); | |
29251 | { | |
29252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29253 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
29254 | wxPyEndAllowThreads(__tstate); | |
29255 | if (PyErr_Occurred()) SWIG_fail; | |
29256 | } | |
29257 | { | |
29258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29259 | } | |
29260 | return resultobj; | |
29261 | fail: | |
29262 | return NULL; | |
29263 | } | |
29264 | ||
29265 | ||
29266 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29267 | PyObject *resultobj = 0; | |
29268 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29269 | long arg2 ; | |
29270 | wxPoint result; | |
29271 | void *argp1 = 0 ; | |
29272 | int res1 = 0 ; | |
29273 | long val2 ; | |
29274 | int ecode2 = 0 ; | |
29275 | PyObject * obj0 = 0 ; | |
29276 | PyObject * obj1 = 0 ; | |
29277 | char * kwnames[] = { | |
29278 | (char *) "self",(char *) "item", NULL | |
29279 | }; | |
29280 | ||
29281 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
29282 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29283 | if (!SWIG_IsOK(res1)) { | |
29284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29285 | } | |
29286 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29287 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29288 | if (!SWIG_IsOK(ecode2)) { | |
29289 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'"); | |
29290 | } | |
29291 | arg2 = static_cast< long >(val2); | |
29292 | { | |
29293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29294 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
29295 | wxPyEndAllowThreads(__tstate); | |
29296 | if (PyErr_Occurred()) SWIG_fail; | |
29297 | } | |
29298 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
29299 | return resultobj; | |
29300 | fail: | |
29301 | return NULL; | |
29302 | } | |
29303 | ||
29304 | ||
29305 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29306 | PyObject *resultobj = 0; | |
29307 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29308 | long arg2 ; | |
29309 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
29310 | wxRect result; | |
29311 | void *argp1 = 0 ; | |
29312 | int res1 = 0 ; | |
29313 | long val2 ; | |
29314 | int ecode2 = 0 ; | |
29315 | int val3 ; | |
29316 | int ecode3 = 0 ; | |
29317 | PyObject * obj0 = 0 ; | |
29318 | PyObject * obj1 = 0 ; | |
29319 | PyObject * obj2 = 0 ; | |
29320 | char * kwnames[] = { | |
29321 | (char *) "self",(char *) "item",(char *) "code", NULL | |
29322 | }; | |
29323 | ||
29324 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29325 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29326 | if (!SWIG_IsOK(res1)) { | |
29327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29328 | } | |
29329 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29330 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29331 | if (!SWIG_IsOK(ecode2)) { | |
29332 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'"); | |
29333 | } | |
29334 | arg2 = static_cast< long >(val2); | |
29335 | if (obj2) { | |
29336 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29337 | if (!SWIG_IsOK(ecode3)) { | |
29338 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'"); | |
29339 | } | |
29340 | arg3 = static_cast< int >(val3); | |
29341 | } | |
29342 | { | |
29343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29344 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
29345 | wxPyEndAllowThreads(__tstate); | |
29346 | if (PyErr_Occurred()) SWIG_fail; | |
29347 | } | |
29348 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
29349 | return resultobj; | |
29350 | fail: | |
29351 | return NULL; | |
29352 | } | |
29353 | ||
29354 | ||
29355 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29356 | PyObject *resultobj = 0; | |
29357 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29358 | long arg2 ; | |
29359 | wxPoint *arg3 = 0 ; | |
29360 | bool result; | |
29361 | void *argp1 = 0 ; | |
29362 | int res1 = 0 ; | |
29363 | long val2 ; | |
29364 | int ecode2 = 0 ; | |
29365 | wxPoint temp3 ; | |
29366 | PyObject * obj0 = 0 ; | |
29367 | PyObject * obj1 = 0 ; | |
29368 | PyObject * obj2 = 0 ; | |
29369 | char * kwnames[] = { | |
29370 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
29371 | }; | |
29372 | ||
29373 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29374 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29375 | if (!SWIG_IsOK(res1)) { | |
29376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29377 | } | |
29378 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29379 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29380 | if (!SWIG_IsOK(ecode2)) { | |
29381 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'"); | |
29382 | } | |
29383 | arg2 = static_cast< long >(val2); | |
29384 | { | |
29385 | arg3 = &temp3; | |
29386 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29387 | } | |
29388 | { | |
29389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29390 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
29391 | wxPyEndAllowThreads(__tstate); | |
29392 | if (PyErr_Occurred()) SWIG_fail; | |
29393 | } | |
29394 | { | |
29395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29396 | } | |
29397 | return resultobj; | |
29398 | fail: | |
29399 | return NULL; | |
7e08d4ef RD |
29400 | } |
29401 | ||
29402 | ||
1bd55598 RD |
29403 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29404 | PyObject *resultobj = 0; | |
29405 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29406 | int result; | |
29407 | void *argp1 = 0 ; | |
29408 | int res1 = 0 ; | |
29409 | PyObject *swig_obj[1] ; | |
29410 | ||
29411 | if (!args) SWIG_fail; | |
29412 | swig_obj[0] = args; | |
29413 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29414 | if (!SWIG_IsOK(res1)) { | |
29415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29416 | } | |
29417 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29418 | { | |
29419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29420 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
29421 | wxPyEndAllowThreads(__tstate); | |
29422 | if (PyErr_Occurred()) SWIG_fail; | |
29423 | } | |
29424 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29425 | return resultobj; | |
29426 | fail: | |
29427 | return NULL; | |
7e08d4ef RD |
29428 | } |
29429 | ||
29430 | ||
1bd55598 RD |
29431 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29432 | PyObject *resultobj = 0; | |
29433 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29434 | int result; | |
29435 | void *argp1 = 0 ; | |
29436 | int res1 = 0 ; | |
29437 | PyObject *swig_obj[1] ; | |
29438 | ||
29439 | if (!args) SWIG_fail; | |
29440 | swig_obj[0] = args; | |
29441 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29442 | if (!SWIG_IsOK(res1)) { | |
29443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29444 | } | |
29445 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29446 | { | |
29447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29448 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
29449 | wxPyEndAllowThreads(__tstate); | |
29450 | if (PyErr_Occurred()) SWIG_fail; | |
29451 | } | |
29452 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29453 | return resultobj; | |
29454 | fail: | |
29455 | return NULL; | |
7e08d4ef RD |
29456 | } |
29457 | ||
29458 | ||
1bd55598 RD |
29459 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29460 | PyObject *resultobj = 0; | |
29461 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29462 | wxSize result; | |
29463 | void *argp1 = 0 ; | |
29464 | int res1 = 0 ; | |
29465 | PyObject *swig_obj[1] ; | |
29466 | ||
29467 | if (!args) SWIG_fail; | |
29468 | swig_obj[0] = args; | |
29469 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29470 | if (!SWIG_IsOK(res1)) { | |
29471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29472 | } | |
29473 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29474 | { | |
29475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29476 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
29477 | wxPyEndAllowThreads(__tstate); | |
29478 | if (PyErr_Occurred()) SWIG_fail; | |
29479 | } | |
29480 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
29481 | return resultobj; | |
29482 | fail: | |
29483 | return NULL; | |
29484 | } | |
29485 | ||
29486 | ||
29487 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29488 | PyObject *resultobj = 0; | |
29489 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29490 | int arg2 ; | |
29491 | bool arg3 = (bool) false ; | |
29492 | void *argp1 = 0 ; | |
29493 | int res1 = 0 ; | |
29494 | int val2 ; | |
29495 | int ecode2 = 0 ; | |
29496 | bool val3 ; | |
29497 | int ecode3 = 0 ; | |
29498 | PyObject * obj0 = 0 ; | |
29499 | PyObject * obj1 = 0 ; | |
29500 | PyObject * obj2 = 0 ; | |
29501 | char * kwnames[] = { | |
29502 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
29503 | }; | |
29504 | ||
29505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29507 | if (!SWIG_IsOK(res1)) { | |
29508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29509 | } | |
29510 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29511 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29512 | if (!SWIG_IsOK(ecode2)) { | |
29513 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'"); | |
29514 | } | |
29515 | arg2 = static_cast< int >(val2); | |
29516 | if (obj2) { | |
29517 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
29518 | if (!SWIG_IsOK(ecode3)) { | |
29519 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'"); | |
29520 | } | |
29521 | arg3 = static_cast< bool >(val3); | |
29522 | } | |
29523 | { | |
29524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29525 | (arg1)->SetItemSpacing(arg2,arg3); | |
29526 | wxPyEndAllowThreads(__tstate); | |
29527 | if (PyErr_Occurred()) SWIG_fail; | |
29528 | } | |
29529 | resultobj = SWIG_Py_Void(); | |
29530 | return resultobj; | |
29531 | fail: | |
29532 | return NULL; | |
7e08d4ef RD |
29533 | } |
29534 | ||
29535 | ||
1bd55598 RD |
29536 | SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29537 | PyObject *resultobj = 0; | |
29538 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29539 | int result; | |
29540 | void *argp1 = 0 ; | |
29541 | int res1 = 0 ; | |
29542 | PyObject *swig_obj[1] ; | |
29543 | ||
29544 | if (!args) SWIG_fail; | |
29545 | swig_obj[0] = args; | |
29546 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29547 | if (!SWIG_IsOK(res1)) { | |
29548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29549 | } | |
29550 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29551 | { | |
29552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29553 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
29554 | wxPyEndAllowThreads(__tstate); | |
29555 | if (PyErr_Occurred()) SWIG_fail; | |
29556 | } | |
29557 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29558 | return resultobj; | |
29559 | fail: | |
29560 | return NULL; | |
7e08d4ef RD |
29561 | } |
29562 | ||
29563 | ||
1bd55598 RD |
29564 | SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29565 | PyObject *resultobj = 0; | |
29566 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29567 | wxColour result; | |
29568 | void *argp1 = 0 ; | |
29569 | int res1 = 0 ; | |
29570 | PyObject *swig_obj[1] ; | |
29571 | ||
29572 | if (!args) SWIG_fail; | |
29573 | swig_obj[0] = args; | |
29574 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29575 | if (!SWIG_IsOK(res1)) { | |
29576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29577 | } | |
29578 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29579 | { | |
29580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29581 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
29582 | wxPyEndAllowThreads(__tstate); | |
29583 | if (PyErr_Occurred()) SWIG_fail; | |
29584 | } | |
29585 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
29586 | return resultobj; | |
29587 | fail: | |
29588 | return NULL; | |
29589 | } | |
29590 | ||
29591 | ||
29592 | SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29593 | PyObject *resultobj = 0; | |
29594 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29595 | wxColour *arg2 = 0 ; | |
29596 | void *argp1 = 0 ; | |
29597 | int res1 = 0 ; | |
29598 | wxColour temp2 ; | |
29599 | PyObject * obj0 = 0 ; | |
29600 | PyObject * obj1 = 0 ; | |
29601 | char * kwnames[] = { | |
29602 | (char *) "self",(char *) "col", NULL | |
29603 | }; | |
29604 | ||
29605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
29606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29607 | if (!SWIG_IsOK(res1)) { | |
29608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29609 | } | |
29610 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29611 | { | |
29612 | arg2 = &temp2; | |
29613 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29614 | } | |
29615 | { | |
29616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29617 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
29618 | wxPyEndAllowThreads(__tstate); | |
29619 | if (PyErr_Occurred()) SWIG_fail; | |
29620 | } | |
29621 | resultobj = SWIG_Py_Void(); | |
29622 | return resultobj; | |
29623 | fail: | |
29624 | return NULL; | |
7e08d4ef RD |
29625 | } |
29626 | ||
29627 | ||
1bd55598 RD |
29628 | SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29629 | PyObject *resultobj = 0; | |
29630 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29631 | long result; | |
29632 | void *argp1 = 0 ; | |
29633 | int res1 = 0 ; | |
29634 | PyObject *swig_obj[1] ; | |
29635 | ||
29636 | if (!args) SWIG_fail; | |
29637 | swig_obj[0] = args; | |
29638 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29639 | if (!SWIG_IsOK(res1)) { | |
29640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29641 | } | |
29642 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29643 | { | |
29644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29645 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
29646 | wxPyEndAllowThreads(__tstate); | |
29647 | if (PyErr_Occurred()) SWIG_fail; | |
29648 | } | |
29649 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
29650 | return resultobj; | |
29651 | fail: | |
29652 | return NULL; | |
29653 | } | |
29654 | ||
29655 | ||
29656 | SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29657 | PyObject *resultobj = 0; | |
29658 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29659 | long arg2 ; | |
29660 | bool arg3 = (bool) true ; | |
29661 | void *argp1 = 0 ; | |
29662 | int res1 = 0 ; | |
29663 | long val2 ; | |
29664 | int ecode2 = 0 ; | |
29665 | bool val3 ; | |
29666 | int ecode3 = 0 ; | |
29667 | PyObject * obj0 = 0 ; | |
29668 | PyObject * obj1 = 0 ; | |
29669 | PyObject * obj2 = 0 ; | |
29670 | char * kwnames[] = { | |
29671 | (char *) "self",(char *) "style",(char *) "add", NULL | |
29672 | }; | |
29673 | ||
29674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29675 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29676 | if (!SWIG_IsOK(res1)) { | |
29677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29678 | } | |
29679 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29680 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29681 | if (!SWIG_IsOK(ecode2)) { | |
29682 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'"); | |
29683 | } | |
29684 | arg2 = static_cast< long >(val2); | |
29685 | if (obj2) { | |
29686 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
29687 | if (!SWIG_IsOK(ecode3)) { | |
29688 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'"); | |
29689 | } | |
29690 | arg3 = static_cast< bool >(val3); | |
29691 | } | |
29692 | { | |
29693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29694 | (arg1)->SetSingleStyle(arg2,arg3); | |
29695 | wxPyEndAllowThreads(__tstate); | |
29696 | if (PyErr_Occurred()) SWIG_fail; | |
29697 | } | |
29698 | resultobj = SWIG_Py_Void(); | |
29699 | return resultobj; | |
29700 | fail: | |
29701 | return NULL; | |
29702 | } | |
29703 | ||
29704 | ||
29705 | SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29706 | PyObject *resultobj = 0; | |
29707 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29708 | long arg2 ; | |
29709 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
29710 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
29711 | long result; | |
29712 | void *argp1 = 0 ; | |
29713 | int res1 = 0 ; | |
29714 | long val2 ; | |
29715 | int ecode2 = 0 ; | |
29716 | int val3 ; | |
29717 | int ecode3 = 0 ; | |
29718 | int val4 ; | |
29719 | int ecode4 = 0 ; | |
29720 | PyObject * obj0 = 0 ; | |
29721 | PyObject * obj1 = 0 ; | |
29722 | PyObject * obj2 = 0 ; | |
29723 | PyObject * obj3 = 0 ; | |
29724 | char * kwnames[] = { | |
29725 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
29726 | }; | |
29727 | ||
29728 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29729 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29730 | if (!SWIG_IsOK(res1)) { | |
29731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29732 | } | |
29733 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29734 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29735 | if (!SWIG_IsOK(ecode2)) { | |
29736 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'"); | |
29737 | } | |
29738 | arg2 = static_cast< long >(val2); | |
29739 | if (obj2) { | |
29740 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29741 | if (!SWIG_IsOK(ecode3)) { | |
29742 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'"); | |
29743 | } | |
29744 | arg3 = static_cast< int >(val3); | |
29745 | } | |
29746 | if (obj3) { | |
29747 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29748 | if (!SWIG_IsOK(ecode4)) { | |
29749 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'"); | |
29750 | } | |
29751 | arg4 = static_cast< int >(val4); | |
29752 | } | |
29753 | { | |
29754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29755 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
29756 | wxPyEndAllowThreads(__tstate); | |
29757 | if (PyErr_Occurred()) SWIG_fail; | |
29758 | } | |
29759 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
29760 | return resultobj; | |
29761 | fail: | |
29762 | return NULL; | |
29763 | } | |
29764 | ||
29765 | ||
29766 | SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29767 | PyObject *resultobj = 0; | |
29768 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29769 | int arg2 ; | |
29770 | wxImageList *result = 0 ; | |
29771 | void *argp1 = 0 ; | |
29772 | int res1 = 0 ; | |
29773 | int val2 ; | |
29774 | int ecode2 = 0 ; | |
29775 | PyObject * obj0 = 0 ; | |
29776 | PyObject * obj1 = 0 ; | |
29777 | char * kwnames[] = { | |
29778 | (char *) "self",(char *) "which", NULL | |
29779 | }; | |
29780 | ||
29781 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
29782 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29783 | if (!SWIG_IsOK(res1)) { | |
29784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29785 | } | |
29786 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29787 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29788 | if (!SWIG_IsOK(ecode2)) { | |
29789 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'"); | |
29790 | } | |
29791 | arg2 = static_cast< int >(val2); | |
29792 | { | |
29793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29794 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
29795 | wxPyEndAllowThreads(__tstate); | |
29796 | if (PyErr_Occurred()) SWIG_fail; | |
29797 | } | |
29798 | { | |
29799 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
29800 | } | |
29801 | return resultobj; | |
29802 | fail: | |
29803 | return NULL; | |
29804 | } | |
29805 | ||
29806 | ||
29807 | SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29808 | PyObject *resultobj = 0; | |
29809 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29810 | wxImageList *arg2 = (wxImageList *) 0 ; | |
29811 | int arg3 ; | |
29812 | void *argp1 = 0 ; | |
29813 | int res1 = 0 ; | |
29814 | void *argp2 = 0 ; | |
29815 | int res2 = 0 ; | |
29816 | int val3 ; | |
29817 | int ecode3 = 0 ; | |
29818 | PyObject * obj0 = 0 ; | |
29819 | PyObject * obj1 = 0 ; | |
29820 | PyObject * obj2 = 0 ; | |
29821 | char * kwnames[] = { | |
29822 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
29823 | }; | |
29824 | ||
29825 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29826 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29827 | if (!SWIG_IsOK(res1)) { | |
29828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29829 | } | |
29830 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29831 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
29832 | if (!SWIG_IsOK(res2)) { | |
29833 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
29834 | } | |
29835 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
29836 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29837 | if (!SWIG_IsOK(ecode3)) { | |
29838 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'"); | |
29839 | } | |
29840 | arg3 = static_cast< int >(val3); | |
29841 | { | |
29842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29843 | (arg1)->SetImageList(arg2,arg3); | |
29844 | wxPyEndAllowThreads(__tstate); | |
29845 | if (PyErr_Occurred()) SWIG_fail; | |
29846 | } | |
29847 | resultobj = SWIG_Py_Void(); | |
29848 | return resultobj; | |
29849 | fail: | |
29850 | return NULL; | |
29851 | } | |
29852 | ||
29853 | ||
29854 | SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29855 | PyObject *resultobj = 0; | |
29856 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29857 | wxImageList *arg2 = (wxImageList *) 0 ; | |
29858 | int arg3 ; | |
29859 | void *argp1 = 0 ; | |
29860 | int res1 = 0 ; | |
29861 | int res2 = 0 ; | |
29862 | int val3 ; | |
29863 | int ecode3 = 0 ; | |
29864 | PyObject * obj0 = 0 ; | |
29865 | PyObject * obj1 = 0 ; | |
29866 | PyObject * obj2 = 0 ; | |
29867 | char * kwnames[] = { | |
29868 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
29869 | }; | |
29870 | ||
29871 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29872 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29873 | if (!SWIG_IsOK(res1)) { | |
29874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29875 | } | |
29876 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29877 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
29878 | if (!SWIG_IsOK(res2)) { | |
29879 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
29880 | } | |
29881 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29882 | if (!SWIG_IsOK(ecode3)) { | |
29883 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'"); | |
29884 | } | |
29885 | arg3 = static_cast< int >(val3); | |
29886 | { | |
29887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29888 | (arg1)->AssignImageList(arg2,arg3); | |
29889 | wxPyEndAllowThreads(__tstate); | |
29890 | if (PyErr_Occurred()) SWIG_fail; | |
29891 | } | |
29892 | resultobj = SWIG_Py_Void(); | |
29893 | return resultobj; | |
29894 | fail: | |
29895 | return NULL; | |
7e08d4ef RD |
29896 | } |
29897 | ||
29898 | ||
1bd55598 RD |
29899 | SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29900 | PyObject *resultobj = 0; | |
29901 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29902 | bool result; | |
29903 | void *argp1 = 0 ; | |
29904 | int res1 = 0 ; | |
29905 | PyObject *swig_obj[1] ; | |
29906 | ||
29907 | if (!args) SWIG_fail; | |
29908 | swig_obj[0] = args; | |
29909 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29910 | if (!SWIG_IsOK(res1)) { | |
29911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29912 | } | |
29913 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29914 | { | |
29915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29916 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
29917 | wxPyEndAllowThreads(__tstate); | |
29918 | if (PyErr_Occurred()) SWIG_fail; | |
29919 | } | |
29920 | { | |
29921 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29922 | } | |
29923 | return resultobj; | |
29924 | fail: | |
29925 | return NULL; | |
44bf767a RD |
29926 | } |
29927 | ||
29928 | ||
1bd55598 RD |
29929 | SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29930 | PyObject *resultobj = 0; | |
29931 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29932 | bool result; | |
29933 | void *argp1 = 0 ; | |
29934 | int res1 = 0 ; | |
29935 | PyObject *swig_obj[1] ; | |
29936 | ||
29937 | if (!args) SWIG_fail; | |
29938 | swig_obj[0] = args; | |
29939 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29940 | if (!SWIG_IsOK(res1)) { | |
29941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29942 | } | |
29943 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29944 | { | |
29945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29946 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
29947 | wxPyEndAllowThreads(__tstate); | |
29948 | if (PyErr_Occurred()) SWIG_fail; | |
29949 | } | |
29950 | { | |
29951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29952 | } | |
29953 | return resultobj; | |
29954 | fail: | |
29955 | return NULL; | |
29956 | } | |
29957 | ||
29958 | ||
29959 | SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29960 | PyObject *resultobj = 0; | |
29961 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29962 | long arg2 ; | |
29963 | void *argp1 = 0 ; | |
29964 | int res1 = 0 ; | |
29965 | long val2 ; | |
29966 | int ecode2 = 0 ; | |
29967 | PyObject * obj0 = 0 ; | |
29968 | PyObject * obj1 = 0 ; | |
29969 | char * kwnames[] = { | |
29970 | (char *) "self",(char *) "item", NULL | |
29971 | }; | |
29972 | ||
29973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
29974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29975 | if (!SWIG_IsOK(res1)) { | |
29976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29977 | } | |
29978 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29979 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29980 | if (!SWIG_IsOK(ecode2)) { | |
29981 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'"); | |
29982 | } | |
29983 | arg2 = static_cast< long >(val2); | |
29984 | { | |
29985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29986 | (arg1)->RefreshItem(arg2); | |
29987 | wxPyEndAllowThreads(__tstate); | |
29988 | if (PyErr_Occurred()) SWIG_fail; | |
29989 | } | |
29990 | resultobj = SWIG_Py_Void(); | |
29991 | return resultobj; | |
29992 | fail: | |
29993 | return NULL; | |
29994 | } | |
29995 | ||
29996 | ||
29997 | SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29998 | PyObject *resultobj = 0; | |
29999 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30000 | long arg2 ; | |
30001 | long arg3 ; | |
30002 | void *argp1 = 0 ; | |
30003 | int res1 = 0 ; | |
30004 | long val2 ; | |
30005 | int ecode2 = 0 ; | |
30006 | long val3 ; | |
30007 | int ecode3 = 0 ; | |
30008 | PyObject * obj0 = 0 ; | |
30009 | PyObject * obj1 = 0 ; | |
30010 | PyObject * obj2 = 0 ; | |
30011 | char * kwnames[] = { | |
30012 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
30013 | }; | |
30014 | ||
30015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30016 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30017 | if (!SWIG_IsOK(res1)) { | |
30018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30019 | } | |
30020 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30021 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30022 | if (!SWIG_IsOK(ecode2)) { | |
30023 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'"); | |
30024 | } | |
30025 | arg2 = static_cast< long >(val2); | |
30026 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
30027 | if (!SWIG_IsOK(ecode3)) { | |
30028 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'"); | |
30029 | } | |
30030 | arg3 = static_cast< long >(val3); | |
30031 | { | |
30032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30033 | (arg1)->RefreshItems(arg2,arg3); | |
30034 | wxPyEndAllowThreads(__tstate); | |
30035 | if (PyErr_Occurred()) SWIG_fail; | |
30036 | } | |
30037 | resultobj = SWIG_Py_Void(); | |
30038 | return resultobj; | |
30039 | fail: | |
30040 | return NULL; | |
30041 | } | |
30042 | ||
30043 | ||
30044 | SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30045 | PyObject *resultobj = 0; | |
30046 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30047 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
30048 | bool result; | |
30049 | void *argp1 = 0 ; | |
30050 | int res1 = 0 ; | |
30051 | int val2 ; | |
30052 | int ecode2 = 0 ; | |
30053 | PyObject * obj0 = 0 ; | |
30054 | PyObject * obj1 = 0 ; | |
30055 | char * kwnames[] = { | |
30056 | (char *) "self",(char *) "flag", NULL | |
30057 | }; | |
30058 | ||
30059 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail; | |
30060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30061 | if (!SWIG_IsOK(res1)) { | |
30062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30063 | } | |
30064 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30065 | if (obj1) { | |
30066 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30067 | if (!SWIG_IsOK(ecode2)) { | |
30068 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'"); | |
30069 | } | |
30070 | arg2 = static_cast< int >(val2); | |
30071 | } | |
30072 | { | |
30073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30074 | result = (bool)(arg1)->Arrange(arg2); | |
30075 | wxPyEndAllowThreads(__tstate); | |
30076 | if (PyErr_Occurred()) SWIG_fail; | |
30077 | } | |
30078 | { | |
30079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30080 | } | |
30081 | return resultobj; | |
30082 | fail: | |
30083 | return NULL; | |
30084 | } | |
30085 | ||
30086 | ||
30087 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30088 | PyObject *resultobj = 0; | |
30089 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30090 | long arg2 ; | |
30091 | bool result; | |
30092 | void *argp1 = 0 ; | |
30093 | int res1 = 0 ; | |
30094 | long val2 ; | |
30095 | int ecode2 = 0 ; | |
30096 | PyObject * obj0 = 0 ; | |
30097 | PyObject * obj1 = 0 ; | |
30098 | char * kwnames[] = { | |
30099 | (char *) "self",(char *) "item", NULL | |
30100 | }; | |
30101 | ||
30102 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
30103 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30104 | if (!SWIG_IsOK(res1)) { | |
30105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30106 | } | |
30107 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30108 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30109 | if (!SWIG_IsOK(ecode2)) { | |
30110 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'"); | |
30111 | } | |
30112 | arg2 = static_cast< long >(val2); | |
30113 | { | |
30114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30115 | result = (bool)(arg1)->DeleteItem(arg2); | |
30116 | wxPyEndAllowThreads(__tstate); | |
30117 | if (PyErr_Occurred()) SWIG_fail; | |
30118 | } | |
30119 | { | |
30120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30121 | } | |
30122 | return resultobj; | |
30123 | fail: | |
30124 | return NULL; | |
d55e5bfc RD |
30125 | } |
30126 | ||
30127 | ||
1bd55598 RD |
30128 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30129 | PyObject *resultobj = 0; | |
30130 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30131 | bool result; | |
30132 | void *argp1 = 0 ; | |
30133 | int res1 = 0 ; | |
30134 | PyObject *swig_obj[1] ; | |
30135 | ||
30136 | if (!args) SWIG_fail; | |
30137 | swig_obj[0] = args; | |
30138 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30139 | if (!SWIG_IsOK(res1)) { | |
30140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30141 | } | |
30142 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30143 | { | |
30144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30145 | result = (bool)(arg1)->DeleteAllItems(); | |
30146 | wxPyEndAllowThreads(__tstate); | |
30147 | if (PyErr_Occurred()) SWIG_fail; | |
30148 | } | |
30149 | { | |
30150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30151 | } | |
30152 | return resultobj; | |
30153 | fail: | |
30154 | return NULL; | |
30155 | } | |
30156 | ||
30157 | ||
30158 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30159 | PyObject *resultobj = 0; | |
30160 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30161 | int arg2 ; | |
30162 | bool result; | |
30163 | void *argp1 = 0 ; | |
30164 | int res1 = 0 ; | |
30165 | int val2 ; | |
30166 | int ecode2 = 0 ; | |
30167 | PyObject * obj0 = 0 ; | |
30168 | PyObject * obj1 = 0 ; | |
30169 | char * kwnames[] = { | |
30170 | (char *) "self",(char *) "col", NULL | |
30171 | }; | |
30172 | ||
30173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
30174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30175 | if (!SWIG_IsOK(res1)) { | |
30176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30177 | } | |
30178 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30179 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30180 | if (!SWIG_IsOK(ecode2)) { | |
30181 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'"); | |
30182 | } | |
30183 | arg2 = static_cast< int >(val2); | |
30184 | { | |
30185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30186 | result = (bool)(arg1)->DeleteColumn(arg2); | |
30187 | wxPyEndAllowThreads(__tstate); | |
30188 | if (PyErr_Occurred()) SWIG_fail; | |
30189 | } | |
30190 | { | |
30191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30192 | } | |
30193 | return resultobj; | |
30194 | fail: | |
30195 | return NULL; | |
b411df4a RD |
30196 | } |
30197 | ||
30198 | ||
1bd55598 RD |
30199 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30200 | PyObject *resultobj = 0; | |
30201 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30202 | bool result; | |
30203 | void *argp1 = 0 ; | |
30204 | int res1 = 0 ; | |
30205 | PyObject *swig_obj[1] ; | |
30206 | ||
30207 | if (!args) SWIG_fail; | |
30208 | swig_obj[0] = args; | |
30209 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30210 | if (!SWIG_IsOK(res1)) { | |
30211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30212 | } | |
30213 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30214 | { | |
30215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30216 | result = (bool)(arg1)->DeleteAllColumns(); | |
30217 | wxPyEndAllowThreads(__tstate); | |
30218 | if (PyErr_Occurred()) SWIG_fail; | |
30219 | } | |
30220 | { | |
30221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30222 | } | |
30223 | return resultobj; | |
30224 | fail: | |
30225 | return NULL; | |
b411df4a RD |
30226 | } |
30227 | ||
30228 | ||
1bd55598 RD |
30229 | SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30230 | PyObject *resultobj = 0; | |
30231 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30232 | void *argp1 = 0 ; | |
30233 | int res1 = 0 ; | |
30234 | PyObject *swig_obj[1] ; | |
30235 | ||
30236 | if (!args) SWIG_fail; | |
30237 | swig_obj[0] = args; | |
30238 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30239 | if (!SWIG_IsOK(res1)) { | |
30240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30241 | } | |
30242 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30243 | { | |
30244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30245 | (arg1)->ClearAll(); | |
30246 | wxPyEndAllowThreads(__tstate); | |
30247 | if (PyErr_Occurred()) SWIG_fail; | |
30248 | } | |
30249 | resultobj = SWIG_Py_Void(); | |
30250 | return resultobj; | |
30251 | fail: | |
30252 | return NULL; | |
30253 | } | |
30254 | ||
30255 | ||
30256 | SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30257 | PyObject *resultobj = 0; | |
30258 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30259 | long arg2 ; | |
30260 | void *argp1 = 0 ; | |
30261 | int res1 = 0 ; | |
30262 | long val2 ; | |
30263 | int ecode2 = 0 ; | |
30264 | PyObject * obj0 = 0 ; | |
30265 | PyObject * obj1 = 0 ; | |
30266 | char * kwnames[] = { | |
30267 | (char *) "self",(char *) "item", NULL | |
30268 | }; | |
30269 | ||
30270 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
30271 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30272 | if (!SWIG_IsOK(res1)) { | |
30273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30274 | } | |
30275 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30276 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30277 | if (!SWIG_IsOK(ecode2)) { | |
30278 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'"); | |
30279 | } | |
30280 | arg2 = static_cast< long >(val2); | |
30281 | { | |
30282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30283 | (arg1)->EditLabel(arg2); | |
30284 | wxPyEndAllowThreads(__tstate); | |
30285 | if (PyErr_Occurred()) SWIG_fail; | |
30286 | } | |
30287 | resultobj = SWIG_Py_Void(); | |
30288 | return resultobj; | |
30289 | fail: | |
30290 | return NULL; | |
30291 | } | |
30292 | ||
30293 | ||
30294 | SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30295 | PyObject *resultobj = 0; | |
30296 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30297 | long arg2 ; | |
30298 | bool result; | |
30299 | void *argp1 = 0 ; | |
30300 | int res1 = 0 ; | |
30301 | long val2 ; | |
30302 | int ecode2 = 0 ; | |
30303 | PyObject * obj0 = 0 ; | |
30304 | PyObject * obj1 = 0 ; | |
30305 | char * kwnames[] = { | |
30306 | (char *) "self",(char *) "item", NULL | |
30307 | }; | |
30308 | ||
30309 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
30310 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30311 | if (!SWIG_IsOK(res1)) { | |
30312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30313 | } | |
30314 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30315 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30316 | if (!SWIG_IsOK(ecode2)) { | |
30317 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'"); | |
30318 | } | |
30319 | arg2 = static_cast< long >(val2); | |
30320 | { | |
30321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30322 | result = (bool)(arg1)->EnsureVisible(arg2); | |
30323 | wxPyEndAllowThreads(__tstate); | |
30324 | if (PyErr_Occurred()) SWIG_fail; | |
30325 | } | |
30326 | { | |
30327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30328 | } | |
30329 | return resultobj; | |
30330 | fail: | |
30331 | return NULL; | |
30332 | } | |
30333 | ||
30334 | ||
30335 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30336 | PyObject *resultobj = 0; | |
30337 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30338 | long arg2 ; | |
30339 | wxString *arg3 = 0 ; | |
30340 | bool arg4 = (bool) false ; | |
30341 | long result; | |
30342 | void *argp1 = 0 ; | |
30343 | int res1 = 0 ; | |
30344 | long val2 ; | |
30345 | int ecode2 = 0 ; | |
30346 | bool temp3 = false ; | |
30347 | bool val4 ; | |
30348 | int ecode4 = 0 ; | |
30349 | PyObject * obj0 = 0 ; | |
30350 | PyObject * obj1 = 0 ; | |
30351 | PyObject * obj2 = 0 ; | |
30352 | PyObject * obj3 = 0 ; | |
30353 | char * kwnames[] = { | |
30354 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
30355 | }; | |
30356 | ||
30357 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30358 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30359 | if (!SWIG_IsOK(res1)) { | |
30360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30361 | } | |
30362 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30363 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30364 | if (!SWIG_IsOK(ecode2)) { | |
30365 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'"); | |
30366 | } | |
30367 | arg2 = static_cast< long >(val2); | |
30368 | { | |
30369 | arg3 = wxString_in_helper(obj2); | |
30370 | if (arg3 == NULL) SWIG_fail; | |
30371 | temp3 = true; | |
30372 | } | |
30373 | if (obj3) { | |
30374 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
30375 | if (!SWIG_IsOK(ecode4)) { | |
30376 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'"); | |
30377 | } | |
30378 | arg4 = static_cast< bool >(val4); | |
30379 | } | |
30380 | { | |
30381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30382 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
30383 | wxPyEndAllowThreads(__tstate); | |
30384 | if (PyErr_Occurred()) SWIG_fail; | |
30385 | } | |
30386 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30387 | { | |
30388 | if (temp3) | |
30389 | delete arg3; | |
30390 | } | |
30391 | return resultobj; | |
30392 | fail: | |
30393 | { | |
30394 | if (temp3) | |
30395 | delete arg3; | |
30396 | } | |
30397 | return NULL; | |
30398 | } | |
30399 | ||
30400 | ||
30401 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30402 | PyObject *resultobj = 0; | |
30403 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30404 | long arg2 ; | |
30405 | long arg3 ; | |
30406 | long result; | |
30407 | void *argp1 = 0 ; | |
30408 | int res1 = 0 ; | |
30409 | long val2 ; | |
30410 | int ecode2 = 0 ; | |
30411 | long val3 ; | |
30412 | int ecode3 = 0 ; | |
30413 | PyObject * obj0 = 0 ; | |
30414 | PyObject * obj1 = 0 ; | |
30415 | PyObject * obj2 = 0 ; | |
30416 | char * kwnames[] = { | |
30417 | (char *) "self",(char *) "start",(char *) "data", NULL | |
30418 | }; | |
30419 | ||
30420 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30421 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30422 | if (!SWIG_IsOK(res1)) { | |
30423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30424 | } | |
30425 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30426 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30427 | if (!SWIG_IsOK(ecode2)) { | |
30428 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'"); | |
30429 | } | |
30430 | arg2 = static_cast< long >(val2); | |
30431 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
30432 | if (!SWIG_IsOK(ecode3)) { | |
30433 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'"); | |
30434 | } | |
30435 | arg3 = static_cast< long >(val3); | |
30436 | { | |
30437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30438 | result = (long)(arg1)->FindItem(arg2,arg3); | |
30439 | wxPyEndAllowThreads(__tstate); | |
30440 | if (PyErr_Occurred()) SWIG_fail; | |
30441 | } | |
30442 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30443 | return resultobj; | |
30444 | fail: | |
30445 | return NULL; | |
30446 | } | |
30447 | ||
30448 | ||
30449 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30450 | PyObject *resultobj = 0; | |
30451 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30452 | long arg2 ; | |
30453 | wxPoint *arg3 = 0 ; | |
30454 | int arg4 ; | |
30455 | long result; | |
30456 | void *argp1 = 0 ; | |
30457 | int res1 = 0 ; | |
30458 | long val2 ; | |
30459 | int ecode2 = 0 ; | |
30460 | wxPoint temp3 ; | |
30461 | int val4 ; | |
30462 | int ecode4 = 0 ; | |
30463 | PyObject * obj0 = 0 ; | |
30464 | PyObject * obj1 = 0 ; | |
30465 | PyObject * obj2 = 0 ; | |
30466 | PyObject * obj3 = 0 ; | |
30467 | char * kwnames[] = { | |
30468 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
30469 | }; | |
30470 | ||
30471 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30472 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30473 | if (!SWIG_IsOK(res1)) { | |
30474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30475 | } | |
30476 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30477 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30478 | if (!SWIG_IsOK(ecode2)) { | |
30479 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'"); | |
30480 | } | |
30481 | arg2 = static_cast< long >(val2); | |
30482 | { | |
30483 | arg3 = &temp3; | |
30484 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30485 | } | |
30486 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30487 | if (!SWIG_IsOK(ecode4)) { | |
30488 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'"); | |
30489 | } | |
30490 | arg4 = static_cast< int >(val4); | |
30491 | { | |
30492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30493 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
30494 | wxPyEndAllowThreads(__tstate); | |
30495 | if (PyErr_Occurred()) SWIG_fail; | |
30496 | } | |
30497 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30498 | return resultobj; | |
30499 | fail: | |
30500 | return NULL; | |
30501 | } | |
30502 | ||
30503 | ||
30504 | SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30505 | PyObject *resultobj = 0; | |
30506 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30507 | wxPoint *arg2 = 0 ; | |
30508 | int *arg3 = 0 ; | |
30509 | long result; | |
30510 | void *argp1 = 0 ; | |
30511 | int res1 = 0 ; | |
30512 | wxPoint temp2 ; | |
30513 | int temp3 ; | |
30514 | int res3 = SWIG_TMPOBJ ; | |
30515 | PyObject * obj0 = 0 ; | |
30516 | PyObject * obj1 = 0 ; | |
30517 | char * kwnames[] = { | |
30518 | (char *) "self",(char *) "point", NULL | |
30519 | }; | |
30520 | ||
30521 | arg3 = &temp3; | |
30522 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
30523 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30524 | if (!SWIG_IsOK(res1)) { | |
30525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30526 | } | |
30527 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30528 | { | |
30529 | arg2 = &temp2; | |
30530 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30531 | } | |
30532 | { | |
30533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30534 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
30535 | wxPyEndAllowThreads(__tstate); | |
30536 | if (PyErr_Occurred()) SWIG_fail; | |
30537 | } | |
30538 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30539 | if (SWIG_IsTmpObj(res3)) { | |
30540 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
30541 | } else { | |
30542 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
30543 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
30544 | } | |
30545 | return resultobj; | |
30546 | fail: | |
30547 | return NULL; | |
30548 | } | |
30549 | ||
30550 | ||
30551 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30552 | PyObject *resultobj = 0; | |
30553 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30554 | wxListItem *arg2 = 0 ; | |
30555 | long result; | |
30556 | void *argp1 = 0 ; | |
30557 | int res1 = 0 ; | |
30558 | void *argp2 = 0 ; | |
30559 | int res2 = 0 ; | |
30560 | PyObject * obj0 = 0 ; | |
30561 | PyObject * obj1 = 0 ; | |
30562 | char * kwnames[] = { | |
30563 | (char *) "self",(char *) "info", NULL | |
30564 | }; | |
30565 | ||
30566 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
30567 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30568 | if (!SWIG_IsOK(res1)) { | |
30569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30570 | } | |
30571 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30572 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 ); | |
30573 | if (!SWIG_IsOK(res2)) { | |
30574 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
30575 | } | |
30576 | if (!argp2) { | |
30577 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
30578 | } | |
30579 | arg2 = reinterpret_cast< wxListItem * >(argp2); | |
30580 | { | |
30581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30582 | result = (long)(arg1)->InsertItem(*arg2); | |
30583 | wxPyEndAllowThreads(__tstate); | |
30584 | if (PyErr_Occurred()) SWIG_fail; | |
30585 | } | |
30586 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30587 | return resultobj; | |
30588 | fail: | |
30589 | return NULL; | |
30590 | } | |
30591 | ||
30592 | ||
30593 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30594 | PyObject *resultobj = 0; | |
30595 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30596 | long arg2 ; | |
30597 | wxString *arg3 = 0 ; | |
30598 | int arg4 = (int) -1 ; | |
30599 | long result; | |
30600 | void *argp1 = 0 ; | |
30601 | int res1 = 0 ; | |
30602 | long val2 ; | |
30603 | int ecode2 = 0 ; | |
30604 | bool temp3 = false ; | |
30605 | int val4 ; | |
30606 | int ecode4 = 0 ; | |
30607 | PyObject * obj0 = 0 ; | |
30608 | PyObject * obj1 = 0 ; | |
30609 | PyObject * obj2 = 0 ; | |
30610 | PyObject * obj3 = 0 ; | |
30611 | char * kwnames[] = { | |
30612 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
30613 | }; | |
30614 | ||
30615 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30616 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30617 | if (!SWIG_IsOK(res1)) { | |
30618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30619 | } | |
30620 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30621 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30622 | if (!SWIG_IsOK(ecode2)) { | |
30623 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'"); | |
30624 | } | |
30625 | arg2 = static_cast< long >(val2); | |
30626 | { | |
30627 | arg3 = wxString_in_helper(obj2); | |
30628 | if (arg3 == NULL) SWIG_fail; | |
30629 | temp3 = true; | |
30630 | } | |
30631 | if (obj3) { | |
30632 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30633 | if (!SWIG_IsOK(ecode4)) { | |
30634 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'"); | |
30635 | } | |
30636 | arg4 = static_cast< int >(val4); | |
30637 | } | |
30638 | { | |
30639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30640 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
30641 | wxPyEndAllowThreads(__tstate); | |
30642 | if (PyErr_Occurred()) SWIG_fail; | |
30643 | } | |
30644 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30645 | { | |
30646 | if (temp3) | |
30647 | delete arg3; | |
30648 | } | |
30649 | return resultobj; | |
30650 | fail: | |
30651 | { | |
30652 | if (temp3) | |
30653 | delete arg3; | |
30654 | } | |
30655 | return NULL; | |
30656 | } | |
30657 | ||
30658 | ||
30659 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30660 | PyObject *resultobj = 0; | |
30661 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30662 | long arg2 ; | |
30663 | int arg3 ; | |
30664 | long result; | |
30665 | void *argp1 = 0 ; | |
30666 | int res1 = 0 ; | |
30667 | long val2 ; | |
30668 | int ecode2 = 0 ; | |
30669 | int val3 ; | |
30670 | int ecode3 = 0 ; | |
30671 | PyObject * obj0 = 0 ; | |
30672 | PyObject * obj1 = 0 ; | |
30673 | PyObject * obj2 = 0 ; | |
30674 | char * kwnames[] = { | |
30675 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
30676 | }; | |
30677 | ||
30678 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30679 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30680 | if (!SWIG_IsOK(res1)) { | |
30681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30682 | } | |
30683 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30684 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30685 | if (!SWIG_IsOK(ecode2)) { | |
30686 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'"); | |
30687 | } | |
30688 | arg2 = static_cast< long >(val2); | |
30689 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30690 | if (!SWIG_IsOK(ecode3)) { | |
30691 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'"); | |
30692 | } | |
30693 | arg3 = static_cast< int >(val3); | |
30694 | { | |
30695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30696 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
30697 | wxPyEndAllowThreads(__tstate); | |
30698 | if (PyErr_Occurred()) SWIG_fail; | |
30699 | } | |
30700 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30701 | return resultobj; | |
30702 | fail: | |
30703 | return NULL; | |
30704 | } | |
30705 | ||
30706 | ||
30707 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30708 | PyObject *resultobj = 0; | |
30709 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30710 | long arg2 ; | |
30711 | wxString *arg3 = 0 ; | |
30712 | int arg4 ; | |
30713 | long result; | |
30714 | void *argp1 = 0 ; | |
30715 | int res1 = 0 ; | |
30716 | long val2 ; | |
30717 | int ecode2 = 0 ; | |
30718 | bool temp3 = false ; | |
30719 | int val4 ; | |
30720 | int ecode4 = 0 ; | |
30721 | PyObject * obj0 = 0 ; | |
30722 | PyObject * obj1 = 0 ; | |
30723 | PyObject * obj2 = 0 ; | |
30724 | PyObject * obj3 = 0 ; | |
30725 | char * kwnames[] = { | |
30726 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
30727 | }; | |
30728 | ||
30729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30731 | if (!SWIG_IsOK(res1)) { | |
30732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30733 | } | |
30734 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30735 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30736 | if (!SWIG_IsOK(ecode2)) { | |
30737 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'"); | |
30738 | } | |
30739 | arg2 = static_cast< long >(val2); | |
30740 | { | |
30741 | arg3 = wxString_in_helper(obj2); | |
30742 | if (arg3 == NULL) SWIG_fail; | |
30743 | temp3 = true; | |
30744 | } | |
30745 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30746 | if (!SWIG_IsOK(ecode4)) { | |
30747 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'"); | |
30748 | } | |
30749 | arg4 = static_cast< int >(val4); | |
30750 | { | |
30751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30752 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
30753 | wxPyEndAllowThreads(__tstate); | |
30754 | if (PyErr_Occurred()) SWIG_fail; | |
30755 | } | |
30756 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30757 | { | |
30758 | if (temp3) | |
30759 | delete arg3; | |
30760 | } | |
30761 | return resultobj; | |
30762 | fail: | |
30763 | { | |
30764 | if (temp3) | |
30765 | delete arg3; | |
30766 | } | |
30767 | return NULL; | |
30768 | } | |
30769 | ||
30770 | ||
30771 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30772 | PyObject *resultobj = 0; | |
30773 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30774 | long arg2 ; | |
30775 | wxListItem *arg3 = 0 ; | |
30776 | long result; | |
30777 | void *argp1 = 0 ; | |
30778 | int res1 = 0 ; | |
30779 | long val2 ; | |
30780 | int ecode2 = 0 ; | |
30781 | void *argp3 = 0 ; | |
30782 | int res3 = 0 ; | |
30783 | PyObject * obj0 = 0 ; | |
30784 | PyObject * obj1 = 0 ; | |
30785 | PyObject * obj2 = 0 ; | |
30786 | char * kwnames[] = { | |
30787 | (char *) "self",(char *) "col",(char *) "info", NULL | |
30788 | }; | |
30789 | ||
30790 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30791 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30792 | if (!SWIG_IsOK(res1)) { | |
30793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30794 | } | |
30795 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30796 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30797 | if (!SWIG_IsOK(ecode2)) { | |
30798 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'"); | |
30799 | } | |
30800 | arg2 = static_cast< long >(val2); | |
30801 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 ); | |
30802 | if (!SWIG_IsOK(res3)) { | |
30803 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
30804 | } | |
30805 | if (!argp3) { | |
30806 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
30807 | } | |
30808 | arg3 = reinterpret_cast< wxListItem * >(argp3); | |
30809 | { | |
30810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30811 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
30812 | wxPyEndAllowThreads(__tstate); | |
30813 | if (PyErr_Occurred()) SWIG_fail; | |
30814 | } | |
30815 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30816 | return resultobj; | |
30817 | fail: | |
30818 | return NULL; | |
30819 | } | |
30820 | ||
30821 | ||
30822 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30823 | PyObject *resultobj = 0; | |
30824 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30825 | long arg2 ; | |
30826 | wxString *arg3 = 0 ; | |
30827 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
30828 | int arg5 = (int) -1 ; | |
30829 | long result; | |
30830 | void *argp1 = 0 ; | |
30831 | int res1 = 0 ; | |
30832 | long val2 ; | |
30833 | int ecode2 = 0 ; | |
30834 | bool temp3 = false ; | |
30835 | int val4 ; | |
30836 | int ecode4 = 0 ; | |
30837 | int val5 ; | |
30838 | int ecode5 = 0 ; | |
30839 | PyObject * obj0 = 0 ; | |
30840 | PyObject * obj1 = 0 ; | |
30841 | PyObject * obj2 = 0 ; | |
30842 | PyObject * obj3 = 0 ; | |
30843 | PyObject * obj4 = 0 ; | |
30844 | char * kwnames[] = { | |
30845 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
30846 | }; | |
30847 | ||
30848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
30849 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30850 | if (!SWIG_IsOK(res1)) { | |
30851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30852 | } | |
30853 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30854 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30855 | if (!SWIG_IsOK(ecode2)) { | |
30856 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'"); | |
30857 | } | |
30858 | arg2 = static_cast< long >(val2); | |
30859 | { | |
30860 | arg3 = wxString_in_helper(obj2); | |
30861 | if (arg3 == NULL) SWIG_fail; | |
30862 | temp3 = true; | |
30863 | } | |
30864 | if (obj3) { | |
30865 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30866 | if (!SWIG_IsOK(ecode4)) { | |
30867 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'"); | |
30868 | } | |
30869 | arg4 = static_cast< int >(val4); | |
30870 | } | |
30871 | if (obj4) { | |
30872 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
30873 | if (!SWIG_IsOK(ecode5)) { | |
30874 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'"); | |
30875 | } | |
30876 | arg5 = static_cast< int >(val5); | |
30877 | } | |
30878 | { | |
30879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30880 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
30881 | wxPyEndAllowThreads(__tstate); | |
30882 | if (PyErr_Occurred()) SWIG_fail; | |
30883 | } | |
30884 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30885 | { | |
30886 | if (temp3) | |
30887 | delete arg3; | |
30888 | } | |
30889 | return resultobj; | |
30890 | fail: | |
30891 | { | |
30892 | if (temp3) | |
30893 | delete arg3; | |
30894 | } | |
30895 | return NULL; | |
30896 | } | |
30897 | ||
30898 | ||
30899 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30900 | PyObject *resultobj = 0; | |
30901 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30902 | long arg2 ; | |
30903 | void *argp1 = 0 ; | |
30904 | int res1 = 0 ; | |
30905 | long val2 ; | |
30906 | int ecode2 = 0 ; | |
30907 | PyObject * obj0 = 0 ; | |
30908 | PyObject * obj1 = 0 ; | |
30909 | char * kwnames[] = { | |
30910 | (char *) "self",(char *) "count", NULL | |
30911 | }; | |
30912 | ||
30913 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
30914 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30915 | if (!SWIG_IsOK(res1)) { | |
30916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30917 | } | |
30918 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30919 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30920 | if (!SWIG_IsOK(ecode2)) { | |
30921 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'"); | |
30922 | } | |
30923 | arg2 = static_cast< long >(val2); | |
30924 | { | |
30925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30926 | (arg1)->SetItemCount(arg2); | |
30927 | wxPyEndAllowThreads(__tstate); | |
30928 | if (PyErr_Occurred()) SWIG_fail; | |
30929 | } | |
30930 | resultobj = SWIG_Py_Void(); | |
30931 | return resultobj; | |
30932 | fail: | |
30933 | return NULL; | |
30934 | } | |
30935 | ||
30936 | ||
30937 | SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30938 | PyObject *resultobj = 0; | |
30939 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30940 | int arg2 ; | |
30941 | int arg3 ; | |
30942 | bool result; | |
30943 | void *argp1 = 0 ; | |
30944 | int res1 = 0 ; | |
30945 | int val2 ; | |
30946 | int ecode2 = 0 ; | |
30947 | int val3 ; | |
30948 | int ecode3 = 0 ; | |
30949 | PyObject * obj0 = 0 ; | |
30950 | PyObject * obj1 = 0 ; | |
30951 | PyObject * obj2 = 0 ; | |
30952 | char * kwnames[] = { | |
30953 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
30954 | }; | |
30955 | ||
30956 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30957 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30958 | if (!SWIG_IsOK(res1)) { | |
30959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30960 | } | |
30961 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30962 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30963 | if (!SWIG_IsOK(ecode2)) { | |
30964 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'"); | |
30965 | } | |
30966 | arg2 = static_cast< int >(val2); | |
30967 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30968 | if (!SWIG_IsOK(ecode3)) { | |
30969 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'"); | |
30970 | } | |
30971 | arg3 = static_cast< int >(val3); | |
30972 | { | |
30973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30974 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
30975 | wxPyEndAllowThreads(__tstate); | |
30976 | if (PyErr_Occurred()) SWIG_fail; | |
30977 | } | |
30978 | { | |
30979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30980 | } | |
30981 | return resultobj; | |
30982 | fail: | |
30983 | return NULL; | |
30984 | } | |
30985 | ||
30986 | ||
30987 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30988 | PyObject *resultobj = 0; | |
30989 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30990 | long arg2 ; | |
30991 | wxColour *arg3 = 0 ; | |
30992 | void *argp1 = 0 ; | |
30993 | int res1 = 0 ; | |
30994 | long val2 ; | |
30995 | int ecode2 = 0 ; | |
30996 | wxColour temp3 ; | |
30997 | PyObject * obj0 = 0 ; | |
30998 | PyObject * obj1 = 0 ; | |
30999 | PyObject * obj2 = 0 ; | |
31000 | char * kwnames[] = { | |
31001 | (char *) "self",(char *) "item",(char *) "col", NULL | |
31002 | }; | |
31003 | ||
31004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31005 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31006 | if (!SWIG_IsOK(res1)) { | |
31007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31008 | } | |
31009 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31010 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31011 | if (!SWIG_IsOK(ecode2)) { | |
31012 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'"); | |
31013 | } | |
31014 | arg2 = static_cast< long >(val2); | |
31015 | { | |
31016 | arg3 = &temp3; | |
31017 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31018 | } | |
31019 | { | |
31020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31021 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
31022 | wxPyEndAllowThreads(__tstate); | |
31023 | if (PyErr_Occurred()) SWIG_fail; | |
31024 | } | |
31025 | resultobj = SWIG_Py_Void(); | |
31026 | return resultobj; | |
31027 | fail: | |
31028 | return NULL; | |
31029 | } | |
31030 | ||
31031 | ||
31032 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31033 | PyObject *resultobj = 0; | |
31034 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31035 | long arg2 ; | |
31036 | wxColour result; | |
31037 | void *argp1 = 0 ; | |
31038 | int res1 = 0 ; | |
31039 | long val2 ; | |
31040 | int ecode2 = 0 ; | |
31041 | PyObject * obj0 = 0 ; | |
31042 | PyObject * obj1 = 0 ; | |
31043 | char * kwnames[] = { | |
31044 | (char *) "self",(char *) "item", NULL | |
31045 | }; | |
31046 | ||
31047 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
31048 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31049 | if (!SWIG_IsOK(res1)) { | |
31050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
31051 | } | |
31052 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31053 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31054 | if (!SWIG_IsOK(ecode2)) { | |
31055 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'"); | |
31056 | } | |
31057 | arg2 = static_cast< long >(val2); | |
31058 | { | |
31059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31060 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
31061 | wxPyEndAllowThreads(__tstate); | |
31062 | if (PyErr_Occurred()) SWIG_fail; | |
31063 | } | |
31064 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
31065 | return resultobj; | |
31066 | fail: | |
31067 | return NULL; | |
31068 | } | |
31069 | ||
31070 | ||
31071 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31072 | PyObject *resultobj = 0; | |
31073 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31074 | long arg2 ; | |
31075 | wxColour *arg3 = 0 ; | |
31076 | void *argp1 = 0 ; | |
31077 | int res1 = 0 ; | |
31078 | long val2 ; | |
31079 | int ecode2 = 0 ; | |
31080 | wxColour temp3 ; | |
31081 | PyObject * obj0 = 0 ; | |
31082 | PyObject * obj1 = 0 ; | |
31083 | PyObject * obj2 = 0 ; | |
31084 | char * kwnames[] = { | |
31085 | (char *) "self",(char *) "item",(char *) "col", NULL | |
31086 | }; | |
31087 | ||
31088 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31089 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31090 | if (!SWIG_IsOK(res1)) { | |
31091 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31092 | } | |
31093 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31094 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31095 | if (!SWIG_IsOK(ecode2)) { | |
31096 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'"); | |
31097 | } | |
31098 | arg2 = static_cast< long >(val2); | |
31099 | { | |
31100 | arg3 = &temp3; | |
31101 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31102 | } | |
31103 | { | |
31104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31105 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
31106 | wxPyEndAllowThreads(__tstate); | |
31107 | if (PyErr_Occurred()) SWIG_fail; | |
31108 | } | |
31109 | resultobj = SWIG_Py_Void(); | |
31110 | return resultobj; | |
31111 | fail: | |
31112 | return NULL; | |
31113 | } | |
31114 | ||
31115 | ||
31116 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31117 | PyObject *resultobj = 0; | |
31118 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31119 | long arg2 ; | |
31120 | wxColour result; | |
31121 | void *argp1 = 0 ; | |
31122 | int res1 = 0 ; | |
31123 | long val2 ; | |
31124 | int ecode2 = 0 ; | |
31125 | PyObject * obj0 = 0 ; | |
31126 | PyObject * obj1 = 0 ; | |
31127 | char * kwnames[] = { | |
31128 | (char *) "self",(char *) "item", NULL | |
31129 | }; | |
31130 | ||
31131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
31132 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31133 | if (!SWIG_IsOK(res1)) { | |
31134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
31135 | } | |
31136 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31137 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31138 | if (!SWIG_IsOK(ecode2)) { | |
31139 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'"); | |
31140 | } | |
31141 | arg2 = static_cast< long >(val2); | |
31142 | { | |
31143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31144 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
31145 | wxPyEndAllowThreads(__tstate); | |
31146 | if (PyErr_Occurred()) SWIG_fail; | |
31147 | } | |
31148 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
31149 | return resultobj; | |
31150 | fail: | |
31151 | return NULL; | |
31152 | } | |
31153 | ||
31154 | ||
31155 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31156 | PyObject *resultobj = 0; | |
31157 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31158 | long arg2 ; | |
31159 | wxFont *arg3 = 0 ; | |
31160 | void *argp1 = 0 ; | |
31161 | int res1 = 0 ; | |
31162 | long val2 ; | |
31163 | int ecode2 = 0 ; | |
31164 | void *argp3 = 0 ; | |
31165 | int res3 = 0 ; | |
31166 | PyObject * obj0 = 0 ; | |
31167 | PyObject * obj1 = 0 ; | |
31168 | PyObject * obj2 = 0 ; | |
31169 | char * kwnames[] = { | |
31170 | (char *) "self",(char *) "item",(char *) "f", NULL | |
31171 | }; | |
31172 | ||
31173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31175 | if (!SWIG_IsOK(res1)) { | |
31176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31177 | } | |
31178 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31179 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31180 | if (!SWIG_IsOK(ecode2)) { | |
31181 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'"); | |
31182 | } | |
31183 | arg2 = static_cast< long >(val2); | |
31184 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
31185 | if (!SWIG_IsOK(res3)) { | |
31186 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
31187 | } | |
31188 | if (!argp3) { | |
31189 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
31190 | } | |
31191 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
31192 | { | |
31193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31194 | (arg1)->SetItemFont(arg2,(wxFont const &)*arg3); | |
31195 | wxPyEndAllowThreads(__tstate); | |
31196 | if (PyErr_Occurred()) SWIG_fail; | |
31197 | } | |
31198 | resultobj = SWIG_Py_Void(); | |
31199 | return resultobj; | |
31200 | fail: | |
31201 | return NULL; | |
31202 | } | |
31203 | ||
31204 | ||
31205 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31206 | PyObject *resultobj = 0; | |
31207 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31208 | long arg2 ; | |
31209 | wxFont result; | |
31210 | void *argp1 = 0 ; | |
31211 | int res1 = 0 ; | |
31212 | long val2 ; | |
31213 | int ecode2 = 0 ; | |
31214 | PyObject * obj0 = 0 ; | |
31215 | PyObject * obj1 = 0 ; | |
31216 | char * kwnames[] = { | |
31217 | (char *) "self",(char *) "item", NULL | |
31218 | }; | |
31219 | ||
31220 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
31221 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31222 | if (!SWIG_IsOK(res1)) { | |
31223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
31224 | } | |
31225 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31226 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31227 | if (!SWIG_IsOK(ecode2)) { | |
31228 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'"); | |
31229 | } | |
31230 | arg2 = static_cast< long >(val2); | |
31231 | { | |
31232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31233 | result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2); | |
31234 | wxPyEndAllowThreads(__tstate); | |
31235 | if (PyErr_Occurred()) SWIG_fail; | |
31236 | } | |
31237 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
31238 | return resultobj; | |
31239 | fail: | |
31240 | return NULL; | |
31241 | } | |
31242 | ||
31243 | ||
31244 | SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31245 | PyObject *resultobj = 0; | |
31246 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31247 | PyObject *arg2 = (PyObject *) 0 ; | |
31248 | bool result; | |
31249 | void *argp1 = 0 ; | |
31250 | int res1 = 0 ; | |
31251 | PyObject * obj0 = 0 ; | |
31252 | PyObject * obj1 = 0 ; | |
31253 | char * kwnames[] = { | |
31254 | (char *) "self",(char *) "func", NULL | |
31255 | }; | |
31256 | ||
31257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail; | |
31258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31259 | if (!SWIG_IsOK(res1)) { | |
31260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31261 | } | |
31262 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31263 | arg2 = obj1; | |
31264 | { | |
31265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31266 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
31267 | wxPyEndAllowThreads(__tstate); | |
31268 | if (PyErr_Occurred()) SWIG_fail; | |
31269 | } | |
31270 | { | |
31271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31272 | } | |
31273 | return resultobj; | |
31274 | fail: | |
31275 | return NULL; | |
b411df4a RD |
31276 | } |
31277 | ||
31278 | ||
1bd55598 RD |
31279 | SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31280 | PyObject *resultobj = 0; | |
31281 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31282 | wxWindow *result = 0 ; | |
31283 | void *argp1 = 0 ; | |
31284 | int res1 = 0 ; | |
31285 | PyObject *swig_obj[1] ; | |
31286 | ||
31287 | if (!args) SWIG_fail; | |
31288 | swig_obj[0] = args; | |
31289 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31290 | if (!SWIG_IsOK(res1)) { | |
31291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31292 | } | |
31293 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31294 | { | |
31295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31296 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
31297 | wxPyEndAllowThreads(__tstate); | |
31298 | if (PyErr_Occurred()) SWIG_fail; | |
31299 | } | |
31300 | { | |
31301 | resultobj = wxPyMake_wxObject(result, 0); | |
31302 | } | |
31303 | return resultobj; | |
31304 | fail: | |
31305 | return NULL; | |
7993762b RD |
31306 | } |
31307 | ||
31308 | ||
1bd55598 RD |
31309 | SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31310 | PyObject *resultobj = 0; | |
31311 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
31312 | SwigValueWrapper<wxVisualAttributes > result; | |
31313 | int val1 ; | |
31314 | int ecode1 = 0 ; | |
31315 | PyObject * obj0 = 0 ; | |
31316 | char * kwnames[] = { | |
31317 | (char *) "variant", NULL | |
31318 | }; | |
31319 | ||
31320 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
31321 | if (obj0) { | |
31322 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31323 | if (!SWIG_IsOK(ecode1)) { | |
31324 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
31325 | } | |
31326 | arg1 = static_cast< wxWindowVariant >(val1); | |
31327 | } | |
31328 | { | |
31329 | if (!wxPyCheckForApp()) SWIG_fail; | |
31330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31331 | result = wxPyListCtrl::GetClassDefaultAttributes(arg1); | |
31332 | wxPyEndAllowThreads(__tstate); | |
31333 | if (PyErr_Occurred()) SWIG_fail; | |
31334 | } | |
31335 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
31336 | return resultobj; | |
31337 | fail: | |
31338 | return NULL; | |
31339 | } | |
31340 | ||
31341 | ||
31342 | SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31343 | PyObject *obj; | |
31344 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31345 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj)); | |
31346 | return SWIG_Py_Void(); | |
31347 | } | |
31348 | ||
31349 | SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31350 | return SWIG_Python_InitShadowInstance(args); | |
31351 | } | |
31352 | ||
31353 | SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31354 | PyObject *resultobj = 0; | |
31355 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31356 | int arg2 = (int) -1 ; | |
31357 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
31358 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
31359 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
31360 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
31361 | long arg5 = (long) wxLC_REPORT ; | |
31362 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
31363 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
31364 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
31365 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31366 | wxListView *result = 0 ; | |
31367 | void *argp1 = 0 ; | |
31368 | int res1 = 0 ; | |
31369 | int val2 ; | |
31370 | int ecode2 = 0 ; | |
31371 | wxPoint temp3 ; | |
31372 | wxSize temp4 ; | |
31373 | long val5 ; | |
31374 | int ecode5 = 0 ; | |
31375 | void *argp6 = 0 ; | |
31376 | int res6 = 0 ; | |
31377 | bool temp7 = false ; | |
31378 | PyObject * obj0 = 0 ; | |
31379 | PyObject * obj1 = 0 ; | |
31380 | PyObject * obj2 = 0 ; | |
31381 | PyObject * obj3 = 0 ; | |
31382 | PyObject * obj4 = 0 ; | |
31383 | PyObject * obj5 = 0 ; | |
31384 | PyObject * obj6 = 0 ; | |
31385 | char * kwnames[] = { | |
31386 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
31387 | }; | |
31388 | ||
31389 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
31390 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31391 | if (!SWIG_IsOK(res1)) { | |
31392 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
31393 | } | |
31394 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
31395 | if (obj1) { | |
31396 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31397 | if (!SWIG_IsOK(ecode2)) { | |
31398 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'"); | |
31399 | } | |
31400 | arg2 = static_cast< int >(val2); | |
31401 | } | |
31402 | if (obj2) { | |
b411df4a | 31403 | { |
1bd55598 RD |
31404 | arg3 = &temp3; |
31405 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
b411df4a | 31406 | } |
1bd55598 RD |
31407 | } |
31408 | if (obj3) { | |
31409 | { | |
31410 | arg4 = &temp4; | |
31411 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
b411df4a | 31412 | } |
1bd55598 RD |
31413 | } |
31414 | if (obj4) { | |
31415 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
31416 | if (!SWIG_IsOK(ecode5)) { | |
31417 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'"); | |
31418 | } | |
31419 | arg5 = static_cast< long >(val5); | |
31420 | } | |
31421 | if (obj5) { | |
31422 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
31423 | if (!SWIG_IsOK(res6)) { | |
31424 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
b411df4a | 31425 | } |
1bd55598 RD |
31426 | if (!argp6) { |
31427 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
b411df4a | 31428 | } |
1bd55598 RD |
31429 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
31430 | } | |
31431 | if (obj6) { | |
b411df4a | 31432 | { |
1bd55598 RD |
31433 | arg7 = wxString_in_helper(obj6); |
31434 | if (arg7 == NULL) SWIG_fail; | |
31435 | temp7 = true; | |
b411df4a | 31436 | } |
1bd55598 RD |
31437 | } |
31438 | { | |
31439 | if (!wxPyCheckForApp()) SWIG_fail; | |
31440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31441 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
31442 | wxPyEndAllowThreads(__tstate); | |
31443 | if (PyErr_Occurred()) SWIG_fail; | |
31444 | } | |
31445 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 ); | |
31446 | { | |
31447 | if (temp7) | |
31448 | delete arg7; | |
31449 | } | |
31450 | return resultobj; | |
31451 | fail: | |
31452 | { | |
31453 | if (temp7) | |
31454 | delete arg7; | |
31455 | } | |
31456 | return NULL; | |
b411df4a RD |
31457 | } |
31458 | ||
31459 | ||
1bd55598 RD |
31460 | SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31461 | PyObject *resultobj = 0; | |
31462 | wxListView *result = 0 ; | |
31463 | ||
31464 | if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail; | |
31465 | { | |
31466 | if (!wxPyCheckForApp()) SWIG_fail; | |
31467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31468 | result = (wxListView *)new wxListView(); | |
31469 | wxPyEndAllowThreads(__tstate); | |
31470 | if (PyErr_Occurred()) SWIG_fail; | |
31471 | } | |
31472 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 ); | |
31473 | return resultobj; | |
31474 | fail: | |
31475 | return NULL; | |
31476 | } | |
31477 | ||
31478 | ||
31479 | SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31480 | PyObject *resultobj = 0; | |
31481 | wxListView *arg1 = (wxListView *) 0 ; | |
31482 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31483 | int arg3 = (int) -1 ; | |
31484 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
31485 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31486 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31487 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31488 | long arg6 = (long) wxLC_REPORT ; | |
31489 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
31490 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
31491 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
31492 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
31493 | bool result; | |
31494 | void *argp1 = 0 ; | |
31495 | int res1 = 0 ; | |
31496 | void *argp2 = 0 ; | |
31497 | int res2 = 0 ; | |
31498 | int val3 ; | |
31499 | int ecode3 = 0 ; | |
31500 | wxPoint temp4 ; | |
31501 | wxSize temp5 ; | |
31502 | long val6 ; | |
31503 | int ecode6 = 0 ; | |
31504 | void *argp7 = 0 ; | |
31505 | int res7 = 0 ; | |
31506 | bool temp8 = false ; | |
31507 | PyObject * obj0 = 0 ; | |
31508 | PyObject * obj1 = 0 ; | |
31509 | PyObject * obj2 = 0 ; | |
31510 | PyObject * obj3 = 0 ; | |
31511 | PyObject * obj4 = 0 ; | |
31512 | PyObject * obj5 = 0 ; | |
31513 | PyObject * obj6 = 0 ; | |
31514 | PyObject * obj7 = 0 ; | |
31515 | char * kwnames[] = { | |
31516 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
31517 | }; | |
31518 | ||
31519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
31520 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31521 | if (!SWIG_IsOK(res1)) { | |
31522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'"); | |
31523 | } | |
31524 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31525 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31526 | if (!SWIG_IsOK(res2)) { | |
31527 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
31528 | } | |
31529 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
31530 | if (obj2) { | |
31531 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31532 | if (!SWIG_IsOK(ecode3)) { | |
31533 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'"); | |
31534 | } | |
31535 | arg3 = static_cast< int >(val3); | |
31536 | } | |
31537 | if (obj3) { | |
d55e5bfc | 31538 | { |
1bd55598 RD |
31539 | arg4 = &temp4; |
31540 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 31541 | } |
1bd55598 RD |
31542 | } |
31543 | if (obj4) { | |
36ed4f51 | 31544 | { |
1bd55598 RD |
31545 | arg5 = &temp5; |
31546 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 31547 | } |
1bd55598 RD |
31548 | } |
31549 | if (obj5) { | |
31550 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
31551 | if (!SWIG_IsOK(ecode6)) { | |
31552 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'"); | |
31553 | } | |
31554 | arg6 = static_cast< long >(val6); | |
31555 | } | |
31556 | if (obj6) { | |
31557 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
31558 | if (!SWIG_IsOK(res7)) { | |
31559 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 31560 | } |
1bd55598 RD |
31561 | if (!argp7) { |
31562 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
31563 | } | |
31564 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
31565 | } | |
31566 | if (obj7) { | |
d55e5bfc | 31567 | { |
1bd55598 RD |
31568 | arg8 = wxString_in_helper(obj7); |
31569 | if (arg8 == NULL) SWIG_fail; | |
31570 | temp8 = true; | |
d55e5bfc | 31571 | } |
1bd55598 RD |
31572 | } |
31573 | { | |
31574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31575 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
31576 | wxPyEndAllowThreads(__tstate); | |
31577 | if (PyErr_Occurred()) SWIG_fail; | |
31578 | } | |
31579 | { | |
31580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31581 | } | |
31582 | { | |
31583 | if (temp8) | |
31584 | delete arg8; | |
31585 | } | |
31586 | return resultobj; | |
31587 | fail: | |
31588 | { | |
31589 | if (temp8) | |
31590 | delete arg8; | |
31591 | } | |
31592 | return NULL; | |
31593 | } | |
31594 | ||
31595 | ||
31596 | SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31597 | PyObject *resultobj = 0; | |
31598 | wxListView *arg1 = (wxListView *) 0 ; | |
31599 | long arg2 ; | |
31600 | bool arg3 = (bool) true ; | |
31601 | void *argp1 = 0 ; | |
31602 | int res1 = 0 ; | |
31603 | long val2 ; | |
31604 | int ecode2 = 0 ; | |
31605 | bool val3 ; | |
31606 | int ecode3 = 0 ; | |
31607 | PyObject * obj0 = 0 ; | |
31608 | PyObject * obj1 = 0 ; | |
31609 | PyObject * obj2 = 0 ; | |
31610 | char * kwnames[] = { | |
31611 | (char *) "self",(char *) "n",(char *) "on", NULL | |
31612 | }; | |
31613 | ||
31614 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31615 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31616 | if (!SWIG_IsOK(res1)) { | |
31617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'"); | |
31618 | } | |
31619 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31620 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31621 | if (!SWIG_IsOK(ecode2)) { | |
31622 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'"); | |
31623 | } | |
31624 | arg2 = static_cast< long >(val2); | |
31625 | if (obj2) { | |
31626 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
31627 | if (!SWIG_IsOK(ecode3)) { | |
31628 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'"); | |
31629 | } | |
31630 | arg3 = static_cast< bool >(val3); | |
31631 | } | |
31632 | { | |
31633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31634 | (arg1)->Select(arg2,arg3); | |
31635 | wxPyEndAllowThreads(__tstate); | |
31636 | if (PyErr_Occurred()) SWIG_fail; | |
31637 | } | |
31638 | resultobj = SWIG_Py_Void(); | |
31639 | return resultobj; | |
31640 | fail: | |
31641 | return NULL; | |
31642 | } | |
31643 | ||
31644 | ||
31645 | SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31646 | PyObject *resultobj = 0; | |
31647 | wxListView *arg1 = (wxListView *) 0 ; | |
31648 | long arg2 ; | |
31649 | void *argp1 = 0 ; | |
31650 | int res1 = 0 ; | |
31651 | long val2 ; | |
31652 | int ecode2 = 0 ; | |
31653 | PyObject * obj0 = 0 ; | |
31654 | PyObject * obj1 = 0 ; | |
31655 | char * kwnames[] = { | |
31656 | (char *) "self",(char *) "index", NULL | |
31657 | }; | |
31658 | ||
31659 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail; | |
31660 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31661 | if (!SWIG_IsOK(res1)) { | |
31662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'"); | |
31663 | } | |
31664 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31665 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31666 | if (!SWIG_IsOK(ecode2)) { | |
31667 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'"); | |
31668 | } | |
31669 | arg2 = static_cast< long >(val2); | |
31670 | { | |
31671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31672 | (arg1)->Focus(arg2); | |
31673 | wxPyEndAllowThreads(__tstate); | |
31674 | if (PyErr_Occurred()) SWIG_fail; | |
31675 | } | |
31676 | resultobj = SWIG_Py_Void(); | |
31677 | return resultobj; | |
31678 | fail: | |
31679 | return NULL; | |
d55e5bfc RD |
31680 | } |
31681 | ||
31682 | ||
1bd55598 RD |
31683 | SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31684 | PyObject *resultobj = 0; | |
31685 | wxListView *arg1 = (wxListView *) 0 ; | |
31686 | long result; | |
31687 | void *argp1 = 0 ; | |
31688 | int res1 = 0 ; | |
31689 | PyObject *swig_obj[1] ; | |
31690 | ||
31691 | if (!args) SWIG_fail; | |
31692 | swig_obj[0] = args; | |
31693 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31694 | if (!SWIG_IsOK(res1)) { | |
31695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
31696 | } | |
31697 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31698 | { | |
31699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31700 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
31701 | wxPyEndAllowThreads(__tstate); | |
31702 | if (PyErr_Occurred()) SWIG_fail; | |
31703 | } | |
31704 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31705 | return resultobj; | |
31706 | fail: | |
31707 | return NULL; | |
31708 | } | |
31709 | ||
31710 | ||
31711 | SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31712 | PyObject *resultobj = 0; | |
31713 | wxListView *arg1 = (wxListView *) 0 ; | |
31714 | long arg2 ; | |
31715 | long result; | |
31716 | void *argp1 = 0 ; | |
31717 | int res1 = 0 ; | |
31718 | long val2 ; | |
31719 | int ecode2 = 0 ; | |
31720 | PyObject * obj0 = 0 ; | |
31721 | PyObject * obj1 = 0 ; | |
31722 | char * kwnames[] = { | |
31723 | (char *) "self",(char *) "item", NULL | |
31724 | }; | |
31725 | ||
31726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
31727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31728 | if (!SWIG_IsOK(res1)) { | |
31729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
31730 | } | |
31731 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31732 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31733 | if (!SWIG_IsOK(ecode2)) { | |
31734 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'"); | |
31735 | } | |
31736 | arg2 = static_cast< long >(val2); | |
31737 | { | |
31738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31739 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
31740 | wxPyEndAllowThreads(__tstate); | |
31741 | if (PyErr_Occurred()) SWIG_fail; | |
31742 | } | |
31743 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31744 | return resultobj; | |
31745 | fail: | |
31746 | return NULL; | |
d55e5bfc RD |
31747 | } |
31748 | ||
31749 | ||
1bd55598 RD |
31750 | SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31751 | PyObject *resultobj = 0; | |
31752 | wxListView *arg1 = (wxListView *) 0 ; | |
31753 | long result; | |
31754 | void *argp1 = 0 ; | |
31755 | int res1 = 0 ; | |
31756 | PyObject *swig_obj[1] ; | |
31757 | ||
31758 | if (!args) SWIG_fail; | |
31759 | swig_obj[0] = args; | |
31760 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31761 | if (!SWIG_IsOK(res1)) { | |
31762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
31763 | } | |
31764 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31765 | { | |
31766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31767 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
31768 | wxPyEndAllowThreads(__tstate); | |
31769 | if (PyErr_Occurred()) SWIG_fail; | |
31770 | } | |
31771 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31772 | return resultobj; | |
31773 | fail: | |
31774 | return NULL; | |
31775 | } | |
31776 | ||
31777 | ||
31778 | SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31779 | PyObject *resultobj = 0; | |
31780 | wxListView *arg1 = (wxListView *) 0 ; | |
31781 | long arg2 ; | |
31782 | bool result; | |
31783 | void *argp1 = 0 ; | |
31784 | int res1 = 0 ; | |
31785 | long val2 ; | |
31786 | int ecode2 = 0 ; | |
31787 | PyObject * obj0 = 0 ; | |
31788 | PyObject * obj1 = 0 ; | |
31789 | char * kwnames[] = { | |
31790 | (char *) "self",(char *) "index", NULL | |
31791 | }; | |
31792 | ||
31793 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
31794 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31795 | if (!SWIG_IsOK(res1)) { | |
31796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'"); | |
31797 | } | |
31798 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31799 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31800 | if (!SWIG_IsOK(ecode2)) { | |
31801 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'"); | |
31802 | } | |
31803 | arg2 = static_cast< long >(val2); | |
31804 | { | |
31805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31806 | result = (bool)(arg1)->IsSelected(arg2); | |
31807 | wxPyEndAllowThreads(__tstate); | |
31808 | if (PyErr_Occurred()) SWIG_fail; | |
31809 | } | |
31810 | { | |
31811 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31812 | } | |
31813 | return resultobj; | |
31814 | fail: | |
31815 | return NULL; | |
31816 | } | |
31817 | ||
31818 | ||
31819 | SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31820 | PyObject *resultobj = 0; | |
31821 | wxListView *arg1 = (wxListView *) 0 ; | |
31822 | int arg2 ; | |
31823 | int arg3 ; | |
31824 | void *argp1 = 0 ; | |
31825 | int res1 = 0 ; | |
31826 | int val2 ; | |
31827 | int ecode2 = 0 ; | |
31828 | int val3 ; | |
31829 | int ecode3 = 0 ; | |
31830 | PyObject * obj0 = 0 ; | |
31831 | PyObject * obj1 = 0 ; | |
31832 | PyObject * obj2 = 0 ; | |
31833 | char * kwnames[] = { | |
31834 | (char *) "self",(char *) "col",(char *) "image", NULL | |
31835 | }; | |
31836 | ||
31837 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31839 | if (!SWIG_IsOK(res1)) { | |
31840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'"); | |
31841 | } | |
31842 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31843 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31844 | if (!SWIG_IsOK(ecode2)) { | |
31845 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'"); | |
31846 | } | |
31847 | arg2 = static_cast< int >(val2); | |
31848 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31849 | if (!SWIG_IsOK(ecode3)) { | |
31850 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'"); | |
31851 | } | |
31852 | arg3 = static_cast< int >(val3); | |
31853 | { | |
31854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31855 | (arg1)->SetColumnImage(arg2,arg3); | |
31856 | wxPyEndAllowThreads(__tstate); | |
31857 | if (PyErr_Occurred()) SWIG_fail; | |
31858 | } | |
31859 | resultobj = SWIG_Py_Void(); | |
31860 | return resultobj; | |
31861 | fail: | |
31862 | return NULL; | |
31863 | } | |
31864 | ||
31865 | ||
31866 | SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31867 | PyObject *resultobj = 0; | |
31868 | wxListView *arg1 = (wxListView *) 0 ; | |
31869 | int arg2 ; | |
31870 | void *argp1 = 0 ; | |
31871 | int res1 = 0 ; | |
31872 | int val2 ; | |
31873 | int ecode2 = 0 ; | |
31874 | PyObject * obj0 = 0 ; | |
31875 | PyObject * obj1 = 0 ; | |
31876 | char * kwnames[] = { | |
31877 | (char *) "self",(char *) "col", NULL | |
31878 | }; | |
31879 | ||
31880 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
31881 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31882 | if (!SWIG_IsOK(res1)) { | |
31883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'"); | |
31884 | } | |
31885 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31886 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31887 | if (!SWIG_IsOK(ecode2)) { | |
31888 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'"); | |
31889 | } | |
31890 | arg2 = static_cast< int >(val2); | |
31891 | { | |
31892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31893 | (arg1)->ClearColumnImage(arg2); | |
31894 | wxPyEndAllowThreads(__tstate); | |
31895 | if (PyErr_Occurred()) SWIG_fail; | |
31896 | } | |
31897 | resultobj = SWIG_Py_Void(); | |
31898 | return resultobj; | |
31899 | fail: | |
31900 | return NULL; | |
d55e5bfc RD |
31901 | } |
31902 | ||
31903 | ||
1bd55598 RD |
31904 | SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31905 | PyObject *obj; | |
31906 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31907 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj)); | |
31908 | return SWIG_Py_Void(); | |
d55e5bfc RD |
31909 | } |
31910 | ||
1bd55598 RD |
31911 | SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31912 | return SWIG_Python_InitShadowInstance(args); | |
31913 | } | |
d55e5bfc | 31914 | |
1bd55598 RD |
31915 | SWIGINTERN int TreeCtrlNameStr_set(PyObject *) { |
31916 | SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only."); | |
31917 | return 1; | |
d55e5bfc RD |
31918 | } |
31919 | ||
31920 | ||
1bd55598 RD |
31921 | SWIGINTERN PyObject *TreeCtrlNameStr_get(void) { |
31922 | PyObject *pyobj = 0; | |
31923 | ||
31924 | { | |
31925 | #if wxUSE_UNICODE | |
31926 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
31927 | #else | |
31928 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
31929 | #endif | |
31930 | } | |
31931 | return pyobj; | |
d55e5bfc RD |
31932 | } |
31933 | ||
31934 | ||
1bd55598 RD |
31935 | SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31936 | PyObject *resultobj = 0; | |
31937 | wxTreeItemId *result = 0 ; | |
31938 | ||
31939 | if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail; | |
31940 | { | |
31941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31942 | result = (wxTreeItemId *)new wxTreeItemId(); | |
31943 | wxPyEndAllowThreads(__tstate); | |
31944 | if (PyErr_Occurred()) SWIG_fail; | |
31945 | } | |
31946 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 ); | |
31947 | return resultobj; | |
31948 | fail: | |
31949 | return NULL; | |
d55e5bfc RD |
31950 | } |
31951 | ||
31952 | ||
1bd55598 RD |
31953 | SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31954 | PyObject *resultobj = 0; | |
31955 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
31956 | void *argp1 = 0 ; | |
31957 | int res1 = 0 ; | |
31958 | PyObject *swig_obj[1] ; | |
31959 | ||
31960 | if (!args) SWIG_fail; | |
31961 | swig_obj[0] = args; | |
31962 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 ); | |
31963 | if (!SWIG_IsOK(res1)) { | |
31964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
31965 | } | |
31966 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
31967 | { | |
31968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31969 | delete arg1; | |
d55e5bfc | 31970 | |
1bd55598 RD |
31971 | wxPyEndAllowThreads(__tstate); |
31972 | if (PyErr_Occurred()) SWIG_fail; | |
31973 | } | |
31974 | resultobj = SWIG_Py_Void(); | |
31975 | return resultobj; | |
31976 | fail: | |
31977 | return NULL; | |
d55e5bfc RD |
31978 | } |
31979 | ||
31980 | ||
1bd55598 RD |
31981 | SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31982 | PyObject *resultobj = 0; | |
31983 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
31984 | bool result; | |
31985 | void *argp1 = 0 ; | |
31986 | int res1 = 0 ; | |
31987 | PyObject *swig_obj[1] ; | |
31988 | ||
31989 | if (!args) SWIG_fail; | |
31990 | swig_obj[0] = args; | |
31991 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
31992 | if (!SWIG_IsOK(res1)) { | |
31993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'"); | |
31994 | } | |
31995 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
31996 | { | |
31997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31998 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
31999 | wxPyEndAllowThreads(__tstate); | |
32000 | if (PyErr_Occurred()) SWIG_fail; | |
32001 | } | |
32002 | { | |
32003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32004 | } | |
32005 | return resultobj; | |
32006 | fail: | |
32007 | return NULL; | |
32008 | } | |
32009 | ||
32010 | ||
32011 | SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32012 | PyObject *resultobj = 0; | |
32013 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32014 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
32015 | bool result; | |
32016 | void *argp1 = 0 ; | |
32017 | int res1 = 0 ; | |
32018 | void *argp2 = 0 ; | |
32019 | int res2 = 0 ; | |
32020 | PyObject * obj0 = 0 ; | |
32021 | PyObject * obj1 = 0 ; | |
32022 | char * kwnames[] = { | |
32023 | (char *) "self",(char *) "other", NULL | |
32024 | }; | |
32025 | ||
32026 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
32027 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32028 | if (!SWIG_IsOK(res1)) { | |
32029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32030 | } | |
32031 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32032 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32033 | if (!SWIG_IsOK(res2)) { | |
32034 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'"); | |
32035 | } | |
32036 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32037 | { | |
32038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32039 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
32040 | wxPyEndAllowThreads(__tstate); | |
32041 | if (PyErr_Occurred()) SWIG_fail; | |
32042 | } | |
32043 | { | |
32044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32045 | } | |
32046 | return resultobj; | |
32047 | fail: | |
32048 | return NULL; | |
32049 | } | |
32050 | ||
32051 | ||
32052 | SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32053 | PyObject *resultobj = 0; | |
32054 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32055 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
32056 | bool result; | |
32057 | void *argp1 = 0 ; | |
32058 | int res1 = 0 ; | |
32059 | void *argp2 = 0 ; | |
32060 | int res2 = 0 ; | |
32061 | PyObject * obj0 = 0 ; | |
32062 | PyObject * obj1 = 0 ; | |
32063 | char * kwnames[] = { | |
32064 | (char *) "self",(char *) "other", NULL | |
32065 | }; | |
32066 | ||
32067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
32068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32069 | if (!SWIG_IsOK(res1)) { | |
32070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32071 | } | |
32072 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32073 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32074 | if (!SWIG_IsOK(res2)) { | |
32075 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'"); | |
32076 | } | |
32077 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32078 | { | |
32079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32080 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
32081 | wxPyEndAllowThreads(__tstate); | |
32082 | if (PyErr_Occurred()) SWIG_fail; | |
32083 | } | |
32084 | { | |
32085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32086 | } | |
32087 | return resultobj; | |
32088 | fail: | |
32089 | return NULL; | |
d55e5bfc RD |
32090 | } |
32091 | ||
32092 | ||
1bd55598 RD |
32093 | SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32094 | PyObject *resultobj = 0; | |
32095 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32096 | void *arg2 = (void *) 0 ; | |
32097 | void *argp1 = 0 ; | |
32098 | int res1 = 0 ; | |
32099 | int res2 ; | |
32100 | PyObject *swig_obj[2] ; | |
32101 | ||
32102 | if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail; | |
32103 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32104 | if (!SWIG_IsOK(res1)) { | |
32105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32106 | } | |
32107 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32108 | res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); | |
32109 | if (!SWIG_IsOK(res2)) { | |
32110 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'"); | |
32111 | } | |
32112 | if (arg1) (arg1)->m_pItem = arg2; | |
32113 | ||
32114 | resultobj = SWIG_Py_Void(); | |
32115 | return resultobj; | |
32116 | fail: | |
32117 | return NULL; | |
d55e5bfc RD |
32118 | } |
32119 | ||
32120 | ||
1bd55598 RD |
32121 | SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32122 | PyObject *resultobj = 0; | |
32123 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32124 | void *result = 0 ; | |
32125 | void *argp1 = 0 ; | |
32126 | int res1 = 0 ; | |
32127 | PyObject *swig_obj[1] ; | |
32128 | ||
32129 | if (!args) SWIG_fail; | |
32130 | swig_obj[0] = args; | |
32131 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32132 | if (!SWIG_IsOK(res1)) { | |
32133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32134 | } | |
32135 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32136 | result = (void *) ((arg1)->m_pItem); | |
32137 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
32138 | return resultobj; | |
32139 | fail: | |
32140 | return NULL; | |
d55e5bfc RD |
32141 | } |
32142 | ||
32143 | ||
1bd55598 RD |
32144 | SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32145 | PyObject *obj; | |
32146 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32147 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj)); | |
32148 | return SWIG_Py_Void(); | |
d55e5bfc RD |
32149 | } |
32150 | ||
1bd55598 RD |
32151 | SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32152 | return SWIG_Python_InitShadowInstance(args); | |
32153 | } | |
d55e5bfc | 32154 | |
1bd55598 RD |
32155 | SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32156 | PyObject *resultobj = 0; | |
32157 | PyObject *arg1 = (PyObject *) NULL ; | |
32158 | wxPyTreeItemData *result = 0 ; | |
32159 | PyObject * obj0 = 0 ; | |
32160 | char * kwnames[] = { | |
32161 | (char *) "obj", NULL | |
32162 | }; | |
32163 | ||
32164 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail; | |
32165 | if (obj0) { | |
32166 | arg1 = obj0; | |
32167 | } | |
32168 | { | |
32169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32170 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
32171 | wxPyEndAllowThreads(__tstate); | |
32172 | if (PyErr_Occurred()) SWIG_fail; | |
32173 | } | |
32174 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 ); | |
32175 | return resultobj; | |
32176 | fail: | |
32177 | return NULL; | |
d55e5bfc RD |
32178 | } |
32179 | ||
32180 | ||
1bd55598 RD |
32181 | SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32182 | PyObject *resultobj = 0; | |
32183 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32184 | void *argp1 = 0 ; | |
32185 | int res1 = 0 ; | |
32186 | PyObject *swig_obj[1] ; | |
32187 | ||
32188 | if (!args) SWIG_fail; | |
32189 | swig_obj[0] = args; | |
32190 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
32191 | if (!SWIG_IsOK(res1)) { | |
32192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32193 | } | |
32194 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32195 | { | |
32196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32197 | delete arg1; | |
d55e5bfc | 32198 | |
1bd55598 RD |
32199 | wxPyEndAllowThreads(__tstate); |
32200 | if (PyErr_Occurred()) SWIG_fail; | |
32201 | } | |
32202 | resultobj = SWIG_Py_Void(); | |
32203 | return resultobj; | |
32204 | fail: | |
32205 | return NULL; | |
d55e5bfc RD |
32206 | } |
32207 | ||
32208 | ||
1bd55598 RD |
32209 | SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32210 | PyObject *resultobj = 0; | |
32211 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32212 | PyObject *result = 0 ; | |
32213 | void *argp1 = 0 ; | |
32214 | int res1 = 0 ; | |
32215 | PyObject *swig_obj[1] ; | |
32216 | ||
32217 | if (!args) SWIG_fail; | |
32218 | swig_obj[0] = args; | |
32219 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
32220 | if (!SWIG_IsOK(res1)) { | |
32221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32222 | } | |
32223 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32224 | { | |
32225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32226 | result = (PyObject *)(arg1)->GetData(); | |
32227 | wxPyEndAllowThreads(__tstate); | |
32228 | if (PyErr_Occurred()) SWIG_fail; | |
32229 | } | |
32230 | resultobj = result; | |
32231 | return resultobj; | |
32232 | fail: | |
32233 | return NULL; | |
32234 | } | |
32235 | ||
32236 | ||
32237 | SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32238 | PyObject *resultobj = 0; | |
32239 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32240 | PyObject *arg2 = (PyObject *) 0 ; | |
32241 | void *argp1 = 0 ; | |
32242 | int res1 = 0 ; | |
32243 | PyObject * obj0 = 0 ; | |
32244 | PyObject * obj1 = 0 ; | |
32245 | char * kwnames[] = { | |
32246 | (char *) "self",(char *) "obj", NULL | |
32247 | }; | |
32248 | ||
32249 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
32250 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
32251 | if (!SWIG_IsOK(res1)) { | |
32252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32253 | } | |
32254 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32255 | arg2 = obj1; | |
32256 | { | |
32257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32258 | (arg1)->SetData(arg2); | |
32259 | wxPyEndAllowThreads(__tstate); | |
32260 | if (PyErr_Occurred()) SWIG_fail; | |
32261 | } | |
32262 | resultobj = SWIG_Py_Void(); | |
32263 | return resultobj; | |
32264 | fail: | |
32265 | return NULL; | |
d55e5bfc RD |
32266 | } |
32267 | ||
32268 | ||
1bd55598 RD |
32269 | SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32270 | PyObject *resultobj = 0; | |
32271 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32272 | wxTreeItemId *result = 0 ; | |
32273 | void *argp1 = 0 ; | |
32274 | int res1 = 0 ; | |
32275 | PyObject *swig_obj[1] ; | |
32276 | ||
32277 | if (!args) SWIG_fail; | |
32278 | swig_obj[0] = args; | |
32279 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
32280 | if (!SWIG_IsOK(res1)) { | |
32281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32282 | } | |
32283 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32284 | { | |
32285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 32286 | { |
1bd55598 RD |
32287 | wxTreeItemId const &_result_ref = (arg1)->GetId(); |
32288 | result = (wxTreeItemId *) &_result_ref; | |
d55e5bfc | 32289 | } |
1bd55598 RD |
32290 | wxPyEndAllowThreads(__tstate); |
32291 | if (PyErr_Occurred()) SWIG_fail; | |
32292 | } | |
32293 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32294 | return resultobj; | |
32295 | fail: | |
32296 | return NULL; | |
32297 | } | |
32298 | ||
32299 | ||
32300 | SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32301 | PyObject *resultobj = 0; | |
32302 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32303 | wxTreeItemId *arg2 = 0 ; | |
32304 | void *argp1 = 0 ; | |
32305 | int res1 = 0 ; | |
32306 | void *argp2 = 0 ; | |
32307 | int res2 = 0 ; | |
32308 | PyObject * obj0 = 0 ; | |
32309 | PyObject * obj1 = 0 ; | |
32310 | char * kwnames[] = { | |
32311 | (char *) "self",(char *) "id", NULL | |
32312 | }; | |
32313 | ||
32314 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
32315 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
32316 | if (!SWIG_IsOK(res1)) { | |
32317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32318 | } | |
32319 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32320 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
32321 | if (!SWIG_IsOK(res2)) { | |
32322 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
32323 | } | |
32324 | if (!argp2) { | |
32325 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
32326 | } | |
32327 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32328 | { | |
32329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32330 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
32331 | wxPyEndAllowThreads(__tstate); | |
32332 | if (PyErr_Occurred()) SWIG_fail; | |
32333 | } | |
32334 | resultobj = SWIG_Py_Void(); | |
32335 | return resultobj; | |
32336 | fail: | |
32337 | return NULL; | |
d55e5bfc RD |
32338 | } |
32339 | ||
32340 | ||
1bd55598 RD |
32341 | SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32342 | PyObject *resultobj = 0; | |
32343 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32344 | void *argp1 = 0 ; | |
32345 | int res1 = 0 ; | |
32346 | PyObject *swig_obj[1] ; | |
32347 | ||
32348 | if (!args) SWIG_fail; | |
32349 | swig_obj[0] = args; | |
32350 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
32351 | if (!SWIG_IsOK(res1)) { | |
32352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32353 | } | |
32354 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32355 | { | |
32356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32357 | wxPyTreeItemData_Destroy(arg1); | |
32358 | wxPyEndAllowThreads(__tstate); | |
32359 | if (PyErr_Occurred()) SWIG_fail; | |
32360 | } | |
32361 | resultobj = SWIG_Py_Void(); | |
32362 | return resultobj; | |
32363 | fail: | |
32364 | return NULL; | |
d55e5bfc RD |
32365 | } |
32366 | ||
32367 | ||
1bd55598 RD |
32368 | SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32369 | PyObject *obj; | |
32370 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32371 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj)); | |
32372 | return SWIG_Py_Void(); | |
d55e5bfc RD |
32373 | } |
32374 | ||
1bd55598 RD |
32375 | SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32376 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
32377 | } |
32378 | ||
1bd55598 RD |
32379 | SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32380 | PyObject *resultobj = 0; | |
32381 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
32382 | int arg2 = (int) 0 ; | |
32383 | wxTreeEvent *result = 0 ; | |
32384 | int val1 ; | |
32385 | int ecode1 = 0 ; | |
32386 | int val2 ; | |
32387 | int ecode2 = 0 ; | |
32388 | PyObject * obj0 = 0 ; | |
32389 | PyObject * obj1 = 0 ; | |
32390 | char * kwnames[] = { | |
32391 | (char *) "commandType",(char *) "id", NULL | |
32392 | }; | |
32393 | ||
32394 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
32395 | if (obj0) { | |
32396 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32397 | if (!SWIG_IsOK(ecode1)) { | |
32398 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
32399 | } | |
32400 | arg1 = static_cast< wxEventType >(val1); | |
32401 | } | |
32402 | if (obj1) { | |
32403 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32404 | if (!SWIG_IsOK(ecode2)) { | |
32405 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'"); | |
32406 | } | |
32407 | arg2 = static_cast< int >(val2); | |
32408 | } | |
32409 | { | |
32410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32411 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
32412 | wxPyEndAllowThreads(__tstate); | |
32413 | if (PyErr_Occurred()) SWIG_fail; | |
32414 | } | |
32415 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 ); | |
32416 | return resultobj; | |
32417 | fail: | |
32418 | return NULL; | |
d55e5bfc RD |
32419 | } |
32420 | ||
32421 | ||
1bd55598 RD |
32422 | SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32423 | PyObject *resultobj = 0; | |
32424 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32425 | wxTreeItemId result; | |
32426 | void *argp1 = 0 ; | |
32427 | int res1 = 0 ; | |
32428 | PyObject *swig_obj[1] ; | |
32429 | ||
32430 | if (!args) SWIG_fail; | |
32431 | swig_obj[0] = args; | |
32432 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32433 | if (!SWIG_IsOK(res1)) { | |
32434 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
32435 | } | |
32436 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32437 | { | |
32438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32439 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
32440 | wxPyEndAllowThreads(__tstate); | |
32441 | if (PyErr_Occurred()) SWIG_fail; | |
32442 | } | |
32443 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
32444 | return resultobj; | |
32445 | fail: | |
32446 | return NULL; | |
32447 | } | |
32448 | ||
32449 | ||
32450 | SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32451 | PyObject *resultobj = 0; | |
32452 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32453 | wxTreeItemId *arg2 = 0 ; | |
32454 | void *argp1 = 0 ; | |
32455 | int res1 = 0 ; | |
32456 | void *argp2 = 0 ; | |
32457 | int res2 = 0 ; | |
32458 | PyObject * obj0 = 0 ; | |
32459 | PyObject * obj1 = 0 ; | |
32460 | char * kwnames[] = { | |
32461 | (char *) "self",(char *) "item", NULL | |
32462 | }; | |
32463 | ||
32464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
32465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32466 | if (!SWIG_IsOK(res1)) { | |
32467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
32468 | } | |
32469 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32470 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
32471 | if (!SWIG_IsOK(res2)) { | |
32472 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
32473 | } | |
32474 | if (!argp2) { | |
32475 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
32476 | } | |
32477 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32478 | { | |
32479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32480 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
32481 | wxPyEndAllowThreads(__tstate); | |
32482 | if (PyErr_Occurred()) SWIG_fail; | |
32483 | } | |
32484 | resultobj = SWIG_Py_Void(); | |
32485 | return resultobj; | |
32486 | fail: | |
32487 | return NULL; | |
d55e5bfc RD |
32488 | } |
32489 | ||
32490 | ||
1bd55598 RD |
32491 | SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32492 | PyObject *resultobj = 0; | |
32493 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32494 | wxTreeItemId result; | |
32495 | void *argp1 = 0 ; | |
32496 | int res1 = 0 ; | |
32497 | PyObject *swig_obj[1] ; | |
32498 | ||
32499 | if (!args) SWIG_fail; | |
32500 | swig_obj[0] = args; | |
32501 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32502 | if (!SWIG_IsOK(res1)) { | |
32503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
32504 | } | |
32505 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32506 | { | |
32507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32508 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
32509 | wxPyEndAllowThreads(__tstate); | |
32510 | if (PyErr_Occurred()) SWIG_fail; | |
32511 | } | |
32512 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
32513 | return resultobj; | |
32514 | fail: | |
32515 | return NULL; | |
32516 | } | |
32517 | ||
32518 | ||
32519 | SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32520 | PyObject *resultobj = 0; | |
32521 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32522 | wxTreeItemId *arg2 = 0 ; | |
32523 | void *argp1 = 0 ; | |
32524 | int res1 = 0 ; | |
32525 | void *argp2 = 0 ; | |
32526 | int res2 = 0 ; | |
32527 | PyObject * obj0 = 0 ; | |
32528 | PyObject * obj1 = 0 ; | |
32529 | char * kwnames[] = { | |
32530 | (char *) "self",(char *) "item", NULL | |
32531 | }; | |
32532 | ||
32533 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
32534 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32535 | if (!SWIG_IsOK(res1)) { | |
32536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
32537 | } | |
32538 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32539 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
32540 | if (!SWIG_IsOK(res2)) { | |
32541 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
32542 | } | |
32543 | if (!argp2) { | |
32544 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
32545 | } | |
32546 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32547 | { | |
32548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32549 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
32550 | wxPyEndAllowThreads(__tstate); | |
32551 | if (PyErr_Occurred()) SWIG_fail; | |
32552 | } | |
32553 | resultobj = SWIG_Py_Void(); | |
32554 | return resultobj; | |
32555 | fail: | |
32556 | return NULL; | |
d55e5bfc RD |
32557 | } |
32558 | ||
32559 | ||
1bd55598 RD |
32560 | SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32561 | PyObject *resultobj = 0; | |
32562 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32563 | wxPoint result; | |
32564 | void *argp1 = 0 ; | |
32565 | int res1 = 0 ; | |
32566 | PyObject *swig_obj[1] ; | |
32567 | ||
32568 | if (!args) SWIG_fail; | |
32569 | swig_obj[0] = args; | |
32570 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32571 | if (!SWIG_IsOK(res1)) { | |
32572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
32573 | } | |
32574 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32575 | { | |
32576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32577 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
32578 | wxPyEndAllowThreads(__tstate); | |
32579 | if (PyErr_Occurred()) SWIG_fail; | |
32580 | } | |
32581 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
32582 | return resultobj; | |
32583 | fail: | |
32584 | return NULL; | |
32585 | } | |
32586 | ||
32587 | ||
32588 | SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32589 | PyObject *resultobj = 0; | |
32590 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32591 | wxPoint *arg2 = 0 ; | |
32592 | void *argp1 = 0 ; | |
32593 | int res1 = 0 ; | |
32594 | wxPoint temp2 ; | |
32595 | PyObject * obj0 = 0 ; | |
32596 | PyObject * obj1 = 0 ; | |
32597 | char * kwnames[] = { | |
32598 | (char *) "self",(char *) "pt", NULL | |
32599 | }; | |
32600 | ||
32601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
32602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32603 | if (!SWIG_IsOK(res1)) { | |
32604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
32605 | } | |
32606 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32607 | { | |
32608 | arg2 = &temp2; | |
32609 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
32610 | } | |
32611 | { | |
32612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32613 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
32614 | wxPyEndAllowThreads(__tstate); | |
32615 | if (PyErr_Occurred()) SWIG_fail; | |
32616 | } | |
32617 | resultobj = SWIG_Py_Void(); | |
32618 | return resultobj; | |
32619 | fail: | |
32620 | return NULL; | |
d55e5bfc RD |
32621 | } |
32622 | ||
32623 | ||
1bd55598 RD |
32624 | SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32625 | PyObject *resultobj = 0; | |
32626 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32627 | wxKeyEvent *result = 0 ; | |
32628 | void *argp1 = 0 ; | |
32629 | int res1 = 0 ; | |
32630 | PyObject *swig_obj[1] ; | |
32631 | ||
32632 | if (!args) SWIG_fail; | |
32633 | swig_obj[0] = args; | |
32634 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32635 | if (!SWIG_IsOK(res1)) { | |
32636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
32637 | } | |
32638 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32639 | { | |
32640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 32641 | { |
1bd55598 RD |
32642 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); |
32643 | result = (wxKeyEvent *) &_result_ref; | |
d55e5bfc | 32644 | } |
1bd55598 RD |
32645 | wxPyEndAllowThreads(__tstate); |
32646 | if (PyErr_Occurred()) SWIG_fail; | |
32647 | } | |
32648 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 ); | |
32649 | return resultobj; | |
32650 | fail: | |
32651 | return NULL; | |
d55e5bfc RD |
32652 | } |
32653 | ||
32654 | ||
1bd55598 RD |
32655 | SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32656 | PyObject *resultobj = 0; | |
32657 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32658 | int result; | |
32659 | void *argp1 = 0 ; | |
32660 | int res1 = 0 ; | |
32661 | PyObject *swig_obj[1] ; | |
32662 | ||
32663 | if (!args) SWIG_fail; | |
32664 | swig_obj[0] = args; | |
32665 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32666 | if (!SWIG_IsOK(res1)) { | |
32667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
32668 | } | |
32669 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32670 | { | |
32671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32672 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
32673 | wxPyEndAllowThreads(__tstate); | |
32674 | if (PyErr_Occurred()) SWIG_fail; | |
32675 | } | |
32676 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32677 | return resultobj; | |
32678 | fail: | |
32679 | return NULL; | |
32680 | } | |
32681 | ||
32682 | ||
32683 | SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32684 | PyObject *resultobj = 0; | |
32685 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32686 | wxKeyEvent *arg2 = 0 ; | |
32687 | void *argp1 = 0 ; | |
32688 | int res1 = 0 ; | |
32689 | void *argp2 = 0 ; | |
32690 | int res2 = 0 ; | |
32691 | PyObject * obj0 = 0 ; | |
32692 | PyObject * obj1 = 0 ; | |
32693 | char * kwnames[] = { | |
32694 | (char *) "self",(char *) "evt", NULL | |
32695 | }; | |
32696 | ||
32697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
32698 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32699 | if (!SWIG_IsOK(res1)) { | |
32700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
32701 | } | |
32702 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32703 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0); | |
32704 | if (!SWIG_IsOK(res2)) { | |
32705 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
32706 | } | |
32707 | if (!argp2) { | |
32708 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
32709 | } | |
32710 | arg2 = reinterpret_cast< wxKeyEvent * >(argp2); | |
32711 | { | |
32712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32713 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
32714 | wxPyEndAllowThreads(__tstate); | |
32715 | if (PyErr_Occurred()) SWIG_fail; | |
32716 | } | |
32717 | resultobj = SWIG_Py_Void(); | |
32718 | return resultobj; | |
32719 | fail: | |
32720 | return NULL; | |
d55e5bfc RD |
32721 | } |
32722 | ||
32723 | ||
1bd55598 RD |
32724 | SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32725 | PyObject *resultobj = 0; | |
32726 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32727 | wxString *result = 0 ; | |
32728 | void *argp1 = 0 ; | |
32729 | int res1 = 0 ; | |
32730 | PyObject *swig_obj[1] ; | |
32731 | ||
32732 | if (!args) SWIG_fail; | |
32733 | swig_obj[0] = args; | |
32734 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32735 | if (!SWIG_IsOK(res1)) { | |
32736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
32737 | } | |
32738 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32739 | { | |
32740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 32741 | { |
1bd55598 RD |
32742 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); |
32743 | result = (wxString *) &_result_ref; | |
d55e5bfc | 32744 | } |
1bd55598 RD |
32745 | wxPyEndAllowThreads(__tstate); |
32746 | if (PyErr_Occurred()) SWIG_fail; | |
32747 | } | |
32748 | { | |
32749 | #if wxUSE_UNICODE | |
32750 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32751 | #else | |
32752 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32753 | #endif | |
32754 | } | |
32755 | return resultobj; | |
32756 | fail: | |
32757 | return NULL; | |
32758 | } | |
32759 | ||
32760 | ||
32761 | SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32762 | PyObject *resultobj = 0; | |
32763 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32764 | wxString *arg2 = 0 ; | |
32765 | void *argp1 = 0 ; | |
32766 | int res1 = 0 ; | |
32767 | bool temp2 = false ; | |
32768 | PyObject * obj0 = 0 ; | |
32769 | PyObject * obj1 = 0 ; | |
32770 | char * kwnames[] = { | |
32771 | (char *) "self",(char *) "label", NULL | |
32772 | }; | |
32773 | ||
32774 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
32775 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32776 | if (!SWIG_IsOK(res1)) { | |
32777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
32778 | } | |
32779 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32780 | { | |
32781 | arg2 = wxString_in_helper(obj1); | |
32782 | if (arg2 == NULL) SWIG_fail; | |
32783 | temp2 = true; | |
32784 | } | |
32785 | { | |
32786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32787 | (arg1)->SetLabel((wxString const &)*arg2); | |
32788 | wxPyEndAllowThreads(__tstate); | |
32789 | if (PyErr_Occurred()) SWIG_fail; | |
32790 | } | |
32791 | resultobj = SWIG_Py_Void(); | |
32792 | { | |
32793 | if (temp2) | |
32794 | delete arg2; | |
32795 | } | |
32796 | return resultobj; | |
32797 | fail: | |
32798 | { | |
32799 | if (temp2) | |
32800 | delete arg2; | |
32801 | } | |
32802 | return NULL; | |
d55e5bfc RD |
32803 | } |
32804 | ||
32805 | ||
1bd55598 RD |
32806 | SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32807 | PyObject *resultobj = 0; | |
32808 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32809 | bool result; | |
32810 | void *argp1 = 0 ; | |
32811 | int res1 = 0 ; | |
32812 | PyObject *swig_obj[1] ; | |
32813 | ||
32814 | if (!args) SWIG_fail; | |
32815 | swig_obj[0] = args; | |
32816 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32817 | if (!SWIG_IsOK(res1)) { | |
32818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
32819 | } | |
32820 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32821 | { | |
32822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32823 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
32824 | wxPyEndAllowThreads(__tstate); | |
32825 | if (PyErr_Occurred()) SWIG_fail; | |
32826 | } | |
32827 | { | |
32828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32829 | } | |
32830 | return resultobj; | |
32831 | fail: | |
32832 | return NULL; | |
32833 | } | |
32834 | ||
32835 | ||
32836 | SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32837 | PyObject *resultobj = 0; | |
32838 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32839 | bool arg2 ; | |
32840 | void *argp1 = 0 ; | |
32841 | int res1 = 0 ; | |
32842 | bool val2 ; | |
32843 | int ecode2 = 0 ; | |
32844 | PyObject * obj0 = 0 ; | |
32845 | PyObject * obj1 = 0 ; | |
32846 | char * kwnames[] = { | |
32847 | (char *) "self",(char *) "editCancelled", NULL | |
32848 | }; | |
32849 | ||
32850 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail; | |
32851 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32852 | if (!SWIG_IsOK(res1)) { | |
32853 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
32854 | } | |
32855 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32856 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
32857 | if (!SWIG_IsOK(ecode2)) { | |
32858 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'"); | |
32859 | } | |
32860 | arg2 = static_cast< bool >(val2); | |
32861 | { | |
32862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32863 | (arg1)->SetEditCanceled(arg2); | |
32864 | wxPyEndAllowThreads(__tstate); | |
32865 | if (PyErr_Occurred()) SWIG_fail; | |
32866 | } | |
32867 | resultobj = SWIG_Py_Void(); | |
32868 | return resultobj; | |
32869 | fail: | |
32870 | return NULL; | |
32871 | } | |
32872 | ||
32873 | ||
32874 | SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32875 | PyObject *resultobj = 0; | |
32876 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32877 | wxString *arg2 = 0 ; | |
32878 | void *argp1 = 0 ; | |
32879 | int res1 = 0 ; | |
32880 | bool temp2 = false ; | |
32881 | PyObject * obj0 = 0 ; | |
32882 | PyObject * obj1 = 0 ; | |
32883 | char * kwnames[] = { | |
32884 | (char *) "self",(char *) "toolTip", NULL | |
32885 | }; | |
32886 | ||
32887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail; | |
32888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32889 | if (!SWIG_IsOK(res1)) { | |
32890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
32891 | } | |
32892 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32893 | { | |
32894 | arg2 = wxString_in_helper(obj1); | |
32895 | if (arg2 == NULL) SWIG_fail; | |
32896 | temp2 = true; | |
32897 | } | |
32898 | { | |
32899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32900 | (arg1)->SetToolTip((wxString const &)*arg2); | |
32901 | wxPyEndAllowThreads(__tstate); | |
32902 | if (PyErr_Occurred()) SWIG_fail; | |
32903 | } | |
32904 | resultobj = SWIG_Py_Void(); | |
32905 | { | |
32906 | if (temp2) | |
32907 | delete arg2; | |
32908 | } | |
32909 | return resultobj; | |
32910 | fail: | |
32911 | { | |
32912 | if (temp2) | |
32913 | delete arg2; | |
32914 | } | |
32915 | return NULL; | |
d55e5bfc RD |
32916 | } |
32917 | ||
32918 | ||
1bd55598 RD |
32919 | SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32920 | PyObject *resultobj = 0; | |
32921 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32922 | wxString result; | |
32923 | void *argp1 = 0 ; | |
32924 | int res1 = 0 ; | |
32925 | PyObject *swig_obj[1] ; | |
32926 | ||
32927 | if (!args) SWIG_fail; | |
32928 | swig_obj[0] = args; | |
32929 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32930 | if (!SWIG_IsOK(res1)) { | |
32931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
32932 | } | |
32933 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32934 | { | |
32935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32936 | result = (arg1)->GetToolTip(); | |
32937 | wxPyEndAllowThreads(__tstate); | |
32938 | if (PyErr_Occurred()) SWIG_fail; | |
32939 | } | |
32940 | { | |
32941 | #if wxUSE_UNICODE | |
32942 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32943 | #else | |
32944 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32945 | #endif | |
32946 | } | |
32947 | return resultobj; | |
32948 | fail: | |
32949 | return NULL; | |
32950 | } | |
32951 | ||
32952 | ||
32953 | SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32954 | PyObject *obj; | |
32955 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32956 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj)); | |
32957 | return SWIG_Py_Void(); | |
32958 | } | |
32959 | ||
32960 | SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32961 | return SWIG_Python_InitShadowInstance(args); | |
32962 | } | |
32963 | ||
32964 | SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32965 | PyObject *resultobj = 0; | |
32966 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32967 | int arg2 = (int) -1 ; | |
32968 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
32969 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32970 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32971 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32972 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
32973 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32974 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32975 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
32976 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32977 | wxPyTreeCtrl *result = 0 ; | |
32978 | void *argp1 = 0 ; | |
32979 | int res1 = 0 ; | |
32980 | int val2 ; | |
32981 | int ecode2 = 0 ; | |
32982 | wxPoint temp3 ; | |
32983 | wxSize temp4 ; | |
32984 | long val5 ; | |
32985 | int ecode5 = 0 ; | |
32986 | void *argp6 = 0 ; | |
32987 | int res6 = 0 ; | |
32988 | bool temp7 = false ; | |
32989 | PyObject * obj0 = 0 ; | |
32990 | PyObject * obj1 = 0 ; | |
32991 | PyObject * obj2 = 0 ; | |
32992 | PyObject * obj3 = 0 ; | |
32993 | PyObject * obj4 = 0 ; | |
32994 | PyObject * obj5 = 0 ; | |
32995 | PyObject * obj6 = 0 ; | |
32996 | char * kwnames[] = { | |
32997 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32998 | }; | |
32999 | ||
33000 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
33001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33002 | if (!SWIG_IsOK(res1)) { | |
33003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
33004 | } | |
33005 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
33006 | if (obj1) { | |
33007 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33008 | if (!SWIG_IsOK(ecode2)) { | |
33009 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'"); | |
33010 | } | |
33011 | arg2 = static_cast< int >(val2); | |
33012 | } | |
33013 | if (obj2) { | |
d55e5bfc | 33014 | { |
1bd55598 RD |
33015 | arg3 = &temp3; |
33016 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 33017 | } |
1bd55598 RD |
33018 | } |
33019 | if (obj3) { | |
36ed4f51 | 33020 | { |
1bd55598 RD |
33021 | arg4 = &temp4; |
33022 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 33023 | } |
1bd55598 RD |
33024 | } |
33025 | if (obj4) { | |
33026 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
33027 | if (!SWIG_IsOK(ecode5)) { | |
33028 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'"); | |
33029 | } | |
33030 | arg5 = static_cast< long >(val5); | |
33031 | } | |
33032 | if (obj5) { | |
33033 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
33034 | if (!SWIG_IsOK(res6)) { | |
33035 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 33036 | } |
1bd55598 RD |
33037 | if (!argp6) { |
33038 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 33039 | } |
1bd55598 RD |
33040 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
33041 | } | |
33042 | if (obj6) { | |
d55e5bfc | 33043 | { |
1bd55598 RD |
33044 | arg7 = wxString_in_helper(obj6); |
33045 | if (arg7 == NULL) SWIG_fail; | |
33046 | temp7 = true; | |
d55e5bfc | 33047 | } |
1bd55598 RD |
33048 | } |
33049 | { | |
33050 | if (!wxPyCheckForApp()) SWIG_fail; | |
33051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33052 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
33053 | wxPyEndAllowThreads(__tstate); | |
33054 | if (PyErr_Occurred()) SWIG_fail; | |
33055 | } | |
33056 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 ); | |
33057 | { | |
33058 | if (temp7) | |
33059 | delete arg7; | |
33060 | } | |
33061 | return resultobj; | |
33062 | fail: | |
33063 | { | |
33064 | if (temp7) | |
33065 | delete arg7; | |
33066 | } | |
33067 | return NULL; | |
33068 | } | |
33069 | ||
33070 | ||
33071 | SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33072 | PyObject *resultobj = 0; | |
33073 | wxPyTreeCtrl *result = 0 ; | |
33074 | ||
33075 | if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail; | |
33076 | { | |
33077 | if (!wxPyCheckForApp()) SWIG_fail; | |
33078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33079 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
33080 | wxPyEndAllowThreads(__tstate); | |
33081 | if (PyErr_Occurred()) SWIG_fail; | |
33082 | } | |
33083 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 ); | |
33084 | return resultobj; | |
33085 | fail: | |
33086 | return NULL; | |
33087 | } | |
33088 | ||
33089 | ||
33090 | SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33091 | PyObject *resultobj = 0; | |
33092 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33093 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33094 | int arg3 = (int) -1 ; | |
33095 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
33096 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
33097 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
33098 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
33099 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
33100 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
33101 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
33102 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
33103 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
33104 | bool result; | |
33105 | void *argp1 = 0 ; | |
33106 | int res1 = 0 ; | |
33107 | void *argp2 = 0 ; | |
33108 | int res2 = 0 ; | |
33109 | int val3 ; | |
33110 | int ecode3 = 0 ; | |
33111 | wxPoint temp4 ; | |
33112 | wxSize temp5 ; | |
33113 | long val6 ; | |
33114 | int ecode6 = 0 ; | |
33115 | void *argp7 = 0 ; | |
33116 | int res7 = 0 ; | |
33117 | bool temp8 = false ; | |
33118 | PyObject * obj0 = 0 ; | |
33119 | PyObject * obj1 = 0 ; | |
33120 | PyObject * obj2 = 0 ; | |
33121 | PyObject * obj3 = 0 ; | |
33122 | PyObject * obj4 = 0 ; | |
33123 | PyObject * obj5 = 0 ; | |
33124 | PyObject * obj6 = 0 ; | |
33125 | PyObject * obj7 = 0 ; | |
33126 | char * kwnames[] = { | |
33127 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33128 | }; | |
33129 | ||
33130 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
33131 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33132 | if (!SWIG_IsOK(res1)) { | |
33133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33134 | } | |
33135 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33136 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33137 | if (!SWIG_IsOK(res2)) { | |
33138 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
33139 | } | |
33140 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
33141 | if (obj2) { | |
33142 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33143 | if (!SWIG_IsOK(ecode3)) { | |
33144 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
33145 | } | |
33146 | arg3 = static_cast< int >(val3); | |
33147 | } | |
33148 | if (obj3) { | |
d55e5bfc | 33149 | { |
1bd55598 RD |
33150 | arg4 = &temp4; |
33151 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 33152 | } |
1bd55598 RD |
33153 | } |
33154 | if (obj4) { | |
d55e5bfc | 33155 | { |
1bd55598 RD |
33156 | arg5 = &temp5; |
33157 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 33158 | } |
1bd55598 RD |
33159 | } |
33160 | if (obj5) { | |
33161 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
33162 | if (!SWIG_IsOK(ecode6)) { | |
33163 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
33164 | } | |
33165 | arg6 = static_cast< long >(val6); | |
33166 | } | |
33167 | if (obj6) { | |
33168 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
33169 | if (!SWIG_IsOK(res7)) { | |
33170 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 33171 | } |
1bd55598 RD |
33172 | if (!argp7) { |
33173 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 33174 | } |
1bd55598 RD |
33175 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
33176 | } | |
33177 | if (obj7) { | |
d55e5bfc | 33178 | { |
1bd55598 RD |
33179 | arg8 = wxString_in_helper(obj7); |
33180 | if (arg8 == NULL) SWIG_fail; | |
33181 | temp8 = true; | |
d55e5bfc | 33182 | } |
1bd55598 RD |
33183 | } |
33184 | { | |
33185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33186 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
33187 | wxPyEndAllowThreads(__tstate); | |
33188 | if (PyErr_Occurred()) SWIG_fail; | |
33189 | } | |
33190 | { | |
33191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33192 | } | |
33193 | { | |
33194 | if (temp8) | |
33195 | delete arg8; | |
33196 | } | |
33197 | return resultobj; | |
33198 | fail: | |
33199 | { | |
33200 | if (temp8) | |
33201 | delete arg8; | |
33202 | } | |
33203 | return NULL; | |
33204 | } | |
33205 | ||
33206 | ||
33207 | SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33208 | PyObject *resultobj = 0; | |
33209 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33210 | PyObject *arg2 = (PyObject *) 0 ; | |
33211 | PyObject *arg3 = (PyObject *) 0 ; | |
33212 | void *argp1 = 0 ; | |
33213 | int res1 = 0 ; | |
33214 | PyObject * obj0 = 0 ; | |
33215 | PyObject * obj1 = 0 ; | |
33216 | PyObject * obj2 = 0 ; | |
33217 | char * kwnames[] = { | |
33218 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
33219 | }; | |
33220 | ||
33221 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33222 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33223 | if (!SWIG_IsOK(res1)) { | |
33224 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33225 | } | |
33226 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33227 | arg2 = obj1; | |
33228 | arg3 = obj2; | |
33229 | { | |
33230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33231 | (arg1)->_setCallbackInfo(arg2,arg3); | |
33232 | wxPyEndAllowThreads(__tstate); | |
33233 | if (PyErr_Occurred()) SWIG_fail; | |
33234 | } | |
33235 | resultobj = SWIG_Py_Void(); | |
33236 | return resultobj; | |
33237 | fail: | |
33238 | return NULL; | |
d55e5bfc RD |
33239 | } |
33240 | ||
33241 | ||
1bd55598 RD |
33242 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33243 | PyObject *resultobj = 0; | |
33244 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33245 | size_t result; | |
33246 | void *argp1 = 0 ; | |
33247 | int res1 = 0 ; | |
33248 | PyObject *swig_obj[1] ; | |
33249 | ||
33250 | if (!args) SWIG_fail; | |
33251 | swig_obj[0] = args; | |
33252 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33253 | if (!SWIG_IsOK(res1)) { | |
33254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33255 | } | |
33256 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33257 | { | |
33258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33259 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
33260 | wxPyEndAllowThreads(__tstate); | |
33261 | if (PyErr_Occurred()) SWIG_fail; | |
33262 | } | |
33263 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
33264 | return resultobj; | |
33265 | fail: | |
33266 | return NULL; | |
d55e5bfc RD |
33267 | } |
33268 | ||
33269 | ||
1bd55598 RD |
33270 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33271 | PyObject *resultobj = 0; | |
33272 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33273 | unsigned int result; | |
33274 | void *argp1 = 0 ; | |
33275 | int res1 = 0 ; | |
33276 | PyObject *swig_obj[1] ; | |
33277 | ||
33278 | if (!args) SWIG_fail; | |
33279 | swig_obj[0] = args; | |
33280 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33281 | if (!SWIG_IsOK(res1)) { | |
33282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33283 | } | |
33284 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33285 | { | |
33286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33287 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
33288 | wxPyEndAllowThreads(__tstate); | |
33289 | if (PyErr_Occurred()) SWIG_fail; | |
33290 | } | |
33291 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
33292 | return resultobj; | |
33293 | fail: | |
33294 | return NULL; | |
33295 | } | |
33296 | ||
33297 | ||
33298 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33299 | PyObject *resultobj = 0; | |
33300 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33301 | unsigned int arg2 ; | |
33302 | void *argp1 = 0 ; | |
33303 | int res1 = 0 ; | |
33304 | unsigned int val2 ; | |
33305 | int ecode2 = 0 ; | |
33306 | PyObject * obj0 = 0 ; | |
33307 | PyObject * obj1 = 0 ; | |
33308 | char * kwnames[] = { | |
33309 | (char *) "self",(char *) "indent", NULL | |
33310 | }; | |
33311 | ||
33312 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
33313 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33314 | if (!SWIG_IsOK(res1)) { | |
33315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33316 | } | |
33317 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33318 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
33319 | if (!SWIG_IsOK(ecode2)) { | |
33320 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'"); | |
33321 | } | |
33322 | arg2 = static_cast< unsigned int >(val2); | |
33323 | { | |
33324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33325 | (arg1)->SetIndent(arg2); | |
33326 | wxPyEndAllowThreads(__tstate); | |
33327 | if (PyErr_Occurred()) SWIG_fail; | |
33328 | } | |
33329 | resultobj = SWIG_Py_Void(); | |
33330 | return resultobj; | |
33331 | fail: | |
33332 | return NULL; | |
d55e5bfc RD |
33333 | } |
33334 | ||
33335 | ||
1bd55598 RD |
33336 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33337 | PyObject *resultobj = 0; | |
33338 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33339 | unsigned int result; | |
33340 | void *argp1 = 0 ; | |
33341 | int res1 = 0 ; | |
33342 | PyObject *swig_obj[1] ; | |
33343 | ||
33344 | if (!args) SWIG_fail; | |
33345 | swig_obj[0] = args; | |
33346 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33347 | if (!SWIG_IsOK(res1)) { | |
33348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33349 | } | |
33350 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33351 | { | |
33352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33353 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
33354 | wxPyEndAllowThreads(__tstate); | |
33355 | if (PyErr_Occurred()) SWIG_fail; | |
33356 | } | |
33357 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
33358 | return resultobj; | |
33359 | fail: | |
33360 | return NULL; | |
33361 | } | |
33362 | ||
33363 | ||
33364 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33365 | PyObject *resultobj = 0; | |
33366 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33367 | unsigned int arg2 ; | |
33368 | void *argp1 = 0 ; | |
33369 | int res1 = 0 ; | |
33370 | unsigned int val2 ; | |
33371 | int ecode2 = 0 ; | |
33372 | PyObject * obj0 = 0 ; | |
33373 | PyObject * obj1 = 0 ; | |
33374 | char * kwnames[] = { | |
33375 | (char *) "self",(char *) "spacing", NULL | |
33376 | }; | |
33377 | ||
33378 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail; | |
33379 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33380 | if (!SWIG_IsOK(res1)) { | |
33381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33382 | } | |
33383 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33384 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
33385 | if (!SWIG_IsOK(ecode2)) { | |
33386 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'"); | |
33387 | } | |
33388 | arg2 = static_cast< unsigned int >(val2); | |
33389 | { | |
33390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33391 | (arg1)->SetSpacing(arg2); | |
33392 | wxPyEndAllowThreads(__tstate); | |
33393 | if (PyErr_Occurred()) SWIG_fail; | |
33394 | } | |
33395 | resultobj = SWIG_Py_Void(); | |
33396 | return resultobj; | |
33397 | fail: | |
33398 | return NULL; | |
d55e5bfc RD |
33399 | } |
33400 | ||
33401 | ||
1bd55598 RD |
33402 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33403 | PyObject *resultobj = 0; | |
33404 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33405 | wxImageList *result = 0 ; | |
33406 | void *argp1 = 0 ; | |
33407 | int res1 = 0 ; | |
33408 | PyObject *swig_obj[1] ; | |
33409 | ||
33410 | if (!args) SWIG_fail; | |
33411 | swig_obj[0] = args; | |
33412 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33413 | if (!SWIG_IsOK(res1)) { | |
33414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33415 | } | |
33416 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33417 | { | |
33418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33419 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
33420 | wxPyEndAllowThreads(__tstate); | |
33421 | if (PyErr_Occurred()) SWIG_fail; | |
33422 | } | |
33423 | { | |
33424 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
33425 | } | |
33426 | return resultobj; | |
33427 | fail: | |
33428 | return NULL; | |
d55e5bfc RD |
33429 | } |
33430 | ||
33431 | ||
1bd55598 RD |
33432 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33433 | PyObject *resultobj = 0; | |
33434 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33435 | wxImageList *result = 0 ; | |
33436 | void *argp1 = 0 ; | |
33437 | int res1 = 0 ; | |
33438 | PyObject *swig_obj[1] ; | |
33439 | ||
33440 | if (!args) SWIG_fail; | |
33441 | swig_obj[0] = args; | |
33442 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33443 | if (!SWIG_IsOK(res1)) { | |
33444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33445 | } | |
33446 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33447 | { | |
33448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33449 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
33450 | wxPyEndAllowThreads(__tstate); | |
33451 | if (PyErr_Occurred()) SWIG_fail; | |
33452 | } | |
33453 | { | |
33454 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
33455 | } | |
33456 | return resultobj; | |
33457 | fail: | |
33458 | return NULL; | |
33459 | } | |
33460 | ||
33461 | ||
33462 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33463 | PyObject *resultobj = 0; | |
33464 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33465 | wxImageList *arg2 = (wxImageList *) 0 ; | |
33466 | void *argp1 = 0 ; | |
33467 | int res1 = 0 ; | |
33468 | void *argp2 = 0 ; | |
33469 | int res2 = 0 ; | |
33470 | PyObject * obj0 = 0 ; | |
33471 | PyObject * obj1 = 0 ; | |
33472 | char * kwnames[] = { | |
33473 | (char *) "self",(char *) "imageList", NULL | |
33474 | }; | |
33475 | ||
33476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
33477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33478 | if (!SWIG_IsOK(res1)) { | |
33479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33480 | } | |
33481 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33482 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
33483 | if (!SWIG_IsOK(res2)) { | |
33484 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
33485 | } | |
33486 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
33487 | { | |
33488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33489 | (arg1)->SetImageList(arg2); | |
33490 | wxPyEndAllowThreads(__tstate); | |
33491 | if (PyErr_Occurred()) SWIG_fail; | |
33492 | } | |
33493 | resultobj = SWIG_Py_Void(); | |
33494 | return resultobj; | |
33495 | fail: | |
33496 | return NULL; | |
33497 | } | |
33498 | ||
33499 | ||
33500 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33501 | PyObject *resultobj = 0; | |
33502 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33503 | wxImageList *arg2 = (wxImageList *) 0 ; | |
33504 | void *argp1 = 0 ; | |
33505 | int res1 = 0 ; | |
33506 | void *argp2 = 0 ; | |
33507 | int res2 = 0 ; | |
33508 | PyObject * obj0 = 0 ; | |
33509 | PyObject * obj1 = 0 ; | |
33510 | char * kwnames[] = { | |
33511 | (char *) "self",(char *) "imageList", NULL | |
33512 | }; | |
33513 | ||
33514 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
33515 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33516 | if (!SWIG_IsOK(res1)) { | |
33517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33518 | } | |
33519 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33520 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
33521 | if (!SWIG_IsOK(res2)) { | |
33522 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
33523 | } | |
33524 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
33525 | { | |
33526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33527 | (arg1)->SetStateImageList(arg2); | |
33528 | wxPyEndAllowThreads(__tstate); | |
33529 | if (PyErr_Occurred()) SWIG_fail; | |
33530 | } | |
33531 | resultobj = SWIG_Py_Void(); | |
33532 | return resultobj; | |
33533 | fail: | |
33534 | return NULL; | |
33535 | } | |
33536 | ||
33537 | ||
33538 | SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33539 | PyObject *resultobj = 0; | |
33540 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33541 | wxImageList *arg2 = (wxImageList *) 0 ; | |
33542 | void *argp1 = 0 ; | |
33543 | int res1 = 0 ; | |
33544 | int res2 = 0 ; | |
33545 | PyObject * obj0 = 0 ; | |
33546 | PyObject * obj1 = 0 ; | |
33547 | char * kwnames[] = { | |
33548 | (char *) "self",(char *) "imageList", NULL | |
33549 | }; | |
33550 | ||
33551 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
33552 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33553 | if (!SWIG_IsOK(res1)) { | |
33554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33555 | } | |
33556 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33557 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
33558 | if (!SWIG_IsOK(res2)) { | |
33559 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
33560 | } | |
33561 | { | |
33562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33563 | (arg1)->AssignImageList(arg2); | |
33564 | wxPyEndAllowThreads(__tstate); | |
33565 | if (PyErr_Occurred()) SWIG_fail; | |
33566 | } | |
33567 | resultobj = SWIG_Py_Void(); | |
33568 | return resultobj; | |
33569 | fail: | |
33570 | return NULL; | |
33571 | } | |
33572 | ||
33573 | ||
33574 | SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33575 | PyObject *resultobj = 0; | |
33576 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33577 | wxImageList *arg2 = (wxImageList *) 0 ; | |
33578 | void *argp1 = 0 ; | |
33579 | int res1 = 0 ; | |
33580 | int res2 = 0 ; | |
33581 | PyObject * obj0 = 0 ; | |
33582 | PyObject * obj1 = 0 ; | |
33583 | char * kwnames[] = { | |
33584 | (char *) "self",(char *) "imageList", NULL | |
33585 | }; | |
33586 | ||
33587 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
33588 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33589 | if (!SWIG_IsOK(res1)) { | |
33590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33591 | } | |
33592 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33593 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
33594 | if (!SWIG_IsOK(res2)) { | |
33595 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
33596 | } | |
33597 | { | |
33598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33599 | (arg1)->AssignStateImageList(arg2); | |
33600 | wxPyEndAllowThreads(__tstate); | |
33601 | if (PyErr_Occurred()) SWIG_fail; | |
33602 | } | |
33603 | resultobj = SWIG_Py_Void(); | |
33604 | return resultobj; | |
33605 | fail: | |
33606 | return NULL; | |
33607 | } | |
33608 | ||
33609 | ||
33610 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33611 | PyObject *resultobj = 0; | |
33612 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33613 | wxTreeItemId *arg2 = 0 ; | |
33614 | wxString result; | |
33615 | void *argp1 = 0 ; | |
33616 | int res1 = 0 ; | |
33617 | void *argp2 = 0 ; | |
33618 | int res2 = 0 ; | |
33619 | PyObject * obj0 = 0 ; | |
33620 | PyObject * obj1 = 0 ; | |
33621 | char * kwnames[] = { | |
33622 | (char *) "self",(char *) "item", NULL | |
33623 | }; | |
33624 | ||
33625 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail; | |
33626 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33627 | if (!SWIG_IsOK(res1)) { | |
33628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33629 | } | |
33630 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33631 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33632 | if (!SWIG_IsOK(res2)) { | |
33633 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33634 | } | |
33635 | if (!argp2) { | |
33636 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33637 | } | |
33638 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33639 | { | |
33640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33641 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
33642 | wxPyEndAllowThreads(__tstate); | |
33643 | if (PyErr_Occurred()) SWIG_fail; | |
33644 | } | |
33645 | { | |
33646 | #if wxUSE_UNICODE | |
33647 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33648 | #else | |
33649 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33650 | #endif | |
33651 | } | |
33652 | return resultobj; | |
33653 | fail: | |
33654 | return NULL; | |
33655 | } | |
33656 | ||
33657 | ||
33658 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33659 | PyObject *resultobj = 0; | |
33660 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33661 | wxTreeItemId *arg2 = 0 ; | |
33662 | wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; | |
33663 | int result; | |
33664 | void *argp1 = 0 ; | |
33665 | int res1 = 0 ; | |
33666 | void *argp2 = 0 ; | |
33667 | int res2 = 0 ; | |
33668 | int val3 ; | |
33669 | int ecode3 = 0 ; | |
33670 | PyObject * obj0 = 0 ; | |
33671 | PyObject * obj1 = 0 ; | |
33672 | PyObject * obj2 = 0 ; | |
33673 | char * kwnames[] = { | |
33674 | (char *) "self",(char *) "item",(char *) "which", NULL | |
33675 | }; | |
33676 | ||
33677 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33678 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33679 | if (!SWIG_IsOK(res1)) { | |
33680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33681 | } | |
33682 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33683 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33684 | if (!SWIG_IsOK(res2)) { | |
33685 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33686 | } | |
33687 | if (!argp2) { | |
33688 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33689 | } | |
33690 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33691 | if (obj2) { | |
33692 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33693 | if (!SWIG_IsOK(ecode3)) { | |
33694 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'"); | |
33695 | } | |
33696 | arg3 = static_cast< wxTreeItemIcon >(val3); | |
33697 | } | |
33698 | { | |
33699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33700 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3); | |
33701 | wxPyEndAllowThreads(__tstate); | |
33702 | if (PyErr_Occurred()) SWIG_fail; | |
33703 | } | |
33704 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33705 | return resultobj; | |
33706 | fail: | |
33707 | return NULL; | |
33708 | } | |
33709 | ||
33710 | ||
33711 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33712 | PyObject *resultobj = 0; | |
33713 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33714 | wxTreeItemId *arg2 = 0 ; | |
33715 | wxPyTreeItemData *result = 0 ; | |
33716 | void *argp1 = 0 ; | |
33717 | int res1 = 0 ; | |
33718 | void *argp2 = 0 ; | |
33719 | int res2 = 0 ; | |
33720 | PyObject * obj0 = 0 ; | |
33721 | PyObject * obj1 = 0 ; | |
33722 | char * kwnames[] = { | |
33723 | (char *) "self",(char *) "item", NULL | |
33724 | }; | |
33725 | ||
33726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail; | |
33727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33728 | if (!SWIG_IsOK(res1)) { | |
33729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33730 | } | |
33731 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33732 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33733 | if (!SWIG_IsOK(res2)) { | |
33734 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33735 | } | |
33736 | if (!argp2) { | |
33737 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33738 | } | |
33739 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33740 | { | |
33741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33742 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
33743 | wxPyEndAllowThreads(__tstate); | |
33744 | if (PyErr_Occurred()) SWIG_fail; | |
33745 | } | |
33746 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33747 | return resultobj; | |
33748 | fail: | |
33749 | return NULL; | |
33750 | } | |
33751 | ||
33752 | ||
33753 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33754 | PyObject *resultobj = 0; | |
33755 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33756 | wxTreeItemId *arg2 = 0 ; | |
33757 | PyObject *result = 0 ; | |
33758 | void *argp1 = 0 ; | |
33759 | int res1 = 0 ; | |
33760 | void *argp2 = 0 ; | |
33761 | int res2 = 0 ; | |
33762 | PyObject * obj0 = 0 ; | |
33763 | PyObject * obj1 = 0 ; | |
33764 | char * kwnames[] = { | |
33765 | (char *) "self",(char *) "item", NULL | |
33766 | }; | |
33767 | ||
33768 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail; | |
33769 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33770 | if (!SWIG_IsOK(res1)) { | |
33771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33772 | } | |
33773 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33774 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33775 | if (!SWIG_IsOK(res2)) { | |
33776 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33777 | } | |
33778 | if (!argp2) { | |
33779 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33780 | } | |
33781 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33782 | { | |
33783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33784 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
33785 | wxPyEndAllowThreads(__tstate); | |
33786 | if (PyErr_Occurred()) SWIG_fail; | |
33787 | } | |
33788 | resultobj = result; | |
33789 | return resultobj; | |
33790 | fail: | |
33791 | return NULL; | |
33792 | } | |
33793 | ||
33794 | ||
33795 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33796 | PyObject *resultobj = 0; | |
33797 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33798 | wxTreeItemId *arg2 = 0 ; | |
33799 | wxColour result; | |
33800 | void *argp1 = 0 ; | |
33801 | int res1 = 0 ; | |
33802 | void *argp2 = 0 ; | |
33803 | int res2 = 0 ; | |
33804 | PyObject * obj0 = 0 ; | |
33805 | PyObject * obj1 = 0 ; | |
33806 | char * kwnames[] = { | |
33807 | (char *) "self",(char *) "item", NULL | |
33808 | }; | |
33809 | ||
33810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33811 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33812 | if (!SWIG_IsOK(res1)) { | |
33813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33814 | } | |
33815 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33816 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33817 | if (!SWIG_IsOK(res2)) { | |
33818 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33819 | } | |
33820 | if (!argp2) { | |
33821 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33822 | } | |
33823 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33824 | { | |
33825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33826 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
33827 | wxPyEndAllowThreads(__tstate); | |
33828 | if (PyErr_Occurred()) SWIG_fail; | |
33829 | } | |
33830 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33831 | return resultobj; | |
33832 | fail: | |
33833 | return NULL; | |
33834 | } | |
33835 | ||
33836 | ||
33837 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33838 | PyObject *resultobj = 0; | |
33839 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33840 | wxTreeItemId *arg2 = 0 ; | |
33841 | wxColour result; | |
33842 | void *argp1 = 0 ; | |
33843 | int res1 = 0 ; | |
33844 | void *argp2 = 0 ; | |
33845 | int res2 = 0 ; | |
33846 | PyObject * obj0 = 0 ; | |
33847 | PyObject * obj1 = 0 ; | |
33848 | char * kwnames[] = { | |
33849 | (char *) "self",(char *) "item", NULL | |
33850 | }; | |
33851 | ||
33852 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33853 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33854 | if (!SWIG_IsOK(res1)) { | |
33855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33856 | } | |
33857 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33858 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33859 | if (!SWIG_IsOK(res2)) { | |
33860 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33861 | } | |
33862 | if (!argp2) { | |
33863 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33864 | } | |
33865 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33866 | { | |
33867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33868 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
33869 | wxPyEndAllowThreads(__tstate); | |
33870 | if (PyErr_Occurred()) SWIG_fail; | |
33871 | } | |
33872 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33873 | return resultobj; | |
33874 | fail: | |
33875 | return NULL; | |
33876 | } | |
33877 | ||
33878 | ||
33879 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33880 | PyObject *resultobj = 0; | |
33881 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33882 | wxTreeItemId *arg2 = 0 ; | |
33883 | wxFont result; | |
33884 | void *argp1 = 0 ; | |
33885 | int res1 = 0 ; | |
33886 | void *argp2 = 0 ; | |
33887 | int res2 = 0 ; | |
33888 | PyObject * obj0 = 0 ; | |
33889 | PyObject * obj1 = 0 ; | |
33890 | char * kwnames[] = { | |
33891 | (char *) "self",(char *) "item", NULL | |
33892 | }; | |
33893 | ||
33894 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
33895 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33896 | if (!SWIG_IsOK(res1)) { | |
33897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33898 | } | |
33899 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33900 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33901 | if (!SWIG_IsOK(res2)) { | |
33902 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33903 | } | |
33904 | if (!argp2) { | |
33905 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33906 | } | |
33907 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33908 | { | |
33909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33910 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
33911 | wxPyEndAllowThreads(__tstate); | |
33912 | if (PyErr_Occurred()) SWIG_fail; | |
33913 | } | |
33914 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
33915 | return resultobj; | |
33916 | fail: | |
33917 | return NULL; | |
33918 | } | |
33919 | ||
33920 | ||
33921 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33922 | PyObject *resultobj = 0; | |
33923 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33924 | wxTreeItemId *arg2 = 0 ; | |
33925 | wxString *arg3 = 0 ; | |
33926 | void *argp1 = 0 ; | |
33927 | int res1 = 0 ; | |
33928 | void *argp2 = 0 ; | |
33929 | int res2 = 0 ; | |
33930 | bool temp3 = false ; | |
33931 | PyObject * obj0 = 0 ; | |
33932 | PyObject * obj1 = 0 ; | |
33933 | PyObject * obj2 = 0 ; | |
33934 | char * kwnames[] = { | |
33935 | (char *) "self",(char *) "item",(char *) "text", NULL | |
33936 | }; | |
33937 | ||
33938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33940 | if (!SWIG_IsOK(res1)) { | |
33941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33942 | } | |
33943 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33944 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33945 | if (!SWIG_IsOK(res2)) { | |
33946 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33947 | } | |
33948 | if (!argp2) { | |
33949 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33950 | } | |
33951 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33952 | { | |
33953 | arg3 = wxString_in_helper(obj2); | |
33954 | if (arg3 == NULL) SWIG_fail; | |
33955 | temp3 = true; | |
33956 | } | |
33957 | { | |
33958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33959 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
33960 | wxPyEndAllowThreads(__tstate); | |
33961 | if (PyErr_Occurred()) SWIG_fail; | |
33962 | } | |
33963 | resultobj = SWIG_Py_Void(); | |
33964 | { | |
33965 | if (temp3) | |
33966 | delete arg3; | |
33967 | } | |
33968 | return resultobj; | |
33969 | fail: | |
33970 | { | |
33971 | if (temp3) | |
33972 | delete arg3; | |
33973 | } | |
33974 | return NULL; | |
33975 | } | |
33976 | ||
33977 | ||
33978 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33979 | PyObject *resultobj = 0; | |
33980 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33981 | wxTreeItemId *arg2 = 0 ; | |
33982 | int arg3 ; | |
33983 | wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; | |
33984 | void *argp1 = 0 ; | |
33985 | int res1 = 0 ; | |
33986 | void *argp2 = 0 ; | |
33987 | int res2 = 0 ; | |
33988 | int val3 ; | |
33989 | int ecode3 = 0 ; | |
33990 | int val4 ; | |
33991 | int ecode4 = 0 ; | |
33992 | PyObject * obj0 = 0 ; | |
33993 | PyObject * obj1 = 0 ; | |
33994 | PyObject * obj2 = 0 ; | |
33995 | PyObject * obj3 = 0 ; | |
33996 | char * kwnames[] = { | |
33997 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
33998 | }; | |
33999 | ||
34000 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34002 | if (!SWIG_IsOK(res1)) { | |
34003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34004 | } | |
34005 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34006 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34007 | if (!SWIG_IsOK(res2)) { | |
34008 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34009 | } | |
34010 | if (!argp2) { | |
34011 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34012 | } | |
34013 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34014 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34015 | if (!SWIG_IsOK(ecode3)) { | |
34016 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'"); | |
34017 | } | |
34018 | arg3 = static_cast< int >(val3); | |
34019 | if (obj3) { | |
34020 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34021 | if (!SWIG_IsOK(ecode4)) { | |
34022 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'"); | |
34023 | } | |
34024 | arg4 = static_cast< wxTreeItemIcon >(val4); | |
34025 | } | |
34026 | { | |
34027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34028 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4); | |
34029 | wxPyEndAllowThreads(__tstate); | |
34030 | if (PyErr_Occurred()) SWIG_fail; | |
34031 | } | |
34032 | resultobj = SWIG_Py_Void(); | |
34033 | return resultobj; | |
34034 | fail: | |
34035 | return NULL; | |
34036 | } | |
34037 | ||
34038 | ||
34039 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34040 | PyObject *resultobj = 0; | |
34041 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34042 | wxTreeItemId *arg2 = 0 ; | |
34043 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
34044 | void *argp1 = 0 ; | |
34045 | int res1 = 0 ; | |
34046 | void *argp2 = 0 ; | |
34047 | int res2 = 0 ; | |
34048 | int res3 = 0 ; | |
34049 | PyObject * obj0 = 0 ; | |
34050 | PyObject * obj1 = 0 ; | |
34051 | PyObject * obj2 = 0 ; | |
34052 | char * kwnames[] = { | |
34053 | (char *) "self",(char *) "item",(char *) "data", NULL | |
34054 | }; | |
34055 | ||
34056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34058 | if (!SWIG_IsOK(res1)) { | |
34059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34060 | } | |
34061 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34062 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34063 | if (!SWIG_IsOK(res2)) { | |
34064 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34065 | } | |
34066 | if (!argp2) { | |
34067 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34068 | } | |
34069 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34070 | res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
34071 | if (!SWIG_IsOK(res3)) { | |
34072 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'"); | |
34073 | } | |
34074 | { | |
34075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34076 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
34077 | wxPyEndAllowThreads(__tstate); | |
34078 | if (PyErr_Occurred()) SWIG_fail; | |
34079 | } | |
34080 | resultobj = SWIG_Py_Void(); | |
34081 | return resultobj; | |
34082 | fail: | |
34083 | return NULL; | |
34084 | } | |
34085 | ||
34086 | ||
34087 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34088 | PyObject *resultobj = 0; | |
34089 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34090 | wxTreeItemId *arg2 = 0 ; | |
34091 | PyObject *arg3 = (PyObject *) 0 ; | |
34092 | void *argp1 = 0 ; | |
34093 | int res1 = 0 ; | |
34094 | void *argp2 = 0 ; | |
34095 | int res2 = 0 ; | |
34096 | PyObject * obj0 = 0 ; | |
34097 | PyObject * obj1 = 0 ; | |
34098 | PyObject * obj2 = 0 ; | |
34099 | char * kwnames[] = { | |
34100 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
34101 | }; | |
34102 | ||
34103 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34104 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34105 | if (!SWIG_IsOK(res1)) { | |
34106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34107 | } | |
34108 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34109 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34110 | if (!SWIG_IsOK(res2)) { | |
34111 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34112 | } | |
34113 | if (!argp2) { | |
34114 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34115 | } | |
34116 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34117 | arg3 = obj2; | |
34118 | { | |
34119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34120 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
34121 | wxPyEndAllowThreads(__tstate); | |
34122 | if (PyErr_Occurred()) SWIG_fail; | |
34123 | } | |
34124 | resultobj = SWIG_Py_Void(); | |
34125 | return resultobj; | |
34126 | fail: | |
34127 | return NULL; | |
34128 | } | |
34129 | ||
34130 | ||
34131 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34132 | PyObject *resultobj = 0; | |
34133 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34134 | wxTreeItemId *arg2 = 0 ; | |
34135 | bool arg3 = (bool) true ; | |
34136 | void *argp1 = 0 ; | |
34137 | int res1 = 0 ; | |
34138 | void *argp2 = 0 ; | |
34139 | int res2 = 0 ; | |
34140 | bool val3 ; | |
34141 | int ecode3 = 0 ; | |
34142 | PyObject * obj0 = 0 ; | |
34143 | PyObject * obj1 = 0 ; | |
34144 | PyObject * obj2 = 0 ; | |
34145 | char * kwnames[] = { | |
34146 | (char *) "self",(char *) "item",(char *) "has", NULL | |
34147 | }; | |
34148 | ||
34149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34150 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34151 | if (!SWIG_IsOK(res1)) { | |
34152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34153 | } | |
34154 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34155 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34156 | if (!SWIG_IsOK(res2)) { | |
34157 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34158 | } | |
34159 | if (!argp2) { | |
34160 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34161 | } | |
34162 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34163 | if (obj2) { | |
34164 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
34165 | if (!SWIG_IsOK(ecode3)) { | |
34166 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'"); | |
34167 | } | |
34168 | arg3 = static_cast< bool >(val3); | |
34169 | } | |
34170 | { | |
34171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34172 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
34173 | wxPyEndAllowThreads(__tstate); | |
34174 | if (PyErr_Occurred()) SWIG_fail; | |
34175 | } | |
34176 | resultobj = SWIG_Py_Void(); | |
34177 | return resultobj; | |
34178 | fail: | |
34179 | return NULL; | |
34180 | } | |
34181 | ||
34182 | ||
34183 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34184 | PyObject *resultobj = 0; | |
34185 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34186 | wxTreeItemId *arg2 = 0 ; | |
34187 | bool arg3 = (bool) true ; | |
34188 | void *argp1 = 0 ; | |
34189 | int res1 = 0 ; | |
34190 | void *argp2 = 0 ; | |
34191 | int res2 = 0 ; | |
34192 | bool val3 ; | |
34193 | int ecode3 = 0 ; | |
34194 | PyObject * obj0 = 0 ; | |
34195 | PyObject * obj1 = 0 ; | |
34196 | PyObject * obj2 = 0 ; | |
34197 | char * kwnames[] = { | |
34198 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
34199 | }; | |
34200 | ||
34201 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34202 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34203 | if (!SWIG_IsOK(res1)) { | |
34204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34205 | } | |
34206 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34207 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34208 | if (!SWIG_IsOK(res2)) { | |
34209 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34210 | } | |
34211 | if (!argp2) { | |
34212 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34213 | } | |
34214 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34215 | if (obj2) { | |
34216 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
34217 | if (!SWIG_IsOK(ecode3)) { | |
34218 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'"); | |
34219 | } | |
34220 | arg3 = static_cast< bool >(val3); | |
34221 | } | |
34222 | { | |
34223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34224 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
34225 | wxPyEndAllowThreads(__tstate); | |
34226 | if (PyErr_Occurred()) SWIG_fail; | |
34227 | } | |
34228 | resultobj = SWIG_Py_Void(); | |
34229 | return resultobj; | |
34230 | fail: | |
34231 | return NULL; | |
34232 | } | |
34233 | ||
34234 | ||
34235 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34236 | PyObject *resultobj = 0; | |
34237 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34238 | wxTreeItemId *arg2 = 0 ; | |
34239 | bool arg3 = (bool) true ; | |
34240 | void *argp1 = 0 ; | |
34241 | int res1 = 0 ; | |
34242 | void *argp2 = 0 ; | |
34243 | int res2 = 0 ; | |
34244 | bool val3 ; | |
34245 | int ecode3 = 0 ; | |
34246 | PyObject * obj0 = 0 ; | |
34247 | PyObject * obj1 = 0 ; | |
34248 | PyObject * obj2 = 0 ; | |
34249 | char * kwnames[] = { | |
34250 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
34251 | }; | |
34252 | ||
34253 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34254 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34255 | if (!SWIG_IsOK(res1)) { | |
34256 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34257 | } | |
34258 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34259 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34260 | if (!SWIG_IsOK(res2)) { | |
34261 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34262 | } | |
34263 | if (!argp2) { | |
34264 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34265 | } | |
34266 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34267 | if (obj2) { | |
34268 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
34269 | if (!SWIG_IsOK(ecode3)) { | |
34270 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'"); | |
34271 | } | |
34272 | arg3 = static_cast< bool >(val3); | |
34273 | } | |
34274 | { | |
34275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34276 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
34277 | wxPyEndAllowThreads(__tstate); | |
34278 | if (PyErr_Occurred()) SWIG_fail; | |
34279 | } | |
34280 | resultobj = SWIG_Py_Void(); | |
34281 | return resultobj; | |
34282 | fail: | |
34283 | return NULL; | |
34284 | } | |
34285 | ||
34286 | ||
34287 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34288 | PyObject *resultobj = 0; | |
34289 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34290 | wxTreeItemId *arg2 = 0 ; | |
34291 | wxColour *arg3 = 0 ; | |
34292 | void *argp1 = 0 ; | |
34293 | int res1 = 0 ; | |
34294 | void *argp2 = 0 ; | |
34295 | int res2 = 0 ; | |
34296 | wxColour temp3 ; | |
34297 | PyObject * obj0 = 0 ; | |
34298 | PyObject * obj1 = 0 ; | |
34299 | PyObject * obj2 = 0 ; | |
34300 | char * kwnames[] = { | |
34301 | (char *) "self",(char *) "item",(char *) "col", NULL | |
34302 | }; | |
34303 | ||
34304 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34305 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34306 | if (!SWIG_IsOK(res1)) { | |
34307 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34308 | } | |
34309 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34310 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34311 | if (!SWIG_IsOK(res2)) { | |
34312 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34313 | } | |
34314 | if (!argp2) { | |
34315 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34316 | } | |
34317 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34318 | { | |
34319 | arg3 = &temp3; | |
34320 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
34321 | } | |
34322 | { | |
34323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34324 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
34325 | wxPyEndAllowThreads(__tstate); | |
34326 | if (PyErr_Occurred()) SWIG_fail; | |
34327 | } | |
34328 | resultobj = SWIG_Py_Void(); | |
34329 | return resultobj; | |
34330 | fail: | |
34331 | return NULL; | |
34332 | } | |
34333 | ||
34334 | ||
34335 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34336 | PyObject *resultobj = 0; | |
34337 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34338 | wxTreeItemId *arg2 = 0 ; | |
34339 | wxColour *arg3 = 0 ; | |
34340 | void *argp1 = 0 ; | |
34341 | int res1 = 0 ; | |
34342 | void *argp2 = 0 ; | |
34343 | int res2 = 0 ; | |
34344 | wxColour temp3 ; | |
34345 | PyObject * obj0 = 0 ; | |
34346 | PyObject * obj1 = 0 ; | |
34347 | PyObject * obj2 = 0 ; | |
34348 | char * kwnames[] = { | |
34349 | (char *) "self",(char *) "item",(char *) "col", NULL | |
34350 | }; | |
34351 | ||
34352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34354 | if (!SWIG_IsOK(res1)) { | |
34355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34356 | } | |
34357 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34358 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34359 | if (!SWIG_IsOK(res2)) { | |
34360 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34361 | } | |
34362 | if (!argp2) { | |
34363 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34364 | } | |
34365 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34366 | { | |
34367 | arg3 = &temp3; | |
34368 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
34369 | } | |
34370 | { | |
34371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34372 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
34373 | wxPyEndAllowThreads(__tstate); | |
34374 | if (PyErr_Occurred()) SWIG_fail; | |
34375 | } | |
34376 | resultobj = SWIG_Py_Void(); | |
34377 | return resultobj; | |
34378 | fail: | |
34379 | return NULL; | |
34380 | } | |
34381 | ||
34382 | ||
34383 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34384 | PyObject *resultobj = 0; | |
34385 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34386 | wxTreeItemId *arg2 = 0 ; | |
34387 | wxFont *arg3 = 0 ; | |
34388 | void *argp1 = 0 ; | |
34389 | int res1 = 0 ; | |
34390 | void *argp2 = 0 ; | |
34391 | int res2 = 0 ; | |
34392 | void *argp3 = 0 ; | |
34393 | int res3 = 0 ; | |
34394 | PyObject * obj0 = 0 ; | |
34395 | PyObject * obj1 = 0 ; | |
34396 | PyObject * obj2 = 0 ; | |
34397 | char * kwnames[] = { | |
34398 | (char *) "self",(char *) "item",(char *) "font", NULL | |
34399 | }; | |
34400 | ||
34401 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34402 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34403 | if (!SWIG_IsOK(res1)) { | |
34404 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34405 | } | |
34406 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34407 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34408 | if (!SWIG_IsOK(res2)) { | |
34409 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34410 | } | |
34411 | if (!argp2) { | |
34412 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34413 | } | |
34414 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34415 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
34416 | if (!SWIG_IsOK(res3)) { | |
34417 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
34418 | } | |
34419 | if (!argp3) { | |
34420 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
34421 | } | |
34422 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
34423 | { | |
34424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34425 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
34426 | wxPyEndAllowThreads(__tstate); | |
34427 | if (PyErr_Occurred()) SWIG_fail; | |
34428 | } | |
34429 | resultobj = SWIG_Py_Void(); | |
34430 | return resultobj; | |
34431 | fail: | |
34432 | return NULL; | |
34433 | } | |
34434 | ||
34435 | ||
34436 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34437 | PyObject *resultobj = 0; | |
34438 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34439 | wxTreeItemId *arg2 = 0 ; | |
34440 | bool result; | |
34441 | void *argp1 = 0 ; | |
34442 | int res1 = 0 ; | |
34443 | void *argp2 = 0 ; | |
34444 | int res2 = 0 ; | |
34445 | PyObject * obj0 = 0 ; | |
34446 | PyObject * obj1 = 0 ; | |
34447 | char * kwnames[] = { | |
34448 | (char *) "self",(char *) "item", NULL | |
34449 | }; | |
34450 | ||
34451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
34452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34453 | if (!SWIG_IsOK(res1)) { | |
34454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34455 | } | |
34456 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34457 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34458 | if (!SWIG_IsOK(res2)) { | |
34459 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34460 | } | |
34461 | if (!argp2) { | |
34462 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34463 | } | |
34464 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34465 | { | |
34466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34467 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
34468 | wxPyEndAllowThreads(__tstate); | |
34469 | if (PyErr_Occurred()) SWIG_fail; | |
34470 | } | |
34471 | { | |
34472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34473 | } | |
34474 | return resultobj; | |
34475 | fail: | |
34476 | return NULL; | |
34477 | } | |
34478 | ||
34479 | ||
34480 | SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34481 | PyObject *resultobj = 0; | |
34482 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34483 | wxTreeItemId *arg2 = 0 ; | |
34484 | bool result; | |
34485 | void *argp1 = 0 ; | |
34486 | int res1 = 0 ; | |
34487 | void *argp2 = 0 ; | |
34488 | int res2 = 0 ; | |
34489 | PyObject * obj0 = 0 ; | |
34490 | PyObject * obj1 = 0 ; | |
34491 | char * kwnames[] = { | |
34492 | (char *) "self",(char *) "item", NULL | |
34493 | }; | |
34494 | ||
34495 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
34496 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34497 | if (!SWIG_IsOK(res1)) { | |
34498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34499 | } | |
34500 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34501 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34502 | if (!SWIG_IsOK(res2)) { | |
34503 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34504 | } | |
34505 | if (!argp2) { | |
34506 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34507 | } | |
34508 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34509 | { | |
34510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34511 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
34512 | wxPyEndAllowThreads(__tstate); | |
34513 | if (PyErr_Occurred()) SWIG_fail; | |
34514 | } | |
34515 | { | |
34516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34517 | } | |
34518 | return resultobj; | |
34519 | fail: | |
34520 | return NULL; | |
34521 | } | |
34522 | ||
34523 | ||
34524 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34525 | PyObject *resultobj = 0; | |
34526 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34527 | wxTreeItemId *arg2 = 0 ; | |
34528 | bool result; | |
34529 | void *argp1 = 0 ; | |
34530 | int res1 = 0 ; | |
34531 | void *argp2 = 0 ; | |
34532 | int res2 = 0 ; | |
34533 | PyObject * obj0 = 0 ; | |
34534 | PyObject * obj1 = 0 ; | |
34535 | char * kwnames[] = { | |
34536 | (char *) "self",(char *) "item", NULL | |
34537 | }; | |
34538 | ||
34539 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail; | |
34540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34541 | if (!SWIG_IsOK(res1)) { | |
34542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34543 | } | |
34544 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34545 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34546 | if (!SWIG_IsOK(res2)) { | |
34547 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34548 | } | |
34549 | if (!argp2) { | |
34550 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34551 | } | |
34552 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34553 | { | |
34554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34555 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
34556 | wxPyEndAllowThreads(__tstate); | |
34557 | if (PyErr_Occurred()) SWIG_fail; | |
34558 | } | |
34559 | { | |
34560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34561 | } | |
34562 | return resultobj; | |
34563 | fail: | |
34564 | return NULL; | |
34565 | } | |
34566 | ||
34567 | ||
34568 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34569 | PyObject *resultobj = 0; | |
34570 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34571 | wxTreeItemId *arg2 = 0 ; | |
34572 | bool result; | |
34573 | void *argp1 = 0 ; | |
34574 | int res1 = 0 ; | |
34575 | void *argp2 = 0 ; | |
34576 | int res2 = 0 ; | |
34577 | PyObject * obj0 = 0 ; | |
34578 | PyObject * obj1 = 0 ; | |
34579 | char * kwnames[] = { | |
34580 | (char *) "self",(char *) "item", NULL | |
34581 | }; | |
34582 | ||
34583 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
34584 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34585 | if (!SWIG_IsOK(res1)) { | |
34586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34587 | } | |
34588 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34589 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34590 | if (!SWIG_IsOK(res2)) { | |
34591 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34592 | } | |
34593 | if (!argp2) { | |
34594 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34595 | } | |
34596 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34597 | { | |
34598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34599 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
34600 | wxPyEndAllowThreads(__tstate); | |
34601 | if (PyErr_Occurred()) SWIG_fail; | |
34602 | } | |
34603 | { | |
34604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34605 | } | |
34606 | return resultobj; | |
34607 | fail: | |
34608 | return NULL; | |
34609 | } | |
34610 | ||
34611 | ||
34612 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34613 | PyObject *resultobj = 0; | |
34614 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34615 | wxTreeItemId *arg2 = 0 ; | |
34616 | bool result; | |
34617 | void *argp1 = 0 ; | |
34618 | int res1 = 0 ; | |
34619 | void *argp2 = 0 ; | |
34620 | int res2 = 0 ; | |
34621 | PyObject * obj0 = 0 ; | |
34622 | PyObject * obj1 = 0 ; | |
34623 | char * kwnames[] = { | |
34624 | (char *) "self",(char *) "item", NULL | |
34625 | }; | |
34626 | ||
34627 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail; | |
34628 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34629 | if (!SWIG_IsOK(res1)) { | |
34630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34631 | } | |
34632 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34633 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34634 | if (!SWIG_IsOK(res2)) { | |
34635 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34636 | } | |
34637 | if (!argp2) { | |
34638 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34639 | } | |
34640 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34641 | { | |
34642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34643 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
34644 | wxPyEndAllowThreads(__tstate); | |
34645 | if (PyErr_Occurred()) SWIG_fail; | |
34646 | } | |
34647 | { | |
34648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34649 | } | |
34650 | return resultobj; | |
34651 | fail: | |
34652 | return NULL; | |
34653 | } | |
34654 | ||
34655 | ||
34656 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34657 | PyObject *resultobj = 0; | |
34658 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34659 | wxTreeItemId *arg2 = 0 ; | |
34660 | bool arg3 = (bool) true ; | |
34661 | size_t result; | |
34662 | void *argp1 = 0 ; | |
34663 | int res1 = 0 ; | |
34664 | void *argp2 = 0 ; | |
34665 | int res2 = 0 ; | |
34666 | bool val3 ; | |
34667 | int ecode3 = 0 ; | |
34668 | PyObject * obj0 = 0 ; | |
34669 | PyObject * obj1 = 0 ; | |
34670 | PyObject * obj2 = 0 ; | |
34671 | char * kwnames[] = { | |
34672 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
34673 | }; | |
34674 | ||
34675 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34676 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34677 | if (!SWIG_IsOK(res1)) { | |
34678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34679 | } | |
34680 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34681 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34682 | if (!SWIG_IsOK(res2)) { | |
34683 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34684 | } | |
34685 | if (!argp2) { | |
34686 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34687 | } | |
34688 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34689 | if (obj2) { | |
34690 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
34691 | if (!SWIG_IsOK(ecode3)) { | |
34692 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'"); | |
34693 | } | |
34694 | arg3 = static_cast< bool >(val3); | |
34695 | } | |
34696 | { | |
34697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34698 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
34699 | wxPyEndAllowThreads(__tstate); | |
34700 | if (PyErr_Occurred()) SWIG_fail; | |
34701 | } | |
34702 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
34703 | return resultobj; | |
34704 | fail: | |
34705 | return NULL; | |
d55e5bfc RD |
34706 | } |
34707 | ||
34708 | ||
1bd55598 RD |
34709 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34710 | PyObject *resultobj = 0; | |
34711 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34712 | wxTreeItemId result; | |
34713 | void *argp1 = 0 ; | |
34714 | int res1 = 0 ; | |
34715 | PyObject *swig_obj[1] ; | |
34716 | ||
34717 | if (!args) SWIG_fail; | |
34718 | swig_obj[0] = args; | |
34719 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34720 | if (!SWIG_IsOK(res1)) { | |
34721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34722 | } | |
34723 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34724 | { | |
34725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34726 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
34727 | wxPyEndAllowThreads(__tstate); | |
34728 | if (PyErr_Occurred()) SWIG_fail; | |
34729 | } | |
34730 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
34731 | return resultobj; | |
34732 | fail: | |
34733 | return NULL; | |
d55e5bfc RD |
34734 | } |
34735 | ||
34736 | ||
1bd55598 RD |
34737 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34738 | PyObject *resultobj = 0; | |
34739 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34740 | wxTreeItemId result; | |
34741 | void *argp1 = 0 ; | |
34742 | int res1 = 0 ; | |
34743 | PyObject *swig_obj[1] ; | |
34744 | ||
34745 | if (!args) SWIG_fail; | |
34746 | swig_obj[0] = args; | |
34747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34748 | if (!SWIG_IsOK(res1)) { | |
34749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34750 | } | |
34751 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34752 | { | |
34753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34754 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
34755 | wxPyEndAllowThreads(__tstate); | |
34756 | if (PyErr_Occurred()) SWIG_fail; | |
34757 | } | |
34758 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
34759 | return resultobj; | |
34760 | fail: | |
34761 | return NULL; | |
d55e5bfc RD |
34762 | } |
34763 | ||
34764 | ||
1bd55598 RD |
34765 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34766 | PyObject *resultobj = 0; | |
34767 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34768 | PyObject *result = 0 ; | |
34769 | void *argp1 = 0 ; | |
34770 | int res1 = 0 ; | |
34771 | PyObject *swig_obj[1] ; | |
34772 | ||
34773 | if (!args) SWIG_fail; | |
34774 | swig_obj[0] = args; | |
34775 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34776 | if (!SWIG_IsOK(res1)) { | |
34777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34778 | } | |
34779 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34780 | { | |
34781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34782 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
34783 | wxPyEndAllowThreads(__tstate); | |
34784 | if (PyErr_Occurred()) SWIG_fail; | |
34785 | } | |
34786 | resultobj = result; | |
34787 | return resultobj; | |
34788 | fail: | |
34789 | return NULL; | |
34790 | } | |
34791 | ||
34792 | ||
34793 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34794 | PyObject *resultobj = 0; | |
34795 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34796 | wxTreeItemId *arg2 = 0 ; | |
34797 | wxTreeItemId result; | |
34798 | void *argp1 = 0 ; | |
34799 | int res1 = 0 ; | |
34800 | void *argp2 = 0 ; | |
34801 | int res2 = 0 ; | |
34802 | PyObject * obj0 = 0 ; | |
34803 | PyObject * obj1 = 0 ; | |
34804 | char * kwnames[] = { | |
34805 | (char *) "self",(char *) "item", NULL | |
34806 | }; | |
34807 | ||
34808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
34809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34810 | if (!SWIG_IsOK(res1)) { | |
34811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34812 | } | |
34813 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34814 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34815 | if (!SWIG_IsOK(res2)) { | |
34816 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34817 | } | |
34818 | if (!argp2) { | |
34819 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34820 | } | |
34821 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34822 | { | |
34823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34824 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
34825 | wxPyEndAllowThreads(__tstate); | |
34826 | if (PyErr_Occurred()) SWIG_fail; | |
34827 | } | |
34828 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
34829 | return resultobj; | |
34830 | fail: | |
34831 | return NULL; | |
34832 | } | |
34833 | ||
34834 | ||
34835 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34836 | PyObject *resultobj = 0; | |
34837 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34838 | wxTreeItemId *arg2 = 0 ; | |
34839 | PyObject *result = 0 ; | |
34840 | void *argp1 = 0 ; | |
34841 | int res1 = 0 ; | |
34842 | void *argp2 = 0 ; | |
34843 | int res2 = 0 ; | |
34844 | PyObject * obj0 = 0 ; | |
34845 | PyObject * obj1 = 0 ; | |
34846 | char * kwnames[] = { | |
34847 | (char *) "self",(char *) "item", NULL | |
34848 | }; | |
34849 | ||
34850 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
34851 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34852 | if (!SWIG_IsOK(res1)) { | |
34853 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34854 | } | |
34855 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34856 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34857 | if (!SWIG_IsOK(res2)) { | |
34858 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34859 | } | |
34860 | if (!argp2) { | |
34861 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34862 | } | |
34863 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34864 | { | |
34865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34866 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
34867 | wxPyEndAllowThreads(__tstate); | |
34868 | if (PyErr_Occurred()) SWIG_fail; | |
34869 | } | |
34870 | resultobj = result; | |
34871 | return resultobj; | |
34872 | fail: | |
34873 | return NULL; | |
34874 | } | |
34875 | ||
34876 | ||
34877 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34878 | PyObject *resultobj = 0; | |
34879 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34880 | wxTreeItemId *arg2 = 0 ; | |
34881 | void *arg3 = (void *) 0 ; | |
34882 | PyObject *result = 0 ; | |
34883 | void *argp1 = 0 ; | |
34884 | int res1 = 0 ; | |
34885 | void *argp2 = 0 ; | |
34886 | int res2 = 0 ; | |
34887 | int res3 ; | |
34888 | PyObject * obj0 = 0 ; | |
34889 | PyObject * obj1 = 0 ; | |
34890 | PyObject * obj2 = 0 ; | |
34891 | char * kwnames[] = { | |
34892 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
34893 | }; | |
34894 | ||
34895 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34896 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34897 | if (!SWIG_IsOK(res1)) { | |
34898 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34899 | } | |
34900 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34901 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34902 | if (!SWIG_IsOK(res2)) { | |
34903 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34904 | } | |
34905 | if (!argp2) { | |
34906 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34907 | } | |
34908 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34909 | res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); | |
34910 | if (!SWIG_IsOK(res3)) { | |
34911 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'"); | |
34912 | } | |
34913 | { | |
34914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34915 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
34916 | wxPyEndAllowThreads(__tstate); | |
34917 | if (PyErr_Occurred()) SWIG_fail; | |
34918 | } | |
34919 | resultobj = result; | |
34920 | return resultobj; | |
34921 | fail: | |
34922 | return NULL; | |
34923 | } | |
34924 | ||
34925 | ||
34926 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34927 | PyObject *resultobj = 0; | |
34928 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34929 | wxTreeItemId *arg2 = 0 ; | |
34930 | wxTreeItemId result; | |
34931 | void *argp1 = 0 ; | |
34932 | int res1 = 0 ; | |
34933 | void *argp2 = 0 ; | |
34934 | int res2 = 0 ; | |
34935 | PyObject * obj0 = 0 ; | |
34936 | PyObject * obj1 = 0 ; | |
34937 | char * kwnames[] = { | |
34938 | (char *) "self",(char *) "item", NULL | |
34939 | }; | |
34940 | ||
34941 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
34942 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34943 | if (!SWIG_IsOK(res1)) { | |
34944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34945 | } | |
34946 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34947 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34948 | if (!SWIG_IsOK(res2)) { | |
34949 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34950 | } | |
34951 | if (!argp2) { | |
34952 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34953 | } | |
34954 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34955 | { | |
34956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34957 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
34958 | wxPyEndAllowThreads(__tstate); | |
34959 | if (PyErr_Occurred()) SWIG_fail; | |
34960 | } | |
34961 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
34962 | return resultobj; | |
34963 | fail: | |
34964 | return NULL; | |
34965 | } | |
34966 | ||
34967 | ||
34968 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34969 | PyObject *resultobj = 0; | |
34970 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34971 | wxTreeItemId *arg2 = 0 ; | |
34972 | wxTreeItemId result; | |
34973 | void *argp1 = 0 ; | |
34974 | int res1 = 0 ; | |
34975 | void *argp2 = 0 ; | |
34976 | int res2 = 0 ; | |
34977 | PyObject * obj0 = 0 ; | |
34978 | PyObject * obj1 = 0 ; | |
34979 | char * kwnames[] = { | |
34980 | (char *) "self",(char *) "item", NULL | |
34981 | }; | |
34982 | ||
34983 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail; | |
34984 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34985 | if (!SWIG_IsOK(res1)) { | |
34986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34987 | } | |
34988 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34989 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34990 | if (!SWIG_IsOK(res2)) { | |
34991 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34992 | } | |
34993 | if (!argp2) { | |
34994 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34995 | } | |
34996 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34997 | { | |
34998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34999 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
35000 | wxPyEndAllowThreads(__tstate); | |
35001 | if (PyErr_Occurred()) SWIG_fail; | |
35002 | } | |
35003 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35004 | return resultobj; | |
35005 | fail: | |
35006 | return NULL; | |
35007 | } | |
35008 | ||
35009 | ||
35010 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35011 | PyObject *resultobj = 0; | |
35012 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35013 | wxTreeItemId *arg2 = 0 ; | |
35014 | wxTreeItemId result; | |
35015 | void *argp1 = 0 ; | |
35016 | int res1 = 0 ; | |
35017 | void *argp2 = 0 ; | |
35018 | int res2 = 0 ; | |
35019 | PyObject * obj0 = 0 ; | |
35020 | PyObject * obj1 = 0 ; | |
35021 | char * kwnames[] = { | |
35022 | (char *) "self",(char *) "item", NULL | |
35023 | }; | |
35024 | ||
35025 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail; | |
35026 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35027 | if (!SWIG_IsOK(res1)) { | |
35028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35029 | } | |
35030 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35031 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35032 | if (!SWIG_IsOK(res2)) { | |
35033 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35034 | } | |
35035 | if (!argp2) { | |
35036 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35037 | } | |
35038 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35039 | { | |
35040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35041 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
35042 | wxPyEndAllowThreads(__tstate); | |
35043 | if (PyErr_Occurred()) SWIG_fail; | |
35044 | } | |
35045 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35046 | return resultobj; | |
35047 | fail: | |
35048 | return NULL; | |
d55e5bfc RD |
35049 | } |
35050 | ||
35051 | ||
1bd55598 RD |
35052 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35053 | PyObject *resultobj = 0; | |
35054 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35055 | wxTreeItemId result; | |
35056 | void *argp1 = 0 ; | |
35057 | int res1 = 0 ; | |
35058 | PyObject *swig_obj[1] ; | |
35059 | ||
35060 | if (!args) SWIG_fail; | |
35061 | swig_obj[0] = args; | |
35062 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35063 | if (!SWIG_IsOK(res1)) { | |
35064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35065 | } | |
35066 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35067 | { | |
35068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35069 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
35070 | wxPyEndAllowThreads(__tstate); | |
35071 | if (PyErr_Occurred()) SWIG_fail; | |
35072 | } | |
35073 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35074 | return resultobj; | |
35075 | fail: | |
35076 | return NULL; | |
35077 | } | |
35078 | ||
35079 | ||
35080 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35081 | PyObject *resultobj = 0; | |
35082 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35083 | wxTreeItemId *arg2 = 0 ; | |
35084 | wxTreeItemId result; | |
35085 | void *argp1 = 0 ; | |
35086 | int res1 = 0 ; | |
35087 | void *argp2 = 0 ; | |
35088 | int res2 = 0 ; | |
35089 | PyObject * obj0 = 0 ; | |
35090 | PyObject * obj1 = 0 ; | |
35091 | char * kwnames[] = { | |
35092 | (char *) "self",(char *) "item", NULL | |
35093 | }; | |
35094 | ||
35095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
35096 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35097 | if (!SWIG_IsOK(res1)) { | |
35098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35099 | } | |
35100 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35101 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35102 | if (!SWIG_IsOK(res2)) { | |
35103 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35104 | } | |
35105 | if (!argp2) { | |
35106 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35107 | } | |
35108 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35109 | { | |
35110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35111 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
35112 | wxPyEndAllowThreads(__tstate); | |
35113 | if (PyErr_Occurred()) SWIG_fail; | |
35114 | } | |
35115 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35116 | return resultobj; | |
35117 | fail: | |
35118 | return NULL; | |
35119 | } | |
35120 | ||
35121 | ||
35122 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35123 | PyObject *resultobj = 0; | |
35124 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35125 | wxTreeItemId *arg2 = 0 ; | |
35126 | wxTreeItemId result; | |
35127 | void *argp1 = 0 ; | |
35128 | int res1 = 0 ; | |
35129 | void *argp2 = 0 ; | |
35130 | int res2 = 0 ; | |
35131 | PyObject * obj0 = 0 ; | |
35132 | PyObject * obj1 = 0 ; | |
35133 | char * kwnames[] = { | |
35134 | (char *) "self",(char *) "item", NULL | |
35135 | }; | |
35136 | ||
35137 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
35138 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35139 | if (!SWIG_IsOK(res1)) { | |
35140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35141 | } | |
35142 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35143 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35144 | if (!SWIG_IsOK(res2)) { | |
35145 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35146 | } | |
35147 | if (!argp2) { | |
35148 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35149 | } | |
35150 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35151 | { | |
35152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35153 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
35154 | wxPyEndAllowThreads(__tstate); | |
35155 | if (PyErr_Occurred()) SWIG_fail; | |
35156 | } | |
35157 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35158 | return resultobj; | |
35159 | fail: | |
35160 | return NULL; | |
35161 | } | |
35162 | ||
35163 | ||
35164 | SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35165 | PyObject *resultobj = 0; | |
35166 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35167 | wxString *arg2 = 0 ; | |
35168 | int arg3 = (int) -1 ; | |
35169 | int arg4 = (int) -1 ; | |
35170 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
35171 | wxTreeItemId result; | |
35172 | void *argp1 = 0 ; | |
35173 | int res1 = 0 ; | |
35174 | bool temp2 = false ; | |
35175 | int val3 ; | |
35176 | int ecode3 = 0 ; | |
35177 | int val4 ; | |
35178 | int ecode4 = 0 ; | |
35179 | int res5 = 0 ; | |
35180 | PyObject * obj0 = 0 ; | |
35181 | PyObject * obj1 = 0 ; | |
35182 | PyObject * obj2 = 0 ; | |
35183 | PyObject * obj3 = 0 ; | |
35184 | PyObject * obj4 = 0 ; | |
35185 | char * kwnames[] = { | |
35186 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
35187 | }; | |
35188 | ||
35189 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35190 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35191 | if (!SWIG_IsOK(res1)) { | |
35192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35193 | } | |
35194 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35195 | { | |
35196 | arg2 = wxString_in_helper(obj1); | |
35197 | if (arg2 == NULL) SWIG_fail; | |
35198 | temp2 = true; | |
35199 | } | |
35200 | if (obj2) { | |
35201 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35202 | if (!SWIG_IsOK(ecode3)) { | |
35203 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'"); | |
35204 | } | |
35205 | arg3 = static_cast< int >(val3); | |
35206 | } | |
35207 | if (obj3) { | |
35208 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35209 | if (!SWIG_IsOK(ecode4)) { | |
35210 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'"); | |
35211 | } | |
35212 | arg4 = static_cast< int >(val4); | |
35213 | } | |
35214 | if (obj4) { | |
35215 | res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
35216 | if (!SWIG_IsOK(res5)) { | |
35217 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'"); | |
36ed4f51 | 35218 | } |
1bd55598 RD |
35219 | } |
35220 | { | |
35221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35222 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
35223 | wxPyEndAllowThreads(__tstate); | |
35224 | if (PyErr_Occurred()) SWIG_fail; | |
35225 | } | |
35226 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35227 | { | |
35228 | if (temp2) | |
35229 | delete arg2; | |
35230 | } | |
35231 | return resultobj; | |
35232 | fail: | |
35233 | { | |
35234 | if (temp2) | |
35235 | delete arg2; | |
35236 | } | |
35237 | return NULL; | |
35238 | } | |
35239 | ||
35240 | ||
35241 | SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35242 | PyObject *resultobj = 0; | |
35243 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35244 | wxTreeItemId *arg2 = 0 ; | |
35245 | wxString *arg3 = 0 ; | |
35246 | int arg4 = (int) -1 ; | |
35247 | int arg5 = (int) -1 ; | |
35248 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
35249 | wxTreeItemId result; | |
35250 | void *argp1 = 0 ; | |
35251 | int res1 = 0 ; | |
35252 | void *argp2 = 0 ; | |
35253 | int res2 = 0 ; | |
35254 | bool temp3 = false ; | |
35255 | int val4 ; | |
35256 | int ecode4 = 0 ; | |
35257 | int val5 ; | |
35258 | int ecode5 = 0 ; | |
35259 | int res6 = 0 ; | |
35260 | PyObject * obj0 = 0 ; | |
35261 | PyObject * obj1 = 0 ; | |
35262 | PyObject * obj2 = 0 ; | |
35263 | PyObject * obj3 = 0 ; | |
35264 | PyObject * obj4 = 0 ; | |
35265 | PyObject * obj5 = 0 ; | |
35266 | char * kwnames[] = { | |
35267 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
35268 | }; | |
35269 | ||
35270 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
35271 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35272 | if (!SWIG_IsOK(res1)) { | |
35273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35274 | } | |
35275 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35276 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35277 | if (!SWIG_IsOK(res2)) { | |
35278 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35279 | } | |
35280 | if (!argp2) { | |
35281 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35282 | } | |
35283 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35284 | { | |
35285 | arg3 = wxString_in_helper(obj2); | |
35286 | if (arg3 == NULL) SWIG_fail; | |
35287 | temp3 = true; | |
35288 | } | |
35289 | if (obj3) { | |
35290 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35291 | if (!SWIG_IsOK(ecode4)) { | |
35292 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'"); | |
35293 | } | |
35294 | arg4 = static_cast< int >(val4); | |
35295 | } | |
35296 | if (obj4) { | |
35297 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35298 | if (!SWIG_IsOK(ecode5)) { | |
35299 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'"); | |
35300 | } | |
35301 | arg5 = static_cast< int >(val5); | |
35302 | } | |
35303 | if (obj5) { | |
35304 | res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
35305 | if (!SWIG_IsOK(res6)) { | |
35306 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'"); | |
d55e5bfc | 35307 | } |
1bd55598 RD |
35308 | } |
35309 | { | |
35310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35311 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
35312 | wxPyEndAllowThreads(__tstate); | |
35313 | if (PyErr_Occurred()) SWIG_fail; | |
35314 | } | |
35315 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35316 | { | |
35317 | if (temp3) | |
35318 | delete arg3; | |
35319 | } | |
35320 | return resultobj; | |
35321 | fail: | |
35322 | { | |
35323 | if (temp3) | |
35324 | delete arg3; | |
35325 | } | |
35326 | return NULL; | |
35327 | } | |
35328 | ||
35329 | ||
35330 | SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35331 | PyObject *resultobj = 0; | |
35332 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35333 | wxTreeItemId *arg2 = 0 ; | |
35334 | wxTreeItemId *arg3 = 0 ; | |
35335 | wxString *arg4 = 0 ; | |
35336 | int arg5 = (int) -1 ; | |
35337 | int arg6 = (int) -1 ; | |
35338 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
35339 | wxTreeItemId result; | |
35340 | void *argp1 = 0 ; | |
35341 | int res1 = 0 ; | |
35342 | void *argp2 = 0 ; | |
35343 | int res2 = 0 ; | |
35344 | void *argp3 = 0 ; | |
35345 | int res3 = 0 ; | |
35346 | bool temp4 = false ; | |
35347 | int val5 ; | |
35348 | int ecode5 = 0 ; | |
35349 | int val6 ; | |
35350 | int ecode6 = 0 ; | |
35351 | int res7 = 0 ; | |
35352 | PyObject * obj0 = 0 ; | |
35353 | PyObject * obj1 = 0 ; | |
35354 | PyObject * obj2 = 0 ; | |
35355 | PyObject * obj3 = 0 ; | |
35356 | PyObject * obj4 = 0 ; | |
35357 | PyObject * obj5 = 0 ; | |
35358 | PyObject * obj6 = 0 ; | |
35359 | char * kwnames[] = { | |
35360 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
35361 | }; | |
35362 | ||
35363 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
35364 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35365 | if (!SWIG_IsOK(res1)) { | |
35366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35367 | } | |
35368 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35369 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35370 | if (!SWIG_IsOK(res2)) { | |
35371 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35372 | } | |
35373 | if (!argp2) { | |
35374 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35375 | } | |
35376 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35377 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35378 | if (!SWIG_IsOK(res3)) { | |
35379 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'"); | |
35380 | } | |
35381 | if (!argp3) { | |
35382 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'"); | |
35383 | } | |
35384 | arg3 = reinterpret_cast< wxTreeItemId * >(argp3); | |
35385 | { | |
35386 | arg4 = wxString_in_helper(obj3); | |
35387 | if (arg4 == NULL) SWIG_fail; | |
35388 | temp4 = true; | |
35389 | } | |
35390 | if (obj4) { | |
35391 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35392 | if (!SWIG_IsOK(ecode5)) { | |
35393 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'"); | |
35394 | } | |
35395 | arg5 = static_cast< int >(val5); | |
35396 | } | |
35397 | if (obj5) { | |
35398 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35399 | if (!SWIG_IsOK(ecode6)) { | |
35400 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'"); | |
35401 | } | |
35402 | arg6 = static_cast< int >(val6); | |
35403 | } | |
35404 | if (obj6) { | |
35405 | res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
35406 | if (!SWIG_IsOK(res7)) { | |
35407 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'"); | |
d55e5bfc | 35408 | } |
1bd55598 RD |
35409 | } |
35410 | { | |
35411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35412 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
35413 | wxPyEndAllowThreads(__tstate); | |
35414 | if (PyErr_Occurred()) SWIG_fail; | |
35415 | } | |
35416 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35417 | { | |
35418 | if (temp4) | |
35419 | delete arg4; | |
35420 | } | |
35421 | return resultobj; | |
35422 | fail: | |
35423 | { | |
35424 | if (temp4) | |
35425 | delete arg4; | |
35426 | } | |
35427 | return NULL; | |
35428 | } | |
35429 | ||
35430 | ||
35431 | SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35432 | PyObject *resultobj = 0; | |
35433 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35434 | wxTreeItemId *arg2 = 0 ; | |
35435 | size_t arg3 ; | |
35436 | wxString *arg4 = 0 ; | |
35437 | int arg5 = (int) -1 ; | |
35438 | int arg6 = (int) -1 ; | |
35439 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
35440 | wxTreeItemId result; | |
35441 | void *argp1 = 0 ; | |
35442 | int res1 = 0 ; | |
35443 | void *argp2 = 0 ; | |
35444 | int res2 = 0 ; | |
35445 | size_t val3 ; | |
35446 | int ecode3 = 0 ; | |
35447 | bool temp4 = false ; | |
35448 | int val5 ; | |
35449 | int ecode5 = 0 ; | |
35450 | int val6 ; | |
35451 | int ecode6 = 0 ; | |
35452 | int res7 = 0 ; | |
35453 | PyObject * obj0 = 0 ; | |
35454 | PyObject * obj1 = 0 ; | |
35455 | PyObject * obj2 = 0 ; | |
35456 | PyObject * obj3 = 0 ; | |
35457 | PyObject * obj4 = 0 ; | |
35458 | PyObject * obj5 = 0 ; | |
35459 | PyObject * obj6 = 0 ; | |
35460 | char * kwnames[] = { | |
35461 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
35462 | }; | |
35463 | ||
35464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
35465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35466 | if (!SWIG_IsOK(res1)) { | |
35467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35468 | } | |
35469 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35470 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35471 | if (!SWIG_IsOK(res2)) { | |
35472 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35473 | } | |
35474 | if (!argp2) { | |
35475 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35476 | } | |
35477 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35478 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
35479 | if (!SWIG_IsOK(ecode3)) { | |
35480 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'"); | |
35481 | } | |
35482 | arg3 = static_cast< size_t >(val3); | |
35483 | { | |
35484 | arg4 = wxString_in_helper(obj3); | |
35485 | if (arg4 == NULL) SWIG_fail; | |
35486 | temp4 = true; | |
35487 | } | |
35488 | if (obj4) { | |
35489 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35490 | if (!SWIG_IsOK(ecode5)) { | |
35491 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'"); | |
35492 | } | |
35493 | arg5 = static_cast< int >(val5); | |
35494 | } | |
35495 | if (obj5) { | |
35496 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35497 | if (!SWIG_IsOK(ecode6)) { | |
35498 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'"); | |
35499 | } | |
35500 | arg6 = static_cast< int >(val6); | |
35501 | } | |
35502 | if (obj6) { | |
35503 | res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
35504 | if (!SWIG_IsOK(res7)) { | |
35505 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'"); | |
d55e5bfc | 35506 | } |
1bd55598 RD |
35507 | } |
35508 | { | |
35509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35510 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
35511 | wxPyEndAllowThreads(__tstate); | |
35512 | if (PyErr_Occurred()) SWIG_fail; | |
35513 | } | |
35514 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35515 | { | |
35516 | if (temp4) | |
35517 | delete arg4; | |
35518 | } | |
35519 | return resultobj; | |
35520 | fail: | |
35521 | { | |
35522 | if (temp4) | |
35523 | delete arg4; | |
35524 | } | |
35525 | return NULL; | |
35526 | } | |
35527 | ||
35528 | ||
35529 | SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35530 | PyObject *resultobj = 0; | |
35531 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35532 | wxTreeItemId *arg2 = 0 ; | |
35533 | wxString *arg3 = 0 ; | |
35534 | int arg4 = (int) -1 ; | |
35535 | int arg5 = (int) -1 ; | |
35536 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
35537 | wxTreeItemId result; | |
35538 | void *argp1 = 0 ; | |
35539 | int res1 = 0 ; | |
35540 | void *argp2 = 0 ; | |
35541 | int res2 = 0 ; | |
35542 | bool temp3 = false ; | |
35543 | int val4 ; | |
35544 | int ecode4 = 0 ; | |
35545 | int val5 ; | |
35546 | int ecode5 = 0 ; | |
35547 | int res6 = 0 ; | |
35548 | PyObject * obj0 = 0 ; | |
35549 | PyObject * obj1 = 0 ; | |
35550 | PyObject * obj2 = 0 ; | |
35551 | PyObject * obj3 = 0 ; | |
35552 | PyObject * obj4 = 0 ; | |
35553 | PyObject * obj5 = 0 ; | |
35554 | char * kwnames[] = { | |
35555 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
35556 | }; | |
35557 | ||
35558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
35559 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35560 | if (!SWIG_IsOK(res1)) { | |
35561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35562 | } | |
35563 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35564 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35565 | if (!SWIG_IsOK(res2)) { | |
35566 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35567 | } | |
35568 | if (!argp2) { | |
35569 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35570 | } | |
35571 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35572 | { | |
35573 | arg3 = wxString_in_helper(obj2); | |
35574 | if (arg3 == NULL) SWIG_fail; | |
35575 | temp3 = true; | |
35576 | } | |
35577 | if (obj3) { | |
35578 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35579 | if (!SWIG_IsOK(ecode4)) { | |
35580 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'"); | |
35581 | } | |
35582 | arg4 = static_cast< int >(val4); | |
35583 | } | |
35584 | if (obj4) { | |
35585 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35586 | if (!SWIG_IsOK(ecode5)) { | |
35587 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'"); | |
35588 | } | |
35589 | arg5 = static_cast< int >(val5); | |
35590 | } | |
35591 | if (obj5) { | |
35592 | res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
35593 | if (!SWIG_IsOK(res6)) { | |
35594 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'"); | |
d55e5bfc | 35595 | } |
1bd55598 RD |
35596 | } |
35597 | { | |
35598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35599 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
35600 | wxPyEndAllowThreads(__tstate); | |
35601 | if (PyErr_Occurred()) SWIG_fail; | |
35602 | } | |
35603 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35604 | { | |
35605 | if (temp3) | |
35606 | delete arg3; | |
35607 | } | |
35608 | return resultobj; | |
35609 | fail: | |
35610 | { | |
35611 | if (temp3) | |
35612 | delete arg3; | |
35613 | } | |
35614 | return NULL; | |
35615 | } | |
35616 | ||
35617 | ||
35618 | SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35619 | PyObject *resultobj = 0; | |
35620 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35621 | wxTreeItemId *arg2 = 0 ; | |
35622 | void *argp1 = 0 ; | |
35623 | int res1 = 0 ; | |
35624 | void *argp2 = 0 ; | |
35625 | int res2 = 0 ; | |
35626 | PyObject * obj0 = 0 ; | |
35627 | PyObject * obj1 = 0 ; | |
35628 | char * kwnames[] = { | |
35629 | (char *) "self",(char *) "item", NULL | |
35630 | }; | |
35631 | ||
35632 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail; | |
35633 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35634 | if (!SWIG_IsOK(res1)) { | |
35635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35636 | } | |
35637 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35638 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35639 | if (!SWIG_IsOK(res2)) { | |
35640 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35641 | } | |
35642 | if (!argp2) { | |
35643 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35644 | } | |
35645 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35646 | { | |
35647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35648 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
35649 | wxPyEndAllowThreads(__tstate); | |
35650 | if (PyErr_Occurred()) SWIG_fail; | |
35651 | } | |
35652 | resultobj = SWIG_Py_Void(); | |
35653 | return resultobj; | |
35654 | fail: | |
35655 | return NULL; | |
35656 | } | |
35657 | ||
35658 | ||
35659 | SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35660 | PyObject *resultobj = 0; | |
35661 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35662 | wxTreeItemId *arg2 = 0 ; | |
35663 | void *argp1 = 0 ; | |
35664 | int res1 = 0 ; | |
35665 | void *argp2 = 0 ; | |
35666 | int res2 = 0 ; | |
35667 | PyObject * obj0 = 0 ; | |
35668 | PyObject * obj1 = 0 ; | |
35669 | char * kwnames[] = { | |
35670 | (char *) "self",(char *) "item", NULL | |
35671 | }; | |
35672 | ||
35673 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
35674 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35675 | if (!SWIG_IsOK(res1)) { | |
35676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35677 | } | |
35678 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35679 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35680 | if (!SWIG_IsOK(res2)) { | |
35681 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35682 | } | |
35683 | if (!argp2) { | |
35684 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35685 | } | |
35686 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35687 | { | |
35688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35689 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
35690 | wxPyEndAllowThreads(__tstate); | |
35691 | if (PyErr_Occurred()) SWIG_fail; | |
35692 | } | |
35693 | resultobj = SWIG_Py_Void(); | |
35694 | return resultobj; | |
35695 | fail: | |
35696 | return NULL; | |
d55e5bfc RD |
35697 | } |
35698 | ||
35699 | ||
1bd55598 RD |
35700 | SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35701 | PyObject *resultobj = 0; | |
35702 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35703 | void *argp1 = 0 ; | |
35704 | int res1 = 0 ; | |
35705 | PyObject *swig_obj[1] ; | |
35706 | ||
35707 | if (!args) SWIG_fail; | |
35708 | swig_obj[0] = args; | |
35709 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35710 | if (!SWIG_IsOK(res1)) { | |
35711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35712 | } | |
35713 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35714 | { | |
35715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35716 | (arg1)->DeleteAllItems(); | |
35717 | wxPyEndAllowThreads(__tstate); | |
35718 | if (PyErr_Occurred()) SWIG_fail; | |
35719 | } | |
35720 | resultobj = SWIG_Py_Void(); | |
35721 | return resultobj; | |
35722 | fail: | |
35723 | return NULL; | |
35724 | } | |
35725 | ||
35726 | ||
35727 | SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35728 | PyObject *resultobj = 0; | |
35729 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35730 | wxTreeItemId *arg2 = 0 ; | |
35731 | void *argp1 = 0 ; | |
35732 | int res1 = 0 ; | |
35733 | void *argp2 = 0 ; | |
35734 | int res2 = 0 ; | |
35735 | PyObject * obj0 = 0 ; | |
35736 | PyObject * obj1 = 0 ; | |
35737 | char * kwnames[] = { | |
35738 | (char *) "self",(char *) "item", NULL | |
35739 | }; | |
35740 | ||
35741 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail; | |
35742 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35743 | if (!SWIG_IsOK(res1)) { | |
35744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35745 | } | |
35746 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35747 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35748 | if (!SWIG_IsOK(res2)) { | |
35749 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35750 | } | |
35751 | if (!argp2) { | |
35752 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35753 | } | |
35754 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35755 | { | |
35756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35757 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
35758 | wxPyEndAllowThreads(__tstate); | |
35759 | if (PyErr_Occurred()) SWIG_fail; | |
35760 | } | |
35761 | resultobj = SWIG_Py_Void(); | |
35762 | return resultobj; | |
35763 | fail: | |
35764 | return NULL; | |
35765 | } | |
35766 | ||
35767 | ||
35768 | SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35769 | PyObject *resultobj = 0; | |
35770 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35771 | wxTreeItemId *arg2 = 0 ; | |
35772 | void *argp1 = 0 ; | |
35773 | int res1 = 0 ; | |
35774 | void *argp2 = 0 ; | |
35775 | int res2 = 0 ; | |
35776 | PyObject * obj0 = 0 ; | |
35777 | PyObject * obj1 = 0 ; | |
35778 | char * kwnames[] = { | |
35779 | (char *) "self",(char *) "item", NULL | |
35780 | }; | |
35781 | ||
35782 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail; | |
35783 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35784 | if (!SWIG_IsOK(res1)) { | |
35785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35786 | } | |
35787 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35788 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35789 | if (!SWIG_IsOK(res2)) { | |
35790 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35791 | } | |
35792 | if (!argp2) { | |
35793 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35794 | } | |
35795 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35796 | { | |
35797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35798 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
35799 | wxPyEndAllowThreads(__tstate); | |
35800 | if (PyErr_Occurred()) SWIG_fail; | |
35801 | } | |
35802 | resultobj = SWIG_Py_Void(); | |
35803 | return resultobj; | |
35804 | fail: | |
35805 | return NULL; | |
35806 | } | |
35807 | ||
35808 | ||
35809 | SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35810 | PyObject *resultobj = 0; | |
35811 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35812 | wxTreeItemId *arg2 = 0 ; | |
35813 | void *argp1 = 0 ; | |
35814 | int res1 = 0 ; | |
35815 | void *argp2 = 0 ; | |
35816 | int res2 = 0 ; | |
35817 | PyObject * obj0 = 0 ; | |
35818 | PyObject * obj1 = 0 ; | |
35819 | char * kwnames[] = { | |
35820 | (char *) "self",(char *) "item", NULL | |
35821 | }; | |
35822 | ||
35823 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail; | |
35824 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35825 | if (!SWIG_IsOK(res1)) { | |
35826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35827 | } | |
35828 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35829 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35830 | if (!SWIG_IsOK(res2)) { | |
35831 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35832 | } | |
35833 | if (!argp2) { | |
35834 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35835 | } | |
35836 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35837 | { | |
35838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35839 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
35840 | wxPyEndAllowThreads(__tstate); | |
35841 | if (PyErr_Occurred()) SWIG_fail; | |
35842 | } | |
35843 | resultobj = SWIG_Py_Void(); | |
35844 | return resultobj; | |
35845 | fail: | |
35846 | return NULL; | |
35847 | } | |
35848 | ||
35849 | ||
35850 | SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35851 | PyObject *resultobj = 0; | |
35852 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35853 | wxTreeItemId *arg2 = 0 ; | |
35854 | void *argp1 = 0 ; | |
35855 | int res1 = 0 ; | |
35856 | void *argp2 = 0 ; | |
35857 | int res2 = 0 ; | |
35858 | PyObject * obj0 = 0 ; | |
35859 | PyObject * obj1 = 0 ; | |
35860 | char * kwnames[] = { | |
35861 | (char *) "self",(char *) "item", NULL | |
35862 | }; | |
35863 | ||
35864 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
35865 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35866 | if (!SWIG_IsOK(res1)) { | |
35867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35868 | } | |
35869 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35870 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35871 | if (!SWIG_IsOK(res2)) { | |
35872 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35873 | } | |
35874 | if (!argp2) { | |
35875 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35876 | } | |
35877 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35878 | { | |
35879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35880 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
35881 | wxPyEndAllowThreads(__tstate); | |
35882 | if (PyErr_Occurred()) SWIG_fail; | |
35883 | } | |
35884 | resultobj = SWIG_Py_Void(); | |
35885 | return resultobj; | |
35886 | fail: | |
35887 | return NULL; | |
d55e5bfc RD |
35888 | } |
35889 | ||
35890 | ||
1bd55598 RD |
35891 | SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35892 | PyObject *resultobj = 0; | |
35893 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35894 | void *argp1 = 0 ; | |
35895 | int res1 = 0 ; | |
35896 | PyObject *swig_obj[1] ; | |
35897 | ||
35898 | if (!args) SWIG_fail; | |
35899 | swig_obj[0] = args; | |
35900 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35901 | if (!SWIG_IsOK(res1)) { | |
35902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35903 | } | |
35904 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35905 | { | |
35906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35907 | (arg1)->Unselect(); | |
35908 | wxPyEndAllowThreads(__tstate); | |
35909 | if (PyErr_Occurred()) SWIG_fail; | |
35910 | } | |
35911 | resultobj = SWIG_Py_Void(); | |
35912 | return resultobj; | |
35913 | fail: | |
35914 | return NULL; | |
35915 | } | |
35916 | ||
35917 | ||
35918 | SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35919 | PyObject *resultobj = 0; | |
35920 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35921 | wxTreeItemId *arg2 = 0 ; | |
35922 | void *argp1 = 0 ; | |
35923 | int res1 = 0 ; | |
35924 | void *argp2 = 0 ; | |
35925 | int res2 = 0 ; | |
35926 | PyObject * obj0 = 0 ; | |
35927 | PyObject * obj1 = 0 ; | |
35928 | char * kwnames[] = { | |
35929 | (char *) "self",(char *) "item", NULL | |
35930 | }; | |
35931 | ||
35932 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
35933 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35934 | if (!SWIG_IsOK(res1)) { | |
35935 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35936 | } | |
35937 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35938 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35939 | if (!SWIG_IsOK(res2)) { | |
35940 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35941 | } | |
35942 | if (!argp2) { | |
35943 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35944 | } | |
35945 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35946 | { | |
35947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35948 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
35949 | wxPyEndAllowThreads(__tstate); | |
35950 | if (PyErr_Occurred()) SWIG_fail; | |
35951 | } | |
35952 | resultobj = SWIG_Py_Void(); | |
35953 | return resultobj; | |
35954 | fail: | |
35955 | return NULL; | |
d55e5bfc RD |
35956 | } |
35957 | ||
35958 | ||
1bd55598 RD |
35959 | SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35960 | PyObject *resultobj = 0; | |
35961 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35962 | void *argp1 = 0 ; | |
35963 | int res1 = 0 ; | |
35964 | PyObject *swig_obj[1] ; | |
35965 | ||
35966 | if (!args) SWIG_fail; | |
35967 | swig_obj[0] = args; | |
35968 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35969 | if (!SWIG_IsOK(res1)) { | |
35970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35971 | } | |
35972 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35973 | { | |
35974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35975 | (arg1)->UnselectAll(); | |
35976 | wxPyEndAllowThreads(__tstate); | |
35977 | if (PyErr_Occurred()) SWIG_fail; | |
35978 | } | |
35979 | resultobj = SWIG_Py_Void(); | |
35980 | return resultobj; | |
35981 | fail: | |
35982 | return NULL; | |
35983 | } | |
35984 | ||
35985 | ||
35986 | SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35987 | PyObject *resultobj = 0; | |
35988 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35989 | wxTreeItemId *arg2 = 0 ; | |
35990 | bool arg3 = (bool) true ; | |
35991 | void *argp1 = 0 ; | |
35992 | int res1 = 0 ; | |
35993 | void *argp2 = 0 ; | |
35994 | int res2 = 0 ; | |
35995 | bool val3 ; | |
35996 | int ecode3 = 0 ; | |
35997 | PyObject * obj0 = 0 ; | |
35998 | PyObject * obj1 = 0 ; | |
35999 | PyObject * obj2 = 0 ; | |
36000 | char * kwnames[] = { | |
36001 | (char *) "self",(char *) "item",(char *) "select", NULL | |
36002 | }; | |
36003 | ||
36004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36005 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36006 | if (!SWIG_IsOK(res1)) { | |
36007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36008 | } | |
36009 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36010 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36011 | if (!SWIG_IsOK(res2)) { | |
36012 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36013 | } | |
36014 | if (!argp2) { | |
36015 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36016 | } | |
36017 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36018 | if (obj2) { | |
36019 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
36020 | if (!SWIG_IsOK(ecode3)) { | |
36021 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'"); | |
36022 | } | |
36023 | arg3 = static_cast< bool >(val3); | |
36024 | } | |
36025 | { | |
36026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36027 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
36028 | wxPyEndAllowThreads(__tstate); | |
36029 | if (PyErr_Occurred()) SWIG_fail; | |
36030 | } | |
36031 | resultobj = SWIG_Py_Void(); | |
36032 | return resultobj; | |
36033 | fail: | |
36034 | return NULL; | |
36035 | } | |
36036 | ||
36037 | ||
36038 | SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36039 | PyObject *resultobj = 0; | |
36040 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36041 | wxTreeItemId *arg2 = 0 ; | |
36042 | void *argp1 = 0 ; | |
36043 | int res1 = 0 ; | |
36044 | void *argp2 = 0 ; | |
36045 | int res2 = 0 ; | |
36046 | PyObject * obj0 = 0 ; | |
36047 | PyObject * obj1 = 0 ; | |
36048 | char * kwnames[] = { | |
36049 | (char *) "self",(char *) "item", NULL | |
36050 | }; | |
36051 | ||
36052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
36053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36054 | if (!SWIG_IsOK(res1)) { | |
36055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36056 | } | |
36057 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36058 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36059 | if (!SWIG_IsOK(res2)) { | |
36060 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36061 | } | |
36062 | if (!argp2) { | |
36063 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36064 | } | |
36065 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36066 | { | |
36067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36068 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
36069 | wxPyEndAllowThreads(__tstate); | |
36070 | if (PyErr_Occurred()) SWIG_fail; | |
36071 | } | |
36072 | resultobj = SWIG_Py_Void(); | |
36073 | return resultobj; | |
36074 | fail: | |
36075 | return NULL; | |
36076 | } | |
36077 | ||
36078 | ||
36079 | SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36080 | PyObject *resultobj = 0; | |
36081 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36082 | wxTreeItemId *arg2 = 0 ; | |
36083 | void *argp1 = 0 ; | |
36084 | int res1 = 0 ; | |
36085 | void *argp2 = 0 ; | |
36086 | int res2 = 0 ; | |
36087 | PyObject * obj0 = 0 ; | |
36088 | PyObject * obj1 = 0 ; | |
36089 | char * kwnames[] = { | |
36090 | (char *) "self",(char *) "item", NULL | |
36091 | }; | |
36092 | ||
36093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
36094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36095 | if (!SWIG_IsOK(res1)) { | |
36096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36097 | } | |
36098 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36099 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36100 | if (!SWIG_IsOK(res2)) { | |
36101 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36102 | } | |
36103 | if (!argp2) { | |
36104 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36105 | } | |
36106 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36107 | { | |
36108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36109 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
36110 | wxPyEndAllowThreads(__tstate); | |
36111 | if (PyErr_Occurred()) SWIG_fail; | |
36112 | } | |
36113 | resultobj = SWIG_Py_Void(); | |
36114 | return resultobj; | |
36115 | fail: | |
36116 | return NULL; | |
36117 | } | |
36118 | ||
36119 | ||
36120 | SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36121 | PyObject *resultobj = 0; | |
36122 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36123 | wxTreeItemId *arg2 = 0 ; | |
36124 | void *argp1 = 0 ; | |
36125 | int res1 = 0 ; | |
36126 | void *argp2 = 0 ; | |
36127 | int res2 = 0 ; | |
36128 | PyObject * obj0 = 0 ; | |
36129 | PyObject * obj1 = 0 ; | |
36130 | char * kwnames[] = { | |
36131 | (char *) "self",(char *) "item", NULL | |
36132 | }; | |
36133 | ||
36134 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail; | |
36135 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36136 | if (!SWIG_IsOK(res1)) { | |
36137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36138 | } | |
36139 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36140 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36141 | if (!SWIG_IsOK(res2)) { | |
36142 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36143 | } | |
36144 | if (!argp2) { | |
36145 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36146 | } | |
36147 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36148 | { | |
36149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36150 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
36151 | wxPyEndAllowThreads(__tstate); | |
36152 | if (PyErr_Occurred()) SWIG_fail; | |
36153 | } | |
36154 | resultobj = SWIG_Py_Void(); | |
36155 | return resultobj; | |
36156 | fail: | |
36157 | return NULL; | |
36158 | } | |
36159 | ||
36160 | ||
36161 | SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36162 | PyObject *resultobj = 0; | |
36163 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36164 | wxTreeItemId *arg2 = 0 ; | |
36165 | void *argp1 = 0 ; | |
36166 | int res1 = 0 ; | |
36167 | void *argp2 = 0 ; | |
36168 | int res2 = 0 ; | |
36169 | PyObject * obj0 = 0 ; | |
36170 | PyObject * obj1 = 0 ; | |
36171 | char * kwnames[] = { | |
36172 | (char *) "self",(char *) "item", NULL | |
36173 | }; | |
36174 | ||
36175 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
36176 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36177 | if (!SWIG_IsOK(res1)) { | |
36178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36179 | } | |
36180 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36181 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36182 | if (!SWIG_IsOK(res2)) { | |
36183 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36184 | } | |
36185 | if (!argp2) { | |
36186 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36187 | } | |
36188 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36189 | { | |
36190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36191 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
36192 | wxPyEndAllowThreads(__tstate); | |
36193 | if (PyErr_Occurred()) SWIG_fail; | |
36194 | } | |
36195 | resultobj = SWIG_Py_Void(); | |
36196 | return resultobj; | |
36197 | fail: | |
36198 | return NULL; | |
d55e5bfc RD |
36199 | } |
36200 | ||
36201 | ||
1bd55598 RD |
36202 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36203 | PyObject *resultobj = 0; | |
36204 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36205 | wxTextCtrl *result = 0 ; | |
36206 | void *argp1 = 0 ; | |
36207 | int res1 = 0 ; | |
36208 | PyObject *swig_obj[1] ; | |
36209 | ||
36210 | if (!args) SWIG_fail; | |
36211 | swig_obj[0] = args; | |
36212 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36213 | if (!SWIG_IsOK(res1)) { | |
36214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
36215 | } | |
36216 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36217 | { | |
36218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36219 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
36220 | wxPyEndAllowThreads(__tstate); | |
36221 | if (PyErr_Occurred()) SWIG_fail; | |
36222 | } | |
36223 | { | |
36224 | resultobj = wxPyMake_wxObject(result, 0); | |
36225 | } | |
36226 | return resultobj; | |
36227 | fail: | |
36228 | return NULL; | |
36229 | } | |
36230 | ||
36231 | ||
36232 | SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36233 | PyObject *resultobj = 0; | |
36234 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36235 | wxTreeItemId *arg2 = 0 ; | |
36236 | void *argp1 = 0 ; | |
36237 | int res1 = 0 ; | |
36238 | void *argp2 = 0 ; | |
36239 | int res2 = 0 ; | |
36240 | PyObject * obj0 = 0 ; | |
36241 | PyObject * obj1 = 0 ; | |
36242 | char * kwnames[] = { | |
36243 | (char *) "self",(char *) "item", NULL | |
36244 | }; | |
36245 | ||
36246 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
36247 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36248 | if (!SWIG_IsOK(res1)) { | |
36249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36250 | } | |
36251 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36252 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36253 | if (!SWIG_IsOK(res2)) { | |
36254 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36255 | } | |
36256 | if (!argp2) { | |
36257 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36258 | } | |
36259 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36260 | { | |
36261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36262 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
36263 | wxPyEndAllowThreads(__tstate); | |
36264 | if (PyErr_Occurred()) SWIG_fail; | |
36265 | } | |
36266 | resultobj = SWIG_Py_Void(); | |
36267 | return resultobj; | |
36268 | fail: | |
36269 | return NULL; | |
36270 | } | |
36271 | ||
36272 | ||
36273 | SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36274 | PyObject *resultobj = 0; | |
36275 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36276 | wxPoint *arg2 = 0 ; | |
36277 | int *arg3 = 0 ; | |
36278 | wxTreeItemId result; | |
36279 | void *argp1 = 0 ; | |
36280 | int res1 = 0 ; | |
36281 | wxPoint temp2 ; | |
36282 | int temp3 ; | |
36283 | int res3 = SWIG_TMPOBJ ; | |
36284 | PyObject * obj0 = 0 ; | |
36285 | PyObject * obj1 = 0 ; | |
36286 | char * kwnames[] = { | |
36287 | (char *) "self",(char *) "point", NULL | |
36288 | }; | |
36289 | ||
36290 | arg3 = &temp3; | |
36291 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
36292 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36293 | if (!SWIG_IsOK(res1)) { | |
36294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36295 | } | |
36296 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36297 | { | |
36298 | arg2 = &temp2; | |
36299 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36300 | } | |
36301 | { | |
36302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36303 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
36304 | wxPyEndAllowThreads(__tstate); | |
36305 | if (PyErr_Occurred()) SWIG_fail; | |
36306 | } | |
36307 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36308 | if (SWIG_IsTmpObj(res3)) { | |
36309 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
36310 | } else { | |
36311 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
36312 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
36313 | } | |
36314 | return resultobj; | |
36315 | fail: | |
36316 | return NULL; | |
36317 | } | |
36318 | ||
36319 | ||
36320 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36321 | PyObject *resultobj = 0; | |
36322 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36323 | wxTreeItemId *arg2 = 0 ; | |
36324 | bool arg3 = (bool) false ; | |
36325 | PyObject *result = 0 ; | |
36326 | void *argp1 = 0 ; | |
36327 | int res1 = 0 ; | |
36328 | void *argp2 = 0 ; | |
36329 | int res2 = 0 ; | |
36330 | bool val3 ; | |
36331 | int ecode3 = 0 ; | |
36332 | PyObject * obj0 = 0 ; | |
36333 | PyObject * obj1 = 0 ; | |
36334 | PyObject * obj2 = 0 ; | |
36335 | char * kwnames[] = { | |
36336 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
36337 | }; | |
36338 | ||
36339 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36340 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36341 | if (!SWIG_IsOK(res1)) { | |
36342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36343 | } | |
36344 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36345 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36346 | if (!SWIG_IsOK(res2)) { | |
36347 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36348 | } | |
36349 | if (!argp2) { | |
36350 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36351 | } | |
36352 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36353 | if (obj2) { | |
36354 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
36355 | if (!SWIG_IsOK(ecode3)) { | |
36356 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'"); | |
36357 | } | |
36358 | arg3 = static_cast< bool >(val3); | |
36359 | } | |
36360 | { | |
36361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36362 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
36363 | wxPyEndAllowThreads(__tstate); | |
36364 | if (PyErr_Occurred()) SWIG_fail; | |
36365 | } | |
36366 | resultobj = result; | |
36367 | return resultobj; | |
36368 | fail: | |
36369 | return NULL; | |
36370 | } | |
36371 | ||
36372 | ||
36373 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36374 | PyObject *resultobj = 0; | |
36375 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
36376 | SwigValueWrapper<wxVisualAttributes > result; | |
36377 | int val1 ; | |
36378 | int ecode1 = 0 ; | |
36379 | PyObject * obj0 = 0 ; | |
36380 | char * kwnames[] = { | |
36381 | (char *) "variant", NULL | |
36382 | }; | |
36383 | ||
36384 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
36385 | if (obj0) { | |
36386 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
36387 | if (!SWIG_IsOK(ecode1)) { | |
36388 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
36389 | } | |
36390 | arg1 = static_cast< wxWindowVariant >(val1); | |
36391 | } | |
36392 | { | |
36393 | if (!wxPyCheckForApp()) SWIG_fail; | |
36394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36395 | result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1); | |
36396 | wxPyEndAllowThreads(__tstate); | |
36397 | if (PyErr_Occurred()) SWIG_fail; | |
36398 | } | |
36399 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
36400 | return resultobj; | |
36401 | fail: | |
36402 | return NULL; | |
d55e5bfc RD |
36403 | } |
36404 | ||
36405 | ||
1bd55598 RD |
36406 | SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36407 | PyObject *obj; | |
36408 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
36409 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj)); | |
36410 | return SWIG_Py_Void(); | |
d55e5bfc RD |
36411 | } |
36412 | ||
1bd55598 RD |
36413 | SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36414 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
36415 | } |
36416 | ||
1bd55598 RD |
36417 | SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) { |
36418 | SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
36419 | return 1; | |
d55e5bfc RD |
36420 | } |
36421 | ||
36422 | ||
1bd55598 RD |
36423 | SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) { |
36424 | PyObject *pyobj = 0; | |
36425 | ||
36426 | { | |
36427 | #if wxUSE_UNICODE | |
36428 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
36429 | #else | |
36430 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
36431 | #endif | |
36432 | } | |
36433 | return pyobj; | |
36434 | } | |
36435 | ||
36436 | ||
36437 | SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36438 | PyObject *resultobj = 0; | |
36439 | wxWindow *arg1 = (wxWindow *) 0 ; | |
36440 | int arg2 = (int) (int)-1 ; | |
36441 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
36442 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
36443 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
36444 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
36445 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
36446 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
36447 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
36448 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
36449 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
36450 | int arg8 = (int) 0 ; | |
36451 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
36452 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
36453 | wxGenericDirCtrl *result = 0 ; | |
36454 | void *argp1 = 0 ; | |
36455 | int res1 = 0 ; | |
36456 | int val2 ; | |
36457 | int ecode2 = 0 ; | |
36458 | bool temp3 = false ; | |
36459 | wxPoint temp4 ; | |
36460 | wxSize temp5 ; | |
36461 | long val6 ; | |
36462 | int ecode6 = 0 ; | |
36463 | bool temp7 = false ; | |
36464 | int val8 ; | |
36465 | int ecode8 = 0 ; | |
36466 | bool temp9 = false ; | |
36467 | PyObject * obj0 = 0 ; | |
36468 | PyObject * obj1 = 0 ; | |
36469 | PyObject * obj2 = 0 ; | |
36470 | PyObject * obj3 = 0 ; | |
36471 | PyObject * obj4 = 0 ; | |
36472 | PyObject * obj5 = 0 ; | |
36473 | PyObject * obj6 = 0 ; | |
36474 | PyObject * obj7 = 0 ; | |
36475 | PyObject * obj8 = 0 ; | |
36476 | char * kwnames[] = { | |
36477 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
36478 | }; | |
36479 | ||
36480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
36481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
36482 | if (!SWIG_IsOK(res1)) { | |
36483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
36484 | } | |
36485 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
36486 | if (obj1) { | |
36487 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36488 | if (!SWIG_IsOK(ecode2)) { | |
36489 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'"); | |
36490 | } | |
36491 | arg2 = static_cast< int >(val2); | |
36492 | } | |
36493 | if (obj2) { | |
36ed4f51 | 36494 | { |
1bd55598 RD |
36495 | arg3 = wxString_in_helper(obj2); |
36496 | if (arg3 == NULL) SWIG_fail; | |
36497 | temp3 = true; | |
36ed4f51 | 36498 | } |
1bd55598 RD |
36499 | } |
36500 | if (obj3) { | |
d55e5bfc | 36501 | { |
1bd55598 RD |
36502 | arg4 = &temp4; |
36503 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 36504 | } |
1bd55598 RD |
36505 | } |
36506 | if (obj4) { | |
36ed4f51 | 36507 | { |
1bd55598 RD |
36508 | arg5 = &temp5; |
36509 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 36510 | } |
1bd55598 RD |
36511 | } |
36512 | if (obj5) { | |
36513 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
36514 | if (!SWIG_IsOK(ecode6)) { | |
36515 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'"); | |
36516 | } | |
36517 | arg6 = static_cast< long >(val6); | |
36518 | } | |
36519 | if (obj6) { | |
36ed4f51 | 36520 | { |
1bd55598 RD |
36521 | arg7 = wxString_in_helper(obj6); |
36522 | if (arg7 == NULL) SWIG_fail; | |
36523 | temp7 = true; | |
36ed4f51 | 36524 | } |
1bd55598 RD |
36525 | } |
36526 | if (obj7) { | |
36527 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
36528 | if (!SWIG_IsOK(ecode8)) { | |
36529 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'"); | |
36530 | } | |
36531 | arg8 = static_cast< int >(val8); | |
36532 | } | |
36533 | if (obj8) { | |
d55e5bfc | 36534 | { |
1bd55598 RD |
36535 | arg9 = wxString_in_helper(obj8); |
36536 | if (arg9 == NULL) SWIG_fail; | |
36537 | temp9 = true; | |
d55e5bfc | 36538 | } |
1bd55598 RD |
36539 | } |
36540 | { | |
36541 | if (!wxPyCheckForApp()) SWIG_fail; | |
36542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36543 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
36544 | wxPyEndAllowThreads(__tstate); | |
36545 | if (PyErr_Occurred()) SWIG_fail; | |
36546 | } | |
36547 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 ); | |
36548 | { | |
36549 | if (temp3) | |
36550 | delete arg3; | |
36551 | } | |
36552 | { | |
36553 | if (temp7) | |
36554 | delete arg7; | |
36555 | } | |
36556 | { | |
36557 | if (temp9) | |
36558 | delete arg9; | |
36559 | } | |
36560 | return resultobj; | |
36561 | fail: | |
36562 | { | |
36563 | if (temp3) | |
36564 | delete arg3; | |
36565 | } | |
36566 | { | |
36567 | if (temp7) | |
36568 | delete arg7; | |
36569 | } | |
36570 | { | |
36571 | if (temp9) | |
36572 | delete arg9; | |
36573 | } | |
36574 | return NULL; | |
d55e5bfc RD |
36575 | } |
36576 | ||
36577 | ||
1bd55598 RD |
36578 | SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36579 | PyObject *resultobj = 0; | |
36580 | wxGenericDirCtrl *result = 0 ; | |
36581 | ||
36582 | if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail; | |
36583 | { | |
36584 | if (!wxPyCheckForApp()) SWIG_fail; | |
36585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36586 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
36587 | wxPyEndAllowThreads(__tstate); | |
36588 | if (PyErr_Occurred()) SWIG_fail; | |
36589 | } | |
36590 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 ); | |
36591 | return resultobj; | |
36592 | fail: | |
36593 | return NULL; | |
36594 | } | |
36595 | ||
36596 | ||
36597 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36598 | PyObject *resultobj = 0; | |
36599 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
36600 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36601 | int arg3 = (int) (int)-1 ; | |
36602 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
36603 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
36604 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
36605 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
36606 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
36607 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
36608 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
36609 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
36610 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
36611 | int arg9 = (int) 0 ; | |
36612 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
36613 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
36614 | bool result; | |
36615 | void *argp1 = 0 ; | |
36616 | int res1 = 0 ; | |
36617 | void *argp2 = 0 ; | |
36618 | int res2 = 0 ; | |
36619 | int val3 ; | |
36620 | int ecode3 = 0 ; | |
36621 | bool temp4 = false ; | |
36622 | wxPoint temp5 ; | |
36623 | wxSize temp6 ; | |
36624 | long val7 ; | |
36625 | int ecode7 = 0 ; | |
36626 | bool temp8 = false ; | |
36627 | int val9 ; | |
36628 | int ecode9 = 0 ; | |
36629 | bool temp10 = false ; | |
36630 | PyObject * obj0 = 0 ; | |
36631 | PyObject * obj1 = 0 ; | |
36632 | PyObject * obj2 = 0 ; | |
36633 | PyObject * obj3 = 0 ; | |
36634 | PyObject * obj4 = 0 ; | |
36635 | PyObject * obj5 = 0 ; | |
36636 | PyObject * obj6 = 0 ; | |
36637 | PyObject * obj7 = 0 ; | |
36638 | PyObject * obj8 = 0 ; | |
36639 | PyObject * obj9 = 0 ; | |
36640 | char * kwnames[] = { | |
36641 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
36642 | }; | |
36643 | ||
36644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
36645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
36646 | if (!SWIG_IsOK(res1)) { | |
36647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
36648 | } | |
36649 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
36650 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
36651 | if (!SWIG_IsOK(res2)) { | |
36652 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
36653 | } | |
36654 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
36655 | if (obj2) { | |
36656 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36657 | if (!SWIG_IsOK(ecode3)) { | |
36658 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
36659 | } | |
36660 | arg3 = static_cast< int >(val3); | |
36661 | } | |
36662 | if (obj3) { | |
36ed4f51 | 36663 | { |
1bd55598 RD |
36664 | arg4 = wxString_in_helper(obj3); |
36665 | if (arg4 == NULL) SWIG_fail; | |
36666 | temp4 = true; | |
36ed4f51 | 36667 | } |
1bd55598 RD |
36668 | } |
36669 | if (obj4) { | |
36ed4f51 | 36670 | { |
1bd55598 RD |
36671 | arg5 = &temp5; |
36672 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 36673 | } |
1bd55598 RD |
36674 | } |
36675 | if (obj5) { | |
d55e5bfc | 36676 | { |
1bd55598 RD |
36677 | arg6 = &temp6; |
36678 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 36679 | } |
1bd55598 RD |
36680 | } |
36681 | if (obj6) { | |
36682 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
36683 | if (!SWIG_IsOK(ecode7)) { | |
36684 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
36685 | } | |
36686 | arg7 = static_cast< long >(val7); | |
36687 | } | |
36688 | if (obj7) { | |
d55e5bfc | 36689 | { |
1bd55598 RD |
36690 | arg8 = wxString_in_helper(obj7); |
36691 | if (arg8 == NULL) SWIG_fail; | |
36692 | temp8 = true; | |
d55e5bfc | 36693 | } |
1bd55598 RD |
36694 | } |
36695 | if (obj8) { | |
36696 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
36697 | if (!SWIG_IsOK(ecode9)) { | |
36698 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'"); | |
36699 | } | |
36700 | arg9 = static_cast< int >(val9); | |
36701 | } | |
36702 | if (obj9) { | |
36ed4f51 | 36703 | { |
1bd55598 RD |
36704 | arg10 = wxString_in_helper(obj9); |
36705 | if (arg10 == NULL) SWIG_fail; | |
36706 | temp10 = true; | |
36ed4f51 | 36707 | } |
1bd55598 RD |
36708 | } |
36709 | { | |
36710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36711 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
36712 | wxPyEndAllowThreads(__tstate); | |
36713 | if (PyErr_Occurred()) SWIG_fail; | |
36714 | } | |
36715 | { | |
36716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36717 | } | |
36718 | { | |
36719 | if (temp4) | |
36720 | delete arg4; | |
36721 | } | |
36722 | { | |
36723 | if (temp8) | |
36724 | delete arg8; | |
36725 | } | |
36726 | { | |
36727 | if (temp10) | |
36728 | delete arg10; | |
36729 | } | |
36730 | return resultobj; | |
36731 | fail: | |
36732 | { | |
36733 | if (temp4) | |
36734 | delete arg4; | |
36735 | } | |
36736 | { | |
36737 | if (temp8) | |
36738 | delete arg8; | |
36739 | } | |
36740 | { | |
36741 | if (temp10) | |
36742 | delete arg10; | |
36743 | } | |
36744 | return NULL; | |
36745 | } | |
36746 | ||
36747 | ||
36748 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36749 | PyObject *resultobj = 0; | |
36750 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
36751 | wxString *arg2 = 0 ; | |
36752 | bool result; | |
36753 | void *argp1 = 0 ; | |
36754 | int res1 = 0 ; | |
36755 | bool temp2 = false ; | |
36756 | PyObject * obj0 = 0 ; | |
36757 | PyObject * obj1 = 0 ; | |
36758 | char * kwnames[] = { | |
36759 | (char *) "self",(char *) "path", NULL | |
36760 | }; | |
36761 | ||
36762 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
36763 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
36764 | if (!SWIG_IsOK(res1)) { | |
36765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
36766 | } | |
36767 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
36768 | { | |
36769 | arg2 = wxString_in_helper(obj1); | |
36770 | if (arg2 == NULL) SWIG_fail; | |
36771 | temp2 = true; | |
36772 | } | |
36773 | { | |
36774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36775 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
36776 | wxPyEndAllowThreads(__tstate); | |
36777 | if (PyErr_Occurred()) SWIG_fail; | |
36778 | } | |
36779 | { | |
36780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36781 | } | |
36782 | { | |
36783 | if (temp2) | |
36784 | delete arg2; | |
36785 | } | |
36786 | return resultobj; | |
36787 | fail: | |
36788 | { | |
36789 | if (temp2) | |
36790 | delete arg2; | |
36791 | } | |
36792 | return NULL; | |
d55e5bfc RD |
36793 | } |
36794 | ||
36795 | ||
1bd55598 RD |
36796 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36797 | PyObject *resultobj = 0; | |
36798 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
36799 | wxString result; | |
36800 | void *argp1 = 0 ; | |
36801 | int res1 = 0 ; | |
36802 | PyObject *swig_obj[1] ; | |
36803 | ||
36804 | if (!args) SWIG_fail; | |
36805 | swig_obj[0] = args; | |
36806 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
36807 | if (!SWIG_IsOK(res1)) { | |
36808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
36809 | } | |
36810 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
36811 | { | |
36812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36813 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
36814 | wxPyEndAllowThreads(__tstate); | |
36815 | if (PyErr_Occurred()) SWIG_fail; | |
36816 | } | |
36817 | { | |
36818 | #if wxUSE_UNICODE | |
36819 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
36820 | #else | |
36821 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
36822 | #endif | |
36823 | } | |
36824 | return resultobj; | |
36825 | fail: | |
36826 | return NULL; | |
36827 | } | |
36828 | ||
36829 | ||
36830 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36831 | PyObject *resultobj = 0; | |
36832 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
36833 | wxString *arg2 = 0 ; | |
36834 | void *argp1 = 0 ; | |
36835 | int res1 = 0 ; | |
36836 | bool temp2 = false ; | |
36837 | PyObject * obj0 = 0 ; | |
36838 | PyObject * obj1 = 0 ; | |
36839 | char * kwnames[] = { | |
36840 | (char *) "self",(char *) "path", NULL | |
36841 | }; | |
36842 | ||
36843 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
36844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
36845 | if (!SWIG_IsOK(res1)) { | |
36846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
36847 | } | |
36848 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
36849 | { | |
36850 | arg2 = wxString_in_helper(obj1); | |
36851 | if (arg2 == NULL) SWIG_fail; | |
36852 | temp2 = true; | |
36853 | } | |
36854 | { | |
36855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36856 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
36857 | wxPyEndAllowThreads(__tstate); | |
36858 | if (PyErr_Occurred()) SWIG_fail; | |
36859 | } | |
36860 | resultobj = SWIG_Py_Void(); | |
36861 | { | |
36862 | if (temp2) | |
36863 | delete arg2; | |
36864 | } | |
36865 | return resultobj; | |
36866 | fail: | |
36867 | { | |
36868 | if (temp2) | |
36869 | delete arg2; | |
36870 | } | |
36871 | return NULL; | |
d55e5bfc RD |
36872 | } |
36873 | ||
36874 | ||
1bd55598 RD |
36875 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36876 | PyObject *resultobj = 0; | |
36877 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
36878 | wxString result; | |
36879 | void *argp1 = 0 ; | |
36880 | int res1 = 0 ; | |
36881 | PyObject *swig_obj[1] ; | |
36882 | ||
36883 | if (!args) SWIG_fail; | |
36884 | swig_obj[0] = args; | |
36885 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
36886 | if (!SWIG_IsOK(res1)) { | |
36887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
36888 | } | |
36889 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
36890 | { | |
36891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36892 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
36893 | wxPyEndAllowThreads(__tstate); | |
36894 | if (PyErr_Occurred()) SWIG_fail; | |
36895 | } | |
36896 | { | |
36897 | #if wxUSE_UNICODE | |
36898 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
36899 | #else | |
36900 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
36901 | #endif | |
36902 | } | |
36903 | return resultobj; | |
36904 | fail: | |
36905 | return NULL; | |
d55e5bfc RD |
36906 | } |
36907 | ||
36908 | ||
1bd55598 RD |
36909 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36910 | PyObject *resultobj = 0; | |
36911 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
36912 | wxString result; | |
36913 | void *argp1 = 0 ; | |
36914 | int res1 = 0 ; | |
36915 | PyObject *swig_obj[1] ; | |
36916 | ||
36917 | if (!args) SWIG_fail; | |
36918 | swig_obj[0] = args; | |
36919 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
36920 | if (!SWIG_IsOK(res1)) { | |
36921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
36922 | } | |
36923 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
36924 | { | |
36925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36926 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
36927 | wxPyEndAllowThreads(__tstate); | |
36928 | if (PyErr_Occurred()) SWIG_fail; | |
36929 | } | |
36930 | { | |
36931 | #if wxUSE_UNICODE | |
36932 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
36933 | #else | |
36934 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
36935 | #endif | |
36936 | } | |
36937 | return resultobj; | |
36938 | fail: | |
36939 | return NULL; | |
36940 | } | |
36941 | ||
36942 | ||
36943 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36944 | PyObject *resultobj = 0; | |
36945 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
36946 | wxString *arg2 = 0 ; | |
36947 | void *argp1 = 0 ; | |
36948 | int res1 = 0 ; | |
36949 | bool temp2 = false ; | |
36950 | PyObject * obj0 = 0 ; | |
36951 | PyObject * obj1 = 0 ; | |
36952 | char * kwnames[] = { | |
36953 | (char *) "self",(char *) "path", NULL | |
36954 | }; | |
36955 | ||
36956 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
36957 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
36958 | if (!SWIG_IsOK(res1)) { | |
36959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
36960 | } | |
36961 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
36962 | { | |
36963 | arg2 = wxString_in_helper(obj1); | |
36964 | if (arg2 == NULL) SWIG_fail; | |
36965 | temp2 = true; | |
36966 | } | |
36967 | { | |
36968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36969 | (arg1)->SetPath((wxString const &)*arg2); | |
36970 | wxPyEndAllowThreads(__tstate); | |
36971 | if (PyErr_Occurred()) SWIG_fail; | |
36972 | } | |
36973 | resultobj = SWIG_Py_Void(); | |
36974 | { | |
36975 | if (temp2) | |
36976 | delete arg2; | |
36977 | } | |
36978 | return resultobj; | |
36979 | fail: | |
36980 | { | |
36981 | if (temp2) | |
36982 | delete arg2; | |
36983 | } | |
36984 | return NULL; | |
36985 | } | |
36986 | ||
36987 | ||
36988 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36989 | PyObject *resultobj = 0; | |
36990 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
36991 | bool arg2 ; | |
36992 | void *argp1 = 0 ; | |
36993 | int res1 = 0 ; | |
36994 | bool val2 ; | |
36995 | int ecode2 = 0 ; | |
36996 | PyObject * obj0 = 0 ; | |
36997 | PyObject * obj1 = 0 ; | |
36998 | char * kwnames[] = { | |
36999 | (char *) "self",(char *) "show", NULL | |
37000 | }; | |
37001 | ||
37002 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail; | |
37003 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37004 | if (!SWIG_IsOK(res1)) { | |
37005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37006 | } | |
37007 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37008 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
37009 | if (!SWIG_IsOK(ecode2)) { | |
37010 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'"); | |
37011 | } | |
37012 | arg2 = static_cast< bool >(val2); | |
37013 | { | |
37014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37015 | (arg1)->ShowHidden(arg2); | |
37016 | wxPyEndAllowThreads(__tstate); | |
37017 | if (PyErr_Occurred()) SWIG_fail; | |
37018 | } | |
37019 | resultobj = SWIG_Py_Void(); | |
37020 | return resultobj; | |
37021 | fail: | |
37022 | return NULL; | |
d55e5bfc RD |
37023 | } |
37024 | ||
37025 | ||
1bd55598 RD |
37026 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37027 | PyObject *resultobj = 0; | |
37028 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37029 | bool result; | |
37030 | void *argp1 = 0 ; | |
37031 | int res1 = 0 ; | |
37032 | PyObject *swig_obj[1] ; | |
37033 | ||
37034 | if (!args) SWIG_fail; | |
37035 | swig_obj[0] = args; | |
37036 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37037 | if (!SWIG_IsOK(res1)) { | |
37038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37039 | } | |
37040 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37041 | { | |
37042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37043 | result = (bool)(arg1)->GetShowHidden(); | |
37044 | wxPyEndAllowThreads(__tstate); | |
37045 | if (PyErr_Occurred()) SWIG_fail; | |
37046 | } | |
37047 | { | |
37048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37049 | } | |
37050 | return resultobj; | |
37051 | fail: | |
37052 | return NULL; | |
d55e5bfc RD |
37053 | } |
37054 | ||
37055 | ||
1bd55598 RD |
37056 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37057 | PyObject *resultobj = 0; | |
37058 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37059 | wxString result; | |
37060 | void *argp1 = 0 ; | |
37061 | int res1 = 0 ; | |
37062 | PyObject *swig_obj[1] ; | |
37063 | ||
37064 | if (!args) SWIG_fail; | |
37065 | swig_obj[0] = args; | |
37066 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37067 | if (!SWIG_IsOK(res1)) { | |
37068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37069 | } | |
37070 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37071 | { | |
37072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37073 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
37074 | wxPyEndAllowThreads(__tstate); | |
37075 | if (PyErr_Occurred()) SWIG_fail; | |
37076 | } | |
37077 | { | |
37078 | #if wxUSE_UNICODE | |
37079 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
37080 | #else | |
37081 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
37082 | #endif | |
37083 | } | |
37084 | return resultobj; | |
37085 | fail: | |
37086 | return NULL; | |
37087 | } | |
37088 | ||
37089 | ||
37090 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37091 | PyObject *resultobj = 0; | |
37092 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37093 | wxString *arg2 = 0 ; | |
37094 | void *argp1 = 0 ; | |
37095 | int res1 = 0 ; | |
37096 | bool temp2 = false ; | |
37097 | PyObject * obj0 = 0 ; | |
37098 | PyObject * obj1 = 0 ; | |
37099 | char * kwnames[] = { | |
37100 | (char *) "self",(char *) "filter", NULL | |
37101 | }; | |
37102 | ||
37103 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail; | |
37104 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37105 | if (!SWIG_IsOK(res1)) { | |
37106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37107 | } | |
37108 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37109 | { | |
37110 | arg2 = wxString_in_helper(obj1); | |
37111 | if (arg2 == NULL) SWIG_fail; | |
37112 | temp2 = true; | |
37113 | } | |
37114 | { | |
37115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37116 | (arg1)->SetFilter((wxString const &)*arg2); | |
37117 | wxPyEndAllowThreads(__tstate); | |
37118 | if (PyErr_Occurred()) SWIG_fail; | |
37119 | } | |
37120 | resultobj = SWIG_Py_Void(); | |
37121 | { | |
37122 | if (temp2) | |
37123 | delete arg2; | |
37124 | } | |
37125 | return resultobj; | |
37126 | fail: | |
37127 | { | |
37128 | if (temp2) | |
37129 | delete arg2; | |
37130 | } | |
37131 | return NULL; | |
d55e5bfc RD |
37132 | } |
37133 | ||
37134 | ||
1bd55598 RD |
37135 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37136 | PyObject *resultobj = 0; | |
37137 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37138 | int result; | |
37139 | void *argp1 = 0 ; | |
37140 | int res1 = 0 ; | |
37141 | PyObject *swig_obj[1] ; | |
37142 | ||
37143 | if (!args) SWIG_fail; | |
37144 | swig_obj[0] = args; | |
37145 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37146 | if (!SWIG_IsOK(res1)) { | |
37147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37148 | } | |
37149 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37150 | { | |
37151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37152 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
37153 | wxPyEndAllowThreads(__tstate); | |
37154 | if (PyErr_Occurred()) SWIG_fail; | |
37155 | } | |
37156 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
37157 | return resultobj; | |
37158 | fail: | |
37159 | return NULL; | |
37160 | } | |
37161 | ||
37162 | ||
37163 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37164 | PyObject *resultobj = 0; | |
37165 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37166 | int arg2 ; | |
37167 | void *argp1 = 0 ; | |
37168 | int res1 = 0 ; | |
37169 | int val2 ; | |
37170 | int ecode2 = 0 ; | |
37171 | PyObject * obj0 = 0 ; | |
37172 | PyObject * obj1 = 0 ; | |
37173 | char * kwnames[] = { | |
37174 | (char *) "self",(char *) "n", NULL | |
37175 | }; | |
37176 | ||
37177 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
37178 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37179 | if (!SWIG_IsOK(res1)) { | |
37180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37181 | } | |
37182 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37183 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37184 | if (!SWIG_IsOK(ecode2)) { | |
37185 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'"); | |
37186 | } | |
37187 | arg2 = static_cast< int >(val2); | |
37188 | { | |
37189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37190 | (arg1)->SetFilterIndex(arg2); | |
37191 | wxPyEndAllowThreads(__tstate); | |
37192 | if (PyErr_Occurred()) SWIG_fail; | |
37193 | } | |
37194 | resultobj = SWIG_Py_Void(); | |
37195 | return resultobj; | |
37196 | fail: | |
37197 | return NULL; | |
d55e5bfc RD |
37198 | } |
37199 | ||
37200 | ||
1bd55598 RD |
37201 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37202 | PyObject *resultobj = 0; | |
37203 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37204 | wxTreeItemId result; | |
37205 | void *argp1 = 0 ; | |
37206 | int res1 = 0 ; | |
37207 | PyObject *swig_obj[1] ; | |
37208 | ||
37209 | if (!args) SWIG_fail; | |
37210 | swig_obj[0] = args; | |
37211 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37212 | if (!SWIG_IsOK(res1)) { | |
37213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37214 | } | |
37215 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37216 | { | |
37217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37218 | result = (arg1)->GetRootId(); | |
37219 | wxPyEndAllowThreads(__tstate); | |
37220 | if (PyErr_Occurred()) SWIG_fail; | |
37221 | } | |
37222 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
37223 | return resultobj; | |
37224 | fail: | |
37225 | return NULL; | |
d55e5bfc RD |
37226 | } |
37227 | ||
37228 | ||
1bd55598 RD |
37229 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37230 | PyObject *resultobj = 0; | |
37231 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37232 | wxPyTreeCtrl *result = 0 ; | |
37233 | void *argp1 = 0 ; | |
37234 | int res1 = 0 ; | |
37235 | PyObject *swig_obj[1] ; | |
37236 | ||
37237 | if (!args) SWIG_fail; | |
37238 | swig_obj[0] = args; | |
37239 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37240 | if (!SWIG_IsOK(res1)) { | |
37241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37242 | } | |
37243 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37244 | { | |
37245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37246 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
37247 | wxPyEndAllowThreads(__tstate); | |
37248 | if (PyErr_Occurred()) SWIG_fail; | |
37249 | } | |
37250 | { | |
37251 | resultobj = wxPyMake_wxObject(result, 0); | |
37252 | } | |
37253 | return resultobj; | |
37254 | fail: | |
37255 | return NULL; | |
d55e5bfc RD |
37256 | } |
37257 | ||
37258 | ||
1bd55598 RD |
37259 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37260 | PyObject *resultobj = 0; | |
37261 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37262 | wxDirFilterListCtrl *result = 0 ; | |
37263 | void *argp1 = 0 ; | |
37264 | int res1 = 0 ; | |
37265 | PyObject *swig_obj[1] ; | |
37266 | ||
37267 | if (!args) SWIG_fail; | |
37268 | swig_obj[0] = args; | |
37269 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37270 | if (!SWIG_IsOK(res1)) { | |
37271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37272 | } | |
37273 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37274 | { | |
37275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37276 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
37277 | wxPyEndAllowThreads(__tstate); | |
37278 | if (PyErr_Occurred()) SWIG_fail; | |
37279 | } | |
37280 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
37281 | return resultobj; | |
37282 | fail: | |
37283 | return NULL; | |
37284 | } | |
37285 | ||
37286 | ||
37287 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37288 | PyObject *resultobj = 0; | |
37289 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37290 | wxTreeItemId arg2 ; | |
37291 | wxString *arg3 = 0 ; | |
37292 | bool *arg4 = 0 ; | |
37293 | wxTreeItemId result; | |
37294 | void *argp1 = 0 ; | |
37295 | int res1 = 0 ; | |
37296 | void *argp2 ; | |
37297 | int res2 = 0 ; | |
37298 | bool temp3 = false ; | |
37299 | bool temp4 ; | |
37300 | int res4 = SWIG_TMPOBJ ; | |
37301 | PyObject * obj0 = 0 ; | |
37302 | PyObject * obj1 = 0 ; | |
37303 | PyObject * obj2 = 0 ; | |
37304 | char * kwnames[] = { | |
37305 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
37306 | }; | |
37307 | ||
37308 | arg4 = &temp4; | |
37309 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37310 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37311 | if (!SWIG_IsOK(res1)) { | |
37312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37313 | } | |
37314 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37315 | { | |
37316 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37317 | if (!SWIG_IsOK(res2)) { | |
37318 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'"); | |
37319 | } | |
37320 | if (!argp2) { | |
37321 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'"); | |
37322 | } else { | |
37323 | wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2); | |
37324 | arg2 = *temp; | |
37325 | if (SWIG_IsNewObj(res2)) delete temp; | |
d55e5bfc | 37326 | } |
1bd55598 RD |
37327 | } |
37328 | { | |
37329 | arg3 = wxString_in_helper(obj2); | |
37330 | if (arg3 == NULL) SWIG_fail; | |
37331 | temp3 = true; | |
37332 | } | |
37333 | { | |
37334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37335 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
37336 | wxPyEndAllowThreads(__tstate); | |
37337 | if (PyErr_Occurred()) SWIG_fail; | |
37338 | } | |
37339 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
37340 | if (SWIG_IsTmpObj(res4)) { | |
37341 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4))); | |
37342 | } else { | |
37343 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
37344 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags)); | |
37345 | } | |
37346 | { | |
37347 | if (temp3) | |
37348 | delete arg3; | |
37349 | } | |
37350 | return resultobj; | |
37351 | fail: | |
37352 | { | |
37353 | if (temp3) | |
37354 | delete arg3; | |
37355 | } | |
37356 | return NULL; | |
d55e5bfc RD |
37357 | } |
37358 | ||
37359 | ||
1bd55598 RD |
37360 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37361 | PyObject *resultobj = 0; | |
37362 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37363 | void *argp1 = 0 ; | |
37364 | int res1 = 0 ; | |
37365 | PyObject *swig_obj[1] ; | |
37366 | ||
37367 | if (!args) SWIG_fail; | |
37368 | swig_obj[0] = args; | |
37369 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37370 | if (!SWIG_IsOK(res1)) { | |
37371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37372 | } | |
37373 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37374 | { | |
37375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37376 | (arg1)->DoResize(); | |
37377 | wxPyEndAllowThreads(__tstate); | |
37378 | if (PyErr_Occurred()) SWIG_fail; | |
37379 | } | |
37380 | resultobj = SWIG_Py_Void(); | |
37381 | return resultobj; | |
37382 | fail: | |
37383 | return NULL; | |
37384 | } | |
37385 | ||
37386 | ||
37387 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37388 | PyObject *resultobj = 0; | |
37389 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37390 | void *argp1 = 0 ; | |
37391 | int res1 = 0 ; | |
37392 | PyObject *swig_obj[1] ; | |
37393 | ||
37394 | if (!args) SWIG_fail; | |
37395 | swig_obj[0] = args; | |
37396 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37397 | if (!SWIG_IsOK(res1)) { | |
37398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37399 | } | |
37400 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37401 | { | |
37402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37403 | (arg1)->ReCreateTree(); | |
37404 | wxPyEndAllowThreads(__tstate); | |
37405 | if (PyErr_Occurred()) SWIG_fail; | |
37406 | } | |
37407 | resultobj = SWIG_Py_Void(); | |
37408 | return resultobj; | |
37409 | fail: | |
37410 | return NULL; | |
37411 | } | |
37412 | ||
37413 | ||
37414 | SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37415 | PyObject *obj; | |
37416 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
37417 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj)); | |
37418 | return SWIG_Py_Void(); | |
37419 | } | |
37420 | ||
37421 | SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37422 | return SWIG_Python_InitShadowInstance(args); | |
37423 | } | |
37424 | ||
37425 | SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37426 | PyObject *resultobj = 0; | |
37427 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37428 | int arg2 = (int) (int)-1 ; | |
37429 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
37430 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
37431 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
37432 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
37433 | long arg5 = (long) 0 ; | |
37434 | wxDirFilterListCtrl *result = 0 ; | |
37435 | void *argp1 = 0 ; | |
37436 | int res1 = 0 ; | |
37437 | int val2 ; | |
37438 | int ecode2 = 0 ; | |
37439 | wxPoint temp3 ; | |
37440 | wxSize temp4 ; | |
37441 | long val5 ; | |
37442 | int ecode5 = 0 ; | |
37443 | PyObject * obj0 = 0 ; | |
37444 | PyObject * obj1 = 0 ; | |
37445 | PyObject * obj2 = 0 ; | |
37446 | PyObject * obj3 = 0 ; | |
37447 | PyObject * obj4 = 0 ; | |
37448 | char * kwnames[] = { | |
37449 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
37450 | }; | |
37451 | ||
37452 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37453 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37454 | if (!SWIG_IsOK(res1)) { | |
37455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37456 | } | |
37457 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37458 | if (obj1) { | |
37459 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37460 | if (!SWIG_IsOK(ecode2)) { | |
37461 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'"); | |
37462 | } | |
37463 | arg2 = static_cast< int >(val2); | |
37464 | } | |
37465 | if (obj2) { | |
d55e5bfc | 37466 | { |
1bd55598 RD |
37467 | arg3 = &temp3; |
37468 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 37469 | } |
1bd55598 RD |
37470 | } |
37471 | if (obj3) { | |
d55e5bfc | 37472 | { |
1bd55598 RD |
37473 | arg4 = &temp4; |
37474 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 37475 | } |
1bd55598 RD |
37476 | } |
37477 | if (obj4) { | |
37478 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
37479 | if (!SWIG_IsOK(ecode5)) { | |
37480 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'"); | |
37481 | } | |
37482 | arg5 = static_cast< long >(val5); | |
37483 | } | |
37484 | { | |
37485 | if (!wxPyCheckForApp()) SWIG_fail; | |
37486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37487 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
37488 | wxPyEndAllowThreads(__tstate); | |
37489 | if (PyErr_Occurred()) SWIG_fail; | |
37490 | } | |
37491 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 ); | |
37492 | return resultobj; | |
37493 | fail: | |
37494 | return NULL; | |
d55e5bfc RD |
37495 | } |
37496 | ||
37497 | ||
1bd55598 RD |
37498 | SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37499 | PyObject *resultobj = 0; | |
37500 | wxDirFilterListCtrl *result = 0 ; | |
37501 | ||
37502 | if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail; | |
37503 | { | |
37504 | if (!wxPyCheckForApp()) SWIG_fail; | |
37505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37506 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
37507 | wxPyEndAllowThreads(__tstate); | |
37508 | if (PyErr_Occurred()) SWIG_fail; | |
37509 | } | |
37510 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 ); | |
37511 | return resultobj; | |
37512 | fail: | |
37513 | return NULL; | |
37514 | } | |
37515 | ||
37516 | ||
37517 | SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37518 | PyObject *resultobj = 0; | |
37519 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
37520 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
37521 | int arg3 = (int) (int)-1 ; | |
37522 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
37523 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
37524 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
37525 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
37526 | long arg6 = (long) 0 ; | |
37527 | bool result; | |
37528 | void *argp1 = 0 ; | |
37529 | int res1 = 0 ; | |
37530 | void *argp2 = 0 ; | |
37531 | int res2 = 0 ; | |
37532 | int val3 ; | |
37533 | int ecode3 = 0 ; | |
37534 | wxPoint temp4 ; | |
37535 | wxSize temp5 ; | |
37536 | long val6 ; | |
37537 | int ecode6 = 0 ; | |
37538 | PyObject * obj0 = 0 ; | |
37539 | PyObject * obj1 = 0 ; | |
37540 | PyObject * obj2 = 0 ; | |
37541 | PyObject * obj3 = 0 ; | |
37542 | PyObject * obj4 = 0 ; | |
37543 | PyObject * obj5 = 0 ; | |
37544 | char * kwnames[] = { | |
37545 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
37546 | }; | |
37547 | ||
37548 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
37549 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
37550 | if (!SWIG_IsOK(res1)) { | |
37551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'"); | |
37552 | } | |
37553 | arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1); | |
37554 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37555 | if (!SWIG_IsOK(res2)) { | |
37556 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'"); | |
37557 | } | |
37558 | arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2); | |
37559 | if (obj2) { | |
37560 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37561 | if (!SWIG_IsOK(ecode3)) { | |
37562 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
37563 | } | |
37564 | arg3 = static_cast< int >(val3); | |
37565 | } | |
37566 | if (obj3) { | |
36ed4f51 | 37567 | { |
1bd55598 RD |
37568 | arg4 = &temp4; |
37569 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 37570 | } |
1bd55598 RD |
37571 | } |
37572 | if (obj4) { | |
36ed4f51 | 37573 | { |
1bd55598 RD |
37574 | arg5 = &temp5; |
37575 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 37576 | } |
1bd55598 RD |
37577 | } |
37578 | if (obj5) { | |
37579 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
37580 | if (!SWIG_IsOK(ecode6)) { | |
37581 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
37582 | } | |
37583 | arg6 = static_cast< long >(val6); | |
37584 | } | |
37585 | { | |
37586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37587 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
37588 | wxPyEndAllowThreads(__tstate); | |
37589 | if (PyErr_Occurred()) SWIG_fail; | |
37590 | } | |
37591 | { | |
37592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37593 | } | |
37594 | return resultobj; | |
37595 | fail: | |
37596 | return NULL; | |
37597 | } | |
37598 | ||
37599 | ||
37600 | SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37601 | PyObject *resultobj = 0; | |
37602 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
37603 | wxString *arg2 = 0 ; | |
37604 | int arg3 ; | |
37605 | void *argp1 = 0 ; | |
37606 | int res1 = 0 ; | |
37607 | bool temp2 = false ; | |
37608 | int val3 ; | |
37609 | int ecode3 = 0 ; | |
37610 | PyObject * obj0 = 0 ; | |
37611 | PyObject * obj1 = 0 ; | |
37612 | PyObject * obj2 = 0 ; | |
37613 | char * kwnames[] = { | |
37614 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
37615 | }; | |
37616 | ||
37617 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37618 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
37619 | if (!SWIG_IsOK(res1)) { | |
37620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'"); | |
37621 | } | |
37622 | arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1); | |
37623 | { | |
37624 | arg2 = wxString_in_helper(obj1); | |
37625 | if (arg2 == NULL) SWIG_fail; | |
37626 | temp2 = true; | |
37627 | } | |
37628 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37629 | if (!SWIG_IsOK(ecode3)) { | |
37630 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'"); | |
37631 | } | |
37632 | arg3 = static_cast< int >(val3); | |
37633 | { | |
37634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37635 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
37636 | wxPyEndAllowThreads(__tstate); | |
37637 | if (PyErr_Occurred()) SWIG_fail; | |
37638 | } | |
37639 | resultobj = SWIG_Py_Void(); | |
37640 | { | |
37641 | if (temp2) | |
37642 | delete arg2; | |
37643 | } | |
37644 | return resultobj; | |
37645 | fail: | |
37646 | { | |
37647 | if (temp2) | |
37648 | delete arg2; | |
37649 | } | |
37650 | return NULL; | |
37651 | } | |
37652 | ||
37653 | ||
37654 | SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37655 | PyObject *obj; | |
37656 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
37657 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj)); | |
37658 | return SWIG_Py_Void(); | |
37659 | } | |
37660 | ||
37661 | SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37662 | return SWIG_Python_InitShadowInstance(args); | |
37663 | } | |
37664 | ||
37665 | SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37666 | PyObject *resultobj = 0; | |
37667 | wxWindow *arg1 = (wxWindow *) 0 ; | |
37668 | int arg2 = (int) (int)-1 ; | |
37669 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
37670 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
37671 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
37672 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
37673 | long arg5 = (long) 0 ; | |
37674 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
37675 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
37676 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
37677 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
37678 | wxPyControl *result = 0 ; | |
37679 | void *argp1 = 0 ; | |
37680 | int res1 = 0 ; | |
37681 | int val2 ; | |
37682 | int ecode2 = 0 ; | |
37683 | wxPoint temp3 ; | |
37684 | wxSize temp4 ; | |
37685 | long val5 ; | |
37686 | int ecode5 = 0 ; | |
37687 | void *argp6 = 0 ; | |
37688 | int res6 = 0 ; | |
37689 | bool temp7 = false ; | |
37690 | PyObject * obj0 = 0 ; | |
37691 | PyObject * obj1 = 0 ; | |
37692 | PyObject * obj2 = 0 ; | |
37693 | PyObject * obj3 = 0 ; | |
37694 | PyObject * obj4 = 0 ; | |
37695 | PyObject * obj5 = 0 ; | |
37696 | PyObject * obj6 = 0 ; | |
37697 | char * kwnames[] = { | |
37698 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
37699 | }; | |
37700 | ||
37701 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
37702 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
37703 | if (!SWIG_IsOK(res1)) { | |
37704 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
37705 | } | |
37706 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
37707 | if (obj1) { | |
37708 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37709 | if (!SWIG_IsOK(ecode2)) { | |
37710 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'"); | |
37711 | } | |
37712 | arg2 = static_cast< int >(val2); | |
37713 | } | |
37714 | if (obj2) { | |
d55e5bfc | 37715 | { |
1bd55598 RD |
37716 | arg3 = &temp3; |
37717 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 37718 | } |
1bd55598 RD |
37719 | } |
37720 | if (obj3) { | |
d55e5bfc | 37721 | { |
1bd55598 RD |
37722 | arg4 = &temp4; |
37723 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 37724 | } |
1bd55598 RD |
37725 | } |
37726 | if (obj4) { | |
37727 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
37728 | if (!SWIG_IsOK(ecode5)) { | |
37729 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'"); | |
37730 | } | |
37731 | arg5 = static_cast< long >(val5); | |
37732 | } | |
37733 | if (obj5) { | |
37734 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
37735 | if (!SWIG_IsOK(res6)) { | |
37736 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
f20a2e1f | 37737 | } |
1bd55598 RD |
37738 | if (!argp6) { |
37739 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
f20a2e1f | 37740 | } |
1bd55598 RD |
37741 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
37742 | } | |
37743 | if (obj6) { | |
f20a2e1f | 37744 | { |
1bd55598 RD |
37745 | arg7 = wxString_in_helper(obj6); |
37746 | if (arg7 == NULL) SWIG_fail; | |
37747 | temp7 = true; | |
f20a2e1f | 37748 | } |
1bd55598 RD |
37749 | } |
37750 | { | |
37751 | if (!wxPyCheckForApp()) SWIG_fail; | |
37752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37753 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
37754 | wxPyEndAllowThreads(__tstate); | |
37755 | if (PyErr_Occurred()) SWIG_fail; | |
37756 | } | |
37757 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 ); | |
37758 | { | |
37759 | if (temp7) | |
37760 | delete arg7; | |
37761 | } | |
37762 | return resultobj; | |
37763 | fail: | |
37764 | { | |
37765 | if (temp7) | |
37766 | delete arg7; | |
37767 | } | |
37768 | return NULL; | |
d55e5bfc RD |
37769 | } |
37770 | ||
37771 | ||
1bd55598 RD |
37772 | SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37773 | PyObject *resultobj = 0; | |
37774 | wxPyControl *result = 0 ; | |
37775 | ||
37776 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail; | |
37777 | { | |
37778 | if (!wxPyCheckForApp()) SWIG_fail; | |
37779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37780 | result = (wxPyControl *)new wxPyControl(); | |
37781 | wxPyEndAllowThreads(__tstate); | |
37782 | if (PyErr_Occurred()) SWIG_fail; | |
37783 | } | |
37784 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 ); | |
37785 | return resultobj; | |
37786 | fail: | |
37787 | return NULL; | |
37788 | } | |
37789 | ||
37790 | ||
37791 | SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37792 | PyObject *resultobj = 0; | |
37793 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
37794 | PyObject *arg2 = (PyObject *) 0 ; | |
37795 | PyObject *arg3 = (PyObject *) 0 ; | |
37796 | void *argp1 = 0 ; | |
37797 | int res1 = 0 ; | |
37798 | PyObject * obj0 = 0 ; | |
37799 | PyObject * obj1 = 0 ; | |
37800 | PyObject * obj2 = 0 ; | |
37801 | char * kwnames[] = { | |
37802 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
37803 | }; | |
37804 | ||
37805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
37807 | if (!SWIG_IsOK(res1)) { | |
37808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
37809 | } | |
37810 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
37811 | arg2 = obj1; | |
37812 | arg3 = obj2; | |
37813 | { | |
37814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37815 | (arg1)->_setCallbackInfo(arg2,arg3); | |
37816 | wxPyEndAllowThreads(__tstate); | |
37817 | if (PyErr_Occurred()) SWIG_fail; | |
37818 | } | |
37819 | resultobj = SWIG_Py_Void(); | |
37820 | return resultobj; | |
37821 | fail: | |
37822 | return NULL; | |
37823 | } | |
37824 | ||
37825 | ||
37826 | SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37827 | PyObject *resultobj = 0; | |
37828 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
37829 | wxSize *arg2 = 0 ; | |
37830 | void *argp1 = 0 ; | |
37831 | int res1 = 0 ; | |
37832 | wxSize temp2 ; | |
37833 | PyObject * obj0 = 0 ; | |
37834 | PyObject * obj1 = 0 ; | |
37835 | char * kwnames[] = { | |
37836 | (char *) "self",(char *) "size", NULL | |
37837 | }; | |
37838 | ||
37839 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
37840 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
37841 | if (!SWIG_IsOK(res1)) { | |
37842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
37843 | } | |
37844 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
37845 | { | |
37846 | arg2 = &temp2; | |
37847 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
37848 | } | |
37849 | { | |
37850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37851 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
37852 | wxPyEndAllowThreads(__tstate); | |
37853 | if (PyErr_Occurred()) SWIG_fail; | |
37854 | } | |
37855 | resultobj = SWIG_Py_Void(); | |
37856 | return resultobj; | |
37857 | fail: | |
37858 | return NULL; | |
37859 | } | |
37860 | ||
37861 | ||
37862 | SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37863 | PyObject *resultobj = 0; | |
37864 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
37865 | wxDC *arg2 = (wxDC *) 0 ; | |
37866 | bool result; | |
37867 | void *argp1 = 0 ; | |
37868 | int res1 = 0 ; | |
37869 | void *argp2 = 0 ; | |
37870 | int res2 = 0 ; | |
37871 | PyObject * obj0 = 0 ; | |
37872 | PyObject * obj1 = 0 ; | |
37873 | char * kwnames[] = { | |
37874 | (char *) "self",(char *) "dc", NULL | |
37875 | }; | |
37876 | ||
37877 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
37878 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
37879 | if (!SWIG_IsOK(res1)) { | |
37880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
37881 | } | |
37882 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
37883 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
37884 | if (!SWIG_IsOK(res2)) { | |
37885 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
37886 | } | |
37887 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
37888 | { | |
37889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37890 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
37891 | wxPyEndAllowThreads(__tstate); | |
37892 | if (PyErr_Occurred()) SWIG_fail; | |
37893 | } | |
37894 | { | |
37895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37896 | } | |
37897 | return resultobj; | |
37898 | fail: | |
37899 | return NULL; | |
37900 | } | |
37901 | ||
37902 | ||
37903 | SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37904 | PyObject *resultobj = 0; | |
37905 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
37906 | int arg2 ; | |
37907 | int arg3 ; | |
37908 | int arg4 ; | |
37909 | int arg5 ; | |
37910 | void *argp1 = 0 ; | |
37911 | int res1 = 0 ; | |
37912 | int val2 ; | |
37913 | int ecode2 = 0 ; | |
37914 | int val3 ; | |
37915 | int ecode3 = 0 ; | |
37916 | int val4 ; | |
37917 | int ecode4 = 0 ; | |
37918 | int val5 ; | |
37919 | int ecode5 = 0 ; | |
37920 | PyObject * obj0 = 0 ; | |
37921 | PyObject * obj1 = 0 ; | |
37922 | PyObject * obj2 = 0 ; | |
37923 | PyObject * obj3 = 0 ; | |
37924 | PyObject * obj4 = 0 ; | |
37925 | char * kwnames[] = { | |
37926 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
37927 | }; | |
37928 | ||
37929 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37930 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
37931 | if (!SWIG_IsOK(res1)) { | |
37932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
37933 | } | |
37934 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
37935 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37936 | if (!SWIG_IsOK(ecode2)) { | |
37937 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
37938 | } | |
37939 | arg2 = static_cast< int >(val2); | |
37940 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37941 | if (!SWIG_IsOK(ecode3)) { | |
37942 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
37943 | } | |
37944 | arg3 = static_cast< int >(val3); | |
37945 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37946 | if (!SWIG_IsOK(ecode4)) { | |
37947 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
37948 | } | |
37949 | arg4 = static_cast< int >(val4); | |
37950 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37951 | if (!SWIG_IsOK(ecode5)) { | |
37952 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
37953 | } | |
37954 | arg5 = static_cast< int >(val5); | |
37955 | { | |
37956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37957 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
37958 | wxPyEndAllowThreads(__tstate); | |
37959 | if (PyErr_Occurred()) SWIG_fail; | |
37960 | } | |
37961 | resultobj = SWIG_Py_Void(); | |
37962 | return resultobj; | |
37963 | fail: | |
37964 | return NULL; | |
37965 | } | |
37966 | ||
37967 | ||
37968 | SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37969 | PyObject *resultobj = 0; | |
37970 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
37971 | int arg2 ; | |
37972 | int arg3 ; | |
37973 | int arg4 ; | |
37974 | int arg5 ; | |
37975 | int arg6 = (int) wxSIZE_AUTO ; | |
37976 | void *argp1 = 0 ; | |
37977 | int res1 = 0 ; | |
37978 | int val2 ; | |
37979 | int ecode2 = 0 ; | |
37980 | int val3 ; | |
37981 | int ecode3 = 0 ; | |
37982 | int val4 ; | |
37983 | int ecode4 = 0 ; | |
37984 | int val5 ; | |
37985 | int ecode5 = 0 ; | |
37986 | int val6 ; | |
37987 | int ecode6 = 0 ; | |
37988 | PyObject * obj0 = 0 ; | |
37989 | PyObject * obj1 = 0 ; | |
37990 | PyObject * obj2 = 0 ; | |
37991 | PyObject * obj3 = 0 ; | |
37992 | PyObject * obj4 = 0 ; | |
37993 | PyObject * obj5 = 0 ; | |
37994 | char * kwnames[] = { | |
37995 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
37996 | }; | |
37997 | ||
37998 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
37999 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38000 | if (!SWIG_IsOK(res1)) { | |
38001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38002 | } | |
38003 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38004 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38005 | if (!SWIG_IsOK(ecode2)) { | |
38006 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
38007 | } | |
38008 | arg2 = static_cast< int >(val2); | |
38009 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38010 | if (!SWIG_IsOK(ecode3)) { | |
38011 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
38012 | } | |
38013 | arg3 = static_cast< int >(val3); | |
38014 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38015 | if (!SWIG_IsOK(ecode4)) { | |
38016 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
38017 | } | |
38018 | arg4 = static_cast< int >(val4); | |
38019 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38020 | if (!SWIG_IsOK(ecode5)) { | |
38021 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
38022 | } | |
38023 | arg5 = static_cast< int >(val5); | |
38024 | if (obj5) { | |
38025 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
38026 | if (!SWIG_IsOK(ecode6)) { | |
38027 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
38028 | } | |
38029 | arg6 = static_cast< int >(val6); | |
38030 | } | |
38031 | { | |
38032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38033 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
38034 | wxPyEndAllowThreads(__tstate); | |
38035 | if (PyErr_Occurred()) SWIG_fail; | |
38036 | } | |
38037 | resultobj = SWIG_Py_Void(); | |
38038 | return resultobj; | |
38039 | fail: | |
38040 | return NULL; | |
38041 | } | |
38042 | ||
38043 | ||
38044 | SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38045 | PyObject *resultobj = 0; | |
38046 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38047 | int arg2 ; | |
38048 | int arg3 ; | |
38049 | void *argp1 = 0 ; | |
38050 | int res1 = 0 ; | |
38051 | int val2 ; | |
38052 | int ecode2 = 0 ; | |
38053 | int val3 ; | |
38054 | int ecode3 = 0 ; | |
38055 | PyObject * obj0 = 0 ; | |
38056 | PyObject * obj1 = 0 ; | |
38057 | PyObject * obj2 = 0 ; | |
38058 | char * kwnames[] = { | |
38059 | (char *) "self",(char *) "width",(char *) "height", NULL | |
38060 | }; | |
38061 | ||
38062 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38063 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38064 | if (!SWIG_IsOK(res1)) { | |
38065 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38066 | } | |
38067 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38068 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38069 | if (!SWIG_IsOK(ecode2)) { | |
38070 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
38071 | } | |
38072 | arg2 = static_cast< int >(val2); | |
38073 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38074 | if (!SWIG_IsOK(ecode3)) { | |
38075 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
38076 | } | |
38077 | arg3 = static_cast< int >(val3); | |
38078 | { | |
38079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38080 | (arg1)->DoSetClientSize(arg2,arg3); | |
38081 | wxPyEndAllowThreads(__tstate); | |
38082 | if (PyErr_Occurred()) SWIG_fail; | |
38083 | } | |
38084 | resultobj = SWIG_Py_Void(); | |
38085 | return resultobj; | |
38086 | fail: | |
38087 | return NULL; | |
38088 | } | |
38089 | ||
38090 | ||
38091 | SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38092 | PyObject *resultobj = 0; | |
38093 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38094 | int arg2 ; | |
38095 | int arg3 ; | |
38096 | void *argp1 = 0 ; | |
38097 | int res1 = 0 ; | |
38098 | int val2 ; | |
38099 | int ecode2 = 0 ; | |
38100 | int val3 ; | |
38101 | int ecode3 = 0 ; | |
38102 | PyObject * obj0 = 0 ; | |
38103 | PyObject * obj1 = 0 ; | |
38104 | PyObject * obj2 = 0 ; | |
38105 | char * kwnames[] = { | |
38106 | (char *) "self",(char *) "x",(char *) "y", NULL | |
38107 | }; | |
38108 | ||
38109 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38110 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38111 | if (!SWIG_IsOK(res1)) { | |
38112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38113 | } | |
38114 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38115 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38116 | if (!SWIG_IsOK(ecode2)) { | |
38117 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
38118 | } | |
38119 | arg2 = static_cast< int >(val2); | |
38120 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38121 | if (!SWIG_IsOK(ecode3)) { | |
38122 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
38123 | } | |
38124 | arg3 = static_cast< int >(val3); | |
38125 | { | |
38126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38127 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
38128 | wxPyEndAllowThreads(__tstate); | |
38129 | if (PyErr_Occurred()) SWIG_fail; | |
38130 | } | |
38131 | resultobj = SWIG_Py_Void(); | |
38132 | return resultobj; | |
38133 | fail: | |
38134 | return NULL; | |
38135 | } | |
38136 | ||
38137 | ||
38138 | SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38139 | PyObject *resultobj = 0; | |
38140 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38141 | int *arg2 = (int *) 0 ; | |
38142 | int *arg3 = (int *) 0 ; | |
38143 | void *argp1 = 0 ; | |
38144 | int res1 = 0 ; | |
38145 | int temp2 ; | |
38146 | int res2 = SWIG_TMPOBJ ; | |
38147 | int temp3 ; | |
38148 | int res3 = SWIG_TMPOBJ ; | |
38149 | PyObject *swig_obj[1] ; | |
38150 | ||
38151 | arg2 = &temp2; | |
38152 | arg3 = &temp3; | |
38153 | if (!args) SWIG_fail; | |
38154 | swig_obj[0] = args; | |
38155 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38156 | if (!SWIG_IsOK(res1)) { | |
38157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
38158 | } | |
38159 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38160 | { | |
38161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38162 | ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3); | |
38163 | wxPyEndAllowThreads(__tstate); | |
38164 | if (PyErr_Occurred()) SWIG_fail; | |
38165 | } | |
38166 | resultobj = SWIG_Py_Void(); | |
38167 | if (SWIG_IsTmpObj(res2)) { | |
38168 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
38169 | } else { | |
38170 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38171 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
38172 | } | |
38173 | if (SWIG_IsTmpObj(res3)) { | |
38174 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
38175 | } else { | |
38176 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38177 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
38178 | } | |
38179 | return resultobj; | |
38180 | fail: | |
38181 | return NULL; | |
38182 | } | |
38183 | ||
38184 | ||
38185 | SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38186 | PyObject *resultobj = 0; | |
38187 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38188 | int *arg2 = (int *) 0 ; | |
38189 | int *arg3 = (int *) 0 ; | |
38190 | void *argp1 = 0 ; | |
38191 | int res1 = 0 ; | |
38192 | int temp2 ; | |
38193 | int res2 = SWIG_TMPOBJ ; | |
38194 | int temp3 ; | |
38195 | int res3 = SWIG_TMPOBJ ; | |
38196 | PyObject *swig_obj[1] ; | |
38197 | ||
38198 | arg2 = &temp2; | |
38199 | arg3 = &temp3; | |
38200 | if (!args) SWIG_fail; | |
38201 | swig_obj[0] = args; | |
38202 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38203 | if (!SWIG_IsOK(res1)) { | |
38204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
38205 | } | |
38206 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38207 | { | |
38208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38209 | ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3); | |
38210 | wxPyEndAllowThreads(__tstate); | |
38211 | if (PyErr_Occurred()) SWIG_fail; | |
38212 | } | |
38213 | resultobj = SWIG_Py_Void(); | |
38214 | if (SWIG_IsTmpObj(res2)) { | |
38215 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
38216 | } else { | |
38217 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38218 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
38219 | } | |
38220 | if (SWIG_IsTmpObj(res3)) { | |
38221 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
38222 | } else { | |
38223 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38224 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
38225 | } | |
38226 | return resultobj; | |
38227 | fail: | |
38228 | return NULL; | |
38229 | } | |
38230 | ||
38231 | ||
38232 | SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38233 | PyObject *resultobj = 0; | |
38234 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38235 | int *arg2 = (int *) 0 ; | |
38236 | int *arg3 = (int *) 0 ; | |
38237 | void *argp1 = 0 ; | |
38238 | int res1 = 0 ; | |
38239 | int temp2 ; | |
38240 | int res2 = SWIG_TMPOBJ ; | |
38241 | int temp3 ; | |
38242 | int res3 = SWIG_TMPOBJ ; | |
38243 | PyObject *swig_obj[1] ; | |
38244 | ||
38245 | arg2 = &temp2; | |
38246 | arg3 = &temp3; | |
38247 | if (!args) SWIG_fail; | |
38248 | swig_obj[0] = args; | |
38249 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38250 | if (!SWIG_IsOK(res1)) { | |
38251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
38252 | } | |
38253 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38254 | { | |
38255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38256 | ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3); | |
38257 | wxPyEndAllowThreads(__tstate); | |
38258 | if (PyErr_Occurred()) SWIG_fail; | |
38259 | } | |
38260 | resultobj = SWIG_Py_Void(); | |
38261 | if (SWIG_IsTmpObj(res2)) { | |
38262 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
38263 | } else { | |
38264 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38265 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
38266 | } | |
38267 | if (SWIG_IsTmpObj(res3)) { | |
38268 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
38269 | } else { | |
38270 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38271 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
38272 | } | |
38273 | return resultobj; | |
38274 | fail: | |
38275 | return NULL; | |
d55e5bfc RD |
38276 | } |
38277 | ||
38278 | ||
1bd55598 RD |
38279 | SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38280 | PyObject *resultobj = 0; | |
38281 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38282 | wxSize result; | |
38283 | void *argp1 = 0 ; | |
38284 | int res1 = 0 ; | |
38285 | PyObject *swig_obj[1] ; | |
38286 | ||
38287 | if (!args) SWIG_fail; | |
38288 | swig_obj[0] = args; | |
38289 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38290 | if (!SWIG_IsOK(res1)) { | |
38291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
38292 | } | |
38293 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38294 | { | |
38295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38296 | result = ((wxPyControl const *)arg1)->DoGetVirtualSize(); | |
38297 | wxPyEndAllowThreads(__tstate); | |
38298 | if (PyErr_Occurred()) SWIG_fail; | |
38299 | } | |
38300 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
38301 | return resultobj; | |
38302 | fail: | |
38303 | return NULL; | |
7e08d4ef RD |
38304 | } |
38305 | ||
38306 | ||
1bd55598 RD |
38307 | SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38308 | PyObject *resultobj = 0; | |
38309 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38310 | wxSize result; | |
38311 | void *argp1 = 0 ; | |
38312 | int res1 = 0 ; | |
38313 | PyObject *swig_obj[1] ; | |
38314 | ||
38315 | if (!args) SWIG_fail; | |
38316 | swig_obj[0] = args; | |
38317 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38318 | if (!SWIG_IsOK(res1)) { | |
38319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
38320 | } | |
38321 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38322 | { | |
38323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38324 | result = ((wxPyControl const *)arg1)->DoGetBestSize(); | |
38325 | wxPyEndAllowThreads(__tstate); | |
38326 | if (PyErr_Occurred()) SWIG_fail; | |
38327 | } | |
38328 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
38329 | return resultobj; | |
38330 | fail: | |
38331 | return NULL; | |
d55e5bfc RD |
38332 | } |
38333 | ||
38334 | ||
1bd55598 RD |
38335 | SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38336 | PyObject *resultobj = 0; | |
38337 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38338 | SwigValueWrapper<wxVisualAttributes > result; | |
38339 | void *argp1 = 0 ; | |
38340 | int res1 = 0 ; | |
38341 | PyObject *swig_obj[1] ; | |
38342 | ||
38343 | if (!args) SWIG_fail; | |
38344 | swig_obj[0] = args; | |
38345 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38346 | if (!SWIG_IsOK(res1)) { | |
38347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38348 | } | |
38349 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38350 | { | |
38351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38352 | result = (arg1)->GetDefaultAttributes(); | |
38353 | wxPyEndAllowThreads(__tstate); | |
38354 | if (PyErr_Occurred()) SWIG_fail; | |
38355 | } | |
38356 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
38357 | return resultobj; | |
38358 | fail: | |
38359 | return NULL; | |
d55e5bfc RD |
38360 | } |
38361 | ||
38362 | ||
1bd55598 RD |
38363 | SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38364 | PyObject *resultobj = 0; | |
38365 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38366 | void *argp1 = 0 ; | |
38367 | int res1 = 0 ; | |
38368 | PyObject *swig_obj[1] ; | |
38369 | ||
38370 | if (!args) SWIG_fail; | |
38371 | swig_obj[0] = args; | |
38372 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38373 | if (!SWIG_IsOK(res1)) { | |
38374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38375 | } | |
38376 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38377 | { | |
38378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38379 | (arg1)->OnInternalIdle(); | |
38380 | wxPyEndAllowThreads(__tstate); | |
38381 | if (PyErr_Occurred()) SWIG_fail; | |
38382 | } | |
38383 | resultobj = SWIG_Py_Void(); | |
38384 | return resultobj; | |
38385 | fail: | |
38386 | return NULL; | |
38387 | } | |
38388 | ||
38389 | ||
38390 | SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38391 | PyObject *obj; | |
38392 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38393 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj)); | |
38394 | return SWIG_Py_Void(); | |
38395 | } | |
38396 | ||
38397 | SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38398 | return SWIG_Python_InitShadowInstance(args); | |
38399 | } | |
38400 | ||
38401 | SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38402 | PyObject *resultobj = 0; | |
38403 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
38404 | int arg2 = (int) 0 ; | |
38405 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
38406 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
38407 | wxHelpEvent *result = 0 ; | |
38408 | int val1 ; | |
38409 | int ecode1 = 0 ; | |
38410 | int val2 ; | |
38411 | int ecode2 = 0 ; | |
38412 | wxPoint temp3 ; | |
38413 | PyObject * obj0 = 0 ; | |
38414 | PyObject * obj1 = 0 ; | |
38415 | PyObject * obj2 = 0 ; | |
38416 | char * kwnames[] = { | |
38417 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
38418 | }; | |
38419 | ||
38420 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38421 | if (obj0) { | |
38422 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
38423 | if (!SWIG_IsOK(ecode1)) { | |
38424 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
38425 | } | |
38426 | arg1 = static_cast< wxEventType >(val1); | |
38427 | } | |
38428 | if (obj1) { | |
38429 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38430 | if (!SWIG_IsOK(ecode2)) { | |
38431 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'"); | |
38432 | } | |
38433 | arg2 = static_cast< int >(val2); | |
38434 | } | |
38435 | if (obj2) { | |
d55e5bfc | 38436 | { |
1bd55598 RD |
38437 | arg3 = &temp3; |
38438 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 38439 | } |
1bd55598 RD |
38440 | } |
38441 | { | |
38442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38443 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
38444 | wxPyEndAllowThreads(__tstate); | |
38445 | if (PyErr_Occurred()) SWIG_fail; | |
38446 | } | |
38447 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 ); | |
38448 | return resultobj; | |
38449 | fail: | |
38450 | return NULL; | |
d55e5bfc RD |
38451 | } |
38452 | ||
38453 | ||
1bd55598 RD |
38454 | SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38455 | PyObject *resultobj = 0; | |
38456 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
38457 | wxPoint result; | |
38458 | void *argp1 = 0 ; | |
38459 | int res1 = 0 ; | |
38460 | PyObject *swig_obj[1] ; | |
38461 | ||
38462 | if (!args) SWIG_fail; | |
38463 | swig_obj[0] = args; | |
38464 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
38465 | if (!SWIG_IsOK(res1)) { | |
38466 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
38467 | } | |
38468 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
38469 | { | |
38470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38471 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
38472 | wxPyEndAllowThreads(__tstate); | |
38473 | if (PyErr_Occurred()) SWIG_fail; | |
38474 | } | |
38475 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
38476 | return resultobj; | |
38477 | fail: | |
38478 | return NULL; | |
38479 | } | |
38480 | ||
38481 | ||
38482 | SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38483 | PyObject *resultobj = 0; | |
38484 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
38485 | wxPoint *arg2 = 0 ; | |
38486 | void *argp1 = 0 ; | |
38487 | int res1 = 0 ; | |
38488 | wxPoint temp2 ; | |
38489 | PyObject * obj0 = 0 ; | |
38490 | PyObject * obj1 = 0 ; | |
38491 | char * kwnames[] = { | |
38492 | (char *) "self",(char *) "pos", NULL | |
38493 | }; | |
38494 | ||
38495 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
38496 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
38497 | if (!SWIG_IsOK(res1)) { | |
38498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
38499 | } | |
38500 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
38501 | { | |
38502 | arg2 = &temp2; | |
38503 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
38504 | } | |
38505 | { | |
38506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38507 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
38508 | wxPyEndAllowThreads(__tstate); | |
38509 | if (PyErr_Occurred()) SWIG_fail; | |
38510 | } | |
38511 | resultobj = SWIG_Py_Void(); | |
38512 | return resultobj; | |
38513 | fail: | |
38514 | return NULL; | |
d55e5bfc RD |
38515 | } |
38516 | ||
38517 | ||
1bd55598 RD |
38518 | SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38519 | PyObject *resultobj = 0; | |
38520 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
38521 | wxString *result = 0 ; | |
38522 | void *argp1 = 0 ; | |
38523 | int res1 = 0 ; | |
38524 | PyObject *swig_obj[1] ; | |
38525 | ||
38526 | if (!args) SWIG_fail; | |
38527 | swig_obj[0] = args; | |
38528 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
38529 | if (!SWIG_IsOK(res1)) { | |
38530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
38531 | } | |
38532 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
38533 | { | |
38534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 38535 | { |
1bd55598 RD |
38536 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); |
38537 | result = (wxString *) &_result_ref; | |
d55e5bfc | 38538 | } |
1bd55598 RD |
38539 | wxPyEndAllowThreads(__tstate); |
38540 | if (PyErr_Occurred()) SWIG_fail; | |
38541 | } | |
38542 | { | |
38543 | #if wxUSE_UNICODE | |
38544 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
38545 | #else | |
38546 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
38547 | #endif | |
38548 | } | |
38549 | return resultobj; | |
38550 | fail: | |
38551 | return NULL; | |
38552 | } | |
38553 | ||
38554 | ||
38555 | SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38556 | PyObject *resultobj = 0; | |
38557 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
38558 | wxString *arg2 = 0 ; | |
38559 | void *argp1 = 0 ; | |
38560 | int res1 = 0 ; | |
38561 | bool temp2 = false ; | |
38562 | PyObject * obj0 = 0 ; | |
38563 | PyObject * obj1 = 0 ; | |
38564 | char * kwnames[] = { | |
38565 | (char *) "self",(char *) "link", NULL | |
38566 | }; | |
38567 | ||
38568 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail; | |
38569 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
38570 | if (!SWIG_IsOK(res1)) { | |
38571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
38572 | } | |
38573 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
38574 | { | |
38575 | arg2 = wxString_in_helper(obj1); | |
38576 | if (arg2 == NULL) SWIG_fail; | |
38577 | temp2 = true; | |
38578 | } | |
38579 | { | |
38580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38581 | (arg1)->SetLink((wxString const &)*arg2); | |
38582 | wxPyEndAllowThreads(__tstate); | |
38583 | if (PyErr_Occurred()) SWIG_fail; | |
38584 | } | |
38585 | resultobj = SWIG_Py_Void(); | |
38586 | { | |
38587 | if (temp2) | |
38588 | delete arg2; | |
38589 | } | |
38590 | return resultobj; | |
38591 | fail: | |
38592 | { | |
38593 | if (temp2) | |
38594 | delete arg2; | |
38595 | } | |
38596 | return NULL; | |
d55e5bfc RD |
38597 | } |
38598 | ||
38599 | ||
1bd55598 RD |
38600 | SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38601 | PyObject *resultobj = 0; | |
38602 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
38603 | wxString *result = 0 ; | |
38604 | void *argp1 = 0 ; | |
38605 | int res1 = 0 ; | |
38606 | PyObject *swig_obj[1] ; | |
38607 | ||
38608 | if (!args) SWIG_fail; | |
38609 | swig_obj[0] = args; | |
38610 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
38611 | if (!SWIG_IsOK(res1)) { | |
38612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
38613 | } | |
38614 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
38615 | { | |
38616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 38617 | { |
1bd55598 RD |
38618 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); |
38619 | result = (wxString *) &_result_ref; | |
d55e5bfc | 38620 | } |
1bd55598 RD |
38621 | wxPyEndAllowThreads(__tstate); |
38622 | if (PyErr_Occurred()) SWIG_fail; | |
38623 | } | |
38624 | { | |
38625 | #if wxUSE_UNICODE | |
38626 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
38627 | #else | |
38628 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
38629 | #endif | |
38630 | } | |
38631 | return resultobj; | |
38632 | fail: | |
38633 | return NULL; | |
38634 | } | |
38635 | ||
38636 | ||
38637 | SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38638 | PyObject *resultobj = 0; | |
38639 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
38640 | wxString *arg2 = 0 ; | |
38641 | void *argp1 = 0 ; | |
38642 | int res1 = 0 ; | |
38643 | bool temp2 = false ; | |
38644 | PyObject * obj0 = 0 ; | |
38645 | PyObject * obj1 = 0 ; | |
38646 | char * kwnames[] = { | |
38647 | (char *) "self",(char *) "target", NULL | |
38648 | }; | |
38649 | ||
38650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail; | |
38651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
38652 | if (!SWIG_IsOK(res1)) { | |
38653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
38654 | } | |
38655 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
38656 | { | |
38657 | arg2 = wxString_in_helper(obj1); | |
38658 | if (arg2 == NULL) SWIG_fail; | |
38659 | temp2 = true; | |
38660 | } | |
38661 | { | |
38662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38663 | (arg1)->SetTarget((wxString const &)*arg2); | |
38664 | wxPyEndAllowThreads(__tstate); | |
38665 | if (PyErr_Occurred()) SWIG_fail; | |
38666 | } | |
38667 | resultobj = SWIG_Py_Void(); | |
38668 | { | |
38669 | if (temp2) | |
38670 | delete arg2; | |
38671 | } | |
38672 | return resultobj; | |
38673 | fail: | |
38674 | { | |
38675 | if (temp2) | |
38676 | delete arg2; | |
38677 | } | |
38678 | return NULL; | |
d55e5bfc RD |
38679 | } |
38680 | ||
38681 | ||
1bd55598 RD |
38682 | SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38683 | PyObject *obj; | |
38684 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38685 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj)); | |
38686 | return SWIG_Py_Void(); | |
38687 | } | |
38688 | ||
38689 | SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38690 | return SWIG_Python_InitShadowInstance(args); | |
38691 | } | |
38692 | ||
38693 | SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38694 | PyObject *resultobj = 0; | |
38695 | wxWindow *arg1 = (wxWindow *) NULL ; | |
38696 | bool arg2 = (bool) true ; | |
38697 | wxContextHelp *result = 0 ; | |
38698 | void *argp1 = 0 ; | |
38699 | int res1 = 0 ; | |
38700 | bool val2 ; | |
38701 | int ecode2 = 0 ; | |
38702 | PyObject * obj0 = 0 ; | |
38703 | PyObject * obj1 = 0 ; | |
38704 | char * kwnames[] = { | |
38705 | (char *) "window",(char *) "doNow", NULL | |
38706 | }; | |
38707 | ||
38708 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
38709 | if (obj0) { | |
38710 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
38711 | if (!SWIG_IsOK(res1)) { | |
38712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
d55e5bfc | 38713 | } |
1bd55598 RD |
38714 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
38715 | } | |
38716 | if (obj1) { | |
38717 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
38718 | if (!SWIG_IsOK(ecode2)) { | |
38719 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'"); | |
38720 | } | |
38721 | arg2 = static_cast< bool >(val2); | |
38722 | } | |
38723 | { | |
38724 | if (!wxPyCheckForApp()) SWIG_fail; | |
38725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38726 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
38727 | wxPyEndAllowThreads(__tstate); | |
38728 | if (PyErr_Occurred()) SWIG_fail; | |
38729 | } | |
38730 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 ); | |
38731 | return resultobj; | |
38732 | fail: | |
38733 | return NULL; | |
d55e5bfc RD |
38734 | } |
38735 | ||
38736 | ||
1bd55598 RD |
38737 | SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38738 | PyObject *resultobj = 0; | |
38739 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
38740 | void *argp1 = 0 ; | |
38741 | int res1 = 0 ; | |
38742 | PyObject *swig_obj[1] ; | |
38743 | ||
38744 | if (!args) SWIG_fail; | |
38745 | swig_obj[0] = args; | |
38746 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 ); | |
38747 | if (!SWIG_IsOK(res1)) { | |
38748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
38749 | } | |
38750 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
38751 | { | |
38752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38753 | delete arg1; | |
d55e5bfc | 38754 | |
1bd55598 RD |
38755 | wxPyEndAllowThreads(__tstate); |
38756 | if (PyErr_Occurred()) SWIG_fail; | |
38757 | } | |
38758 | resultobj = SWIG_Py_Void(); | |
38759 | return resultobj; | |
38760 | fail: | |
38761 | return NULL; | |
38762 | } | |
38763 | ||
38764 | ||
38765 | SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38766 | PyObject *resultobj = 0; | |
38767 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
38768 | wxWindow *arg2 = (wxWindow *) NULL ; | |
38769 | bool result; | |
38770 | void *argp1 = 0 ; | |
38771 | int res1 = 0 ; | |
38772 | void *argp2 = 0 ; | |
38773 | int res2 = 0 ; | |
38774 | PyObject * obj0 = 0 ; | |
38775 | PyObject * obj1 = 0 ; | |
38776 | char * kwnames[] = { | |
38777 | (char *) "self",(char *) "window", NULL | |
38778 | }; | |
38779 | ||
38780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
38781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 ); | |
38782 | if (!SWIG_IsOK(res1)) { | |
38783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
38784 | } | |
38785 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
38786 | if (obj1) { | |
38787 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
38788 | if (!SWIG_IsOK(res2)) { | |
38789 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
d55e5bfc | 38790 | } |
1bd55598 RD |
38791 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
38792 | } | |
38793 | { | |
38794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38795 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
38796 | wxPyEndAllowThreads(__tstate); | |
38797 | if (PyErr_Occurred()) SWIG_fail; | |
38798 | } | |
38799 | { | |
38800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38801 | } | |
38802 | return resultobj; | |
38803 | fail: | |
38804 | return NULL; | |
d55e5bfc RD |
38805 | } |
38806 | ||
38807 | ||
1bd55598 RD |
38808 | SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38809 | PyObject *resultobj = 0; | |
38810 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
38811 | bool result; | |
38812 | void *argp1 = 0 ; | |
38813 | int res1 = 0 ; | |
38814 | PyObject *swig_obj[1] ; | |
38815 | ||
38816 | if (!args) SWIG_fail; | |
38817 | swig_obj[0] = args; | |
38818 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 ); | |
38819 | if (!SWIG_IsOK(res1)) { | |
38820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
38821 | } | |
38822 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
38823 | { | |
38824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38825 | result = (bool)(arg1)->EndContextHelp(); | |
38826 | wxPyEndAllowThreads(__tstate); | |
38827 | if (PyErr_Occurred()) SWIG_fail; | |
38828 | } | |
38829 | { | |
38830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38831 | } | |
38832 | return resultobj; | |
38833 | fail: | |
38834 | return NULL; | |
38835 | } | |
38836 | ||
38837 | ||
38838 | SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38839 | PyObject *obj; | |
38840 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38841 | SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj)); | |
38842 | return SWIG_Py_Void(); | |
38843 | } | |
38844 | ||
38845 | SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38846 | return SWIG_Python_InitShadowInstance(args); | |
38847 | } | |
38848 | ||
38849 | SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38850 | PyObject *resultobj = 0; | |
38851 | wxWindow *arg1 = (wxWindow *) 0 ; | |
38852 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
38853 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
38854 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
38855 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
38856 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
38857 | long arg5 = (long) wxBU_AUTODRAW ; | |
38858 | wxContextHelpButton *result = 0 ; | |
38859 | void *argp1 = 0 ; | |
38860 | int res1 = 0 ; | |
38861 | int val2 ; | |
38862 | int ecode2 = 0 ; | |
38863 | wxPoint temp3 ; | |
38864 | wxSize temp4 ; | |
38865 | long val5 ; | |
38866 | int ecode5 = 0 ; | |
38867 | PyObject * obj0 = 0 ; | |
38868 | PyObject * obj1 = 0 ; | |
38869 | PyObject * obj2 = 0 ; | |
38870 | PyObject * obj3 = 0 ; | |
38871 | PyObject * obj4 = 0 ; | |
38872 | char * kwnames[] = { | |
38873 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
38874 | }; | |
38875 | ||
38876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
38878 | if (!SWIG_IsOK(res1)) { | |
38879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
38880 | } | |
38881 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
38882 | if (obj1) { | |
38883 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38884 | if (!SWIG_IsOK(ecode2)) { | |
38885 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'"); | |
38886 | } | |
38887 | arg2 = static_cast< int >(val2); | |
38888 | } | |
38889 | if (obj2) { | |
d55e5bfc | 38890 | { |
1bd55598 RD |
38891 | arg3 = &temp3; |
38892 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 38893 | } |
1bd55598 RD |
38894 | } |
38895 | if (obj3) { | |
d55e5bfc | 38896 | { |
1bd55598 RD |
38897 | arg4 = &temp4; |
38898 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 38899 | } |
1bd55598 RD |
38900 | } |
38901 | if (obj4) { | |
38902 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
38903 | if (!SWIG_IsOK(ecode5)) { | |
38904 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'"); | |
38905 | } | |
38906 | arg5 = static_cast< long >(val5); | |
38907 | } | |
38908 | { | |
38909 | if (!wxPyCheckForApp()) SWIG_fail; | |
38910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38911 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
38912 | wxPyEndAllowThreads(__tstate); | |
38913 | if (PyErr_Occurred()) SWIG_fail; | |
38914 | } | |
38915 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 ); | |
38916 | return resultobj; | |
38917 | fail: | |
38918 | return NULL; | |
d55e5bfc RD |
38919 | } |
38920 | ||
38921 | ||
1bd55598 RD |
38922 | SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38923 | PyObject *obj; | |
38924 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38925 | SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj)); | |
38926 | return SWIG_Py_Void(); | |
d55e5bfc RD |
38927 | } |
38928 | ||
1bd55598 RD |
38929 | SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38930 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
38931 | } |
38932 | ||
f52cbe90 RD |
38933 | SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38934 | PyObject *resultobj = 0; | |
38935 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
38936 | void *argp1 = 0 ; | |
38937 | int res1 = 0 ; | |
38938 | PyObject *swig_obj[1] ; | |
38939 | ||
38940 | if (!args) SWIG_fail; | |
38941 | swig_obj[0] = args; | |
38942 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 ); | |
38943 | if (!SWIG_IsOK(res1)) { | |
38944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
38945 | } | |
38946 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
38947 | { | |
38948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38949 | delete arg1; | |
38950 | ||
38951 | wxPyEndAllowThreads(__tstate); | |
38952 | if (PyErr_Occurred()) SWIG_fail; | |
38953 | } | |
38954 | resultobj = SWIG_Py_Void(); | |
38955 | return resultobj; | |
38956 | fail: | |
38957 | return NULL; | |
38958 | } | |
38959 | ||
38960 | ||
1bd55598 RD |
38961 | SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
38962 | PyObject *resultobj = 0; | |
38963 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
38964 | wxHelpProvider *result = 0 ; | |
38965 | int res1 = 0 ; | |
38966 | PyObject * obj0 = 0 ; | |
38967 | char * kwnames[] = { | |
38968 | (char *) "helpProvider", NULL | |
38969 | }; | |
38970 | ||
38971 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail; | |
38972 | res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 ); | |
38973 | if (!SWIG_IsOK(res1)) { | |
38974 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
38975 | } | |
38976 | { | |
38977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38978 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
38979 | wxPyEndAllowThreads(__tstate); | |
38980 | if (PyErr_Occurred()) SWIG_fail; | |
38981 | } | |
38982 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 ); | |
38983 | return resultobj; | |
38984 | fail: | |
38985 | return NULL; | |
d55e5bfc RD |
38986 | } |
38987 | ||
38988 | ||
1bd55598 RD |
38989 | SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38990 | PyObject *resultobj = 0; | |
38991 | wxHelpProvider *result = 0 ; | |
38992 | ||
38993 | if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail; | |
38994 | { | |
38995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38996 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
38997 | wxPyEndAllowThreads(__tstate); | |
38998 | if (PyErr_Occurred()) SWIG_fail; | |
38999 | } | |
39000 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
39001 | return resultobj; | |
39002 | fail: | |
39003 | return NULL; | |
39004 | } | |
39005 | ||
39006 | ||
39007 | SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39008 | PyObject *resultobj = 0; | |
39009 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39010 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39011 | wxString result; | |
39012 | void *argp1 = 0 ; | |
39013 | int res1 = 0 ; | |
39014 | void *argp2 = 0 ; | |
39015 | int res2 = 0 ; | |
39016 | PyObject * obj0 = 0 ; | |
39017 | PyObject * obj1 = 0 ; | |
39018 | char * kwnames[] = { | |
39019 | (char *) "self",(char *) "window", NULL | |
39020 | }; | |
39021 | ||
39022 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
39023 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
39024 | if (!SWIG_IsOK(res1)) { | |
39025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39026 | } | |
39027 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
39028 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39029 | if (!SWIG_IsOK(res2)) { | |
39030 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
39031 | } | |
39032 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
39033 | { | |
39034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39035 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
39036 | wxPyEndAllowThreads(__tstate); | |
39037 | if (PyErr_Occurred()) SWIG_fail; | |
39038 | } | |
39039 | { | |
39040 | #if wxUSE_UNICODE | |
39041 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
39042 | #else | |
39043 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
39044 | #endif | |
39045 | } | |
39046 | return resultobj; | |
39047 | fail: | |
39048 | return NULL; | |
39049 | } | |
39050 | ||
39051 | ||
39052 | SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39053 | PyObject *resultobj = 0; | |
39054 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39055 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39056 | bool result; | |
39057 | void *argp1 = 0 ; | |
39058 | int res1 = 0 ; | |
39059 | void *argp2 = 0 ; | |
39060 | int res2 = 0 ; | |
39061 | PyObject * obj0 = 0 ; | |
39062 | PyObject * obj1 = 0 ; | |
39063 | char * kwnames[] = { | |
39064 | (char *) "self",(char *) "window", NULL | |
39065 | }; | |
39066 | ||
39067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
39068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
39069 | if (!SWIG_IsOK(res1)) { | |
39070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39071 | } | |
39072 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
39073 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39074 | if (!SWIG_IsOK(res2)) { | |
39075 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
39076 | } | |
39077 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
39078 | { | |
39079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39080 | result = (bool)(arg1)->ShowHelp(arg2); | |
39081 | wxPyEndAllowThreads(__tstate); | |
39082 | if (PyErr_Occurred()) SWIG_fail; | |
39083 | } | |
39084 | { | |
39085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39086 | } | |
39087 | return resultobj; | |
39088 | fail: | |
39089 | return NULL; | |
39090 | } | |
39091 | ||
39092 | ||
39093 | SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39094 | PyObject *resultobj = 0; | |
39095 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39096 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39097 | wxString *arg3 = 0 ; | |
39098 | void *argp1 = 0 ; | |
39099 | int res1 = 0 ; | |
39100 | void *argp2 = 0 ; | |
39101 | int res2 = 0 ; | |
39102 | bool temp3 = false ; | |
39103 | PyObject * obj0 = 0 ; | |
39104 | PyObject * obj1 = 0 ; | |
39105 | PyObject * obj2 = 0 ; | |
39106 | char * kwnames[] = { | |
39107 | (char *) "self",(char *) "window",(char *) "text", NULL | |
39108 | }; | |
39109 | ||
39110 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
39111 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
39112 | if (!SWIG_IsOK(res1)) { | |
39113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39114 | } | |
39115 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
39116 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39117 | if (!SWIG_IsOK(res2)) { | |
39118 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
39119 | } | |
39120 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
39121 | { | |
39122 | arg3 = wxString_in_helper(obj2); | |
39123 | if (arg3 == NULL) SWIG_fail; | |
39124 | temp3 = true; | |
39125 | } | |
39126 | { | |
39127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39128 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
39129 | wxPyEndAllowThreads(__tstate); | |
39130 | if (PyErr_Occurred()) SWIG_fail; | |
39131 | } | |
39132 | resultobj = SWIG_Py_Void(); | |
39133 | { | |
39134 | if (temp3) | |
39135 | delete arg3; | |
39136 | } | |
39137 | return resultobj; | |
39138 | fail: | |
39139 | { | |
39140 | if (temp3) | |
39141 | delete arg3; | |
39142 | } | |
39143 | return NULL; | |
39144 | } | |
39145 | ||
39146 | ||
39147 | SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39148 | PyObject *resultobj = 0; | |
39149 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39150 | int arg2 ; | |
39151 | wxString *arg3 = 0 ; | |
39152 | void *argp1 = 0 ; | |
39153 | int res1 = 0 ; | |
39154 | int val2 ; | |
39155 | int ecode2 = 0 ; | |
39156 | bool temp3 = false ; | |
39157 | PyObject * obj0 = 0 ; | |
39158 | PyObject * obj1 = 0 ; | |
39159 | PyObject * obj2 = 0 ; | |
39160 | char * kwnames[] = { | |
39161 | (char *) "self",(char *) "id",(char *) "text", NULL | |
39162 | }; | |
39163 | ||
39164 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
39165 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
39166 | if (!SWIG_IsOK(res1)) { | |
39167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39168 | } | |
39169 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
39170 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39171 | if (!SWIG_IsOK(ecode2)) { | |
39172 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'"); | |
39173 | } | |
39174 | arg2 = static_cast< int >(val2); | |
39175 | { | |
39176 | arg3 = wxString_in_helper(obj2); | |
39177 | if (arg3 == NULL) SWIG_fail; | |
39178 | temp3 = true; | |
39179 | } | |
39180 | { | |
39181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39182 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
39183 | wxPyEndAllowThreads(__tstate); | |
39184 | if (PyErr_Occurred()) SWIG_fail; | |
39185 | } | |
39186 | resultobj = SWIG_Py_Void(); | |
39187 | { | |
39188 | if (temp3) | |
39189 | delete arg3; | |
39190 | } | |
39191 | return resultobj; | |
39192 | fail: | |
39193 | { | |
39194 | if (temp3) | |
39195 | delete arg3; | |
39196 | } | |
39197 | return NULL; | |
39198 | } | |
39199 | ||
39200 | ||
39201 | SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39202 | PyObject *resultobj = 0; | |
39203 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39204 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39205 | void *argp1 = 0 ; | |
39206 | int res1 = 0 ; | |
39207 | void *argp2 = 0 ; | |
39208 | int res2 = 0 ; | |
39209 | PyObject * obj0 = 0 ; | |
39210 | PyObject * obj1 = 0 ; | |
39211 | char * kwnames[] = { | |
39212 | (char *) "self",(char *) "window", NULL | |
39213 | }; | |
39214 | ||
39215 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
39216 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
39217 | if (!SWIG_IsOK(res1)) { | |
39218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39219 | } | |
39220 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
39221 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39222 | if (!SWIG_IsOK(res2)) { | |
39223 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
39224 | } | |
39225 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
39226 | { | |
39227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39228 | (arg1)->RemoveHelp(arg2); | |
39229 | wxPyEndAllowThreads(__tstate); | |
39230 | if (PyErr_Occurred()) SWIG_fail; | |
39231 | } | |
39232 | resultobj = SWIG_Py_Void(); | |
39233 | return resultobj; | |
39234 | fail: | |
39235 | return NULL; | |
d55e5bfc RD |
39236 | } |
39237 | ||
39238 | ||
1bd55598 RD |
39239 | SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39240 | PyObject *resultobj = 0; | |
39241 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39242 | void *argp1 = 0 ; | |
39243 | int res1 = 0 ; | |
39244 | PyObject *swig_obj[1] ; | |
39245 | ||
39246 | if (!args) SWIG_fail; | |
39247 | swig_obj[0] = args; | |
39248 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
39249 | if (!SWIG_IsOK(res1)) { | |
39250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39251 | } | |
39252 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
39253 | { | |
39254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39255 | wxHelpProvider_Destroy(arg1); | |
39256 | wxPyEndAllowThreads(__tstate); | |
39257 | if (PyErr_Occurred()) SWIG_fail; | |
39258 | } | |
39259 | resultobj = SWIG_Py_Void(); | |
39260 | return resultobj; | |
39261 | fail: | |
39262 | return NULL; | |
d55e5bfc RD |
39263 | } |
39264 | ||
39265 | ||
1bd55598 RD |
39266 | SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39267 | PyObject *obj; | |
39268 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39269 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj)); | |
39270 | return SWIG_Py_Void(); | |
d55e5bfc RD |
39271 | } |
39272 | ||
1bd55598 RD |
39273 | SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39274 | PyObject *resultobj = 0; | |
39275 | wxSimpleHelpProvider *result = 0 ; | |
39276 | ||
39277 | if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail; | |
39278 | { | |
39279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39280 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
39281 | wxPyEndAllowThreads(__tstate); | |
39282 | if (PyErr_Occurred()) SWIG_fail; | |
39283 | } | |
39284 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 ); | |
39285 | return resultobj; | |
39286 | fail: | |
39287 | return NULL; | |
39288 | } | |
39289 | ||
39290 | ||
39291 | SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39292 | PyObject *obj; | |
39293 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39294 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj)); | |
39295 | return SWIG_Py_Void(); | |
39296 | } | |
39297 | ||
39298 | SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39299 | return SWIG_Python_InitShadowInstance(args); | |
39300 | } | |
39301 | ||
39302 | SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39303 | PyObject *resultobj = 0; | |
39304 | wxBitmap *arg1 = 0 ; | |
39305 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
39306 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
39307 | wxGenericDragImage *result = 0 ; | |
39308 | void *argp1 = 0 ; | |
39309 | int res1 = 0 ; | |
39310 | void *argp2 = 0 ; | |
39311 | int res2 = 0 ; | |
39312 | PyObject * obj0 = 0 ; | |
39313 | PyObject * obj1 = 0 ; | |
39314 | char * kwnames[] = { | |
39315 | (char *) "image",(char *) "cursor", NULL | |
39316 | }; | |
39317 | ||
39318 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
39319 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
39320 | if (!SWIG_IsOK(res1)) { | |
39321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
39322 | } | |
39323 | if (!argp1) { | |
39324 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
39325 | } | |
39326 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
39327 | if (obj1) { | |
39328 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
39329 | if (!SWIG_IsOK(res2)) { | |
39330 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
36ed4f51 | 39331 | } |
1bd55598 RD |
39332 | if (!argp2) { |
39333 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d55e5bfc | 39334 | } |
1bd55598 RD |
39335 | arg2 = reinterpret_cast< wxCursor * >(argp2); |
39336 | } | |
39337 | { | |
39338 | if (!wxPyCheckForApp()) SWIG_fail; | |
39339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39340 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
39341 | wxPyEndAllowThreads(__tstate); | |
39342 | if (PyErr_Occurred()) SWIG_fail; | |
39343 | } | |
39344 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 ); | |
39345 | return resultobj; | |
39346 | fail: | |
39347 | return NULL; | |
39348 | } | |
39349 | ||
39350 | ||
39351 | SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39352 | PyObject *resultobj = 0; | |
39353 | wxIcon *arg1 = 0 ; | |
39354 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
39355 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
39356 | wxGenericDragImage *result = 0 ; | |
39357 | void *argp1 = 0 ; | |
39358 | int res1 = 0 ; | |
39359 | void *argp2 = 0 ; | |
39360 | int res2 = 0 ; | |
39361 | PyObject * obj0 = 0 ; | |
39362 | PyObject * obj1 = 0 ; | |
39363 | char * kwnames[] = { | |
39364 | (char *) "image",(char *) "cursor", NULL | |
39365 | }; | |
39366 | ||
39367 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
39368 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
39369 | if (!SWIG_IsOK(res1)) { | |
39370 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
39371 | } | |
39372 | if (!argp1) { | |
39373 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
39374 | } | |
39375 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
39376 | if (obj1) { | |
39377 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
39378 | if (!SWIG_IsOK(res2)) { | |
39379 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
36ed4f51 | 39380 | } |
1bd55598 RD |
39381 | if (!argp2) { |
39382 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d55e5bfc | 39383 | } |
1bd55598 RD |
39384 | arg2 = reinterpret_cast< wxCursor * >(argp2); |
39385 | } | |
39386 | { | |
39387 | if (!wxPyCheckForApp()) SWIG_fail; | |
39388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39389 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
39390 | wxPyEndAllowThreads(__tstate); | |
39391 | if (PyErr_Occurred()) SWIG_fail; | |
39392 | } | |
39393 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
39394 | return resultobj; | |
39395 | fail: | |
39396 | return NULL; | |
39397 | } | |
39398 | ||
39399 | ||
39400 | SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39401 | PyObject *resultobj = 0; | |
39402 | wxString *arg1 = 0 ; | |
39403 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
39404 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
39405 | wxGenericDragImage *result = 0 ; | |
39406 | bool temp1 = false ; | |
39407 | void *argp2 = 0 ; | |
39408 | int res2 = 0 ; | |
39409 | PyObject * obj0 = 0 ; | |
39410 | PyObject * obj1 = 0 ; | |
39411 | char * kwnames[] = { | |
39412 | (char *) "str",(char *) "cursor", NULL | |
39413 | }; | |
39414 | ||
39415 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail; | |
39416 | { | |
39417 | arg1 = wxString_in_helper(obj0); | |
39418 | if (arg1 == NULL) SWIG_fail; | |
39419 | temp1 = true; | |
39420 | } | |
39421 | if (obj1) { | |
39422 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
39423 | if (!SWIG_IsOK(res2)) { | |
39424 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
36ed4f51 | 39425 | } |
1bd55598 RD |
39426 | if (!argp2) { |
39427 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d55e5bfc | 39428 | } |
1bd55598 RD |
39429 | arg2 = reinterpret_cast< wxCursor * >(argp2); |
39430 | } | |
39431 | { | |
39432 | if (!wxPyCheckForApp()) SWIG_fail; | |
39433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39434 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
39435 | wxPyEndAllowThreads(__tstate); | |
39436 | if (PyErr_Occurred()) SWIG_fail; | |
39437 | } | |
39438 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
39439 | { | |
39440 | if (temp1) | |
39441 | delete arg1; | |
39442 | } | |
39443 | return resultobj; | |
39444 | fail: | |
39445 | { | |
39446 | if (temp1) | |
39447 | delete arg1; | |
39448 | } | |
39449 | return NULL; | |
39450 | } | |
39451 | ||
39452 | ||
39453 | SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39454 | PyObject *resultobj = 0; | |
39455 | wxPyTreeCtrl *arg1 = 0 ; | |
39456 | wxTreeItemId *arg2 = 0 ; | |
39457 | wxGenericDragImage *result = 0 ; | |
39458 | void *argp1 = 0 ; | |
39459 | int res1 = 0 ; | |
39460 | void *argp2 = 0 ; | |
39461 | int res2 = 0 ; | |
39462 | PyObject * obj0 = 0 ; | |
39463 | PyObject * obj1 = 0 ; | |
39464 | char * kwnames[] = { | |
39465 | (char *) "treeCtrl",(char *) "id", NULL | |
39466 | }; | |
39467 | ||
39468 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
39469 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0); | |
39470 | if (!SWIG_IsOK(res1)) { | |
39471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'"); | |
39472 | } | |
39473 | if (!argp1) { | |
39474 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'"); | |
39475 | } | |
39476 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
39477 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 ); | |
39478 | if (!SWIG_IsOK(res2)) { | |
39479 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'"); | |
39480 | } | |
39481 | if (!argp2) { | |
39482 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'"); | |
39483 | } | |
39484 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
39485 | { | |
39486 | if (!wxPyCheckForApp()) SWIG_fail; | |
39487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39488 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
39489 | wxPyEndAllowThreads(__tstate); | |
39490 | if (PyErr_Occurred()) SWIG_fail; | |
39491 | } | |
39492 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
39493 | return resultobj; | |
39494 | fail: | |
39495 | return NULL; | |
39496 | } | |
39497 | ||
39498 | ||
39499 | SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39500 | PyObject *resultobj = 0; | |
39501 | wxPyListCtrl *arg1 = 0 ; | |
39502 | long arg2 ; | |
39503 | wxGenericDragImage *result = 0 ; | |
39504 | void *argp1 = 0 ; | |
39505 | int res1 = 0 ; | |
39506 | long val2 ; | |
39507 | int ecode2 = 0 ; | |
39508 | PyObject * obj0 = 0 ; | |
39509 | PyObject * obj1 = 0 ; | |
39510 | char * kwnames[] = { | |
39511 | (char *) "listCtrl",(char *) "id", NULL | |
39512 | }; | |
39513 | ||
39514 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
39515 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0); | |
39516 | if (!SWIG_IsOK(res1)) { | |
39517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'"); | |
39518 | } | |
39519 | if (!argp1) { | |
39520 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'"); | |
39521 | } | |
39522 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
39523 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
39524 | if (!SWIG_IsOK(ecode2)) { | |
39525 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'"); | |
39526 | } | |
39527 | arg2 = static_cast< long >(val2); | |
39528 | { | |
39529 | if (!wxPyCheckForApp()) SWIG_fail; | |
39530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39531 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
39532 | wxPyEndAllowThreads(__tstate); | |
39533 | if (PyErr_Occurred()) SWIG_fail; | |
39534 | } | |
39535 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
39536 | return resultobj; | |
39537 | fail: | |
39538 | return NULL; | |
d55e5bfc RD |
39539 | } |
39540 | ||
39541 | ||
1bd55598 RD |
39542 | SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39543 | PyObject *resultobj = 0; | |
39544 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39545 | void *argp1 = 0 ; | |
39546 | int res1 = 0 ; | |
39547 | PyObject *swig_obj[1] ; | |
39548 | ||
39549 | if (!args) SWIG_fail; | |
39550 | swig_obj[0] = args; | |
39551 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 ); | |
39552 | if (!SWIG_IsOK(res1)) { | |
39553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39554 | } | |
39555 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39556 | { | |
39557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39558 | delete arg1; | |
d55e5bfc | 39559 | |
1bd55598 RD |
39560 | wxPyEndAllowThreads(__tstate); |
39561 | if (PyErr_Occurred()) SWIG_fail; | |
39562 | } | |
39563 | resultobj = SWIG_Py_Void(); | |
39564 | return resultobj; | |
39565 | fail: | |
39566 | return NULL; | |
39567 | } | |
39568 | ||
39569 | ||
39570 | SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39571 | PyObject *resultobj = 0; | |
39572 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39573 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
39574 | void *argp1 = 0 ; | |
39575 | int res1 = 0 ; | |
39576 | void *argp2 = 0 ; | |
39577 | int res2 = 0 ; | |
39578 | PyObject * obj0 = 0 ; | |
39579 | PyObject * obj1 = 0 ; | |
39580 | char * kwnames[] = { | |
39581 | (char *) "self",(char *) "bitmap", NULL | |
39582 | }; | |
39583 | ||
39584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
39585 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39586 | if (!SWIG_IsOK(res1)) { | |
39587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39588 | } | |
39589 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39590 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
39591 | if (!SWIG_IsOK(res2)) { | |
39592 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
39593 | } | |
39594 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
39595 | { | |
39596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39597 | (arg1)->SetBackingBitmap(arg2); | |
39598 | wxPyEndAllowThreads(__tstate); | |
39599 | if (PyErr_Occurred()) SWIG_fail; | |
39600 | } | |
39601 | resultobj = SWIG_Py_Void(); | |
39602 | return resultobj; | |
39603 | fail: | |
39604 | return NULL; | |
39605 | } | |
39606 | ||
39607 | ||
39608 | SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39609 | PyObject *resultobj = 0; | |
39610 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39611 | wxPoint *arg2 = 0 ; | |
39612 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39613 | bool arg4 = (bool) false ; | |
39614 | wxRect *arg5 = (wxRect *) NULL ; | |
39615 | bool result; | |
39616 | void *argp1 = 0 ; | |
39617 | int res1 = 0 ; | |
39618 | wxPoint temp2 ; | |
39619 | void *argp3 = 0 ; | |
39620 | int res3 = 0 ; | |
39621 | bool val4 ; | |
39622 | int ecode4 = 0 ; | |
39623 | void *argp5 = 0 ; | |
39624 | int res5 = 0 ; | |
39625 | PyObject * obj0 = 0 ; | |
39626 | PyObject * obj1 = 0 ; | |
39627 | PyObject * obj2 = 0 ; | |
39628 | PyObject * obj3 = 0 ; | |
39629 | PyObject * obj4 = 0 ; | |
39630 | char * kwnames[] = { | |
39631 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
39632 | }; | |
39633 | ||
39634 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
39635 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39636 | if (!SWIG_IsOK(res1)) { | |
39637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39638 | } | |
39639 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39640 | { | |
39641 | arg2 = &temp2; | |
39642 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39643 | } | |
39644 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39645 | if (!SWIG_IsOK(res3)) { | |
39646 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
39647 | } | |
39648 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
39649 | if (obj3) { | |
39650 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
39651 | if (!SWIG_IsOK(ecode4)) { | |
39652 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'"); | |
39653 | } | |
39654 | arg4 = static_cast< bool >(val4); | |
39655 | } | |
39656 | if (obj4) { | |
39657 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 ); | |
39658 | if (!SWIG_IsOK(res5)) { | |
39659 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'"); | |
d55e5bfc | 39660 | } |
1bd55598 RD |
39661 | arg5 = reinterpret_cast< wxRect * >(argp5); |
39662 | } | |
39663 | { | |
39664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39665 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
39666 | wxPyEndAllowThreads(__tstate); | |
39667 | if (PyErr_Occurred()) SWIG_fail; | |
39668 | } | |
39669 | { | |
39670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39671 | } | |
39672 | return resultobj; | |
39673 | fail: | |
39674 | return NULL; | |
39675 | } | |
39676 | ||
39677 | ||
39678 | SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39679 | PyObject *resultobj = 0; | |
39680 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39681 | wxPoint *arg2 = 0 ; | |
39682 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39683 | wxWindow *arg4 = (wxWindow *) 0 ; | |
39684 | bool result; | |
39685 | void *argp1 = 0 ; | |
39686 | int res1 = 0 ; | |
39687 | wxPoint temp2 ; | |
39688 | void *argp3 = 0 ; | |
39689 | int res3 = 0 ; | |
39690 | void *argp4 = 0 ; | |
39691 | int res4 = 0 ; | |
39692 | PyObject * obj0 = 0 ; | |
39693 | PyObject * obj1 = 0 ; | |
39694 | PyObject * obj2 = 0 ; | |
39695 | PyObject * obj3 = 0 ; | |
39696 | char * kwnames[] = { | |
39697 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
39698 | }; | |
39699 | ||
39700 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
39701 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39702 | if (!SWIG_IsOK(res1)) { | |
39703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39704 | } | |
39705 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39706 | { | |
39707 | arg2 = &temp2; | |
39708 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39709 | } | |
39710 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39711 | if (!SWIG_IsOK(res3)) { | |
39712 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
39713 | } | |
39714 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
39715 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39716 | if (!SWIG_IsOK(res4)) { | |
39717 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
39718 | } | |
39719 | arg4 = reinterpret_cast< wxWindow * >(argp4); | |
39720 | { | |
39721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39722 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
39723 | wxPyEndAllowThreads(__tstate); | |
39724 | if (PyErr_Occurred()) SWIG_fail; | |
39725 | } | |
39726 | { | |
39727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39728 | } | |
39729 | return resultobj; | |
39730 | fail: | |
39731 | return NULL; | |
d55e5bfc RD |
39732 | } |
39733 | ||
39734 | ||
1bd55598 RD |
39735 | SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39736 | PyObject *resultobj = 0; | |
39737 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39738 | bool result; | |
39739 | void *argp1 = 0 ; | |
39740 | int res1 = 0 ; | |
39741 | PyObject *swig_obj[1] ; | |
39742 | ||
39743 | if (!args) SWIG_fail; | |
39744 | swig_obj[0] = args; | |
39745 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39746 | if (!SWIG_IsOK(res1)) { | |
39747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39748 | } | |
39749 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39750 | { | |
39751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39752 | result = (bool)(arg1)->EndDrag(); | |
39753 | wxPyEndAllowThreads(__tstate); | |
39754 | if (PyErr_Occurred()) SWIG_fail; | |
39755 | } | |
39756 | { | |
39757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39758 | } | |
39759 | return resultobj; | |
39760 | fail: | |
39761 | return NULL; | |
39762 | } | |
39763 | ||
39764 | ||
39765 | SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39766 | PyObject *resultobj = 0; | |
39767 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39768 | wxPoint *arg2 = 0 ; | |
39769 | bool result; | |
39770 | void *argp1 = 0 ; | |
39771 | int res1 = 0 ; | |
39772 | wxPoint temp2 ; | |
39773 | PyObject * obj0 = 0 ; | |
39774 | PyObject * obj1 = 0 ; | |
39775 | char * kwnames[] = { | |
39776 | (char *) "self",(char *) "pt", NULL | |
39777 | }; | |
39778 | ||
39779 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail; | |
39780 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39781 | if (!SWIG_IsOK(res1)) { | |
39782 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39783 | } | |
39784 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39785 | { | |
39786 | arg2 = &temp2; | |
39787 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39788 | } | |
39789 | { | |
39790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39791 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
39792 | wxPyEndAllowThreads(__tstate); | |
39793 | if (PyErr_Occurred()) SWIG_fail; | |
39794 | } | |
39795 | { | |
39796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39797 | } | |
39798 | return resultobj; | |
39799 | fail: | |
39800 | return NULL; | |
d55e5bfc RD |
39801 | } |
39802 | ||
39803 | ||
1bd55598 RD |
39804 | SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39805 | PyObject *resultobj = 0; | |
39806 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39807 | bool result; | |
39808 | void *argp1 = 0 ; | |
39809 | int res1 = 0 ; | |
39810 | PyObject *swig_obj[1] ; | |
39811 | ||
39812 | if (!args) SWIG_fail; | |
39813 | swig_obj[0] = args; | |
39814 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39815 | if (!SWIG_IsOK(res1)) { | |
39816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39817 | } | |
39818 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39819 | { | |
39820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39821 | result = (bool)(arg1)->Show(); | |
39822 | wxPyEndAllowThreads(__tstate); | |
39823 | if (PyErr_Occurred()) SWIG_fail; | |
39824 | } | |
39825 | { | |
39826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39827 | } | |
39828 | return resultobj; | |
39829 | fail: | |
39830 | return NULL; | |
d55e5bfc RD |
39831 | } |
39832 | ||
39833 | ||
1bd55598 RD |
39834 | SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39835 | PyObject *resultobj = 0; | |
39836 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39837 | bool result; | |
39838 | void *argp1 = 0 ; | |
39839 | int res1 = 0 ; | |
39840 | PyObject *swig_obj[1] ; | |
39841 | ||
39842 | if (!args) SWIG_fail; | |
39843 | swig_obj[0] = args; | |
39844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39845 | if (!SWIG_IsOK(res1)) { | |
39846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39847 | } | |
39848 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39849 | { | |
39850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39851 | result = (bool)(arg1)->Hide(); | |
39852 | wxPyEndAllowThreads(__tstate); | |
39853 | if (PyErr_Occurred()) SWIG_fail; | |
39854 | } | |
39855 | { | |
39856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39857 | } | |
39858 | return resultobj; | |
39859 | fail: | |
39860 | return NULL; | |
39861 | } | |
39862 | ||
39863 | ||
39864 | SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39865 | PyObject *resultobj = 0; | |
39866 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39867 | wxPoint *arg2 = 0 ; | |
39868 | wxRect result; | |
39869 | void *argp1 = 0 ; | |
39870 | int res1 = 0 ; | |
39871 | wxPoint temp2 ; | |
39872 | PyObject * obj0 = 0 ; | |
39873 | PyObject * obj1 = 0 ; | |
39874 | char * kwnames[] = { | |
39875 | (char *) "self",(char *) "pos", NULL | |
39876 | }; | |
39877 | ||
39878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
39879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39880 | if (!SWIG_IsOK(res1)) { | |
39881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
39882 | } | |
39883 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39884 | { | |
39885 | arg2 = &temp2; | |
39886 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39887 | } | |
39888 | { | |
39889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39890 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
39891 | wxPyEndAllowThreads(__tstate); | |
39892 | if (PyErr_Occurred()) SWIG_fail; | |
39893 | } | |
39894 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
39895 | return resultobj; | |
39896 | fail: | |
39897 | return NULL; | |
39898 | } | |
39899 | ||
39900 | ||
39901 | SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39902 | PyObject *resultobj = 0; | |
39903 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39904 | wxDC *arg2 = 0 ; | |
39905 | wxPoint *arg3 = 0 ; | |
39906 | bool result; | |
39907 | void *argp1 = 0 ; | |
39908 | int res1 = 0 ; | |
39909 | void *argp2 = 0 ; | |
39910 | int res2 = 0 ; | |
39911 | wxPoint temp3 ; | |
39912 | PyObject * obj0 = 0 ; | |
39913 | PyObject * obj1 = 0 ; | |
39914 | PyObject * obj2 = 0 ; | |
39915 | char * kwnames[] = { | |
39916 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
39917 | }; | |
39918 | ||
39919 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
39920 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39921 | if (!SWIG_IsOK(res1)) { | |
39922 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
39923 | } | |
39924 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39925 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
39926 | if (!SWIG_IsOK(res2)) { | |
39927 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'"); | |
39928 | } | |
39929 | if (!argp2) { | |
39930 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'"); | |
39931 | } | |
39932 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
39933 | { | |
39934 | arg3 = &temp3; | |
39935 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
39936 | } | |
39937 | { | |
39938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39939 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
39940 | wxPyEndAllowThreads(__tstate); | |
39941 | if (PyErr_Occurred()) SWIG_fail; | |
39942 | } | |
39943 | { | |
39944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39945 | } | |
39946 | return resultobj; | |
39947 | fail: | |
39948 | return NULL; | |
39949 | } | |
39950 | ||
39951 | ||
39952 | SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39953 | PyObject *resultobj = 0; | |
39954 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39955 | wxDC *arg2 = 0 ; | |
39956 | wxMemoryDC *arg3 = 0 ; | |
39957 | wxRect *arg4 = 0 ; | |
39958 | wxRect *arg5 = 0 ; | |
39959 | bool result; | |
39960 | void *argp1 = 0 ; | |
39961 | int res1 = 0 ; | |
39962 | void *argp2 = 0 ; | |
39963 | int res2 = 0 ; | |
39964 | void *argp3 = 0 ; | |
39965 | int res3 = 0 ; | |
39966 | wxRect temp4 ; | |
39967 | wxRect temp5 ; | |
39968 | PyObject * obj0 = 0 ; | |
39969 | PyObject * obj1 = 0 ; | |
39970 | PyObject * obj2 = 0 ; | |
39971 | PyObject * obj3 = 0 ; | |
39972 | PyObject * obj4 = 0 ; | |
39973 | char * kwnames[] = { | |
39974 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
39975 | }; | |
39976 | ||
39977 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
39978 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39979 | if (!SWIG_IsOK(res1)) { | |
39980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
39981 | } | |
39982 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39983 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
39984 | if (!SWIG_IsOK(res2)) { | |
39985 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'"); | |
39986 | } | |
39987 | if (!argp2) { | |
39988 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'"); | |
39989 | } | |
39990 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
39991 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 ); | |
39992 | if (!SWIG_IsOK(res3)) { | |
39993 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'"); | |
39994 | } | |
39995 | if (!argp3) { | |
39996 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'"); | |
39997 | } | |
39998 | arg3 = reinterpret_cast< wxMemoryDC * >(argp3); | |
39999 | { | |
40000 | arg4 = &temp4; | |
40001 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
40002 | } | |
40003 | { | |
40004 | arg5 = &temp5; | |
40005 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
40006 | } | |
40007 | { | |
40008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40009 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
40010 | wxPyEndAllowThreads(__tstate); | |
40011 | if (PyErr_Occurred()) SWIG_fail; | |
40012 | } | |
40013 | { | |
40014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40015 | } | |
40016 | return resultobj; | |
40017 | fail: | |
40018 | return NULL; | |
40019 | } | |
40020 | ||
40021 | ||
40022 | SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40023 | PyObject *resultobj = 0; | |
40024 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40025 | wxPoint *arg2 = 0 ; | |
40026 | wxPoint *arg3 = 0 ; | |
40027 | bool arg4 ; | |
40028 | bool arg5 ; | |
40029 | bool result; | |
40030 | void *argp1 = 0 ; | |
40031 | int res1 = 0 ; | |
40032 | wxPoint temp2 ; | |
40033 | wxPoint temp3 ; | |
40034 | bool val4 ; | |
40035 | int ecode4 = 0 ; | |
40036 | bool val5 ; | |
40037 | int ecode5 = 0 ; | |
40038 | PyObject * obj0 = 0 ; | |
40039 | PyObject * obj1 = 0 ; | |
40040 | PyObject * obj2 = 0 ; | |
40041 | PyObject * obj3 = 0 ; | |
40042 | PyObject * obj4 = 0 ; | |
40043 | char * kwnames[] = { | |
40044 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
40045 | }; | |
40046 | ||
40047 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
40048 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40049 | if (!SWIG_IsOK(res1)) { | |
40050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40051 | } | |
40052 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40053 | { | |
40054 | arg2 = &temp2; | |
40055 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
40056 | } | |
40057 | { | |
40058 | arg3 = &temp3; | |
40059 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
40060 | } | |
40061 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
40062 | if (!SWIG_IsOK(ecode4)) { | |
40063 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'"); | |
40064 | } | |
40065 | arg4 = static_cast< bool >(val4); | |
40066 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
40067 | if (!SWIG_IsOK(ecode5)) { | |
40068 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'"); | |
40069 | } | |
40070 | arg5 = static_cast< bool >(val5); | |
40071 | { | |
40072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40073 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
40074 | wxPyEndAllowThreads(__tstate); | |
40075 | if (PyErr_Occurred()) SWIG_fail; | |
40076 | } | |
40077 | { | |
40078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40079 | } | |
40080 | return resultobj; | |
40081 | fail: | |
40082 | return NULL; | |
d55e5bfc RD |
40083 | } |
40084 | ||
40085 | ||
1bd55598 RD |
40086 | SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40087 | PyObject *obj; | |
40088 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40089 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj)); | |
40090 | return SWIG_Py_Void(); | |
d55e5bfc RD |
40091 | } |
40092 | ||
1bd55598 RD |
40093 | SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40094 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
40095 | } |
40096 | ||
1bd55598 RD |
40097 | SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) { |
40098 | SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only."); | |
40099 | return 1; | |
d55e5bfc RD |
40100 | } |
40101 | ||
40102 | ||
1bd55598 RD |
40103 | SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) { |
40104 | PyObject *pyobj = 0; | |
40105 | ||
40106 | { | |
40107 | #if wxUSE_UNICODE | |
40108 | pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
40109 | #else | |
40110 | pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
40111 | #endif | |
40112 | } | |
40113 | return pyobj; | |
40114 | } | |
40115 | ||
40116 | ||
40117 | SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40118 | PyObject *resultobj = 0; | |
40119 | wxWindow *arg1 = (wxWindow *) 0 ; | |
40120 | int arg2 = (int) -1 ; | |
40121 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; | |
40122 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
40123 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
40124 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
40125 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
40126 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
40127 | long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
40128 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
40129 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
40130 | wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ; | |
40131 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
40132 | wxDatePickerCtrl *result = 0 ; | |
40133 | void *argp1 = 0 ; | |
40134 | int res1 = 0 ; | |
40135 | int val2 ; | |
40136 | int ecode2 = 0 ; | |
40137 | void *argp3 = 0 ; | |
40138 | int res3 = 0 ; | |
40139 | wxPoint temp4 ; | |
40140 | wxSize temp5 ; | |
40141 | long val6 ; | |
40142 | int ecode6 = 0 ; | |
40143 | void *argp7 = 0 ; | |
40144 | int res7 = 0 ; | |
40145 | bool temp8 = false ; | |
40146 | PyObject * obj0 = 0 ; | |
40147 | PyObject * obj1 = 0 ; | |
40148 | PyObject * obj2 = 0 ; | |
40149 | PyObject * obj3 = 0 ; | |
40150 | PyObject * obj4 = 0 ; | |
40151 | PyObject * obj5 = 0 ; | |
40152 | PyObject * obj6 = 0 ; | |
40153 | PyObject * obj7 = 0 ; | |
40154 | char * kwnames[] = { | |
40155 | (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
40156 | }; | |
40157 | ||
40158 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
40159 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40160 | if (!SWIG_IsOK(res1)) { | |
40161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
40162 | } | |
40163 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
40164 | if (obj1) { | |
40165 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
40166 | if (!SWIG_IsOK(ecode2)) { | |
40167 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
40168 | } | |
40169 | arg2 = static_cast< int >(val2); | |
40170 | } | |
40171 | if (obj2) { | |
40172 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0); | |
40173 | if (!SWIG_IsOK(res3)) { | |
40174 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
d55e5bfc | 40175 | } |
1bd55598 RD |
40176 | if (!argp3) { |
40177 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
d55e5bfc | 40178 | } |
1bd55598 RD |
40179 | arg3 = reinterpret_cast< wxDateTime * >(argp3); |
40180 | } | |
40181 | if (obj3) { | |
36ed4f51 | 40182 | { |
1bd55598 RD |
40183 | arg4 = &temp4; |
40184 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 40185 | } |
1bd55598 RD |
40186 | } |
40187 | if (obj4) { | |
d55e5bfc | 40188 | { |
1bd55598 RD |
40189 | arg5 = &temp5; |
40190 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 40191 | } |
1bd55598 RD |
40192 | } |
40193 | if (obj5) { | |
40194 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
40195 | if (!SWIG_IsOK(ecode6)) { | |
40196 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'"); | |
40197 | } | |
40198 | arg6 = static_cast< long >(val6); | |
40199 | } | |
40200 | if (obj6) { | |
40201 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
40202 | if (!SWIG_IsOK(res7)) { | |
40203 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 40204 | } |
1bd55598 RD |
40205 | if (!argp7) { |
40206 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 40207 | } |
1bd55598 RD |
40208 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
40209 | } | |
40210 | if (obj7) { | |
36ed4f51 | 40211 | { |
1bd55598 RD |
40212 | arg8 = wxString_in_helper(obj7); |
40213 | if (arg8 == NULL) SWIG_fail; | |
40214 | temp8 = true; | |
36ed4f51 | 40215 | } |
1bd55598 RD |
40216 | } |
40217 | { | |
40218 | if (!wxPyCheckForApp()) SWIG_fail; | |
40219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40220 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
40221 | wxPyEndAllowThreads(__tstate); | |
40222 | if (PyErr_Occurred()) SWIG_fail; | |
40223 | } | |
40224 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 ); | |
40225 | { | |
40226 | if (temp8) | |
40227 | delete arg8; | |
40228 | } | |
40229 | return resultobj; | |
40230 | fail: | |
40231 | { | |
40232 | if (temp8) | |
40233 | delete arg8; | |
40234 | } | |
40235 | return NULL; | |
d55e5bfc RD |
40236 | } |
40237 | ||
40238 | ||
1bd55598 RD |
40239 | SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40240 | PyObject *resultobj = 0; | |
40241 | wxDatePickerCtrl *result = 0 ; | |
40242 | ||
40243 | if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail; | |
40244 | { | |
40245 | if (!wxPyCheckForApp()) SWIG_fail; | |
40246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40247 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(); | |
40248 | wxPyEndAllowThreads(__tstate); | |
40249 | if (PyErr_Occurred()) SWIG_fail; | |
40250 | } | |
40251 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 ); | |
40252 | return resultobj; | |
40253 | fail: | |
40254 | return NULL; | |
40255 | } | |
40256 | ||
40257 | ||
40258 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40259 | PyObject *resultobj = 0; | |
40260 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
40261 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40262 | int arg3 = (int) -1 ; | |
40263 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
40264 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
40265 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
40266 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
40267 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
40268 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
40269 | long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
40270 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
40271 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
40272 | wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ; | |
40273 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
40274 | bool result; | |
40275 | void *argp1 = 0 ; | |
40276 | int res1 = 0 ; | |
40277 | void *argp2 = 0 ; | |
40278 | int res2 = 0 ; | |
40279 | int val3 ; | |
40280 | int ecode3 = 0 ; | |
40281 | void *argp4 = 0 ; | |
40282 | int res4 = 0 ; | |
40283 | wxPoint temp5 ; | |
40284 | wxSize temp6 ; | |
40285 | long val7 ; | |
40286 | int ecode7 = 0 ; | |
40287 | void *argp8 = 0 ; | |
40288 | int res8 = 0 ; | |
40289 | bool temp9 = false ; | |
40290 | PyObject * obj0 = 0 ; | |
40291 | PyObject * obj1 = 0 ; | |
40292 | PyObject * obj2 = 0 ; | |
40293 | PyObject * obj3 = 0 ; | |
40294 | PyObject * obj4 = 0 ; | |
40295 | PyObject * obj5 = 0 ; | |
40296 | PyObject * obj6 = 0 ; | |
40297 | PyObject * obj7 = 0 ; | |
40298 | PyObject * obj8 = 0 ; | |
40299 | char * kwnames[] = { | |
40300 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
40301 | }; | |
40302 | ||
40303 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
40304 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
40305 | if (!SWIG_IsOK(res1)) { | |
40306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
40307 | } | |
40308 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
40309 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40310 | if (!SWIG_IsOK(res2)) { | |
40311 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
40312 | } | |
40313 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40314 | if (obj2) { | |
40315 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
40316 | if (!SWIG_IsOK(ecode3)) { | |
40317 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
40318 | } | |
40319 | arg3 = static_cast< int >(val3); | |
40320 | } | |
40321 | if (obj3) { | |
40322 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0); | |
40323 | if (!SWIG_IsOK(res4)) { | |
40324 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'"); | |
36ed4f51 | 40325 | } |
1bd55598 RD |
40326 | if (!argp4) { |
40327 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'"); | |
d55e5bfc | 40328 | } |
1bd55598 RD |
40329 | arg4 = reinterpret_cast< wxDateTime * >(argp4); |
40330 | } | |
40331 | if (obj4) { | |
d55e5bfc | 40332 | { |
1bd55598 RD |
40333 | arg5 = &temp5; |
40334 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 40335 | } |
1bd55598 RD |
40336 | } |
40337 | if (obj5) { | |
d55e5bfc | 40338 | { |
1bd55598 RD |
40339 | arg6 = &temp6; |
40340 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 40341 | } |
1bd55598 RD |
40342 | } |
40343 | if (obj6) { | |
40344 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
40345 | if (!SWIG_IsOK(ecode7)) { | |
40346 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
40347 | } | |
40348 | arg7 = static_cast< long >(val7); | |
40349 | } | |
40350 | if (obj7) { | |
40351 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
40352 | if (!SWIG_IsOK(res8)) { | |
40353 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
36ed4f51 | 40354 | } |
1bd55598 RD |
40355 | if (!argp8) { |
40356 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d55e5bfc | 40357 | } |
1bd55598 RD |
40358 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
40359 | } | |
40360 | if (obj8) { | |
36ed4f51 | 40361 | { |
1bd55598 RD |
40362 | arg9 = wxString_in_helper(obj8); |
40363 | if (arg9 == NULL) SWIG_fail; | |
40364 | temp9 = true; | |
36ed4f51 | 40365 | } |
1bd55598 RD |
40366 | } |
40367 | { | |
40368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40369 | result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
40370 | wxPyEndAllowThreads(__tstate); | |
40371 | if (PyErr_Occurred()) SWIG_fail; | |
40372 | } | |
40373 | { | |
40374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40375 | } | |
40376 | { | |
40377 | if (temp9) | |
40378 | delete arg9; | |
40379 | } | |
40380 | return resultobj; | |
40381 | fail: | |
40382 | { | |
40383 | if (temp9) | |
40384 | delete arg9; | |
40385 | } | |
40386 | return NULL; | |
40387 | } | |
40388 | ||
40389 | ||
40390 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40391 | PyObject *resultobj = 0; | |
40392 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
40393 | wxDateTime *arg2 = 0 ; | |
40394 | void *argp1 = 0 ; | |
40395 | int res1 = 0 ; | |
40396 | void *argp2 = 0 ; | |
40397 | int res2 = 0 ; | |
40398 | PyObject * obj0 = 0 ; | |
40399 | PyObject * obj1 = 0 ; | |
40400 | char * kwnames[] = { | |
40401 | (char *) "self",(char *) "dt", NULL | |
40402 | }; | |
40403 | ||
40404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
40405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
40406 | if (!SWIG_IsOK(res1)) { | |
40407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
40408 | } | |
40409 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
40410 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0); | |
40411 | if (!SWIG_IsOK(res2)) { | |
40412 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
40413 | } | |
40414 | if (!argp2) { | |
40415 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
40416 | } | |
40417 | arg2 = reinterpret_cast< wxDateTime * >(argp2); | |
40418 | { | |
40419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40420 | (arg1)->SetValue((wxDateTime const &)*arg2); | |
40421 | wxPyEndAllowThreads(__tstate); | |
40422 | if (PyErr_Occurred()) SWIG_fail; | |
40423 | } | |
40424 | resultobj = SWIG_Py_Void(); | |
40425 | return resultobj; | |
40426 | fail: | |
40427 | return NULL; | |
d55e5bfc RD |
40428 | } |
40429 | ||
40430 | ||
1bd55598 RD |
40431 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40432 | PyObject *resultobj = 0; | |
40433 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
40434 | wxDateTime result; | |
40435 | void *argp1 = 0 ; | |
40436 | int res1 = 0 ; | |
40437 | PyObject *swig_obj[1] ; | |
40438 | ||
40439 | if (!args) SWIG_fail; | |
40440 | swig_obj[0] = args; | |
40441 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
40442 | if (!SWIG_IsOK(res1)) { | |
40443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'"); | |
40444 | } | |
40445 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
40446 | { | |
40447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40448 | result = ((wxDatePickerCtrl const *)arg1)->GetValue(); | |
40449 | wxPyEndAllowThreads(__tstate); | |
40450 | if (PyErr_Occurred()) SWIG_fail; | |
40451 | } | |
40452 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
40453 | return resultobj; | |
40454 | fail: | |
40455 | return NULL; | |
40456 | } | |
40457 | ||
40458 | ||
40459 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40460 | PyObject *resultobj = 0; | |
40461 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
40462 | wxDateTime *arg2 = 0 ; | |
40463 | wxDateTime *arg3 = 0 ; | |
40464 | void *argp1 = 0 ; | |
40465 | int res1 = 0 ; | |
40466 | void *argp2 = 0 ; | |
40467 | int res2 = 0 ; | |
40468 | void *argp3 = 0 ; | |
40469 | int res3 = 0 ; | |
40470 | PyObject * obj0 = 0 ; | |
40471 | PyObject * obj1 = 0 ; | |
40472 | PyObject * obj2 = 0 ; | |
40473 | char * kwnames[] = { | |
40474 | (char *) "self",(char *) "dt1",(char *) "dt2", NULL | |
40475 | }; | |
40476 | ||
40477 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
40478 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
40479 | if (!SWIG_IsOK(res1)) { | |
40480 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
40481 | } | |
40482 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
40483 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0); | |
40484 | if (!SWIG_IsOK(res2)) { | |
40485 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
40486 | } | |
40487 | if (!argp2) { | |
40488 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
40489 | } | |
40490 | arg2 = reinterpret_cast< wxDateTime * >(argp2); | |
40491 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0); | |
40492 | if (!SWIG_IsOK(res3)) { | |
40493 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
40494 | } | |
40495 | if (!argp3) { | |
40496 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
40497 | } | |
40498 | arg3 = reinterpret_cast< wxDateTime * >(argp3); | |
40499 | { | |
40500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40501 | (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
40502 | wxPyEndAllowThreads(__tstate); | |
40503 | if (PyErr_Occurred()) SWIG_fail; | |
40504 | } | |
40505 | resultobj = SWIG_Py_Void(); | |
40506 | return resultobj; | |
40507 | fail: | |
40508 | return NULL; | |
d55e5bfc RD |
40509 | } |
40510 | ||
40511 | ||
1bd55598 RD |
40512 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40513 | PyObject *resultobj = 0; | |
40514 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
40515 | wxDateTime result; | |
40516 | void *argp1 = 0 ; | |
40517 | int res1 = 0 ; | |
40518 | PyObject *swig_obj[1] ; | |
40519 | ||
40520 | if (!args) SWIG_fail; | |
40521 | swig_obj[0] = args; | |
40522 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
40523 | if (!SWIG_IsOK(res1)) { | |
40524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
40525 | } | |
40526 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
40527 | { | |
40528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40529 | result = wxDatePickerCtrl_GetLowerLimit(arg1); | |
40530 | wxPyEndAllowThreads(__tstate); | |
40531 | if (PyErr_Occurred()) SWIG_fail; | |
40532 | } | |
40533 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
40534 | return resultobj; | |
40535 | fail: | |
40536 | return NULL; | |
d55e5bfc RD |
40537 | } |
40538 | ||
40539 | ||
1bd55598 RD |
40540 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40541 | PyObject *resultobj = 0; | |
40542 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
40543 | wxDateTime result; | |
40544 | void *argp1 = 0 ; | |
40545 | int res1 = 0 ; | |
40546 | PyObject *swig_obj[1] ; | |
40547 | ||
40548 | if (!args) SWIG_fail; | |
40549 | swig_obj[0] = args; | |
40550 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
40551 | if (!SWIG_IsOK(res1)) { | |
40552 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
40553 | } | |
40554 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
40555 | { | |
40556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40557 | result = wxDatePickerCtrl_GetUpperLimit(arg1); | |
40558 | wxPyEndAllowThreads(__tstate); | |
40559 | if (PyErr_Occurred()) SWIG_fail; | |
40560 | } | |
40561 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
40562 | return resultobj; | |
40563 | fail: | |
40564 | return NULL; | |
d55e5bfc RD |
40565 | } |
40566 | ||
40567 | ||
1bd55598 RD |
40568 | SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40569 | PyObject *obj; | |
40570 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40571 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj)); | |
40572 | return SWIG_Py_Void(); | |
d55e5bfc RD |
40573 | } |
40574 | ||
1bd55598 RD |
40575 | SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40576 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
40577 | } |
40578 | ||
1bd55598 RD |
40579 | static PyMethodDef SwigMethods[] = { |
40580 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40581 | { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL}, | |
40582 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40583 | { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL}, | |
40584 | { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL}, | |
40585 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40586 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL}, | |
40587 | { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL}, | |
40588 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40589 | { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL}, | |
40590 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40591 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL}, | |
40592 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL}, | |
40593 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL}, | |
40594 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL}, | |
40595 | { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL}, | |
40596 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40597 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40598 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40599 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40600 | { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40601 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40602 | { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL}, | |
40603 | { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL}, | |
40604 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL}, | |
40605 | { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL}, | |
40606 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40607 | { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL}, | |
40608 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40609 | { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL}, | |
40610 | { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL}, | |
40611 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40612 | { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL}, | |
40613 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40614 | { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL}, | |
40615 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL}, | |
40616 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40617 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL}, | |
40618 | { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL}, | |
40619 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40620 | { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL}, | |
40621 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40622 | { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL}, | |
40623 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40624 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL}, | |
40625 | { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL}, | |
40626 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40627 | { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL}, | |
40628 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40629 | { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL}, | |
40630 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40631 | { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL}, | |
40632 | { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL}, | |
40633 | { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL}, | |
40634 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40635 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL}, | |
40636 | { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL}, | |
40637 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40638 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40639 | { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL}, | |
40640 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
50f151d7 | 40641 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
40642 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, |
40643 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL}, | |
40644 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40645 | { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL}, | |
40646 | { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL}, | |
40647 | { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL}, | |
40648 | { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL}, | |
40649 | { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL}, | |
40650 | { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL}, | |
40651 | { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL}, | |
40652 | { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL}, | |
40653 | { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL}, | |
40654 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40655 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL}, | |
40656 | { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL}, | |
40657 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40658 | { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL}, | |
40659 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40660 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40661 | { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL}, | |
40662 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40663 | { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL}, | |
40664 | { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL}, | |
40665 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40666 | { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL}, | |
40667 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40668 | { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL}, | |
40669 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40670 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL}, | |
40671 | { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL}, | |
40672 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40673 | { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL}, | |
40674 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40675 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40676 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL}, | |
40677 | { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL}, | |
40678 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40679 | { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL}, | |
40680 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40681 | { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL}, | |
40682 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL}, | |
40683 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40684 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL}, | |
40685 | { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL}, | |
40686 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40687 | { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL}, | |
40688 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40689 | { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40690 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40691 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL}, | |
40692 | { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL}, | |
40693 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40694 | { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL}, | |
40695 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40696 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL}, | |
40697 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40698 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40699 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40700 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL}, | |
40701 | { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL}, | |
40702 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40703 | { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL}, | |
40704 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40705 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40706 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40707 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40708 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40709 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40710 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40711 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40712 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40713 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40714 | { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL}, | |
40715 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40716 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40717 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40718 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40719 | { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL}, | |
40720 | { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40721 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40722 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40723 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40724 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40725 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL}, | |
40726 | { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL}, | |
40727 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40728 | { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL}, | |
40729 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40730 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40731 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40732 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL}, | |
40733 | { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL}, | |
40734 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40735 | { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL}, | |
40736 | { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL}, | |
40737 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40738 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40739 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40740 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40741 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40742 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40743 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40744 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40745 | { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL}, | |
40746 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL}, | |
40747 | { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL}, | |
40748 | { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL}, | |
40749 | { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL}, | |
40750 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL}, | |
40751 | { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL}, | |
40752 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40753 | { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL}, | |
40754 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL}, | |
40755 | { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL}, | |
40756 | { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL}, | |
40757 | { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL}, | |
40758 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL}, | |
40759 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL}, | |
40760 | { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL}, | |
40761 | { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL}, | |
40762 | { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL}, | |
40763 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40764 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL}, | |
40765 | { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL}, | |
40766 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40767 | { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL}, | |
40768 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40769 | { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL}, | |
40770 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40771 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40772 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40773 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40774 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL}, | |
40775 | { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL}, | |
40776 | { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL}, | |
40777 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL}, | |
40778 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL}, | |
40779 | { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL}, | |
40780 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL}, | |
40781 | { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL}, | |
40782 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40783 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40784 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40785 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40786 | { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL}, | |
40787 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL}, | |
40788 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40789 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40790 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40791 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40792 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40793 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40794 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40795 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL}, | |
40796 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40797 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40798 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40799 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40800 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40801 | { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL}, | |
40802 | { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL}, | |
40803 | { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL}, | |
40804 | { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL}, | |
40805 | { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL}, | |
40806 | { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL}, | |
40807 | { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL}, | |
40808 | { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL}, | |
40809 | { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL}, | |
40810 | { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL}, | |
40811 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40812 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL}, | |
40813 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL}, | |
40814 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL}, | |
40815 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40816 | { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL}, | |
40817 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40818 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40819 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40820 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40821 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL}, | |
40822 | { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL}, | |
40823 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40824 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL}, | |
40825 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL}, | |
40826 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL}, | |
40827 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL}, | |
40828 | { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL}, | |
40829 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40830 | { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL}, | |
40831 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40832 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL}, | |
40833 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL}, | |
40834 | { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL}, | |
40835 | { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL}, | |
40836 | { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL}, | |
40837 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40838 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40839 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL}, | |
40840 | { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL}, | |
40841 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40842 | { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL}, | |
40843 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40844 | { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL}, | |
40845 | { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL}, | |
40846 | { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL}, | |
40847 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40848 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40849 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40850 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40851 | { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL}, | |
40852 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40853 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL}, | |
40854 | { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL}, | |
40855 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40856 | { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL}, | |
40857 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40858 | { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL}, | |
40859 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40860 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40861 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40862 | { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL}, | |
40863 | { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL}, | |
40864 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40865 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40866 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL}, | |
40867 | { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL}, | |
40868 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40869 | { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL}, | |
40870 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40871 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL}, | |
40872 | { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL}, | |
40873 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40874 | { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL}, | |
40875 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40876 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40877 | { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL}, | |
40878 | { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL}, | |
40879 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40880 | { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL}, | |
40881 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40882 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40883 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40884 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40885 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
50f151d7 RD |
40886 | { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, |
40887 | { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
40888 | { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL}, |
40889 | { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL}, | |
40890 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40891 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40892 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL}, | |
40893 | { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL}, | |
40894 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40895 | { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL}, | |
40896 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40897 | { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL}, | |
40898 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40899 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40900 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL}, | |
40901 | { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL}, | |
40902 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40903 | { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL}, | |
40904 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40905 | { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL}, | |
40906 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40907 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40908 | { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL}, | |
40909 | { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL}, | |
40910 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40911 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40912 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40913 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40914 | { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL}, | |
40915 | { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL}, | |
40916 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40917 | { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL}, | |
40918 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40919 | { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL}, | |
40920 | { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL}, | |
40921 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40922 | { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL}, | |
40923 | { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL}, | |
40924 | { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL}, | |
40925 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40926 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40927 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL}, | |
40928 | { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL}, | |
40929 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40930 | { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL}, | |
40931 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40932 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40933 | { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL}, | |
40934 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40935 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL}, | |
40936 | { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL}, | |
40937 | { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL}, | |
40938 | { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40939 | { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL}, | |
40940 | { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL}, | |
40941 | { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40942 | { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40943 | { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40944 | { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40945 | { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL}, | |
40946 | { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40947 | { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40948 | { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40949 | { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40950 | { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL}, | |
40951 | { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40952 | { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL}, | |
40953 | { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40954 | { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL}, | |
40955 | { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40956 | { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40957 | { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL}, | |
40958 | { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40959 | { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40960 | { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40961 | { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40962 | { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40963 | { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL}, | |
40964 | { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40965 | { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL}, | |
40966 | { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40967 | { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL}, | |
40968 | { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40969 | { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL}, | |
40970 | { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL}, | |
40971 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40972 | { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL}, | |
40973 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40974 | { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL}, | |
40975 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40976 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40977 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40978 | { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL}, | |
40979 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40980 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL}, | |
40981 | { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL}, | |
40982 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40983 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL}, | |
40984 | { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL}, | |
40985 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40986 | { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL}, | |
40987 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40988 | { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL}, | |
40989 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL}, | |
40990 | { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL}, | |
40991 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40992 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL}, | |
40993 | { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL}, | |
40994 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40995 | { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL}, | |
40996 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40997 | { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL}, | |
40998 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL}, | |
40999 | { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL}, | |
41000 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41001 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL}, | |
41002 | { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL}, | |
41003 | { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41004 | { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL}, | |
41005 | { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41006 | { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41007 | { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41008 | { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41009 | { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41010 | { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41011 | { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41012 | { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL}, | |
41013 | { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL}, | |
41014 | { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL}, | |
41015 | { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41016 | { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL}, | |
41017 | { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL}, | |
41018 | { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41019 | { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL}, | |
41020 | { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41021 | { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL}, | |
41022 | { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL}, | |
41023 | { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL}, | |
41024 | { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL}, | |
41025 | { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41026 | { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL}, | |
41027 | { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL}, | |
41028 | { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL}, | |
41029 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL}, | |
41030 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL}, | |
41031 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL}, | |
41032 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL}, | |
41033 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL}, | |
41034 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL}, | |
41035 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL}, | |
41036 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL}, | |
41037 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL}, | |
41038 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL}, | |
41039 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL}, | |
41040 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL}, | |
41041 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL}, | |
41042 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL}, | |
41043 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL}, | |
41044 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL}, | |
41045 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41046 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL}, | |
41047 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41048 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41049 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41050 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41051 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41052 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41053 | { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL}, | |
41054 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41055 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL}, | |
41056 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41057 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL}, | |
41058 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41059 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41060 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41061 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41062 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41063 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41064 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41065 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL}, | |
41066 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41067 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41068 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41069 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41070 | { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL}, | |
41071 | { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL}, | |
41072 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41073 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41074 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41075 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41076 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41077 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41078 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41079 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41080 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41081 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41082 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41083 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41084 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41085 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41086 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41087 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41088 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL}, | |
41089 | { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL}, | |
41090 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL}, | |
41091 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL}, | |
41092 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41093 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41094 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL}, | |
41095 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL}, | |
41096 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41097 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL}, | |
41098 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL}, | |
41099 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41100 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41101 | { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL}, | |
41102 | { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL}, | |
41103 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL}, | |
41104 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41105 | { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL}, | |
41106 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41107 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41108 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41109 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL}, | |
41110 | { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL}, | |
41111 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41112 | { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL}, | |
41113 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41114 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41115 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41116 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL}, | |
41117 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL}, | |
41118 | { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL}, | |
41119 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL}, | |
41120 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL}, | |
41121 | { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL}, | |
41122 | { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41123 | { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL}, | |
41124 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL}, | |
41125 | { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL}, | |
41126 | { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL}, | |
41127 | { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL}, | |
41128 | { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL}, | |
41129 | { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL}, | |
41130 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41131 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41132 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41133 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41134 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41135 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41136 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41137 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41138 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41139 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41140 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41141 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41142 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41143 | { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL}, | |
41144 | { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL}, | |
41145 | { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL}, | |
41146 | { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL}, | |
41147 | { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL}, | |
41148 | { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL}, | |
41149 | { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL}, | |
41150 | { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL}, | |
41151 | { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL}, | |
41152 | { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL}, | |
41153 | { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL}, | |
41154 | { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL}, | |
41155 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL}, | |
41156 | { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL}, | |
41157 | { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL}, | |
41158 | { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL}, | |
41159 | { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL}, | |
41160 | { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL}, | |
41161 | { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL}, | |
41162 | { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL}, | |
41163 | { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL}, | |
41164 | { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL}, | |
41165 | { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL}, | |
41166 | { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL}, | |
41167 | { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL}, | |
41168 | { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL}, | |
41169 | { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL}, | |
41170 | { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL}, | |
41171 | { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL}, | |
41172 | { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL}, | |
41173 | { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL}, | |
41174 | { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL}, | |
41175 | { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL}, | |
41176 | { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL}, | |
41177 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL}, | |
41178 | { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL}, | |
41179 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41180 | { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL}, | |
41181 | { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL}, | |
41182 | { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL}, | |
41183 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL}, | |
41184 | { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL}, | |
41185 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL}, | |
41186 | { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL}, | |
41187 | { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL}, | |
41188 | { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL}, | |
41189 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL}, | |
41190 | { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL}, | |
41191 | { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL}, | |
41192 | { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL}, | |
41193 | { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL}, | |
41194 | { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL}, | |
41195 | { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL}, | |
41196 | { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL}, | |
41197 | { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL}, | |
41198 | { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL}, | |
41199 | { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL}, | |
41200 | { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL}, | |
41201 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL}, | |
41202 | { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL}, | |
41203 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL}, | |
41204 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41205 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL}, | |
41206 | { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL}, | |
41207 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41208 | { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL}, | |
41209 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41210 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41211 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41212 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41213 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41214 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41215 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL}, | |
41216 | { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL}, | |
41217 | { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL}, | |
41218 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41219 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41220 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41221 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41222 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41223 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41224 | { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41225 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41226 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41227 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41228 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41229 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41230 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41231 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41232 | { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL}, | |
41233 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL}, | |
41234 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL}, | |
41235 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41236 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL}, | |
41237 | { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL}, | |
41238 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41239 | { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL}, | |
41240 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41241 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41242 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41243 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41244 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41245 | { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL}, | |
41246 | { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL}, | |
41247 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41248 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41249 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41250 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41251 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL}, | |
41252 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41253 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL}, | |
41254 | { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL}, | |
41255 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41256 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41257 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41258 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41259 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41260 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41261 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41262 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41263 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41264 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41265 | { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41266 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41267 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41268 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41269 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41270 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41271 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41272 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41273 | { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41274 | { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41275 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41276 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL}, | |
41277 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41278 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL}, | |
41279 | { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL}, | |
41280 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41281 | { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL}, | |
41282 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41283 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41284 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41285 | { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL}, | |
41286 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41287 | { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL}, | |
41288 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41289 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41290 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41291 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL}, | |
41292 | { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL}, | |
41293 | { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL}, | |
41294 | { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL}, | |
41295 | { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL}, | |
41296 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41297 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41298 | { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL}, | |
41299 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL}, | |
41300 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL}, | |
41301 | { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL}, | |
41302 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41303 | { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL}, | |
41304 | { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL}, | |
41305 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41306 | { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL}, | |
41307 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41308 | { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL}, | |
41309 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL}, | |
41310 | { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL}, | |
41311 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41312 | { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL}, | |
41313 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41314 | { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL}, | |
41315 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41316 | { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL}, | |
41317 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41318 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL}, | |
41319 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL}, | |
41320 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41321 | { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL}, | |
41322 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41323 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL}, | |
41324 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41325 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41326 | { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL}, | |
41327 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL}, | |
41328 | { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL}, | |
41329 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41330 | { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL}, | |
41331 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41332 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41333 | { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL}, | |
41334 | { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL}, | |
41335 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41336 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL}, | |
41337 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41338 | { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL}, | |
41339 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL}, | |
41340 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41341 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41342 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41343 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41344 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41345 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41346 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41347 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41348 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41349 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41350 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41351 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41352 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41353 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41354 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41355 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41356 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41357 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41358 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41359 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41360 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41361 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41362 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41363 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41364 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41365 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41366 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41367 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL}, | |
41368 | { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL}, | |
41369 | { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL}, | |
41370 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41371 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41372 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41373 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41374 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41375 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41376 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL}, | |
41377 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41378 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41379 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41380 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41381 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41382 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41383 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41384 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41385 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41386 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL}, | |
41387 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41388 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41389 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41390 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41391 | { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL}, | |
41392 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41393 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL}, | |
41394 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41395 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41396 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41397 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41398 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41399 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL}, | |
41400 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41401 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41402 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41403 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41404 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL}, | |
41405 | { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL}, | |
41406 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41407 | { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL}, | |
41408 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41409 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41410 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL}, | |
41411 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41412 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL}, | |
41413 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL}, | |
41414 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41415 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41416 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL}, | |
41417 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL}, | |
41418 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41419 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL}, | |
41420 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41421 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL}, | |
41422 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL}, | |
41423 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL}, | |
41424 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41425 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL}, | |
41426 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL}, | |
41427 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL}, | |
41428 | { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL}, | |
41429 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41430 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL}, | |
41431 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41432 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41433 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL}, | |
41434 | { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL}, | |
41435 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41436 | { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL}, | |
41437 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41438 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41439 | { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41440 | { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41441 | { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41442 | { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41443 | { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41444 | { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL}, | |
41445 | { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL}, | |
41446 | { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL}, | |
41447 | { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL}, | |
41448 | { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL}, | |
41449 | { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL}, | |
41450 | { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL}, | |
41451 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL}, | |
41452 | { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL}, | |
41453 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41454 | { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL}, | |
41455 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41456 | { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL}, | |
41457 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41458 | { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL}, | |
41459 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41460 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL}, | |
41461 | { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL}, | |
41462 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41463 | { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL}, | |
41464 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41465 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL}, | |
41466 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL}, | |
41467 | { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL}, | |
41468 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41469 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL}, | |
41470 | { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL}, | |
f52cbe90 | 41471 | { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL}, |
1bd55598 RD |
41472 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
41473 | { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL}, | |
41474 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41475 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41476 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41477 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41478 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41479 | { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL}, | |
41480 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL}, | |
41481 | { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL}, | |
41482 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL}, | |
41483 | { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL}, | |
41484 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41485 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41486 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41487 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41488 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41489 | { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL}, | |
41490 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41491 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41492 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41493 | { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL}, | |
41494 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41495 | { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL}, | |
41496 | { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL}, | |
41497 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41498 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41499 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41500 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41501 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL}, | |
41502 | { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL}, | |
41503 | { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41504 | { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL}, | |
41505 | { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41506 | { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41507 | { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL}, | |
41508 | { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41509 | { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL}, | |
41510 | { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL}, | |
41511 | { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL}, | |
41512 | { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL}, | |
41513 | { NULL, NULL, 0, NULL } | |
41514 | }; | |
41515 | ||
41516 | ||
41517 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
41518 | ||
41519 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
41520 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41521 | } | |
41522 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
41523 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
41524 | } | |
41525 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
41526 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
41527 | } | |
41528 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
41529 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
41530 | } | |
41531 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
41532 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
41533 | } | |
41534 | static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) { | |
41535 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
41536 | } | |
41537 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
41538 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
41539 | } | |
41540 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
41541 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
41542 | } | |
41543 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
41544 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
41545 | } | |
41546 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
41547 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
41548 | } | |
41549 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
41550 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
41551 | } | |
41552 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
41553 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
41554 | } | |
41555 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
41556 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41557 | } | |
41558 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
41559 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
41560 | } | |
41561 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
41562 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
41563 | } | |
41564 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
41565 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
41566 | } | |
41567 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { | |
41568 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
41569 | } | |
41570 | static void *_p_wxTreebookEventTo_p_wxEvent(void *x) { | |
41571 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
41572 | } | |
41573 | static void *_p_wxToolbookEventTo_p_wxEvent(void *x) { | |
41574 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
41575 | } | |
41576 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
41577 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
41578 | } | |
41579 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
41580 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
41581 | } | |
41582 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
41583 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41584 | } | |
41585 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
41586 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41587 | } | |
41588 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
41589 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
41590 | } | |
41591 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
41592 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
41593 | } | |
41594 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
41595 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
41596 | } | |
41597 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
41598 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
41599 | } | |
41600 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
41601 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
41602 | } | |
41603 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { | |
41604 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
41605 | } | |
41606 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
41607 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
41608 | } | |
41609 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
41610 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
41611 | } | |
41612 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
41613 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41614 | } | |
41615 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
41616 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41617 | } | |
41618 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
41619 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41620 | } | |
41621 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
41622 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41623 | } | |
41624 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
41625 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41626 | } | |
41627 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
41628 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
41629 | } | |
41630 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
41631 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
41632 | } | |
41633 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
41634 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41635 | } | |
41636 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
41637 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
41638 | } | |
41639 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
41640 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
41641 | } | |
41642 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
41643 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41644 | } | |
41645 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
41646 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41647 | } | |
41648 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
41649 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41650 | } | |
41651 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
41652 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
41653 | } | |
41654 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
41655 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
41656 | } | |
41657 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
41658 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
41659 | } | |
41660 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
41661 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
41662 | } | |
41663 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
41664 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
41665 | } | |
41666 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
41667 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
41668 | } | |
41669 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
41670 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
41671 | } | |
41672 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
41673 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
41674 | } | |
41675 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
41676 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
41677 | } | |
41678 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
41679 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
41680 | } | |
41681 | static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) { | |
41682 | return (void *)((wxControl *) ((wxBookCtrlBase *) x)); | |
41683 | } | |
41684 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
41685 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
41686 | } | |
41687 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
41688 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
41689 | } | |
41690 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
41691 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
41692 | } | |
41693 | static void *_p_wxToolbookTo_p_wxControl(void *x) { | |
41694 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x)); | |
41695 | } | |
41696 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
41697 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
41698 | } | |
41699 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
41700 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
41701 | } | |
41702 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
41703 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
41704 | } | |
41705 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
41706 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
41707 | } | |
41708 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
41709 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
41710 | } | |
41711 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
41712 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
41713 | } | |
41714 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
41715 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
41716 | } | |
41717 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
41718 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
41719 | } | |
41720 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
41721 | return (void *)((wxControl *) ((wxGauge *) x)); | |
41722 | } | |
41723 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
41724 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
41725 | } | |
41726 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { | |
41727 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x)); | |
41728 | } | |
41729 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
41730 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x)); | |
41731 | } | |
41732 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
41733 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
41734 | } | |
41735 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
41736 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
41737 | } | |
41738 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
41739 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
41740 | } | |
41741 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
41742 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
41743 | } | |
41744 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
41745 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
41746 | } | |
41747 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
41748 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
41749 | } | |
41750 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
41751 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
41752 | } | |
41753 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
41754 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x)); | |
41755 | } | |
41756 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
41757 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
41758 | } | |
41759 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
41760 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
41761 | } | |
41762 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
41763 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
41764 | } | |
41765 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
41766 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
41767 | } | |
41768 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
41769 | return (void *)((wxControl *) ((wxSlider *) x)); | |
41770 | } | |
41771 | static void *_p_wxTreebookTo_p_wxControl(void *x) { | |
41772 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x)); | |
41773 | } | |
41774 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
41775 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
41776 | } | |
41777 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
41778 | return (void *)((wxControl *) ((wxButton *) x)); | |
41779 | } | |
41780 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
41781 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
41782 | } | |
41783 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
41784 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
41785 | } | |
41786 | static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) { | |
41787 | return (void *)((wxControl *) ((wxDatePickerCtrl *) x)); | |
41788 | } | |
41789 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
41790 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
41791 | } | |
41792 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
41793 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
41794 | } | |
41795 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
41796 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
41797 | } | |
41798 | static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) { | |
41799 | return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
41800 | } | |
41801 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
41802 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
41803 | } | |
41804 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
41805 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
41806 | } | |
41807 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
41808 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
41809 | } | |
41810 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
41811 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
41812 | } | |
41813 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
41814 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
41815 | } | |
41816 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { | |
41817 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
41818 | } | |
41819 | static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) { | |
41820 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
41821 | } | |
41822 | static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) { | |
41823 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
41824 | } | |
41825 | static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) { | |
41826 | return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x)); | |
41827 | } | |
41828 | static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) { | |
41829 | return (void *)((wxBookCtrlBase *) ((wxListbook *) x)); | |
41830 | } | |
41831 | static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) { | |
41832 | return (void *)((wxBookCtrlBase *) ((wxToolbook *) x)); | |
41833 | } | |
41834 | static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) { | |
41835 | return (void *)((wxBookCtrlBase *) ((wxTreebook *) x)); | |
41836 | } | |
41837 | static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) { | |
41838 | return (void *)((wxBookCtrlBase *) ((wxNotebook *) x)); | |
41839 | } | |
41840 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
41841 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
41842 | } | |
41843 | static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) { | |
41844 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
41845 | } | |
41846 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
41847 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
41848 | } | |
41849 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
41850 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
41851 | } | |
41852 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
41853 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
41854 | } | |
41855 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
41856 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
41857 | } | |
41858 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
41859 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
41860 | } | |
41861 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
41862 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
41863 | } | |
41864 | static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) { | |
41865 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
41866 | } | |
41867 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
41868 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
41869 | } | |
41870 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
41871 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
41872 | } | |
41873 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
41874 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
41875 | } | |
41876 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
41877 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
41878 | } | |
41879 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
41880 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
41881 | } | |
41882 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
41883 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
41884 | } | |
41885 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
41886 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
41887 | } | |
41888 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
41889 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
41890 | } | |
41891 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
41892 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
41893 | } | |
41894 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
41895 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
41896 | } | |
41897 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
41898 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41899 | } | |
41900 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
41901 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
41902 | } | |
41903 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
41904 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
41905 | } | |
41906 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { | |
41907 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
41908 | } | |
41909 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
41910 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
41911 | } | |
41912 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
41913 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
41914 | } | |
41915 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
41916 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
41917 | } | |
41918 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
41919 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
41920 | } | |
41921 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
41922 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
41923 | } | |
41924 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
41925 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
41926 | } | |
41927 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
41928 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
41929 | } | |
41930 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
41931 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
41932 | } | |
41933 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
41934 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
41935 | } | |
41936 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
41937 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
41938 | } | |
41939 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
41940 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
41941 | } | |
41942 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
41943 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
41944 | } | |
41945 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
41946 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
41947 | } | |
41948 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
41949 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
41950 | } | |
41951 | static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) { | |
41952 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
41953 | } | |
41954 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
41955 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
41956 | } | |
41957 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
41958 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
41959 | } | |
41960 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
41961 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
41962 | } | |
41963 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
41964 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
41965 | } | |
41966 | static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) { | |
41967 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
41968 | } | |
41969 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
41970 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
41971 | } | |
41972 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
41973 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
41974 | } | |
41975 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
41976 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
41977 | } | |
41978 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
41979 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
41980 | } | |
41981 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
41982 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
41983 | } | |
41984 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
41985 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
41986 | } | |
41987 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
41988 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
41989 | } | |
41990 | static void *_p_wxToolbookTo_p_wxObject(void *x) { | |
41991 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
41992 | } | |
41993 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
41994 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
41995 | } | |
41996 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
41997 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
41998 | } | |
41999 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
42000 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
42001 | } | |
42002 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
42003 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
42004 | } | |
42005 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
42006 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
42007 | } | |
42008 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
42009 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42010 | } | |
42011 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
42012 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
42013 | } | |
42014 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
42015 | return (void *)((wxObject *) ((wxSizer *) x)); | |
42016 | } | |
42017 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
42018 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42019 | } | |
42020 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
42021 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
42022 | } | |
42023 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
42024 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
42025 | } | |
42026 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
42027 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42028 | } | |
42029 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
42030 | return (void *)((wxObject *) ((wxEvent *) x)); | |
42031 | } | |
42032 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
42033 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42034 | } | |
42035 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
42036 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
42037 | } | |
42038 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
42039 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
42040 | } | |
42041 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
42042 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
42043 | } | |
42044 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
42045 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
42046 | } | |
42047 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
42048 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
42049 | } | |
42050 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
42051 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
42052 | } | |
42053 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
42054 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
42055 | } | |
42056 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
42057 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42058 | } | |
42059 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
42060 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42061 | } | |
42062 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
42063 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42064 | } | |
42065 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
42066 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42067 | } | |
42068 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
42069 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
42070 | } | |
42071 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
42072 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
42073 | } | |
42074 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
42075 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
42076 | } | |
42077 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
42078 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
42079 | } | |
42080 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
42081 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
42082 | } | |
42083 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
42084 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
42085 | } | |
42086 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
42087 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
42088 | } | |
42089 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
42090 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
42091 | } | |
42092 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
42093 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
42094 | } | |
42095 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
42096 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
42097 | } | |
42098 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
42099 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
42100 | } | |
42101 | static void *_p_wxTreebookTo_p_wxObject(void *x) { | |
42102 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
42103 | } | |
42104 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
42105 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
42106 | } | |
42107 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
42108 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
42109 | } | |
42110 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
42111 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
42112 | } | |
42113 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
42114 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
42115 | } | |
42116 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
42117 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42118 | } | |
42119 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { | |
42120 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
42121 | } | |
42122 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
42123 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
42124 | } | |
42125 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
42126 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
42127 | } | |
42128 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
42129 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
42130 | } | |
42131 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
42132 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
42133 | } | |
42134 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
42135 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
42136 | } | |
42137 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
42138 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
42139 | } | |
42140 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
42141 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
42142 | } | |
42143 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
42144 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42145 | } | |
42146 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
42147 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42148 | } | |
42149 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
42150 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
42151 | } | |
42152 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
42153 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
42154 | } | |
42155 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
42156 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
42157 | } | |
42158 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
42159 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
42160 | } | |
42161 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
42162 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
42163 | } | |
42164 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
42165 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
42166 | } | |
42167 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
42168 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
42169 | } | |
42170 | static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) { | |
42171 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
42172 | } | |
42173 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
42174 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
42175 | } | |
42176 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
42177 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
42178 | } | |
42179 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
42180 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
42181 | } | |
42182 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
42183 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
42184 | } | |
42185 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
42186 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
42187 | } | |
42188 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
42189 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42190 | } | |
42191 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
42192 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42193 | } | |
42194 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
42195 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
42196 | } | |
42197 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
42198 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
42199 | } | |
42200 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
42201 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
42202 | } | |
42203 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
42204 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
42205 | } | |
42206 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
42207 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
42208 | } | |
42209 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
42210 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
42211 | } | |
42212 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
42213 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
42214 | } | |
42215 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
42216 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
42217 | } | |
42218 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
42219 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
42220 | } | |
42221 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
42222 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
42223 | } | |
42224 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
42225 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
42226 | } | |
42227 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
42228 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
42229 | } | |
42230 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
42231 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
42232 | } | |
42233 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
42234 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
42235 | } | |
42236 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { | |
42237 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
42238 | } | |
42239 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
42240 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
42241 | } | |
42242 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { | |
42243 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
42244 | } | |
42245 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
42246 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
42247 | } | |
42248 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
42249 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
42250 | } | |
42251 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
42252 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
42253 | } | |
42254 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
42255 | return (void *)((wxObject *) ((wxListItem *) x)); | |
42256 | } | |
42257 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
42258 | return (void *)((wxObject *) ((wxImage *) x)); | |
42259 | } | |
42260 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
42261 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
42262 | } | |
42263 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
42264 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
42265 | } | |
42266 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
42267 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
42268 | } | |
42269 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
42270 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
42271 | } | |
42272 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
42273 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
42274 | } | |
42275 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
42276 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
42277 | } | |
42278 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { | |
42279 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
42280 | } | |
42281 | static void *_p_wxTreebookEventTo_p_wxObject(void *x) { | |
42282 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
42283 | } | |
42284 | static void *_p_wxToolbookEventTo_p_wxObject(void *x) { | |
42285 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
42286 | } | |
42287 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
42288 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42289 | } | |
42290 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
42291 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42292 | } | |
42293 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
42294 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
42295 | } | |
42296 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
42297 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
42298 | } | |
42299 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
42300 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
42301 | } | |
42302 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
42303 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
42304 | } | |
42305 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
42306 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
42307 | } | |
42308 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
42309 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42310 | } | |
42311 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
42312 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
42313 | } | |
42314 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
42315 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
42316 | } | |
42317 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
42318 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
42319 | } | |
42320 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
42321 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
42322 | } | |
42323 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
42324 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
42325 | } | |
42326 | static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) { | |
42327 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
42328 | } | |
42329 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
42330 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
42331 | } | |
42332 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
42333 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42334 | } | |
42335 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
42336 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
42337 | } | |
42338 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
42339 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
42340 | } | |
42341 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
42342 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
42343 | } | |
42344 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
42345 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
42346 | } | |
42347 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
42348 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42349 | } | |
42350 | static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) { | |
42351 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
42352 | } | |
42353 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
42354 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42355 | } | |
42356 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
42357 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
42358 | } | |
42359 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
42360 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
42361 | } | |
42362 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
42363 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
42364 | } | |
42365 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
42366 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
42367 | } | |
42368 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
42369 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
42370 | } | |
42371 | static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) { | |
42372 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x)); | |
42373 | } | |
42374 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
42375 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
42376 | } | |
42377 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
42378 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
42379 | } | |
42380 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
42381 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
42382 | } | |
42383 | static void *_p_wxToolbookTo_p_wxWindow(void *x) { | |
42384 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
42385 | } | |
42386 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
42387 | return (void *)((wxWindow *) ((wxControl *) x)); | |
42388 | } | |
42389 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
42390 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
42391 | } | |
42392 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
42393 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
42394 | } | |
42395 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
42396 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
42397 | } | |
42398 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
42399 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
42400 | } | |
42401 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
42402 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
42403 | } | |
42404 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
42405 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
42406 | } | |
42407 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
42408 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
42409 | } | |
42410 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
42411 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
42412 | } | |
42413 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
42414 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
42415 | } | |
42416 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
42417 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
42418 | } | |
42419 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { | |
42420 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
42421 | } | |
42422 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
42423 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
42424 | } | |
42425 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
42426 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
42427 | } | |
42428 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
42429 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
42430 | } | |
42431 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
42432 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
42433 | } | |
42434 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
42435 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
42436 | } | |
42437 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
42438 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
42439 | } | |
42440 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
42441 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
42442 | } | |
42443 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
42444 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
42445 | } | |
42446 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
42447 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
42448 | } | |
42449 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
42450 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
42451 | } | |
42452 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
42453 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
42454 | } | |
42455 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
42456 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
42457 | } | |
42458 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
42459 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
42460 | } | |
42461 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
42462 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
42463 | } | |
42464 | static void *_p_wxTreebookTo_p_wxWindow(void *x) { | |
42465 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
42466 | } | |
42467 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
42468 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
42469 | } | |
42470 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
42471 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
42472 | } | |
42473 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
42474 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
42475 | } | |
42476 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
42477 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
42478 | } | |
42479 | static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) { | |
42480 | return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x)); | |
42481 | } | |
42482 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
42483 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
42484 | } | |
42485 | static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
42486 | return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
42487 | } | |
42488 | static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
42489 | return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
42490 | } | |
42491 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
42492 | return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
42493 | } | |
42494 | static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
42495 | return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
42496 | } | |
42497 | static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
42498 | return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
42499 | } | |
42500 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
42501 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42502 | } | |
42503 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
42504 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
42505 | } | |
42506 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
42507 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
42508 | } | |
42509 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
42510 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42511 | } | |
42512 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
42513 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42514 | } | |
42515 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
42516 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42517 | } | |
42518 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
42519 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
42520 | } | |
42521 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
42522 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
42523 | } | |
42524 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { | |
42525 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
42526 | } | |
42527 | static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) { | |
42528 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
42529 | } | |
42530 | static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) { | |
42531 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
42532 | } | |
42533 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
42534 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
42535 | } | |
42536 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
42537 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42538 | } | |
42539 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
42540 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
42541 | } | |
42542 | static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) { | |
42543 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
42544 | } | |
42545 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
42546 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
42547 | } | |
42548 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
42549 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
42550 | } | |
42551 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
42552 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
42553 | } | |
42554 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
42555 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42556 | } | |
42557 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
42558 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42559 | } | |
42560 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
42561 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
42562 | } | |
42563 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
42564 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
42565 | } | |
42566 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
42567 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
42568 | } | |
42569 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
42570 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
42571 | } | |
42572 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
42573 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
42574 | } | |
42575 | static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0}; | |
42576 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; | |
42577 | 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}; | |
42578 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
42579 | static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0}; | |
42580 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
42581 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
42582 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
42583 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; | |
42584 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
42585 | static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0}; | |
42586 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
42587 | static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0}; | |
42588 | static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0}; | |
42589 | static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0}; | |
42590 | static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0}; | |
42591 | static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0}; | |
42592 | static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0}; | |
42593 | static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0}; | |
42594 | static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0}; | |
42595 | static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0}; | |
42596 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
42597 | static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0}; | |
42598 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
42599 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
42600 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; | |
42601 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
42602 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
42603 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
42604 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
42605 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
42606 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
42607 | static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0}; | |
42608 | static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0}; | |
42609 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0}; | |
42610 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0}; | |
42611 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
42612 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
42613 | static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0}; | |
42614 | static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0}; | |
42615 | static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0}; | |
42616 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
42617 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
42618 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
42619 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
42620 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
42621 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
42622 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
42623 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
42624 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
42625 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
42626 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
42627 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
42628 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
42629 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
42630 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
42631 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
42632 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
42633 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
42634 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
42635 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
42636 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
42637 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
42638 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
42639 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
42640 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
42641 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
42642 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
42643 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
42644 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
42645 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
42646 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
42647 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
42648 | static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0}; | |
42649 | static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0}; | |
42650 | static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0}; | |
42651 | static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0}; | |
42652 | static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0}; | |
42653 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; | |
42654 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
42655 | static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0}; | |
42656 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0}; | |
42657 | static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0}; | |
42658 | static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0}; | |
42659 | static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0}; | |
42660 | static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0}; | |
42661 | static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0}; | |
42662 | static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0}; | |
42663 | static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0}; | |
42664 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
42665 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0}; | |
42666 | static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0}; | |
42667 | static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0}; | |
42668 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
42669 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
42670 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
42671 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; | |
42672 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; | |
42673 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
42674 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
42675 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
42676 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
42677 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
42678 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
42679 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
42680 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
42681 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
42682 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
42683 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
42684 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
42685 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
42686 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
42687 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
42688 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
42689 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
42690 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
42691 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
42692 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
42693 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
42694 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
42695 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
42696 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; | |
42697 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
42698 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; | |
42699 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
42700 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
42701 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; | |
42702 | static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0}; | |
42703 | static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0}; | |
42704 | static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0}; | |
42705 | static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0}; | |
42706 | static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0}; | |
42707 | static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0}; | |
42708 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
42709 | static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0}; | |
42710 | static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0}; | |
42711 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
42712 | static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0}; | |
42713 | static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0}; | |
42714 | static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0}; | |
42715 | static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0}; | |
42716 | static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0}; | |
42717 | static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0}; | |
42718 | static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0}; | |
42719 | static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0}; | |
42720 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; | |
42721 | static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0}; | |
42722 | static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0}; | |
42723 | static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0}; | |
42724 | static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0}; | |
42725 | static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0}; | |
42726 | static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0}; | |
42727 | static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0}; | |
42728 | static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0}; | |
42729 | static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0}; | |
42730 | static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0}; | |
42731 | static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0}; | |
42732 | static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0}; | |
42733 | static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0}; | |
42734 | static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0}; | |
42735 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0}; | |
42736 | static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0}; | |
42737 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
42738 | ||
42739 | static swig_type_info *swig_type_initial[] = { | |
42740 | &_swigt__p_bool, | |
42741 | &_swigt__p_char, | |
42742 | &_swigt__p_form_ops_t, | |
42743 | &_swigt__p_int, | |
42744 | &_swigt__p_long, | |
42745 | &_swigt__p_unsigned_char, | |
42746 | &_swigt__p_unsigned_int, | |
42747 | &_swigt__p_unsigned_long, | |
42748 | &_swigt__p_void, | |
42749 | &_swigt__p_wxANIHandler, | |
42750 | &_swigt__p_wxAcceleratorTable, | |
42751 | &_swigt__p_wxActivateEvent, | |
42752 | &_swigt__p_wxArrayInt, | |
42753 | &_swigt__p_wxArrayString, | |
42754 | &_swigt__p_wxBMPHandler, | |
42755 | &_swigt__p_wxBitmap, | |
42756 | &_swigt__p_wxBitmapButton, | |
42757 | &_swigt__p_wxBookCtrlBase, | |
42758 | &_swigt__p_wxBookCtrlBaseEvent, | |
42759 | &_swigt__p_wxBoxSizer, | |
42760 | &_swigt__p_wxButton, | |
42761 | &_swigt__p_wxCURHandler, | |
42762 | &_swigt__p_wxCheckBox, | |
42763 | &_swigt__p_wxCheckListBox, | |
42764 | &_swigt__p_wxChildFocusEvent, | |
42765 | &_swigt__p_wxChoice, | |
42766 | &_swigt__p_wxChoicebook, | |
42767 | &_swigt__p_wxChoicebookEvent, | |
42768 | &_swigt__p_wxCloseEvent, | |
42769 | &_swigt__p_wxColour, | |
42770 | &_swigt__p_wxComboBox, | |
42771 | &_swigt__p_wxCommandEvent, | |
42772 | &_swigt__p_wxContextHelp, | |
42773 | &_swigt__p_wxContextHelpButton, | |
42774 | &_swigt__p_wxContextMenuEvent, | |
42775 | &_swigt__p_wxControl, | |
42776 | &_swigt__p_wxControlWithItems, | |
42777 | &_swigt__p_wxCursor, | |
42778 | &_swigt__p_wxDC, | |
42779 | &_swigt__p_wxDateEvent, | |
42780 | &_swigt__p_wxDatePickerCtrl, | |
42781 | &_swigt__p_wxDateTime, | |
42782 | &_swigt__p_wxDirFilterListCtrl, | |
42783 | &_swigt__p_wxDisplayChangedEvent, | |
42784 | &_swigt__p_wxDropFilesEvent, | |
42785 | &_swigt__p_wxDuplexMode, | |
42786 | &_swigt__p_wxEraseEvent, | |
42787 | &_swigt__p_wxEvent, | |
42788 | &_swigt__p_wxEvtHandler, | |
42789 | &_swigt__p_wxFSFile, | |
42790 | &_swigt__p_wxFileSystem, | |
42791 | &_swigt__p_wxFlexGridSizer, | |
42792 | &_swigt__p_wxFocusEvent, | |
42793 | &_swigt__p_wxFont, | |
42794 | &_swigt__p_wxGBSizerItem, | |
42795 | &_swigt__p_wxGIFHandler, | |
42796 | &_swigt__p_wxGauge, | |
42797 | &_swigt__p_wxGenericDirCtrl, | |
42798 | &_swigt__p_wxGenericDragImage, | |
42799 | &_swigt__p_wxGridBagSizer, | |
42800 | &_swigt__p_wxGridSizer, | |
42801 | &_swigt__p_wxHelpEvent, | |
42802 | &_swigt__p_wxHelpProvider, | |
42803 | &_swigt__p_wxICOHandler, | |
42804 | &_swigt__p_wxIcon, | |
42805 | &_swigt__p_wxIconizeEvent, | |
42806 | &_swigt__p_wxIdleEvent, | |
42807 | &_swigt__p_wxImage, | |
42808 | &_swigt__p_wxImageHandler, | |
42809 | &_swigt__p_wxImageList, | |
42810 | &_swigt__p_wxIndividualLayoutConstraint, | |
42811 | &_swigt__p_wxInitDialogEvent, | |
42812 | &_swigt__p_wxItemContainer, | |
42813 | &_swigt__p_wxJPEGHandler, | |
42814 | &_swigt__p_wxKeyEvent, | |
42815 | &_swigt__p_wxLayoutConstraints, | |
42816 | &_swigt__p_wxListBox, | |
42817 | &_swigt__p_wxListEvent, | |
42818 | &_swigt__p_wxListItem, | |
42819 | &_swigt__p_wxListItemAttr, | |
42820 | &_swigt__p_wxListView, | |
42821 | &_swigt__p_wxListbook, | |
42822 | &_swigt__p_wxListbookEvent, | |
42823 | &_swigt__p_wxMaximizeEvent, | |
42824 | &_swigt__p_wxMemoryDC, | |
42825 | &_swigt__p_wxMenu, | |
42826 | &_swigt__p_wxMenuBar, | |
42827 | &_swigt__p_wxMenuEvent, | |
42828 | &_swigt__p_wxMenuItem, | |
42829 | &_swigt__p_wxMouseCaptureChangedEvent, | |
42830 | &_swigt__p_wxMouseEvent, | |
42831 | &_swigt__p_wxMoveEvent, | |
42832 | &_swigt__p_wxNavigationKeyEvent, | |
42833 | &_swigt__p_wxNcPaintEvent, | |
42834 | &_swigt__p_wxNotebook, | |
42835 | &_swigt__p_wxNotebookEvent, | |
42836 | &_swigt__p_wxNotifyEvent, | |
42837 | &_swigt__p_wxObject, | |
42838 | &_swigt__p_wxPCXHandler, | |
42839 | &_swigt__p_wxPNGHandler, | |
42840 | &_swigt__p_wxPNMHandler, | |
42841 | &_swigt__p_wxPaintEvent, | |
42842 | &_swigt__p_wxPaletteChangedEvent, | |
42843 | &_swigt__p_wxPaperSize, | |
42844 | &_swigt__p_wxPoint, | |
42845 | &_swigt__p_wxPyApp, | |
42846 | &_swigt__p_wxPyCommandEvent, | |
42847 | &_swigt__p_wxPyControl, | |
42848 | &_swigt__p_wxPyEvent, | |
42849 | &_swigt__p_wxPyImageHandler, | |
42850 | &_swigt__p_wxPyListCtrl, | |
42851 | &_swigt__p_wxPySizer, | |
42852 | &_swigt__p_wxPyTreeCtrl, | |
42853 | &_swigt__p_wxPyTreeItemData, | |
42854 | &_swigt__p_wxPyValidator, | |
42855 | &_swigt__p_wxQueryNewPaletteEvent, | |
42856 | &_swigt__p_wxRadioBox, | |
42857 | &_swigt__p_wxRadioButton, | |
42858 | &_swigt__p_wxRect, | |
42859 | &_swigt__p_wxScrollBar, | |
42860 | &_swigt__p_wxScrollEvent, | |
42861 | &_swigt__p_wxScrollWinEvent, | |
42862 | &_swigt__p_wxSetCursorEvent, | |
42863 | &_swigt__p_wxShowEvent, | |
42864 | &_swigt__p_wxSimpleHelpProvider, | |
42865 | &_swigt__p_wxSize, | |
42866 | &_swigt__p_wxSizeEvent, | |
42867 | &_swigt__p_wxSizer, | |
42868 | &_swigt__p_wxSizerItem, | |
42869 | &_swigt__p_wxSlider, | |
42870 | &_swigt__p_wxSpinButton, | |
42871 | &_swigt__p_wxSpinCtrl, | |
42872 | &_swigt__p_wxSpinEvent, | |
42873 | &_swigt__p_wxStaticBitmap, | |
42874 | &_swigt__p_wxStaticBox, | |
42875 | &_swigt__p_wxStaticBoxSizer, | |
42876 | &_swigt__p_wxStaticLine, | |
42877 | &_swigt__p_wxStaticText, | |
42878 | &_swigt__p_wxStdDialogButtonSizer, | |
42879 | &_swigt__p_wxString, | |
42880 | &_swigt__p_wxSysColourChangedEvent, | |
42881 | &_swigt__p_wxTIFFHandler, | |
42882 | &_swigt__p_wxTextAttr, | |
42883 | &_swigt__p_wxTextCtrl, | |
42884 | &_swigt__p_wxTextUrlEvent, | |
42885 | &_swigt__p_wxToggleButton, | |
42886 | &_swigt__p_wxToolBar, | |
42887 | &_swigt__p_wxToolBarBase, | |
42888 | &_swigt__p_wxToolBarToolBase, | |
42889 | &_swigt__p_wxToolbook, | |
42890 | &_swigt__p_wxToolbookEvent, | |
42891 | &_swigt__p_wxTreeCtrl, | |
42892 | &_swigt__p_wxTreeEvent, | |
42893 | &_swigt__p_wxTreeItemId, | |
42894 | &_swigt__p_wxTreebook, | |
42895 | &_swigt__p_wxTreebookEvent, | |
42896 | &_swigt__p_wxUpdateUIEvent, | |
42897 | &_swigt__p_wxValidator, | |
42898 | &_swigt__p_wxVisualAttributes, | |
42899 | &_swigt__p_wxWindow, | |
42900 | &_swigt__p_wxWindowCreateEvent, | |
42901 | &_swigt__p_wxWindowDestroyEvent, | |
42902 | &_swigt__p_wxXPMHandler, | |
42903 | }; | |
42904 | ||
42905 | static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; | |
42906 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
42907 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
42908 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
42909 | static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; | |
42910 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
42911 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
42912 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
42913 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; | |
42914 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
42915 | static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}}; | |
42916 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
42917 | 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}}; | |
42918 | 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}}; | |
42919 | 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}}; | |
42920 | 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}}; | |
42921 | static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}}; | |
42922 | static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
42923 | 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}}; | |
42924 | static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}}; | |
42925 | static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42926 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
42927 | static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}}; | |
42928 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42929 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42930 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42931 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42932 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42933 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42934 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42935 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42936 | static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_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_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_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_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}}; | |
42937 | static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}}; | |
42938 | static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}}; | |
42939 | static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_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_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_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_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}}; | |
42940 | 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}}; | |
42941 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
42942 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; | |
42943 | static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
42944 | static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}}; | |
42945 | static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
42946 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
42947 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42948 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42949 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42950 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42951 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42952 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42953 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42954 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42955 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42956 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42957 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42958 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42959 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42960 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42961 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42962 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42963 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42964 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42965 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42966 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42967 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42968 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42969 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42970 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42971 | 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_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_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_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_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}}; | |
42972 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
42973 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
42974 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
42975 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
42976 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_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_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_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_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_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_wxSpinButton, _p_wxSpinButtonTo_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}}; | |
42977 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
42978 | static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}}; | |
42979 | static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
42980 | static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}}; | |
42981 | static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42982 | 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}}; | |
42983 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
42984 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
42985 | 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}}; | |
42986 | static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42987 | 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}}; | |
42988 | static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42989 | static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}}; | |
42990 | static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
42991 | static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}}; | |
42992 | static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}}; | |
42993 | static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42994 | static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}}; | |
42995 | static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42996 | static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}}; | |
42997 | static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
42998 | 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}}; | |
42999 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
43000 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
43001 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
43002 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
43003 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43004 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43005 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43006 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43007 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43008 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43009 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
43010 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43011 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
43012 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43013 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43014 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43015 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43016 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43017 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43018 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43019 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43020 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43021 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43022 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43023 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43024 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43025 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43026 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
43027 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
43028 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
43029 | 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_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_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_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_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_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_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_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_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_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_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}}; | |
43030 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
43031 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
43032 | static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}}; | |
43033 | 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}}; | |
43034 | static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
43035 | static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}}; | |
43036 | static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}}; | |
43037 | static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}}; | |
43038 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
43039 | static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}}; | |
43040 | static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}}; | |
43041 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
43042 | static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}}; | |
43043 | static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}}; | |
43044 | static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
43045 | static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43046 | static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
43047 | static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}}; | |
43048 | static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}}; | |
43049 | static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}}; | |
43050 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
43051 | static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
43052 | static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
43053 | static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43054 | static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}}; | |
43055 | static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}}; | |
43056 | 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}}; | |
43057 | static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}}; | |
43058 | static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}}; | |
43059 | static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43060 | static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
43061 | static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43062 | static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}}; | |
43063 | static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}}; | |
43064 | static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43065 | 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}}; | |
43066 | static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}}; | |
43067 | static swig_cast_info _swigc__p_wxWindow[] = { {&_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_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_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_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_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_wxSpinButton, _p_wxSpinButtonTo_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}}; | |
43068 | ||
43069 | static swig_cast_info *swig_cast_initial[] = { | |
43070 | _swigc__p_bool, | |
43071 | _swigc__p_char, | |
43072 | _swigc__p_form_ops_t, | |
43073 | _swigc__p_int, | |
43074 | _swigc__p_long, | |
43075 | _swigc__p_unsigned_char, | |
43076 | _swigc__p_unsigned_int, | |
43077 | _swigc__p_unsigned_long, | |
43078 | _swigc__p_void, | |
43079 | _swigc__p_wxANIHandler, | |
43080 | _swigc__p_wxAcceleratorTable, | |
43081 | _swigc__p_wxActivateEvent, | |
43082 | _swigc__p_wxArrayInt, | |
43083 | _swigc__p_wxArrayString, | |
43084 | _swigc__p_wxBMPHandler, | |
43085 | _swigc__p_wxBitmap, | |
43086 | _swigc__p_wxBitmapButton, | |
43087 | _swigc__p_wxBookCtrlBase, | |
43088 | _swigc__p_wxBookCtrlBaseEvent, | |
43089 | _swigc__p_wxBoxSizer, | |
43090 | _swigc__p_wxButton, | |
43091 | _swigc__p_wxCURHandler, | |
43092 | _swigc__p_wxCheckBox, | |
43093 | _swigc__p_wxCheckListBox, | |
43094 | _swigc__p_wxChildFocusEvent, | |
43095 | _swigc__p_wxChoice, | |
43096 | _swigc__p_wxChoicebook, | |
43097 | _swigc__p_wxChoicebookEvent, | |
43098 | _swigc__p_wxCloseEvent, | |
43099 | _swigc__p_wxColour, | |
43100 | _swigc__p_wxComboBox, | |
43101 | _swigc__p_wxCommandEvent, | |
43102 | _swigc__p_wxContextHelp, | |
43103 | _swigc__p_wxContextHelpButton, | |
43104 | _swigc__p_wxContextMenuEvent, | |
43105 | _swigc__p_wxControl, | |
43106 | _swigc__p_wxControlWithItems, | |
43107 | _swigc__p_wxCursor, | |
43108 | _swigc__p_wxDC, | |
43109 | _swigc__p_wxDateEvent, | |
43110 | _swigc__p_wxDatePickerCtrl, | |
43111 | _swigc__p_wxDateTime, | |
43112 | _swigc__p_wxDirFilterListCtrl, | |
43113 | _swigc__p_wxDisplayChangedEvent, | |
43114 | _swigc__p_wxDropFilesEvent, | |
43115 | _swigc__p_wxDuplexMode, | |
43116 | _swigc__p_wxEraseEvent, | |
43117 | _swigc__p_wxEvent, | |
43118 | _swigc__p_wxEvtHandler, | |
43119 | _swigc__p_wxFSFile, | |
43120 | _swigc__p_wxFileSystem, | |
43121 | _swigc__p_wxFlexGridSizer, | |
43122 | _swigc__p_wxFocusEvent, | |
43123 | _swigc__p_wxFont, | |
43124 | _swigc__p_wxGBSizerItem, | |
43125 | _swigc__p_wxGIFHandler, | |
43126 | _swigc__p_wxGauge, | |
43127 | _swigc__p_wxGenericDirCtrl, | |
43128 | _swigc__p_wxGenericDragImage, | |
43129 | _swigc__p_wxGridBagSizer, | |
43130 | _swigc__p_wxGridSizer, | |
43131 | _swigc__p_wxHelpEvent, | |
43132 | _swigc__p_wxHelpProvider, | |
43133 | _swigc__p_wxICOHandler, | |
43134 | _swigc__p_wxIcon, | |
43135 | _swigc__p_wxIconizeEvent, | |
43136 | _swigc__p_wxIdleEvent, | |
43137 | _swigc__p_wxImage, | |
43138 | _swigc__p_wxImageHandler, | |
43139 | _swigc__p_wxImageList, | |
43140 | _swigc__p_wxIndividualLayoutConstraint, | |
43141 | _swigc__p_wxInitDialogEvent, | |
43142 | _swigc__p_wxItemContainer, | |
43143 | _swigc__p_wxJPEGHandler, | |
43144 | _swigc__p_wxKeyEvent, | |
43145 | _swigc__p_wxLayoutConstraints, | |
43146 | _swigc__p_wxListBox, | |
43147 | _swigc__p_wxListEvent, | |
43148 | _swigc__p_wxListItem, | |
43149 | _swigc__p_wxListItemAttr, | |
43150 | _swigc__p_wxListView, | |
43151 | _swigc__p_wxListbook, | |
43152 | _swigc__p_wxListbookEvent, | |
43153 | _swigc__p_wxMaximizeEvent, | |
43154 | _swigc__p_wxMemoryDC, | |
43155 | _swigc__p_wxMenu, | |
43156 | _swigc__p_wxMenuBar, | |
43157 | _swigc__p_wxMenuEvent, | |
43158 | _swigc__p_wxMenuItem, | |
43159 | _swigc__p_wxMouseCaptureChangedEvent, | |
43160 | _swigc__p_wxMouseEvent, | |
43161 | _swigc__p_wxMoveEvent, | |
43162 | _swigc__p_wxNavigationKeyEvent, | |
43163 | _swigc__p_wxNcPaintEvent, | |
43164 | _swigc__p_wxNotebook, | |
43165 | _swigc__p_wxNotebookEvent, | |
43166 | _swigc__p_wxNotifyEvent, | |
43167 | _swigc__p_wxObject, | |
43168 | _swigc__p_wxPCXHandler, | |
43169 | _swigc__p_wxPNGHandler, | |
43170 | _swigc__p_wxPNMHandler, | |
43171 | _swigc__p_wxPaintEvent, | |
43172 | _swigc__p_wxPaletteChangedEvent, | |
43173 | _swigc__p_wxPaperSize, | |
43174 | _swigc__p_wxPoint, | |
43175 | _swigc__p_wxPyApp, | |
43176 | _swigc__p_wxPyCommandEvent, | |
43177 | _swigc__p_wxPyControl, | |
43178 | _swigc__p_wxPyEvent, | |
43179 | _swigc__p_wxPyImageHandler, | |
43180 | _swigc__p_wxPyListCtrl, | |
43181 | _swigc__p_wxPySizer, | |
43182 | _swigc__p_wxPyTreeCtrl, | |
43183 | _swigc__p_wxPyTreeItemData, | |
43184 | _swigc__p_wxPyValidator, | |
43185 | _swigc__p_wxQueryNewPaletteEvent, | |
43186 | _swigc__p_wxRadioBox, | |
43187 | _swigc__p_wxRadioButton, | |
43188 | _swigc__p_wxRect, | |
43189 | _swigc__p_wxScrollBar, | |
43190 | _swigc__p_wxScrollEvent, | |
43191 | _swigc__p_wxScrollWinEvent, | |
43192 | _swigc__p_wxSetCursorEvent, | |
43193 | _swigc__p_wxShowEvent, | |
43194 | _swigc__p_wxSimpleHelpProvider, | |
43195 | _swigc__p_wxSize, | |
43196 | _swigc__p_wxSizeEvent, | |
43197 | _swigc__p_wxSizer, | |
43198 | _swigc__p_wxSizerItem, | |
43199 | _swigc__p_wxSlider, | |
43200 | _swigc__p_wxSpinButton, | |
43201 | _swigc__p_wxSpinCtrl, | |
43202 | _swigc__p_wxSpinEvent, | |
43203 | _swigc__p_wxStaticBitmap, | |
43204 | _swigc__p_wxStaticBox, | |
43205 | _swigc__p_wxStaticBoxSizer, | |
43206 | _swigc__p_wxStaticLine, | |
43207 | _swigc__p_wxStaticText, | |
43208 | _swigc__p_wxStdDialogButtonSizer, | |
43209 | _swigc__p_wxString, | |
43210 | _swigc__p_wxSysColourChangedEvent, | |
43211 | _swigc__p_wxTIFFHandler, | |
43212 | _swigc__p_wxTextAttr, | |
43213 | _swigc__p_wxTextCtrl, | |
43214 | _swigc__p_wxTextUrlEvent, | |
43215 | _swigc__p_wxToggleButton, | |
43216 | _swigc__p_wxToolBar, | |
43217 | _swigc__p_wxToolBarBase, | |
43218 | _swigc__p_wxToolBarToolBase, | |
43219 | _swigc__p_wxToolbook, | |
43220 | _swigc__p_wxToolbookEvent, | |
43221 | _swigc__p_wxTreeCtrl, | |
43222 | _swigc__p_wxTreeEvent, | |
43223 | _swigc__p_wxTreeItemId, | |
43224 | _swigc__p_wxTreebook, | |
43225 | _swigc__p_wxTreebookEvent, | |
43226 | _swigc__p_wxUpdateUIEvent, | |
43227 | _swigc__p_wxValidator, | |
43228 | _swigc__p_wxVisualAttributes, | |
43229 | _swigc__p_wxWindow, | |
43230 | _swigc__p_wxWindowCreateEvent, | |
43231 | _swigc__p_wxWindowDestroyEvent, | |
43232 | _swigc__p_wxXPMHandler, | |
43233 | }; | |
43234 | ||
43235 | ||
43236 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
43237 | ||
43238 | static swig_const_info swig_const_table[] = { | |
43239 | {0, 0, 0, 0.0, 0, 0}}; | |
43240 | ||
43241 | #ifdef __cplusplus | |
43242 | } | |
43243 | #endif | |
43244 | /* ----------------------------------------------------------------------------- | |
43245 | * Type initialization: | |
43246 | * This problem is tough by the requirement that no dynamic | |
43247 | * memory is used. Also, since swig_type_info structures store pointers to | |
43248 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
43249 | * to swig_type_info structures, we need some lookup code at initialization. | |
43250 | * The idea is that swig generates all the structures that are needed. | |
43251 | * The runtime then collects these partially filled structures. | |
43252 | * The SWIG_InitializeModule function takes these initial arrays out of | |
43253 | * swig_module, and does all the lookup, filling in the swig_module.types | |
43254 | * array with the correct data and linking the correct swig_cast_info | |
43255 | * structures together. | |
43256 | * | |
43257 | * The generated swig_type_info structures are assigned staticly to an initial | |
43258 | * array. We just loop though that array, and handle each type individually. | |
43259 | * First we lookup if this type has been already loaded, and if so, use the | |
43260 | * loaded structure instead of the generated one. Then we have to fill in the | |
43261 | * cast linked list. The cast data is initially stored in something like a | |
43262 | * two-dimensional array. Each row corresponds to a type (there are the same | |
43263 | * number of rows as there are in the swig_type_initial array). Each entry in | |
43264 | * a column is one of the swig_cast_info structures for that type. | |
43265 | * The cast_initial array is actually an array of arrays, because each row has | |
43266 | * a variable number of columns. So to actually build the cast linked list, | |
43267 | * we find the array of casts associated with the type, and loop through it | |
43268 | * adding the casts to the list. The one last trick we need to do is making | |
43269 | * sure the type pointer in the swig_cast_info struct is correct. | |
43270 | * | |
43271 | * First off, we lookup the cast->type name to see if it is already loaded. | |
43272 | * There are three cases to handle: | |
43273 | * 1) If the cast->type has already been loaded AND the type we are adding | |
43274 | * casting info to has not been loaded (it is in this module), THEN we | |
43275 | * replace the cast->type pointer with the type pointer that has already | |
43276 | * been loaded. | |
43277 | * 2) If BOTH types (the one we are adding casting info to, and the | |
43278 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
43279 | * the previous module so we just ignore it. | |
43280 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
43281 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
43282 | * be correct. | |
43283 | * ----------------------------------------------------------------------------- */ | |
43284 | ||
43285 | #ifdef __cplusplus | |
43286 | extern "C" { | |
43287 | #if 0 | |
43288 | } /* c-mode */ | |
43289 | #endif | |
43290 | #endif | |
43291 | ||
43292 | #if 0 | |
43293 | #define SWIGRUNTIME_DEBUG | |
43294 | #endif | |
43295 | ||
43296 | SWIGRUNTIME void | |
43297 | SWIG_InitializeModule(void *clientdata) { | |
43298 | size_t i; | |
43299 | swig_module_info *module_head; | |
43300 | static int init_run = 0; | |
43301 | ||
43302 | clientdata = clientdata; | |
43303 | ||
43304 | if (init_run) return; | |
43305 | init_run = 1; | |
43306 | ||
43307 | /* Initialize the swig_module */ | |
43308 | swig_module.type_initial = swig_type_initial; | |
43309 | swig_module.cast_initial = swig_cast_initial; | |
43310 | ||
43311 | /* Try and load any already created modules */ | |
43312 | module_head = SWIG_GetModule(clientdata); | |
43313 | if (module_head) { | |
43314 | swig_module.next = module_head->next; | |
43315 | module_head->next = &swig_module; | |
43316 | } else { | |
43317 | /* This is the first module loaded */ | |
43318 | swig_module.next = &swig_module; | |
43319 | SWIG_SetModule(clientdata, &swig_module); | |
43320 | } | |
43321 | ||
43322 | /* Now work on filling in swig_module.types */ | |
43323 | #ifdef SWIGRUNTIME_DEBUG | |
43324 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
43325 | #endif | |
43326 | for (i = 0; i < swig_module.size; ++i) { | |
43327 | swig_type_info *type = 0; | |
43328 | swig_type_info *ret; | |
43329 | swig_cast_info *cast; | |
d55e5bfc | 43330 | |
1bd55598 RD |
43331 | #ifdef SWIGRUNTIME_DEBUG |
43332 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
43333 | #endif | |
d55e5bfc | 43334 | |
1bd55598 RD |
43335 | /* if there is another module already loaded */ |
43336 | if (swig_module.next != &swig_module) { | |
43337 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
36ed4f51 | 43338 | } |
1bd55598 RD |
43339 | if (type) { |
43340 | /* Overwrite clientdata field */ | |
43341 | #ifdef SWIGRUNTIME_DEBUG | |
43342 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
43343 | #endif | |
43344 | if (swig_module.type_initial[i]->clientdata) { | |
43345 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
43346 | #ifdef SWIGRUNTIME_DEBUG | |
43347 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
43348 | #endif | |
43349 | } | |
43350 | } else { | |
43351 | type = swig_module.type_initial[i]; | |
36ed4f51 | 43352 | } |
d55e5bfc | 43353 | |
1bd55598 RD |
43354 | /* Insert casting types */ |
43355 | cast = swig_module.cast_initial[i]; | |
43356 | while (cast->type) { | |
43357 | /* Don't need to add information already in the list */ | |
43358 | ret = 0; | |
43359 | #ifdef SWIGRUNTIME_DEBUG | |
43360 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
43361 | #endif | |
43362 | if (swig_module.next != &swig_module) { | |
43363 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
43364 | #ifdef SWIGRUNTIME_DEBUG | |
43365 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
43366 | #endif | |
43367 | } | |
43368 | if (ret) { | |
43369 | if (type == swig_module.type_initial[i]) { | |
43370 | #ifdef SWIGRUNTIME_DEBUG | |
43371 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
43372 | #endif | |
43373 | cast->type = ret; | |
43374 | ret = 0; | |
43375 | } else { | |
43376 | /* Check for casting already in the list */ | |
43377 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
43378 | #ifdef SWIGRUNTIME_DEBUG | |
43379 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
43380 | #endif | |
43381 | if (!ocast) ret = 0; | |
43382 | } | |
43383 | } | |
43384 | ||
43385 | if (!ret) { | |
43386 | #ifdef SWIGRUNTIME_DEBUG | |
43387 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
43388 | #endif | |
43389 | if (type->cast) { | |
43390 | type->cast->prev = cast; | |
43391 | cast->next = type->cast; | |
43392 | } | |
43393 | type->cast = cast; | |
43394 | } | |
43395 | cast++; | |
36ed4f51 | 43396 | } |
1bd55598 RD |
43397 | /* Set entry in modules->types array equal to the type */ |
43398 | swig_module.types[i] = type; | |
43399 | } | |
43400 | swig_module.types[i] = 0; | |
43401 | ||
43402 | #ifdef SWIGRUNTIME_DEBUG | |
43403 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
43404 | for (i = 0; i < swig_module.size; ++i) { | |
43405 | int j = 0; | |
43406 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
43407 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
43408 | while (cast->type) { | |
43409 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
43410 | cast++; | |
43411 | ++j; | |
43412 | } | |
43413 | printf("---- Total casts: %d\n",j); | |
43414 | } | |
43415 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
43416 | #endif | |
43417 | } | |
43418 | ||
43419 | /* This function will propagate the clientdata field of type to | |
43420 | * any new swig_type_info structures that have been added into the list | |
43421 | * of equivalent types. It is like calling | |
43422 | * SWIG_TypeClientData(type, clientdata) a second time. | |
43423 | */ | |
43424 | SWIGRUNTIME void | |
43425 | SWIG_PropagateClientData(void) { | |
43426 | size_t i; | |
43427 | swig_cast_info *equiv; | |
43428 | static int init_run = 0; | |
43429 | ||
43430 | if (init_run) return; | |
43431 | init_run = 1; | |
43432 | ||
43433 | for (i = 0; i < swig_module.size; i++) { | |
43434 | if (swig_module.types[i]->clientdata) { | |
43435 | equiv = swig_module.types[i]->cast; | |
43436 | while (equiv) { | |
43437 | if (!equiv->converter) { | |
43438 | if (equiv->type && !equiv->type->clientdata) | |
43439 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
43440 | } | |
43441 | equiv = equiv->next; | |
43442 | } | |
36ed4f51 | 43443 | } |
1bd55598 RD |
43444 | } |
43445 | } | |
43446 | ||
43447 | #ifdef __cplusplus | |
43448 | #if 0 | |
43449 | { | |
43450 | /* c-mode */ | |
43451 | #endif | |
43452 | } | |
43453 | #endif | |
43454 | ||
43455 | ||
43456 | ||
43457 | #ifdef __cplusplus | |
43458 | extern "C" { | |
43459 | #endif | |
43460 | ||
43461 | /* Python-specific SWIG API */ | |
43462 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
43463 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
43464 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
43465 | ||
43466 | /* ----------------------------------------------------------------------------- | |
43467 | * global variable support code. | |
43468 | * ----------------------------------------------------------------------------- */ | |
43469 | ||
43470 | typedef struct swig_globalvar { | |
43471 | char *name; /* Name of global variable */ | |
43472 | PyObject *(*get_attr)(void); /* Return the current value */ | |
43473 | int (*set_attr)(PyObject *); /* Set the value */ | |
43474 | struct swig_globalvar *next; | |
43475 | } swig_globalvar; | |
43476 | ||
43477 | typedef struct swig_varlinkobject { | |
43478 | PyObject_HEAD | |
43479 | swig_globalvar *vars; | |
43480 | } swig_varlinkobject; | |
43481 | ||
43482 | SWIGINTERN PyObject * | |
43483 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
43484 | return PyString_FromString("<Swig global variables>"); | |
43485 | } | |
43486 | ||
43487 | SWIGINTERN PyObject * | |
43488 | swig_varlink_str(swig_varlinkobject *v) { | |
43489 | PyObject *str = PyString_FromString("("); | |
43490 | swig_globalvar *var; | |
43491 | for (var = v->vars; var; var=var->next) { | |
43492 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
43493 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
43494 | } | |
43495 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
43496 | return str; | |
43497 | } | |
43498 | ||
43499 | SWIGINTERN int | |
43500 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
43501 | PyObject *str = swig_varlink_str(v); | |
43502 | fprintf(fp,"Swig global variables "); | |
43503 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
43504 | Py_DECREF(str); | |
43505 | return 0; | |
43506 | } | |
43507 | ||
43508 | SWIGINTERN void | |
43509 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
43510 | swig_globalvar *var = v->vars; | |
43511 | while (var) { | |
43512 | swig_globalvar *n = var->next; | |
43513 | free(var->name); | |
43514 | free(var); | |
43515 | var = n; | |
36ed4f51 | 43516 | } |
1bd55598 RD |
43517 | } |
43518 | ||
43519 | SWIGINTERN PyObject * | |
43520 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
43521 | PyObject *res = NULL; | |
43522 | swig_globalvar *var = v->vars; | |
43523 | while (var) { | |
43524 | if (strcmp(var->name,n) == 0) { | |
43525 | res = (*var->get_attr)(); | |
43526 | break; | |
43527 | } | |
43528 | var = var->next; | |
36ed4f51 | 43529 | } |
1bd55598 RD |
43530 | if (res == NULL && !PyErr_Occurred()) { |
43531 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
36ed4f51 | 43532 | } |
1bd55598 RD |
43533 | return res; |
43534 | } | |
43535 | ||
43536 | SWIGINTERN int | |
43537 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
43538 | int res = 1; | |
43539 | swig_globalvar *var = v->vars; | |
43540 | while (var) { | |
43541 | if (strcmp(var->name,n) == 0) { | |
43542 | res = (*var->set_attr)(p); | |
43543 | break; | |
43544 | } | |
43545 | var = var->next; | |
36ed4f51 | 43546 | } |
1bd55598 RD |
43547 | if (res == 1 && !PyErr_Occurred()) { |
43548 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
53aa7709 | 43549 | } |
1bd55598 RD |
43550 | return res; |
43551 | } | |
43552 | ||
43553 | SWIGINTERN PyTypeObject* | |
43554 | swig_varlink_type(void) { | |
43555 | static char varlink__doc__[] = "Swig var link object"; | |
43556 | static PyTypeObject varlink_type; | |
43557 | static int type_init = 0; | |
43558 | if (!type_init) { | |
43559 | const PyTypeObject tmp | |
43560 | = { | |
43561 | PyObject_HEAD_INIT(NULL) | |
43562 | 0, /* Number of items in variable part (ob_size) */ | |
43563 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
43564 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
43565 | 0, /* Itemsize (tp_itemsize) */ | |
43566 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
43567 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
43568 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
43569 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
43570 | 0, /* tp_compare */ | |
43571 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
43572 | 0, /* tp_as_number */ | |
43573 | 0, /* tp_as_sequence */ | |
43574 | 0, /* tp_as_mapping */ | |
43575 | 0, /* tp_hash */ | |
43576 | 0, /* tp_call */ | |
43577 | (reprfunc)swig_varlink_str, /* tp_str */ | |
43578 | 0, /* tp_getattro */ | |
43579 | 0, /* tp_setattro */ | |
43580 | 0, /* tp_as_buffer */ | |
43581 | 0, /* tp_flags */ | |
43582 | varlink__doc__, /* tp_doc */ | |
43583 | 0, /* tp_traverse */ | |
43584 | 0, /* tp_clear */ | |
43585 | 0, /* tp_richcompare */ | |
43586 | 0, /* tp_weaklistoffset */ | |
43587 | #if PY_VERSION_HEX >= 0x02020000 | |
43588 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
43589 | #endif | |
43590 | #if PY_VERSION_HEX >= 0x02030000 | |
43591 | 0, /* tp_del */ | |
43592 | #endif | |
43593 | #ifdef COUNT_ALLOCS | |
43594 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
43595 | #endif | |
43596 | }; | |
43597 | varlink_type = tmp; | |
43598 | varlink_type.ob_type = &PyType_Type; | |
43599 | type_init = 1; | |
53aa7709 | 43600 | } |
1bd55598 RD |
43601 | return &varlink_type; |
43602 | } | |
43603 | ||
43604 | /* Create a variable linking object for use later */ | |
43605 | SWIGINTERN PyObject * | |
43606 | SWIG_Python_newvarlink(void) { | |
43607 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
43608 | if (result) { | |
43609 | result->vars = 0; | |
43610 | } | |
43611 | return ((PyObject*) result); | |
43612 | } | |
43613 | ||
43614 | SWIGINTERN void | |
43615 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
43616 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
43617 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
43618 | if (gv) { | |
43619 | size_t size = strlen(name)+1; | |
43620 | gv->name = (char *)malloc(size); | |
43621 | if (gv->name) { | |
43622 | strncpy(gv->name,name,size); | |
43623 | gv->get_attr = get_attr; | |
43624 | gv->set_attr = set_attr; | |
43625 | gv->next = v->vars; | |
43626 | } | |
53aa7709 | 43627 | } |
1bd55598 RD |
43628 | v->vars = gv; |
43629 | } | |
43630 | ||
43631 | SWIGINTERN PyObject * | |
43632 | SWIG_globals() { | |
43633 | static PyObject *_SWIG_globals = 0; | |
43634 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
43635 | return _SWIG_globals; | |
43636 | } | |
43637 | ||
43638 | /* ----------------------------------------------------------------------------- | |
43639 | * constants/methods manipulation | |
43640 | * ----------------------------------------------------------------------------- */ | |
43641 | ||
43642 | /* Install Constants */ | |
43643 | SWIGINTERN void | |
43644 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
43645 | PyObject *obj = 0; | |
43646 | size_t i; | |
43647 | for (i = 0; constants[i].type; ++i) { | |
43648 | switch(constants[i].type) { | |
43649 | case SWIG_PY_POINTER: | |
43650 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
43651 | break; | |
43652 | case SWIG_PY_BINARY: | |
43653 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
43654 | break; | |
43655 | default: | |
43656 | obj = 0; | |
43657 | break; | |
43658 | } | |
43659 | if (obj) { | |
43660 | PyDict_SetItemString(d, constants[i].name, obj); | |
43661 | Py_DECREF(obj); | |
43662 | } | |
53aa7709 | 43663 | } |
1bd55598 RD |
43664 | } |
43665 | ||
43666 | /* -----------------------------------------------------------------------------*/ | |
43667 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
43668 | /* -----------------------------------------------------------------------------*/ | |
43669 | ||
43670 | SWIGINTERN void | |
43671 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
43672 | swig_const_info *const_table, | |
43673 | swig_type_info **types, | |
43674 | swig_type_info **types_initial) { | |
43675 | size_t i; | |
43676 | for (i = 0; methods[i].ml_name; ++i) { | |
43677 | char *c = methods[i].ml_doc; | |
43678 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
43679 | int j; | |
43680 | swig_const_info *ci = 0; | |
43681 | char *name = c + 10; | |
43682 | for (j = 0; const_table[j].type; ++j) { | |
43683 | if (strncmp(const_table[j].name, name, | |
43684 | strlen(const_table[j].name)) == 0) { | |
43685 | ci = &(const_table[j]); | |
43686 | break; | |
43687 | } | |
43688 | } | |
43689 | if (ci) { | |
43690 | size_t shift = (ci->ptype) - types; | |
43691 | swig_type_info *ty = types_initial[shift]; | |
43692 | size_t ldoc = (c - methods[i].ml_doc); | |
43693 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
43694 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
43695 | if (ndoc) { | |
43696 | char *buff = ndoc; | |
43697 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
43698 | if (ptr) { | |
43699 | strncpy(buff, methods[i].ml_doc, ldoc); | |
43700 | buff += ldoc; | |
43701 | strncpy(buff, "swig_ptr: ", 10); | |
43702 | buff += 10; | |
43703 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
43704 | methods[i].ml_doc = ndoc; | |
43705 | } | |
43706 | } | |
43707 | } | |
43708 | } | |
53aa7709 | 43709 | } |
1bd55598 RD |
43710 | } |
43711 | ||
43712 | #ifdef __cplusplus | |
43713 | } | |
43714 | #endif | |
43715 | ||
43716 | /* -----------------------------------------------------------------------------* | |
43717 | * Partial Init method | |
43718 | * -----------------------------------------------------------------------------*/ | |
43719 | ||
43720 | #ifdef __cplusplus | |
43721 | extern "C" | |
43722 | #endif | |
43723 | SWIGEXPORT void SWIG_init(void) { | |
43724 | PyObject *m, *d; | |
43725 | ||
43726 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
43727 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
43728 | ||
43729 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
43730 | d = PyModule_GetDict(m); | |
43731 | ||
43732 | SWIG_InitializeModule(0); | |
43733 | SWIG_InstallConstants(d,swig_const_table); | |
43734 | ||
43735 | ||
43736 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
43737 | SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set); | |
43738 | SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT))); | |
43739 | SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP))); | |
43740 | SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT))); | |
43741 | SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM))); | |
43742 | SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK))); | |
43743 | SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT))); | |
43744 | SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW))); | |
43745 | SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set); | |
43746 | SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE))); | |
43747 | SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE))); | |
43748 | SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER))); | |
43749 | SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED))); | |
43750 | SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED))); | |
43751 | SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED))); | |
43752 | SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set); | |
43753 | SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set); | |
43754 | SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set); | |
43755 | SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL))); | |
43756 | SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL))); | |
43757 | SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH))); | |
43758 | SWIG_Python_SetConstant(d, "GA_PROGRESSBAR",SWIG_From_int(static_cast< int >(wxGA_PROGRESSBAR))); | |
43759 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set); | |
43760 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set); | |
43761 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set); | |
43762 | SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set); | |
43763 | SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set); | |
43764 | SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL))); | |
43765 | SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL))); | |
43766 | SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY))); | |
43767 | SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE))); | |
43768 | SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB))); | |
43769 | SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT))); | |
43770 | SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER))); | |
43771 | SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT))); | |
43772 | SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE))); | |
43773 | SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH))); | |
43774 | SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER))); | |
43775 | SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD))); | |
43776 | SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL))); | |
43777 | SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL))); | |
43778 | SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP))); | |
43779 | SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP))); | |
43780 | SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP))); | |
43781 | SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP))); | |
43782 | SWIG_Python_SetConstant(d, "TE_LINEWRAP",SWIG_From_int(static_cast< int >(wxTE_LINEWRAP))); | |
43783 | SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2))); | |
43784 | SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE))); | |
43785 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT))); | |
43786 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT))); | |
43787 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE))); | |
43788 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER))); | |
43789 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT))); | |
43790 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED))); | |
43791 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR))); | |
43792 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR))); | |
43793 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE))); | |
43794 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE))); | |
43795 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT))); | |
43796 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC))); | |
43797 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE))); | |
43798 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT))); | |
43799 | SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT))); | |
43800 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT))); | |
43801 | SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT))); | |
43802 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS))); | |
43803 | SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN))); | |
43804 | SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE))); | |
43805 | SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT))); | |
43806 | SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW))); | |
43807 | SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND))); | |
43808 | SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord))); | |
43809 | SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord))); | |
43810 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); | |
43811 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
43812 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
43813 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
43814 | SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set); | |
43815 | SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set); | |
43816 | SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set); | |
43817 | SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL))); | |
43818 | SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL))); | |
43819 | SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS))); | |
43820 | SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP))); | |
43821 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); | |
43822 | SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set); | |
43823 | SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set); | |
43824 | SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set); | |
43825 | SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL))); | |
43826 | SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL))); | |
43827 | SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS))); | |
43828 | SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS))); | |
43829 | SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS))); | |
43830 | SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT))); | |
43831 | SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP))); | |
43832 | SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT))); | |
43833 | SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM))); | |
43834 | SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH))); | |
43835 | SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE))); | |
43836 | SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE))); | |
43837 | SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set); | |
43838 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
43839 | SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set); | |
43840 | SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT))); | |
43841 | SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP))); | |
43842 | SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM))); | |
43843 | SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT))); | |
43844 | SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT))); | |
43845 | SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK))); | |
43846 | SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH))); | |
43847 | SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP))); | |
43848 | SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT))); | |
43849 | SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT))); | |
43850 | SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM))); | |
43851 | SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE))); | |
43852 | SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME))); | |
43853 | SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE))); | |
43854 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON))); | |
43855 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL))); | |
43856 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM))); | |
43857 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); | |
43858 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
43859 | SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT))); | |
43860 | SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP))); | |
43861 | SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM))); | |
43862 | SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT))); | |
43863 | SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT))); | |
43864 | SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK))); | |
43865 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
43866 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
43867 | SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT))); | |
43868 | SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP))); | |
43869 | SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM))); | |
43870 | SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT))); | |
43871 | SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT))); | |
43872 | SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK))); | |
43873 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); | |
43874 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
43875 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED)); | |
43876 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING)); | |
43877 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED)); | |
43878 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED)); | |
43879 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED)); | |
43880 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING)); | |
43881 | SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON))); | |
43882 | SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR))); | |
43883 | SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL))); | |
43884 | SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL))); | |
43885 | SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL))); | |
43886 | SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS))); | |
43887 | SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT))); | |
43888 | SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE))); | |
43889 | SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS))); | |
43890 | SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT))); | |
43891 | SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER))); | |
43892 | SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN))); | |
43893 | SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT))); | |
43894 | SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT))); | |
43895 | SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set); | |
43896 | SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES))); | |
43897 | SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES))); | |
43898 | SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON))); | |
43899 | SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON))); | |
43900 | SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST))); | |
43901 | SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT))); | |
43902 | SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP))); | |
43903 | SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT))); | |
43904 | SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE))); | |
43905 | SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL))); | |
43906 | SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS))); | |
43907 | SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER))); | |
43908 | SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER))); | |
43909 | SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL))); | |
43910 | SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING))); | |
43911 | SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING))); | |
43912 | SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE))); | |
43913 | SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN))); | |
43914 | SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT))); | |
43915 | SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE))); | |
43916 | SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT))); | |
43917 | SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE))); | |
43918 | SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA))); | |
43919 | SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM))); | |
43920 | SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH))); | |
43921 | SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT))); | |
43922 | SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE))); | |
43923 | SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED))); | |
43924 | SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED))); | |
43925 | SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED))); | |
43926 | SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT))); | |
43927 | SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED))); | |
43928 | SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED))); | |
43929 | SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE))); | |
43930 | SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED))); | |
43931 | SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE))); | |
43932 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE))); | |
43933 | SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW))); | |
43934 | SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE))); | |
43935 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON))); | |
43936 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL))); | |
43937 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT))); | |
43938 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON))); | |
43939 | SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT))); | |
43940 | SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT))); | |
43941 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM))); | |
43942 | SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE))); | |
43943 | SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL))); | |
43944 | SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW))); | |
43945 | SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT))); | |
43946 | SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT))); | |
43947 | SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT))); | |
43948 | SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT))); | |
43949 | SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP))); | |
43950 | SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID))); | |
43951 | SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT))); | |
43952 | SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT))); | |
43953 | SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE))); | |
43954 | SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER))); | |
43955 | SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE))); | |
43956 | SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER))); | |
43957 | SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS))); | |
43958 | SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON))); | |
43959 | SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL))); | |
43960 | SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP))); | |
43961 | SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN))); | |
43962 | SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT))); | |
43963 | SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT))); | |
43964 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
43965 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
43966 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
43967 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
43968 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
43969 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
43970 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
43971 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
43972 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
43973 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
43974 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
43975 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
43976 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
43977 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
43978 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
43979 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
43980 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
43981 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
43982 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
43983 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
43984 | ||
43985 | // Map renamed classes back to their common name for OOR | |
43986 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
43987 | ||
43988 | SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set); | |
43989 | SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS))); | |
43990 | SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS))); | |
43991 | SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES))); | |
43992 | SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT))); | |
43993 | SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE))); | |
43994 | SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE))); | |
43995 | SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED))); | |
43996 | SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT))); | |
43997 | SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS))); | |
43998 | SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT))); | |
43999 | SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES))); | |
44000 | SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT))); | |
44001 | SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE))); | |
44002 | SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS))); | |
44003 | SWIG_Python_SetConstant(d, "TR_MAC_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_MAC_BUTTONS))); | |
44004 | SWIG_Python_SetConstant(d, "TR_AQUA_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_AQUA_BUTTONS))); | |
44005 | SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal))); | |
44006 | SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected))); | |
44007 | SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded))); | |
44008 | SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded))); | |
44009 | SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max))); | |
44010 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE))); | |
44011 | SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW))); | |
44012 | SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE))); | |
44013 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON))); | |
44014 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON))); | |
44015 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT))); | |
44016 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL))); | |
44017 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT))); | |
44018 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON))); | |
44019 | SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT))); | |
44020 | SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT))); | |
44021 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART))); | |
44022 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART))); | |
44023 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM))); | |
44024 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
44025 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
44026 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
44027 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
44028 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
44029 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
44030 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
44031 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
44032 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
44033 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
44034 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
44035 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
44036 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
44037 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
44038 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
44039 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
44040 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
44041 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
44042 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
44043 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
44044 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU)); | |
44045 | ||
44046 | // Map renamed classes back to their common name for OOR | |
44047 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
44048 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
44049 | ||
44050 | SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set); | |
44051 | SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY))); | |
44052 | SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST))); | |
44053 | SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS))); | |
44054 | SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL))); | |
44055 | SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS))); | |
44056 | SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP))); | |
44057 | SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP))); | |
44058 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); | |
44059 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
44060 | ||
44061 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
44062 | ||
44063 | SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set); | |
44064 | SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT))); | |
44065 | SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN))); | |
44066 | SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN))); | |
44067 | SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY))); | |
44068 | SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE))); | |
d55e5bfc RD |
44069 | } |
44070 |